:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #132033;
  background: #f4f7fb;
  --blue: #0b6cff;
  --navy: #07111f;
  --green: #0c9b62;
  --red: #c53b42;
  --line: #dfe6ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
}
.environment-banner {
  background: #f59e0b;
  color: #261600;
  padding: 9px 18px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  border-bottom: 1px solid #c47a00;
}
.environment-banner b {
  letter-spacing: 0.05em;
}
.app-footer {
  padding: 18px;
  text-align: center;
  color: #65758b;
  font-size: 12px;
}
.app-version {
  display: block;
  text-align: center;
  color: #65758b;
  margin-top: 16px;
}
.topbar {
  background: var(--navy);
  color: white;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand img {
  width: 34px;
}
.user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.container {
  max-width: 1180px;
  margin: auto;
  padding: 28px 18px 80px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 5px;
}
h2 {
  font-size: 22px;
}
.muted {
  color: #65758b;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 3px 12px #1320330a;
}
.report-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.report-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.metric {
  font-size: 27px;
  font-weight: 800;
}
.status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.not-started {
  background: #f3f4f6;
  color: #697386;
}
.inactive {
  background: #f3f4f6;
  color: #697386;
}
.user-inactive {
  opacity: 0.7;
}
.support-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100% - 1180px) / 2));
  background: #fff3cd;
  border-bottom: 1px solid #e7c867;
  color: #694f00;
}
.support-banner small {
  display: block;
  margin-top: 2px;
}
.support-session #submit-from-view {
  display: none;
}
.office-week-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.office-week-head > .field {
  width: min(460px, 100%);
}
.office-week-summary {
  display: flex;
  gap: 28px;
}
.office-week-summary div {
  display: grid;
}
.office-week-summary b {
  font-size: 24px;
}
.office-week-summary span,
.employee-report-table td small,
td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.billing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.billing-metrics .card {
  display: grid;
  gap: 5px;
}
.billing-metrics b {
  font-size: 28px;
}
.billing-metrics .date-metric {
  font-size: 20px;
}
.billing-metrics small {
  color: #65758b;
}
.role-select {
  min-width: 130px;
  padding: 7px 9px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: white;
}
.employee-report-row.clickable {
  cursor: pointer;
}
.employee-report-row.clickable:hover td,
.employee-report-row.clickable:focus td {
  background: #f3f8ff;
}
.draft {
  background: #e9eef6;
  color: #506078;
}
.submitted {
  background: #e5f0ff;
  color: #075ac7;
}
.returned {
  background: #fff0db;
  color: #a55700;
}
.approved {
  background: #dff7eb;
  color: #087348;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 750;
  background: var(--blue);
  color: white;
}
.btn.secondary {
  background: white;
  color: #21324a;
  border: 1px solid var(--line);
}
.btn.danger {
  background: #fff0f1;
  color: var(--red);
}
.btn.success {
  background: var(--green);
}
.btn.small {
  padding: 7px 10px;
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 13px;
  font-weight: 750;
  color: #46566c;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd8e5;
  border-radius: 10px;
  background: white;
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.rate-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  background: #f7f9fc;
  color: #516176;
  font-size: 12px;
  text-transform: uppercase;
}
.money {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.summary > div {
  padding: 14px;
  border-radius: 12px;
  background: #f4f7fb;
}
.summary b {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}
.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #eaf3ff;
  color: #164d8e;
  margin-bottom: 16px;
}
.notice.warn {
  background: #fff3df;
  color: #884b00;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--navy);
}
.login-art {
  padding: 8vw;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #1557a8, var(--navy) 55%);
}
.login-panel {
  background: #f4f7fb;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(430px, 100%);
}
.login-card .card {
  padding: 30px;
}
.demo {
  margin-top: 16px;
  font-size: 13px;
  background: #f2f6fb;
  padding: 12px;
  border-radius: 10px;
}
.empty {
  text-align: center;
  padding: 55px 20px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #07111fcc;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-body {
  background: #f4f7fb;
  border-radius: 18px;
  width: min(960px, 100%);
  max-height: 94vh;
  overflow: auto;
  padding: 22px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.receipt {
  max-width: 100%;
  max-height: 500px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.tabs button.active {
  background: var(--navy);
  color: white;
}
.right {
  text-align: right;
}
.hidden {
  display: none !important;
}
.spinner {
  opacity: 0.55;
  pointer-events: none;
}
.receipt-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.receipt-options .btn {
  display: inline-flex;
  align-items: center;
}
.ocr-filled {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 2px #0c9b6222;
}
.expense-actions {
  position: sticky;
  right: 0;
  min-width: 88px;
  background: white;
  box-shadow: -5px 0 8px #1320330d;
}
th.expense-actions {
  background: #f7f9fc;
}
.expense-actions .btn {
  display: block;
  width: 100%;
  margin: 4px 0;
}
@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .billing-metrics {
    grid-template-columns: 1fr;
  }
  .hero {
    align-items: start;
    flex-direction: column;
  }
  .support-banner {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }
  .office-week-head {
    align-items: stretch;
    flex-direction: column;
  }
  .office-week-summary {
    justify-content: space-between;
  }
  .form-grid,
  .rate-row,
  .summary {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 42px 24px;
    min-height: 220px;
  }
  .user span {
    display: none;
  }
  .container {
    padding-top: 20px;
  }
  .modal {
    padding: 0;
  }
  .modal-body {
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media print {
  @page {
    size: letter;
    margin: 0.35in;
  }
  body {
    background: white;
  }
  #app > .shell {
    display: none !important;
  }
  .topbar,
  .no-print,
  .modal > .modal-body > .modal-head button {
    display: none !important;
  }
  .container {
    padding: 0;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
  #report-modal .report-first-page {
    break-after: page;
    page-break-after: always;
  }
  #report-modal .report-summary-card {
    padding: 10px 12px;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #report-modal .report-first-page .modal-head {
    margin-bottom: 5px;
  }
  #report-modal .report-first-page h1 {
    font-size: 22px;
  }
  #report-modal .report-first-page h2 {
    font-size: 15px;
    margin: 9px 0 5px !important;
  }
  #report-modal .report-first-page h3 {
    font-size: 12px;
    margin: 2px 0 5px;
  }
  #report-modal .report-first-page th,
  #report-modal .report-first-page td {
    padding: 4px 6px;
    font-size: 9px;
  }
  #report-modal .report-first-page th {
    font-size: 8px;
  }
  #report-modal .report-first-page .form-grid {
    gap: 6px 12px;
  }
  #report-modal .report-first-page .summary {
    gap: 7px;
    margin-top: 9px !important;
  }
  #report-modal .report-first-page .summary > div {
    padding: 7px 9px;
    font-size: 10px;
  }
  #report-modal .report-first-page .summary b {
    font-size: 15px;
  }
  #report-modal {
    position: static !important;
    background: white;
    padding: 0;
    display: block !important;
  }
  #report-modal .modal-body {
    max-height: none;
    overflow: visible;
    padding: 0;
    width: 100%;
  }
  .receipt {
    display: block;
    width: 100%;
    height: auto;
    max-height: 7.5in;
    object-fit: contain;
    margin: 0 auto;
    page-break-before: auto;
  }
  .receipt-section {
    break-before: page;
    page-break-before: always;
  }
  .receipt-section > h2 {
    margin: 0 0 8px;
    break-after: avoid;
    page-break-after: avoid;
  }
  .receipt-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .receipt-card:not(:first-of-type) {
    break-before: page;
    page-break-before: always;
  }
  .table-wrap {
    overflow: visible;
  }
  .actions {
    display: none;
  }
}
