@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap";

/* src/notifications.css */
.notification-control {
  position: relative;
}
.notification-control > button {
  cursor: pointer;
}
.notification-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  width: min(290px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 14px;
  background: #fff;
  border: 1px solid #d8e3f0;
  border-radius: 12px;
  color: #193456;
  box-shadow: 0 12px 32px #19345626;
}
.notification-panel > strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.notification-panel > p {
  margin: 8px 0 0;
}
.head-actions .notification-panel > button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 4px;
  text-align: left;
  color: #193456;
  border-top: 1px solid #e8edf5;
  cursor: pointer;
}
.head-actions .notification-panel > button:hover,
.head-actions .notification-panel > button:focus-visible {
  background: #edf5ff;
}
.notification-panel small {
  color: #4c617d;
}
aside nav .invoice-waiting-badge {
  white-space: nowrap;
}
.notification-panel b {
  overflow-wrap: anywhere;
}
.notification-target > td {
  background: #e8f1ff !important;
}

/* src/sticky-tables.css */
.fixed-table-scroll {
  max-height: min(680px, 68vh);
  max-width: 100%;
  overflow: auto;
}
.fixed-table-scroll > table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: visible;
}
table [data-fixed-table-header],
.fixed-table-scroll > table tr > :is(th, td)[data-fixed-table-header] {
  position: sticky !important;
  top: var(--fixed-table-top, 0px) !important;
  z-index: 30 !important;
  background: #f6f8fc;
}
table [data-fixed-table-column] {
  position: sticky !important;
  left: var(--fixed-table-left, 0px) !important;
  z-index: 12 !important;
  background: var(--finance-bg, #fbfdff);
  box-shadow: 1px 0 0 #d8e3f1;
}
.fixed-table-scroll table [data-fixed-table-header][data-fixed-table-column] {
  z-index: 35 !important;
  background: #eaf2ff;
}
.pl-annual-view :is(th, td):not([data-fixed-table-column]) {
  left: auto;
}
.payroll-table-scroll input[inputmode=decimal] {
  width: 155px;
}
.synced-table-scroll .excel-table.explicit-sheet-header thead th {
  padding: 9px 13px;
  background: #eaf2ff;
  color: #254b80;
  text-align: left;
  border-bottom: 1px solid #c4d3e7;
  border-right: 1px solid #dce5f1;
}
.synced-table-scroll .excel-table.explicit-sheet-header tbody tr:first-child td {
  top: auto !important;
  z-index: auto !important;
  background: #fff !important;
  color: #263246 !important;
  font-weight: 400 !important;
  box-shadow: none;
  border-bottom: 1px solid #e3eaf4 !important;
}
.synced-table-scroll .excel-table.explicit-sheet-header tbody tr:first-child td:not([data-fixed-table-column]) {
  position: static !important;
}
.synced-table-scroll .excel-table.explicit-sheet-header tbody tr:first-child td[data-fixed-table-column] {
  z-index: 12 !important;
}

/* src/dashboard-cards.css */
.dashboard-metrics {
  margin: 0 0 26px;
  min-width: 0;
}
.metric-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.metric-section-title h2 {
  font-size: 14px;
  margin: 0;
  color: #34445c;
}
.metric-section-title > span {
  font-size: 11px;
  color: #7c899b;
}
.metric-main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.metric-main-grid > .metric-card:nth-child(-n+4) {
  grid-column: span 3;
}
.metric-main-grid > .metric-card:nth-child(n+5) {
  grid-column: span 4;
}
.metric-card {
  --metric-color:#53789f;
  min-width: 0;
  padding: 20px 17px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-top: 3px solid var(--metric-color);
  border-radius: 12px;
  box-shadow: 0 3px 12px #203c6104;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric-label {
  font-size: 13px;
  font-weight: 700;
  color: #46556a;
  display: block;
}
.metric-card > strong {
  font-size: clamp(19px, 1.7vw, 29px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: #24364f;
}
.metric-card .metric-negative {
  color: #c44c59;
}
.metric-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #7e8a9b;
}
.metric-rate b {
  font-size: 15px;
  color: var(--metric-color);
  font-variant-numeric: tabular-nums;
}
.metric-card > small {
  font-size: 10px;
  color: #7c899b;
  line-height: 1.6;
}
.metric-sales {
  --metric-color:#3979d6;
}
.metric-cost {
  --metric-color:#d78a29;
}
.metric-gross {
  --metric-color:#319fba;
}
.metric-profit {
  --metric-color:#299375;
}
.metric-flr {
  --metric-color:#8764bc;
  background:
    linear-gradient(
      145deg,
      #fff,
      #f7f3ff);
  border-color: #e3d9f2;
  border-top-color: #8764bc;
}
.metric-labor {
  --metric-color:#4c83d6;
}
.metric-rent {
  --metric-color:#9a74ce;
}
.metric-other {
  --metric-color:#6c7f97;
}
.metric-help {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #8a7ca0;
  margin-top: 5px;
}
.metric-composition {
  height: 7px;
  display: flex;
  gap: 2px;
  overflow: hidden;
  border-radius: 5px;
  background: #e9e3f0;
}
.metric-composition > span {
  min-width: 0;
}
.metric-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  font-size: 9px;
  color: #7a7186;
}
.metric-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.metric-legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.metric-subtitle {
  margin-top: 20px;
}
.metric-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric-secondary {
  border-top-width: 1px;
  border-left: 3px solid var(--metric-color);
  padding: 16px 18px;
  gap: 9px;
}
.metric-secondary > strong {
  font-size: 23px;
}
.metric-footnote {
  font-size: 10px;
  color: #8290a2;
  margin: 12px 0 0;
  line-height: 1.7;
}
@media (max-width:1300px) {
  .metric-card > strong {
    font-size: 25px;
  }
}
@media (max-width:900px) {
  .metric-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-main-grid > .metric-card:nth-child(n) {
    grid-column: span 1;
  }
  .metric-sub-grid {
    grid-template-columns: 1fr;
  }
  .metric-section-title > span {
    font-size: 10px;
  }
  .metric-card > strong {
    font-size: 24px;
  }
}
@media (max-width:480px) {
  .metric-main-grid {
    grid-template-columns: 1fr;
  }
  .metric-flr {
    grid-column: auto;
  }
  .metric-section-title {
    align-items: flex-start;
  }
  .metric-section-title > span {
    max-width: 145px;
    text-align: right;
  }
  .metric-card {
    padding: 17px;
  }
  .metric-card > strong {
    font-size: 27px;
  }
}

/* src/financial-categories.css */
.finance-category-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  padding: 12px 20px;
  border-top: 1px solid #eef1f6;
  font-size: 11px;
  color: #66748a;
}
.finance-category-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.finance-category-legend i {
  height: 8px;
  width: 8px;
  border-radius: 2px;
  background: var(--finance-color);
}
.finance-tone-sales {
  --finance-color:#3979d6;
  --finance-bg:#f0f6ff;
}
.finance-tone-cost {
  --finance-color:#e69434;
  --finance-bg:#fff7eb;
}
.finance-tone-labor {
  --finance-color:#4c83d6;
  --finance-bg:#eef5fe;
}
.finance-tone-rent {
  --finance-color:#9a74ce;
  --finance-bg:#f7f1ff;
}
.finance-tone-profit {
  --finance-color:#299375;
  --finance-bg:#edf8f4;
}
.finance-tone-other {
  --finance-color:#6c7f97;
  --finance-bg:#f5f7fa;
}
.pl-annual-view tr[data-finance-tone] td {
  background: var(--finance-bg) !important;
}
.pl-annual-view tr[data-finance-tone] td:first-child {
  border-left: 4px solid var(--finance-color) !important;
  color: var(--finance-color);
}
.pl-annual-view tr[data-finance-tone] td:nth-child(2) {
  color: var(--finance-color);
  font-weight: 650;
}
.pl-annual-view tr.pl-total-row[data-finance-tone] td {
  font-weight: 750;
  border-top: 2px solid var(--finance-color) !important;
}
.pl-annual-view tr[data-finance-tone]:hover td {
  filter: brightness(.98);
}
.flr-breakdown {
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid #e4d9f1;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
}
.flr-breakdown summary {
  cursor: pointer;
  padding: 16px 0;
  color: #7454a1;
  font-size: 12px;
  font-weight: 650;
}
.flr-breakdown > p {
  font-size: 11px;
  color: #7c899b;
  line-height: 1.7;
}
.flr-detail-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
}
.flr-detail-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}
.flr-detail-table th,
.flr-detail-table td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #edf0f5;
  text-align: right;
  font-size: 12px;
}
.flr-detail-table th:first-child,
.flr-detail-table td:first-child {
  text-align: left;
}
.flr-detail-table th {
  color: #78859b;
  font-weight: 500;
  background: #faf8fd;
}
.flr-detail-table td:first-child {
  border-left: 4px solid var(--finance-color);
  color: var(--finance-color);
  font-weight: 650;
}
.flr-detail-table tr td {
  background: var(--finance-bg);
}
.flr-detail-table tfoot td {
  font-weight: 750;
  background: #f7f3fc;
}
.flr-part-percent {
  font-variant-numeric: tabular-nums;
}

/* src/dashboard-charts.css */
.dashboard-expense-chart {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(24px, 3fr) max-content;
  gap: 9px 10px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}
.dashboard-expense-chart li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 24px;
}
.dashboard-expense-label {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}
.dashboard-expense-track {
  display: block;
  height: 13px;
  background: #edf3fb;
  border-radius: 4px;
}
.dashboard-expense-bar {
  display: block;
  height: 100%;
  background: #4d83e6;
  border-radius: inherit;
}
.dashboard-expense-bar[data-negative] {
  background: #ad6173;
}
.dashboard-expense-amount {
  white-space: nowrap;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dashboard-expense-amount small {
  color: #63758e;
}
.dashboard-expense-empty {
  font-size: 13px;
  color: #63758e;
}
.dashboard-annual {
  margin: 0 0 12px;
}
.dashboard-annual h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.dashboard-annual dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.dashboard-annual dl > div {
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  padding: 8px;
  background: #f7faff;
  min-width: 0;
}
.dashboard-annual dt,
.dashboard-annual small {
  font-size: 11px;
  color: #526784;
}
.dashboard-annual dd {
  margin: 4px 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.dashboard-trend-tooltip {
  background: #fff;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
}
.dashboard-trend-tooltip dl {
  margin: 4px 0 0;
}
.dashboard-trend-tooltip dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-trend-tooltip dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width:820px) {
  .dashboard-annual dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* src/style.css */
:root {
  font-family:
    Inter,
    "Noto Sans JP",
    sans-serif;
  color: #172033;
  background: #f5f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.app {
  display: flex;
  min-height: 100vh;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 254px;
  background: #fff;
  border-right: 1px solid #e8edf5;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: #1f4b9a;
  letter-spacing: .06em;
}
.brand > span,
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(
      135deg,
      #1764db,
      #3b82f6);
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 7px 16px #2563eb35;
}
.brand button {
  display: none;
  margin-left: auto;
  border: 0;
  background: none;
}
.org {
  margin: 10px 16px 19px;
  padding: 11px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.org > span,
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e9f1ff;
  color: #2363c9;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.org div {
  min-width: 0;
}
.org b,
.org small {
  display: block;
  font-size: 12px;
}
.org small {
  color: #78849a;
  margin-top: 3px;
}
.org svg {
  width: 11px;
}
nav {
  padding: 0 12px;
  overflow: auto;
  flex: 1;
}
nav button {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  color: #647087;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  margin: 3px 0;
  text-align: left;
}
nav button svg {
  width: 19px;
}
nav button:hover {
  background: #f4f7fb;
  color: #1f4b9a;
}
nav button.active {
  background: #eaf2ff;
  color: #1d5fc6;
  font-weight: 700;
}
nav em {
  font-style: normal;
  margin-left: auto;
  background: #f05b69;
  color: #fff;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 10px;
}
.aside-foot {
  border-top: 1px solid #edf0f5;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aside-foot > div:nth-child(2) {
  flex: 1;
}
.aside-foot b,
.aside-foot small {
  display: block;
  font-size: 12px;
}
.aside-foot small {
  color: #8390a3;
  margin-top: 3px;
}
.aside-foot button,
.head-actions button {
  background: none;
  border: 0;
  color: #758096;
}
.aside-foot svg {
  width: 18px;
}
main {
  margin-left: 254px;
  width: calc(100% - 254px);
}
header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crumb {
  font-size: 12px;
  color: #909aad;
}
.crumb b {
  color: #465267;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #7b8798;
  font-size: 12px;
}
.period-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  background: #f7fbff;
  color: #48617f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.head-actions button {
  position: relative;
}
.head-actions svg {
  width: 19px;
}
.head-actions i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f04e63;
  right: 4px;
  top: 2px;
}
.hamb {
  display: none;
  border: 0;
  background: none;
}
.content {
  max-width: 1480px;
  margin: auto;
  padding: 32px 34px 54px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}
.title-row h1 {
  margin: 6px 0 5px;
  font-size: 25px;
  letter-spacing: -.04em;
}
.title-row p,
.card-head p {
  margin: 0;
  color: #8490a3;
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  color: #3970c7;
  font-weight: 700;
  letter-spacing: .14em;
}
.secondary {
  height: 39px;
  padding: 0 14px;
  border: 1px solid #dfe5ee;
  background: #fff;
  border-radius: 9px;
  color: #59677d;
  font-size: 12px;
}
.secondary svg {
  width: 14px;
  vertical-align: middle;
}
.primary {
  height: 41px;
  border: 0;
  border-radius: 9px;
  background: #2468d6;
  color: #fff;
  padding: 0 17px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 5px 12px #2468d62b;
}
.primary svg {
  width: 16px;
  vertical-align: middle;
  margin-right: 5px;
}
.primary:hover {
  background: #1858bd;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 18px;
}
.kpi {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 13px;
  box-shadow: 0 3px 12px #1b3e7108;
}
.kicon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e9f1ff;
  color: #276bd3;
  display: grid;
  place-items: center;
}
.kicon svg {
  width: 20px;
}
.kicon.cyan {
  background: #e8f8fb;
  color: #1696aa;
}
.kicon.green {
  background: #eaf8f1;
  color: #18a06a;
}
.kicon.orange {
  background: #fff2e6;
  color: #e08432;
}
.kpi > div:last-child {
  flex: 1;
}
.kpi span,
.kpi strong,
.kpi em {
  display: block;
}
.kpi span {
  font-size: 11px;
  color: #8390a2;
  margin-bottom: 6px;
}
.kpi strong {
  font-size: 20px;
}
.kpi em {
  font-style: normal;
  font-size: 10px;
  color: #16a06a;
  margin-top: 5px;
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr);
  gap: 18px;
  margin-bottom: 18px;
}
.dash-grid.lower {
  grid-template-columns: 1fr 1fr;
}
.card {
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  box-shadow: 0 3px 14px #1c396508;
}
.chart,
.tasks,
.recent {
  padding: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-head h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.task {
  display: flex;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f6;
  gap: 10px;
}
.task > span {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: #fff5df;
  color: #d79518;
}
.task > span.blue {
  background: #e9f1ff;
  color: #2365cb;
}
.task > span.purple {
  background: #f0edff;
  color: #785bd2;
}
.task > span.red {
  background: #ffebed;
  color: #dd5360;
}
.task div {
  flex: 1;
}
.task b,
.task small,
.activity b,
.activity small {
  display: block;
  font-size: 11px;
}
.task small,
.activity small {
  color: #909bad;
  margin-top: 3px;
}
.task strong {
  font-size: 12px;
}
.activity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f2f6;
}
.activity > span {
  color: #e5a224;
}
.activity > span.ok {
  color: #19a06d;
}
.activity svg {
  width: 18px;
}
.activity div {
  flex: 1;
}
.activity time {
  font-size: 10px;
  color: #9ca5b4;
}
.filterbar {
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}
.filterbar select,
.form-card select,
.form-card input {
  height: 37px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #536177;
}
.saved {
  margin-left: auto;
  align-self: center;
  color: #1b9a69;
  font-size: 11px;
}
.saved svg {
  width: 15px;
  vertical-align: middle;
}
.table-card {
  overflow: hidden;
}
.table-card > .card-head {
  padding: 18px 20px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  color: #7e899a;
  background: #f8f9fb;
  font-size: 10px;
  font-weight: 600;
  padding: 11px 17px;
  border-bottom: 1px solid #e8ecf2;
}
td {
  padding: 14px 17px;
  border-bottom: 1px solid #edf0f4;
  color: #4c586b;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: #fbfcfe;
}
tr.total td {
  font-weight: 700;
  background: #f1f6ff;
}
.pill,
.status {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 9px;
  background: #edf3ff;
  color: #2e68bd;
  font-size: 10px;
}
.status.s0 {
  background: #fff1da;
  color: #c47b0b;
}
.status.s1 {
  background: #e8f8f0;
  color: #15885b;
}
.status.s2 {
  background: #e9f1ff;
  color: #2463c6;
}
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 17px;
}
.flow > div {
  font-size: 11px;
  color: #9ba5b3;
}
.flow > div span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #edf0f4;
  margin-right: 7px;
}
.flow > div.active {
  color: #2363c9;
  font-weight: 600;
}
.flow > div.active span {
  background: #286bd5;
  color: #fff;
}
.flow > b {
  color: #c5ccd6;
  margin: 0 25px;
}
.float {
  float: right;
  margin-top: 15px;
}
.searchbox {
  position: relative;
  justify-content: flex-start;
}
.searchbox svg {
  position: absolute;
  left: 31px;
  width: 16px;
  color: #8c97a7;
}
.searchbox input {
  height: 37px;
  width: 270px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding-left: 35px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-card {
  padding: 22px;
}
.form-card h3 {
  font-size: 14px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card h3 svg {
  width: 18px;
  color: #3470ce;
}
.form-card > p {
  font-size: 11px;
  color: #7d899b;
}
.form-help {
  font-size: 12px;
  color: #7d899b;
  margin: 12px 0 0;
}
.notice-card.compact {
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 12px;
}
.form-card label:not(.toggle) {
  display: block;
  font-size: 11px;
  color: #647187;
  margin: 15px 0;
}
.form-card label input,
.form-card label select {
  display: block;
  width: 100%;
  margin-top: 7px;
}
.connection {
  padding: 13px;
  background: #f7f9fc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.connection > span:first-child {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #3372d0;
  font-weight: 700;
}
.connection div {
  flex: 1;
}
.connection b,
.connection small {
  display: block;
  font-size: 11px;
}
.connection small {
  color: #8d98aa;
  margin-top: 3px;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 11px;
}
.toggle input {
  display: none;
}
.toggle span {
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #ccd3dd;
  position: relative;
}
.toggle span:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.toggle input:checked + span {
  background: #286bd5;
}
.toggle input:checked + span:after {
  left: 18px;
}
.userrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f4;
}
.userrow > span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf1fc;
  color: #2666c9;
  font-weight: 700;
}
.userrow div {
  flex: 1;
}
.userrow b,
.userrow small {
  display: block;
  font-size: 11px;
}
.userrow small {
  color: #8995a6;
  margin-top: 3px;
}
.userrow select {
  width: 180px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #fff;
}
.login-art {
  background:
    linear-gradient(
      145deg,
      #123b82,
      #1767d6 60%,
      #2783e8);
  color: #fff;
  padding: 58px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  right: -190px;
  bottom: -130px;
  box-shadow: 0 0 0 80px #ffffff0b, 0 0 0 160px #ffffff08;
}
.login-art h1 {
  font-size: 44px;
  line-height: 1.35;
  margin: 20px 0;
}
.login-art p {
  color: #d3e2fa;
  line-height: 1.9;
  font-size: 13px;
}
.light {
  color: #bed6fc;
}
.login-mini {
  z-index: 1;
  width: 265px;
  padding: 20px;
  background: #ffffff14;
  border: 1px solid #ffffff2a;
  backdrop-filter: blur(10px);
  border-radius: 14px;
}
.login-mini b,
.login-mini strong,
.login-mini span {
  display: block;
}
.login-mini b {
  font-size: 11px;
  color: #d4e3fa;
}
.login-mini strong {
  font-size: 24px;
  margin: 9px 0;
}
.login-mini span {
  font-size: 11px;
  color: #96efcb;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form form {
  width: min(370px, 100%);
}
.login-form h2 {
  font-size: 29px;
  margin: 11px 0 7px;
}
.login-form form > p {
  font-size: 12px;
  color: #8c97a7;
  margin-bottom: 30px;
}
.login-form label {
  display: block;
  font-size: 11px;
  color: #5d697c;
  font-weight: 600;
  margin: 18px 0;
}
.login-form input {
  display: block;
  width: 100%;
  height: 45px;
  border: 1px solid #dce2ea;
  border-radius: 9px;
  padding: 0 13px;
  margin-top: 8px;
  outline: none;
}
.login-form input:focus {
  border-color: #3b7bdc;
  box-shadow: 0 0 0 3px #3b7bdc18;
}
.password {
  position: relative;
}
.password input {
  padding-right: 45px;
}
.password button {
  position: absolute;
  right: 8px;
  top: 12px;
  border: 0;
  background: none;
  color: #8994a4;
}
.password svg {
  width: 18px;
}
.wide {
  width: 100%;
  height: 45px;
  margin-top: 7px;
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a1a9b5;
  font-size: 10px;
  margin: 21px 0;
}
.or span {
  height: 1px;
  background: #e5e8ed;
  flex: 1;
}
.google {
  width: 100%;
  height: 43px;
  border: 1px solid #dce2ea;
  border-radius: 9px;
  background: #fff;
  color: #566276;
}
.google b {
  font-size: 17px;
  color: #4285f4;
  margin-right: 8px;
}
.login-form small {
  display: block;
  text-align: center;
  color: #a0a8b4;
  margin-top: 20px;
}
.error {
  padding: 10px;
  background: #fff0f1;
  color: #c94e5a;
  border-radius: 8px;
  font-size: 11px;
}
.mobile {
  display: none;
}
@media (max-width:980px) {
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dash-grid,
  .dash-grid.lower {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .flow > b {
    margin: 0 8px;
  }
  .flow > div {
    font-size: 0;
  }
  .flow > div span {
    font-size: 11px;
    margin: 0;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .mobile {
    display: flex;
    padding: 0;
    margin-bottom: 50px;
  }
  .login-form {
    min-height: 100vh;
  }
}
@media (max-width:720px) {
  aside {
    transform: translateX(-100%);
    transition: .2s;
    box-shadow: 10px 0 30px #0002;
  }
  aside.open {
    transform: none;
  }
  .brand button {
    display: block;
  }
  main {
    margin-left: 0;
    width: 100%;
  }
  .hamb {
    display: block;
  }
  .crumb {
    display: none;
  }
  .content {
    padding: 23px 16px;
  }
  .title-row {
    align-items: flex-start;
  }
  .title-row p {
    max-width: 220px;
  }
  .kpis {
    grid-template-columns: 1fr;
  }
  .head-actions span {
    display: none;
  }
  .period-chip {
    display: none;
  }
  header {
    padding: 0 16px;
  }
  .table-card {
    overflow-x: auto;
  }
  table {
    min-width: 680px;
  }
  .filterbar {
    overflow: auto;
  }
  .saved {
    white-space: nowrap;
  }
  .flow {
    justify-content: space-between;
  }
  .flow > b {
    margin: 0;
  }
  .title-row h1 {
    font-size: 22px;
  }
}
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.upload-button input,
.file-select input {
  display: none;
}
.ocr-layout {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(400px, 1.1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.drop-card {
  padding: 18px;
}
.dropzone {
  min-height: 310px;
  border: 2px dashed #cad8ea;
  border-radius: 13px;
  background:
    linear-gradient(
      180deg,
      #f8fbff,
      #f4f8fe);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: .2s;
}
.dropzone:hover {
  border-color: #4380da;
  background: #f1f7ff;
}
.upload-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e5efff;
  color: #286bd5;
  display: grid;
  place-items: center;
}
.upload-ring svg {
  width: 24px;
}
.dropzone h3 {
  font-size: 14px;
  margin: 16px 0 6px;
}
.dropzone p {
  font-size: 11px;
  color: #8491a4;
  margin: 0 0 16px;
}
.dropzone.loading .upload-ring {
  animation: pulse 1s infinite;
}
.progress {
  width: 220px;
  height: 5px;
  background: #dde6f2;
  border-radius: 10px;
  overflow: hidden;
  margin: 5px 0 18px;
}
.progress i {
  display: block;
  height: 100%;
  width: 65%;
  background:
    linear-gradient(
      90deg,
      #286bd5,
      #53a4ef);
  border-radius: 10px;
  animation: scan 1.1s infinite;
}
.done-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #169766;
  background: #e7f7ef;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 11px;
  margin-bottom: 15px;
}
.done-label svg {
  width: 15px;
}
.file-select {
  display: inline-flex;
  align-items: center;
}
.storage-select {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 2px 0;
}
.storage-select > div {
  flex: 1;
}
.storage-select b,
.storage-select small {
  display: block;
  font-size: 11px;
}
.storage-select small {
  color: #8995a6;
  margin-top: 3px;
}
.storage-select select {
  height: 38px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #526075;
  font-size: 11px;
}
.ocr-result {
  padding: 22px;
  animation: appear .3s ease;
}
.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.result-head > div {
  display: flex;
  gap: 10px;
}
.result-head h3 {
  font-size: 14px;
  margin: 1px 0 5px;
}
.result-head p {
  font-size: 10px;
  color: #8490a3;
  margin: 0;
}
.ai-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background:
    linear-gradient(
      135deg,
      #5b6ee1,
      #3aa3e7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.confidence {
  color: #188f62;
  background: #e8f7ef;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 9px;
}
.ocr-result > label {
  display: block;
  font-size: 10px;
  color: #69758a;
  margin: 12px 0;
}
.ocr-result > label > div {
  position: relative;
}
.ocr-result input {
  width: 100%;
  height: 38px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  margin-top: 6px;
  padding: 0 35px 0 11px;
  color: #344156;
}
.ocr-result label svg {
  position: absolute;
  right: 10px;
  top: 15px;
  width: 15px;
  color: #17a06a;
}
.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}
.history {
  margin-top: 18px;
}
@keyframes pulse {
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px #2c73da12;
  }
}
@keyframes scan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(160%);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width:980px) {
  .ocr-layout {
    grid-template-columns: 1fr;
  }
}
.brand-text {
  font-size: 18px;
  letter-spacing: -.02em;
  color: #194f9e;
  text-transform: none;
}
.login-simple {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.login-simple:after {
  right: -170px;
  bottom: -230px;
}
.login-simple > div {
  z-index: 1;
}
.login-simple .login-pl {
  display: block;
  font-size: 76px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.06em;
  color: #fff;
}
.login-simple h1 {
  font-size: 52px;
  line-height: 1.1;
  margin: 8px 0 24px;
  letter-spacing: -.05em;
}
.login-simple p {
  font-size: 15px;
  color: #dbeafe;
  letter-spacing: .08em;
}
.excel-card {
  margin-top: 20px;
  overflow: hidden;
}
.excel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid #e5eaf1;
  background: #fff;
}
.excel-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.excel-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #188c5b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.excel-head h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.excel-head p,
.excel-head > span {
  font-size: 10px;
  color: #8290a3;
  margin: 0;
}
.excel-scroll {
  overflow: auto;
  max-height: 680px;
  background: #fff;
}
.excel-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
}
.excel-table td {
  min-width: 82px;
  height: 29px;
  padding: 4px 7px;
  border: 0;
  border-right: 1px solid #d9dee7;
  border-bottom: 1px solid #d9dee7;
  white-space: pre-wrap;
  color: #263246;
  background: #fff;
  text-align: right;
}
.excel-table td:first-child {
  min-width: 145px;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 #cfd6e2;
}
.excel-table td:nth-child(2) {
  min-width: 165px;
  text-align: left;
}
.excel-table tr:first-child td {
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  height: 38px;
}
.excel-table tr:nth-child(3) td,
.excel-table tr:nth-child(4) td {
  font-weight: 700;
  background: #eef3fa;
}
.excel-table td.bold {
  font-weight: 700;
}
.excel-table td:empty {
  color: transparent;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0f4;
}
.setting-row:last-child {
  border-bottom: 0;
}
.setting-row > div {
  flex: 1;
}
.setting-row b,
.setting-row small {
  display: block;
  font-size: 11px;
}
.setting-row small {
  color: #8c97a8;
  margin-top: 4px;
}
.switch {
  width: 40px;
  height: 23px;
  border: 0;
  border-radius: 20px;
  background: #cbd4e0;
  padding: 2px;
  position: relative;
  flex: 0 0 auto;
}
.switch i {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0003;
  transition: .2s;
}
.switch.on {
  background: #2a6dd7;
}
.switch.on i {
  transform: translateX(17px);
}
@media (max-width:720px) {
  .login-simple .login-pl {
    font-size: 48px;
  }
  .login-simple h1 {
    font-size: 36px;
  }
  .excel-head > span {
    display: none;
  }
  .excel-scroll {
    max-height: 560px;
  }
  .excel-table td {
    min-width: 74px;
  }
  .brand-text {
    font-size: 16px;
  }
}
.login-simple h1 {
  font-size: 54px;
  white-space: nowrap;
  margin: 0 0 22px;
  letter-spacing: -.045em;
}
.login-simple p {
  margin: 0;
}
.excel-table.plain td,
.excel-table.plain td:first-child,
.excel-table.plain tr:first-child td,
.excel-table.plain tr:nth-child(3) td,
.excel-table.plain tr:nth-child(4) td {
  background: #fff !important;
  color: #263246 !important;
}
.excel-table.plain tr:first-child td {
  font-size: 11px;
  height: 31px;
}
.excel-table.plain td:first-child {
  position: static;
  box-shadow: none;
}
.section-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e5eaf1;
  background: #fff;
}
.section-label h3 {
  font-size: 15px;
  margin: 0;
}
.section-label p {
  font-size: 10px;
  color: #8591a3;
  margin: 0;
}
.monthly-blocks {
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(440px, 1.2fr);
  gap: 18px;
  align-items: start;
}
.monthly-blocks .excel-card {
  margin-top: 0;
}
.monthly-detail {
  grid-column: 1/-1;
}
.monthly-detail .excel-scroll {
  max-height: 620px;
}
.split-stack {
  display: grid;
  gap: 18px;
}
.split-stack .excel-card {
  margin-top: 0;
}
.split-stack .excel-scroll {
  max-height: 620px;
}
.monthly-blocks .excel-table td {
  min-width: 145px;
}
.monthly-blocks .excel-table td:first-child {
  min-width: 185px;
}
.monthly-detail .excel-table td {
  min-width: 128px;
}
.monthly-detail .excel-table td:nth-child(2) {
  min-width: 210px;
}
.split-stack .excel-table td {
  min-width: 92px;
}
.split-stack .excel-table td:first-child {
  min-width: 120px;
}
.split-stack .excel-table td:nth-child(2) {
  min-width: 175px;
}
@media (max-width:980px) {
  .monthly-blocks {
    grid-template-columns: 1fr;
  }
  .monthly-detail {
    grid-column: auto;
  }
}
@media (max-width:720px) {
  .login-simple h1 {
    font-size: 36px;
  }
  .monthly-blocks .excel-table td {
    min-width: 110px;
  }
}
.interactive td {
  padding: 0;
  height: 38px;
}
.interactive td:not(.input-cell) {
  padding: 7px 9px;
}
.interactive .input-cell {
  background: #f8fbff !important;
}
.interactive .input-cell input,
.interactive .input-cell select {
  width: 100%;
  height: 37px;
  border: 0;
  background: transparent;
  padding: 0 8px;
  color: #223047;
  font: inherit;
  outline: none;
}
.interactive .input-cell input:focus,
.interactive .input-cell select:focus {
  background: #eaf3ff;
  box-shadow: inset 0 0 0 2px #2b70d8;
}
.interactive .check-cell {
  text-align: center;
}
.interactive .check-cell input {
  width: 16px;
  height: 16px;
  accent-color: #286bd5;
}
.interactive .calc-cell {
  background: #f3f5f8 !important;
  color: #3d495b !important;
  font-weight: 600;
}
.auto-chip,
.input-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 700;
}
.auto-chip {
  background: #edf1f6;
  color: #627086;
}
.input-chip {
  background: #e8f1ff;
  color: #2566ca;
}
.sheet-selectors {
  margin-bottom: 18px;
}
.sheet-selectors .saved {
  color: #2970d4;
}
.monthly-detail .interactive td:first-child {
  min-width: 72px;
}
.monthly-detail .interactive td:nth-child(3) {
  min-width: 145px;
}
.monthly-detail .interactive td:nth-child(4) {
  min-width: 90px;
}
.monthly-detail .interactive td:nth-child(7) {
  min-width: 110px;
}
.monthly-detail .interactive td:nth-child(8) {
  min-width: 190px;
}
.excel-card {
  border-color: #e7ebf2;
  box-shadow: 0 8px 24px #243b6410;
}
.section-label,
.excel-head {
  padding: 18px 22px;
  background: #fff;
}
.section-label h3,
.excel-head h3 {
  font-size: 15px;
  letter-spacing: -.02em;
}
.excel-table.interactive {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
.excel-table.interactive td {
  border-right: 0;
  border-bottom: 1px solid #edf0f4;
  padding: 9px 13px;
  height: 42px;
}
.excel-table.interactive tr:first-child td {
  background: #f6f8fb !important;
  color: #506078 !important;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 1px 0 #e1e6ee;
}
.excel-table.interactive tr:hover td {
  background: #f9fbfe !important;
}
.excel-table.interactive td.input-cell {
  padding: 4px 7px;
  background: #fff !important;
}
.excel-table.interactive td.input-cell input,
.excel-table.interactive td.input-cell select {
  height: 34px;
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  background: #fff;
  padding: 0 9px;
  transition: .15s;
}
.excel-table.interactive td.input-cell input:hover,
.excel-table.interactive td.input-cell select:hover {
  border-color: #a9bfdf;
}
.excel-table.interactive td.input-cell input:focus,
.excel-table.interactive td.input-cell select:focus {
  background: #fff;
  box-shadow: 0 0 0 3px #2b70d817;
  border-color: #2b70d8;
}
.excel-table.interactive td.calc-cell {
  background: #f7f8fa !important;
  color: #4a5668 !important;
}
.excel-table.interactive td.bold {
  font-weight: 700;
  color: #1f2c40;
}
.monthly-blocks,
.split-stack {
  gap: 20px;
}
.filterbar.sheet-selectors {
  border: 0;
  box-shadow: 0 5px 16px #253e6810;
  padding: 14px;
}
.filterbar.sheet-selectors select {
  min-width: 140px;
  border-color: #e0e6ef;
  background: #f9fafc;
  font-weight: 600;
}
.auto-chip {
  background: #f0f2f5;
  color: #657185;
}
.input-chip {
  background: #edf4ff;
  color: #2a68c5;
}
.add-row {
  height: 34px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  background: #f4f8ff;
  color: #2465c7;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 700;
}
.add-row svg {
  width: 14px;
  vertical-align: middle;
  margin-right: 5px;
}
.row-action {
  min-width: 62px !important;
  text-align: center !important;
  color: #7b8798 !important;
}
.row-action button {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9aa5b5;
  display: grid;
  place-items: center;
  margin: auto;
}
.row-action button:hover {
  background: #ffedef;
  color: #dc5260;
}
.row-action svg {
  width: 15px;
}
.pl-web {
  margin-top: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px #243b6410;
}
.pl-web-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid #e7ebf2;
}
.pl-web-head span {
  font-size: 9px;
  letter-spacing: .14em;
  color: #3970c7;
  font-weight: 700;
}
.pl-web-head h2 {
  font-size: 18px;
  margin: 6px 0 0;
}
.pl-web-head label {
  font-size: 10px;
  color: #768397;
}
.pl-web-head select {
  display: block;
  min-width: 190px;
  height: 38px;
  margin-top: 6px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0 10px;
  color: #36445b;
  font-weight: 600;
}
.pl-web .excel-scroll {
  max-height: 680px;
}
.pl-web .excel-table td:first-child {
  min-width: 130px;
}
.pl-web .excel-table td:nth-child(2) {
  min-width: 175px;
}
.loading-row {
  padding: 30px;
  color: #8490a3;
  font-size: 11px;
}
@media (max-width:720px) {
  .pl-web-head {
    align-items: flex-start;
  }
  .pl-web-head select {
    min-width: 145px;
  }
}
.view-switch {
  display: inline-flex;
  padding: 3px;
  background: #eef2f7;
  border-radius: 9px;
  gap: 2px;
}
.view-switch button {
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #758197;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 700;
}
.view-switch button.active {
  background: #fff;
  color: #245fb9;
  box-shadow: 0 1px 5px #263c6220;
}
.section-actions,
.pl-controls {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.sheet-selectors > .view-switch {
  margin-left: auto;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover td {
  background: #f5f9ff !important;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #17203345;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  animation: appear .2s;
}
.detail-drawer {
  position: relative;
  inset: auto;
  width: min(480px, 92vw);
  height: 100vh;
  background: #fff;
  border: 0;
  transform: none;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 40px #15294d25;
  z-index: 101;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e8ecf2;
}
.drawer-head span {
  font-size: 9px;
  color: #2c68c4;
  font-weight: 700;
  letter-spacing: .12em;
}
.drawer-head h3 {
  font-size: 20px;
  margin: 5px 0 0;
}
.drawer-head button {
  border: 0;
  background: #f1f4f8;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  color: #657287;
}
.drawer-head svg {
  width: 18px;
}
.drawer-body {
  padding: 22px 24px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.drawer-body > label {
  font-size: 10px;
  color: #68758a;
}
.drawer-body input,
.drawer-body select {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 7px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #344156;
}
.drawer-body label:nth-child(5),
.drawer-body label:nth-child(10) {
  grid-column: 1/-1;
}
.drawer-checks {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 15px;
  background: #f7f9fc;
  border-radius: 9px;
}
.drawer-checks label {
  font-size: 10px;
  color: #516076;
}
.drawer-checks input {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 6px 0 0;
  vertical-align: middle;
  accent-color: #286bd5;
}
.drawer-foot {
  margin-top: auto;
  border-top: 1px solid #e8ecf2;
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.danger-text {
  border: 0;
  background: none;
  color: #d65260;
  font-size: 10px;
}
.pl-controls label {
  font-size: 9px;
}
.pl-controls label select {
  min-width: 135px;
}
.pl-controls .view-switch {
  margin-bottom: 1px;
}
@media (max-width:720px) {
  .section-actions {
    align-items: flex-end;
    flex-direction: column;
  }
  .pl-web-head {
    gap: 15px;
    flex-direction: column;
  }
  .pl-controls {
    width: 100%;
    flex-wrap: wrap;
  }
  .drawer-body {
    grid-template-columns: 1fr;
  }
  .drawer-body label:nth-child(5),
  .drawer-body label:nth-child(10) {
    grid-column: auto;
  }
}
.locked-row td {
  background: #f8fafc !important;
  color: #748095 !important;
}
.lock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #edf1f6;
  color: #657185;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
}
.title-row .secondary svg {
  width: 14px;
  vertical-align: middle;
  margin-right: 5px;
}
.master-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #d8dee8;
  margin: -8px 0 18px;
}
.master-tabs button {
  height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: #fff;
  color: #263246;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
}
.master-tabs button.active {
  border-color: #2470d8;
  color: #1764cb;
  background: #f8fbff;
}
.master-table {
  overflow: auto;
}
.master-table table {
  min-width: 1500px;
}
.master-table td input,
.master-table td select {
  width: 100%;
  height: 34px;
  border: 1px solid #dfe5ee;
  border-radius: 7px;
  background: #fff;
  padding: 0 9px;
  color: #344156;
}
.master-table th:first-child,
.master-table td:first-child {
  width: 64px;
  text-align: center;
}
.master-table th:nth-child(2),
.master-table td:nth-child(2) {
  min-width: 190px;
}
.master-table th:nth-child(3),
.master-table td:nth-child(3) {
  min-width: 145px;
}
.master-table th:nth-child(8),
.master-table td:nth-child(8) {
  min-width: 150px;
}
.ocr-layout.simple {
  grid-template-columns: minmax(360px, .75fr) minmax(560px, 1.25fr);
}
.ocr-layout.simple .dropzone {
  min-height: 260px;
}
.ocr-app-grid {
  display: grid;
  grid-template-columns: minmax(320px, .65fr) minmax(520px, 1.35fr);
  gap: 18px;
  align-items: start;
}
.ocr-result.always {
  display: block;
}
.table-card.master-table .section-label {
  position: sticky;
  left: 0;
  z-index: 1;
}
.table-card.master-table th {
  white-space: nowrap;
}
.table-card.master-table td {
  vertical-align: middle;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d8e1ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
th {
  background: #eaf2ff;
  color: #254b80;
  border-right: 1px solid #cfdced;
  border-bottom: 1px solid #c4d3e7;
  font-weight: 800;
}
td {
  border-right: 1px solid #e0e7f1;
  border-bottom: 1px solid #e6ecf5;
}
th:last-child,
td:last-child {
  border-right: 0;
}
tbody tr:nth-child(even) td {
  background: #fbfdff;
}
tbody tr:hover td {
  background: #f5f9ff;
}
.table-card table {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
.excel-table.plain,
.excel-table.interactive {
  border: 1px solid #d8e1ee;
  border-radius: 0;
}
.excel-table.plain td,
.excel-table.interactive td {
  border-right: 1px solid #dce5f1 !important;
  border-bottom: 1px solid #e3eaf4 !important;
}
.excel-table.plain tr:first-child td,
.excel-table.interactive tr:first-child td {
  background: #eaf2ff !important;
  color: #254b80 !important;
  font-weight: 800 !important;
  border-bottom: 1px solid #c4d3e7 !important;
}
.synced-table-scroll {
  min-width: 0;
}
.excel-scroll-top {
  height: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid #d8e1ee;
  border-bottom: 1px solid #d8e1ee;
  background: #f7faff;
}
.excel-scroll-top > div {
  height: 1px;
}
.excel-scroll-top::-webkit-scrollbar,
.excel-scroll::-webkit-scrollbar,
.summary-scroll::-webkit-scrollbar,
.master-table::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}
.excel-scroll-top::-webkit-scrollbar-thumb,
.excel-scroll::-webkit-scrollbar-thumb,
.summary-scroll::-webkit-scrollbar-thumb,
.master-table::-webkit-scrollbar-thumb {
  background: #b9c7da;
  border-radius: 999px;
  border: 3px solid #f7faff;
}
.excel-scroll-top::-webkit-scrollbar-track,
.excel-scroll::-webkit-scrollbar-track,
.summary-scroll::-webkit-scrollbar-track,
.master-table::-webkit-scrollbar-track {
  background: #f7faff;
}
.excel-scroll {
  overflow: auto;
}
.excel-table.plain tr:first-child td,
.excel-table.interactive tr:first-child td {
  position: sticky;
  top: 0;
  z-index: 4;
}
.excel-table.plain tr:first-child td:first-child,
.excel-table.interactive tr:first-child td:first-child {
  z-index: 5;
}
.table-card th,
.master-table th,
.summary-table th {
  position: sticky;
  top: 0;
  z-index: 4;
}
.summary-table th:first-child {
  z-index: 6;
}
.summary-table td:first-child {
  z-index: 3;
}
.excel-table.plain tr:nth-child(even) td,
.excel-table.interactive tr:nth-child(even) td {
  background: #fbfdff !important;
}
.excel-table.interactive td.input-cell {
  background: #fff !important;
}
.excel-table.interactive tr:first-child td.input-cell {
  background: #eaf2ff !important;
}
.excel-table.interactive td.calc-cell {
  background: #f3f7fc !important;
}
.master-table table {
  min-width: 1350px;
}
.org-split {
  margin-bottom: 10px;
}
.org-split small {
  display: block;
}
.sidebar-selects {
  margin: 0 16px 18px;
  display: grid;
  gap: 9px;
}
.sidebar-selects label {
  display: block;
  font-size: 10px;
  color: #6f7d92;
  font-weight: 700;
}
.sidebar-selects select {
  width: 100%;
  height: 34px;
  margin-top: 5px;
  border: 1px solid #dfe7f2;
  border-radius: 9px;
  background: #f8fbff;
  color: #24344d;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
}
.head-actions .header-add {
  height: 36px;
  padding: 0 13px;
  border: 1px solid #cfe0f8;
  border-radius: 9px;
  background: #edf5ff;
  color: #2165c9;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.head-actions .header-add svg {
  width: 15px;
}
.create-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}
.create-card {
  border: 1px solid #dfe8f5;
  background: #fff;
  text-align: left;
  padding: 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: .15s;
}
.create-card:hover {
  border-color: #2d70d8;
  box-shadow: 0 12px 28px #1e4f9618;
  transform: translateY(-1px);
}
.create-card span {
  width: max-content;
  border-radius: 20px;
  background: #eaf2ff;
  color: #2366ca;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
}
.create-card b {
  font-size: 20px;
  color: #142033;
}
.create-card small {
  font-size: 12px;
  line-height: 1.8;
  color: #75849a;
}
.wizard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.wizard-steps {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #e2e9f3;
  border-radius: 13px;
  padding: 10px;
  display: grid;
  gap: 6px;
}
.wizard-steps button {
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #68768b;
  text-align: left;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}
.wizard-steps button span {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-right: 8px;
  border-radius: 50%;
  background: #eef2f7;
  color: #78869a;
  font-size: 10px;
}
.wizard-steps button.active {
  background: #eaf2ff;
  color: #1f63c7;
}
.wizard-steps button.active span,
.wizard-steps button.done span {
  background: #276bd7;
  color: #fff;
}
.wizard-body {
  min-height: 430px;
}
.wizard-body .check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfdff;
  font-size: 12px !important;
  color: #344156 !important;
}
.wizard-body .check-row input {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #286bd5;
}
.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf1f6;
}
@media (max-width:720px) {
  .create-choice {
    grid-template-columns: 1fr;
  }
  .wizard {
    grid-template-columns: 1fr;
  }
  .wizard-steps {
    position: static;
  }
  .head-actions .header-add {
    font-size: 0;
    padding: 0 10px;
  }
  .head-actions .header-add svg {
    margin: 0;
  }
}
.nav-group {
  height: 32px;
  padding: 8px 12px 4px;
  color: #8a96a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-group svg {
  width: 16px;
}
nav button.child {
  height: 36px;
  margin-left: 22px;
  width: calc(100% - 22px);
  font-size: 12px;
}
.notice-card {
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 1px solid #cfe0fa;
  background: #f6f9ff;
  border-radius: 12px;
  color: #3d5f95;
  font-size: 12px;
  line-height: 1.7;
}
.notice-card.success {
  border-color: #bfe9d2;
  background: #f1fbf6;
  color: #16724d;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.wide-field {
  grid-column: 1/-1;
}
.expense-form textarea,
.form-card textarea {
  display: block;
  width: 100%;
  min-height: 94px;
  margin-top: 7px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
  color: #344156;
}
.mini-select {
  height: 34px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  background: #fff;
  color: #516177;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
}
@media (max-width:720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  nav button.child {
    margin-left: 12px;
    width: calc(100% - 12px);
  }
}
nav button.disabled,
nav button:disabled {
  opacity: .55;
  cursor: not-allowed;
  color: #9aa5b5;
}
nav button.disabled:hover,
nav button:disabled:hover {
  background: transparent;
  color: #9aa5b5;
}
nav em.soon {
  background: #edf1f6;
  color: #657185;
}
.cost-summary-card {
  margin-bottom: 18px;
  overflow: hidden;
}
.summary-scroll {
  overflow: auto;
  border-top: 1px solid #dbe5f2;
}
.summary-table {
  min-width: 1320px;
}
.summary-table th {
  background: #eaf2ff;
  color: #244a7f;
  border-right: 1px solid #d5e2f3;
  text-align: right;
}
.summary-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
}
.summary-table td {
  font-variant-numeric: tabular-nums;
  text-align: right;
  border-right: 1px solid #edf1f6;
}
.summary-table td:first-child {
  font-weight: 700;
  text-align: left;
  background: #fbfdff;
  position: sticky;
  left: 0;
}
.summary-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}
.summary-table tr.rate-row td {
  background: #f8fbff;
  color: #42617f;
}
.summary-table tr.rate-row td:first-child {
  background: #f0f6ff;
  color: #244a7f;
}
.gas-ocr {
  height: calc(100vh - 120px);
  min-height: 720px;
  background: #f5f5f7;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #1d1d1f;
}
.gas-topbar {
  height: 50px;
  background: #fff;
  border-bottom: 1px solid #d2d2d7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  flex-shrink: 0;
}
.gas-topbar b {
  font-size: 15px;
}
.gas-topbar span {
  font-size: 12px;
  color: #86868b;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gas-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  overflow: auto;
}
.gas-setup {
  width: min(470px, 100%);
  padding: 28px;
}
.gas-setup h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
.gas-setup h3 {
  font-size: 14px;
  margin: 18px 0 10px;
}
.gas-setup label {
  display: block;
  font-size: 11px;
  color: #555;
  font-weight: 700;
  margin: 13px 0;
}
.gas-setup select,
.gas-setup input {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 6px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}
.gas-setup hr {
  border: 0;
  border-top: 1px solid #e5e5ea;
  margin: 22px 0 16px;
}
.gas-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fake-select {
  min-height: 40px;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 5px 6px 5px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #536177;
}
.setup-msg {
  font-size: 12px;
  color: #86868b;
}
.gas-review {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gas-dots {
  height: 43px;
  background: #fff;
  border-bottom: 1px solid #d2d2d7;
  padding: 13px 16px;
  display: flex;
  gap: 6px;
}
.gas-dots button {
  height: 6px;
  width: 34px;
  border: 0;
  border-radius: 999px;
  background: #dfe3ea;
}
.gas-dots button.active {
  background: #2563eb;
}
.gas-dots button.done {
  background: #34c759;
}
.gas-review-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 430px;
  min-height: 0;
}
.gas-pdf-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #e8e8ed;
  border-right: 1px solid #d2d2d7;
}
.gas-pdf-toolbar {
  height: 44px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  flex-shrink: 0;
}
.gas-pdf-toolbar span {
  font-size: 12px;
  color: #555;
  min-width: 54px;
  text-align: center;
}
.gas-pdf-toolbar em {
  font-style: normal;
  font-size: 11px;
  color: #86868b;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gas-pdf-toolbar .secondary {
  height: 30px;
  padding: 0 10px;
}
.gas-pdf-canvas {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}
.pdf-paper {
  width: 430px;
  min-height: 610px;
  background: #fff;
  box-shadow: 0 2px 18px #0003;
  padding: 52px 46px;
  transform-origin: top center;
  transition: .15s;
}
.pdf-paper h3 {
  font-size: 26px;
  text-align: center;
  margin: 0 0 42px;
}
.pdf-paper p {
  font-size: 14px;
  line-height: 2;
  color: #333;
}
.pdf-paper strong {
  display: block;
  font-size: 34px;
  margin: 38px 0;
  color: #111;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  padding: 14px 0;
  text-align: right;
}
.gas-ocr-text {
  height: 205px;
  background: #fafafa;
  border-top: 2px solid #d2d2d7;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.gas-ocr-text > div {
  height: 34px;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.gas-ocr-text b {
  font-size: 11px;
  color: #555;
}
.gas-ocr-text span {
  margin-left: auto;
  font-size: 10px;
  color: #86868b;
}
.gas-ocr-text pre {
  margin: 0;
  padding: 10px 14px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #444;
}
.gas-form-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gas-form-panel .inv-block {
  padding: 16px;
  overflow: auto;
  flex: 1;
}
.gas-form-panel .ftable input {
  height: 28px;
}
.gas-actions {
  height: 58px;
  border-top: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  flex-shrink: 0;
}
.gas-actions span {
  font-size: 11px;
  color: #86868b;
  flex: 1;
}
.gas-done {
  width: min(440px, 100%);
  text-align: center;
  padding: 28px;
}
.gas-done h2 {
  margin: 0 0 6px;
}
.gas-done p {
  color: #86868b;
  font-size: 13px;
}
.sum-box {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 14px;
  margin: 18px 0;
  text-align: left;
}
.sum-box div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #e5e7eb;
}
.sum-box div:last-child {
  border-bottom: 0;
}
.sl {
  color: #86868b;
}
.sv {
  font-weight: 700;
}
.done-icon {
  font-size: 42px;
}
.danger-text {
  border: 0;
  background: none;
  color: #d94b5b;
  font-size: 12px;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.b-ok {
  background: #dcfce7;
  color: #166534;
}
.b-warn {
  background: #fef3c7;
  color: #92400e;
}
.b-gray {
  background: #f3f4f6;
  color: #6b7280;
}
.reasons {
  background: #fff7ed;
  border-left: 3px solid #ff9500;
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  font-size: 11px;
  color: #7a5800;
  margin: 10px 0;
}
.reasons ul {
  margin: 4px 0 0;
  padding-left: 16px;
}
.inv-company-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.inv-company-label {
  font-size: 11px;
  color: #86868b;
  white-space: nowrap;
}
.inv-company-input {
  flex: 1;
  height: 34px;
  border: 1px solid #d2d2d7;
  border-radius: 7px;
  padding: 0 9px;
  font-weight: 700;
}
.inv-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ftable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ftable th {
  font-size: 10px;
  color: #8b95a5;
  background: #f8fafc;
  padding: 7px;
  border-bottom: 1px solid #edf0f4;
}
.ftable td {
  padding: 6px;
  border-bottom: 1px solid #f1f3f6;
}
.fl {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}
.fc {
  font-size: 11px;
  color: #999;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fo input {
  width: 100%;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  padding: 0 7px;
}
.fo input.ok {
  border-color: #34c759;
}
.fo input.diff {
  border-color: #ff9500;
  background: #fffbf0;
}
.cb-c {
  text-align: center;
}
.cb-c input {
  accent-color: #0071e3;
}
@media (max-width:1080px) {
  .gas-ocr {
    height: auto;
    min-height: 0;
  }
  .gas-review-body {
    grid-template-columns: 1fr;
  }
  .gas-form-panel {
    min-height: 520px;
  }
  .gas-pdf-panel {
    border-right: 0;
  }
  .gas-center {
    padding: 16px;
  }
}
@media (max-width:720px) {
  .gas-form-row {
    grid-template-columns: 1fr;
  }
  .gas-pdf-canvas {
    padding: 12px;
  }
  .pdf-paper {
    width: 330px;
    min-height: 470px;
    padding: 36px 28px;
  }
  .gas-dots button {
    width: 24px;
  }
  .gas-topbar {
    padding: 0 10px;
  }
  .gas-review-body {
    display: block;
  }
}
.link-button {
  border: 0;
  background: transparent;
  color: #2563c9;
  text-decoration: underline;
  padding: 0;
  font-size: 11px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-button:disabled {
  color: #9aa5b5;
  text-decoration: none;
  cursor: not-allowed;
}
.secondary.mini {
  height: 30px;
  padding: 0 9px;
  font-size: 10px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.template-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.template-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  font-weight: 800;
  color: #243b63;
  text-align: left;
  white-space: normal;
  overflow: visible;
  cursor: pointer;
}
.template-toggle small {
  margin-left: auto;
  color: #2f6fda;
  font-weight: 700;
  white-space: nowrap;
}
.template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.template-row > label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  color: #243b63;
  min-width: 260px;
}
.template-row > label span {
  white-space: normal;
}
.template-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.template-actions .mini {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  text-decoration: none;
}
.template-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px 48px;
  padding: 14px;
  border: 1px solid #dbe8f7;
  border-radius: 14px;
  background: #f8fbff;
}
.template-preview > b {
  width: 100%;
  color: #426086;
}
.template-preview span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5e3f4;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}
.template-editor {
  display: grid;
  gap: 10px;
  margin: -4px 0 12px 48px;
  padding: 14px;
  border: 1px solid #dbe8f7;
  border-radius: 14px;
  background: #f8fbff;
}
.template-editor > b {
  color: #426086;
  font-size: 12px;
}
.template-edit-row {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr) 70px;
  gap: 10px;
  align-items: center;
}
.template-edit-row.subject {
  grid-template-columns: minmax(220px, 1fr) 170px 70px;
}
.template-edit-row.vendor {
  grid-template-columns: minmax(160px, 1.2fr) minmax(150px, 1fr) 92px 110px repeat(4, minmax(110px, 1fr)) 60px;
}
.template-edit-row select,
.template-edit-row input {
  height: 36px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #344156;
}
.vendors-editor {
  overflow-x: auto;
}
.vendors-editor .template-edit-row.vendor {
  min-width: 1180px;
}
.synced-table-scroll .excel-scroll > table:not(.excel-table) {
  width: max-content;
  min-width: 100%;
}
.synced-table-scroll .excel-scroll > table:not(.excel-table) th {
  top: 0;
  background: #f8f9fb;
  box-shadow: 0 1px 0 #e1e7f0;
}
.synced-table-scroll .summary-table th {
  background: #eaf2ff;
}
.synced-table-scroll .excel-scroll {
  max-height: min(680px, calc(100vh - 260px));
  overflow: auto;
}
.synced-table-scroll .excel-scroll table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
}
.synced-table-scroll .excel-table tbody tr:first-child td {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
}
.synced-table-scroll .excel-table tbody tr:first-child td:first-child {
  z-index: 31 !important;
}
.pl-annual-view th:nth-child(1),
.pl-annual-view td:nth-child(1) {
  position: sticky;
  left: 0;
  min-width: 150px;
  z-index: 7;
  text-align: left;
  background: #fbfdff;
  font-weight: 700;
}
.pl-annual-view th:nth-child(2),
.pl-annual-view td:nth-child(2) {
  position: sticky;
  left: 150px;
  min-width: 190px;
  z-index: 6;
  text-align: left;
  background: #fff;
  font-weight: 700;
}
.pl-annual-view th:nth-child(1),
.pl-annual-view th:nth-child(2) {
  background: #eaf2ff;
  z-index: 32;
}
.pl-annual-view tr.pl-total-row td {
  background: #f1f6ff;
  font-weight: 800;
}
.pl-annual-view tr.pl-total-row td:nth-child(1),
.pl-annual-view tr.pl-total-row td:nth-child(2) {
  background: #eaf2ff;
}
.drop-card.dragging {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px #22c55e1f, 0 10px 24px #15803d1f;
}
.dropzone.dragging {
  border-color: #22c55e;
  background:
    linear-gradient(
      180deg,
      #ecfdf5,
      #f0fdf4);
  transform: translateY(-1px);
}
.dropzone.ready {
  border-color: #2a6dd7;
  background:
    linear-gradient(
      180deg,
      #eff6ff,
      #f7fbff);
}
.dropzone.dragging .upload-ring,
.dropzone.ready .upload-ring {
  background: #dcfce7;
  color: #16a34a;
}
.primary.import-ready {
  background:
    linear-gradient(
      135deg,
      #16a34a,
      #2563eb);
  box-shadow: 0 8px 18px #16a34a35;
}
.file-select.selected {
  border-color: #22c55e;
  background: #ecfdf5;
  color: #15803d;
  font-weight: 700;
}
.selected-file-name {
  display: inline-flex;
  align-items: center;
  max-width: 360px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f1f7ff;
  color: #30435f;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline-add {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.inline-add input {
  min-width: 160px;
}
.inline-add button {
  white-space: nowrap;
}
.subject-table table {
  min-width: 980px;
}
.subject-table th:first-child,
.subject-table td:first-child {
  width: auto !important;
  min-width: 260px !important;
  text-align: left !important;
}
.subject-table th:nth-child(2),
.subject-table td:nth-child(2) {
  min-width: 220px;
}
.subject-table th:nth-child(3),
.subject-table td:nth-child(3) {
  min-width: 170px;
}
.brand-logo {
  padding: 0 18px;
  justify-content: flex-start;
  letter-spacing: 0;
  background:
    linear-gradient(
      180deg,
      #fff,
      #fbfcff);
}
.brand-logo img {
  display: block;
  width: 150px;
  max-height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-logo button {
  margin-left: auto;
}
.login-simple {
  background:
    radial-gradient(
      circle at 18% 22%,
      #fff7ed 0,
      #fff7ed 16%,
      transparent 38%),
    linear-gradient(
      145deg,
      #fff,
      #f7fbff 52%,
      #eef5ff);
  color: #172033;
}
.login-simple:before {
  content: "";
  position: absolute;
  inset: auto -18% -22% 8%;
  height: 42%;
  background:
    linear-gradient(
      90deg,
      #f97316,
      #fb923c);
  border-radius: 999px;
  opacity: .16;
  transform: rotate(-5deg);
}
.login-brand-panel {
  z-index: 1;
  width: min(620px, 86%);
  padding: 42px 46px;
  border: 1px solid #eef2f7;
  border-radius: 28px;
  background: #ffffffd9;
  box-shadow: 0 24px 70px #1f29371a;
  text-align: center;
}
.login-logo {
  display: block;
  width: min(480px, 100%);
  margin: 0 auto 20px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.login-brand-panel h1 {
  margin: 0 0 10px !important;
  font-size: 34px !important;
  letter-spacing: .12em !important;
  color: #111827 !important;
}
.login-brand-panel p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  letter-spacing: .08em;
}
.brand-logo-mobile {
  height: auto;
  padding: 0;
  margin: 0 0 42px;
  justify-content: center;
}
.brand-logo-mobile img {
  display: block;
  width: 180px;
  max-height: 58px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width:980px) {
  .brand-logo-mobile {
    display: flex;
  }
  .brand-logo-mobile img {
    width: 160px;
  }
}
@media (max-width:720px) {
  .brand-logo img {
    width: 132px;
  }
  .login-brand-panel {
    padding: 30px 24px;
  }
  .login-logo {
    width: min(320px, 100%);
  }
}
.ocr-doc-image {
  display: block;
  max-width: min(100%, 1600px);
  height: auto;
  background: #fff;
  box-shadow: 0 2px 18px #0003;
  transform-origin: top center;
  transition: .15s;
}
.ocr-vendor-candidates {
  margin: 0 0 12px;
  padding: 10px 11px;
  background: #f7faff;
  border: 1px solid #dce8fb;
  border-radius: 8px;
  font-size: 12px;
}
.ocr-vendor-master-info {
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid #cbdcf2;
  border-radius: 8px;
}
.ocr-vendor-master-info > b {
  display: block;
  margin-bottom: 7px;
  color: #163e70;
}
.ocr-vendor-master-info > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}
.ocr-vendor-master-info dl {
  display: grid;
  grid-template-columns: minmax(95px, 34%) 1fr;
  margin: 0;
  border-top: 1px solid #e8eef7;
}
.ocr-vendor-master-info dt,
.ocr-vendor-master-info dd {
  margin: 0;
  padding: 6px 4px;
  border-bottom: 1px solid #e8eef7;
  overflow-wrap: anywhere;
}
.ocr-vendor-master-info dt {
  color: #66758c;
}
.ocr-vendor-candidates > b {
  display: block;
  margin-bottom: 7px;
  color: #234b82;
}
.ocr-vendor-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ocr-vendor-choice-list button {
  border: 1px solid #bad3fa;
  border-radius: 6px;
  background: #fff;
  color: #164884;
  padding: 5px 8px;
  cursor: pointer;
  text-align: left;
}
.ocr-vendor-choice-list button:hover {
  background: #e9f2ff;
}
.ocr-vendor-candidates p {
  margin: 4px 0;
  color: #697586;
}
.ocr-vendor-candidates details {
  margin-top: 9px;
  border-top: 1px solid #dce8fb;
  padding-top: 8px;
}
.ocr-vendor-candidates summary {
  cursor: pointer;
  color: #2861a8;
}
.ocr-vendor-candidates pre {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 180px;
  margin: 7px 0 0;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
}
.ocr-vendor-register {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #234b82;
  cursor: pointer;
  font-weight: 600;
}
.ocr-vendor-register input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}
.payroll-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.payroll-title small {
  color: #3973ce;
  font-weight: 800;
  letter-spacing: .15em;
}
.payroll-title h1 {
  margin: 6px 0;
  font-size: 30px;
  color: #152238;
}
.payroll-title p {
  margin: 0;
  color: #8a99af;
  font-size: 14px;
}
.payroll-back {
  margin-bottom: 16px;
}
.payroll-monthly-toolbar {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.payroll-month-select {
  display: flex;
  gap: 10px;
}
.payroll-month-select label {
  display: grid;
  gap: 5px;
  color: #71829a;
  font-size: 12px;
  font-weight: 700;
}
.payroll-month-select input,
.payroll-month-select select {
  height: 40px;
  border: 1px solid #dce5f1;
  border-radius: 9px;
  background: #fff;
  padding: 0 10px;
  color: #20324e;
}
.payroll-month-select input {
  width: 110px;
}
.payroll-month-select select {
  width: 100px;
}
.payroll-monthly-totals {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
  color: #6b7d97;
  font-size: 13px;
}
.payroll-monthly-totals strong {
  font-size: 19px;
  color: #1d3f77;
}
.payroll-monthly-card .section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.payroll-monthly-card .section-label span,
.payroll-monthly-note {
  color: #8392a8;
  font-size: 12px;
}
.permission-table-scroll {
  max-width: 100%;
  overflow: auto;
}
.permission-matrix {
  min-width: 1660px;
  border-collapse: separate;
  border-spacing: 0;
}
.permission-matrix th,
.permission-matrix td {
  min-width: 128px;
  vertical-align: middle;
}
.permission-matrix thead th:first-child,
.permission-matrix tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 230px;
  background: #fff;
}
.permission-matrix thead th:first-child {
  z-index: 3;
  background: #eaf1fb;
}
.permission-matrix tbody th small {
  display: block;
  margin-top: 4px;
  color: #8392a8;
  font-weight: 400;
  white-space: normal;
}
.permission-matrix select {
  width: 100%;
  min-width: 115px;
}
.payroll-table-scroll {
  overflow-x: auto;
}
.payroll-table-scroll table {
  min-width: 1050px;
  width: 100%;
  border-collapse: collapse;
}
.payroll-table-scroll th,
.payroll-table-scroll td {
  padding: 12px;
  border-bottom: 1px solid #e8eef6;
  text-align: left;
  white-space: nowrap;
}
.payroll-table-scroll th {
  background: #eaf2ff;
  color: #315b94;
  font-size: 12px;
}
.payroll-table-scroll td {
  font-size: 13px;
  color: #263850;
}
.payroll-table-scroll input,
.payroll-table-scroll select {
  height: 38px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
  padding: 0 9px;
  min-width: 100px;
}
.payroll-table-scroll input[type=number] {
  width: 155px;
}
.payroll-table-scroll td:nth-child(5) input {
  width: 220px;
}
.payroll-monthly-note {
  margin: 12px 0;
}
.payroll-import-card {
  padding: 20px;
  margin-bottom: 18px;
}
.payroll-import-card .section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.payroll-import-card .section-label h3 {
  margin: 0;
}
.payroll-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  margin: 14px 0;
  padding: 20px;
  border: 2px dashed #adc9f4;
  border-radius: 14px;
  background: #f4f8ff;
  text-align: center;
}
.payroll-dropzone.is-dragging {
  border-color: #2563eb;
  background: #e8f1ff;
}
.payroll-dropzone .secondary {
  position: relative;
  cursor: pointer;
}
.payroll-dropzone input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.payroll-dropzone small {
  color: #66758d;
  overflow-wrap: anywhere;
}
.payroll-import-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.payroll-import-status {
  margin-top: 12px;
  color: #526987;
  font-size: 13px;
}
.payroll-ocr-recent {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.payroll-ocr-recent > .notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}
.payroll-ocr-recent > .notice-card > span {
  overflow-wrap: anywhere;
}
.payroll-ocr-recent > .notice-card > small {
  flex-basis: 100%;
}
.payroll-company-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 700;
}
.payroll-company-check input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}
.payroll-formula {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.payroll-formula strong {
  color: #184f9c;
}
.payroll-formula span {
  font-size: 13px;
}
.payroll-transfer-error {
  color: #ad3a27;
  white-space: normal;
  line-height: 1.4;
}
.payroll-transfer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0 2px;
}
.payroll-transfer-footer label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.payroll-cost-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #eaf3ff;
  color: #173f78;
}
.payroll-ocr-items-toolbar {
  margin: 12px 0;
}
.payroll-ocr-person-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
}
.payroll-ocr-person-toolbar span {
  color: #66758d;
}
.payroll-ocr-person-toolbar button {
  margin-left: auto;
}
.payroll-ocr-person-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.payroll-ocr-person-nav select {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 0 8px;
}
.payroll-ocr-person-nav button {
  white-space: nowrap;
}
.payroll-ocr-item .row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payroll-monthly-card .payroll-table-scroll table {
  min-width: 1900px;
}
.payroll-ocr-upload {
  padding: 20px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.payroll-ocr-upload h3 {
  margin: 0;
}
.payroll-ocr-upload p {
  width: 100%;
  margin: 0;
  color: #66758d;
}
.payroll-ocr-error {
  display: block;
  color: #b42318;
}
.payroll-ocr-review {
  margin-top: 18px;
  overflow: hidden;
}
.payroll-ocr-review > .section-label {
  padding: 16px 20px;
}
.payroll-ocr-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  min-height: 680px;
  border-top: 1px solid #e5ebf3;
}
.payroll-ocr-preview {
  background: #e7e9ee;
  min-height: 680px;
}
.payroll-ocr-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: 0;
}
.payroll-ocr-fields {
  padding: 20px;
  max-height: 850px;
  overflow-y: auto;
}
.payroll-ocr-fields > p {
  color: #66758d;
}
.payroll-ocr-item {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid #e5ebf3;
}
.payroll-ocr-item label {
  display: grid;
  gap: 5px;
}
.payroll-ocr-item input,
.payroll-ocr-item select {
  width: 100%;
  height: 42px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 0 10px;
}
.payroll-ocr-text {
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
  background: #f5f7fb;
  padding: 12px;
}
.payroll-ocr-review-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
@media (max-width:900px) {
  .payroll-ocr-columns {
    grid-template-columns: 1fr;
  }
  .payroll-ocr-preview,
  .payroll-ocr-preview iframe {
    min-height: 480px;
  }
  .payroll-ocr-fields {
    max-height: none;
  }
}
@media (max-width:720px) {
  .payroll-title {
    align-items: flex-start;
  }
  .payroll-monthly-totals {
    margin-left: 0;
  }
  .payroll-monthly-toolbar > .primary {
    width: 100%;
  }
}
.gas-ocr:has(.gas-review) {
  height: auto;
  min-height: 0;
  overflow: visible;
}
.gas-review {
  flex: none;
}
.gas-review-body {
  flex: none;
  align-items: start;
}
.gas-form-panel .inv-block {
  flex: none;
  overflow: visible;
}
.gas-actions {
  height: auto;
  min-height: 58px;
  flex-wrap: wrap;
  padding: 10px 16px;
}
@media (min-width:1081px) {
  .gas-pdf-panel {
    height: max(560px, calc(100vh - 180px));
    position: sticky;
    top: 16px;
  }
}
.confirmation-badge {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}
.confirmation-badge.pending {
  background: #fff7e7;
  color: #a15b00;
  border-color: #ffdb9a;
}
.confirmation-badge.done {
  background: #e8f8ef;
  color: #127044;
  border-color: #a4e7bf;
}
.confirmation-badge i,
.confirmation-new {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: #f43f5e;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}
.confirmation-header-alert {
  border: 1px solid #fbbf24;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
}
.confirmation-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #14213b99;
  display: grid;
  place-items: center;
  padding: 16px;
}
.confirmation-modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px #0004;
  display: grid;
  gap: 16px;
}
.confirmation-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.confirmation-modal-head h2 {
  margin: 0;
}
.confirmation-modal label,
.confirmation-reply label {
  display: grid;
  gap: 7px;
}
.confirmation-modal textarea,
.confirmation-reply textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px;
  font: inherit;
}
.confirmation-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.confirmation-layout {
  display: grid;
  grid-template-columns: minmax(500px, 1.2fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
}
.confirmation-list {
  overflow: auto;
}
.confirmation-list table {
  width: 100%;
  border-collapse: collapse;
}
.confirmation-list th,
.confirmation-list td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.confirmation-list td small {
  display: block;
  color: #64748b;
  margin-top: 4px;
}
.confirmation-unread {
  background: #eff6ff;
}
.confirmation-detail {
  padding: 18px;
  min-height: 350px;
}
.confirmation-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
.confirmation-detail-head h3 {
  margin: 0 0 5px;
}
.confirmation-detail-head small {
  color: #64748b;
}
.confirmation-messages {
  max-height: 48vh;
  overflow: auto;
  padding: 12px 0;
  display: grid;
  gap: 10px;
}
.confirmation-messages article {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 12px;
}
.confirmation-messages article.mine {
  background: #e7f0ff;
}
.confirmation-messages article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
}
.confirmation-messages article time {
  font-size: 12px;
}
.confirmation-messages article p {
  white-space: pre-wrap;
  margin: 8px 0 0;
}
.confirmation-messages img {
  display: block;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  margin-top: 8px;
  border-radius: 8px;
}
.confirmation-reply {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}
.confirmation-ocr-actions {
  margin: 10px 0;
}
@media (max-width:1000px) {
  .confirmation-layout {
    grid-template-columns: 1fr;
  }
}
.receipt-allocation {
  padding: 18px 16px 24px;
  display: grid;
  gap: 14px;
  color: #183153;
}
.receipt-allocation h3 {
  margin: 0;
  font-size: 18px;
}
.receipt-allocation h3 small {
  display: block;
  margin-top: 6px;
  color: #71829b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.receipt-allocation-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.receipt-allocation-meta label:first-child {
  grid-column: 1/-1;
}
.receipt-allocation-meta label {
  font-size: 12px;
  color: #60718b;
  display: grid;
  gap: 5px;
}
.receipt-allocation input,
.receipt-allocation select {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid #d8e2f1;
  border-radius: 8px;
  background: #fff;
  color: #183153;
  box-sizing: border-box;
}
.receipt-tax-rate {
  display: flex;
  align-items: center;
  gap: 4px;
}
.receipt-tax-rate input {
  max-width: 90px;
}
.receipt-tax-rate span {
  white-space: nowrap;
}
.receipt-allocation-scroll {
  width: 100%;
  overflow-x: auto;
}
.receipt-allocation-table,
.receipt-allocation-summary {
  width: 100%;
  min-width: 545px;
  border-collapse: collapse;
  font-size: 12px;
}
.receipt-allocation-table th,
.receipt-allocation-table td,
.receipt-allocation-summary th,
.receipt-allocation-summary td {
  padding: 7px 5px;
  border: 1px solid #d8e2f1;
}
.receipt-allocation-table thead th,
.receipt-allocation-summary thead th {
  background: #eaf2ff;
  color: #315b96;
  text-align: left;
}
.receipt-allocation-table td:nth-child(2) {
  min-width: 105px;
}
.receipt-allocation-table .number,
.receipt-allocation-summary .number {
  text-align: right;
  white-space: nowrap;
}
.receipt-allocation-table .secondary {
  padding: 6px 8px;
  min-height: 0;
  font-size: 11px;
}
.receipt-add-line {
  justify-self: start;
}
.receipt-grand-total {
  background: #eff6ff;
}
.receipt-match {
  color: #16865b;
  margin: 0;
  font-size: 13px;
}
.receipt-mismatch {
  color: #c24136;
  margin: 0;
  font-size: 13px;
}
.receipt-apply {
  width: 100%;
  justify-content: center;
}
.gas-review-body:has(.receipt-allocation) {
  grid-template-columns: minmax(470px, 1fr) minmax(520px, 610px);
}
@media (max-width:1080px) {
  .gas-review-body:has(.receipt-allocation) {
    grid-template-columns: 1fr;
  }
}
.confirmation-ocr-actions > button.secondary {
  background: #2563d9;
  border-color: #2563d9;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px #2563d930;
}
.confirmation-ocr-actions > button.secondary:hover {
  background: #1d4fb3;
  border-color: #1d4fb3;
}
.confirmation-ocr-actions > button.secondary:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
.payroll-source-file-link {
  display: inline-block;
  color: #2563eb;
  text-decoration: underline;
  margin-right: 8px;
  font-size: 12px;
}
.delete-confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 31, 56, .48);
}
.delete-confirm-dialog {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 31, 56, .28);
  color: #17233b;
}
.delete-confirm-dialog h2 {
  margin: 0 0 10px;
  font-size: 19px;
}
.delete-confirm-dialog p {
  margin: 0;
  color: #53647c;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.delete-confirm-actions button {
  min-height: 40px;
  padding: 0 16px;
}
.delete-confirm-actions .danger {
  border: 1px solid #c62828;
  border-radius: 8px;
  background: #c62828;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.delete-confirm-actions .danger:hover {
  background: #a91f1f;
}
.non-operating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px;
}
.non-operating-grid label {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}
.non-operating-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9e2ef;
  border-radius: 9px;
  padding: 8px 12px;
  color: #17233b;
  background: #fff;
}
.non-operating-grid input:disabled {
  background: #f3f6fa;
  color: #7b8799;
}
.non-operating-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.non-operating-totals > div {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #f6f9ff;
}
.non-operating-totals span {
  color: #64748b;
  font-size: 13px;
}
.non-operating-totals strong {
  color: #173d78;
  font-size: 20px;
}
.money-input-shell {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  padding: 0 9px;
  color: #344156;
}
.money-input-currency {
  flex: 0 0 auto;
  color: #7c899d;
  font-size: 12px;
  line-height: 1;
}
.money-input-shell .money-input-field {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 2px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: inherit;
  box-shadow: none !important;
  outline: none;
  text-align: right;
  font: inherit;
}
.money-input-shell .money-input-field:focus {
  border: 0 !important;
  box-shadow: none !important;
}
.money-input-shell:focus-within {
  border-color: #2b70d8;
  box-shadow: 0 0 0 3px #2b70d817;
}
.money-input-shell:has(.money-input-field:disabled) {
  background: #f3f6fa;
  color: #7b8799;
}
.form-card .money-input-shell,
.drawer-body .money-input-shell,
.ocr-result .money-input-shell {
  margin-top: 7px;
}
.interactive .input-cell .money-input-shell {
  height: 34px;
  border-radius: 7px;
}
.payroll-table-scroll .money-input-shell {
  height: 38px;
  min-height: 38px;
}
.payroll-table-scroll td:nth-child(5) .money-input-shell {
  width: 220px;
}
.payroll-ocr-item .money-input-shell {
  height: 42px;
}
.receipt-allocation .money-input-shell {
  min-width: 0;
}

/* src/attendance.css */
.attendance-page {
  min-width: 0;
  color: #263345;
}
.attendance-page *,
.att-dialog * {
  box-sizing: border-box;
  letter-spacing: 0;
}
.att-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.att-heading h1 {
  margin: 4px 0 8px;
  font-size: 26px;
}
.att-sync,
.att-period-label {
  color: #667085;
  font-size: 12px;
}
.att-heading button {
  flex-shrink: 0;
}
.att-heading button.primary {
  min-width: 88px;
}
.att-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid #dee4e9;
  padding: 18px 0;
  margin-bottom: 22px;
}
.att-metrics > div {
  padding: 0 20px;
  border-left: 1px solid #dee4e9;
}
.att-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.att-metrics span {
  display: block;
  color: #667085;
  font-size: 12px;
}
.att-metrics b {
  display: block;
  font-size: 25px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.att-metrics small {
  font-size: 12px;
  margin-left: 6px;
  font-weight: 400;
}
.att-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #dce2e8;
  overflow-x: auto;
}
.att-tabs button {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #667085;
  padding: 12px 2px;
  min-height: 44px;
}
.att-tabs button[aria-selected=true] {
  color: #0b715b;
  border-color: #0b715b;
  font-weight: 700;
}
.att-tabs svg {
  width: 17px;
  height: 17px;
}
.att-count,
.att-new {
  color: #aa3d22;
  background: #fff0e9;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.att-toolbar,
.att-searchbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
}
.att-period {
  display: flex;
  align-items: center;
  gap: 5px;
}
.att-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  border: 1px solid #dce2e8;
  border-radius: 4px;
  background: #fff;
  color: #43516a;
  cursor: pointer;
}
.att-icon svg {
  width: 17px;
  height: 17px;
}
.att-icon:disabled {
  opacity: .4;
  cursor: default;
}
.attendance-page input,
.attendance-page select,
.att-dialog input,
.att-dialog select,
.att-dialog textarea {
  font: inherit;
  font-size: 13px;
  border: 1px solid #cfd7e0;
  border-radius: 4px;
  padding: 9px 10px;
  color: #263345;
  background: #fff;
  min-width: 0;
  max-width: 100%;
}
.attendance-page button:focus-visible,
.attendance-page input:focus-visible,
.attendance-page select:focus-visible,
.att-dialog :is(button, input, select, textarea):focus-visible {
  outline: 2px solid #107962;
  outline-offset: 2px;
}
.att-toolbar select {
  max-width: 300px;
}
.att-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  flex: 1;
  min-width: 180px;
}
.att-search svg {
  width: 17px;
  height: 17px;
  color: #667085;
}
.att-search input {
  width: 100%;
}
.att-searchbar > span {
  font-size: 12px;
  color: #667085;
}
.att-table-wrap {
  width: 100%;
  overflow: auto;
  border-block: 1px solid #dce2e8;
}
.attendance-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.attendance-page th,
.attendance-page td {
  padding: 12px 10px;
  border-bottom: 1px solid #e6ebef;
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
}
.attendance-page th {
  background: #f4f6f8;
  color: #526078;
  font-weight: 600;
}
.attendance-page td small {
  display: block;
  margin-top: 4px;
  color: #7b8594;
  font-size: 11px;
}
.attendance-page .att-reason {
  min-width: 160px;
  max-width: 260px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.att-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1.3;
}
.att-pending {
  color: #475d92;
  background: #edf2ff;
}
.att-approved {
  color: #106b50;
  background: #e8f7ee;
}
.att-needs_changes {
  color: #9a5b13;
  background: #fff4d8;
}
.att-rejected {
  color: #a4393f;
  background: #fff0f0;
}
.att-cancelled {
  color: #667085;
  background: #f0f2f5;
}
.att-warning,
.attendance-page td small.att-warning {
  color: #b15018;
  white-space: normal;
}
.att-unread {
  background: #fcf8ee;
}
.att-empty {
  text-align: center !important;
  padding: 40px 14px !important;
  color: #778293;
  white-space: normal !important;
}
.att-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 12px 0;
}
.att-workbook-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 18px;
}
.att-workbook-heading h2 {
  font-size: 18px;
  margin: 0 0 6px;
}
.att-workbook-heading > div,
.att-dialog-head > div {
  min-width: 0;
}
.att-workbook-heading h2,
.att-dialog-head h2 {
  overflow-wrap: anywhere;
}
.att-workbook-heading span {
  font-size: 12px;
  color: #667085;
}
.att-workbook td {
  vertical-align: middle;
}
.att-workbook th {
  min-width: 80px;
}
.att-workbook .att-sunday > th {
  color: #b33f4b;
}
.att-workbook .att-saturday > th {
  color: #3d63aa;
}
.att-day-requests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 190px;
}
.att-day-request {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 4px;
  cursor: pointer;
}
.att-day-request:hover {
  background: #f0f5f3;
}
.att-day-request > span:first-child {
  max-width: 180px;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: left;
}
.att-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100dvh - 36px);
  border: 1px solid #dce2e8;
  padding: 0;
  border-radius: 8px;
  color: #263345;
  background: #fff;
  box-shadow: 0 20px 80px #15203333;
}
.att-dialog::backdrop {
  background: #16233377;
}
.att-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e3e7ec;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.att-dialog-head h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.att-dialog-head > div > span {
  font-size: 13px;
}
.att-dialog > .error {
  margin: 14px 24px 0;
}
.att-dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.att-request-info,
.att-conversation {
  padding: 22px 24px;
  min-width: 0;
}
.att-conversation {
  border-left: 1px solid #e3e7ec;
  background: #fbfcfd;
}
.att-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.att-section-heading h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 15px;
}
.att-section-heading h3 svg {
  width: 18px;
}
.att-description {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px 10px;
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.7;
}
.att-description dt {
  color: #778293;
}
.att-description dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.att-review {
  padding: 18px 0;
  border-top: 1px solid #e3e7ec;
}
.att-review h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.att-dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 12px;
}
.att-dialog textarea {
  resize: vertical;
  width: 100%;
  min-height: 70px;
  line-height: 1.6;
}
.att-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.att-actions button {
  min-height: 36px;
}
.att-form-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid #dce2e8;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
}
.att-form-link svg {
  width: 16px;
  height: 16px;
}
.att-submit-dialog {
  width: min(680px, calc(100% - 32px));
}
.att-submit-form {
  padding: 20px 24px 24px;
  max-height: calc(100dvh - 120px);
  overflow: auto;
}
.att-submit-form > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 12px;
  color: #526078;
}
.att-submit-form input,
.att-submit-form select,
.att-submit-form textarea {
  width: 100%;
}
.att-submit-form .att-checkbox {
  flex-direction: row;
  align-items: center;
}
.att-submit-form .att-checkbox input {
  width: 16px;
}
.att-submit-form .att-actions {
  padding-top: 8px;
}
.att-dialog .att-danger {
  color: #ae3740;
}
.att-history {
  border-top: 1px solid #e3e7ec;
  padding: 14px 0;
  font-size: 12px;
}
.att-history summary {
  cursor: pointer;
  color: #63728b;
}
.att-history > div {
  border-left: 2px solid #dce4e9;
  padding-left: 10px;
  margin: 16px 0;
}
.att-history span {
  display: block;
  font-size: 11px;
  color: #778293;
  margin-top: 5px;
}
.att-history p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.att-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.att-dialog .att-checkbox {
  flex-direction: row;
  align-items: center;
}
.att-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.att-message-list {
  min-height: 180px;
  max-height: 400px;
  overflow: auto;
  padding-right: 4px;
}
.att-message {
  margin: 0 20px 14px 0;
  padding: 12px 14px;
  border: 1px solid #e2e7ec;
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
}
.att-message.mine {
  margin-right: 0;
  margin-left: 20px;
  background: #edf7f3;
  border-color: #d6e8df;
}
.att-message > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  justify-content: space-between;
}
.att-message time {
  font-size: 10px;
  color: #778293;
}
.att-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  margin: 10px 0 0;
}
.att-message img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  margin-top: 12px;
}
.att-reply {
  border-top: 1px solid #e3e7ec;
  margin-top: 16px;
  padding-top: 16px;
}
.att-dialog .att-attach {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 8px;
  color: #63728b;
  cursor: pointer;
}
.att-attach svg {
  width: 16px;
  height: 16px;
}
.att-attach input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  cursor: pointer;
}
.att-attachment-name {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.att-notice {
  font-size: 12px;
  color: #14674e;
  background: #edf7f2;
  padding: 10px 12px;
  margin: 12px 0;
  border-radius: 4px;
}
.att-spinning {
  animation: att-spin 1s linear infinite;
}
@keyframes att-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width:760px) {
  .att-dialog-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .att-conversation {
    border-left: 0;
    border-top: 1px solid #e3e7ec;
  }
  .att-request-info,
  .att-conversation {
    padding: 18px;
  }
  .att-dialog-head {
    padding: 16px 18px;
  }
  .att-tabs {
    gap: 20px;
  }
  .att-metrics > div {
    padding: 0 12px;
  }
  .att-period-label {
    width: 100%;
  }
  .att-toolbar select {
    flex: 1;
    max-width: 100%;
  }
  .att-workbook-heading {
    align-items: flex-start;
  }
  .att-workbook-heading span {
    display: block;
    line-height: 1.8;
  }
}
@media (max-width:420px) {
  .att-heading h1 {
    font-size: 23px;
  }
  .att-metrics b {
    font-size: 22px;
  }
  .att-metrics span {
    font-size: 10px;
  }
  .att-metrics > div {
    padding: 0 8px;
  }
  .att-metrics small {
    margin-left: 3px;
  }
  .att-tabs {
    gap: 16px;
  }
  .att-tabs button {
    font-size: 12px;
  }
  .att-searchbar {
    gap: 8px;
  }
  .att-search {
    flex-basis: 100%;
  }
  .att-dialog {
    width: calc(100% - 16px);
  }
  .att-edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion:reduce) {
  .att-spinning {
    animation: none;
  }
}
.att-detail-link {
  display: block;
  margin-top: 6px;
  background: none;
  border: 0;
  color: #536d91;
  text-decoration: underline;
  cursor: pointer;
}
.att-account-control {
  min-width: 210px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.att-account-control > small,
.att-account-control > b {
  width: 100%;
}
.att-account-form {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f5f8fc;
  border-radius: 8px;
}
.att-account-form label {
  display: grid;
  gap: 4px;
}
.att-account-form input {
  min-width: 0;
  width: 100%;
}
.att-toolbar[hidden] {
  display: none;
}
.att-work-config {
  margin-top: 8px;
  min-width: 220px;
  max-width: 300px;
  white-space: normal;
}
.att-work-config summary {
  cursor: pointer;
  color: #3d5f98;
  font-size: 11px;
  padding: 5px 0;
}
.att-work-config label {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 100px;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: #526078;
  font-size: 11px;
}
.att-work-config input,
.att-work-config select {
  width: 100%;
  padding: 6px 7px;
  font-size: 11px;
}
.att-timesheet-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1px;
  margin: 0 0 16px;
  border: 1px solid #dce2e8;
  border-radius: 6px;
  overflow: hidden;
  background: #e6ebef;
}
.att-timesheet-summary > div {
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  background: #fff;
}
.att-timesheet-summary span {
  color: #667085;
  font-size: 11px;
}
.att-timesheet-summary b {
  color: #263345;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
