/* Food Distribution OMS — compact wholesale UI */
:root {
  --brand: #0b4f8a;
  --brand-dark: #083a66;
  --brand-light: #e8f1fa;
  --sidebar-w: 230px;
}
body { background: #f4f6f9; font-size: 15px; }
.bg-brand { background: var(--brand) !important; }
.text-brand { color: var(--brand) !important; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.navbar-brand { max-width: 60vw; }

.sidebar { width: var(--sidebar-w); background: #fff; border-right: 1px solid #e3e7ed; min-height: calc(100vh - 56px); }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; flex-shrink: 0; } }
.sidebar .nav-link { color: #2b3440; padding: .6rem 1.1rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; color: #6c7a89; }
.sidebar .nav-link:hover { background: var(--brand-light); }
.sidebar .nav-link.active { background: var(--brand-light); border-left-color: var(--brand); color: var(--brand); font-weight: 600; }
.sidebar .nav-link.active i { color: var(--brand); }
.main-content { min-width: 0; }

.card { border: 1px solid #e3e7ed; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; }
.page-title { font-size: 1.35rem; font-weight: 600; margin: 0; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { color: #6c7a89; font-size: .85rem; }
.stat-card a { text-decoration: none; color: inherit; }
.table { --bs-table-bg: #fff; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; color: #5b6878; background: #f8fafc; white-space: nowrap; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge-st { font-weight: 600; }
.bg-teal { background-color: #0d9488 !important; }
.bg-indigo { background-color: #4f46e5 !important; }
.bg-orange { background-color: #ea580c !important; }
.form-label { font-weight: 500; margin-bottom: .25rem; }
.required::after { content: " *"; color: #c0392b; }
.btn-lg-touch { min-height: 48px; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 140px; }
.text-shortage { color: #c0392b; font-weight: 600; }
.small-muted { font-size: .85rem; color: #6c7a89; }
.list-group-item-action { cursor: pointer; }

/* ---------- Mobile order entry ---------- */
.oe-header { position: sticky; top: 56px; z-index: 10; background: #f4f6f9; padding-bottom: .5rem; }
.oe-results { max-height: 50vh; overflow-y: auto; }
.oe-results .list-group-item { padding: .7rem .85rem; }
.oe-line { border-bottom: 1px solid #eef1f4; padding: .65rem 0; }
.oe-line:last-child { border-bottom: none; }
.qty-ctrl { display: flex; align-items: center; gap: .25rem; }
.qty-ctrl button { width: 44px; height: 44px; font-size: 1.2rem; padding: 0; }
.qty-ctrl input { width: 80px; height: 44px; text-align: center; font-size: 1.05rem; }
.oe-footer { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #dfe3e8; padding: .75rem; z-index: 10; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.oe-total { font-size: 1.3rem; font-weight: 700; }
.pending-badge { position: fixed; bottom: 90px; right: 16px; z-index: 30; }

/* ---------- Warehouse ---------- */
.pick-row.status-picked { background: #ecfdf5; }
.pick-row.status-partial { background: #fff7ed; }
.pick-row.status-unavailable { background: #fef2f2; }

@media (max-width: 575.98px) {
  .container-fluid { padding-left: .6rem !important; padding-right: .6rem !important; }
  .table-responsive-stack td, .table-responsive-stack th { font-size: .9rem; }
  .page-title { font-size: 1.15rem; }
}
@media print {
  body { background: #fff; }
  .card { box-shadow: none; border: none; }
}
