:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #26312a;
  background: #f2f4ef;
  font-synthesis: none;
  --olive: #344434;
  --muted: #687369;
  --border: #dfe5db;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { border: 1px solid transparent; border-radius: 10px; padding: 11px 17px; min-height: 44px; color: white; background: var(--olive); font-weight: 600; cursor: pointer; }
button:hover { background: #475b3e; }
button:disabled { opacity: .55; cursor: default; }
button.secondary, .history-btn { background: #f0f3ec; color: #344434; border-color: var(--border); }
button.secondary:hover, .history-btn:hover { background: #e5ebdf; }
:focus-visible { outline: 3px solid #86975a; outline-offset: 3px; }
input, select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid #bfc9b8; border-radius: 9px; color: #26312a; background: #fff; }
input:disabled { background: #f2f4ef; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--olive); }
input[type="number"] { font-variant-numeric: tabular-nums; }
label { display: grid; gap: 7px; font-size: 14px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(24px, 4vw, 30px); letter-spacing: -.6px; margin-bottom: 8px; }
h2 { font-size: 19px; letter-spacing: -.2px; margin-bottom: 0; }
small { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
b, strong { overflow-wrap: anywhere; }
header { padding: 16px max(22px, calc((100% - 1120px) / 2)); background: #fff; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
header > div, .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { display: block; width: 46px; height: 46px; flex-shrink: 0; }
header strong { display: block; font-size: 20px; letter-spacing: -.4px; }
header span { color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.content { max-width: 1164px; padding: 28px 22px 48px; margin: auto; }
.title, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.title { margin-bottom: 22px; }
.title p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.section-heading { margin-bottom: 18px; }
.section-heading > span { color: var(--muted); font-size: 13px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 22px; box-shadow: 0 4px 16px #26312a03; }
.deadline-warning, .title .deadline-warning { color: #ad3d2a; font-weight: 600; line-height: 1.6; padding: 10px 13px; background: #fff4ed; border-radius: 8px; border-left: 3px solid #c06445; margin: 14px 0 0; font-size: 14px; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stock-card { background: #fafbf8; border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.stock-card b { font-size: 17px; }
.stock-value { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; color: var(--olive); }
.stock-value small { display: inline; font-weight: 400; font-size: 15px; }
.stock-card-meta, .stock-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stock-card-meta { color: var(--muted); font-size: 12px; }
.history-btn { font-size: 12px; padding: 7px 10px; min-height: 36px; }
.entry-row { display: grid; grid-template-columns: 1fr minmax(140px, 220px); align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.entry-row:last-child { border: 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.form-footer button { flex-shrink: 0; }
.form-footer small { max-width: 420px; }
.form-message { font-size: 14px; margin: 12px 0; line-height: 1.5; }
.form-message:empty, .form-error:empty { display: none; }
.form-error { color: #b33929; font-size: 14px; line-height: 1.5; }
.success, .save-success { color: #31643d; }
.badge, .status-dot { display: inline-block; white-space: nowrap; border-radius: 6px; padding: 6px 9px; font-size: 12px; font-weight: 600; background: #fff1d4; color: #896216; }
.badge.submitted, .status-dot.done { background: #e5efdf; color: #3c5e30; }
.badge.draft { background: #fff1d4; color: #896216; }
.admin-tabs { display: flex; gap: 6px; margin: 0 0 25px; padding: 5px; background: #e6ebdf; border-radius: 11px; width: fit-content; }
.admin-tabs button { background: transparent; color: #617058; border: 0; padding: 9px 24px; }
.admin-tabs button[aria-current="page"], .admin-tabs button[aria-selected="true"], .admin-tabs button.active { background: white; color: #283c28; box-shadow: 0 2px 5px #26312a0c; }
.warehouse-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; margin-bottom: 22px; }
.warehouse-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--border); border-radius: 10px; background: #fafbf8; }
.warehouse-card small { margin-top: 5px; }
.stock-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.stock-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.stock-table th, .stock-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); min-width: 120px; }
.stock-table thead th { background: #edf1e7; color: #526048; font-size: 13px; font-weight: 600; }
.stock-table tbody th { background: #fcfdfb; font-weight: 600; min-width: 170px; }
.stock-table td { font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stock-table tr:last-child th, .stock-table tr:last-child td { border-bottom: none; }
.stock-table tbody tr:hover th, .stock-table tbody tr:hover td { background: #f3f6ed; }
.item-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 10px; }
.catalog-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); padding: 14px; border-radius: 10px; background: #fafbf8; }
.catalog-icon { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #526b36; background: #e8edde; font-size: 21px; }
.plus-button { width: 44px; height: 44px; border-radius: 12px; font-size: 29px; line-height: 1; padding: 0; }
.list { display: grid; gap: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions button { font-size: 13px; padding: 9px 12px; }
.audit-list { display: grid; }
.audit-card { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--border); padding: 15px 0; }
.audit-card:first-child { padding-top: 0; }
.audit-card:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-card small { margin-top: 5px; }
.audit-card time { font-size: 13px; white-space: nowrap; color: var(--muted); }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 22px; background: radial-gradient(ellipse at top, #e3e9d7, #f2f4ef 65%); }
.card { width: min(100%, 390px); padding: 32px; border-radius: 18px; border: 1px solid var(--border); background: white; box-shadow: 0 15px 50px #26312a10; display: grid; gap: 16px; }
.card .brand-logo { width: 64px; height: 64px; }
.card h1 { margin: 0; }
.modal { width: min(calc(100% - 32px), 560px); max-height: 88dvh; overflow: auto; margin: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 24px; color: #26312a; box-shadow: 0 20px 70px #1f291a40; }
.modal:not([open]) { display: none; }
.modal::backdrop { background: #1f291a75; backdrop-filter: blur(2px); }
.modal .section-heading { align-items: flex-start; }
.close-modal { font-size: 22px; padding: 4px 11px; min-height: 36px; flex-shrink: 0; }
.item-form { display: grid; gap: 17px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.checkbox-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.point-item-list { max-height: 50dvh; overflow: auto; }
.history-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.history-heading { font-size: 12px; color: var(--muted); }
.password-result { display: block; overflow-wrap: anywhere; background: #edf1e7; border: 1px solid var(--border); padding: 16px; border-radius: 9px; font-size: 22px; letter-spacing: 1px; margin: 15px 0; }
.empty-state { padding: 15px 0; color: var(--muted); font-size: 14px; margin: 0; }
.hidden, [hidden] { display: none !important; }
.brand-copy { display: grid; gap: 3px; }
.page-clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.report-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.overdue { color: #ad3d2a; }
.modal-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.checkbox-list { max-height: 50dvh; overflow-y: auto; }
.credential-value { display: block; padding: 16px; border-radius: 10px; background: #edf1e7; font-family: monospace; font-size: 23px; overflow-wrap: anywhere; margin: 15px 0; }
.table-search { max-width: 280px; }
.stock-table td:last-child { color: #3b5730; }
.stock-table td:nth-child(2) { font-size: 13px; font-weight: 400; color: var(--muted); }
.stock-table th:nth-child(2), .stock-table td:nth-child(2) { min-width: 55px; width: 65px; }
.admin-tabs { max-width: 100%; overflow-x: auto; }
.admin-tabs button { white-space: nowrap; flex-shrink: 0; }
.warehouse-card.overdue, .stock-table th.overdue { color: #a23526; background: #fff0eb; border-color: #e4b3a7; }
.warehouse-card.overdue small, .stock-table th.overdue small { color: #a23526; }
.report-status.overdue { padding: 12px; border-radius: 9px; background: #fff0eb; }
.stock-card input { background: white; }
h3 { margin: 0 0 5px; font-size: 16px; }
.stale-note { color: #a23526; font-weight: 600; margin-top: 6px; }
.total-column { background: #f1f5ea; }
.eyebrow { color: #73815f; font-size: 11px !important; font-weight: 700; letter-spacing: 1.6px; margin-bottom: 8px !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.audit-row time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.plus-button { width: auto; height: auto; font-size: 14px; padding: 11px 17px; }
.plus-button span { font-size: 20px; vertical-align: -1px; }
.item-catalog { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.catalog-card { flex-wrap: wrap; }
.catalog-card > div { flex: 1; }
.catalog-card > button { font-size: 12px; padding: 8px 10px; min-height: 36px; }
#report-reminder { margin-bottom: 20px; }
.modal-close { padding: 4px 11px; min-height: 36px; font-size: 22px; }
@media (max-width: 650px) {
  header { padding: 12px 14px; gap: 10px; }
  header strong { font-size: 18px; }
  .brand-logo { width: 39px; height: 39px; }
  header > div, .brand { gap: 9px; }
  .content { padding: 22px 12px 32px; }
  .panel { padding: 16px; border-radius: 12px; margin-bottom: 16px; }
  .title { align-items: stretch; flex-direction: column; }
  .title > button { padding: 9px 12px; font-size: 13px; align-self: flex-start; }
  .section-heading { gap: 10px; }
  .section-heading > span { max-width: 110px; text-align: right; }
  .section-heading h2 { font-size: 18px; }
  .stock-grid { grid-template-columns: 1fr; }
  .stock-card { padding: 15px; }
  .entry-row { grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer button { width: 100%; }
  .warehouse-status-grid { grid-template-columns: 1fr; }
  .list-row { flex-wrap: wrap; }
  .row-actions { width: 100%; }
  .row-actions button { flex: 1; }
  .stock-table th, .stock-table td { padding: 12px; min-width: 110px; }
  .item-catalog { grid-template-columns: 1fr; }
  .audit-card { flex-direction: column; gap: 6px; }
  .modal { padding: 18px; }
  .form-columns { grid-template-columns: 1fr; }
  .panel:has(.stock-table) > .section-heading { flex-direction: column; align-items: stretch; }
  .table-search { max-width: none; }
  .history-row { gap: 8px; font-size: 12px; }
  .history-row .badge { font-size: 11px; padding: 5px; }
}

