.language-switch {
  max-width: 145px;
  height: 27px;
  min-height: 27px;
  font-size: 12px;
  background: #ffffffdd;
  color: #1e2f50;
  border: 1px solid #9daece;
  border-radius: 6px;
  padding: 2px 6px;
}
#flyout {
  width: var(--menu-width, 412px);
  max-width: calc(100vw - 68px);
  overflow: auto;
}
#flyout .module-menu-tiles {
  grid-template-columns: repeat(var(--menu-columns, 3), 120px);
  grid-auto-flow: row;
  justify-content: start;
}
.journal-access {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 6px 12px;
  color: #263c66;
  font-size: 13px;
}
.journal-access button {
  margin-left: auto;
}
@media (max-width: 500px) {
  #flyout {
    max-width: calc(100vw - 52px);
  }
}
.accurate-number-field .number-controls,
.invoice-number-field .number-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.number-controls > input[type='checkbox'] {
  appearance: none;
  width: 30px !important;
  min-width: 30px;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px;
  background: #a6aab2 radial-gradient(circle at 25% 50%, #fff 0 6px, transparent 6.5px);
}
.number-controls > input[type='checkbox']:checked {
  background: #314f97 radial-gradient(circle at 75% 50%, #fff 0 6px, transparent 6.5px);
}
.number-controls > select,
.number-controls > input:not([type='checkbox']) {
  flex: 1;
  min-width: 0;
  height: 33px;
  padding: 4px 8px;
}
.number-controls > [hidden] {
  display: none !important;
}
.numbering-card {
  margin: 8px 94px 15px 40px;
  background: #f8fafe;
  border: 1px solid #a6aab2;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ;
  padding: 20px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  min-height: calc(100vh - 200px);
}
.numbering-card h2 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 20px;
}
.numbering-card .field {
  display: grid;
  grid-template-columns: 190px 1fr;
  margin: 10px 0;
}
.numbering-preview {
  font-size: 20px;
  min-height: 40px;
  color: #1d3874;
  padding: 12px;
  border: 1px solid #d9dde5;
}
.number-format-parts {
  margin-top: 15px;
  border: 1px solid #c8ccd4;
  min-height: 200px;
}
.number-format-part {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #d9dde5;
  padding: 6px;
}
.number-format-part > span {
  flex: 1;
}
.number-format-part > button {
  padding: 2px 8px;
}
.report-paper {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  color: #0a111e;
}
.payment-stamp.paid {
  width: 160px;
  height: 160px;
  border: 0;
  background: url('/online-assets/paid.svg?v=5') center/contain no-repeat;
  font-size: 0;
  transform: translate(-45%, -50%);
  padding: 0;
}
.account-page .coa-section {
  margin: 0 9px 15px 8px;
  min-height: calc(100vh - 180px);
  padding: 20px 10px;
  gap: 28px;
  background: #f8fafe;
}
.coa-section .field {
  grid-template-columns: 190px minmax(0, 375px);
  gap: 12px;
  margin: 10px 20px;
}
.coa-section .field label {
  color: #0b162f;
  font-size: 16px;
}
.coa-section .field input,
.coa-section .field select,
.coa-section .field textarea {
  font-size: 15px;
  height: 34px;
}
.coa-section .field select {
  padding: 4px 8px;
}
.account-page > .horizontal-tabs {
  margin-top: 2px;
}
.payroll-header select {
  padding: 4px 8px;
}
.payroll-header > div:first-child .field > label {
  text-align: left;
}
.coa-section .field textarea {
  height: 70px;
}
.coa-section h2 {
  color: #2556da;
}
.coa-section .lookup {
  min-height: 33px;
  background: white;
}
.coa-example {
  font-size: 15px;
  color: #848890;
}
.report-paper h2 {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  font-size: 20px;
  font-weight: 700;
}
.report-paper h3 {
  font-size: 16px;
}
.report-paper table {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif ;
  font-size: 12px;
}
.statement-table td {
  font-size: 12px;
}
.statement-table .report-link {
  font: inherit;
}
.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #b7bbc3;
  border-radius: 8px;
  margin: 6px 14px 10px;
  padding: 5px;
  background: #f8fafe;
}
.dashboard-toolbar > select {
  width: 310px;
  height: 34px;
}
.dashboard-toolbar > button {
  background: #d6e4fe;
  color: #2552b4;
  min-width: 150px;
}
.dashboard.accurate-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px;
  background: #eaeef7;
}
.dashboard-panel {
  height: 237px;
  background: #fff;
  border: 1px solid #b7bbc3;
  border-radius: 8px;
  overflow: hidden;
}
.dashboard-panel-head {
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #132750;
  font-size: 14px;
}
.dashboard-refresh {
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 0;
}
.dashboard-panel-body {
  height: 205px;
  overflow: auto;
  border-top: 1px solid #d9dde5;
  margin: 0 10px;
  padding: 10px 0;
  color: #1e3257;
  font-size: 12px;
}
.dashboard-panel-body svg {
  width: 100%;
  height: 175px;
}
.dashboard-activity {
  display: flex;
  gap: 26px;
  padding: 8px 7px 8px 13px;
  border-left: 1px solid #d9dde5;
  margin-left: 32px;
}
.dashboard-activity time {
  font-weight: 600;
}
.dashboard-activity button {
  font-size: 12px;
  text-align: left;
  padding: 0;
  background: none;
  border: 0;
  color: #244174;
}
.dashboard-summary {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 5px;
  align-items: center;
}
.dashboard-donut {
  width: 110px;
  height: 110px;
  border: 12px solid #316bfe;
  border-top-color: #ffc83e;
  border-right-color: #f38906;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
}
.dashboard-amount-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 0;
}
.dashboard-item-sale {
  position: relative;
  padding: 10px 0 13px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
}
.rank {
  position: absolute;
  left: 0;
  top: 11px;
  background: #feac49;
  border: 2px solid #f9d879;
  border-radius: 50%;
  color: white;
  width: 22px;
  height: 22px;
  text-align: center;
}
.dashboard-item-sale .bar {
  height: 10px;
  background: #eaeef7;
  border-radius: 10px;
  grid-column: 1/-1;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #316bfe;
}
.dashboard-item-sale:nth-child(2) .bar i {
  background: #ffcf3e;
}
.dashboard-item-sale:nth-child(3) .bar i {
  background: #7da5e9;
}
@media (max-width: 1000px) {
  .dashboard.accurate-dashboard {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .dashboard.accurate-dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard-toolbar > select {
    width: 180px;
  }
}
.payroll-header {
  display: flex !important;
  justify-content: space-between;
  padding-left: 70px !important;
}
.payroll-header > div {
  width: 48%;
}
.payroll-header .field {
  grid-template-columns: 190px 1fr;
}
.payroll-period {
  display: flex;
  gap: 16px;
}
.payroll-period .field:first-child {
  flex: 3;
}
.payroll-period .field:last-child {
  flex: 1;
  display: block;
}
.payroll-period .field:last-child > label {
  display: none;
}
.payroll-card {
  min-height: calc(100vh - 350px);
  padding: 10px;
}
.payroll-card h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 0 auto;
}
.payroll-card .grid-controls {
  display: flex;
  gap: 28px;
  align-items: center;
}
.payroll-find {
  width: 32%;
  text-align: left;
  background: white;
  border: 1px solid #b7bbc3;
  color: #848890;
}
.payroll-totals .total-box {
  grid-template-columns: 1fr 1fr;
  min-width: 420px;
}
@media (max-width: 850px) {
  .numbering-card {
    grid-template-columns: 1fr;
    margin: 10px;
  }
  .language-switch {
    max-width: 105px;
  }
  .numbering-card .field {
    grid-template-columns: 120px 1fr;
  }
}
@media (max-width: 650px) {
  #header {
    max-width: 100vw;
    overflow: hidden;
  }
  .header-actions {
    min-width: 0;
  }
  .header-actions .company {
    display: none;
  }
  .language-switch {
    width: 104px;
    min-width: 80px;
  }
  .invoice-header-left {
    width: 100%;
    min-width: 0;
  }
  .invoice-header-left .field {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
  }
  .invoice-header-left .invoice-currency {
    display: none;
  }
  .invoice-header-right {
    width: 100%;
  }
  .invoice-header-right .invoice-number-field {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .document-header.invoice-header-exact {
    padding-left: 10px;
    padding-right: 10px;
    gap: 10px;
  }
  .payroll-header {
    padding-left: 10px !important;
    flex-direction: column;
  }
  .payroll-header > div {
    width: 100%;
  }
  .payroll-header .field {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .payroll-period .field:first-child {
    display: grid;
  }
  .coa-section .field {
    grid-template-columns: 95px minmax(0, 1fr);
    margin-left: 0;
    margin-right: 0;
  }
  .payment-stamp {
    max-width: 85%;
    font-size: 29px;
  }
}

/* Company / branch picker and access-group module checklist */
.company-list { display: grid; gap: 6px; margin: 8px 0 12px; max-height: 50vh; overflow: auto; }
.company-choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #d6dbe3; border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.company-choice:hover, .company-choice.current { border-color: #3260b6; background: #f2f4f7; }
.company-choice small { color: #6f737a; text-transform: capitalize; }
.auth-card .link { background: none; border: 0; color: #3260b6; cursor: pointer; margin-top: 8px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 12px; max-height: 320px; overflow: auto; padding: 6px; border: 1px solid #d6dbe3; border-radius: 8px; }
.checklist label { display: flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Request progress bar and post-sign-in data loading screen */
#acc-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .2s; overflow: hidden; }
#acc-progress.active { opacity: 1; }
#acc-progress::before { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: #3260b6; animation: acc-progress 1.1s ease-in-out infinite; }
@keyframes acc-progress { from { left: -40%; } to { left: 100%; } }
.preload-screen .auth-card { text-align: center; }
.preload-track { height: 8px; border-radius: 8px; background: #e3e8f0; overflow: hidden; margin: 12px 0 6px; }
.preload-fill { height: 100%; width: 0; background: #3260b6; transition: width .25s; }
.preload-count, .preload-label { color: #6f737a; font-size: 12px; margin: 4px 0; }
