.customsDocumentManagementPage > .customsPageHeader { margin-bottom: 36px; }
.customsDocumentManagementPage > .customsPageHeader .customsEyebrow { margin: 0; color: #18212f; font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: 0; }
.customsDocumentManagementPage > .customsPageHeader h1 { margin: 0; line-height: 34px; }
.customsDocumentManagementPage > .customsPageHeader p { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 23px; }
.customsDocumentOverviewLayout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; margin-bottom: 16px; }
.customsDocumentOverviewPanel, .customsDocumentOverviewSideCard { min-width: 0; border: 1px solid #d7e1ee; border-radius: 12px; background: #fff; }
.customsDocumentOverviewPanel { overflow: hidden; }
.customsDocumentOverviewHeader { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #e7edf4; }
.customsDocumentOverviewHeader h2, .customsDocumentOverviewSideCard h2 { margin: 0; color: #172033; font-size: 16px; font-weight: 700; line-height: 22px; }
.customsDocumentOverviewHeader p { margin: 3px 0 0; color: #718198; font-size: 12px; line-height: 18px; }
.customsDocumentOverviewTime { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; color: #718198; font-size: 11px; white-space: nowrap; }
.customsDocumentOverviewTotals { padding: 20px 18px; }
.customsDocumentOverviewMetrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.customsDocumentOverviewMetric { display: flex; min-width: 0; height: 108px; min-height: 108px; flex-direction: column; align-items: flex-start; gap: 6px; padding: 11px 10px; border: 1px solid #e2e9f2; border-radius: 8px; background: #fff; color: #52627a; text-align: left; font-family: inherit; cursor: pointer; }
.customsDocumentOverviewMetricLabel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 17px; }
.customsDocumentOverviewMetricValue { display: flex; align-items: baseline; gap: 5px; line-height: 32px; }
.customsDocumentOverviewMetricValue strong { color: #172033; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.customsDocumentOverviewMetricValue small, .customsDocumentOverviewSideCard small { color: #8495ad; font-size: 11px; font-weight: 400; }
.customsDocumentOverviewMetric.isComplete strong { color: #15803d; }
.customsDocumentOverviewMetric.isIncomplete strong { color: #b45309; }
.customsDocumentOverviewMetricDescription { display: inline-flex; align-items: center; gap: 4px; color: #718198; font-size: 11px; line-height: 16px; }
.customsDocumentOverviewMetric:hover:not(:disabled) { border-color: #bccadb; background: #fbfcfe; }
.customsDocumentOverviewCompletion { margin-top: 20px; }
.customsDocumentOverviewCompletion > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #52627a; font-size: 12px; line-height: 20px; }
.customsDocumentOverviewCompletion strong { margin-left: 4px; color: #15803d; font-size: 16px; font-variant-numeric: tabular-nums; }
.customsDocumentOverviewCompletion small { color: #8a9bb3; font-size: 10px; }
.customsDocumentOverviewProgress { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #edf2f6; }
.customsDocumentOverviewProgress > span { display: block; height: 100%; border-radius: inherit; background: #239b5b; }
.customsDocumentOverviewMissing { padding: 14px 18px 11px; border-top: 1px solid #e7edf4; }
.customsDocumentOverviewMissingHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.customsDocumentOverviewMissingHeader h3 { margin: 0; color: #3f5069; font-size: 12px; font-weight: 700; line-height: 18px; }
.customsDocumentOverviewMissingHeader > span { color: #8a9bb3; font-size: 10px; }
.customsDocumentOverviewMissingList { display: grid; }
.customsDocumentOverviewMissingList button { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(80px, 1fr) 54px 14px; min-height: 26px; align-items: center; gap: 10px; border: 0; border-radius: 4px; padding: 3px 0; background: transparent; color: #52627a; text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.customsDocumentOverviewMissingList button:hover:not(:disabled) { color: #9a3412; background: #fffaf6; }
.customsDocumentOverviewMissingTrack { height: 5px; overflow: hidden; border-radius: 999px; background: #f7eee8; }
.customsDocumentOverviewMissingTrack > span { display: block; height: 100%; border-radius: inherit; background: #dc975f; }
.customsDocumentOverviewMissingCount { display: inline-flex; justify-content: flex-end; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.customsDocumentOverviewMissingCount strong { font-size: 12px; font-weight: 700; }
.customsDocumentOverviewMissingCount small { color: #8a9bb3; font-size: 10px; }
.customsDocumentOverviewMissing > p { margin: 12px 0 0; color: #8a9bb3; font-size: 10px; line-height: 16px; }
.customsDocumentOverviewToggle { display: flex; min-height: 45px; width: 100%; align-items: center; justify-content: center; gap: 7px; border: 0; border-top: 1px solid #e7edf4; background: #fff; color: #52627a; font-family: inherit; font-size: 12px; cursor: pointer; }
.customsDocumentOverviewToggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.customsDocumentOverviewAside { display: grid; gap: 14px; }
.customsDocumentOverviewSideCard { padding: 18px 20px; }
.customsDocumentOverviewSideCard header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.customsDocumentOverviewSideCard header > span { border-radius: 4px; padding: 3px 7px; color: #64748b; background: #f1f5f9; font-size: 10px; white-space: nowrap; }
.customsDocumentOverviewSideValue { margin: 16px 0; }
.customsDocumentOverviewSideValue > span { display: inline-flex; align-items: center; gap: 6px; color: #718198; font-size: 12px; }
.customsDocumentOverviewSideValue > div { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.customsDocumentOverviewSideValue strong { color: #172033; font-size: 38px; line-height: 42px; font-weight: 700; font-variant-numeric: tabular-nums; }
.customsDocumentOverviewSideCard dl { display: grid; gap: 8px; margin: 0; padding: 12px 0; border-block: 1px solid #e7edf4; font-size: 12px; line-height: 16px; }
.customsDocumentOverviewSideCard dl > div { display: flex; justify-content: space-between; gap: 10px; }
.customsDocumentOverviewSideCard dt { color: #718198; }
.customsDocumentOverviewSideCard dd { margin: 0; color: #3f5069; font-weight: 700; }
.customsDocumentOverviewSideCard p { margin: 10px 0; color: #718198; font-size: 11px; line-height: 18px; }
.customsDocumentOverviewSideCard button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: #52627a; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.customsDocumentOverviewOriginal h2 { color: #52627a; font-size: 14px; }
.customsDocumentOverviewOriginal { min-height: 129px; }
.customsDocumentOverviewOriginal p { margin: 12px 0; }
.customsDocumentOverviewOriginal header > div { display: flex; align-items: baseline; gap: 4px; }
.customsDocumentOverviewOriginal strong { color: #3f5069; font-size: 24px; font-variant-numeric: tabular-nums; }
.customsDocumentOverviewLayout button:focus-visible { outline: 2px solid var(--customs-accent); outline-offset: 2px; }
.customsDocumentOverviewLayout button:disabled { cursor: default; }
.customsDocumentOverviewError { margin: 14px 18px 0; color: #b91c1c; font-size: 12px; }
.customsDocumentStatusTabs { display: inline-flex; gap: 4px; margin: 0 0 28px; padding: 4px; border: 1px solid #d7e1ee; border-radius: 9px; background: #fff; }
.customsDocumentStatusTabs button { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 7px; background: #fff; color: #52627a; font: inherit; font-weight: 700; cursor: pointer; }
.customsDocumentStatusTabs button > span { border-radius: 999px; padding: 3px 8px; color: #64748b; background: #e8eef5; font-size: 11px; }
.customsDocumentStatusTabs button[aria-selected="true"] { background: #c51b1b; color: #fff; }
.customsDocumentStatusTabs button[aria-selected="true"] > span { background: #fff; color: #9f1717; }
.customsDocumentStatusTabs button:focus-visible { outline: 2px solid var(--customs-accent); outline-offset: 2px; }
.customsDocumentLedgerPanel.customsPanel { padding: 0; overflow: hidden; }
.customsDocumentToolbar.customsToolbar { margin: 0; padding: 14px; border-bottom: 1px solid #e3e8ef; }
.customsDocumentToolbar label { display: flex; min-width: 0; align-items: center; gap: 6px; font-size: 12px; color: #64748b; white-space: nowrap; }
.customsDocumentToolbar .customsDocumentSearch { flex: 1 1 280px; gap: 9px; height: 38px; border: 1px solid #d5dde8; border-radius: 8px; padding: 0 12px; color: #7b8798; background: #fff; }
.customsDocumentSearch:focus-within { border-color: #c2413a; box-shadow: 0 0 0 3px rgba(194, 65, 58, .1); }
.customsDocumentSearch svg { flex-shrink: 0; }
.customsDocumentToolbar .customsDocumentSearch input { min-width: 0; width: 100%; min-height: 0; border: 0; outline: 0; padding: 0; background: transparent; box-shadow: none; }
.customsDocumentToolbar input[type="date"] { min-width: 132px; }
.customsDocumentFilters.customsToolbar { margin: 0; padding: 0 14px 12px; }
.customsDocumentToolbar + .customsDocumentFilters { padding-top: 12px; }
.customsDocumentScopeNote { color: #6c7789; font-size: 12px; line-height: 1.6; }
.customsDocumentLegend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; min-height: 34px; padding: 7px 14px; border-block: 1px solid #e3e8ef; color: #6c7789; background: #f8fafc; font-size: 12px; }
.customsDocumentLegend span { display: inline-flex; align-items: center; gap: 5px; }
.customsDocumentLegend span:first-child { color: #15803d; }
.customsDocumentLegend span:nth-child(2) { color: #94a3b8; }
.customsDocumentLedgerPanel .customsTableWrap { border: 0; border-radius: 0; border-bottom: 1px solid #e3e8ef; }
.customsDocumentManagementPage .customsDocumentTable { min-width: 1240px; border-collapse: separate; border-spacing: 0; table-layout: auto; font-size: 12px; }
.customsDocumentManagementPage .customsDocumentTable th,
.customsDocumentManagementPage .customsDocumentTable td { height: 43px; max-width: none; border-top: 0; border-right: 1px solid #edf0f4; border-bottom: 1px solid #e6ebf1; padding: 8px 10px; white-space: normal; text-overflow: clip; }
.customsDocumentManagementPage .customsDocumentTable th { min-width: 60px; color: #526074; font-weight: 650; }
.customsDocumentManagementPage .customsDocumentTable thead tr:last-child th:first-child { position: sticky; left: 0; z-index: 3; min-width: 168px; }
.customsDocumentManagementPage .customsDocumentGroupHeader th { height: 36px; color: #334155; background: #eef2f7; font-size: 11px; letter-spacing: .03em; }
.customsDocumentManagementPage .customsDocumentGroupHeader th:nth-child(2) { color: #9a3412; background: #fff4ec; }
.customsDocumentManagementPage .customsDocumentGroupHeader th:nth-child(3) { color: #166534; background: #eff8f4; }
.customsDocumentTable td:first-child { position: sticky; left: 0; z-index: 1; background: white; }
.customsDocumentManagementPage .customsDocumentTable td:first-child strong { white-space: nowrap; }
.customsDocumentTable tbody tr[tabindex] { cursor: pointer; }
.customsDocumentTable tbody tr[tabindex]:hover td { background: #fff8f6; }
.customsDocumentTable tbody tr[tabindex]:focus-visible { outline: 2px solid var(--customs-accent); outline-offset: -2px; }
.customsDocumentSubtext { display: block; margin-top: 5px; color: #64748b; }
.customsDocumentBadge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px; white-space: nowrap; font-size: 12px; }
.customsDocumentBadge.present { background: #f0fdf4; color: #15803d; }
.customsDocumentBadge.missing { background: #fff7ed; color: #b45309; }
.customsDocumentBadge.partial { background: #fffbeb; color: #a16207; }
.customsDocumentTable td .customsDocumentBadge { font-size: 11px; }
.customsDocumentTable td:not(.customsDocumentMissingCell) .customsDocumentBadge.present { color: #15803d; background: #eaf7ef; }
.customsDocumentTable td:not(.customsDocumentMissingCell) .customsDocumentBadge.missing { color: #64748b; background: #f1f5f9; }
.customsDocumentTable .customsDocumentMissingCell .customsDocumentBadge { border-radius: 999px; }
.customsDocumentMissingCell { width: 150px; min-width: 130px; }
.customsDocumentMissingCell small { display: block; margin-top: 7px; line-height: 1.6; text-align: left; color: #64748b; }
.customsDocumentLedgerPanel .customsPagination { justify-content: space-between; margin: 0; padding: 12px 14px; font-size: 12px; }
.customsDocumentLedgerPanel .customsPagination > div { display: flex; gap: 8px; }
.customsDocumentLedgerPanel > .customsPanelNote { padding: 0 14px 12px; margin: 0; font-size: 12px; }
.customsDocumentLedgerPanel > .customsAlert { margin: 12px 14px; }
.customsDocumentDetailModal { display: flex; flex-direction: column; width: min(1120px, calc(100vw - 40px)); max-width: 1120px; max-height: calc(100dvh - 40px); overflow: hidden; }
.customsDocumentDetailModal .customsModalHeader { flex-shrink: 0; }
.customsDocumentDetailModal .customsModalHeader p { margin: 6px 0 0; color: #64748b; }
.customsDocumentDetailBody { min-height: 0; overflow: auto; padding: 0 4px 8px; }
.customsDocumentDetailSummary { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.customsDocumentDetailSummary span { display: block; margin-top: 5px; }
.customsDocumentDetailSummary p { max-width: 460px; margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #64748b; }
.customsDocumentUploadScope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; font-size: 12px; color: #475569; }
.customsDocumentUploadScope label { display: flex; align-items: center; gap: 8px; }
.customsDocumentUploadScope select { max-width: 360px; min-height: 36px; border: 1px solid #d7dde5; border-radius: 7px; padding: 6px; }
.customsDocumentUploadScope small { color: #64748b; }
.customsDocumentDetailGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customsDocumentDetailCard { min-width: 0; padding: 15px; border: 1px solid #e2e8f0; border-radius: 10px; }
.customsDocumentDetailCardHead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.customsDocumentDetailCardHead h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.customsDocumentDetailFiles { display: grid; gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.customsDocumentDetailFiles li { display: flex; justify-content: space-between; gap: 10px; padding: 9px; border-radius: 6px; background: #f8fafc; font-size: 12px; }
.customsDocumentDetailFiles li > span { min-width: 0; overflow-wrap: anywhere; }
.customsDocumentDetailFiles li > div { display: flex; gap: 10px; flex-shrink: 0; }
.customsDocumentCorrectionReason { display: grid; gap: 5px; margin: 10px 0; color: #64748b; font-size: 12px; }
.customsDocumentCorrectionReason textarea { width: 100%; min-height: 58px; resize: vertical; border: 1px solid #d7dde5; border-radius: 7px; padding: 8px; }
.customsDocumentDetailFooter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #e2e8f0; flex-shrink: 0; color: #64748b; font-size: 12px; }
.customsDocumentDetailLoading { position: fixed; z-index: 1000; inset: 45% auto auto 45%; padding: 20px; border: 1px solid #e2e8f0; border-radius: 10px; background: white; }
@media (max-width: 1100px) {
  .customsDocumentOverviewLayout { grid-template-columns: minmax(0, 1fr); }
  .customsDocumentOverviewAside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 720px) {
  .customsDocumentManagementPage > .customsPageHeader { margin-bottom: 24px; }
  .customsDocumentOverviewHeader { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px; }
  .customsDocumentOverviewTotals { padding: 14px; }
  .customsDocumentOverviewMetrics { gap: 6px; }
  .customsDocumentOverviewMetric { gap: 6px; height: auto; padding: 10px 7px; }
  .customsDocumentOverviewMetricValue strong { font-size: 25px; }
  .customsDocumentOverviewMetricLabel { flex-wrap: wrap; gap: 4px; font-size: 11px; }
  .customsDocumentOverviewMetricDescription { font-size: 10px; }
  .customsDocumentOverviewMissing { padding: 14px; }
  .customsDocumentOverviewMissingList button { grid-template-columns: minmax(0, 1.3fr) minmax(40px, 1fr) 36px 12px; gap: 6px; min-height: 32px; font-size: 11px; }
  .customsDocumentOverviewAside { grid-template-columns: minmax(0, 1fr); }
  .customsDocumentStatusTabs { display: flex; }
  .customsDocumentStatusTabs button { flex: 1; justify-content: center; gap: 6px; padding: 0 6px; }
  .customsDocumentToolbar .customsDocumentSearch { flex-basis: 100%; }
  .customsDocumentToolbar label:not(.customsDocumentSearch) { flex: 1 1 100%; justify-content: space-between; }
  .customsDocumentToolbar label input[type="date"] { flex: 0 1 200px; width: 70%; }
  .customsDocumentToolbar.customsToolbar button { flex: 1 1 0; width: auto; }
  .customsDocumentFilters.customsToolbar select { flex: 1 1 130px; min-width: 0; width: 130px; }
  .customsDocumentFilters.customsToolbar select:last-of-type { flex-basis: 100%; width: 100%; }
  .customsDocumentLegend { gap: 6px 12px; }
  .customsDocumentDetailModal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .customsDocumentDetailGrid { grid-template-columns: minmax(0, 1fr); }
  .customsDocumentDetailSummary { flex-direction: column; }
  .customsDocumentUploadScope label { width: 100%; align-items: start; flex-direction: column; }
  .customsDocumentUploadScope select { width: 100%; max-width: 100%; }
}

.salesVoucherPage {
  --voucher-border: #dce4ee;
  --voucher-muted: #71819a;
  --voucher-red: #c62020;
  --voucher-green: #16843e;
  --voucher-orange: #b8540c;
  color: #1c293c;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 20px 10px 0;
}
.salesVoucherPage button, .salesVoucherPage input { font: inherit; }
.salesVoucherPage button { cursor: pointer; }
.salesVoucherPage button:disabled { cursor: default; opacity: .5; }
.salesVoucherPage button:focus-visible, .salesVoucherPage a:focus-visible,
.salesVoucherPage summary:focus-visible, .voucherTableScroll:focus-visible {
  outline: 2px solid #b65b5b;
  outline-offset: 3px;
}
.voucherHeader { margin-bottom: 29px; }
.voucherEyebrow { color: #293344; font-size: 16px; line-height: 1.4; }
.voucherHeader h1 { margin: 1px 0 10px; font-size: 26px; font-weight: 650; line-height: 1.35; }
.voucherHeader p { margin: 0; color: #747f90; font-size: 14px; line-height: 1.7; }
.voucherDashboardLayout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; margin-bottom: 16px; }
.voucherOverviewPanel, .voucherSidePanel, .voucherListPanel { background: #fff; border: 1px solid var(--voucher-border); border-radius: 12px; min-width: 0; }
.voucherOverviewPanel { overflow: hidden; }
.salesVoucherPage h2 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.35; }
.salesVoucherPage h3 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.6; }
.voucherOverviewHeading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #edf0f5; }
.voucherOverviewHeading p { color: var(--voucher-muted); font-size: 11px; margin: 5px 0 0; line-height: 1.4; }
.voucherUpdate, .voucherUpdate > span { display: flex; align-items: center; gap: 7px; }
.voucherUpdate { flex: none; font-size: 10px; color: #62748f; }
.voucherUpdate button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 5px; width: 28px; height: 28px; color: #62748f; }
.voucherUpdate button:hover { background: #f3f5f8; }
.voucherOverviewMetrics { padding: 20px 20px 15px; }
.voucherCards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.voucherCard { min-width: 0; min-height: 108px; padding: 12px; text-align: left; color: inherit; background: #fff; border: 1px solid #e3e9f1; border-radius: 8px; transition: border-color .15s; }
.voucherCard:hover { border-color: #c5cfdd; background: #fcfdff; }
.voucherCard.selected { border-color: #e3e9f1; }
.voucherCardTitle { display: flex; align-items: center; gap: 6px; color: #6c7f99; font-size: 12px; white-space: nowrap; }
.voucherCard strong { display: block; margin: 9px 0 7px; font-size: 31px; font-weight: 700; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: #1e293c; }
.voucherCard small, .voucherSideMetric small, .voucherPendingPanel strong small { font-size: 10px; font-weight: 400; color: #8c9db5; margin-left: 5px; letter-spacing: normal; }
.voucherCard.complete strong { color: var(--voucher-green); }
.voucherCard.incomplete strong { color: var(--voucher-orange); }
.voucherCardDescription { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #7b899f; line-height: 1.5; }
.voucherCardDescription svg { flex: none; }
.voucherCompletion { margin-top: 19px; }
.voucherCompletion > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #69788e; font-size: 11px; }
.voucherCompletion strong { font-size: 16px; color: var(--voucher-green); font-weight: 650; margin-left: 6px; font-variant-numeric: tabular-nums; }
.voucherCompletion small { color: #8b9db5; font-size: 10px; }
.voucherCompletion progress { display: block; width: 100%; height: 6px; margin-top: 9px; border: 0; border-radius: 5px; overflow: hidden; background: #edf2f5; accent-color: #27945a; }
.voucherCompletion progress::-webkit-progress-bar { background: #edf2f5; border-radius: 5px; }
.voucherCompletion progress::-webkit-progress-value { background: #27945a; border-radius: 5px; }
.voucherCompletion progress::-moz-progress-bar { background: #27945a; border-radius: 5px; }
.voucherNotes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 10px; color: #8391a5; line-height: 1.7; margin-top: 12px; }
.voucherNotes > div { display: flex; gap: 12px; }
.voucherNotes button { border: 0; padding: 0; background: none; color: #6e7f97; text-decoration: underline; text-underline-offset: 3px; }
.voucherMissingPanel { padding: 14px 20px 17px; border-top: 1px solid #edf0f5; }
.voucherSectionHeading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.voucherSectionHeading h3 { color: #47566f; }
.voucherSectionHeading > span { font-size: 10px; color: #94a6bf; }
.voucherMissingGrid { display: grid; gap: 2px; }
.salesVoucherPage .voucherMissingRow { display: grid; grid-template-columns: minmax(115px, 1fr) minmax(0, 1fr) 65px 14px; align-items: center; gap: 10px; min-height: 25px; width: 100%; border: 0; background: transparent; color: #5c6e89; padding: 2px 0; text-align: left; font-size: 11px; }
.salesVoucherPage .voucherMissingRow:hover, .salesVoucherPage .voucherMissingRow[aria-pressed=true] { color: #bb5a16; }
.voucherMissingTrack { display: block; height: 5px; border-radius: 4px; background: #f9f0e9; overflow: hidden; }
.voucherMissingTrack > span { display: block; height: 100%; border-radius: inherit; background: #db986a; }
.voucherMissingRow strong { text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.voucherMissingRow strong small { font-size: 10px; font-weight: 400; color: #92a2ba; margin-left: 4px; }
.voucherMissingPanel > p { font-size: 10px; color: #96a6bd; margin: 10px 0 0; }
.voucherRequirementDetails { border-top: 1px solid #edf0f5; color: #6d7b91; }
.voucherRequirementDetails > summary { display: flex; align-items: center; justify-content: center; gap: 7px; list-style: none; padding: 14px 20px; cursor: pointer; font-size: 12px; }
.voucherRequirementDetails > summary::-webkit-details-marker { display: none; }
.voucherRequirementDetails[open] > summary svg { transform: rotate(180deg); }
.voucherRequirementDetails dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 20px 18px; margin: 0; font-size: 11px; }
.voucherRequirementDetails dt { color: #435570; font-weight: 600; margin-bottom: 5px; }
.voucherRequirementDetails dd { margin: 0; color: #8090a5; }
.voucherDashboardAside { display: grid; gap: 14px; min-width: 0; }
.voucherSidePanel { padding: 19px 20px; }
.voucherSidePanel header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.voucherSidePanel header > span { padding: 2px 6px; border-radius: 4px; background: #f1f5f9; color: #7c8fa9; font-size: 10px; white-space: nowrap; }
.voucherSideMetric { margin: 22px 0 17px; }
.voucherSideMetric > span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #72849f; }
.voucherSideMetric > strong { display: block; font-size: 36px; color: #1f2b3e; margin-top: 8px; line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
.voucherSidePanel dl { display: grid; gap: 9px; margin: 0; border-block: 1px solid #edf0f5; padding: 17px 0; font-size: 11px; }
.voucherSidePanel dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.voucherSidePanel dt { color: #7a8ca6; }
.voucherSidePanel dd { margin: 0; color: #4e5c73; font-weight: 600; text-align: right; }
.voucherSidePanel p { margin: 15px 0 13px; color: #8391a5; font-size: 11px; line-height: 1.8; }
.voucherSidePanel > button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: #53667f; background: transparent; font-size: 12px; font-weight: 600; min-height: 28px; }
.voucherSidePanel > button:hover { color: #b52121; }
.voucherPendingPanel header > strong { font-size: 23px; font-weight: 650; color: #3b4d67; white-space: nowrap; }
.voucherPendingPanel h3 { color: #64748d; }
.voucherPendingPanel p { margin-top: 13px; }
.voucherTabs { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 5px; background: #f7f9fc; margin-bottom: 15px; }
.voucherTabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 13px; border: 1px solid #dbe3ed; border-radius: 7px; background: #fff; color: #566781; font-weight: 650; font-size: 14px; }
.voucherTabs button span { padding: 2px 7px; border-radius: 12px; background: #e9eef5; color: #798ba5; font-size: 11px; font-weight: 600; }
.voucherTabs button[aria-selected=true] { background: #c62020; border-color: #c62020; color: #fff; }
.voucherTabs button[aria-selected=true] span { color: #b91e1e; background: #fff; }
.voucherListPanel { overflow: hidden; margin-bottom: 16px; }
.voucherListHeading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px 0; }
.voucherListHeading > span { font-size: 11px; color: #8492a7; }
.voucherFilters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px; }
.voucherFilters label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #75859d; }
.voucherSearch { flex: 1; max-width: 360px; min-width: 200px; background: #fff; border: 1px solid #d9e1eb; border-radius: 7px; padding: 0 10px; }
.voucherSearch:focus-within { outline: 2px solid #c49494; outline-offset: 2px; }
.voucherSearch input { width: 100%; min-width: 0; min-height: 38px; border: 0; outline: none; background: transparent; }
.voucherFilters input[type=date] { max-width: 145px; min-height: 38px; border: 1px solid #d9e1eb; border-radius: 7px; padding: 8px; background: #fff; color: #52667e; }
.voucherFilters button, .voucherPagination button, .voucherError button { border: 1px solid #d7dfe9; border-radius: 7px; padding: 9px 14px; background: #fff; min-height: 38px; color: #53667f; }
.voucherFilters button[type=submit] { color: #fff; background: #c62020; border-color: #c62020; }
.voucherTableScroll { overflow-x: auto; max-width: 100%; }
.salesVoucherPage table { width: 100%; min-width: 1330px; border-collapse: collapse; table-layout: auto; font-size: 12px; text-align: left; }
.salesVoucherPage th { background: #f7f9fc; color: #6d7e97; font-weight: 500; white-space: nowrap; padding: 13px 15px; border-block: 1px solid #e9edf3; text-align: left; }
.salesVoucherPage th:first-child { min-width: 200px; }
.salesVoucherPage td { padding: 17px 15px; vertical-align: top; border-bottom: 1px solid #edf0f5; line-height: 1.65; text-align: left; }
.salesVoucherPage td:first-child { min-width: 200px; }
.salesVoucherPage td:nth-child(2) { min-width: 110px; }
.salesVoucherPage td:nth-child(3) { min-width: 170px; max-width: 220px; }
.salesVoucherPage td:last-child { min-width: 170px; }
.salesVoucherPage .voucherContractLink { display: block; max-width: none; white-space: normal; overflow: visible; text-overflow: clip; text-align: left; color: #506e95; font-weight: 600; text-decoration: none; word-break: break-all; }
.voucherSubtext { display: block; color: #8996a8; font-size: 11px; margin-top: 5px; }
.voucherDocument { display: inline-block; white-space: nowrap; font-size: 11px; padding: 2px 5px; border-radius: 4px; }
.voucherDocument.present { color: #22694e; background: #edf8f1; }
.voucherDocument.missing { color: #a54f24; background: #fff2e7; }
.voucherDocument.neutral { color: #8693a2; background: #f2f4f7; }
.salesVoucherPage td > a { text-decoration: none; }
.voucherStatus { display: inline-block; border-radius: 5px; padding: 3px 7px; background: #edf1f7; color: #586a80; font-size: 11px; }
.voucherStatus.complete { background: #e8f7ed; color: #216e49; }
.voucherStatus.incomplete { background: #fff0e2; color: #a34e20; }
.voucherStatus.pending, .voucherStatus.rulesPending { background: #fff6dc; color: #8a670a; }
.voucherProgress { display: block; color: #526984; margin-top: 8px; font-size: 13px; }
.voucherMissingText { display: block; margin-top: 4px; color: #ae632f; font-size: 11px; }
.salesVoucherPage td details summary { cursor: pointer; color: #667b96; min-height: 25px; }
.salesVoucherPage td details ul { list-style: none; padding: 0; margin: 7px 0 4px; font-size: 11px; }
.salesVoucherPage td details li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.salesVoucherPage td details li strong { font-weight: 500; white-space: nowrap; }
.salesVoucherPage td details small { color: #8693a3; font-size: 10px; }
.voucherArchiveLink { display: inline-block; color: #637d9d; margin-top: 9px; font-size: 11px; }
.voucherPagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 20px; font-size: 12px; color: #7f8da2; }
.voucherPagination > span { margin-right: 8px; }
.voucherEmpty { padding: 50px 20px; text-align: center; color: #7a879b; font-size: 14px; }
.voucherError { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 35px 20px; color: #a34a2c; font-size: 13px; }
.voucherFootnote { font-size: 11px; line-height: 1.9; color: #8c99ab; }
.voucherRuleNotice { margin: 0; padding: 18px 20px; border-top: 1px solid #edf0f5; color: #7c8698; font-size: 12px; line-height: 1.9; }
.voucherTableHint { display: none; }
@media (max-width: 1450px) {
  .voucherDashboardLayout { grid-template-columns: minmax(0, 1fr) 245px; }
  .voucherOverviewHeading { flex-wrap: wrap; gap: 8px; }
  .voucherCard strong { font-size: 28px; }
}
@media (max-width: 1200px) {
  .voucherCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salesVoucherPage .voucherMissingRow { grid-template-columns: 105px minmax(0, 1fr) 60px 13px; gap: 8px; }
  .voucherNotes { flex-direction: column; }
}
@media (max-width: 900px) {
  .voucherDashboardLayout { grid-template-columns: minmax(0, 1fr); }
  .voucherDashboardAside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voucherSidePanel { padding: 17px 18px; }
  .voucherSideMetric { margin-top: 16px; }
  .voucherSidePanel dl { gap: 7px; padding-block: 12px; }
  .voucherRequirementDetails dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .salesVoucherPage { padding: 0; }
  .shell.salesVoucherShell { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .salesVoucherShell .sidebar, .salesVoucherShell .main, .salesVoucherShell .nav { min-width: 0; max-width: 100%; }
  .salesVoucherShell .sidebar { padding: 14px 12px 8px; }
  .salesVoucherShell .brand { margin-bottom: 8px; }
  .salesVoucherShell .nav { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 5px; }
  .salesVoucherShell .navItem { flex: none; white-space: nowrap; min-height: 44px; }
  .voucherHeader { margin-bottom: 24px; }
  .voucherEyebrow { font-size: 12px; }
  .voucherHeader h1 { font-size: 23px; margin-bottom: 8px; }
  .voucherHeader p { font-size: 12px; }
  .voucherOverviewHeading { padding: 15px 14px; }
  .voucherOverviewHeading p { font-size: 10px; }
  .voucherUpdate { width: 100%; justify-content: space-between; }
  .voucherUpdate button { width: 36px; height: 32px; }
  .voucherOverviewMetrics { padding: 14px; }
  .voucherCard { padding: 11px 9px; min-height: 108px; }
  .voucherCardTitle { font-size: 11px; }
  .voucherCard strong { font-size: 28px; }
  .voucherCardDescription { font-size: 9px; line-height: 1.6; }
  .voucherCompletion small { font-size: 9px; }
  .voucherMissingPanel { padding: 14px; }
  .voucherSectionHeading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .salesVoucherPage .voucherMissingRow { grid-template-columns: 98px minmax(0, 1fr) 60px 12px; gap: 7px; min-height: 34px; }
  .voucherMissingName { font-size: 11px; }
  .voucherDashboardAside { grid-template-columns: minmax(0, 1fr); }
  .voucherSideMetric { display: flex; justify-content: space-between; align-items: center; margin-block: 14px; }
  .voucherSideMetric > strong { margin: 0; font-size: 30px; }
  .voucherTabs button { min-height: 42px; }
  .voucherListHeading { padding: 16px 14px 0; align-items: flex-start; flex-direction: column; gap: 6px; }
  .voucherFilters { padding: 14px; gap: 9px; }
  .voucherSearch { flex-basis: 100%; max-width: none; }
  .voucherFilters input[type=date] { max-width: 125px; }
  .voucherFilters button, .voucherPagination button { min-height: 44px; }
  .voucherPagination { padding: 13px 10px; gap: 6px; }
  .voucherPagination button { padding: 8px 10px; }
  .voucherPagination > span { margin-right: auto; font-size: 11px; }
  .voucherError { flex-wrap: wrap; }
  .voucherFootnote { font-size: 10px; }
  .voucherTableHint { display: block; font-size: 11px; color: #7a899b; padding: 0 14px; margin: 0 0 10px; }
}

.businessListPage.documentManagementListPage { height: auto; min-height: calc(100vh - 78px); }
.businessListPage.documentManagementListPage > .panel { flex: 0 0 auto; min-height: 240px; max-height: clamp(280px, 70vh, 760px); }
.procurementDocumentOverview { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; margin: 8px 0 20px; color: #1e293b; }
.procurementDocumentOverview section { background: #fff; border: 1px solid #dce4ee; border-radius: 14px; }
.procurementDocumentOverview h2 { margin: 0; font-size: 18px; }
.procurementDocumentOverview h3 { margin: 0; font-size: 14px; }
.procurementDocumentOverview p { margin: 10px 0 0; color: #7c8a9e; font-size: 12px; line-height: 1.65; }
.procurementDocumentOverview button { color: inherit; font: inherit; cursor: pointer; }
.procurementDocumentOverview button:disabled { cursor: default; }
.procurementDocumentOverview button:focus-visible, .procurementDocumentTabs button:focus-visible { outline: 3px solid #a8bad2; outline-offset: 3px; }
.procurementDocumentForeign > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid #e9edf3; }
.procurementDocumentForeign > header > span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 9px; border: 1px solid #e2e8f0; border-radius: 7px; color: #718198; font-size: 11px; }
.procurementDocumentForeign > header .isStale { color: #a65b1c; }
.procurementDocumentMetrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 22px 22px 0; }
.procurementDocumentMetrics > button { padding: 15px; background: #fff; border: 1px solid #e3e9f1; border-radius: 9px; text-align: left; }
.procurementDocumentMetrics > button:hover:not(:disabled), .procurementDocumentMetrics > button[aria-pressed="true"] { border-color: #a5b5c9; background: #f8fafc; }
.procurementDocumentMetrics > button > span, .procurementDocumentSideLabel { display: flex; align-items: center; gap: 7px; color: #718198; font-size: 12px; }
.procurementDocumentMetrics strong { display: block; margin-top: 12px; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
.procurementDocumentOverview small { margin-left: 5px; font-size: 11px; font-weight: 400; color: #94a3b8; letter-spacing: 0; }
.procurementDocumentMetrics .isComplete strong, .procurementDocumentRate strong { color: #188448; }
.procurementDocumentMetrics .isMissing strong { color: #b45309; }
.procurementDocumentMetrics p { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.procurementDocumentRate { padding: 24px 22px 22px; }
.procurementDocumentRate > div:first-child { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: #718198; }
.procurementDocumentRate strong { font-size: 21px; }
.procurementDocumentRate small { margin-left: auto; }
.procurementDocumentRate [role="progressbar"] { height: 7px; margin-top: 12px; background: #eef2f6; border-radius: 8px; overflow: hidden; }
.procurementDocumentRate [role="progressbar"] > span { display: block; height: 100%; background: #239b61; border-radius: inherit; }
.procurementDocumentMissing { padding: 18px 22px 20px; border-top: 1px solid #e9edf3; }
.procurementDocumentMissing > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.procurementDocumentMissing header > span { color: #94a3b8; font-size: 11px; }
.procurementDocumentMissing > button { display: grid; grid-template-columns: 110px 1fr 65px 15px; align-items: center; gap: 15px; width: 100%; min-height: 37px; border: 0; background: transparent; text-align: left; font-size: 12px; }
.procurementDocumentMissing > button:hover:not(:disabled) { background: #f8fafc; }
.procurementDocumentMissing > button strong { text-align: right; color: #53637a; }
.procurementDocumentMissingTrack { background: #faf0e9; height: 6px; border-radius: 8px; overflow: hidden; }
.procurementDocumentMissingTrack > span { display: block; background: #d99864; height: 100%; border-radius: inherit; }
.procurementDocumentOverview aside { display: grid; align-content: start; align-items: start; gap: 16px; }
.procurementDocumentOverview aside section { padding: 22px; }
.procurementDocumentOverview aside header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.procurementDocumentDomestic header > span { padding: 4px 6px; border-radius: 5px; background: #f1f5f9; color: #718198; font-size: 11px; }
.procurementDocumentSideLabel { margin-top: 24px; }
.procurementDocumentDomestic > strong { display: block; margin-top: 10px; font-size: 36px; line-height: 1.2; }
.procurementDocumentOverview dl { margin: 22px 0 16px; padding: 16px 0; border-top: 1px solid #e9edf3; border-bottom: 1px solid #e9edf3; font-size: 12px; }
.procurementDocumentOverview dl > div { display: flex; justify-content: space-between; margin: 8px 0; }
.procurementDocumentOverview dt { color: #718198; }
.procurementDocumentOverview dd { margin: 0; font-weight: 600; }
.procurementDocumentOverview aside button { display: inline-flex; gap: 7px; align-items: center; border: 0; padding: 0; margin-top: 18px; background: transparent; font-size: 12px; font-weight: 600; }
.procurementDocumentPending header > strong { font-size: 26px; }
.procurementDocumentTabs { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; padding: 6px; border: 1px solid #dce4ee; background: #f8fafc; border-radius: 12px; margin-bottom: 14px; }
.procurementDocumentTabs > button { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 5px 14px; font: inherit; font-weight: 600; color: #53637a; border: 1px solid #dce4ee; border-radius: 8px; background: white; cursor: pointer; }
.procurementDocumentTabs > button > span { padding: 2px 8px; border-radius: 16px; background: #e8eef5; font-size: 11px; }
.procurementDocumentTabs > button[aria-selected="true"] { background: #bc181d; border-color: #bc181d; color: white; }
.procurementDocumentTabs > button[aria-selected="true"] > span { color: #a61519; background: white; }
.procurementDocumentOverviewError { color: #a65b1c; font-size: 13px; }
@media (max-width: 1250px) { .procurementDocumentOverview { grid-template-columns: minmax(0, 1fr); } .procurementDocumentOverview aside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .procurementDocumentForeign > header { flex-direction: column; align-items: flex-start; padding: 16px; } .procurementDocumentMetrics { grid-template-columns: 1fr; padding: 16px 16px 0; gap: 9px; } .procurementDocumentMetrics > button { padding: 13px; } .procurementDocumentMetrics strong { font-size: 29px; margin-top: 8px; } .procurementDocumentRate, .procurementDocumentMissing { padding: 16px; } .procurementDocumentOverview aside { grid-template-columns: 1fr; } .procurementDocumentMissing > button { grid-template-columns: 83px 1fr 48px 13px; gap: 8px; } .procurementDocumentMissing > header { align-items: flex-start; flex-direction: column; gap: 5px; } .procurementDocumentTabs { gap: 5px; padding: 5px; max-width: 100%; } .procurementDocumentTabs > button { padding: 6px 10px; gap: 7px; } }
