/* Values measured from the captured Accurate Online 4970 styles and layout. */
#views > .view[hidden] {
  display: none !important;
}
.financial-statement.report-summary {
  display: block;
  margin: 40px auto 15px;
  max-width: 690px;
  border: 0;
  padding: 0;
}
.statement-table {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  font-size: 12px;
  color: #0a111e;
}
.statement-table th {
  text-align: left;
  color: #17326f;
  border-bottom: 1px solid #303339;
  padding: 0 5px 6px;
}
.statement-table th:last-child {
  text-align: right;
}
.statement-table td {
  padding: 4px 5px;
}
.statement-table .num {
  text-align: right;
  min-width: 160px;
}
.statement-table .report-link {
  font-size: 12px;
  color: #0a111e;
  text-decoration: none;
  font-weight: 400;
}
.statement-table .report-link:hover {
  color: #2149a9;
  text-decoration: underline;
}
.statement-heading td {
  padding-top: 24px;
  padding-bottom: 5px;
  font-weight: 600;
}
.statement-heading:first-child td {
  padding-top: 9px;
}
.statement-account td:first-child {
  padding-left: 20px;
}
.statement-total td {
  font-weight: 600;
  padding-top: 7px;
}
.statement-total .num {
  border-top: 1px solid #0a111e;
}
.statement-net td {
  font-weight: 700;
  padding-top: 16px;
}
.statement-net .num {
  border-top: 2px solid #0a111e;
}
.report-paper:has(.financial-statement) {
  max-width: 820px;
  min-height: 1000px;
}
.form-page:has(> .report-paper) {
  background: #62666d;
  padding: 12px 0 25px;
}
.form-page:has(> .report-paper) > .report-toolbar {
  margin-top: -12px;
  background: #ebeff8;
}
.form-page:has(> .report-paper) > .report-paper {
  margin: 12px auto 0;
}
.master-page {
  padding-right: 83px;
  min-height: calc(100vh - 124px);
}
.master-page .action-rail {
  top: 10px;
}
.master-page .form-section {
  min-height: 400px;
}
.master-page .horizontal-tabs {
  padding-left: 20px;
}
.modulebar .bar-actions .status-pill {
  margin-top: 3px;
}
#flyout {
  width: 440px;
  background: #f1f3f7;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(16, 29, 66, 0.16), 0 2px 6px rgba(16, 29, 66, 0.08) ;
}
#flyout > input {
  width: 100%;
  margin-bottom: 18px;
}
.module-menu-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
#flyout .module-menu-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 112px;
  width: 100%;
  margin: 0;
  padding: 12px 8px;
  box-shadow: 0 12px 32px rgba(16, 29, 66, 0.16), 0 2px 6px rgba(16, 29, 66, 0.08) ;
  border-radius: 6px;
  color: #31353b;
  font-size: 13px;
  text-align: center;
}
#flyout .module-menu-tile img {
  height: 43px;
  width: 43px;
  object-fit: contain;
}
#flyout .module-menu-tile i {
  font-size: 36px;
}
.action-tile i {
  pointer-events: none;
}
html,
body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  font-size: 14px;
}
#header {
  height: 45px;
  background: #fff;
  box-shadow: none;
}
.brand {
  width: 245px;
  padding: 3px 15px;
}
.brand img {
  width: 200px;
  height: 34px;
  object-fit: contain;
}
.brand-mark,
.brand > span,
.header-pattern {
  display: none;
}
.company b {
  font-size: 16px;
}
.company small {
  font-size: 12px;
}
#rail {
  top: 45px;
  width: 55px;
  background: linear-gradient(90deg, #122257, #2d4274 88%, #7584a3);
  padding-top: 23px;
}
#rail button {
  width: 55px;
  height: 46px;
  padding: 9px 0;
  border-left: 0;
  color: white;
}
#rail button i {
  font-size: 28px;
}
#workspace {
  top: 45px;
  left: 55px;
}
#module-tabs {
  height: 35px;
  padding: 0 3px;
  align-items: end;
  background: #ebeff8;
  border-bottom: 1px solid #bec3cb;
}
#module-tabs button {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  font-size: 16px;
  background: #c8ccd4;
  height: 33px;
  padding: 5px 10px;
  min-width: 108px;
  font-weight: 400;
  border-color: #a6aab2;
}
#module-tabs button.active {
  background: #f38906;
  border-color: #f38906;
  font-weight: 600;
}
.modulebar {
  height: 44px;
  padding: 2px 3px 0;
  gap: 4px;
  background: #ebeff8;
  border-bottom: 1px solid #b2b6be;
  position: relative;
  flex-shrink: 0;
}
.document-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  align-self: stretch;
  align-items: end;
  scrollbar-width: thin;
}
.document-tab {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  white-space: nowrap;
  height: 40px;
  min-width: 125px;
  padding: 7px 12px;
  background: #caced6;
  border: 1px solid #a0a4ac;
  border-top: 1px solid #a0a4ac;
  border-bottom: 0;
  color: #41444b;
  flex-shrink: 0;
  border-radius: 10px 10px 0 0;
  font-size: 16px;
  font-weight: 400;
}
.document-tab.active {
  background: #fff;
  border-top: 3px solid #f38906;
  color: #152a51;
}
.close-document {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  font-size: 19px;
  font-weight: bold;
  line-height: 16px;
  opacity: 0.8;
}
.close-document:hover {
  color: #f38906;
  opacity: 1;
}
.list-toggle {
  height: 40px;
  width: 56px;
  min-width: 56px;
  font-size: 22px;
  border-radius: 10px 10px 0 0;
  background: #205af7;
}
.list-toggle[aria-pressed='true'] {
  background: #205af7;
}
.bar-actions {
  gap: 4px;
  padding-right: 12px;
}
.new-document-button {
  border: 1px solid #ccd1d9;
  background: #fff;
  font-size: 21px;
  padding: 1px 10px;
  min-height: 29px;
}
.module-form-pages {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.view:has(> .module-form-pages) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.form-page {
  min-height: 100%;
  position: relative;
}
.form-page[hidden],
.module-list-page[hidden] {
  display: none !important;
}
.module-list-page {
  flex: 1;
  overflow: auto;
}
.document-header {
  position: relative;
  padding: 7px 91px 9px 51px;
  grid-template-columns: minmax(330px, 1fr) minmax(110px, 0.35fr) minmax(220px, 0.7fr);
  gap: 15px;
  border-bottom: 0;
}
.document-header .field {
  grid-template-columns: 92px 1fr;
  gap: 12px;
  margin: 0 0 9px;
  align-items: center;
}
.document-header .field input {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  max-width: 100%;
  padding: 5px 7px;
  min-height: 32px;
  font-size: 14px;
}
.document-header .field label {
  font-size: 14px;
  white-space: nowrap;
}
.document-header > .return-to-source {
  grid-column: 1/-1;
  text-align: left;
  font-size: 12px;
  justify-self: start;
}
.transaction-page {
  padding-right: 83px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 124px);
}
.transaction-page .document-header {
  padding-right: 7px;
}
.body-panel {
  min-height: 400px;
  flex: 1;
  margin-top: 0;
  position: relative;
}
.content-card {
  margin: 0 9px 10px 0;
  padding: 9px 9px 13px;
  border-color: #b9bdc5;
  border-radius: 8px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.side-tabs {
  width: 43px;
  padding: 9px 0 0 7px;
}
.side-tabs button {
  width: 35px;
  height: 43px;
  font-size: 20px;
  background: #e9edf6;
  border-radius: 0;
  border: 1px solid #c5c9d1;
  border-right: 0;
  color: #203150;
  padding: 5px;
}
.side-tabs button.active {
  background: #fff;
  color: #f38906;
  border-radius: 8px 0 0 8px;
}
.grid-controls {
  height: 39px;
  margin: 0 0 9px;
  gap: 15px;
  flex-shrink: 0;
}
.grid-controls .lookup {
  max-width: 340px;
}
.grid-controls .lookup input {
  font-size: 15px;
  min-height: 32px;
}
.grid-controls .item-count {
  margin-left: auto;
  font-size: 19px;
  color: #0c1833;
  white-space: nowrap;
}
.data-grid {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  font-size: 13px;
}
.data-grid th {
  height: 35px;
  background: #566683;
  padding: 7px 8px;
  font-weight: 500;
}
.data-grid td {
  height: 35px;
  padding: 4px 8px;
}
.data-grid tr:nth-child(even) {
  background: #f4f6fa;
}
.detail-grid {
  min-height: 330px;
  flex: 1;
}
.data-grid input:disabled,
.data-grid select:disabled {
  background: none;
  color: #1f304f;
  opacity: 1;
  appearance: none;
  border: 0;
  box-shadow: none;
}
.data-grid .row-delete {
  color: #9ba0a7;
}
.totals {
  margin: 0 9px 12px 43px;
}
.total-box {
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  border-radius: 8px;
  grid-template-columns: 1fr 1fr 1fr;
  min-width: 430px;
  gap: 0;
  padding: 0;
  background: white;
  border-color: #c3c7cf;
}
.total-box span,
.total-box strong {
  padding: 11px 15px;
}
.total-box > span {
  grid-row: 1;
  font-weight: 400;
  font-size: 14px;
}
.total-box > strong {
  grid-row: 2;
  padding-top: 0;
  text-align: left;
  font-size: 15px;
}
.total-box .grand {
  border-top: 0;
  font-size: 14px;
  color: #15223b;
}
.total-box > *:nth-child(n + 5) {
  border-left: 1px solid #d5d9e1;
}
.total-box > strong.grand {
  font-weight: 700;
  font-size: 15px;
}
.invoice-payment-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 12px 10px 54px;
  font-size: 12px;
  color: #747880;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.invoice-payment-summary b {
  color: #30405d;
}
.payment-badge {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.payment-badge.paid {
  color: #36814b;
  border-color: #8bcea0;
  background: #f3f6fa;
}
.payment-badge.partially_paid {
  color: #a26722;
  background: #f4f8ff;
  border-color: #e3c47a;
}
.payment-badge.unpaid {
  color: #b34756;
  background: #f3f5f9;
  border-color: #e4b8c0;
}
.overdue {
  color: #b6384c;
  font-weight: 600;
}
.paid-stamp {
  position: absolute;
  width: 150px;
  height: 150px;
  left: 50%;
  top: 42%;
  transform: translate(-30%, -50%);
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}
.invoice-payment-summary .text-button {
  font-size: 12px;
  padding: 2px 5px;
}
.action-rail {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 68px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 4;
}
.action-tile {
  position: relative;
  width: 62px;
  height: 55px;
  min-height: 55px;
  padding: 0;
  border: 1px solid #1e439c7d;
  border-radius: 10px;
  color: #1e439c;
  background: #214cbc;
  box-shadow: 0 12px 32px rgba(16, 29, 66, 0.16), 0 2px 6px rgba(16, 29, 66, 0.08) ;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-tile i {
  font-size: 30px;
  line-height: 37.333px;
}
.action-tile.save {
  color: #1e439c;
  background: #214cbc;
}
.action-tile.save:not(:disabled) {
  color: #fff;
}
.action-tile.save:hover:not(:disabled) {
  background: #2d5ed2;
}
.action-tile.blue {
  border-color: #417bfc;
  background: #99b7ed;
  color: #13327e;
}
.action-tile.blue:hover {
  background: #c0d6fd;
}
.action-tile.green {
  border-color: #04c12c;
  color: #006f18;
  background: #98e39e;
}
.action-tile.green:hover {
  background: #a9edaf;
}
.action-tile.red {
  margin-top: 15px;
  border-color: #fd8484;
  color: #f38906;
  background: #fbbbbb;
}
.action-tile.red:hover {
  background: #f8cbcb;
}
.action-tile:disabled {
  border-color: #b6bbc2;
  background: #d9dde5;
  color: #a6aab2;
  opacity: 1;
  cursor: default;
}
.action-tile .dropdown-caret {
  position: absolute;
  right: 4px;
  bottom: 9px;
  font-size: 11px;
}
.tile-menu {
  position: fixed;
  z-index: 250;
  background: #fff;
  border: 1px solid #c2c6ce;
  box-shadow: 0 12px 32px rgba(16, 29, 66, 0.16), 0 2px 6px rgba(16, 29, 66, 0.08) ;
  padding: 4px;
  min-width: 170px;
  width: max-content;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
  overflow-y: auto;
}
.tile-menu button {
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  color: #2a3956;
  background: white;
}
.tile-menu button:hover {
  background: #ebf0f8;
}
.tile-menu button i {
  flex: none;
  width: 18px;
  margin-right: 0;
  font-size: 18px;
  vertical-align: middle;
}
.report-link {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font: inherit;
  color: #1f3e8a;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.report-link:hover {
  background: none;
  color: #f38906;
}
.report-summary {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 0 0 22px;
  border-bottom: 1px solid #7c889c;
  padding: 12px 0 17px;
}
.report-summary > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}
.report-summary .report-link {
  font-weight: 600;
  font-size: 20px;
}
.drill-reconciliation {
  text-align: right;
  font-weight: 600;
  color: #3e5173;
}
.return-to-source {
  white-space: nowrap;
}
.report-paper {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  padding: 28px 40px;
}
.report-paper .data-grid {
  white-space: normal;
}
.report-paper .data-grid td {
  border-right: 0;
  border-color: #d9dde5;
}
.report-paper .data-grid th {
  color: #0a111e;
  background: white;
  border: 0;
  border-bottom: 1px solid #303339;
}
.report-toolbar {
  padding: 8px 14px;
  gap: 8px;
}
.report-toolbar button {
  padding: 6px 10px;
}
.list-toolbar select {
  font-size: 12px;
}
.form-page .form-actions:not(.action-rail) {
  position: static;
}
.form-page:not(.transaction-page) {
  position: relative;
}
.status-pill {
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .document-header {
    grid-template-columns: minmax(240px, 1fr) minmax(80px, 0.2fr) minmax(180px, 0.7fr);
    gap: 6px;
    padding-left: 17px;
  }
  .document-header .field {
    grid-template-columns: 83px 1fr;
    gap: 8px;
  }
  .content-card {
    min-height: 390px;
  }
  .invoice-payment-summary {
    padding-left: 24px;
    gap: 10px;
  }
  .action-rail {
    right: 5px;
  }
  .transaction-page {
    padding-right: 80px;
  }
  .total-box {
    min-width: 390px;
  }
  .company b {
    max-width: 330px;
  }
}
@media (max-width: 650px) {
  #workspace {
    left: 44px;
  }
  #rail,
  #rail button {
    width: 44px;
  }
  #rail button i {
    font-size: 24px;
  }
  .brand {
    width: 168px;
    padding: 3px 6px;
  }
  .brand img {
    width: 160px;
  }
  .document-header {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .transaction-page {
    padding-right: 0;
    padding-bottom: 65px;
  }
  .document-header .field {
    grid-template-columns: 84px 1fr;
  }
  .action-rail {
    position: sticky;
    bottom: 0;
    top: auto;
    right: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
    background: #ebeff8;
    padding: 6px 8px;
    justify-content: flex-end;
    margin-top: auto;
    border-top: 1px solid #c2c6ce;
  }
  .action-tile {
    width: 43px;
    height: 39px;
    min-height: 39px;
    box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  }
  .action-tile i {
    font-size: 24px;
  }
  .action-tile.red {
    margin-top: 0;
    margin-left: 9px;
  }
  .modulebar {
    gap: 3px;
  }
  .new-document-button {
    padding: 2px 7px;
  }
  .document-tab {
    min-width: 110px;
    font-size: 13px;
    height: 37px;
  }
  .invoice-payment-summary {
    padding: 4px 12px 12px;
    gap: 8px;
    font-size: 11px;
  }
  .body-panel {
    min-height: 330px;
  }
  .totals {
    margin: 0 8px 10px 35px;
  }
  .total-box {
    min-width: 0;
    width: 100%;
    font-size: 12px;
  }
  .total-box span,
  .total-box strong {
    padding: 9px 8px;
  }
  .total-box > span,
  .total-box > strong,
  .total-box > strong.grand {
    font-size: 12px;
  }
  .report-summary {
    gap: 12px;
    flex-wrap: wrap;
  }
  .report-summary .report-link {
    font-size: 16px;
  }
  .report-paper {
    padding: 20px 12px;
  }
  .paid-stamp {
    width: 125px;
    height: 125px;
  }
  .company b {
    max-width: 140px;
    font-size: 11px;
  }
}
@media print {
  .action-rail,
  .invoice-payment-summary,
  .document-tabs,
  .return-to-source,
  .report-toolbar {
    display: none !important;
  }
  .module-form-pages {
    overflow: visible;
  }
  .report-link {
    color: black;
    text-decoration: none;
  }
}
.lookup {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 34px;
  border: 1px solid #c8ccd4;
  background: #f8fafe;
  gap: 3px;
  padding: 2px 4px;
}
.lookup input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-width: 70px;
  flex: 1;
  width: 0 !important;
  padding: 3px !important;
}
.lookup:focus-within {
  border-color: #6392f3;
}
.lookup-search {
  border: 0 !important;
  background: transparent !important;
  padding: 2px 4px !important;
  color: #73777e;
  min-width: 20px;
}
.lookup-search:empty:after {
  content: '⌕';
}
.lookup-search i:before {
  font-size: 17px;
}
.lookup-chips {
  display: contents;
}
.lookup-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border: 1px solid #98b3ea;
  background: #eaeef6;
  color: #3055a1;
  font-size: 13px;
}
.lookup-chip button {
  border: 0;
  background: transparent;
  color: #717e91;
  padding: 0 2px;
  font-size: 19px;
  line-height: 18px;
}
.smart-lookup-list {
  padding: 0;
  border: 1px solid #a6aab2;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  overflow: auto;
  /* Above the filter popup (10020) that hosts lookup fields. */
  z-index: 10030;
}
.smart-lookup-list button[role='option'] {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #d9dde5;
  border-radius: 0;
  padding: 7px 10px;
  background: #fff;
  color: #41444b;
}
.smart-lookup-list strong {
  grid-column: 1/-1;
  font-weight: 400;
}
.smart-lookup-list small {
  font-size: 12px;
  color: #73777e;
}
.smart-lookup-list em {
  font-size: 12px;
  color: #73777e;
  text-align: right;
}
.smart-lookup-list button[aria-selected='true'],
.smart-lookup-list button:hover {
  background: #e8edf5;
}
.coa-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: #f5f7fb;
  min-height: calc(100vh - 230px);
  margin-right: 100px;
  padding: 18px 12px;
  border: 1px solid #c8ccd4;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
}
.coa-section h2 {
  font-size: 20px;
  color: #5a89ea;
  font-weight: 400;
  border-bottom: 1px solid #d4d8e0;
  padding: 0 0 7px;
  margin: 0 0 10px;
}
.coa-section .field {
  display: grid;
  grid-template-columns: 32% 1fr;
  align-items: center;
  gap: 8px;
  margin: 10px 20px;
}
.coa-section .field label {
  font-size: 14px;
  font-weight: 400;
  color: #51555c;
}
.coa-section textarea {
  height: 70px;
}
.coa-example {
  display: block;
  margin-left: calc(32% + 27px);
  font-size: 14px;
  font-style: italic;
  color: #a6aab2;
}
.coa-section .grid-scroll {
  grid-column: 1/-1;
}
.account-page .horizontal-tabs button:disabled {
  color: #9599a1;
  background: #d9dde5;
}
@media (max-width: 900px) {
  .coa-section {
    grid-template-columns: 1fr;
    margin-right: 0;
  }
  .coa-section .field {
    margin: 10px 0;
  }
}
.payment-detail-dialog {
  width: 500px;
  max-width: calc(100vw - 70px);
  min-height: 280px;
}
.payment-detail-section {
  padding: 16px 10px;
}
.payment-detail-section .field {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.payment-detail-dialog .horizontal-tabs {
  margin: 0;
}
#modal:has(.accurate-payment-detail) {
  width: 540px;
  min-width: 0;
  border-radius: 6px;
}
#modal:has(.accurate-payment-detail) .dialog-head {
  padding: 9px 14px;
  background: #15295a;
  font-size: 14px;
}
#modal:has(.accurate-payment-detail) .dialog-head > span::before {
  content: '\270e';
  margin-right: 9px;
  font-size: 20px;
}
#modal:has(.accurate-payment-detail) .dialog-body {
  padding: 10px;
}
.accurate-payment-detail {
  width: auto;
  max-width: none;
  min-height: 280px;
}
.payment-detail-tabs {
  display: flex;
  border-bottom: 1px solid #a6aab2;
}
.payment-detail-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #62666d;
  border-radius: 0;
  padding: 10px 15px 8px;
  font-size: 15px;
}
.payment-detail-tabs button.active {
  color: #ff350b;
  border-bottom-color: #ff350b;
}
.accurate-payment-detail .payment-detail-section {
  padding: 10px;
  min-height: 240px;
}
.accurate-payment-detail .field,
.payment-account-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
}
.accurate-payment-detail .field > label {
  color: #000;
  margin: 0;
}
.payment-account-row {
  min-height: 32px;
  color: #000;
}
.payment-account-number {
  color: #4c91f4;
}
.payment-paid-to,
.payment-amount {
  position: relative;
}
.payment-paid-to input {
  padding-right: 30px;
}
.payment-paid-to .clear-paid-to {
  position: absolute;
  right: 7px;
  top: 3px;
  padding: 0 5px;
  background: transparent;
  border: 0;
  color: #0a111e;
  font-size: 20px;
}
.payment-amount input {
  padding-left: 30px;
  width: min(100%, 202px);
}
.payment-currency {
  position: absolute;
  left: 178px;
  top: 8px;
  color: #9599a1;
  font-size: 12px;
  pointer-events: none;
}
.accurate-payment-detail textarea {
  min-height: 70px;
}
.accurate-payment-detail .payment-deferral {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000;
}
.payment-deferral input {
  appearance: none;
  width: 30px;
  height: 17px;
  border: 0;
  border-radius: 10px;
  background: #a6aab2;
}
.payment-deferral input::before {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  margin: 2px;
  border-radius: 50%;
  background: white;
}
.accurate-payment-detail .deferral-unavailable {
  color: #62666d;
  font-size: 12px;
  margin-left: 42px;
}
#modal:has(.accurate-payment-detail) .dialog-foot {
  margin: 0 10px;
  border-top-color: #a6aab2;
  padding: 10px 0 14px;
}
#modal:has(.accurate-payment-detail) .dialog-foot button {
  min-width: 76px;
}
.payment-detail-section > p {
  color: #4482e0;
}
.account-detail-link {
  background: none;
  border: 0;
  padding: 0;
  color: #2f63c8;
  text-align: left;
}
.master-page .coa-section {
  min-height: calc(100vh - 190px);
  margin: 0 18px 18px 8px;
  align-content: start;
}
.coa-section > .field {
  align-self: start;
}
.coa-section .field input[type='checkbox'] {
  width: 18px;
  justify-self: start;
}
.process-next {
  grid-column: 1/-1;
  justify-self: end;
  min-width: 90px;
  border: 1px solid #34517c;
  background: transparent;
  color: #294067;
  padding: 6px 10px;
}
.lookup input {
  padding-right: 25px !important;
}
.data-grid .coa-indent {
  white-space: pre;
}
.coa-section input,
.coa-section select,
.coa-section textarea {
  font-size: 14px;
}
.module-form-pages[hidden] {
  display: none !important;
}
.accurate-history {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 6px 0;
  background: #ebeff8;
}
.history-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 6px 10px;
}
.history-filter {
  font-size: 12px;
  background: white;
  border: 1px solid #a6aab2;
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 34px;
}
.history-add-filter {
  background: #dde9fe;
  border: 1px solid #2451ca;
  color: #2451ca;
  min-width: 48px;
}
.history-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px 12px;
  min-height: 45px;
}
.history-tools .outline {
  background: white;
  color: #2250d4;
  border: 1px solid #2250d4;
  min-height: 34px;
  min-width: 40px;
}
.history-add {
  font-size: 26px;
  font-weight: bold;
  width: 60px;
  height: 34px;
  padding: 0;
}
.history-tools input {
  height: 34px;
  min-width: 250px;
  margin-left: 26px;
  font-size: 14px;
}
.history-count {
  border: 1px solid #a6aab2;
  border-radius: 6px;
  padding: 7px 10px;
  min-width: 80px;
  text-align: right;
  font-size: 12px;
  color: #51555c;
}
.history-grid {
  flex: 1;
  min-height: 180px;
  overflow: auto;
}
.history-grid .data-grid {
  font-size: 14px;
  table-layout: auto;
}
.history-grid .data-grid th {
  height: 34px;
  background: #56647e;
  text-align: center;
  font-weight: 400;
  padding: 7px 9px;
}
.history-grid .data-grid th[aria-sort] {
  cursor: pointer;
}
.history-grid .data-grid th[aria-sort]:before {
  content: '◆';
  font-size: 9px;
  color: #a6aab2;
  float: left;
  margin-right: 5px;
}
.history-grid .data-grid td {
  height: 41px;
  padding: 8px 9px;
  border-right: 1px dotted #d9dde5;
}
.history-grid .data-grid tbody tr:nth-child(even) {
  background: #f5f7fb;
}
.history-grid .data-grid tbody tr:hover {
  background: #ecf0f8;
}
.history-footer {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 14px;
  padding: 6px;
}
.history-footer button {
  font-size: 12px;
}
.history-filter-values {
  display: flex;
  flex-direction: column;
  max-height: 350px;
  overflow: auto;
  min-width: 260px;
  gap: 9px;
}
.history-filter-values label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.history-filter-values input {
  width: 16px;
}
.history-filter-dialog > input {
  margin-bottom: 10px;
}
.history-filter-dialog .field {
  margin: 10px 0;
}
.history-filter-dialog select {
  min-width: 240px;
}
@media (max-width: 700px) {
  .history-tools {
    flex-wrap: wrap;
  }
  .history-tools input {
    min-width: 130px;
    width: 150px;
    margin-left: 0;
  }
  .history-filter-bar {
    gap: 4px;
  }
}
#rail button > img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.bank-transfer-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 9px 10px 54px;
  gap: 20px;
  align-items: center;
}
.bank-transfer-header > .field {
  display: grid;
  grid-template-columns: 130px 220px;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.bank-transfer-number {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bank-transfer-number select {
  min-width: 260px;
}
.bank-transfer-number input[type='checkbox'] {
  width: 30px;
}
.bank-transfer-card h3 {
  font-size: 22px;
  font-weight: 400;
  color: #0c1830;
  margin: 7px 0 8px;
}
.bank-transfer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
}
.bank-transfer-columns .field {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}
.bank-transfer-columns .field input[type='number'] {
  width: 205px;
  max-width: 100%;
}
.bank-transfer-card {
  min-height: calc(100vh - 300px);
}
.bank-transfer-totals {
  display: flex;
  align-self: end;
  gap: 0;
  width: 425px;
  max-width: 95%;
  margin-right: 10px;
  margin-bottom: 12px;
  background: white;
  border: 1px solid #a6aab2;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  padding: 10px 15px;
}
.bank-transfer-totals > div {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 8px;
  flex: 1;
}
.bank-transfer-totals > div + div {
  border-left: 1px solid #d9dde5;
}
.bank-transfer-totals b {
  text-align: right;
  font-size: 14px;
}
.journal-dialog {
  min-width: 650px;
  max-width: calc(100vw - 80px);
}
.journal-dialog > p:last-child {
  text-align: right;
  font-weight: 600;
}
.bank-transfer-header [hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .bank-transfer-columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .bank-transfer-header {
    flex-wrap: wrap;
    padding-left: 15px;
  }
  .journal-dialog {
    min-width: 0;
  }
  .bank-transfer-number select {
    min-width: 150px;
  }
}
#flyout {
  width: 412px;
  padding: 11px;
  background: #f9fbff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 29, 66, 0.16), 0 2px 6px rgba(16, 29, 66, 0.08) ;
  max-height: calc(100vh - 65px);
  height: auto;
  bottom: auto;
  overflow: auto;
}
#flyout > h2 {
  font-size: 23px;
  font-weight: 400;
  color: #51555c;
  margin: 5px 0 20px;
  padding: 0 0 17px;
  border-bottom: 2px solid #f38906;
}
.module-menu-tiles {
  grid-template-columns: repeat(3, 120px);
  gap: 10px;
}
#flyout .module-menu-tile {
  position: relative;
  width: 120px;
  height: 120px;
  min-height: 120px;
  padding: 14px 6px 8px;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}
#flyout .module-menu-tile img {
  width: 45px;
  height: 45px;
  margin-top: 6px;
}
#flyout .module-menu-tile span {
  margin-top: auto;
}
#rail button:hover,
#rail button:focus {
  background: #f38906;
}
@media (max-width: 500px) {
  #flyout {
    width: calc(100vw - 55px);
  }
  .module-menu-tiles {
    grid-template-columns: repeat(2, 120px);
    justify-content: start;
  }
}
.history-grid .data-grid {
  table-layout: fixed;
}
.history-grid .data-grid th,
.history-grid .data-grid td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-tools button i {
  font-size: 17px;
}
.history-add i {
  font-size: 24px;
}
.history-grid .data-grid td {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  color: #0c1935;
}
.history-grid .data-grid .num {
  color: #09142f;
}
.history-tools .push {
  min-width: 10px;
}
@media (max-width: 700px) {
  .history-grid .data-grid {
    min-width: 950px;
  }
}
.coa-sub-row {
  margin: 16px 20px;
  min-height: 25px;
}
.coa-sub-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #51555c;
}
.coa-sub-row input {
  width: 19px;
  height: 19px;
}
.coa-account-history {
  grid-column: 1/-1;
}
.coa-section:has(.coa-account-history) {
  align-content: start;
}
.coa-account-history .data-grid {
  font-size: 14px;
}
.coa-history-dates {
  display: flex;
  align-items: center;
  gap: 20px;
}
.coa-history-dates .field {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 10px 0 18px;
}
.coa-history-dates input {
  max-width: 170px;
}
.history-filter-popup {
  position: fixed;
  z-index: 10020;
  background: #fff;
  border: 1px solid #d9dde5;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  width: 340px;
  max-width: calc(100vw - 20px);
  padding: 8px 5px 5px;
  color: #0a1530;
}
.history-filter-popup .filter-clear {
  display: block;
  margin: 0 auto 10px;
  background: none;
  border: 0;
  color: #2551ad;
  font-size: 12px;
  padding: 3px;
}
.history-filter-popup .history-filter-dialog {
  padding: 0 12px;
}
.filter-popup-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.filter-popup-foot button {
  font-size: 14px;
  padding: 8px 14px;
}
.history-filter-popup .field {
  display: block;
  margin: 8px 0;
}
.history-filter-popup .field label {
  display: block;
  margin: 0 0 6px;
}
.history-filter-popup .field input {
  width: 100%;
}
.history-filter-popup .history-filter-values {
  max-height: 250px;
}
.history-filter-popup input[type='number'] {
  max-width: 90px;
}
.history-filter-popup > label {
  display: flex;
  gap: 8px;
}
.history-tools .history-add {
  background: #1f40a4;
  color: #fff;
  border: 1px solid #1f40a4;
}
.bank-transfer-page input,
.bank-transfer-page select,
.bank-transfer-page textarea,
.bank-transfer-page label {
  font-size: 14px;
}
.bank-transfer-page {
  padding-right: 124px;
}
.bank-transfer-page .action-rail {
  right: 18px;
  width: 95px;
}
.bank-transfer-page .action-tile {
  width: 95px;
}
.bank-save-group {
  display: flex;
  width: 95px;
  box-shadow: 0 12px 32px rgba(16, 29, 66, 0.16), 0 2px 6px rgba(16, 29, 66, 0.08) ;
  border-radius: 10px;
  background: #214cbc;
  overflow: hidden;
}
.bank-save-group .action-tile {
  width: 65px;
  box-shadow: none;
  border-radius: 0;
  border: 0;
  margin: 0;
}
.bank-save-menu {
  width: 30px;
  border: 0;
  border-left: 1px solid #ffffff50;
  background: #214cbc;
  color: white;
  font-size: 18px;
}
.bank-save-group:has(button:disabled) {
  background: #d9dde5;
}
.bank-save-menu:disabled {
  background: #d9dde5;
  color: #a6aab2;
}
.bank-transfer-page .side-tabs button[aria-label='Transfer Fee'] {
  font-size: 22px;
}
@media (max-width: 700px) {
  .bank-transfer-page {
    padding-right: 0;
  }
  .bank-transfer-page .action-rail {
    width: auto;
    right: auto;
  }
  .bank-transfer-page .action-tile {
    width: 56px;
  }
  .bank-save-group {
    width: 85px;
  }
  .bank-save-group .action-tile {
    width: 55px;
  }
}
.history-grid {
  background: white;
  border: 1px solid #babec6;
}
.accurate-print-preview {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  background: #d9dde5;
  z-index: 20000;
}
.accurate-print-preview > iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #303339;
}
.print-preview-actions {
  padding: 10px 27px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #d9dde5;
}
.print-preview-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #2250d3;
  border-radius: 6px;
  background: white;
  color: #2250d3;
  box-shadow: 0 12px 32px rgba(16, 29, 66, 0.16), 0 2px 6px rgba(16, 29, 66, 0.08) ;
  min-height: 35px;
  font-size: 14px;
}
.print-preview-button.primary {
  background: #2350bc;
  color: white;
}
.print-preview-button.close {
  background: #f38906;
  color: white;
  border-color: #2250d3;
  margin-top: 8px;
}
.invoice-information {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 18px;
  padding: 20px;
}
.invoice-information > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #d9dde5;
  padding: 8px;
}
.paid-stamp {
  top: 40%;
  left: 50%;
  width: 160px;
  height: 160px;
  opacity: 0.6;
}
@media (max-width: 700px) {
  .accurate-print-preview {
    grid-template-columns: minmax(0, 1fr) 135px;
  }
  .print-preview-actions {
    padding: 8px;
    gap: 8px;
  }
  .print-preview-button {
    font-size: 12px;
  }
}
.item-form-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  border: 1px solid #c3c7cf;
  border-radius: 8px;
  margin: 0 18px 18px 8px;
  padding: 18px 10px;
  background: #f8fafe;
  min-height: calc(100vh - 205px);
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  align-content: start;
}
.item-form-card h2 {
  font-size: 20px;
  font-weight: 400;
  color: #3470f9;
  border-bottom: 1px solid #c9ced5;
  padding-bottom: 7px;
  margin: 0 0 10px;
}
.item-form-card .field {
  display: grid;
  grid-template-columns: 32% 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 20px;
}
.item-form-card .field label {
  font-size: 14px;
  color: #0e1a33;
}
.item-form-card input,
.item-form-card select {
  font-size: 14px;
  max-width: 100%;
}
.item-form-card .item-unit-row {
  display: flex;
  align-items: center;
  margin-left: 32%;
}
.item-unit-row .field {
  margin: 3px;
  grid-template-columns: auto 1fr;
  min-width: 0;
  flex: 1;
}
.item-unit-row .field label {
  font-size: 12px;
}
.item-unit-row .field input {
  min-width: 0;
  width: 100%;
}
.item-inquiry {
  grid-column: 1/-1;
}
.item-image {
  max-width: 350px;
  max-height: 350px;
  object-fit: contain;
  display: block;
}
.item-page .horizontal-tabs {
  padding-left: 12px;
  overflow: auto;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .item-form-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .item-form-card .field {
    margin: 10px 0;
  }
  .item-form-card .item-unit-row {
    margin-left: 0;
  }
}
.readonly-lookup input[hidden],
.readonly-lookup button[hidden] {
  display: none !important;
}
.readonly-lookup {
  min-height: 34px;
}
.readonly-lookup .lookup-chip button:disabled {
  opacity: 0.4;
}
.item-detail-dialog {
  width: 500px;
  max-width: calc(100vw - 70px);
  min-height: 410px;
}
.item-detail-dialog .field {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 15px;
  margin: 11px 10px;
}
.item-detail-dialog .horizontal-tabs {
  margin-bottom: 16px;
}
.item-code-reference {
  padding: 0 10px;
  color: #3670e4;
}
.item-detail-total {
  padding: 8px 10px 10px 175px;
  font-size: 16px;
  color: #2859cf;
}
.item-detail-link {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.item-detail-link:hover {
  color: #3165c6;
  text-decoration: underline;
}
.inventory-position-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 15px;
  flex-wrap: wrap;
}
.inventory-position-header .field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
}
.inventory-position-header .field .lookup {
  flex: 1;
}
.inventory-position-grid {
  margin: 0 12px;
  background: white;
  min-height: calc(100vh - 235px);
  border: 1px solid #bdc1c9;
}
.inventory-position-grid .data-grid {
  font-size: 14px;
}
.item-auto-number {
  display: flex;
  gap: 10px;
  position: relative;
}
.item-auto-number input[type='checkbox'] {
  position: absolute;
  left: -45px;
  width: 30px;
  top: 6px;
}
.item-auto-number select,
.item-auto-number input:not([type='checkbox']) {
  width: 100%;
}
.item-auto-number [hidden] {
  display: none !important;
}
@media (min-width: 1000px) {
  .transaction-page,
  .master-page {
    padding-right: calc((100vw - 55px) * 0.06383 + 29px);
  }
  .transaction-page .action-rail,
  .master-page .action-rail {
    right: 18px;
    width: calc((100vw - 55px) * 0.06383);
  }
  .transaction-page .action-tile,
  .master-page .action-tile {
    width: 100%;
  }
  .transaction-page .action-rail {
    gap: 25px;
  }
  .bank-save-group {
    width: 100%;
  }
  .bank-transfer-page .bank-save-group .action-tile {
    width: calc(100% - 30px);
  }
}
@media (min-width: 1000px) {
  .transaction-page .action-rail {
    gap: 10px;
  }
  .action-rail > .action-tile.save,
  .action-rail > .bank-save-group {
    margin-bottom: 15px;
  }
  .action-rail > .action-tile.red {
    margin-top: 15px;
  }
  .master-page .action-rail {
    top: 34px;
  }
  .master-page .horizontal-tabs button {
    height: 31px;
    min-height: 31px;
    padding: 4px 10px;
    font-size: 16px;
  }
}
.document-header.invoice-header-exact {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 3px 9px 12px 20px;
}
.invoice-header-left .field {
  display: grid;
  grid-template-columns: calc((100vw - 55px) * 0.094) calc((100vw - 55px) * 0.292) calc(
      (100vw - 55px) * 0.089
    );
  gap: 12px;
  align-items: center;
  margin-bottom: 9px;
}
.invoice-header-left .field:first-child .lookup {
  min-height: 33px;
}
.invoice-header-left .invoice-currency {
  margin-left: 8px;
  width: 100%;
  background: #f5f7fb;
  border-color: #a6aab2;
}
.invoice-header-left input[type='date'] {
  max-width: 178px;
}
.invoice-header-right .invoice-number-field {
  display: grid;
  grid-template-columns: calc((100vw - 55px) * 0.0585) calc((100vw - 55px) * 0.191);
  gap: 12px;
  align-items: center;
}
.invoice-header-right .field {
  margin-bottom: 9px;
}
.invoice-header-tools {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.invoice-header-tools button {
  padding: 6px 10px;
  border: 1px solid #2856ca;
  background: #fff;
  border-radius: 6px;
  color: #2454cc;
}
.invoice-header-tools button:disabled {
  color: #a6aab2;
  border-color: #a6aab2;
  background: #eaeef7;
}
@media (max-width: 1100px) {
  .document-header.invoice-header-exact {
    flex-wrap: wrap;
    padding-left: 20px;
  }
  .invoice-header-left .field {
    grid-template-columns: 90px minmax(160px, 1fr) 80px;
  }
  .invoice-header-right .invoice-number-field {
    grid-template-columns: 90px minmax(200px, 1fr);
  }
}
@media (min-width: 1000px) {
  .item-form-card {
    grid-template-columns: 1.09fr 1fr;
    gap: 6.3%;
    margin-left: 7px;
    margin-right: 9px;
  }
  .item-form-card > section:first-child .field {
    grid-template-columns: 32% 1fr;
    gap: 14px;
    margin: 10px 0;
  }
  .item-form-card > section:first-child .field > label {
    padding-left: 20px;
  }
  .item-form-card > section:not(:first-child) .field {
    grid-template-columns: 31% 1fr;
  }
  .item-form-card select[name='itemType'],
  .item-auto-number,
  .item-form-card input[name='upcNo'] {
    max-width: 320px;
  }
  .item-form-card .field:has(input[name='unit1']) .lookup {
    max-width: 248px;
  }
}
input[type='checkbox'][aria-label^='Automatic'] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 16px;
  border: 0;
  border-radius: 8px;
  background: #a6aab2 radial-gradient(circle at 25% 50%, #fff 0 6px, transparent 6.5px);
  cursor: pointer;
}
input[type='checkbox'][aria-label^='Automatic']:checked {
  background: #314f97 radial-gradient(circle at 75% 50%, #fff 0 6px, transparent 6.5px);
}
#modal:has(.item-detail-dialog) {
  width: 570px;
  max-width: calc(100vw - 25px);
  border-radius: 10px;
}
#modal:has(.item-detail-dialog) .dialog-head {
  height: 37px;
  padding: 7px 15px;
  font-size: 14px;
  background: #162a5c;
}
#modal:has(.item-detail-dialog) .dialog-body {
  padding: 10px;
  max-height: calc(100vh - 160px);
}
.item-detail-dialog {
  width: 100%;
  max-width: none;
  min-height: 450px;
}
.item-detail-dialog .horizontal-tabs {
  height: 40px;
  align-items: stretch;
  padding: 0;
  margin: 0 0 12px;
  gap: 0;
  background: transparent;
  border-bottom: 1px solid #a6aab2;
}
.item-detail-dialog .horizontal-tabs button {
  border: 0;
  border-radius: 0;
  padding: 8px 15px;
  background: transparent;
  font-size: 16px;
  color: #73777e;
}
.item-detail-dialog .horizontal-tabs button.active {
  border-bottom: 3px solid #ff3838;
  color: #ff3838;
}
.item-detail-dialog .field {
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 15px;
  margin: 9px 10px;
  align-items: center;
}
.item-detail-dialog .field label {
  font-size: 16px;
  color: #0b1424;
  margin: 0;
}
.item-detail-dialog .field input {
  height: 34px;
  min-height: 34px;
  font-size: 16px;
}
.item-detail-dialog .item-code-reference {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 15px;
  margin: 14px 10px;
  padding: 0;
  font-size: 16px;
  color: #0a111e;
}
.item-code-reference span:last-child {
  color: #4789ed;
}
.item-qty-unit {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.item-qty-unit input {
  flex: 1;
  min-width: 0;
  width: 60%;
}
.item-qty-unit select {
  width: 124px;
  max-width: 40%;
  font-size: 14px;
}
.item-discount-control {
  display: flex;
  gap: 7px;
}
.item-discount-control input {
  max-width: 215px;
  min-width: 0;
}
.item-discount-control button {
  padding: 3px 8px;
}
.item-detail-dialog .item-detail-total {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 15px;
  margin: 10px;
  padding: 0;
}
.item-detail-total label {
  font-size: 16px;
  color: #0b1424;
}
.item-detail-total input {
  background: #f5f7fb;
  text-align: right;
  font-weight: 600;
  color: #62666d;
  font-size: 16px;
  height: 34px;
}
.item-detail-dialog .field:has(input[name='warehouse']) .lookup {
  max-width: 215px;
}
.item-detail-dialog .field[hidden] {
  display: none !important;
}
#modal:has(.item-detail-dialog) .dialog-foot {
  height: 65px;
  margin: 0 10px;
  padding: 10px;
  border-top: 1px solid #a6aab2;
}
#modal:has(.item-detail-dialog) .dialog-foot button {
  height: 40px;
  min-width: 76px;
  font-size: 16px;
  border-radius: 6px;
}
#modal:has(.item-detail-dialog) .dialog-foot button:last-child {
  margin-left: auto;
}
#modal:has(.item-detail-dialog) .dialog-foot .danger {
  color: #2351c5;
  border-color: #2351c5;
  background: #fff;
}
.dialog-foot button.primary {
  background: #1f40a4;
  color: white;
  border-color: #1f40a4;
}
#modal::backdrop {
  background: #00000099;
}
#modal:has(.item-detail-dialog) input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.item-serial-row {
  margin: 16px 20px;
}
.item-serial-row label {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #0a162e;
  white-space: nowrap;
}
.item-serial-row input[type='checkbox'] {
  appearance: none;
  width: 30px;
  height: 16px;
  border: 0;
  border-radius: 8px;
  background: #a6aab2 radial-gradient(circle at 25% 50%, #fff 0 6px, transparent 6.5px);
}
.item-serial-row input:checked {
  background: #314f97 radial-gradient(circle at 75% 50%, #fff 0 6px, transparent 6.5px);
}
.stocktaking-header {
  display: flex !important;
  justify-content: space-between;
  align-items: start;
}
.stocktaking-header > div {
  width: 48%;
}
.stocktaking-header > div:last-of-type .field {
  grid-template-columns: 145px 1fr;
}
.stocktaking-header .field:has([aria-label='Automatic numbering']) {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stocktaking-header .field:has([aria-label='Automatic numbering']) > label {
  margin-left: auto;
  white-space: nowrap;
}
.stocktaking-header input[aria-label='Automatic numbering'] {
  width: 30px;
  min-width: 30px;
  height: 16px;
  accent-color: #314f97;
}
.stocktaking-header input[name='number'] {
  max-width: 262px;
}
.stocktaking-card {
  padding: 18px 10px !important;
  min-height: calc(100vh - 205px);
}
.stocktaking-card h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 22px;
}
.opname-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.opname-columns .field {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: start;
  margin-bottom: 10px;
}
.opname-columns .field > label {
  padding-top: 7px;
  color: #000;
}
.opname-columns textarea {
  height: 100px !important;
}
.multi-lookup {
  border: 1px solid #b8bcc4;
  border-radius: 6px;
  background: white;
  min-height: 33px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}
.multi-lookup > .lookup {
  border: 0;
  flex: 1;
  min-width: 100px;
  box-shadow: none;
}
.multi-lookup-chips {
  display: contents;
}
.multi-lookup-chips .lookup-chip {
  margin: 3px;
  max-width: 95%;
}
.multi-lookup-chips .lookup-chip button {
  border: 0;
  padding: 0 3px;
  background: transparent;
  min-width: 0;
}
.opname-select-row {
  display: flex;
  gap: 12px;
  padding: 9px;
  border-bottom: 1px solid #d9dde5;
}
.opname-select-row input {
  width: 18px !important;
}
.stocktaking-card .grid-controls input {
  min-width: 250px;
  max-width: 450px;
}
.stocktaking-header .process-next {
  position: static;
  float: right;
  margin-top: 8px;
}
.opname-detail-dialog select {
  width: 100%;
}
@media (max-width: 1000px) {
  .opname-columns {
    grid-template-columns: 1fr;
  }
  .opname-columns .field {
    grid-template-columns: 180px 1fr;
  }
}
.stocktaking-page .document-header {
  padding: 2px 7px 9px 51px;
  min-height: 45px;
}
.stocktaking-page .document-header .field {
  margin: 0 0 9px;
}
.stocktaking-page .document-header > div:first-child .field {
  grid-template-columns: 180px 1fr;
}
.stocktaking-page .document-header .date-trigger {
  min-height: 0 !important;
}
.stocktaking-page .stocktaking-header input[aria-label='Automatic numbering'] {
  min-height: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  border-radius: 10px;
}
.stocktaking-page .stocktaking-header input[name='number'] {
  background: white;
}
.taking-order-page:not(:has(.process-next)) .document-header {
  height: 45px;
}
.stocktaking-card {
  min-height: 0;
  margin-bottom: 23px;
}
.stocktaking-page .body-panel {
  min-height: calc(100vh - 190px);
}
.taking-result-page .body-panel {
  min-height: calc(100vh - 234px);
}
.opname-columns .field {
  grid-template-columns: 215px minmax(0, 1fr);
  margin-bottom: 10px;
  font-size: 16px;
}
.opname-columns .field input,
.opname-columns .field textarea,
.opname-columns .lookup,
.opname-columns .multi-lookup {
  font-size: 15px;
  min-height: 33px;
}
.opname-columns .field input {
  height: 33px;
}
.opname-columns .lookup {
  min-height: 33px;
  height: auto;
}
.opname-columns .multi-lookup > .lookup {
  min-height: 31px;
}
.stocktaking-card h2 {
  margin-bottom: 22px;
}
.taking-result-page .stocktaking-card {
  padding-top: 10px !important;
}
.taking-result-page .stocktaking-card .grid-controls {
  display: flex;
  gap: 28px;
  margin: 0 0 14px;
  align-items: center;
}
.taking-result-page .stocktaking-card .grid-controls input {
  flex: 1;
  max-width: 416px;
}
.taking-result-page .stocktaking-card .grid-controls + h2 {
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 23px;
}
.taking-result-page .stocktaking-card .data-grid th:first-child {
  width: 160px;
}
.taking-result-page .stocktaking-card .data-grid th:nth-last-child(-n + 2) {
  width: 80px;
}
.stocktaking-page .document-header > div:first-child .field > label {
  text-align: left;
}
.opname-columns .lookup > input,
.opname-columns .multi-lookup > .lookup > input {
  height: 29px !important;
  min-height: 29px !important;
}
.opname-columns .multi-lookup {
  min-height: 33px;
}
.opname-columns .lookup {
  background: white;
}
.taking-result-page .stocktaking-header > div:first-child .field {
  grid-template-columns: 210px minmax(0, 1fr);
}
.taking-result-page .document-header {
  padding-bottom: 0;
}
.taking-item-search {
  width: 416px;
  max-width: 45%;
  position: relative;
}
.taking-item-search > input {
  max-width: 100% !important;
  width: 100%;
  padding-right: 32px;
}
.taking-item-search > .lookup-search {
  position: absolute;
  right: 0;
  top: 0;
  height: 33px;
}
.taking-item-choices {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  max-height: 240px;
  overflow: auto;
  background: white;
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  border: 1px solid #a6aab2;
  z-index: 30;
}
.taking-item-choices button {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: left;
  background: white;
  border: 0;
  border-radius: 0;
}
.taking-item-choices button:hover,
.taking-item-choices button.active {
  background: #dbe8fe;
}

/* OUTSTANDING invoice stamp shares the PAID stamp placement. */
.outstanding-stamp { position: absolute; top: 40%; left: 50%; width: 160px; height: 160px; transform: translate(-30%, -50%); z-index: 2; pointer-events: none; opacity: 0.8; }

/* Report statements (cash flow, ratios, projections) and graph reports, as in the original Jasper output. */
.report-statement th { font-weight: 700; border-bottom: 1px solid #000; text-align: left; padding: 4px 6px; }
.report-statement th.num, .report-statement td.num { text-align: right; white-space: nowrap; }
.report-statement td { padding: 3px 6px; font-size: 12px; }
.report-statement .statement-heading td, .report-statement .statement-subheading td { font-weight: 700; padding-top: 8px; }
.report-statement .statement-total td { font-weight: 700; }
.report-statement .statement-total td.num, .report-statement .statement-grand td.num { border-top: 1px solid #000; }
.report-statement .statement-grand td { font-weight: 700; }
.report-chart-wrap { margin: 12px auto; max-width: 900px; }
.report-chart { width: 100%; height: auto; }
.report-chart .axis-grid { stroke: #e6ebf3; }
.report-chart .axis-zero { stroke: #a1a5ad; }
.report-chart .axis-label { fill: #48566f; font-size: 11px; }
.report-chart-legend { margin-top: 6px; }
.report-group-total td { font-weight: 700; } .report-group-total td.num { border-top: 1px solid #000; text-align: right; }
.report-footer { margin-top: 28px; border-top: 1px solid #000; padding-top: 6px; font: 10px 'Plus Jakarta Sans', 'Segoe UI', sans-serif; color: #697089; }
.report-footer-title { text-align: center; }
.report-footer-meta { display: flex; justify-content: space-between; margin-top: 18px; }
@media print { .report-footer { break-inside: avoid; } }

/* History lists fit one page (no horizontal slide); long values ellipsize. */
.history-grid { overflow-x: hidden; }
.history-grid .data-grid { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
.history-grid .data-grid th, .history-grid .data-grid td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Required field left empty on save */
.field.field-invalid input, .field.field-invalid textarea, .field.field-invalid select, .additional-field.field-invalid input { border-color: #e30808 !important; box-shadow: 0 0 0 1px rgba(227, 8, 8, .25); }
