:root {
  color-scheme: light;
  --ink: #173333;
  --ink-soft: #62736f;
  --forest: #123c3d;
  --forest-deep: #0d3031;
  --mint: #cce8db;
  --mint-soft: #e8f3ed;
  --paper: #f5f3ec;
  --surface: #fffefa;
  --line: #dfe4df;
  --orange: #ea7049;
  --orange-deep: #cf5835;
  --sand: #e8d8b8;
  --red: #b84f4b;
  --shadow: 0 18px 44px rgba(15, 48, 48, 0.09);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(234, 112, 73, 0.32); outline-offset: 2px; }

.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink-soft); }
.mark { display: grid; place-items: center; width: 54px; height: 54px; background: var(--orange); color: white; border-radius: 18px 5px 18px 5px; font-family: Georgia, serif; font-size: 1.7rem; box-shadow: 0 12px 24px rgba(234, 112, 73, 0.25); }
.eyebrow { margin: 0 0 22px; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.19em; color: var(--mint); }
.eyebrow.ink { color: #71827d; margin-bottom: 10px; }
.brand-wordmark { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; color: #dbe9e2; font-size: 0.88rem; letter-spacing: -0.01em; }
.brand-wordmark strong { color: white; font-size: 1.08rem; letter-spacing: 0.08em; }
.brand-dot { display: grid; place-items: center; width: 31px; height: 31px; margin-right: 4px; background: var(--orange); color: white; border-radius: 10px 3px 10px 3px; font-family: Georgia, serif; font-size: 1rem; }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr 0.92fr; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 46px clamp(38px, 7vw, 108px) 60px; color: white; background: var(--forest); }
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.brand-panel::before { width: 440px; height: 440px; right: -190px; top: -190px; background: rgba(204, 232, 219, 0.055); }
.brand-panel::after { width: 440px; height: 440px; right: -165px; bottom: -180px; border: 1px solid rgba(204, 232, 219, 0.22); box-shadow: 0 0 0 68px rgba(204, 232, 219, 0.035), 0 0 0 136px rgba(204, 232, 219, 0.025); }
.brand-copy { position: relative; z-index: 1; padding: 60px 0 36px; }
.brand-panel h1 { max-width: 720px; margin: 0; font-family: Georgia, serif; font-size: clamp(3.2rem, 6vw, 6.8rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.92; }
.intro { max-width: 500px; margin: 34px 0 0; color: #d8e7df; font-size: 1.05rem; line-height: 1.72; }
.trust-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 16px 28px; color: #d8e7df; font-size: 0.76rem; }
.trust-row span { color: var(--orange); font-weight: 850; }
.login-panel { display: grid; place-items: center; padding: 44px; }
.login-card { width: min(420px, 100%); }
.login-card .mark { margin-bottom: 34px; }
.login-card h2 { margin: 0; font-family: Georgia, serif; font-size: 2.75rem; font-weight: 500; letter-spacing: -0.04em; }
.muted { margin: 10px 0 34px; color: var(--ink-soft); }
.login-card form { display: grid; gap: 20px; }
.login-card label { display: grid; gap: 8px; font-size: 0.78rem; font-weight: 780; }
.login-card input { width: 100%; border: 1px solid #cdd7d2; border-radius: 8px; background: #fff; color: var(--ink); padding: 15px 16px; outline: none; }
.login-card input:focus { border-color: #2d7069; box-shadow: 0 0 0 3px rgba(45, 112, 105, 0.12); }
.form-error { min-height: 18px; margin: -9px 0 -8px; color: var(--red); font-size: 0.78rem; line-height: 1.4; }
.setup-alert { margin: -10px 0 22px; padding: 13px 15px; border: 1px solid #e1c68e; border-radius: 8px; background: #fff7e5; color: #7a5b20; font-size: 0.8rem; line-height: 1.55; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 8px; padding: 12px 16px; font-weight: 800; cursor: pointer; transition: transform 150ms ease, background 150ms ease, border-color 150ms ease; }
.primary-button { background: var(--orange); color: white; }
.primary-button:hover { background: var(--orange-deep); transform: translateY(-1px); }
.secondary-button { border: 1px solid #c7d0cb; background: white; color: var(--ink); }
.secondary-button:hover { border-color: #83948f; background: #fafbf8; }
.danger-button { border: 1px solid #e1c2c0; background: #fff8f7; color: var(--red); }
.danger-button:hover { background: #fbe9e7; }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.login-button { width: 100%; justify-content: space-between; padding: 16px 18px; }
.secure-note { margin-top: 28px; color: #899793; font-size: 0.73rem; text-align: center; }
.lock-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #4d8c77; box-shadow: 0 0 0 3px rgba(77, 140, 119, 0.12); }

/* Admin shell */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 3; height: 100vh; display: flex; flex-direction: column; padding: 28px 19px 20px; background: var(--forest-deep); color: white; }
.brand-wordmark.compact { padding: 0 6px; }
.sidebar-brand-logo { display: block; flex: 0 0 40px; width: 40px; height: 40px; margin-right: 4px; object-fit: contain; }
.brand-wordmark.compact span:last-child { color: #bdcec6; }
.nav-label { margin: 56px 11px 13px; color: #7fa09a; font-size: 0.63rem; font-weight: 850; letter-spacing: 0.18em; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 7px; border: 0; border-radius: 7px; padding: 11px 12px; background: transparent; color: #adc2ba; font-size: 0.8rem; text-align: left; cursor: pointer; }
.nav-item b { min-width: 23px; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,0.07); color: #c7dad2; font-size: 0.67rem; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,0.055); color: white; }
.nav-item.active { background: #1d4c4c; color: white; box-shadow: inset 3px 0 var(--orange); }
.nav-item.active b { background: var(--orange); color: white; }
.nav-symbol { width: 22px; color: #92aaa4; font-size: 1.05rem; text-align: center; }
.sidebar-help { margin: auto 5px 18px; padding: 15px; border: 1px solid rgba(204,232,219,0.1); border-radius: 8px; background: rgba(204,232,219,0.045); }
.sidebar-help > span { float: left; display: grid; place-items: center; width: 23px; height: 23px; margin-right: 9px; border-radius: 50%; background: var(--orange); font-size: 0.72rem; font-weight: 850; }
.sidebar-help strong { display: block; padding-top: 3px; font-size: 0.73rem; }
.sidebar-help p { clear: both; margin: 10px 0 0; color: #93ada5; font-size: 0.68rem; line-height: 1.5; }
.profile-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 9px; padding: 15px 4px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.profile-row > span:nth-child(2) { min-width: 0; }
.profile-row strong, .profile-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-row strong { font-size: 0.71rem; }
.profile-row small { margin-top: 3px; color: #87a09a; font-size: 0.58rem; }
.profile-row button { border: 0; background: transparent; color: #829d96; cursor: pointer; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--mint-soft); color: #2a625d; font-size: 0.72rem; font-weight: 850; }
.avatar.small { width: 34px; height: 34px; background: #285756; color: #d8e7df; font-size: 0.62rem; }
.avatar.large { width: 55px; height: 55px; font-size: 0.9rem; }

.workspace { min-width: 0; padding: 35px clamp(26px, 4vw, 62px) 50px; }
.workspace-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 27px; }
.workspace-header .eyebrow { margin-bottom: 8px; }
.workspace-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.3rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -0.05em; }
.workspace-header p:last-child { margin: 7px 0 0; color: var(--ink-soft); font-size: 0.84rem; }
.header-date { min-width: 92px; display: grid; justify-items: end; gap: 2px; color: var(--ink-soft); font-size: 0.68rem; }
.header-date strong { color: var(--ink); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 13px; margin-bottom: 18px; }
.metric-card { min-height: 122px; display: grid; grid-template-columns: 1fr auto; align-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 17px 18px; background: var(--surface); text-align: left; cursor: pointer; box-shadow: 0 2px 0 rgba(18,60,61,0.02); }
.metric-card:hover { border-color: #bbc9c3; box-shadow: var(--shadow); }
.metric-top { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 0.57rem; font-weight: 850; letter-spacing: 0.11em; }
.metric-arrow { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #eff2ed; font-size: 0.72rem; }
.metric-card strong { align-self: end; margin-top: 18px; font-family: Georgia, serif; font-size: 2.5rem; font-weight: 500; line-height: 0.8; }
.metric-card small { align-self: end; color: var(--ink-soft); font-size: 0.7rem; }
.metric-card.orange { border-top: 3px solid var(--orange); }
.metric-card.orange strong { color: var(--orange-deep); }
.metric-card.green { border-top: 3px solid #4c8a74; }
.metric-card.sand { border-top: 3px solid #c59f55; }

.review-workspace { min-height: 620px; display: grid; grid-template-columns: minmax(310px, 0.72fr) minmax(490px, 1.28fr); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); box-shadow: 0 12px 35px rgba(24, 59, 57, 0.055); }
.list-panel { min-width: 0; border-right: 1px solid var(--line); background: #fbfaf5; }
.list-toolbar { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.list-toolbar p, .list-toolbar strong { margin: 0; display: block; }
.list-toolbar p { color: var(--ink-soft); font-size: 0.62rem; }
.list-toolbar strong { margin-top: 3px; font-size: 0.85rem; }
.search-box { width: min(185px, 54%); display: flex; align-items: center; gap: 5px; border: 1px solid #d4dbd7; border-radius: 7px; padding: 0 8px; background: white; }
.search-box span { color: #82928e; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 9px 3px; background: transparent; color: var(--ink); font-size: 0.68rem; }
.partner-list { max-height: 700px; overflow: auto; }
.partner-row { width: 100%; display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 0; border-bottom: 1px solid #e8ebe6; padding: 15px 14px; background: transparent; text-align: left; cursor: pointer; }
.partner-row:hover { background: white; }
.partner-row.selected { background: white; box-shadow: inset 3px 0 var(--orange); }
.partner-summary { min-width: 0; }
.partner-summary strong, .partner-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-summary strong { font-size: 0.79rem; }
.partner-summary small { margin-top: 4px; color: var(--ink-soft); font-size: 0.64rem; }
.doc-progress { display: block; width: 65px; height: 3px; margin-top: 8px; border-radius: 4px; overflow: hidden; background: #dce4df; }
.doc-progress i { display: block; height: 100%; border-radius: inherit; background: #4b8b74; }
.doc-progress .progress-0 { width: 0; }
.doc-progress .progress-10 { width: 10%; }
.doc-progress .progress-20 { width: 20%; }
.doc-progress .progress-30 { width: 30%; }
.doc-progress .progress-40 { width: 40%; }
.doc-progress .progress-50 { width: 50%; }
.doc-progress .progress-60 { width: 60%; }
.doc-progress .progress-70 { width: 70%; }
.doc-progress .progress-80 { width: 80%; }
.doc-progress .progress-90 { width: 90%; }
.doc-progress .progress-100 { width: 100%; }
.row-end { min-width: 76px; display: grid; justify-items: end; gap: 8px; }
.row-end > small { color: #9aa5a2; font-size: 0.59rem; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 4px 7px; font-size: 0.55rem; font-weight: 850; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.status-badge.pending { background: #fff0e8; color: #b55232; }
.status-badge.approved { background: #e3f1e9; color: #34735e; }
.status-badge.rejected { background: #f8e8e6; color: #a84743; }
.status-badge.resubmission { background: #f3ead9; color: #866521; }
.list-loading, .empty-list { min-height: 310px; display: grid; place-content: center; justify-items: center; padding: 32px; color: var(--ink-soft); font-size: 0.76rem; }
.empty-list span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--mint-soft); color: #477c6a; font-weight: 850; }
.empty-list h3 { margin: 13px 0 3px; color: var(--ink); font-family: Georgia, serif; font-weight: 500; }
.empty-list p { margin: 0; text-align: center; }

.detail-wrapper { min-width: 0; max-height: 773px; overflow: auto; background: white; }
.detail-empty { height: 100%; min-height: 590px; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.detail-empty h3 { margin: 20px 0 7px; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 500; }
.detail-empty p { max-width: 300px; margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.55; }
.empty-orbit { display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid #bdd1c8; border-radius: 50%; box-shadow: 0 0 0 13px #f2f7f3, 0 0 0 14px #e6eee9; }
.empty-orbit span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: white; }
.detail-panel { min-height: 100%; }
.detail-header { display: grid; grid-template-columns: 55px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.detail-header h3, .detail-header p { margin: 0; }
.detail-header h3 { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; }
.detail-header > div:nth-child(3) > p:last-child { margin-top: 4px; color: var(--ink-soft); font-size: 0.69rem; }
.partner-code { color: var(--orange-deep); font-size: 0.6rem; font-weight: 850; letter-spacing: 0.1em; }
.large-badge { align-self: start; margin-top: 4px; padding: 5px 9px; }
.mobile-back { display: none; }
.identity-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; padding: 14px 24px; background: #f7f8f4; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.68rem; }
.identity-strip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-strip small { display: block; margin-bottom: 4px; color: #84928e; font-size: 0.55rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.detail-section { padding: 19px 24px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading h4, .section-heading p { margin: 0; }
.section-heading h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; }
.section-heading p { margin-top: 4px; color: var(--ink-soft); font-size: 0.65rem; text-transform: none; letter-spacing: 0; }
.section-heading > span { color: #84928e; font-size: 0.57rem; }
.document-row { min-height: 47px; display: grid; grid-template-columns: 25px minmax(0, 1fr) auto 62px; align-items: center; gap: 9px; border-top: 1px solid #edf0eb; }
.document-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft); color: #37705e; font-size: 0.65rem; font-weight: 900; }
.document-name strong, .document-name small { display: block; }
.document-name strong { font-size: 0.7rem; }
.document-name small { margin-top: 2px; color: var(--ink-soft); font-size: 0.59rem; }
.document-status { font-size: 0.55rem; font-weight: 850; text-transform: uppercase; }
.document-status.verified { color: #367760; }
.document-status.received { color: #8a6826; }
.document-status.missing, .document-status.expired { color: var(--red); }
.document-link { color: #467970; font-size: 0.58rem; font-weight: 750; text-decoration: none; text-align: right; }
.muted-link { color: #a0aaa7; font-weight: 500; }
.service-section { background: #fbfcf8; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.service-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 37px; align-items: center; gap: 8px; min-height: 68px; border: 1px solid #dce3de; border-radius: 7px; padding: 11px; background: white; cursor: pointer; }
.service-row:hover { border-color: #adbfb7; }
.service-row strong, .service-row small { display: block; }
.service-row strong { font-size: 0.68rem; }
.service-row small { margin-top: 4px; color: var(--ink-soft); font-size: 0.52rem; line-height: 1.35; }
.service-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 35px; height: 20px; border-radius: 999px; background: #d3dcd7; transition: background 150ms ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.22); transition: transform 150ms ease; }
.service-checkbox:checked + .switch { background: #397a67; }
.service-checkbox:checked + .switch::after { transform: translateX(15px); }
.update-services { margin-top: 11px; padding: 9px 13px; font-size: 0.66rem; }
.notes-label { display: block; margin-bottom: 7px; font-size: 0.65rem; font-weight: 800; }
#decision-notes { width: 100%; min-height: 76px; resize: vertical; border: 1px solid #d2dbd6; border-radius: 7px; padding: 11px 12px; color: var(--ink); font-size: 0.7rem; outline: none; }
#decision-notes:focus { border-color: #4b8177; box-shadow: 0 0 0 3px rgba(75,129,119,0.1); }
.decision-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.decision-actions button { padding: 9px 13px; font-size: 0.65rem; }
.audit-section ol { margin: 0; padding: 0; list-style: none; }
.audit-section li { position: relative; display: grid; grid-template-columns: 19px 1fr; gap: 7px; padding: 6px 0 9px; }
.audit-section li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 21px; bottom: -5px; width: 1px; background: #dbe3de; }
.audit-dot { width: 13px; height: 13px; margin-top: 2px; border: 3px solid #d9ebe2; border-radius: 50%; background: #4b8873; }
.audit-section strong { display: block; font-size: 0.66rem; }
.audit-section p { margin: 3px 0; color: var(--ink-soft); font-size: 0.62rem; line-height: 1.4; }
.audit-section small { color: #96a29e; font-size: 0.54rem; }
.empty-audit { display: block !important; color: var(--ink-soft); font-size: 0.66rem; }

.toast { position: fixed; z-index: 20; right: 22px; bottom: 22px; max-width: 380px; transform: translateY(20px); border-radius: 8px; padding: 13px 16px; background: var(--forest); color: white; font-size: 0.76rem; line-height: 1.45; opacity: 0; pointer-events: none; box-shadow: 0 18px 36px rgba(13,48,49,0.22); transition: opacity 160ms ease, transform 160ms ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.error { background: #8f3e3b; }

@media (max-width: 1120px) {
  .admin-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .workspace { padding-inline: 24px; }
  .review-workspace { grid-template-columns: minmax(285px, 0.8fr) minmax(430px, 1.2fr); }
  .service-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-shell { display: block; padding-bottom: 74px; }
  .sidebar { position: fixed; inset: auto 0 0; z-index: 10; width: 100%; height: 68px; display: block; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); }
  .brand-wordmark.compact, .nav-label, .sidebar-help, .profile-row { display: none; }
  .sidebar nav { height: 54px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .nav-item { height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 3px; border-radius: 6px; font-size: 0.54rem; text-align: center; }
  .nav-item b { position: absolute; transform: translate(16px, -13px); min-width: 17px; padding: 2px 4px; }
  .nav-item.active { box-shadow: inset 0 3px var(--orange); }
  .nav-symbol { font-size: 0.95rem; }
  .workspace { padding: 28px 18px 35px; }
  .review-workspace { grid-template-columns: minmax(270px, 0.85fr) minmax(420px, 1.15fr); }
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 330px; padding: 30px 28px 36px; }
  .brand-copy { padding: 44px 0 14px; }
  .brand-panel h1 { font-size: 3.25rem; }
  .intro { margin-top: 20px; font-size: 0.92rem; }
  .trust-row { display: none; }
  .login-panel { padding: 42px 24px 60px; }
  .login-card .mark { margin-bottom: 24px; }
  .workspace-header { align-items: center; }
  .workspace-header p:last-child, .header-date span { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 105px; }
  .metric-card strong { font-size: 2rem; }
  .review-workspace { display: block; min-height: 520px; }
  .list-panel { border-right: 0; }
  .detail-wrapper { display: none; max-height: none; }
  .admin-shell.has-selection .list-panel { display: none; }
  .admin-shell.has-selection .detail-wrapper { display: block; }
  .partner-list { max-height: none; }
  .detail-header { grid-template-columns: 30px 50px minmax(0, 1fr); padding: 17px 15px; }
  .detail-header .avatar { width: 50px; height: 50px; }
  .large-badge { grid-column: 3; justify-self: start; margin-top: -7px; }
  .mobile-back { display: block; grid-row: 1 / 3; align-self: center; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
  .identity-strip { grid-template-columns: 1fr 1fr; padding-inline: 17px; }
  .identity-strip span:last-child { grid-column: 1 / -1; }
  .detail-section { padding-inline: 17px; }
  .document-row { grid-template-columns: 25px minmax(0, 1fr) auto; padding: 7px 0; }
  .document-link { grid-column: 2; text-align: left; }
  .decision-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .decision-actions .primary-button { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 450px) {
  .workspace { padding-inline: 12px; }
  .metrics { gap: 8px; }
  .metric-card { padding: 14px; }
  .metric-top span:first-child { letter-spacing: 0.06em; }
  .review-workspace { border-radius: 7px; }
  .list-toolbar { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; max-width: none; }
  .row-end { min-width: 70px; }
  .partner-row { padding-inline: 11px; }
  .toast { right: 12px; bottom: 82px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Central business operations */
.operations-header { align-items: center; }
.operations-header-actions { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.66rem; }
.operations-header-actions button { padding: 9px 12px; font-size: 0.66rem; }
.operations-tabs { display: inline-flex; gap: 4px; margin: -9px 0 16px; border: 1px solid #d6ddd8; border-radius: 9px; padding: 4px; background: rgba(255,255,255,0.62); }
.operations-tabs button { display: flex; align-items: center; gap: 7px; border: 0; border-radius: 6px; padding: 9px 13px; background: transparent; color: var(--ink-soft); font-size: 0.67rem; font-weight: 800; cursor: pointer; }
.operations-tabs button.active { background: var(--forest); color: white; box-shadow: 0 4px 12px rgba(13,48,49,0.13); }
.operations-tabs b { min-width: 19px; border-radius: 999px; padding: 2px 5px; background: rgba(98,115,111,0.12); font-size: 0.55rem; }
.operations-tabs button.active b { background: rgba(255,255,255,0.15); }
.operation-metrics { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 13px; }
.operation-metric { min-height: 110px; display: grid; align-content: space-between; border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: 8px; padding: 15px 17px; background: var(--surface); text-align: left; }
.operation-metric[data-order-filter] { cursor: pointer; }
.operation-metric[data-order-filter]:hover { border-color: #b9c8c1; box-shadow: var(--shadow); }
.operation-metric > span { color: var(--ink-soft); font-size: 0.57rem; font-weight: 850; letter-spacing: 0.11em; }
.operation-metric > strong { margin: 12px 0 4px; font-family: Georgia, serif; font-size: clamp(1.65rem, 2.4vw, 2.35rem); font-weight: 500; letter-spacing: -0.04em; }
.operation-metric > small { color: var(--ink-soft); font-size: 0.62rem; }
.operation-metric.orange { border-top-color: var(--orange); }
.operation-metric.orange > strong { color: var(--orange-deep); }
.operation-metric.green { border-top-color: #4c8a74; }
.operation-metric.sand { border-top-color: #c59f55; }
.network-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 23px; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: rgba(255, 254, 250, 0.72); color: var(--ink-soft); font-size: 0.64rem; }
.network-strip b { color: var(--ink); }
.network-strip span:last-child { margin-left: auto; }
.network-strip i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #4c8a74; box-shadow: 0 0 0 4px rgba(76, 138, 116, 0.12); }
.order-filters { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: thin; }
.order-filters button { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; border: 1px solid #d7ded9; border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,0.65); color: var(--ink-soft); font-size: 0.64rem; font-weight: 750; cursor: pointer; }
.order-filters button:hover, .order-filters button.active { border-color: var(--forest); background: var(--forest); color: white; }
.order-filters b { min-width: 18px; border-radius: 999px; padding: 2px 5px; background: rgba(98,115,111,0.1); font-size: 0.56rem; text-align: center; }
.order-filters button.active b { background: rgba(255,255,255,0.14); }
.operations-review { min-height: 575px; grid-template-columns: minmax(330px, 0.78fr) minmax(480px, 1.22fr); }
.operation-toolbar .search-box { width: min(220px, 60%); }
.order-list { max-height: 680px; }
.order-row { width: 100%; display: grid; gap: 10px; border: 0; border-bottom: 1px solid #e5e9e4; padding: 15px 16px; background: transparent; text-align: left; cursor: pointer; }
.order-row:hover, .order-row.selected { background: white; }
.order-row.selected { box-shadow: inset 3px 0 var(--orange); }
.order-row-top, .order-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-row-top > strong { color: var(--orange-deep); font-size: 0.68rem; letter-spacing: 0.06em; }
.order-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 7px; font-size: 0.52rem; font-weight: 850; letter-spacing: 0.025em; text-transform: uppercase; white-space: nowrap; }
.order-status.new { background: #fff0e8; color: #b55232; }
.order-status.kitchen { background: #f3ead9; color: #80601f; }
.order-status.ready { background: #e8efe4; color: #4c6d3e; }
.order-status.delivery { background: #e3eef4; color: #396a83; }
.order-status.delivered { background: #e3f1e9; color: #34735e; }
.order-status.issue { background: #f8e8e6; color: #a84743; }
.order-customer b, .order-customer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-customer b { font-size: 0.78rem; }
.order-customer small { margin-top: 3px; color: var(--ink-soft); font-size: 0.6rem; }
.order-route { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; }
.order-route > span:first-child { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint-soft); color: #3a7764; font-size: 0.67rem; }
.order-route b, .order-route small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-route b { font-size: 0.66rem; }
.order-route small { margin-top: 3px; color: #84928e; font-size: 0.57rem; }
.order-row-bottom strong { font-family: Georgia, serif; font-size: 1rem; font-weight: 500; }
.order-row-bottom small { color: #96a19e; font-size: 0.57rem; }
.operation-detail-wrapper { max-height: 753px; }
.operation-detail { min-height: 100%; background: white; }
.operation-detail-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.operation-detail-header p, .operation-detail-header h3, .operation-detail-header small { margin: 0; }
.operation-detail-header p { color: var(--orange-deep); font-size: 0.57rem; font-weight: 850; letter-spacing: 0.11em; }
.operation-detail-header h3 { margin: 4px 0; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.operation-detail-header small { color: var(--ink-soft); font-size: 0.59rem; }
.operation-detail-header .mobile-back { margin-right: 3px; }
.operation-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #f8f8f4; }
.operation-people > div { min-width: 0; padding: 16px 18px; }
.operation-people > div:not(:last-child) { border-right: 1px solid var(--line); }
.operation-people small, .operation-people strong, .operation-people a { display: block; }
.operation-people small { color: #85928e; font-size: 0.52rem; font-weight: 850; letter-spacing: 0.09em; }
.operation-people strong { margin-top: 7px; overflow: hidden; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.operation-people a { margin-top: 4px; color: #39766a; font-size: 0.61rem; text-decoration: none; }
.operation-people p { margin: 7px 0 0; color: var(--ink-soft); font-size: 0.57rem; line-height: 1.45; }
.operation-detail-section { padding: 19px 23px; border-bottom: 1px solid var(--line); }
.operation-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.operation-section-title h4 { margin: 0; font-size: 0.69rem; letter-spacing: 0.08em; text-transform: uppercase; }
.operation-section-title span { color: #87938f; font-size: 0.57rem; }
.operation-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #edf0eb; padding: 10px 0; }
.operation-item b, .operation-item small { display: block; }
.operation-item b { font-size: 0.67rem; }
.operation-item small { margin-top: 3px; color: var(--ink-soft); font-size: 0.55rem; }
.operation-item > strong { font-family: Georgia, serif; font-size: 0.85rem; font-weight: 500; }
.operation-totals { display: grid; gap: 6px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.62rem; }
.operation-totals span { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.operation-totals b { color: var(--ink); }
.operation-totals .grand-total { margin-top: 3px; color: var(--ink); font-size: 0.72rem; font-weight: 800; }
.operation-totals .grand-total b { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.order-timeline { margin: 0; padding: 0; list-style: none; }
.order-timeline li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 4px 0 13px; }
.order-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 1px; background: #d7e1dc; }
.order-timeline li > span { width: 13px; height: 13px; margin-top: 1px; border: 3px solid #d9ebe2; border-radius: 50%; background: #4b8873; }
.order-timeline li.current > span { border-color: #ffe1d7; background: var(--orange); box-shadow: 0 0 0 3px rgba(234,112,73,0.1); }
.order-timeline strong { display: block; font-size: 0.64rem; }
.order-timeline p { margin: 3px 0; color: var(--ink-soft); font-size: 0.59rem; }
.order-timeline small { color: #929e9a; font-size: 0.53rem; }

.service-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.service-tabs button { flex: 0 0 auto; border: 1px solid #d9dfda; border-radius: 999px; padding: 9px 16px; background: white; color: var(--ink-soft); font-weight: 800; cursor: pointer; }
.service-tabs button.active { border-color: var(--orange); background: var(--orange); color: white; }
.service-tabs .export-button { margin-left: auto; border-color: var(--forest); color: var(--forest); }
.service-tabs .export-button:disabled { opacity: .45; cursor: not-allowed; }
.empty-service { display: grid; place-items: center; min-height: 440px; border: 1px solid var(--line); border-radius: 12px; padding: 40px; background: white; text-align: center; }
.empty-service span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #e9f5ef; color: var(--forest); font-weight: 900; }
.empty-service h2 { margin: 12px 0 0; }
.empty-service p { max-width: 520px; margin: 0; color: var(--ink-soft); line-height: 1.6; }
.refund-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.refund-row span b, .refund-row span small { display: block; }
.refund-row span small { margin-top: 3px; color: var(--ink-soft); }
.refund-row > strong { color: #b34040; }
.refund-form { display: grid; grid-template-columns: 120px minmax(180px,1fr) auto; gap: 8px; margin-top: 12px; }
.refund-form input, .staff-form input { min-width: 0; border: 1px solid #d8ded9; border-radius: 8px; padding: 10px 12px; font: inherit; }
.staff-panel { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: white; }
.staff-heading p, .staff-heading h2 { margin: 0; }
.staff-heading p { color: var(--orange-deep); font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.staff-heading h2 { margin-top: 5px; }
.staff-form { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); gap: 10px; margin: 18px 0; border-radius: 10px; padding: 16px; background: #f7f8f5; }
.permission-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 20px; }
.permission-checks label { font-size: .7rem; font-weight: 750; }
.staff-form button { justify-self: start; }
.staff-list { border-top: 1px solid var(--line); }
.staff-row { display: grid; grid-template-columns: minmax(190px,1fr) minmax(220px,1.5fr) 75px 70px; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: .68rem; }
.staff-row span b, .staff-row span small { display: block; }
.staff-row span small { margin-top: 3px; color: var(--ink-soft); }
.staff-row button { border: 0; background: transparent; color: #b34040; font-weight: 800; cursor: pointer; }
.staff-active { color: #328363; }.staff-off { color: #b34040; }
.extra-bookings-list { display: grid; gap: 10px; }
.extra-booking-card { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(210px,.7fr); gap: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: white; }
.extra-booking-card h3, .extra-booking-card p { margin: 5px 0; }
.extra-booking-card small { color: var(--orange-deep); font-weight: 900; }
.extra-booking-card p, .extra-booking-card span { color: var(--ink-soft); font-size: .65rem; }
.extra-booking-card > div:last-child { display: grid; justify-items: end; align-content: center; gap: 6px; text-align: right; }
.extra-booking-card strong { font-family: Georgia,serif; font-size: 1.35rem; }

.joined-metrics { margin-bottom: 13px; }
.test-mode-warning { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; margin-bottom: 13px; border: 1px solid #e9c99f; border-radius: 8px; padding: 12px 14px; background: #fff8ea; color: #6e5425; }
.test-mode-warning > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e39a39; color: white; font-weight: 900; }
.test-mode-warning strong { display: block; font-size: 0.7rem; }
.test-mode-warning p { margin: 4px 0 0; font-size: 0.61rem; line-height: 1.5; }
.joined-users-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 12px 35px rgba(24,59,57,0.055); }
.joined-users-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.joined-users-toolbar p, .joined-users-toolbar strong { display: block; margin: 0; }
.joined-users-toolbar p { color: var(--ink-soft); font-size: 0.55rem; font-weight: 850; letter-spacing: 0.11em; }
.joined-users-toolbar strong { margin-top: 4px; font-size: 0.82rem; }
.joined-users-toolbar .search-box { width: min(290px, 48%); }
.joined-role-filters { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fbfaf5; }
.joined-role-filters button { flex: 0 0 auto; border: 1px solid #d6ddd8; border-radius: 999px; padding: 6px 10px; background: white; color: var(--ink-soft); font-size: 0.61rem; font-weight: 750; cursor: pointer; }
.joined-role-filters button.active { border-color: var(--forest); background: var(--forest); color: white; }
.joined-users-head, .joined-user-row { display: grid; grid-template-columns: 42px minmax(170px, 1.2fr) minmax(145px, 0.9fr) minmax(175px, 1fr) 70px; align-items: center; gap: 12px; }
.joined-users-head { padding: 9px 16px; border-bottom: 1px solid var(--line); background: #f6f7f3; color: #7d8b87; font-size: 0.53rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.joined-users-list { max-height: 590px; overflow: auto; }
.joined-user-row { min-height: 66px; padding: 11px 16px; border-bottom: 1px solid #e8ebe6; }
.joined-user-row:hover { background: #fbfcf9; }
.joined-role-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: white; font-size: 0.67rem; font-weight: 900; }
.joined-role-icon.customer { background: #4c8874; }
.joined-role-icon.merchant { background: #bb7d37; }
.joined-role-icon.delivery { background: #437793; }
.joined-user-row strong, .joined-user-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.joined-user-row strong { font-size: 0.67rem; }
.joined-user-row small { margin-top: 4px; color: var(--ink-soft); font-size: 0.56rem; }
.joined-identity > strong { font-size: 0.76rem; letter-spacing: 0.025em; }
.joined-app > small { text-transform: capitalize; }
.joined-activity { text-align: center; }
.joined-activity > strong { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 500; }

@media (max-width: 1120px) {
  .operation-metrics { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .operations-review { grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr); }
  .operation-people { grid-template-columns: 1fr; }
  .operation-people > div:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .sidebar nav.kyc-nav { grid-template-columns: repeat(6, 1fr); }
  .sidebar nav.operations-nav { grid-template-columns: repeat(2, 1fr); }
  .operations-review { grid-template-columns: minmax(290px, 0.85fr) minmax(410px, 1.15fr); }
}

@media (max-width: 760px) {
  .extra-booking-card { grid-template-columns: 1fr; }
  .extra-booking-card > div:last-child { justify-items: start; text-align: left; }
  .refund-form, .staff-form { grid-template-columns: 1fr; }
  .permission-checks { grid-column: 1; }
  .staff-row { grid-template-columns: 1fr auto; }
  .operations-header-actions > span { display: none; }
  .operation-metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .operation-metric { min-height: 100px; padding: 13px; }
  .network-strip { gap: 8px 15px; }
  .network-strip span:last-child { width: 100%; margin-left: 0; }
  .operations-review { display: block; }
  .operation-detail-header { grid-template-columns: 30px minmax(0, 1fr); padding: 17px 15px; }
  .operation-detail-header .mobile-back { display: block; grid-row: 1 / 3; align-self: center; border: 0; background: transparent; font-size: 1.1rem; }
  .operation-detail-header .order-status { grid-column: 2; justify-self: start; }
  .operation-people > div, .operation-detail-section { padding-inline: 17px; }
  .joined-users-head { display: none; }
  .joined-user-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
  .joined-app { grid-column: 2; }
  .joined-time { grid-column: 2; }
  .joined-activity { grid-column: 3; grid-row: 1 / 4; }
}

@media (max-width: 450px) {
  .operation-metric > span { letter-spacing: 0.05em; }
  .operation-metric > strong { font-size: 1.55rem; }
  .operation-toolbar { align-items: flex-start; flex-direction: column; }
  .operation-toolbar .search-box { width: 100%; max-width: none; }
  .order-row { padding-inline: 12px; }
  .operations-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .operations-tabs button { justify-content: center; padding-inline: 8px; }
  .joined-users-toolbar { align-items: flex-start; flex-direction: column; }
  .joined-users-toolbar .search-box { width: 100%; max-width: none; }
  .joined-user-row { padding-inline: 12px; }
}
/* Workspace assignment controls remain readable on mobile and desktop. */
.report-intro { margin: 20px 0; }
.report-intro h2 { margin-bottom: 8px; }
.report-intro p, .report-note { color: var(--muted); line-height: 1.6; }
.report-note { font-size: .85rem; margin: 12px 0; }
.report-table-scroll { overflow-x: auto; background: white; border: 1px solid #dce4e1; border-radius: 14px; }
.report-table { width: 100%; border-collapse: collapse; min-width: 760px; text-align: left; }
.report-table th, .report-table td { padding: 14px; border-bottom: 1px solid #dce4e1; vertical-align: top; }
.report-table th { background: #eff5f2; }
.report-table td { overflow-wrap: anywhere; max-width: 280px; }
.refund-selected { margin-top: 20px; }
.service-tabs { flex-wrap: wrap; gap: 10px; }
.service-section-heading { margin: 18px 0; }
.service-section-heading h2 { margin: 0 0 6px; font-size: 1.3rem; }
.service-section-heading p { color: var(--ink-soft); line-height: 1.6; margin: 0; }
.register-toolbar { padding: 14px 0; gap: 16px; flex-wrap: wrap; }
.register-toolbar select { min-height: 44px; padding: 8px 12px; margin-left: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.service-register { max-width: 100%; max-height: 70vh; }
.service-register table { font-size: .82rem; }
.service-register caption { text-align: left; padding: 16px; font-weight: 700; background: white; }
.service-register th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.service-register td { min-width: 130px; line-height: 1.6; }
.service-register td:first-child { min-width: 60px; }
.service-register tbody tr:nth-child(even) { background: #f7faf8; }
.service-register tbody tr:hover { background: #eef5f2; }
.register-order-detail { margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; background: white; }
.register-order-detail .mobile-back { display: inline-block; border: 1px solid var(--line); border-radius: 8px; background: white; min-width: 44px; min-height: 44px; }
.service-detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 18px; margin: 18px 0; }
.service-detail-grid dt { font-size: .75rem; color: var(--ink-soft); margin-bottom: 6px; }
.service-detail-grid dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; line-height: 1.6; }
.booking-details summary { cursor: pointer; min-height: 44px; font-weight: 700; color: var(--forest); }
.booking-details[open] { width: 280px; }
.booking-details .service-detail-grid { grid-template-columns: 1fr; }
@media(max-width:600px) {
  .register-toolbar { align-items: stretch; flex-direction: column; }
  .register-toolbar .search-box { width: 100%; max-width: none; }
  .register-order-detail { margin-top: 16px; }
}
.customer-navigation { margin: 8px 0 22px; padding: 4px 0; gap: 12px; overflow: visible; }
.customer-navigation button { min-height: 44px; }
.customer-navigation button:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
@media (max-width: 600px) {
  .customer-navigation { gap: 8px; }
  .customer-navigation button { padding: 10px 14px; }
  .customer-navigation .export-button { flex-basis: 100%; margin-left: 0; margin-top: 4px; }
}
.staff-row details { grid-column: 1 / -1; border-top: 1px solid #dce4e1; padding-top: 12px; }
.staff-row summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.staff-row form { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 0; }
.staff-row form label { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.staff-row form input { width: 18px; height: 18px; }
.staff-heading p { max-width: 800px; line-height: 1.6; }
.operations-tabs a { display: inline-flex; align-items: center; text-decoration: none; }
.assignment-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; }
.assignment-presets button { border: 1px solid #cadbd5; border-radius: 8px; padding: 10px 14px; background: white; color: #123c3d; cursor: pointer; }
.delivery-directory { min-width: 0; }
.delivery-main-tabs { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.delivery-order-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 24px 0 16px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.delivery-order-filters label { display: flex; flex-direction: column; gap: 8px; min-width: 145px; font-weight: 600; }
.delivery-order-filters [hidden] { display: none !important; }
.delivery-order-filters select,.delivery-order-filters input { min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: white; color: var(--ink); }
.delivery-order-search { flex: 1 1 260px; }
.delivery-order-counts { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.delivery-order-counts button { min-height: 95px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); cursor: pointer; }
.delivery-order-counts button.active { border: 2px solid var(--forest); background: #e9f3ef; }
.delivery-order-counts strong { display: block; font-size: 1.7rem; margin-top: 12px; }
.delivery-orders .report-table td { max-width: 320px; overflow-wrap: anywhere; }
.delivery-orders .report-table small { display: block; margin-top: 6px; }
.delivery-order-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.delivery-orders .register-order-detail { padding: 24px; }
.delivery-orders .register-order-detail header { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.delivery-orders button { min-height: 44px; }
.delivery-orders button:disabled { opacity: .5; cursor: not-allowed; }
.delivery-orders button:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
@media(max-width:1100px) { .delivery-order-counts { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) {
  .delivery-order-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .delivery-order-filters label,.delivery-order-filters button { flex: 1 1 100%; }
  .delivery-orders .list-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .delivery-orders .register-order-detail { padding: 16px; }
}
.delivery-directory .service-tabs { flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.delivery-directory .report-table td { white-space: nowrap; }
.delivery-profile .detail-header { display: flex; flex-wrap: wrap; gap: 16px; }
.delivery-profile .detail-header > div:nth-child(2) { flex: 1 1 180px; }
.delivery-profile .detail-section { padding: 24px; }
.delivery-profile .decision-actions { flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.delivery-profile .review-confirm { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; line-height: 1.6; }
.delivery-profile .review-confirm input { width: 22px; height: 22px; flex: 0 0 22px; }
.delivery-profile h4 { margin: 0 0 14px; }
.delivery-directory button { min-height: 44px; }
.delivery-directory button:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.delivery-directory button:disabled { opacity: .55; cursor: not-allowed; }
@media(max-width:600px) {
  .delivery-directory .list-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .delivery-directory .search-box { width: 100%; }
  .delivery-profile .detail-section { padding: 18px; }
  .delivery-profile .document-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .delivery-profile .document-name { flex: 1 1 160px; }
  .delivery-profile .decision-actions button { width: 100%; }
}
