.purchase-page{display:flex;flex-direction:column;gap:24px}.purchase-page>.sst-header{margin-bottom:0}.purchase-page h2{font-size:1rem;font-weight:750}.purchase-eyebrow{display:flex;align-items:center;gap:8px;font-size:.69rem;font-weight:600;color:var(--en-primary-text,#4f46e5);margin-bottom:7px}.purchase-eyebrow span{color:var(--text-muted)}.purchase-header-actions,.purchase-tab-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}.purchase-header-actions .btn-secondary,.purchase-header-actions .btn-primary{gap:7px;font-size:.74rem}.purchase-page svg,.purchase-receipt-dialog svg{width:17px;height:17px;flex:none}.purchase-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.purchase-summary>.card{position:relative;margin:0;padding:12px 23px}.purchase-summary p{font-size:.73rem;color:var(--text-muted);font-weight:550}.purchase-summary strong{display:block;font-size:1.8rem;font-weight:800;line-height:1.4;margin-top:4px;letter-spacing:-.035em}.purchase-summary small{display:block;font-size:.68rem;line-height:1.6;color:var(--text-muted);margin-top:3px}.purchase-summary-icon{position:absolute;right:20px;top:12px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:var(--en-soft,#eef2ff);color:var(--en-primary-text,#4f46e5)}.purchase-page .sst-tabs{display:flex;flex-wrap:wrap;gap:3px}.purchase-page .sst-tabs button{display:flex;align-items:center;gap:7px;font-size:.73rem;padding:.7rem .8rem}.purchase-tab-actions{margin-left:auto;margin-bottom:.5rem}.purchase-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px 22px;border-bottom:1px solid var(--border-color)}.purchase-filters .form-control{width:auto;max-width:240px;min-width:145px;font-size:.75rem}.purchase-filters>label{font-size:.72rem;color:var(--text-muted)}.purchase-filters>label>.form-control{display:block;margin-top:5px}.purchase-search{display:flex;align-items:center;gap:9px;flex:1;min-width:220px;max-width:440px;border:1px solid var(--border-color);border-radius:10px;padding:11px 13px;background:var(--bg-body)}.purchase-search input{width:100%;min-width:0;border:0;outline:none;background:transparent;color:var(--text-main);font-size:.76rem}.purchase-search svg{color:var(--text-muted)}.purchase-filters .purchase-check{display:flex;align-items:center;gap:6px;white-space:nowrap}.purchase-check input{accent-color:var(--en-primary-text,#4f46e5)}.purchase-table{width:100%;min-width:680px}.purchase-table th{font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);background:var(--bg-body);padding:14px 20px}.purchase-table td{padding:19px 20px;font-size:.77rem;vertical-align:middle}.purchase-table th:last-child,.purchase-table td:last-child{text-align:right}.purchase-table strong{font-weight:650}.purchase-table small{font-size:.67rem;line-height:1.6;margin-top:5px}.purchase-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:4px;white-space:nowrap}.purchase-record{display:flex;align-items:flex-start;gap:12px;min-width:230px}.purchase-record-icon{display:flex;align-items:center;justify-content:center;width:34px;height:38px;flex:none;border:1px solid var(--border-color);border-radius:9px;color:var(--en-primary-text,#4f46e5);background:var(--en-soft,#eef2ff)}.purchase-record>div{min-width:0}.purchase-record strong{font-family:monospace;font-size:.78rem;letter-spacing:.02em}.purchase-record p{max-width:420px;margin:5px 0;color:var(--text-main);font-size:.75rem;line-height:1.5}.purchase-muted{color:var(--text-muted);font-size:.72rem}.purchase-status{display:inline-flex;align-items:center;gap:5px;width:max-content;border:1px solid currentColor;border-radius:999px;padding:3px 9px;font-size:.65rem;font-weight:650;white-space:nowrap}.purchase-status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.purchase-status--green{color:#4d5d31;background:#f2f5ec}.purchase-status--blue{color:#163b61;background:#eef3f9}.purchase-status--amber{color:#a16207;background:#fffbeb}.purchase-status--red{color:#be123c;background:#fff1f2}.purchase-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px}.purchase-section-heading p,.purchase-section-heading>span{font-size:.72rem;line-height:1.5;color:var(--text-muted);margin-top:4px}.purchase-ledger{margin-top:0}.purchase-entry .sst-form{padding:0}.purchase-entry .sst-header{margin-bottom:18px}.purchase-request-line{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;border:1px solid var(--border-color);border-radius:12px;padding:18px;margin-bottom:16px}.purchase-request-line .sst-wide{grid-column:1/-1}.purchase-detail-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.purchase-detail-meta small{display:block;font-size:.67rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:8px}.purchase-detail-meta strong{font-size:.8rem;font-weight:600}.purchase-detail-reason{margin:22px 0;padding-top:18px;border-top:1px solid var(--border-color);font-size:.85rem}.purchase-quote-total{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:22px;font-size:.83rem}.purchase-quote-total strong{font-size:1.3rem;font-weight:750}.purchase-receipt-dialog{width:min(960px,100%);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--border-color);border-radius:22px;background:var(--bg-card,#fff);color:var(--text-main);box-shadow:0 24px 70px #0c275233}.purchase-receipt-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border-color);padding:22px 26px}.purchase-receipt-dialog h2{font-size:1.35rem;font-weight:800}.purchase-receipt-body{padding:26px}.purchase-receipt-body label{display:block;font-size:.8rem;font-weight:600}.purchase-receipt-body .form-control{width:100%;margin-top:8px;font-weight:400}.purchase-receipt-body td .form-control{min-width:110px}.purchase-receipt-body select{min-width:200px}.purchase-receipt-context{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:22px 0;padding:15px;border-radius:10px;background:var(--en-soft,#eef2ff);font-size:.8rem}.purchase-receipt-body .overflow-x-auto{margin-top:20px}.purchase-receipt-note{font-size:.72rem;color:var(--text-muted);margin:14px 0;line-height:1.6}.purchase-receipt-dialog footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border-color);padding-top:20px;margin-top:20px}.dark .purchase-status--green{background:#151a10;color:#c2d299}.dark .purchase-status--blue{background:#19232e;color:#b9cff0}.dark .purchase-status--amber{background:#42341e;color:#fcd34d}.dark .purchase-status--red{background:#4c2534;color:#fda4af}
@media(max-width:1150px){.purchase-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-page>.sst-header{align-items:flex-start;flex-wrap:wrap}}@media(max-width:640px){.purchase-summary{grid-template-columns:1fr}.purchase-summary>.card{padding:12px 20px}.purchase-filters{padding:16px}.purchase-filters .form-control,.purchase-search{max-width:none;flex:1}.purchase-section-heading{flex-wrap:wrap}.purchase-request-line{grid-template-columns:1fr}.purchase-detail-meta{grid-template-columns:1fr}.purchase-receipt-body{padding:18px}.purchase-receipt-context{flex-direction:column}.purchase-header-actions{justify-content:flex-start}.purchase-page .sst-tabs button{font-size:.7rem}.purchase-eyebrow{font-size:.62rem}}
.purchase-page>.purchase-filters,.purchase-table-toolbar,.purchase-ledger-toolbar .purchase-filters{padding:0;border:0;background:none;box-shadow:none}.purchase-page>.purchase-filters{margin:0}.purchase-ledger-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:6px}.purchase-ledger-toolbar h2{flex-shrink:0;margin:0}.purchase-ledger-toolbar .purchase-filters{justify-content:flex-end;gap:10px;flex:1}.purchase-ledger-toolbar select.form-control{min-width:150px;max-width:235px}.purchase-ledger-toolbar .btn-secondary{white-space:nowrap}.purchase-budget-chart>strong{font-size:1.4rem}.purchase-budget-chart .purchase-budget-scope{font-size:.95rem;font-weight:650;letter-spacing:0}.purchase-budget-empty{font-size:.8rem;color:var(--text-muted);padding:10px 0 0}.purchase-budget-bars{display:flex;flex-direction:column;gap:10px;margin-top:8px;max-height:190px;overflow:auto}.purchase-budget-bar-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:.66rem;color:var(--text-muted)}.purchase-budget-bar-row b{font-weight:650;color:var(--text-main);white-space:nowrap}.purchase-budget-track{height:8px;border-radius:99px;overflow:hidden;background:var(--bg-body,#f1f5f9);margin-top:5px}.purchase-budget-track span{display:block;height:100%;border-radius:99px}.purchase-budget-track .approved{background:var(--en-primary-text,#4f46e5)}.purchase-budget-track .executed{background:#10b981}.purchase-budget-bar-row small{font-size:.63rem;line-height:1.7;margin-top:4px}.purchase-modal-overlay>.purchase-entry.card{width:min(860px,100%);max-height:calc(100dvh - 40px);overflow:auto;margin:0;padding:26px;background:var(--bg-card,#fff);color:var(--text-main);box-shadow:0 24px 70px #0c275233}.purchase-modal-overlay .purchase-entry>.sst-header{align-items:center;justify-content:space-between;padding-bottom:18px;margin-bottom:22px;border-bottom:1px solid var(--border-color)}.purchase-modal-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;font-size:28px;line-height:1;background:none;border:0;color:var(--text-muted);border-radius:9px}.purchase-modal-close:hover{background:var(--bg-body)}.purchase-modal-overlay .sst-form-actions{padding-top:20px;border-top:1px solid var(--border-color)}.purchase-dgii-search{display:flex;align-items:center;gap:9px;margin-top:8px}.purchase-dgii-search .form-control{flex:1;min-width:0}.purchase-dgii-search button{display:flex;align-items:center;gap:7px}.purchase-dgii-search svg{width:17px;height:17px}.purchase-dgii-results{max-height:220px;overflow:auto;font-size:.73rem;line-height:1.6;color:var(--text-muted)}.purchase-dgii-results>p{margin:10px 0}.purchase-dgii-results>button{display:flex;flex-direction:column;gap:3px;width:100%;padding:12px;margin-top:7px;border:1px solid var(--border-color);border-radius:10px;text-align:left;background:var(--bg-card,#fff);color:var(--text-main)}.purchase-dgii-results>button:hover{border-color:var(--en-primary-text,#4f46e5);background:var(--en-soft,#eef2ff)}.purchase-dgii-results small{font-size:.68rem;color:var(--text-muted)}.purchase-dgii[hidden]{display:none}
.enroque-date-range{position:relative;min-width:230px}.enroque-range-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:45px;padding:10px 13px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card,#fff);color:var(--text-muted);font-size:.76rem;white-space:nowrap}.enroque-range-trigger svg{width:18px;height:18px;flex:none}.enroque-range-trigger[aria-expanded=true],.enroque-range-trigger:focus-visible{outline:2px solid var(--en-primary-text,#4f46e5);outline-offset:2px}.enroque-range-panel.executive-date-panel{position:fixed;top:auto;left:auto;z-index:2147482000;width:420px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto}.enroque-range-panel .executive-calendar-heading h2{text-transform:capitalize}.enroque-range-panel .executive-calendar-heading button{font-size:26px;border:0;background:none}.enroque-range-panel .executive-calendar-day{border:0;background:transparent;color:var(--text-main)}.enroque-range-panel .executive-calendar-day.in-range{background:var(--en-soft,#eef2ff);color:var(--en-primary-text,#4f46e5)}.enroque-range-panel .executive-calendar-day.endpoint{background:var(--en-primary-text,#4f46e5);color:#fff}.enroque-range-panel .executive-calendar-day.outside{color:var(--text-muted);opacity:.4}.enroque-range-clear{display:block;margin:14px auto 0;border:0;background:none;color:var(--en-primary-text,#4f46e5);font-size:.72rem;font-weight:600}.table-list-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:18px 0;background:none;border:0;box-shadow:none}
@media(max-width:900px){.purchase-ledger-toolbar{align-items:flex-start}.purchase-ledger-toolbar .purchase-filters{justify-content:flex-start;flex-basis:100%}}@media(max-width:640px){.purchase-modal-overlay>.purchase-entry.card{padding:20px}.purchase-ledger-toolbar select.form-control{max-width:none;flex:1}.enroque-date-range{width:100%}.enroque-range-trigger{justify-content:flex-start}.purchase-dgii-search{flex-wrap:wrap}}

.purchase-dgii-results>.purchase-dgii-match{display:flex;flex-direction:column;gap:3px;width:100%;padding:12px;margin-top:7px;border:1px solid #a7f3d0;border-radius:10px;text-align:left;background:#ecfdf5;color:#065f46}.purchase-dgii-results>button.purchase-dgii-match:hover{border-color:#34d399;background:#d1fae5}.purchase-dgii-results>.purchase-dgii-match small,.purchase-dgii-results>.purchase-dgii-match span{color:#047857;font-size:.68rem}.purchase-dgii-results>button.purchase-dgii-match:focus-visible{outline:2px solid #10b981;outline-offset:2px}
.purchase-page.content-container {
  width:100%;
  max-width:1640px;
  min-width:0;
  margin:0 auto;
  padding:28px 24px 36px;
  color:var(--text-main);
  font-family:Inter,sans-serif;
}
.purchase-page .purchase-heading h1,.purchase-page .purchase-detail-header h1 {
  color:var(--en-primary-text);
  font-size:clamp(1.375rem,2vw,1.625rem);
  font-weight:800;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.purchase-heading .module-subtitle,.purchase-detail-header .module-subtitle { margin-top:7px; }
.purchase-page .purchase-eyebrow { line-height:1.5; margin:0 0 8px; }
.purchase-detail-header.card { padding:24px; }
.purchase-detail-header .view-back { display:inline-flex; width:fit-content; gap:6px; margin-bottom:8px; }
.purchase-detail-header .view-back svg { width:14px; height:14px; }
.purchase-detail-header .purchase-eyebrow { color:var(--text-muted); }
.purchase-detail .purchase-detail-reason { color:var(--text-muted); overflow-wrap:anywhere; }
.purchase-detail-reason strong { color:var(--text-main); font-weight:600; }
.purchase-detail .purchase-quote-approval { padding:16px 0 0; border:0; }
.purchase-quote-approval .form-control { flex:1 1 240px; max-width:360px; }

.purchase-page .purchase-summary > .card { min-height:156px; padding:12px 22px; }
.purchase-summary > .card:not(.purchase-budget-chart) > p { padding-right:38px; }
.purchase-summary .purchase-budget-chart > strong { line-height:1.3; font-size:1.4rem; }
.purchase-summary .purchase-budget-chart > .purchase-budget-scope { font-size:.95rem; }
.purchase-summary .purchase-budget-bar-row > div:first-child { flex-wrap:wrap; column-gap:10px; row-gap:2px; }
.purchase-budget-track .executed { background:#61733a; }

.purchase-tab-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 16px;
  min-width:0;
  padding-bottom:3px;
  border-bottom:1px solid var(--border-color);
}
.purchase-tab-toolbar .sst-tabs { max-width:100%; flex-wrap:wrap; gap:2px; border:0; margin:0; }
.purchase-tab-toolbar .sst-tabs button { flex:none; min-height:44px; }
.purchase-tab-toolbar .sst-tabs button.active {
  border-bottom-color:currentColor;
  color:var(--en-primary-text);
}
.purchase-page .purchase-tab-actions { margin:0 0 4px auto; }
.purchase-header-actions .template-compact-btn,.purchase-tab-actions .template-compact-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:8px 14px;
  border-radius:9px;
  font-size:.75rem;
}
.purchase-page > .purchase-filters { justify-content:flex-end; }
.purchase-dashboard > .purchase-filters .purchase-search { flex:0 1 320px; }
.purchase-dashboard .purchase-filters .form-control,
.purchase-dashboard .purchase-search,
.purchase-dashboard .purchase-check {
  min-height:38px;
  border-radius:12px;
  background:var(--bg-card);
}
.purchase-dashboard .purchase-search { padding-block:8px; }
.purchase-dashboard .purchase-check { padding:8px 12px; border:1px solid var(--border-color); }
.purchase-dashboard .purchase-section-heading { padding:16px 22px; border-bottom:1px solid var(--border-color); }
.purchase-section-heading h2,.purchase-detail h2,.purchase-orders-empty h2 { color:var(--en-primary-text); }
.purchase-dashboard .purchase-section-heading > span { margin:0; }
.purchase-page .purchase-table :is(th,td) { padding:14px 20px; }
.purchase-page .purchase-table th { font-size:.69rem; letter-spacing:.025em; }
.purchase-page .purchase-table td { font-size:.77rem; }
.purchase-page .purchase-record strong { font-family:inherit; font-weight:750; }
.purchase-page .purchase-record-icon { width:36px; height:36px; }
.purchase-empty {
  min-height:180px;
  padding:28px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:var(--text-muted);
  font-size:.8125rem;
  text-align:center;
}
.purchase-empty > span {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:none;
  border-radius:13px;
  background:var(--bg-neutral);
  color:var(--text-muted);
}
.purchase-empty > span svg { width:18px; height:18px; }
.purchase-page > :is(.purchase-warehouse,.purchase-orders-empty).card { padding:0; }
.purchase-warehouse .purchase-empty,.purchase-orders-empty .purchase-empty { min-height:228px; }
.purchase-orders-empty p { margin:0; }

.purchase-modal-overlay,.purchase-receipt-overlay {
  background:rgb(15 23 42 / .50);
  backdrop-filter:none;
}
.purchase-modal-overlay > .purchase-entry.card {
  width:min(672px,100%);
  padding:24px;
  border-radius:16px;
  border-color:var(--border-color);
  box-shadow:0 22px 56px rgb(15 23 42 / .19);
}
.purchase-modal-overlay > :is(.purchase-entry--budget,.purchase-entry--supplier).card { max-width:576px; }
.purchase-modal-overlay .purchase-entry > .sst-header { margin:0 0 16px; padding:0 0 12px; }
.purchase-modal-overlay h2,.purchase-receipt-overlay h2 {
  font-family:'Plus Jakarta Sans',Inter,sans-serif;
  color:var(--en-primary-text);
  font-size:1.125rem;
  font-weight:800;
}
.purchase-modal-close { width:28px; height:28px; }
.purchase-modal-close svg { width:16px; height:16px; }
.purchase-modal-overlay .purchase-entry .sst-form { gap:16px; }
.purchase-modal-overlay .purchase-entry .sst-form label { min-width:0; gap:6px; font-size:.75rem; font-weight:650; }
.purchase-modal-overlay .purchase-entry .form-control,
.purchase-receipt-overlay .purchase-receipt-body .form-control {
  min-height:38px;
  padding:8px 13px;
  border-color:var(--border-color);
  border-radius:12px;
  font-size:.75rem;
  font-weight:400;
}
.purchase-modal-overlay .purchase-entry > .sst-form > label > .form-control { background:var(--bg-subtle); }
.purchase-modal-overlay .purchase-entry .sst-form select.form-control { font-weight:600; }
.purchase-modal-overlay .purchase-entry .form-control::placeholder { color:var(--text-light); }
.purchase-request-items {
  display:grid;
  gap:12px;
  max-height:260px;
  overflow-y:auto;
  scroll-padding:10px;
  margin-top:4px;
}
.purchase-entry .purchase-request-line {
  grid-template-columns:minmax(0,2.08fr) repeat(2,minmax(0,1fr));
  gap:10px 12px;
  margin:0;
  padding:16px;
  border-radius:16px;
  background:var(--bg-subtle);
}
.purchase-line-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.purchase-line-heading > span {
  padding:2px 8px;
  border:1px solid var(--border-color);
  border-radius:6px;
  background:var(--bg-card);
  color:var(--en-primary-text);
  font-size:.6875rem;
  font-weight:750;
  line-height:1.35;
}
.purchase-remove-line { font-size:.75rem; font-weight:650; color:#be123c; }
.purchase-remove-line:hover { text-decoration:underline; }
.purchase-modal-overlay .purchase-request-line .form-control { min-height:34px; padding:6px 12px; background:var(--bg-card); }
.purchase-request-add .btn-secondary { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:6px 14px; background:var(--bg-subtle); }
.purchase-request-add svg { width:14px; height:14px; color:#61733a; }
.purchase-modal-overlay .purchase-entry .sst-form-actions { padding-top:12px; }
.purchase-modal-overlay .purchase-entry .sst-form-actions > .btn-primary {
  width:100%;
  min-height:44px;
  border-radius:12px;
  background:#092854;
  color:#fff;
  box-shadow:none;
  font-size:.8125rem;
}
.purchase-modal-overlay .purchase-entry .sst-form-actions > .btn-primary:hover { background:#133b75; }
.purchase-receipt-overlay > .purchase-receipt-dialog { border-radius:16px; }
.purchase-receipt-overlay > .purchase-receipt-dialog header { padding:18px 24px; }
.purchase-receipt-overlay .purchase-receipt-body { padding:24px; }
.purchase-receipt-overlay .purchase-receipt-body footer .btn-primary { background:#092854; color:#fff; }

html.dark .purchase-page :is(.purchase-heading h1,.purchase-detail-header h1),
html.dark :is(.purchase-modal-overlay,.purchase-receipt-overlay) h2 { color:var(--text-main); }
html.dark .purchase-modal-overlay .purchase-entry .sst-form-actions > .btn-primary,
html.dark .purchase-receipt-overlay .purchase-receipt-body footer .btn-primary {
  background:#262626;
  border-color:#3b3b3b;
}
html.dark .purchase-modal-overlay .purchase-entry .sst-form-actions > .btn-primary:hover,
html.dark .purchase-receipt-overlay .purchase-receipt-body footer .btn-primary:hover { background:#383838; }
html.dark .purchase-remove-line { color:#fda4af; }

@media (max-width:800px) {
  .purchase-page.content-container { padding:20px 16px 28px; gap:18px; }
  .purchase-dashboard > .purchase-filters .purchase-search { flex:1 1 220px; }
  .purchase-tab-toolbar .sst-tabs { gap:0; }
}
@media (max-width:640px) {
  .purchase-page .purchase-tab-actions { margin-right:0; }
  .purchase-modal-overlay,.purchase-receipt-overlay { padding:12px; }
  .purchase-modal-overlay > .purchase-entry.card { padding:18px; max-height:calc(100dvh - 24px); }
  .purchase-entry .purchase-request-line { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .purchase-request-line > label:nth-child(2) { grid-column:1/-1; }
  .purchase-request-items { max-height:none; }
  .purchase-receipt-overlay .purchase-receipt-body { padding:18px; }
}

.purchase-page {
  --purchase-navy:#092854;
  --purchase-navy-soft:#f0f4f9;
  --purchase-olive:#4e5a2f;
  --purchase-olive-soft:#f4f6f0;
  --purchase-olive-border:#cbd5b9;
  --purchase-olive-icon:#63723c;
}
.dark .purchase-page {
  --purchase-navy:var(--text-main);
  --purchase-navy-soft:var(--bg-subtle);
  --purchase-olive:#c2d299;
  --purchase-olive-soft:#151a10;
  --purchase-olive-border:#465238;
  --purchase-olive-icon:#c2d299;
}
.purchase-page > .card,
.purchase-page .purchase-summary > .card,
.purchase-page .purchase-tab-toolbar { border-radius:16px; }
.purchase-page .purchase-heading.card,
.purchase-page .purchase-detail-header.card,
.purchase-page .purchase-quote-list.card,
.purchase-page.purchase-detail > .card { padding:20px 24px; }
.purchase-page :is(h1,h2,.purchase-money,.purchase-quote-total strong) {
  font-family:'Plus Jakarta Sans',Inter,sans-serif;
  color:var(--purchase-navy);
}
.purchase-heading .purchase-eyebrow,.purchase-detail-header .purchase-eyebrow {
  color:var(--purchase-olive);
  font-weight:700;
}
.purchase-detail-header .purchase-eyebrow { text-transform:uppercase; letter-spacing:.06em; }
.purchase-eyebrow .purchase-eyebrow-badge {
  padding:2px 9px;
  border:1px solid var(--border-color);
  border-radius:999px;
  background:var(--purchase-navy-soft);
  color:var(--purchase-navy);
}
.purchase-tab-toolbar {
  padding:6px;
  border:1px solid var(--border-color);
  background:var(--bg-card);
}
.purchase-tab-toolbar .sst-tabs button { border:0; border-radius:12px; min-height:36px; }
.purchase-tab-toolbar .sst-tabs button:not(.active):hover { background:var(--purchase-navy-soft); }
.purchase-tab-toolbar .sst-tabs button.active { background:#092854; color:#fff; }
.purchase-tab-toolbar .sst-tabs button.active svg { color:#cbd5b9; }
.dark .purchase-tab-toolbar .sst-tabs button.active { background:var(--bg-neutral); color:var(--text-main); }
.purchase-page .purchase-tab-actions { margin:0 0 0 auto; }
.purchase-page :is(.btn-primary,.btn-secondary) { border-radius:12px; }
.purchase-page .btn-secondary svg { color:var(--purchase-olive-icon); }
.purchase-page .btn-primary svg { color:#cbd5b9; }
.purchase-quote-list .purchase-section-heading {
  padding:0;
  margin:0 0 16px;
  border:0;
}
.purchase-quote-list .purchase-section-heading > span {
  margin:0;
  padding:2px 10px;
  border-radius:999px;
  background:var(--purchase-navy-soft);
  color:var(--purchase-navy);
  font-weight:700;
}
.purchase-quote-list--received .purchase-section-heading > span {
  background:var(--purchase-olive-soft);
  border:1px solid var(--purchase-olive-border);
  color:var(--purchase-olive);
}
.purchase-table-toolbar .purchase-search { flex:0 1 256px; }
.purchase-quote-list--received .purchase-table { min-width:740px; }
.purchase-page .purchase-quote-list .purchase-table th,
.purchase-page.purchase-detail .purchase-table th { padding:11px 12px; text-transform:uppercase; }
.purchase-page .purchase-quote-list .purchase-table td,
.purchase-page.purchase-detail .purchase-table td { padding:13px 12px; }
.purchase-page .purchase-table th:first-child { border-radius:8px 0 0 8px; }
.purchase-page .purchase-table th:last-child { border-radius:0 8px 8px 0; }
.purchase-quote-list .purchase-table tbody tr:hover { background:var(--bg-subtle); }
.purchase-record-link {
  padding:0;
  border:0;
  background:none;
  color:var(--text-main);
  font-weight:700;
  text-align:left;
}
.purchase-record-link:hover,.purchase-record-link:focus-visible { color:var(--purchase-navy); text-decoration:underline; }
.purchase-detail .purchase-detail-meta { gap:16px; padding-bottom:16px; border-bottom:1px solid var(--border-color); }
.purchase-detail-meta small { margin-bottom:4px; font-weight:700; }
.purchase-detail-meta strong { font-size:.875rem; font-weight:700; }
.purchase-detail-meta > div:nth-child(3) strong { color:var(--purchase-navy); }
.purchase-detail .purchase-detail-reason { margin:16px 0; padding:0; border:0; font-size:.75rem; }
.purchase-detail .purchase-quote-total {
  gap:12px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--border-color);
  color:var(--text-muted);
  font-size:.75rem;
  font-weight:600;
}
.purchase-detail .purchase-quote-total strong { font-size:1.35rem; }
.purchase-order-heading { display:flex; align-items:flex-start; gap:10px; margin-bottom:16px; }
.purchase-order-heading > svg { margin-top:3px; color:var(--purchase-olive-icon); }
.purchase-order-selection input[type=checkbox],.purchase-invitations input[type=checkbox] { accent-color:#092854; }
.purchase-order-quantity.form-control { width:105px; min-height:34px; display:inline-block; }
.purchase-order-quantity:disabled { opacity:.48; }
.purchase-order-mobile-label { display:none; }
.purchase-detail > .btn-secondary { align-self:flex-start; }
.purchase-detail .purchase-order-selection .purchase-quote-approval { padding-top:12px; }

@media(max-width:640px) {
  .purchase-page .purchase-heading.card,.purchase-page .purchase-detail-header.card,
  .purchase-page .purchase-quote-list.card,.purchase-page.purchase-detail > .card { padding:16px; }
  .purchase-detail .purchase-detail-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .purchase-table-toolbar .purchase-search { flex:1 1 100%; order:3; }
  .purchase-quote-approval .form-control,.purchase-quote-approval .btn-primary { flex:1 1 100%; max-width:none; }
  .purchase-order-selection .purchase-table { display:block; min-width:0; }
  .purchase-order-selection .purchase-table thead { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .purchase-order-selection .purchase-table tbody { display:block; }
  .purchase-order-selection .purchase-table tr {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) minmax(64px,85px);
    align-items:center;
    gap:5px 10px;
    padding:10px 0;
    border-bottom:1px solid var(--border-color);
  }
  .purchase-page.purchase-detail .purchase-order-selection .purchase-table td { padding:0; border:0; }
  .purchase-order-selection td:nth-child(2) { grid-column:2 / -1; overflow-wrap:anywhere; }
  .purchase-order-selection td:nth-child(3),.purchase-order-selection td:nth-child(4) { grid-column:2; }
  .purchase-order-selection td:last-child { grid-column:3; grid-row:2 / 4; }
  .purchase-order-selection .purchase-order-quantity { width:100%; }
  .purchase-order-mobile-label { display:inline; color:var(--text-muted); }
}
