/* Shell and logo styling reused from CEB-BulkSupply. */
:root {
  --app-navy: #082f49;
  --app-navy-strong: #06263c;
  --app-blue: #075985;
  --app-teal: #0f766e;
  --app-yellow: #f4c430;
  --app-bg: #f4f7fa;
  --app-surface: #ffffff;
  --app-border: #dbe3ea;
  --app-text: #172033;
  --app-muted: #667085;
  --app-danger: #b42318;
  --app-sidebar-width: 252px;
  --app-topbar-height: 64px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
}

html { font-size: 14px; min-height: 100%; position: relative; }
body { background: var(--app-bg); color: var(--app-text); margin: 0; min-height: 100vh; overflow-x: hidden; }
a { color: var(--app-blue); }
.bi { fill: currentColor; height: 1em; pointer-events: none; vertical-align: -.125em; width: 1em; }
.btn { align-items: center; border-radius: .5rem; display: inline-flex; font-weight: 650; gap: .45rem; justify-content: center; }
.btn-primary { background: var(--app-blue); border-color: var(--app-blue); }
.btn-primary:hover, .btn-primary:focus { background: #064b70; border-color: #064b70; }
.btn-secondary { background: #fff; border-color: #bcc9d5; color: #344054; }
.btn-light { background: #f8fafc; border-color: #e2e8f0; color: #344054; }
.btn-link { color: var(--app-blue); text-decoration: none; }
.form-control, .form-select { border-color: #c5d0da; border-radius: .5rem; min-height: 40px; }
.form-control:focus, .form-select:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { border-color: var(--app-blue); box-shadow: 0 0 0 .2rem rgba(7, 89, 133, .2); outline: 0; }

.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { background: linear-gradient(180deg, var(--app-navy-strong), var(--app-navy)); color: #fff; display: flex; flex: 0 0 var(--app-sidebar-width); flex-direction: column; height: 100vh; left: 0; overflow-y: auto; position: fixed; top: 0; transition: transform .2s ease, width .2s ease; width: var(--app-sidebar-width); z-index: 1040; }
.app-brand { align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; display: flex; gap: var(--space-3); min-height: var(--app-topbar-height); padding: var(--space-3) var(--space-4); text-decoration: none; }
.app-brand:hover { color: #fff; }
.app-brand strong, .app-brand small { display: block; }
.app-brand strong { font-size: 1rem; line-height: 1.1; }
.app-brand small { color: rgba(255,255,255,.65); font-size: .68rem; letter-spacing: .055em; margin-top: 3px; text-transform: uppercase; }
.brand-mark { align-items: center; background: var(--app-yellow); border-radius: .6rem; color: var(--app-navy); display: inline-flex; flex: 0 0 38px; font-size: .7rem; font-weight: 850; height: 38px; justify-content: center; letter-spacing: .04em; }
.brand-logo { background: #fff; border-radius: .55rem; flex: 0 0 126px; height: 48px; object-fit: cover; object-position: center; width: 126px; }
.login-page { margin: auto; width: min(100%, 460px); }
.login-card { width: 100%; }
.login-card .card-body { padding: clamp(1.75rem, 4vw, 3rem); }
.login-header { margin-bottom: var(--space-6); }
.login-brand-logo { background: #fff; display: block; height: 104px; margin: 0 0 var(--space-4); max-width: 100%; object-fit: cover; object-position: center; width: 260px; }
.sidebar-nav { padding: var(--space-3) var(--space-2) var(--space-8); }
.sidebar-group { margin-bottom: var(--space-3); }
.sidebar-heading { color: rgba(255,255,255,.48); font-size: .68rem; font-weight: 750; letter-spacing: .075em; padding: var(--space-3) var(--space-3) var(--space-1); text-transform: uppercase; }
.sidebar-link, .sidebar-sublink { border-radius: .5rem; color: rgba(255,255,255,.78); display: flex; font-size: .86rem; font-weight: 620; gap: var(--space-3); margin: 2px 0; padding: 9px var(--space-3); text-decoration: none; }
.sidebar-link .bi { flex: 0 0 18px; font-size: 1.1rem; }
.sidebar-sublink { font-size: .78rem; font-weight: 520; padding: 6px 12px 6px 42px; }
.sidebar-link:hover, .sidebar-sublink:hover, .sidebar-link:focus, .sidebar-sublink:focus { background: rgba(255,255,255,.09); color: #fff; }
.sidebar-link.active { background: rgba(244,196,48,.16); color: #fff; }
.sidebar-link.active .bi { color: var(--app-yellow); }
.app-main { display: flex; flex: 1; flex-direction: column; margin-left: var(--app-sidebar-width); min-width: 0; min-height: 100vh; transition: margin-left .2s ease; }
.app-topbar { align-items: center; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--app-border); display: flex; gap: var(--space-4); height: var(--app-topbar-height); padding: 0 var(--space-6); position: sticky; top: 0; z-index: 1020; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: .5rem; color: #475467; display: inline-flex; flex: 0 0 40px; height: 40px; justify-content: center; text-decoration: none; }
.icon-button:hover { background: #eef3f7; color: var(--app-navy); }
.icon-button .bi { font-size: 1.25rem; }
.global-search { align-items: center; background: #f3f6f8; border: 1px solid transparent; border-radius: .55rem; display: flex; flex: 1; gap: var(--space-2); max-width: 680px; padding: 0 var(--space-3); }
.global-search:focus-within { background: #fff; border-color: var(--app-blue); box-shadow: 0 0 0 .2rem rgba(7,89,133,.12); }
.global-search input { background: transparent; border: 0; color: var(--app-text); flex: 1; height: 40px; min-width: 0; outline: 0; }
.global-search kbd { background: #fff; border: 1px solid #d0d5dd; color: #667085; font-size: .68rem; }
.topbar-actions { align-items: center; display: flex; gap: var(--space-2); margin-left: auto; }
.user-button { align-items: center; background: transparent; border: 0; border-radius: .55rem; color: var(--app-text); display: flex; gap: var(--space-2); max-width: 235px; padding: 5px 8px; text-align: left; }
.user-button:hover { background: #f3f6f8; }
.user-button strong, .user-button small { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-button strong { font-size: .78rem; }.user-button small { color: var(--app-muted); font-size: .67rem; }
.user-avatar { align-items: center; background: var(--app-yellow); border-radius: 50%; color: var(--app-navy); display: inline-flex; flex: 0 0 34px; font-weight: 800; height: 34px; justify-content: center; }
.dropdown-item { align-items: center; display: flex; gap: var(--space-2); }
.app-content { flex: 1; max-width: 1720px; padding: var(--space-6); width: 100%; }
.app-footer { border-top: 1px solid var(--app-border); color: var(--app-muted); display: flex; font-size: .72rem; justify-content: space-between; padding: var(--space-3) var(--space-6); }
.sidebar-backdrop { display: none; }
.public-shell { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: var(--space-6); width: 100%; }

/* Irregularity components use the same BulkSupply surfaces and type scale. */
body { font-family:var(--bs-body-font-family); font-size:14px; }
.app-topbar { min-width:0; }.app-content { margin:0; }.global-search { min-width:0; }.global-search input { font-size:.86rem; }
.office-user { align-items:center; display:flex; gap:8px; }.office-user strong,.office-user small { display:block; max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.office-user strong { font-size:.78rem; }.office-user small { font-size:.67rem; color:var(--app-muted); }
.sidebar-link .icon { flex:0 0 18px; }.icon-button { width:40px; }
.workspace-badge { background:#fff7dc; border-bottom:1px solid #eee1b8; color:#76622d; font-size:.78rem; padding:8px 24px; }
.login-card { border-radius:.75rem; }.login-header h1 { font-size:1.75rem; margin:0 0 4px; }.login-submit { margin-top:4px; min-height:40px; justify-content:center; }
.card.shadow-sm { box-shadow:0 1px 4px #1018280d!important; }
.btn { font-size:.86rem; padding:8px 12px; }.form-control,.form-select { font-size:1rem; }
h1,.page-heading h1,.detail-heading h1 { color:#101828; font-size:1.55rem; font-weight:750; letter-spacing:-.02em; }h2 { font-size:.94rem; font-weight:750; }
.page-heading { margin-bottom:24px; }.page-heading p { font-size:.82rem; margin-top:4px; }
.surface,.metric-card { border-radius:.75rem; box-shadow:0 1px 3px #1018280a; }.section-heading { padding:16px; }.section-heading h2 { font-size:.94rem; }
.scope-bar { margin-bottom:16px; padding:12px 16px; }.scope-bar strong { font-size:.86rem; }
.metric-grid { gap:16px; margin-bottom:24px; }.metric-card { padding:16px; }.metric-card>strong { padding:8px 0 0; font-size:2rem; }.metric-top { font-size:.82rem; }
.dashboard-columns { display:block; }.filter-panel { padding:16px; margin-bottom:16px; }
.jobs-table { font-size:.78rem; }.jobs-table th { padding:11px 12px; font-size:.7rem; font-weight:750; color:#475467; text-transform:uppercase; }.jobs-table td { padding:11px 12px; }.reference-link { font-size:.82rem; }
.job-status { border-radius:999px; font-size:.68rem; font-weight:700; padding:4px 9px; }.job-status.complete { background:#dcfce7; color:#166534; }.job-status.neutral { background:#eef2f6; color:#475467; }
.workflow-summary,.workflow-form { padding:20px; margin-bottom:16px; }.workflow-summary h2,.workflow-form h2 { font-size:1rem; margin-bottom:12px; }.workflow-notice { padding:12px 16px; margin:12px 0; font-size:.85rem; }
.workflow-summary>.compact-details { grid-template-columns:repeat(3,minmax(0,1fr)); }
.workflow-status { display:flex; gap:20px; flex-wrap:wrap; margin:0 0 16px; color:var(--app-muted); font-size:.85rem; }.workflow-status strong { color:var(--app-text); }
.workflow-actions { gap:12px; margin-bottom:20px; }.workflow-action-link { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px; font-weight:650; text-decoration:none; }.workflow-action-link:hover { background:#f8fafc; border-color:#9bb6c8; }.workflow-action-link small { display:block; font-size:.72rem; font-weight:400; margin-top:4px; }
.route-list { display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)); }.route-list .workflow-notice { margin:0; overflow-wrap:anywhere; }
.workflow-form .form-group { margin-bottom:18px; }.workflow-form .form-text { font-size:.78rem; }.history-panel>.small-muted { padding:0 16px 16px; }
.next-actions h2 { margin:0 0 12px; }.hold-action { margin:0 0 16px; }.category-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }.category-actions:empty { display:none; }.category-actions .btn { font-size:.78rem; text-align:left; }
.workflow-disclosure>summary { cursor:pointer; font-weight:700; }.disclosure-body { margin-top:16px; }.workflow-disclosure .history-panel { box-shadow:none; border:0; }.workflow-disclosure .section-heading { padding:0 0 16px; }.workflow-disclosure .timeline { padding-left:16px; }
.workflow-buttons { flex-wrap:wrap; }.workflow-buttons .btn { text-wrap:wrap; }[aria-busy="true"] { opacity:.65; cursor:wait; }
body.sidebar-collapsed .app-sidebar { transform:translateX(-100%); }body.sidebar-collapsed .app-main { margin-left:0; }
@media(max-width:1023.98px) {
 .app-sidebar { transform:translateX(-100%); box-shadow:12px 0 28px #0000002e; }.app-main { margin-left:0; }.app-content { padding:16px; }
 body.sidebar-open .app-sidebar { transform:translateX(0); }body.sidebar-open .sidebar-backdrop { display:block; background:#0f172a6b; border:0; inset:0 0 0 var(--app-sidebar-width); position:fixed; z-index:1030; }
}
@media(max-width:767.98px) {
 .app-topbar { padding:0 12px; gap:8px; }.global-search kbd,.office-user>span:not(.user-avatar) { display:none; }
 .app-footer { padding:12px 16px; }.route-list { grid-template-columns:1fr; }.page-heading { gap:12px; }.workflow-status { gap:6px 16px; }
 .workflow-summary>.compact-details { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:479.98px) { .public-shell { padding:12px; }.login-card .card-body { padding:24px; }.login-brand-logo { width:220px; height:88px; }.global-search input { font-size:.75rem; }.app-content { padding:12px; } }
@media print { .app-sidebar,.app-topbar,.app-footer,.sidebar-backdrop { display:none!important; }.app-main { margin:0; }.app-content { max-width:none; } }
