/* webcafe.kit on top of the shared Webcafe app.css. The customer's brand colour (--brand) drives
   buttons and highlights; the footer keeps the webcafe.kit wordmark. */
:root { --brand: #86C53C; --brand-ink: #0E1B38; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { filter: brightness(.93); }
.site-header { border-bottom: 3px solid var(--brand); }
.site-header .nav-link.active { box-shadow: inset 0 -3px 0 var(--brand); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

.brand-mark { display: flex; align-items: center; min-height: 40px; }
.brand-mark img { max-height: 44px; max-width: 220px; object-fit: contain; }
.brand-name { font: 800 20px/1.1 var(--font-head); color: var(--navy); letter-spacing: -.01em; }

.bell { position: relative; font-size: 18px; }
.bell .dot { position: absolute; top: 2px; right: 0; background: var(--red); color: #fff; border-radius: 10px;
    font: 700 10px/1 var(--font-body); padding: 3px 5px; }

/* column widths */
.w-ref { width: 92px; } .w-sm { width: 90px; } .w-md { width: 130px; } .w-lg { width: 170px; } .w-xl { width: 220px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr.is-low td { background: var(--amber-soft); }
.data-table tr.is-out td { background: var(--red-soft); }
.data-table tr.over td { background: var(--amber-soft); }
.data-table.mini th, .data-table.mini td { padding: 4px 8px; font-size: 13px; }
.data-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* status badges */
.rs-submitted, .rs-step1, .ps-draft { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); }
.rs-approved, .ps-ordered, .ps-partial { background: var(--ice); color: var(--link); border: 1px solid var(--frost); }
.rs-dispatched { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
.rs-received, .ps-received { background: var(--lime-soft); color: var(--lime-ink); border: 1px solid #C9E7A7; }
.rs-declined, .rs-cancelled, .ps-cancelled { background: #F1F5F9; color: var(--slate); border: 1px solid var(--line); }
.lvl-off { background: #F1F5F9; color: var(--slate); }
.st-ok { background: var(--lime-soft); color: var(--lime-ink); }
.st-pending { background: var(--amber-soft); color: var(--amber); }
.flag { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; }
.flag.warn { color: var(--amber); } .flag.bad { color: var(--red); } .flag.good { color: var(--lime-ink); }

/* two-column page: work on the left, history on the right */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.split > * { min-width: 0; }
.compact-kv { grid-template-columns: 90px 1fr; font-size: 14px; }
.hold-list, .req-history { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.hold-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.req-history li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.req-history li:last-child { border-bottom: 0; }
.req-history .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.req-history .sub { color: var(--slate); }

/* the item order grid */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.item-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.item-card.extra { border-style: dashed; }
.item-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.item-head .nm { font-weight: 600; color: var(--navy); }
.item-head .price { margin-left: auto; color: var(--slate); font-size: 13px; white-space: nowrap; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size-box { display: flex; flex-direction: column; align-items: center; width: 52px; font-size: 12px; color: var(--slate); }
.size-box input { width: 52px; padding: 4px 2px; text-align: center; -moz-appearance: textfield; }
.size-box input::-webkit-outer-spin-button, .size-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-box input:not(:placeholder-shown):not([value=""]) { border-color: var(--brand); }

.line-table select { min-width: 90px; }
.line-table input[type=number] { width: 70px; }
.lines-total { text-align: right; font-weight: 600; margin-top: 8px; }
.terms { background: var(--ice); border: 1px solid var(--frost); border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* staff self-service */
.staff-wrap { max-width: 980px; margin: 0 auto; }
.staff-hello { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.big-ref { font: 800 32px/1.1 var(--font-head); color: var(--navy); }

.tiles a.tile { text-decoration: none; }
.tile .num, .tile .lbl { display: block; }
.data-table.mini th.num, .data-table.mini td.num { width: 64px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-grid > * { min-width: 0; }

@media (max-width: 1000px) { .split, .dash-grid { grid-template-columns: 1fr; } }

/* printable dispatch note / purchase order */
.print-doc { background: #fff; max-width: 820px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); }
.print-doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.print-doc th, .print-doc td { border: 1px solid #94A3B8; padding: 6px 8px; text-align: left; }
.print-doc .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.print-doc .sig div { border-top: 1px solid #0F172A; padding-top: 6px; font-size: 13px; }
@media print {
    body { background: #fff; }
    .no-print { display: none !important; }
    .print-doc { border: 0; padding: 0; }
}
