:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #f9fafb;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f9fafb; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgb(17 24 39 / 5%);
}
.header-inner {
  max-width: 1120px;
  min-height: 76px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; }
.brand img { width: 111px; height: 49px; object-fit: contain; flex: none; }
.brand img.site-specific { width: 74px; height: 68px; }
.brand-divider { width: 1px; height: 30px; background: #e5e7eb; }
.brand-text { color: #1e40af; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.header-link, .return-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #1d4ed8; text-decoration: none; font-size: 14px; font-weight: 700;
  border-radius: 10px; transition: background .2s ease;
}
.header-link { padding: 10px 12px; }
button.header-link { border: 0; background: transparent; cursor: pointer; }
.header-link:hover, .return-link:hover { background: #eff6ff; }
.header-link svg, .return-link svg { width: 17px; height: 17px; flex: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }

.page { max-width: 1120px; margin: 0 auto; padding: 34px 24px 64px; }
.state-panel {
  max-width: 570px; margin: 70px auto 0; padding: 34px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
  box-shadow: 0 16px 40px rgb(15 23 42 / 7%); text-align: center;
}
.state-icon {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: #eff6ff; color: #2563eb;
}
.state-icon svg { width: 28px; height: 28px; }
.state-panel.error .state-icon { background: #fef2f2; color: #dc2626; }
.state-panel h1 { color: #111827; font-size: 25px; line-height: 1.2; margin: 0 0 10px; }
.state-panel p { color: #6b7280; font-size: 15px; line-height: 1.55; margin: 0; }
.login-panel {
  max-width: 440px; margin: 49px auto 0; padding: 34px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
  box-shadow: 0 16px 40px rgb(15 23 42 / 7%);
}
.login-panel h1 { color: #111827; font-size: 26px; line-height: 1.2; margin: 0 0 9px; }
.login-panel .intro { color: #6b7280; font-size: 14px; line-height: 1.55; margin: 0 0 24px; }
.login-emblem {
  width: 48px; height: 48px; margin-bottom: 19px; border-radius: 13px;
  display: grid; place-items: center; color: #2563eb; background: #eff6ff;
}
.login-emblem svg { width: 25px; height: 25px; }
.login-emblem img { width: 48px; height: 48px; object-fit: contain; }
.field { display: block; margin-top: 17px; }
.field span { display: block; margin-bottom: 7px; color: #374151; font-size: 13px; font-weight: 750; }
.field input {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d1d5db;
  border-radius: 10px; background: #fff; color: #111827; font: inherit; font-size: 15px;
}
.field input:focus { border-color: #2563eb; outline: 3px solid #bfdbfe; outline-offset: 1px; }
.form-error {
  margin: 16px 0 0; padding: 11px 13px; border: 1px solid #fecaca;
  border-radius: 10px; background: #fef2f2; color: #991b1b;
  font-size: 13px; line-height: 1.45;
}
.submit-button {
  width: 100%; min-height: 46px; margin-top: 22px; padding: 11px 16px;
  border: 0; border-radius: 10px; background: #2563eb; color: #fff;
  font: inherit; font-size: 14px; font-weight: 750; cursor: pointer;
}
.submit-button:hover { background: #1d4ed8; }
.submit-button:disabled { opacity: .65; cursor: wait; }
.form-note { margin: 15px 0 0; color: #6b7280; font-size: 12px; line-height: 1.5; }
.state-actions { margin-top: 25px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.primary-link, .retry-button {
  min-height: 44px; padding: 11px 17px; border-radius: 10px; font-size: 14px;
  font-weight: 700; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer;
}
.primary-link { color: #fff; background: #2563eb; border: 0; }
.primary-link:hover { background: #1d4ed8; }
.retry-button { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }
.retry-button:hover { background: #dbeafe; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  position: relative; overflow: hidden; padding: 32px 36px;
  border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 65%, #2563eb 100%);
  box-shadow: 0 14px 28px rgb(30 64 175 / 15%);
}
.hero::after {
  content: ""; position: absolute; width: 270px; height: 270px; right: -88px; top: -116px;
  border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%;
  box-shadow: 0 0 0 48px rgb(255 255 255 / 5%), 0 0 0 96px rgb(255 255 255 / 4%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 999px; background: rgb(255 255 255 / 15%);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #93c5fd; }
.hero h1 { position: relative; font-size: clamp(27px, 4vw, 36px); line-height: 1.16; margin: 18px 0 10px; }
.hero p { position: relative; max-width: 650px; color: #dbeafe; font-size: 15px; line-height: 1.6; margin: 0; }

.identity-card {
  position: relative; margin: -19px 20px 0; padding: 20px 24px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1fr);
  gap: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  box-shadow: 0 8px 24px rgb(15 23 42 / 7%);
}
.detail + .detail { border-left: 1px solid #e5e7eb; padding-left: 20px; }
.detail-label { display: block; margin-bottom: 6px; color: #6b7280; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.detail-value { color: #111827; font-size: 15px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.detail-note { display: block; margin-top: 3px; color: #6b7280; font-size: 12px; line-height: 1.35; }
.level-chip { display: inline-flex; align-items: center; color: #1d4ed8; background: #eff6ff; border-radius: 8px; padding: 4px 9px; }
.pending-site-notice { margin: 18px 20px 0; border-color: #fde68a; background: #fffbeb; color: #92400e; }

.section-heading { margin: 42px 0 19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-heading h2 { color: #111827; font-size: 22px; letter-spacing: -.02em; margin: 0 0 4px; }
.section-heading p { color: #6b7280; font-size: 14px; line-height: 1.5; margin: 0; }
.section-kicker { color: #2563eb; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 5px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card {
  min-height: 203px; padding: 23px; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 17px; box-shadow: 0 3px 12px rgb(15 23 42 / 4%);
  display: flex; flex-direction: column; align-items: flex-start;
}
.module-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.module-icon svg { width: 23px; height: 23px; stroke-width: 1.8; }
.module-icon.blue { color: #2563eb; background: #eff6ff; }
.module-icon.teal { color: #0d9488; background: #f0fdfa; }
.module-icon.amber { color: #d97706; background: #fffbeb; }
.module-icon.indigo { color: #4f46e5; background: #eef2ff; }
.module-icon.slate { color: #475569; background: #f1f5f9; }
.module-card h3 { margin: 15px 0 5px; color: #111827; font-size: 17px; line-height: 1.3; }
.module-card p { margin: 0 0 17px; color: #6b7280; font-size: 13px; line-height: 1.5; }
button.module-card { width: 100%; text-align: left; font: inherit; cursor: pointer; }
button.module-card:hover { border-color: #93c5fd; box-shadow: 0 8px 22px rgb(37 99 235 / 10%); }
.module-status {
  margin-top: auto; padding: 6px 9px; border-radius: 7px;
  color: #4b5563; background: #f3f4f6; font-size: 11px; font-weight: 800;
}
.module-status.restricted { color: #92400e; background: #fffbeb; }
.construction-card { position: relative; overflow: hidden; border-color: #fde68a; background: #fffbeb; }
.construction-card h3 { margin-top: 10px; }
.construction-card p { color: #92400e; }
.construction-scaffold { width: 112px; height: 76px; color: #b45309; }
.construction-ribbon {
  position: absolute; top: 31px; right: -75px; z-index: 1; width: 280px;
  padding: 6px 0; transform: rotate(35deg); text-align: center;
  background: repeating-linear-gradient(135deg, #facc15 0 17px, #111827 17px 26px);
  box-shadow: 0 4px 11px rgb(15 23 42 / 18%);
}
.construction-ribbon span { display: inline-block; padding: 2px 8px; background: #facc15; color: #111827; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.next-step { margin-top: 24px; padding: 19px 22px; display: flex; gap: 14px; align-items: flex-start; color: #1e40af; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 14px; }
.next-step svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.next-step strong { display: block; font-size: 14px; margin-bottom: 3px; }
.next-step p { margin: 0; color: #3b528a; font-size: 13px; line-height: 1.5; }
.footer { margin-top: 37px; padding-top: 18px; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; gap: 15px; color: #9ca3af; font-size: 12px; }

.purchase-panel { max-width: 1120px; margin: 0 auto; }
.purchase-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.purchase-head h1 { margin: 7px 0 5px; color: #111827; font-size: clamp(26px, 4vw, 34px); }
.purchase-head p { margin: 0; color: #6b7280; font-size: 14px; line-height: 1.5; }
.purchase-back { border: 0; background: #eaf2ff; color: #1d4ed8; padding: 10px 13px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.purchase-card { padding: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 5px 18px rgb(15 23 42 / 5%); }
.purchase-card + .purchase-card { margin-top: 18px; }
.purchase-card h2 { margin: 0 0 7px; color: #111827; font-size: 19px; }
.purchase-description { margin: 0 0 19px; color: #6b7280; font-size: 13px; line-height: 1.5; }
.purchase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; row-gap: 8px; }
.purchase-grid .field { margin-top: 8px; }
.purchase-grid select, .item-field input, .item-field select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: #111827; font: inherit; font-size: 15px; }
.purchase-grid select:focus, .item-field input:focus, .item-field select:focus { border-color: #2563eb; outline: 3px solid #bfdbfe; outline-offset: 1px; }
.purchase-grid select:disabled { color: #374151; background: #f9fafb; opacity: 1; }
.purchase-grid input[readonly] { color: #374151; background: #f9fafb; }
.purchase-category-help { display: block; margin-top: 6px; color: #6b7280; font-size: 12px; line-height: 1.4; }
.purchase-category-help.missing { color: #b91c1c; }
.purchase-notice { margin: 0 0 18px; padding: 13px 15px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; color: #1e40af; font-size: 13px; line-height: 1.5; }
.purchase-notice button { display: inline-block; margin-top: 10px; border: 1px solid #93c5fd; border-radius: 8px; background: #fff; color: #1d4ed8; padding: 9px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.purchase-items { display: grid; gap: 12px; }
.purchase-item { padding: 17px; border: 1px solid #e5e7eb; border-radius: 13px; background: #fbfdff; }
.purchase-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.purchase-item-head strong { color: #1e40af; font-size: 13px; }
.purchase-remove { border: 0; background: transparent; color: #b91c1c; padding: 5px 7px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.purchase-item-grid { display: grid; grid-template-columns: minmax(180px, 1.7fr) repeat(2, minmax(105px, 1fr)) minmax(145px, 1.25fr) repeat(3, minmax(95px, .85fr)); gap: 12px; align-items: end; }
.item-field span { display: block; margin-bottom: 7px; color: #374151; font-size: 12px; font-weight: 700; }
.item-field output { min-height: 46px; padding: 12px 8px; display: flex; align-items: center; justify-content: flex-end; color: #111827; font-size: 14px; font-weight: 800; white-space: nowrap; }
.purchase-total { margin: 22px 0 0; padding: 18px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #e5e7eb; }
.purchase-total span { color: #4b5563; font-size: 14px; font-weight: 700; }
.purchase-total output { color: #1e3a8a; font-size: 25px; font-weight: 800; }
.purchase-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.purchase-actions .submit-button { width: auto; min-width: 180px; margin: 0; }
.purchase-success { max-width: 560px; margin: 65px auto 0; text-align: center; }
.purchase-success-mark { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #15803d; font-size: 30px; font-weight: 700; }
.purchase-success h1 { margin: 0 0 9px; color: #111827; font-size: 26px; }
.purchase-success p { margin: 0; color: #6b7280; line-height: 1.5; }
.purchase-success-actions { margin-top: 23px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.purchase-success-actions button { min-height: 43px; padding: 10px 15px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font: inherit; font-weight: 700; cursor: pointer; }
.purchase-success-actions button:first-child { border-color: #2563eb; background: #2563eb; color: #fff; }

.item-product-field { position: relative; min-width: 0; }
.product-suggestions {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 260px; overflow-y: auto; padding: 5px; background: #fff;
  border: 1px solid #bfdbfe; border-radius: 10px;
  box-shadow: 0 12px 28px rgb(15 23 42 / 16%);
}
.product-suggestion-heading { padding: 5px 11px 7px; color: #475569; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.product-suggestion-empty { padding: 9px 11px; color: #64748b; font-size: 12px; line-height: 1.4; }
.product-suggestion-preview { padding: 8px 11px; color: #475569; font-size: 13px; line-height: 1.35; }
.product-suggestion {
  display: block; width: 100%; padding: 10px 11px; text-align: left; border: 0;
  border-radius: 7px; color: #111827; background: #fff; cursor: pointer;
}
.product-suggestion:hover, .product-suggestion:focus-visible { background: #eff6ff; }
.product-suggestion strong { display: block; font-size: 13px; line-height: 1.3; }
.product-suggestion span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; line-height: 1.35; }

.reports-toolbar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; }
.reports-export-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; }
.reports-export-actions .report-count { margin: 0 auto 0 0; }
.reports-export-actions .purchase-back { min-height: 40px; }
.reports-site { min-width: 210px; max-width: 320px; margin: 0; }
.reports-site select, .report-item-filters select, .report-invoice-filters select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: #111827; font: inherit; }
.report-item-filters, .report-invoice-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: end; margin-bottom: 15px; }
.report-item-filters .field, .report-invoice-filters .field { margin: 0; }
.report-invoice-title { margin: 15px 0 11px; color: #111827; }
.report-invoice-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin-bottom: 18px; }
.report-invoice-fact { padding: 10px 11px; border: 1px solid #e5e7eb; border-radius: 9px; background: #fbfdff; min-width: 0; }
.report-invoice-fact span, .report-invoice-fact strong { display: block; overflow-wrap: anywhere; }
.report-invoice-fact span { color: #64748b; font-size: 11px; }
.report-invoice-fact strong { margin-top: 3px; color: #111827; font-size: 13px; }
.report-invoice-table-wrap { overflow-x: auto; }
.report-invoice-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-invoice-table th, .report-invoice-table td { padding: 8px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.report-invoice-table th { color: #334155; background: #eff6ff; white-space: nowrap; }
.report-invoice-table td { overflow-wrap: anywhere; }
.report-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; border-radius: 11px; background: #eaf2ff; }
.report-tab { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 8px; color: #1d4ed8; background: transparent; font-size: 13px; font-weight: 750; cursor: pointer; }
.report-tab.active { background: #fff; box-shadow: 0 1px 5px rgb(15 23 42 / 12%); }
.reports-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.report-section-heading { margin: 0 0 15px; }
.report-section-heading h2 { margin: 0 0 4px; color: #111827; font-size: 21px; }
.report-section-heading p { margin: 0; color: #6b7280; font-size: 13px; }
.report-provider-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: start; gap: 16px; }
.report-provider-layout .purchase-card + .purchase-card { margin: 0; }
.report-provider-sidebar { min-width: 0; }
.report-search { margin: 0 0 12px; }
.report-count { margin: 0 0 12px; color: #64748b; font-size: 12px; }
.report-provider-list { display: grid; gap: 6px; max-height: 540px; overflow-y: auto; }
.report-provider-button { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #334155; text-align: left; font: inherit; font-size: 13px; cursor: pointer; overflow-wrap: anywhere; }
.report-provider-button:hover, .report-provider-button.selected { border-color: #93c5fd; color: #1e40af; background: #eff6ff; }
.report-provider-detail h3 { margin: 0 0 5px; color: #111827; font-size: 18px; overflow-wrap: anywhere; }
.report-empty { margin: 0; color: #6b7280; font-size: 13px; line-height: 1.5; }
.report-item-list { display: grid; gap: 10px; }
.report-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; min-width: 0; padding: 13px 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fbfdff; }
.report-item-detail { min-width: 0; }
.report-item-name { display: block; color: #111827; font-size: 14px; overflow-wrap: anywhere; }
.report-item-attributes { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: #64748b; font-size: 12px; line-height: 1.4; }
.report-item-prices { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; min-width: 112px; text-align: right; }
.price-value { color: #1e3a8a; font-size: 13px; font-weight: 800; white-space: nowrap; }
.price-unknown { color: #6b7280; font-size: 12px; }
.report-item-prices.price-alarm { max-width: 220px; }
.price-alarm .price-alert { width: 100%; color: #b91c1c; font-size: 11px; line-height: 1.35; }
.price-alarm .price-value { color: #b91c1c; }

.inventory-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.inventory-context .field { margin: 0; }
.inventory-context select, .inventory-report-filters select, .inventory-report-filters input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d1d5db;
  border-radius: 10px; background: #fff; color: #111827; font: inherit;
}
.inventory-context select:disabled { background: #f8fafc; color: #334155; opacity: 1; }
.inventory-save-status { background: #f0fdf4; border-color: #86efac; color: #166534; }
.inventory-email-option { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -4px 0 18px; padding: 15px 18px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; }
.inventory-email-option[hidden] { display: none; }
.inventory-email-option p { flex: 1 1 250px; margin: 0; color: #334155; font-size: 14px; }
.inventory-email-option button { min-height: 42px; padding: 9px 16px; border: 1px solid #0f766e; border-radius: 9px; background: #f0fdfa; color: #115e59; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.inventory-email-option button:hover { background: #ccfbf1; }
.inventory-email-option button:disabled { cursor: default; opacity: .68; }
.inventory-email-option #inventory-email-feedback, .inventory-email-option #inventory-email-error { flex-basis: 100%; }
.inventory-email-option #inventory-email-feedback { color: #166534; }
.inventory-email-option #inventory-email-error { color: #b91c1c; }

.inventory-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.inventory-category {
  position: relative; min-height: 112px; padding: 18px 43px 18px 19px; text-align: left;
  border: 1px solid #dbe4ef; border-radius: 15px; background: #fff; color: #111827;
  box-shadow: 0 3px 12px rgb(15 23 42 / 4%); cursor: pointer;
}
.inventory-category::after { content: '→'; position: absolute; top: 17px; right: 18px; color: #0d9488; font-size: 19px; }
.inventory-category:hover { border-color: #5eead4; background: #f0fdfa; box-shadow: 0 8px 20px rgb(13 148 136 / 9%); }
.inventory-category strong { display: block; color: #0f766e; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.inventory-category span { display: block; margin-top: 9px; color: #64748b; font-size: 12px; }
.inventory-detail-head { display: flex; justify-content: space-between; align-items: flex-start; margin: 0 0 16px; }
.inventory-back { margin-bottom: 16px; }
.inventory-detail-head h2 { margin: 0 0 5px; color: #111827; font-size: 23px; overflow-wrap: anywhere; }
.inventory-draft-note { margin: 0 0 15px; padding: 11px 14px; border: 1px solid #dbeafe; border-radius: 10px; background: #eff6ff; color: #1e40af; font-size: 12px; line-height: 1.45; }
.inventory-sort-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 14px; }
.inventory-sort-label { color: #475569; font-size: 13px; font-weight: 700; }
.inventory-sort-option { display: inline-flex; align-items: center; gap: 8px; color: #334155; font-size: 13px; font-weight: 700; }
.inventory-sort-button { padding: 7px 11px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.inventory-sort-button:hover, .inventory-sort-button[aria-pressed="true"] { border-color: #2563eb; background: #dbeafe; }
.inventory-sort-button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.inventory-sort-button:disabled { opacity: .6; cursor: default; }
.inventory-items { display: grid; gap: 11px; }
.inventory-item { padding: 17px; border: 1px solid #e5e7eb; border-radius: 13px; background: #fff; }
.inventory-item-grid { display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(2, minmax(140px, 1fr)) minmax(120px, .7fr); gap: 13px; align-items: end; }
.inventory-item input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: #111827; font: inherit; font-size: 15px; }
.inventory-item input:focus { border-color: #0d9488; outline: 3px solid #99f6e4; outline-offset: 1px; }
.inventory-item input[readonly] { color: #334155; background: #f8fafc; }
.inventory-save-actions { display: flex; justify-content: flex-end; margin-top: 17px; }
.inventory-save-actions .submit-button { width: auto; min-width: 200px; margin: 0; background: #0f766e; }
.inventory-save-actions .submit-button:hover { background: #115e59; }
.inventory-save-actions .submit-button:disabled { background: #94a3b8; cursor: default; }
.inventory-report-filters { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 18px; }
.inventory-report-filters .field { margin: 0; min-width: 210px; }
.report-cost-note { margin: -6px 0 16px; color: #64748b; font-size: 12px; line-height: 1.4; }
.inventory-report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; margin-bottom: 18px; }
.inventory-report-metric { min-width: 0; padding: 19px; border: 1px solid #dbeafe; border-radius: 14px; background: #eff6ff; }
.inventory-report-metric-label { display: block; color: #475569; font-size: 12px; font-weight: 750; }
.inventory-report-metric-value { display: block; margin-top: 5px; color: #1e3a8a; font-size: clamp(18px, 2.4vw, 24px); overflow-wrap: anywhere; }
.inventory-report-metric small { display: block; margin-top: 6px; color: #64748b; font-size: 11px; line-height: 1.4; }
.inventory-report-list { display: grid; gap: 16px; }
.inventory-report-rows { display: grid; gap: 9px; margin-top: 13px; }
.inventory-report-row { padding: 13px 15px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fbfdff; }
.inventory-report-row-head { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.inventory-report-row-head strong { color: #1f2937; font-size: 14px; overflow-wrap: anywhere; }
.inventory-report-row-head span { color: #1e3a8a; font-size: 15px; font-weight: 800; white-space: nowrap; }
.inventory-report-row .report-count { margin: 6px 0 0; }
.valuation-warning { margin: 7px 0 0; color: #a16207; font-size: 12px; line-height: 1.45; }

@media (max-width: 980px) {
  .purchase-item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #e5e7eb; padding: 14px 0 0; }
  .purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-provider-layout { grid-template-columns: 1fr; }
  .report-provider-list { max-height: 220px; }
  .inventory-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-name-field { grid-column: 1 / -1; }
  .inventory-quantity-field { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .header-inner { padding: 10px 16px; min-height: 65px; }
  .brand img { width: 85px; height: 40px; }
  .brand img.site-specific { width: 58px; height: 54px; }
  .brand-divider { height: 24px; }
  .brand-text { font-size: 12px; }
  .header-link { font-size: 0; gap: 0; padding: 9px; }
  .header-link svg { width: 20px; height: 20px; }
  .header-actions { gap: 1px; }
  .page { padding: 20px 16px 42px; }
  .hero { padding: 25px 22px 43px; border-radius: 17px; }
  .hero p { font-size: 14px; }
  .identity-card { margin: -19px 10px 0; padding: 17px; gap: 14px; }
  .pending-site-notice { margin: 16px 10px 0; }
  .detail + .detail { padding-left: 14px; }
  .detail:nth-child(3) { padding-left: 0; }
  .detail-value { font-size: 13px; }
  .section-heading { margin-top: 33px; }
  .module-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-card { min-height: 160px; padding: 19px; }
  .module-card h3 { margin-top: 12px; }
  .state-panel { margin-top: 43px; padding: 27px 21px; }
  .login-panel { margin-top: 26px; padding: 27px 21px; }
  .footer { flex-direction: column; gap: 7px; }
  .purchase-head { flex-direction: column-reverse; align-items: flex-start; }
  .purchase-card { padding: 19px; }
  .purchase-grid, .purchase-item-grid { grid-template-columns: 1fr; }
  .purchase-item-grid { gap: 10px; }
  .purchase-total output { font-size: 22px; }
  .purchase-actions .submit-button { width: 100%; }
  .reports-toolbar, .reports-site, .report-tabs { width: 100%; max-width: none; }
  .reports-export-actions { justify-content: stretch; }
  .reports-export-actions .report-count { flex-basis: 100%; }
  .reports-export-actions .purchase-back { flex: 1 1 auto; }
  .report-item-filters, .report-invoice-filters { grid-template-columns: 1fr; }
  .report-tab { flex: 1 1 calc(50% - 6px); }
  .report-item { flex-direction: column; }
  .report-item-prices { justify-content: flex-start; text-align: left; }
  .inventory-categories, .inventory-item-grid, .inventory-context { grid-template-columns: 1fr; }
  .inventory-name-field, .inventory-quantity-field { grid-column: auto; }
  .inventory-report-filters .field { width: 100%; }
  .inventory-report-row-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .inventory-save-actions .submit-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@page { size: A4 landscape; margin: 12mm; }
@media print {
  :root, body { color: #111827; background: #fff !important; }
  .site-header, .page > :not(#reports-panel), #reports-panel > :not(#report-print-sheet) { display: none !important; }
  .page, #reports-panel { display: block !important; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; }
  #report-print-sheet { display: block !important; color: #111827; font: 10pt Arial, sans-serif; }
  .report-print-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 65px; border-bottom: 2px solid #1e40af; padding-bottom: 8px; }
  .report-print-head img { max-width: 145px; max-height: 63px; object-fit: contain; }
  #report-print-sheet h1 { margin: 15px 0 5px; color: #111827; font-size: 19pt; }
  .report-print-subtitle { margin: 0 0 5px; font-size: 10pt; line-height: 1.35; }
  .report-print-meta, .report-print-footnote { margin: 0 0 14px; color: #475569; font-size: 8pt; }
  .report-print-footnote { margin-top: 12px; }
  .report-print-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8pt; }
  .report-print-table thead { display: table-header-group; }
  .report-print-table tr { break-inside: avoid; }
  .report-print-table th, .report-print-table td { border: 1px solid #cbd5e1; padding: 5px 6px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
  .report-print-table th { background: #eff6ff !important; color: #1e3a8a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
