:root {
  color-scheme: light;
  --brand: #00636b;
  --brand-dark: #004d54;
  --accent: #ef2b32;
  --ink: #203942;
  --muted: #8297a2;
  --line: #e1e8eb;
  --surface: #fff;
  --page: #f5f7f8;
  --success: #2c8566;
  --error: #be4a50;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; color: var(--ink); background: var(--page); }
button, input { font: inherit; }
button, .button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.16; letter-spacing: -.45px; }
h2 { margin-bottom: 5px; font-size: 17px; }
.muted { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.eyebrow { margin: 0 0 10px; color: #8aa2ad; font-size: 10px; font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; }
.skip-link { position: fixed; top: -50px; left: 16px; z-index: 100; padding: 9px 12px; color: #fff; background: var(--brand); }
.skip-link:focus { top: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 650; text-decoration: none; transition: 150ms ease; }
.button:disabled { cursor: wait; opacity: .62; }
.button-primary { color: #fff; border-color: var(--brand); background: var(--brand); }
.button-primary:hover:not(:disabled) { border-color: var(--brand-dark); background: var(--brand-dark); }
.button-secondary { color: #55747f; border-color: #d3e0e5; background: #fff; }
.button-secondary:hover { border-color: #a9c0c8; background: #f9fbfc; }
.button-danger { color: #fff; border-color: #b73339; background: #b73339; box-shadow: 0 5px 13px #9d2e3426; }
.button-danger:hover:not(:disabled) { border-color: #952a30; background: #952a30; }
.wide { width: 100%; }

/* Login */
.login-topbar { display: flex; align-items: center; min-height: 82px; padding: 12px clamp(20px, 4vw, 58px); color: #fff; background: var(--brand); box-shadow: 0 2px 12px #002b311f; }
.login-brand { display: flex; align-items: center; gap: 13px; }
.login-brand img { width: 48px; height: 48px; object-fit: contain; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font-size: 18px; }
.login-brand span { margin-top: 2px; color: #c7d8da; font-size: 12px; }
.login-main { width: min(1120px, 100%); margin: 0 auto; padding: 38px 20px 70px; }
.login-card { width: min(440px, 100%); margin: 42px auto; padding: 36px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 16px 46px #17363d12; }
.login-mark { display: flex; justify-content: center; margin-bottom: 19px; }
.login-mark img { width: 72px; height: 72px; object-fit: contain; }
form { display: grid; gap: 17px; margin-top: 26px; }
label span, .label { display: block; margin-bottom: 7px; color: #5d7379; font-size: 12px; font-weight: 650; }
input { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #cfdcdf; border-radius: 6px; color: var(--ink); background: #fff; outline: none; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #00444d16; }
.message { min-height: 22px; margin: 14px 0 0; color: var(--error); font-size: 13px; }
.message.info { color: var(--brand); }

/* Application shell */
.mobile-navigation, .mobile-nav-heading, .mobile-menu-backdrop { display: none; }
.app-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--page); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 0 0 16px; color: #43545b; border-right: 1px solid #e2e8ea; background: #f3f5f6; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 15px 18px; color: #fff; background: linear-gradient(135deg, #00545d 0%, #00828b 100%); box-shadow: 0 5px 16px #004d541f; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; margin: 0; border-radius: 13px; background: #ffffffed; box-shadow: 0 6px 18px #003d4326; }
.brand-mark img { width: 46px; height: 46px; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-name { margin-bottom: 5px; color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .65px; white-space: nowrap; }
.brand-name span { color: var(--accent); }
.brand-product { color: #cce5e7; font-size: 8px; font-weight: 750; letter-spacing: 1.25px; text-transform: uppercase; white-space: nowrap; }
.nav-group-label { padding: 22px 24px 9px; color: #9aa8ae; font-size: 9px; font-weight: 750; letter-spacing: 1.45px; text-transform: uppercase; }
.nav-group-label-secondary { margin-top: 10px; padding-top: 12px; }
.main-nav { display: grid; gap: 3px; margin: 0 12px; }
.nav-cluster { display: grid; gap: 0; min-width: 0; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 9px 12px; border: 0; border-radius: 9px; color: #4d5c63; background: transparent; text-align: left; font-size: 13px; transition: color 150ms ease, background 150ms ease; }
.nav-item:hover { color: var(--brand); background: #e9eff1; }
.nav-item.active { position: relative; color: var(--brand); background: #e3f0f1; font-weight: 700; }
.nav-item.active::before { position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--accent); content: ""; }
.nav-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; color: #687a81; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon, .nav-group-toggle[aria-expanded="true"] .nav-icon { color: var(--brand); }
.nav-group-toggle.active-group, .nav-group-toggle[aria-expanded="true"] { color: #263f46; background: #e9eff1; }
.nav-label { flex: 1; }
.nav-chevron { display: grid; place-items: center; margin-left: auto; color: #829198; transition: transform 150ms ease; }
.nav-chevron svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-group-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-submenu { display: grid; gap: 1px; margin: 3px 0 6px 27px; padding: 2px 0 2px 12px; border-left: 1px solid #d4dee1; }
.nav-submenu[hidden] { display: none; }
.nav-subitem { min-height: 36px; padding: 7px 10px; color: #66777e; font-size: 12px; }
.nav-subitem.active { color: var(--brand); background: transparent; }
.nav-subitem.active::before { left: -14px; top: 9px; bottom: 9px; width: 2px; }
.nav-submark { display: none; }
.sidebar-footer { margin-top: auto; padding: 20px 24px 0; color: #8a9ba2; font-size: 9px; line-height: 1.65; }
.sidebar-environment { color: #52686f; font-size: 10px; font-weight: 700; }
.environment-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #8cd2bc; }
.sidebar-footer p { margin: 10px 0 19px; }
.sidebar-version { padding-top: 17px; border-top: 1px solid #dce4e7; }

.main-shell { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: #fffffff5; box-shadow: 0 3px 15px #1639400a; backdrop-filter: blur(10px); }
.breadcrumb { display: flex; gap: 7px; align-items: center; color: #9aabb4; font-size: 12px; }
.breadcrumb strong { color: #657f8b; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.account-pill { padding: 8px 12px; border: 1px solid #d9e5e9; border-radius: 999px; color: var(--brand); background: #f2f8f8; font-size: 10px; font-weight: 700; }
.user-profile { display: flex; align-items: center; gap: 12px; text-align: right; }
.user-profile strong, .user-profile span { display: block; }
.user-profile strong { color: #334f58; font-size: 12px; }
.user-profile span { margin-top: 3px; color: #9aadb6; font-size: 9px; }
.user-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #00636b, #00909a); font-size: 10px; font-weight: 750; box-shadow: 0 5px 12px #00545d21; }
.logout-button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.page-shell { width: min(1500px, 100%); margin: 0 auto; padding: 26px 28px 30px; }
.pilot-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 12px 16px; border: 1px solid #eadfc8; border-radius: 10px; color: #947f59; background: #fffaf0; font-size: 10px; }
.pilot-banner strong { color: #8e7752; font-size: 11px; }
.workspace-view { animation: view-in 160ms ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin: 0 0 22px; }
.page-heading h1 { margin-bottom: 8px; }
.page-heading-meta { min-width: 150px; padding: 3px 0 3px 26px; border-left: 1px solid var(--line); text-align: right; }
.page-heading-meta span, .page-heading-meta strong { display: block; }
.page-heading-meta span { color: #9cadb5; font-size: 9px; }
.page-heading-meta strong { margin-top: 7px; color: #5c7681; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.development-badge { padding: 6px 9px; border-radius: 5px; color: #8b769e; background: #f3eef7; font-size: 10px; font-weight: 700; }
.notice { margin-bottom: 18px; padding: 14px 17px; border: 1px solid #dbe8ec; border-radius: 10px; color: #748c95; background: #fbfdfe; font-size: 11px; line-height: 1.6; }
.notice strong { color: #638490; }
.registry-job-progress { margin: 0 0 18px; padding: 18px 19px; border: 1px solid #cfe0e4; border-radius: 12px; background: linear-gradient(145deg, #fff, #f5fafb); box-shadow: 0 9px 24px #17363d0a; }
.registry-job-progress.is-complete { border-color: #c8e2d7; background: linear-gradient(145deg, #fff, #f1f8f5); }
.registry-job-progress.is-failed { border-color: #efcfd1; background: linear-gradient(145deg, #fff, #fcf3f3); }
.registry-job-progress-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.registry-job-progress-head span { color: #8da0a8; font-size: 8px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.registry-job-progress-head h2 { margin: 5px 0 0; color: #365e69; font-size: 15px; }
.registry-job-agent-status { margin: 7px 0 0; color: #7f9299; font-size: 9px; font-weight: 700; }
.registry-job-agent-status.is-working { color: var(--brand); }
.registry-job-agent-status.is-complete { color: var(--success); }
.registry-job-agent-status.is-failed { color: var(--error); }
.registry-job-progress-head > strong { color: var(--brand); font-size: 24px; font-variant-numeric: tabular-nums; }
.registry-job-progress.is-complete .registry-job-progress-head > strong { color: var(--success); }
.registry-job-progress.is-failed .registry-job-progress-head > strong { color: var(--error); }
.registry-job-progress progress { display: block; width: 100%; height: 13px; margin: 16px 0 14px; accent-color: var(--brand); }
.registry-job-progress.is-complete progress { accent-color: var(--success); }
.registry-job-progress.is-failed progress { accent-color: var(--error); }
.registry-job-progress-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.registry-job-progress-steps span { padding: 8px 9px; border: 1px solid #e0e9ec; border-radius: 8px; color: #93a4ab; background: #fff; font-size: 9px; font-weight: 650; text-align: center; }
.registry-job-progress-steps span.is-current { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 5px 12px #00545d22; }
.registry-job-progress-steps span.is-complete { color: #28745a; border-color: #cce3d9; background: #eaf5f0; }
.registry-job-progress > p { margin: 12px 0 0; color: #748c95; font-size: 10px; font-variant-numeric: tabular-nums; }
.attention-block { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0 0 18px; padding: 17px 19px; border: 1px solid #edc5a8; border-left: 5px solid #d8793b; border-radius: 11px; background: linear-gradient(135deg, #fffaf6, #fff5ec); box-shadow: 0 8px 22px #9a4b1810; }
.attention-block.compact { margin: 0 0 20px; }
.attention-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #d8793b; font-size: 20px; font-weight: 850; }
.attention-copy { min-width: 0; }
.attention-heading { display: flex; align-items: center; gap: 10px; }
.attention-heading h2 { margin: 0; color: #8d4927; font-size: 16px; }
.attention-heading strong { display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 8px; border-radius: 14px; color: #fff; background: #bd5d2e; font-size: 12px; font-variant-numeric: tabular-nums; }
.attention-copy > p { margin: 6px 0 0; color: #93654d; font-size: 11px; line-height: 1.65; }
.attention-copy ul { margin: 8px 0 0; padding-left: 18px; color: #8e6049; font-size: 10px; line-height: 1.7; }
.operation-retry-button { white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stats article { min-height: 108px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px #17363d07; }
.stats span, .stats strong, .stats small { display: block; }
.stats span { color: #788d96; font-size: 11px; }
.stats strong { margin-top: 10px; color: #24424c; font-size: 23px; font-variant-numeric: tabular-nums; }
.stats small { margin-top: 9px; color: #9babb3; font-size: 9px; line-height: 1.5; }
.stats .success strong { color: var(--success); }
.stats .error strong { color: var(--error); }
.overview-stats article:first-child strong, .overview-stats article:nth-child(3) strong { font-size: 17px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 8px 24px #17363d07; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px 15px; }
.panel-heading p { font-size: 10px; }
.workflow-panel { padding-bottom: 20px; }
.workflow-panel > .button { margin-left: 21px; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 8px 21px 22px; padding: 18px 0; border-top: 1px solid #edf2f4; border-bottom: 1px solid #edf2f4; list-style: none; }
.workflow-steps li { display: flex; gap: 13px; }
.workflow-steps b { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px; color: #8ba8b2; background: #eef4f6; font-size: 9px; }
.workflow-steps strong { display: block; color: #5e7d88; font-size: 11px; }
.workflow-steps p { margin: 5px 0 0; color: #9cabb3; font-size: 10px; line-height: 1.5; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.file-row .label { margin-bottom: 4px; }
.file-row strong { overflow-wrap: anywhere; }
.file-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 11px; }
th, td { padding: 13px 14px; border-top: 1px solid #e7edef; text-align: left; vertical-align: top; }
th { color: #607983; background: #f7f9fa; font-weight: 650; white-space: nowrap; }
td { color: #516c76; }
td small { display: block; margin-top: 3px; color: var(--muted); }
th.amount, td.amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-flex; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; }
.badge.ready { color: #1c684e; background: #eaf5f0; }
.badge.blocked { color: #a9252b; background: #faeaea; }
.issues { max-width: 360px; color: var(--error); line-height: 1.45; }
.issues.ok { color: var(--success); }
.registry-edit-button { min-height: 30px; padding: 5px 10px; font-size: 9px; white-space: nowrap; }
.registry-corrected-mark { display: block; margin-top: 6px; color: #9a6e31; font-size: 8px; font-weight: 700; }

.empty-module { min-height: 270px; padding: 48px 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 8px 24px #17363d07; }
.empty-module .module-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 17px; border-radius: 12px; color: #7899a4; background: #edf4f6; font-size: 25px; }
.empty-module h2 { color: #5c7a85; font-size: 18px; }
.empty-module p { max-width: 660px; margin: 8px auto 20px; color: #91a4ad; font-size: 12px; line-height: 1.7; }
.cargo-notice b { color: #526f79; }
.cargo-ready-panel { display: flex; align-items: center; gap: 16px; padding: 20px; }
.cargo-ready-panel > div:nth-child(2) { flex: 1; }
.cargo-ready-panel h2 { margin: 0 0 5px; color: #426871; }
.cargo-ready-panel p { margin: 0; color: #8ca0a8; font-size: 11px; }
.cargo-ready-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--success); font-size: 21px; font-weight: 700; }
.cargo-flow { display: flex; justify-content: center; gap: 12px; margin: 24px auto 0; padding: 0; list-style: none; }
.cargo-flow li { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #e1eaed; border-radius: 9px; color: #6e8790; background: #f8fafb; font-size: 10px; }
.cargo-flow b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; color: var(--brand); background: #e6f1f2; font-size: 9px; }
.cargo-history { margin-top: 18px; padding-bottom: 20px; }
.cargo-history-heading { align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #edf2f4; }
.cargo-history-heading h2 { margin-bottom: 6px; color: #42636d; }
.cargo-history-heading .eyebrow { margin-bottom: 7px; }
.cargo-history-heading .muted { max-width: 680px; font-size: 10px; }
.cargo-history-status { min-height: 17px; margin: 12px 21px 0; color: #8297a2; font-size: 10px; }
.cargo-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 10px 21px 2px; }
.cargo-history-card { position: relative; display: flex; min-width: 0; min-height: 154px; padding: 17px; border: 1px solid #dfe8eb; border-radius: 11px; color: inherit; background: linear-gradient(160deg, #fff 15%, #f9fbfc 100%); text-align: left; box-shadow: 0 7px 18px #17363d08; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.cargo-history-card:hover { border-color: #a9c7ce; box-shadow: 0 12px 25px #17363d13; transform: translateY(-2px); }
.cargo-history-card:focus-visible { outline: 3px solid #00636b24; outline-offset: 2px; }
.cargo-history-card-main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.cargo-history-card-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 14px; }
.cargo-history-date { color: #8da0a8; font-size: 9px; font-weight: 650; }
.cargo-history-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #28745a; background: #e8f4ef; font-size: 8px; font-weight: 750; white-space: nowrap; }
.cargo-history-badge.attention { color: #a56b35; background: #fbf0e3; }
.cargo-history-card h3 { margin: 0 0 6px; overflow: hidden; color: #42636d; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cargo-history-period { margin: 0 0 15px; color: #76909a; font-size: 10px; }
.cargo-history-meta { display: flex; gap: 13px; margin-top: auto; padding-top: 12px; border-top: 1px solid #ebf0f2; color: #8b9ea6; font-size: 9px; }
.cargo-history-meta strong { color: #58727b; font-size: 10px; }
.cargo-history-arrow { align-self: center; margin-left: 9px; color: #83a3ad; font-size: 19px; }
.cargo-history-empty { margin: 10px 21px 2px; padding: 28px 20px; border: 1px dashed #d7e3e7; border-radius: 11px; color: #8298a1; background: #fbfcfd; text-align: center; }
.cargo-history-empty > span { display: block; margin-bottom: 9px; color: #8cadb7; font-size: 24px; }
.cargo-history-empty strong { display: block; color: #587680; font-size: 13px; }
.cargo-history-empty p { margin: 6px 0 0; font-size: 10px; }
body.modal-open { overflow: hidden; }
.history-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; background: #102f368f; backdrop-filter: blur(5px); }
.history-modal { position: relative; width: min(540px, 100%); max-height: calc(100vh - 44px); padding: 29px; overflow-y: auto; border: 1px solid #dce7ea; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px #08272f42; animation: modal-in 170ms ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: none; } }
.history-modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; color: #769099; background: #f1f5f6; font-size: 22px; }
.history-modal-mark { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 17px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #2d8567, #42a27f); font-size: 22px; box-shadow: 0 9px 20px #2c856629; }
.history-modal h2 { margin-bottom: 5px; color: #294b55; font-size: 22px; }
.history-modal-file { margin: 0 42px 21px 0; overflow-wrap: anywhere; color: #81959d; font-size: 11px; }
.history-modal-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #e2eaed; border-radius: 11px; overflow: hidden; }
.history-modal-details div { min-width: 0; padding: 13px 15px; border-bottom: 1px solid #e7edef; }
.history-modal-details div:nth-child(odd) { border-right: 1px solid #e7edef; }
.history-modal-details div:nth-last-child(-n+2) { border-bottom: 0; }
.history-modal-details dt { margin-bottom: 5px; color: #9aabb2; font-size: 8px; font-weight: 750; letter-spacing: .7px; text-transform: uppercase; }
.history-modal-details dd { margin: 0; overflow-wrap: anywhere; color: #4f6972; font-size: 11px; font-weight: 650; }
.history-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 21px; }
.cargo-review { margin-top: 18px; overflow: visible; }
.cargo-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 21px; border-bottom: 1px solid #e8eef0; }
.cargo-review-heading h2 { margin: 0 0 6px; color: #365e69; font-size: 19px; }
.cargo-review-heading .eyebrow { margin-bottom: 6px; }
.cargo-review-progress { flex: 0 0 auto; min-width: 116px; padding: 12px 15px; border: 1px solid #dce8eb; border-radius: 10px; background: #f8fbfb; text-align: right; }
.cargo-review-progress strong, .cargo-review-progress span { display: block; }
.cargo-review-progress strong { color: var(--brand); font-size: 19px; font-variant-numeric: tabular-nums; }
.cargo-review-progress span { margin-top: 4px; color: #8ea2aa; font-size: 8px; }
.cargo-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 21px; border-bottom: 1px solid #edf2f4; background: #fbfcfd; }
.cargo-review-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.review-filter { padding: 8px 10px; border: 1px solid #dce6e9; border-radius: 8px; color: #708890; background: #fff; font-size: 9px; font-weight: 650; }
.review-filter span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 5px; padding: 0 5px; border-radius: 999px; color: #769099; background: #eef3f5; font-size: 8px; }
.review-filter.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.review-filter.active span { color: var(--brand); background: #fff; }
.cargo-review-status { min-height: 18px; margin: 12px 21px 0; color: #7d949d; font-size: 10px; }
.cargo-review-list { display: grid; gap: 10px; padding: 10px 21px 21px; }
.review-item { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(420px, .95fr) minmax(235px, auto); align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid #dfe8eb; border-radius: 10px; background: #fff; }
.review-item.is-approved { border-left: 4px solid #4c9c7a; }
.review-item.is-corrected { border-left: 4px solid #d7964e; }
.review-item-id { display: inline-flex; margin-right: 7px; padding: 3px 6px; border-radius: 5px; color: #567780; background: #edf4f6; font-size: 8px; font-weight: 750; }
.review-item h3 { display: inline; color: #365b66; font-size: 12px; }
.review-item-driver { margin: 7px 0 0; color: #69828b; font-size: 10px; }
.review-item-reason { margin: 9px 0 0; color: #a05255; font-size: 10px; line-height: 1.55; }
.review-item-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; align-content: center; }
.review-item-figures span { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 9px; border-radius: 7px; color: #8a9ca3; background: #f6f8f9; font-size: 8px; white-space: nowrap; }
.review-item-figures strong { display: inline; margin: 0; color: #526e77; font-size: 10px; font-variant-numeric: tabular-nums; }
.review-item-actions { display: grid; min-width: 235px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 6px; }
.review-item-actions .button { min-height: 33px; padding: 7px 10px; font-size: 9px; }
.button-review-edit { color: #956128; border: 1px solid #e7c99d; background: #fff7eb; }
.button-review-edit:hover { color: #7c4e1f; border-color: #d9ae70; background: #faecd9; }
.button-review-approve { color: #fff; border: 1px solid #3d9072; background: #3d9072; box-shadow: 0 5px 13px #3d907226; }
.button-review-approve:hover { border-color: #2f785f; background: #2f785f; }
.button-review-approve:disabled { color: #6d8d80; border-color: #cce3d9; background: #e8f4ef; box-shadow: none; }
.review-state { display: inline-flex; grid-column: 1 / -1; align-self: center; justify-self: center; justify-content: center; padding: 6px 8px; border-radius: 7px; font-size: 8px; font-weight: 750; }
.review-state.pending { color: #a36b35; background: #fbf0e3; }
.review-state.approved { color: #28745a; background: #e8f4ef; }
.review-state.corrected { color: #956128; background: #faecd9; }
.review-decision-note { grid-column: 1 / -1; max-width: 235px; justify-self: center; color: #8599a1; font-size: 8px; line-height: 1.45; text-align: center; }
.cargo-review-empty { margin: 10px 21px 21px; padding: 24px; border: 1px dashed #d7e3e7; border-radius: 10px; color: #8298a1; text-align: center; }
.cargo-review-empty strong, .cargo-review-empty span { display: block; }
.cargo-review-empty span { margin-top: 5px; font-size: 9px; }
.cargo-review-export { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 21px 21px; padding: 16px; border: 1px solid #cce3d9; border-radius: 10px; background: #f0f8f4; }
.cargo-review-export strong, .cargo-review-export span { display: block; }
.cargo-review-export strong { color: #28745a; font-size: 12px; }
.cargo-review-export span { margin-top: 5px; color: #6d8d80; font-size: 9px; }
.review-modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 22px; background: #102f3699; backdrop-filter: blur(5px); }
.review-modal { position: relative; width: min(900px, 100%); max-height: calc(100vh - 44px); padding: 27px; overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px #08272f4d; }
.review-modal h2 { margin: 0 45px 7px 0; color: #294b55; font-size: 22px; }
.review-modal-reason { margin: 0 45px 20px 0; padding: 11px 13px; border-left: 3px solid #d49a5e; color: #865b3f; background: #fdf7f0; font-size: 10px; line-height: 1.55; }
.review-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.review-form-grid label, .review-comment-field { display: block; }
.review-form-grid label span, .review-comment-field span { display: block; margin-bottom: 6px; color: #728891; font-size: 9px; font-weight: 650; }
.review-form-grid input, .review-form-grid select, .review-comment-field textarea { width: 100%; border: 1px solid #d6e1e4; border-radius: 8px; color: #36545e; background: #fff; font: inherit; font-size: 11px; }
.review-form-grid input { min-height: 37px; padding: 8px 10px; }
.review-form-grid select { min-height: 37px; padding: 8px 10px; }
.review-comment-field { margin-top: 16px; }
.review-comment-field textarea { padding: 10px; resize: vertical; }
.review-form-grid input:focus, .review-form-grid select:focus, .review-comment-field textarea:focus { outline: 3px solid #00636b20; border-color: #77aab1; }
.registry-edit-modal { width: min(790px, 100%); }
.registry-execute-modal { width: min(620px, 100%); }
.registry-execute-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 17px; }
.registry-execute-summary div { padding: 16px; border: 1px solid #e0e8eb; border-radius: 10px; background: #f9fbfc; }
.registry-execute-summary span, .registry-execute-summary strong { display: block; }
.registry-execute-summary span { color: #859ba4; font-size: 9px; }
.registry-execute-summary strong { margin-top: 7px; color: #a32f35; font-size: 19px; font-variant-numeric: tabular-nums; }
.registry-execute-warning { border-color: #efd5d6; color: #956368; background: #fff8f8; }
.registry-execute-warning strong { color: #a53238; }
.registry-execute-warning p { margin: 7px 0 0; }
.registry-confirm-field strong { display: block; margin-bottom: 9px; color: #8d3438; font-size: 13px; letter-spacing: .3px; overflow-wrap: anywhere; }
.registry-confirm-field input { text-transform: uppercase; }
.parks-view { --park-positive: #17755f; }
.parks-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: 190px; padding: 34px 38px; overflow: hidden; color: #fff; border-radius: 6px; background: linear-gradient(125deg, #042f34 0%, #075058 68%, #0d6268 100%); box-shadow: var(--brand-shadow); }
.parks-hero::after { position: absolute; right: -52px; top: -130px; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.016); content: ""; }
.parks-hero > * { position: relative; z-index: 1; }
.parks-hero .eyebrow { color: #91d6d2; }
.parks-hero h1 { margin-bottom: 12px; color: #fff; font-size: clamp(34px, 4vw, 54px); }
.parks-hero p:not(.eyebrow) { max-width: 690px; margin: 0; color: rgba(255,255,255,.63); line-height: 1.7; }
.parks-filter { display: grid; justify-items: end; gap: 8px; min-width: 430px; }
.parks-period { display: flex; gap: 6px; padding: 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: rgba(0,0,0,.12); }
.parks-period button { min-height: 36px; padding: 8px 13px; border: 0; border-radius: 3px; color: rgba(255,255,255,.58); background: transparent; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.parks-period button:hover, .parks-period button.is-active { color: #fff; background: var(--accent); }
.parks-custom-period { display: grid; grid-template-columns: repeat(2, minmax(125px, 1fr)) auto; gap: 7px; width: 100%; padding: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: rgba(0,0,0,.13); }
.parks-custom-period[hidden] { display: none; }
.parks-custom-period label { display: grid; gap: 4px; color: rgba(255,255,255,.55); font-size: 8px; font-weight: 750; letter-spacing: .55px; text-transform: uppercase; }
.parks-custom-period input { min-width: 0; min-height: 35px; padding: 7px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 3px; color: var(--brand-dark); background: rgba(255,255,255,.94); font: inherit; font-size: 10px; }
.parks-custom-period button { align-self: end; min-height: 35px; padding: 8px 12px; border: 0; border-radius: 3px; color: #fff; background: var(--accent); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.parks-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; }
.parks-filter-actions p { min-height: 13px; margin: 0 auto 0 0; color: #ffc8cb; font-size: 8px; }
.parks-filter-actions .button { min-height: 32px; padding: 7px 11px; border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.07); }
.parks-view > .notice { margin: 13px 0 0; }
.parks-view > .message { min-height: 24px; margin: 10px 0 2px; color: #73878d; font-size: 10px; }
.parks-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--brand-shadow); }
.parks-summary article { position: relative; min-width: 0; padding: 20px 21px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.parks-summary article:nth-child(4n) { border-right: 0; }
.parks-summary article:nth-last-child(-n+4) { border-bottom: 0; }
.parks-summary span, .parks-summary strong, .parks-summary small { display: block; }
.parks-summary span { color: #7d9196; font-size: 8px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.parks-summary strong { margin-top: 9px; color: var(--brand-dark); font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.parks-summary small { margin-top: 7px; color: #96a5a9; font-size: 8px; line-height: 1.45; }
.parks-comparison { margin-bottom: 20px; }
.parks-comparison table { min-width: 1120px; }
.parks-comparison tbody tr { cursor: default; }
.parks-comparison td:first-child strong, .parks-comparison td:first-child small { display: block; }
.parks-comparison td:first-child strong { color: #355962; white-space: nowrap; }
.parks-comparison td:first-child small { margin-top: 3px; color: #91a3a8; }
.parks-comparison .park-unavailable td { color: #9b7d7f; background: #fff7f7; }
.parks-comparison .park-partial td { background: #fffdf7; }
.parks-empty { display: grid; justify-items: center; gap: 5px; padding: 34px; color: #8ca0a6; text-align: center; }
.parks-empty strong { color: #52737c; font-size: 14px; }
.parks-empty span { font-size: 10px; }
.parks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.park-card { padding: 21px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 6px; background: #fff; box-shadow: 0 8px 24px #17363d07; }
.park-card.is-partial { border-top-color: #d29b30; }
.park-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.park-number { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 4px; color: #5b7e87; background: #edf4f4; font-size: 9px; font-weight: 800; }
.park-card h2 { margin: 0; color: #365c65; font-size: 15px; }
.park-card-id { margin: 5px 0 0; color: #98a8ac; font-size: 9px; }
.park-source-status { margin: 12px 0 0; color: #7d9196; font-size: 8px; line-height: 1.5; }
.park-card-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 19px 0 15px; padding: 14px 0; border-block: 1px solid #e6eeef; }
.park-card-primary span, .park-card-primary strong, .park-card-primary small { display: block; }
.park-card-primary span { color: #8da0a4; font-size: 8px; text-transform: uppercase; }
.park-card-primary strong { margin-top: 6px; color: var(--brand-dark); font-size: 15px; font-variant-numeric: tabular-nums; }
.park-card-primary small { margin-top: 5px; color: #91a3a7; font-size: 7px; line-height: 1.45; }
.park-card-finance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 15px; border: 1px solid #e6eeef; background: #e6eeef; }
.park-card-finance > div { min-width: 0; padding: 11px 10px; background: #fff; }
.park-card-finance span, .park-card-finance strong, .park-card-finance small { display: block; }
.park-card-finance span { min-height: 22px; color: #80969b; font-size: 7px; font-weight: 750; line-height: 1.4; text-transform: uppercase; }
.park-card-finance strong { margin-top: 5px; color: #315b64; font-size: 12px; font-variant-numeric: tabular-nums; }
.park-card-finance small { margin-top: 5px; color: #98a8ac; font-size: 7px; line-height: 1.4; }
.park-card-finance .is-deduction strong { color: #9a584f; }
.parks-finance-table { min-width: 1900px; }
.park-card-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.park-card-people div { padding: 9px 7px; background: #f5f8f8; text-align: center; }
.park-card-people span, .park-card-people strong { display: block; }
.park-card-people strong { color: #476a72; font-size: 13px; }
.park-card-people span { margin-top: 4px; color: #91a3a7; font-size: 7px; text-transform: uppercase; }
.park-card footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf2f4; color: #849ba1; font-size: 8px; }
.park-card footer b { color: var(--park-positive); }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.help-grid article { display: flex; gap: 15px; padding: 21px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.help-grid b { color: #9aafb8; font-size: 10px; }
.help-grid h2, .help-grid h3 { margin: 0 0 5px; color: #597984; font-size: 14px; }
.help-grid p { margin: 0; color: #94a6ae; font-size: 11px; line-height: 1.65; }
.help-notice { margin-top: 18px; }
.help-agent-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.help-agent-card { position: relative; display: flex; align-items: flex-start; gap: 17px; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 13px; color: #58727c; background: #fff; text-align: left; box-shadow: 0 8px 24px #17363d07; transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease; }
.help-agent-card:hover { border-color: #a8c7ce; box-shadow: 0 12px 26px #17363d12; }
.help-agent-card.is-active { border-color: #8db7bd; background: #f4fafa; box-shadow: 0 0 0 2px #00636b0b; }
.help-agent-card.is-active::before { position: absolute; left: -1px; top: 23px; bottom: 23px; width: 3px; border-radius: 3px; background: var(--accent); content: ""; }
.help-agent-card:focus-visible, .help-faq summary:focus-visible, .help-common summary:focus-visible { outline: 3px solid #00636b30; outline-offset: 3px; }
.help-agent-icon { display: grid; place-items: center; flex: 0 0 auto; width: 47px; height: 47px; border: 1px solid #e0ebed; border-radius: 12px; color: #398590; background: #edf6f7; }
.help-agent-icon.cargo { color: #3a8a70; border-color: #dfeee8; background: #eff8f3; }
.help-agent-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.help-agent-copy { display: flex; min-width: 0; flex-direction: column; }
.help-agent-category { margin-bottom: 6px; color: #8ca4ad; font-size: 8px; font-weight: 750; letter-spacing: .9px; text-transform: uppercase; }
.help-agent-copy > strong { color: #365862; font-size: 17px; line-height: 1.35; }
.help-agent-copy > span:nth-child(3) { max-width: 450px; margin-top: 8px; color: #859aa3; font-size: 11px; line-height: 1.7; }
.help-agent-action { display: flex; align-items: center; gap: 11px; margin-top: 17px; color: var(--brand); font-size: 10px; font-weight: 700; }
.help-agent-action b { font-size: 16px; }
.help-selection-note { margin: 16px 0 22px; color: #879ca5; font-size: 11px; }
.help-agent-panel { margin: 0 0 24px; animation: view-in 160ms ease-out; }
.help-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.help-section-heading .eyebrow { margin-bottom: 5px; }
.help-section-heading h2 { margin: 0; color: #365862; font-size: 21px; }
.help-faq .panel-heading h3 { margin: 0 0 5px; color: #486975; font-size: 16px; }
.help-faq details, .help-common details { border-top: 1px solid #e9eef0; }
.help-faq summary, .help-common summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 21px; color: #58747f; font-size: 12px; font-weight: 650; list-style: none; cursor: pointer; }
.help-faq summary::-webkit-details-marker, .help-common summary::-webkit-details-marker { display: none; }
.help-faq summary::after, .help-common summary::after { flex: 0 0 auto; color: #92abb4; font-size: 18px; font-weight: 400; content: "+"; }
.help-faq details[open] summary, .help-common details[open] summary { color: var(--brand); background: #f7fbfc; }
.help-faq details[open] summary::after, .help-common details[open] summary::after { content: "−"; }
.help-faq details > p, .help-common details > p { max-width: 1020px; margin: 0; padding: 0 21px 20px; color: #80969f; background: #f7fbfc; font-size: 11px; line-height: 1.8; }
.help-common { margin-top: 22px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 24px; color: #a7b3b9; font-size: 9px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.payout-nav-label { display: grid; gap: 3px; }
.payout-nav-label small { color: #79949c; font-size: 8px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; }
.payout-source-label { padding: 9px 13px; border: 1px solid #cddfe1; border-radius: 999px; color: var(--brand); background: #eef7f6; font-size: 10px; font-weight: 700; white-space: nowrap; }
.payout-availability { color: #63818c; background: #f5fafb; }
.payout-upload-panel { display: block; margin-top: 0; overflow: visible; }
.payout-upload-panel .panel-heading { padding-bottom: 18px; }
.payout-file-picker { display: grid; justify-items: center; gap: 10px; margin: 0 21px 21px; padding: 31px 20px; border: 1px dashed #b6ced4; border-radius: 12px; background: linear-gradient(145deg, #f4fafb, #fcfdfd); text-align: center; cursor: pointer; }
.payout-file-picker .module-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 3px; border-radius: 12px; color: #568592; background: #e5f1f3; font-size: 24px; }
.payout-file-picker strong { max-width: 100%; color: #416d78; font-size: 14px; overflow-wrap: anywhere; }
.payout-file-picker > span:not(.module-icon) { color: #8ca2aa; font-size: 10px; }
.payout-file-picker input { max-width: 100%; width: auto; margin-top: 5px; border: none; background: transparent; color: #688692; font-size: 10px; }
.payout-file-picker input::file-selector-button { margin-right: 12px; padding: 9px 13px; border: 1px solid #cadfe4; border-radius: 7px; color: #426d79; background: #fff; font-family: inherit; font-size: 10px; cursor: pointer; }
.payout-transfer, .payout-stage-progress { margin: 0 21px 21px; padding: 16px; border: 1px solid #dce8ea; border-radius: 10px; background: #f6fafb; color: #416d78; }
.payout-stage-progress { margin: 18px 0; }
.payout-transfer > div, .payout-stage-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.payout-transfer strong, .payout-stage-progress h2 { margin: 0; font-size: 13px; }
.payout-transfer progress, .payout-stage-progress progress { display: block; width: 100%; height: 12px; margin-top: 13px; accent-color: var(--brand); }
.payout-transfer p, .payout-stage-progress p, #payout-stage-steps { margin: 10px 0 0; color: #627f8b; font-size: 11px; line-height: 1.5; }
.payout-period-picker { margin: 0 21px 24px; padding: 18px; border: 1px solid #dce8ea; border-radius: 12px; background: #fbfdfd; }
.payout-period-picker-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.payout-period-picker-heading h3 { margin: 0; color: #456f7b; font-size: 13px; }
.payout-period-picker-heading p { margin: 6px 0 0; color: #879da6; font-size: 10px; }
.payout-period-picker-heading > span { padding: 5px 9px; border-radius: 999px; color: #537d87; background: #eaf4f5; font-size: 9px; white-space: nowrap; }
.payout-period-modes { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; margin-top: 17px; }
.payout-period-mode { display: grid; gap: 6px; min-height: 78px; padding: 15px; border: 1px solid #d3e1e4; border-radius: 10px; color: #718b94; background: #fff; text-align: left; cursor: pointer; }
.payout-period-mode strong { color: #4a727d; font-size: 11px; }
.payout-period-mode span { font-size: 9px; line-height: 1.55; }
.payout-period-mode:hover, .payout-period-mode.is-selected { border-color: #69a39f; background: #eef8f5; box-shadow: 0 5px 16px #1b6c6410; }
.payout-standard-period { margin: 17px 0 0; }
.payout-standard-period label { display: grid; gap: 7px; max-width: 430px; color: #6d8790; font-size: 9px; }
.payout-standard-period select { min-height: 38px; padding: 8px 10px; border: 1px solid #d1e0e3; border-radius: 8px; color: #496f79; background: #fff; font: inherit; }
.payout-period-controls { display: grid; grid-template-columns: repeat(2, minmax(180px, 280px)); gap: 14px; margin: 17px 0; }
.payout-period-controls label { display: grid; gap: 7px; color: #6d8790; font-size: 9px; }
.payout-period-controls select { min-height: 38px; padding: 8px 10px; border: 1px solid #d1e0e3; border-radius: 8px; color: #496f79; background: #fff; font: inherit; }
.payout-calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.payout-calendar-month { padding: 13px; border: 1px solid #e1eaec; border-radius: 10px; background: #fff; }
.payout-calendar-month h4 { margin: 0 0 11px; color: #5b7c86; font-size: 10px; font-weight: 700; text-transform: capitalize; }
.payout-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(25px, 1fr)); gap: 5px; }
.payout-calendar-weekday { color: #9aabb1; font-size: 8px; text-align: center; }
.payout-calendar-empty { min-height: 28px; }
.payout-calendar-day { min-height: 30px; padding: 0; border: 1px solid #cfdee1; border-radius: 7px; color: #4d7580; background: #f7fbfb; font-size: 9px; cursor: pointer; }
.payout-calendar-day:hover:not(:disabled) { border-color: #74aab3; background: #edf7f6; }
.payout-calendar-day:disabled { border-color: transparent; color: #c8d1d4; background: transparent; cursor: default; }
.payout-calendar-day.is-between { border-color: #c5dfdb; background: #edf7f3; }
.payout-calendar-day.is-start, .payout-calendar-day.is-end { border-color: #3c877f; color: #fff; background: #4f948b; font-weight: 700; }
.payout-calendar-hint { margin: 13px 0 0; color: #8ca1a8; font-size: 9px; line-height: 1.6; }
.payout-form-fields { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1fr); align-items: start; gap: 25px; margin: 0 21px 22px; }
.payout-form-fields label, .payout-recheck-form label, .payout-run-picker label, .payout-decision-fields label { display: grid; gap: 8px; margin: 0; color: #647f89; font-size: 10px; }
.payout-form-fields input, .payout-recheck-form input { max-width: 280px; }
.payout-period-preview { padding: 12px 16px; border-left: 2px solid #c8dde1; }
.payout-period-preview > span, .payout-period-preview strong, .payout-period-preview small { display: block; }
.payout-period-preview > span { color: #8da3ab; font-size: 9px; }
.payout-period-preview strong { margin-top: 8px; color: #486f7a; font-size: 13px; }
.payout-period-preview small { margin-top: 8px; color: #879da6; font-size: 10px; line-height: 1.6; }
.payout-confirm-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 21px 20px; color: #738e98; font-size: 11px; line-height: 1.6; cursor: pointer; }
.payout-confirm-check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); }
.payout-confirm-check strong { color: #47717d; }
.payout-confirm-check > span { margin: 0; font-size: 11px; font-weight: 400; }
.payout-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 21px; border-top: 1px solid #e6edef; border-radius: 0 0 12px 12px; background: #fafcfd; }
.payout-form-footer p { max-width: 650px; margin: 0; color: #8da1a9; font-size: 10px; line-height: 1.7; }
.payout-workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.payout-workflow li { position: relative; display: grid; gap: 8px; padding: 15px 13px 15px 46px; color: #78909b; }
.payout-workflow b { position: absolute; left: 8px; top: 15px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #7197a2; background: #e6f0f3; font-size: 8px; }
.payout-workflow strong { color: #567885; font-size: 11px; }
.payout-workflow span { color: #94a7af; font-size: 9px; }
.payout-run-picker { display: flex; align-items: center; gap: 25px; margin-bottom: 18px; padding: 16px 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.payout-run-picker label { flex: 0 1 370px; min-width: 200px; }
.payout-run-meta { color: #8a9ea7; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.payout-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.payout-history-card { min-width: 0; padding: 19px; border: 1px solid #dde7e9; border-radius: 12px; color: #627f8b; background: linear-gradient(150deg, #fff, #fafcfd); text-align: left; box-shadow: 0 8px 24px #17363d07; transition: border-color 150ms ease, box-shadow 150ms ease; }
.payout-history-card:hover, .payout-history-card.is-selected { border-color: #77aeb7; box-shadow: 0 7px 22px #00515b12; }
.payout-history-card.is-selected { background: #f2f9f9; }
.payout-history-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: #91a5ad; font-size: 9px; }
.payout-history-card h3 { margin: 0 0 7px; color: #416875; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.payout-history-period { margin: 0 0 18px; color: #879da6; font-size: 10px; }
.payout-history-total { padding-top: 13px; border-top: 1px solid #e1eaed; color: #346b65; font-size: 12px; font-weight: 650; }
.payout-history-card > small { display: block; margin-top: 8px; color: #8aa2ac; font-size: 9px; }
.payout-files-panel, .payout-recipients-panel { margin-top: 18px; }
.payout-downloads { display: flex; flex-wrap: wrap; gap: 9px; padding: 4px 21px 21px; }
.payout-download { min-height: 36px; font-size: 10px; }
.payout-table { min-width: 780px; }
.payout-table-note { margin: 0; padding: 14px 21px; color: #91a4ad; font-size: 9px; }
.payout-search-label { flex: 0 1 245px; }
.payout-search-label input { min-height: 36px; padding: 9px 11px; font-size: 10px; }
.payout-review-list { display: grid; gap: 10px; padding: 12px 21px 21px; }
.payout-review-item { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(160px, .6fr) minmax(190px, .65fr); gap: 20px; align-items: center; padding: 16px; border: 1px solid #dfe8eb; border-radius: 10px; background: #fff; }
.payout-review-item.is-saved { border-left: 4px solid #4c9c7a; }
.payout-review-item.is-unresolved { border-left: 4px solid #d79854; }
.payout-issue-label { display: inline-flex; margin-bottom: 7px; padding: 3px 6px; border-radius: 5px; color: #758f9b; background: #eef4f6; font-size: 8px; }
.payout-review-item h3 { display: block; margin: 0 0 5px; color: #3e6673; font-size: 13px; }
.payout-contractor-id { color: #8ca4ae; font-size: 9px; overflow-wrap: anywhere; }
.payout-issue-text { margin: 8px 0 0; color: #a2645e; font-size: 10px; line-height: 1.65; }
.payout-required-action { margin: 7px 0 0; color: #8299a2; font-size: 9px; line-height: 1.65; }
.payout-review-item-facts { display: grid; gap: 6px; padding: 12px; border-radius: 8px; background: #f6f9fa; }
.payout-review-item-facts span { color: #8c9fa7; font-size: 8px; }
.payout-review-item-facts strong { color: #5a7a86; font-size: 10px; overflow-wrap: anywhere; }
.payout-review-item-facts .payout-case-amount { margin-top: 2px; font-size: 13px; font-variant-numeric: tabular-nums; }
.payout-review-item-actions { display: grid; justify-items: stretch; gap: 9px; }
.payout-review-item-actions .badge { justify-self: start; }
.payout-review-item-actions strong { color: #667f88; font-size: 9px; line-height: 1.6; }
.payout-review-item-actions small { color: #91a4ad; font-size: 8px; line-height: 1.6; }
.payout-review-item-actions .button { min-height: 34px; font-size: 10px; }
.payout-recheck-form { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(200px, 1fr) auto; align-items: center; gap: 22px; margin-top: 0; padding: 20px 21px; border-top: 1px solid #e2eaed; background: #fafcfd; }
.payout-view .button:disabled { cursor: not-allowed; }
.payout-recheck-form p { margin: 0; color: #8ba2ac; font-size: 10px; line-height: 1.7; }
.payout-gate-list { display: grid; gap: 0; margin: 0; padding: 0 21px 16px; list-style: none; }
.payout-gate-list li { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid #edf2f4; color: #7894a0; font-size: 11px; }
.payout-gate-icon { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #b68b58; background: #fcf3e8; font-weight: 800; }
.is-passed .payout-gate-icon { color: #3b9270; background: #eaf5ef; }
.payout-gate-list small { margin-left: auto; color: #97a7ad; font-size: 9px; white-space: nowrap; }
.payout-gate-list .is-passed small { color: #528d77; }
.payout-sequence-notice { margin: 0 21px 18px; border-color: #dae7df; background: #f5faf6; }
.payout-sequence-notice strong { color: #668773; }
.payout-sequence-notice p, .payout-writeoff-panel .notice p { margin: 8px 0 0; font-size: 11px; line-height: 1.7; }
.payout-document-status { margin: 0 21px 18px; padding: 13px 16px; border: 1px solid #e4ebee; border-radius: 9px; background: #fbfcfd; }
.payout-document-status strong { color: #5a7f8e; font-size: 12px; }
.payout-document-status p { margin: 7px 0 0; color: #8da2ab; font-size: 10px; line-height: 1.7; }
.payout-document-action { display: grid; justify-items: start; gap: 14px; padding: 0 21px 21px; }
.payout-document-action .payout-confirm-check { margin: 0; }
.payout-document-action > p { margin: 0; font-size: 10px; line-height: 1.65; }
.payout-writeoff-panel { padding: 24px; }
.payout-writeoff-heading { display: flex; gap: 17px; align-items: center; }
.payout-writeoff-symbol { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px; color: #588d97; background: #e8f4f5; font-size: 27px; }
.payout-writeoff-heading h2 { margin-bottom: 6px; color: #476e7a; font-size: 20px; }
.payout-writeoff-heading p:not(.eyebrow) { margin: 0; color: #8da5af; font-size: 11px; line-height: 1.6; }
.payout-writeoff-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 23px 0; padding: 19px 0; border-top: 1px solid #e6edef; border-bottom: 1px solid #e6edef; }
.payout-writeoff-figures span, .payout-writeoff-figures strong, .payout-writeoff-figures small { display: block; }
.payout-writeoff-figures span { color: #8aa1aa; font-size: 9px; }
.payout-writeoff-figures strong { margin-top: 9px; color: #42756e; font-size: 19px; font-variant-numeric: tabular-nums; }
.payout-writeoff-figures div:last-child strong { font-size: 14px; }
.payout-writeoff-figures small { margin-top: 5px; color: #8aa1aa; font-size: 9px; }
.payout-writeoff-note { margin: 0 0 21px; color: #8ca3ac; font-size: 11px; line-height: 1.75; }
.payout-review-modal { width: min(760px, 100%); }
.payout-machine-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 17px 0 0; padding: 0; border: 1px solid #e2eaed; border-radius: 10px; overflow: hidden; background: #f9fbfc; }
.payout-machine-fields div { padding: 11px 14px; border-bottom: 1px solid #e7edef; }
.payout-machine-fields div:nth-child(odd) { border-right: 1px solid #e7edef; }
.payout-machine-fields div:nth-last-child(-n+2) { border-bottom: 0; }
.payout-machine-fields dt { margin-bottom: 6px; color: #90a2ab; font-size: 9px; }
.payout-machine-fields dd { margin: 0; color: #597b88; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.payout-machine-note { margin: 8px 0 20px; color: #a0afb6; font-size: 9px; }
.payout-decision-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.payout-decision-fields label:nth-child(n+3) { grid-column: 1 / -1; }
.payout-decision-fields select, .payout-run-select { width: 100%; min-height: 41px; padding: 10px 11px; border: 1px solid #d9e4e8; border-radius: 8px; color: #557581; background: #fff; font-family: inherit; font-size: 11px; }
.payout-decision-fields textarea { width: 100%; padding: 11px 12px; border: 1px solid #d9e4e8; border-radius: 8px; color: #557581; background: #fff; font-family: inherit; font-size: 11px; resize: vertical; }
.payout-decision-guidance { margin: 14px 0 0; padding: 11px 14px; border-radius: 8px; color: #8f815f; background: #fcf8ed; font-size: 10px; line-height: 1.7; }
.payout-decision-author { margin: 12px 0 0; color: #91a4ad; font-size: 9px; line-height: 1.6; }

/* Economic dashboard and built-in daily report · 2026-10-11 */
.nav-item-dashboard { min-height: 60px; border: 1px solid rgba(237, 40, 50, .28); background: rgba(237, 40, 50, .08); }
.nav-item-dashboard:hover, .nav-item-dashboard.active { border-color: rgba(237, 40, 50, .55); background: rgba(237, 40, 50, .14); }
.nav-item-daily .nav-label { display: grid; gap: 3px; }
.nav-item-daily .nav-label small { color: rgba(255, 255, 255, .39); font-size: 8px; font-weight: 700; letter-spacing: .85px; text-transform: uppercase; }
.nav-item-daily.active .nav-label small { color: #ff9da2; }

.dashboard-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: 210px; margin-bottom: 0; padding: 38px 40px; overflow: hidden; color: #fff; border-radius: 6px 6px 0 0; background: linear-gradient(125deg, #042f34 0%, #06464c 62%, #0b5960 100%); box-shadow: var(--brand-shadow); }
.dashboard-hero::after { position: absolute; right: -70px; top: -145px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.025), 0 0 0 118px rgba(255,255,255,.018); content: ""; }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-hero .eyebrow { color: #91d6d2; }
.dashboard-hero h1 { max-width: 760px; margin-bottom: 16px; color: #fff; font-size: clamp(38px, 4.4vw, 62px); }
.dashboard-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: rgba(255,255,255,.63); line-height: 1.7; }
.dashboard-period { display: flex; flex: 0 0 auto; gap: 6px; padding: 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: rgba(0,0,0,.12); }
.dashboard-period button { min-height: 36px; padding: 8px 13px; border: 0; border-radius: 3px; color: rgba(255,255,255,.58); background: transparent; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.dashboard-period button:hover, .dashboard-period button.is-active { color: #fff; background: var(--accent); }
.dashboard-filter { display: grid; justify-items: end; gap: 8px; min-width: 430px; }
.dashboard-custom-period { display: grid; grid-template-columns: repeat(2, minmax(125px, 1fr)) auto; gap: 7px; width: 100%; padding: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: rgba(0,0,0,.13); }
.dashboard-custom-period[hidden] { display: none; }
.dashboard-custom-period label { display: grid; gap: 4px; color: rgba(255,255,255,.55); font-size: 8px; font-weight: 750; letter-spacing: .55px; text-transform: uppercase; }
.dashboard-custom-period input { min-width: 0; min-height: 35px; padding: 7px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 3px; color: var(--brand-dark); background: rgba(255,255,255,.94); font: inherit; font-size: 10px; }
.dashboard-custom-period button { align-self: end; min-height: 35px; padding: 8px 12px; border: 0; border-radius: 3px; color: #fff; background: var(--accent); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.dashboard-filter .dashboard-filter-message { min-height: 13px; max-width: none; margin: 0; color: #ffc8cb; font-size: 8px; line-height: 1.4; }
.dashboard-source-strip { display: flex; align-items: center; gap: 18px; min-height: 58px; padding: 13px 20px; color: #688087; border: 1px solid var(--line); border-top: 0; background: #fff; font-size: 10px; box-shadow: 0 12px 32px rgba(4,47,52,.06); }
.dashboard-source-strip > span { color: #9aa9ad; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.dashboard-source-strip strong { color: var(--brand-dark); }
.dashboard-source-strip strong i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #58a985; box-shadow: 0 0 0 4px rgba(88,169,133,.11); }
.dashboard-source-strip em { color: #98a5a9; font-style: normal; }
.dashboard-source-strip button { margin-left: auto; border: 0; color: var(--accent); background: transparent; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.economic-dashboard-view > .message { min-height: 24px; margin: 12px 0 4px; color: #73878d; font-size: 10px; }
.dashboard-profit-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-bottom: 0; background: #fff; box-shadow: var(--brand-shadow); }
.dashboard-profit-kpis article { position: relative; min-width: 0; padding: 24px 26px; }
.dashboard-profit-kpis article:first-child { border-right: 1px solid var(--line); }
.dashboard-profit-kpis article::before { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); content: ""; }
.dashboard-profit-kpis article:last-child::before { background: var(--brand); }
.dashboard-profit-kpis span, .dashboard-profit-kpis strong, .dashboard-profit-kpis small { display: block; }
.dashboard-profit-kpis span { color: #657d82; font-size: 10px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.dashboard-profit-kpis strong { margin-top: 12px; color: var(--brand-dark); font-size: clamp(25px, 2.3vw, 34px); font-variant-numeric: tabular-nums; letter-spacing: -.65px; white-space: nowrap; }
.dashboard-profit-kpis small { margin-top: 8px; color: #93a2a5; font-size: 9px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 20px; border: 1px solid var(--line); border-top: 0; background: #fff; box-shadow: var(--brand-shadow); }
.dashboard-kpis article { position: relative; min-width: 0; padding: 22px 20px; border-right: 1px solid var(--line); }
.dashboard-kpis article:last-child { border-right: 0; }
.dashboard-kpis span, .dashboard-kpis strong, .dashboard-kpis small { display: block; }
.dashboard-kpis span { color: #75898e; font-size: 9px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.dashboard-kpis strong { margin-top: 13px; color: var(--ink); font-size: clamp(17px, 1.35vw, 22px); font-variant-numeric: tabular-nums; letter-spacing: -.35px; white-space: nowrap; }
.dashboard-kpis small { margin-top: 8px; color: #a0abad; font-size: 9px; }
.dashboard-kpis .dashboard-result-card::before { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); content: ""; }
.is-negative { color: var(--accent) !important; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 18px; }
.dashboard-grid > .panel { margin: 0; border-radius: 5px; }
.dashboard-trend-panel { grid-row: span 2; }
.dashboard-trend-panel .panel-heading, .dashboard-entities-panel .panel-heading, .dashboard-structure-panel .panel-heading, .dashboard-tax-panel .panel-heading, .dashboard-attention-panel .panel-heading { padding: 22px 24px; }
.dashboard-legend { display: flex; gap: 15px; color: #7c8f94; font-size: 9px; }
.dashboard-legend span::before { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; content: ""; }
.dashboard-legend .income::before { background: #0d6970; }
.dashboard-legend .expense::before { background: #bdc9ca; }
.dashboard-legend .result::before { border-radius: 50%; background: var(--accent); }
.dashboard-chart { min-height: 310px; padding: 0 18px 18px; }
.dashboard-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.dashboard-chart svg .grid { stroke: #e7e9e6; stroke-width: 1; }
.dashboard-chart svg .zero { stroke: #aebcbe; stroke-width: 1; }
.dashboard-chart svg rect.income { fill: #0d6970; rx: 2; }
.dashboard-chart svg rect.expense { fill: #bdc9ca; rx: 2; }
.dashboard-chart svg .result-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-chart svg .result-dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.dashboard-chart svg text { fill: #94a2a5; font-size: 10px; }
.dashboard-chart-empty { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 270px; color: #9aa6a9; text-align: center; }
.dashboard-chart-empty strong { color: #61777d; font-size: 16px; }
.dashboard-chart-empty span { font-size: 10px; }
.dashboard-entity { padding: 17px 22px; border-top: 1px solid #e6e9e7; }
.dashboard-entity > div { display: inline-grid; gap: 4px; }
.dashboard-entity > div strong { color: var(--ink); font-size: 11px; }
.dashboard-entity > div span { color: #95a3a6; font-size: 9px; }
.dashboard-entity > b { float: right; color: var(--brand); font-size: 13px; font-variant-numeric: tabular-nums; }
.dashboard-entity progress { display: block; width: 100%; height: 7px; margin-top: 13px; border: 0; accent-color: var(--brand); }
.dashboard-expense-structure { display: grid; gap: 17px; padding: 4px 22px 24px; }
.dashboard-expense-structure div { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-bottom: 12px; overflow: hidden; }
.dashboard-expense-structure span { color: #71858a; font-size: 10px; }
.dashboard-expense-structure strong { color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.dashboard-expense-structure i { position: absolute; left: 0; bottom: 0; height: 3px; max-width: 100%; background: linear-gradient(90deg, var(--brand), #61a7a1); }
.dashboard-tax-panel .panel-heading { align-items: flex-start; }
.dashboard-tax-total { flex: 0 0 auto; min-width: 220px; padding-left: 22px; border-left: 1px solid var(--line); text-align: right; }
.dashboard-tax-total span, .dashboard-tax-total strong, .dashboard-tax-total small { display: block; }
.dashboard-tax-total span { color: #87999d; font-size: 8px; font-weight: 750; letter-spacing: .55px; text-transform: uppercase; }
.dashboard-tax-total strong { margin-top: 7px; color: var(--brand-dark); font-size: 24px; font-variant-numeric: tabular-nums; }
.dashboard-tax-total small { margin-top: 5px; color: #93a2a5; font-size: 8px; }
.dashboard-tax-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--line); gap: 1px; }
.dashboard-tax-breakdown div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 14px 18px; background: #fff; }
.dashboard-tax-breakdown span { color: #72868b; font-size: 9px; }
.dashboard-tax-breakdown strong { color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dashboard-attention-list { display: grid; gap: 0; padding: 0 22px 20px; }
.dashboard-attention-list > div { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid #e9ecea; }
.dashboard-attention-list b { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; color: #a8743b; background: #fbf0e2; }
.dashboard-attention-list .is-success b { color: #3f8667; background: #e9f4ed; }
.dashboard-attention-list span { display: grid; gap: 5px; }
.dashboard-attention-list strong { color: #526a70; font-size: 10px; }
.dashboard-attention-list small { color: #8e9da1; font-size: 9px; line-height: 1.5; }

.daily-report-heading { align-items: flex-end; }
.daily-date-control { display: grid; gap: 8px; min-width: 210px; color: #71858a; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.daily-date-control input { min-height: 46px; padding: 10px 12px; background: #fff; font: inherit; font-size: 12px; }
.daily-filter { display: grid; grid-template-columns: auto minmax(210px, 1fr); align-items: end; gap: 7px 9px; min-width: 470px; }
.daily-filter-label { grid-column: 1 / -1; color: #71858a; font-size: 8px; font-weight: 750; letter-spacing: .65px; text-transform: uppercase; }
.daily-filter-modes { display: flex; align-self: stretch; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.daily-filter-modes button { min-height: 38px; padding: 8px 12px; border: 0; border-radius: 3px; color: #708489; background: transparent; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.daily-filter-modes button:hover, .daily-filter-modes button.is-active { color: #fff; background: var(--brand); }
.daily-period-controls { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(125px, 1fr)) auto; gap: 7px; }
.daily-period-controls[hidden], .daily-date-control[hidden] { display: none; }
.daily-period-controls label { display: grid; gap: 5px; color: #71858a; font-size: 8px; font-weight: 750; letter-spacing: .55px; text-transform: uppercase; }
.daily-period-controls input { min-width: 0; min-height: 42px; padding: 8px 9px; background: #fff; font: inherit; font-size: 10px; }
.daily-period-controls button { align-self: end; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 3px; color: #fff; background: var(--accent); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.daily-filter > p { grid-column: 1 / -1; min-height: 13px; margin: 0; color: var(--error); font-size: 8px; }
.daily-report-notice { margin-bottom: 12px; }
.daily-status-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 9px 15px; border: 1px solid var(--line); background: rgba(255,255,255,.58); color: #7b8b8f; font-size: 9px; }
.daily-status-line > div { display: flex; align-items: center; gap: 10px; }
.daily-status-line > div > strong { color: var(--brand-dark); font-size: 9px; }
.daily-status-badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: #7b6a4f; background: #f5eee2; font-size: 9px; font-weight: 800; }
.daily-status-badge.is-ready { color: #347255; background: #e7f2eb; }
.daily-status-badge.is-draft { color: #8b6b3e; background: #f6eddf; }
.daily-report-view > .message { min-height: 25px; margin: 10px 0 4px; color: #6f8388; font-size: 10px; }
.daily-action-confirmation { display: flex; align-items: center; gap: 13px; margin: 2px 0 16px; padding: 13px 16px; border: 1px solid #cce3d9; border-left: 3px solid #3d9072; color: #55796b; background: #f0f8f4; }
.daily-action-confirmation[hidden] { display: none; }
.daily-action-confirmation > span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #3d9072; font-weight: 800; }
.daily-action-confirmation strong { display: block; color: #28745a; font-size: 11px; }
.daily-action-confirmation p { margin: 4px 0 0; font-size: 9px; line-height: 1.5; }
.daily-period-summary { display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr); gap: 20px; align-items: center; margin: 2px 0 18px; padding: 20px 22px; border: 1px solid #cddfdb; border-left: 3px solid var(--brand); border-radius: 5px; background: #f6faf8; }
.daily-period-summary[hidden] { display: none; }
.daily-period-summary h2 { margin: 2px 0 7px; color: var(--brand-dark); font-size: 18px; }
.daily-period-summary > div > p:last-child { margin: 0; color: #78908a; font-size: 9px; line-height: 1.55; }
.daily-period-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid #d7e5e1; background: #d7e5e1; }
.daily-period-kpis article { min-width: 0; padding: 13px 14px; background: #fff; }
.daily-period-kpis span, .daily-period-kpis strong { display: block; }
.daily-period-kpis span { color: #7f918d; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.daily-period-kpis strong { margin-top: 7px; color: var(--brand-dark); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.daily-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--line); }
.daily-kpis article { min-width: 0; padding: 19px; background: #fff; }
.daily-kpis span, .daily-kpis strong, .daily-kpis small { display: block; }
.daily-kpis span { color: #7b8d91; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.daily-kpis strong { margin-top: 10px; color: var(--ink); font-size: 21px; font-variant-numeric: tabular-nums; }
.daily-kpis small { margin-top: 7px; color: #a0abad; font-size: 9px; }
.daily-kpi-balance, .daily-kpi-delivery { box-shadow: 0 3px 0 var(--brand) inset; }
.daily-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.daily-workspace { min-width: 0; }
.daily-entry-guide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 8px; padding: 12px 15px; border-left: 3px solid var(--accent); color: #71858a; background: #fff; font-size: 9px; line-height: 1.55; }
.daily-entry-guide strong { color: var(--ink); font-size: 10px; }
.daily-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.daily-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 13px; border: 0; border-radius: 3px; color: #708489; background: transparent; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.daily-tabs button:hover, .daily-tabs button.is-active { color: #fff; background: var(--brand); }
.daily-tab-missing { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; color: #a03c43; background: #f9e5e6; font-size: 8px; }
.daily-tabs button.is-active .daily-tab-missing { color: #fff; background: rgba(255,255,255,.20); }
.daily-tab-missing.is-ready { color: #347255; background: #e7f2eb; }
.daily-tabs button.is-active .daily-tab-missing.is-ready { color: var(--brand); background: #fff; }
.daily-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.daily-summary-card { margin: 0; padding: 23px; border-radius: 5px; }
.daily-summary-card h2 { margin: 0 0 18px; font-size: 20px; }
.daily-summary-card dl { margin: 0; }
.daily-summary-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid #e6eae8; }
.daily-summary-card dt { color: #7b8e92; font-size: 10px; }
.daily-summary-card dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.daily-summary-card .is-total { margin-top: 6px; padding-top: 16px; }
.daily-summary-card .is-total dt, .daily-summary-card .is-total dd { color: var(--brand); font-size: 14px; }
.daily-summary-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr); gap: 26px; }
.daily-completeness { margin-top: 14px; padding-bottom: 18px; border-radius: 5px; }
.daily-completeness .panel-heading strong { color: var(--brand); font-size: 24px; }
.daily-completeness progress { display: block; width: calc(100% - 42px); height: 10px; margin: 0 21px; accent-color: var(--brand); }
.daily-completeness > p { margin: 11px 21px 0; color: #8c9b9f; font-size: 9px; }
.daily-field-section { margin: 0 0 14px; border-radius: 5px; }
.daily-field-section .panel-heading { padding: 20px 22px; }
.daily-field-section.is-collapsed .panel-heading { border-bottom: 0; }
.daily-field-heading-actions { display: flex; align-items: center; gap: 13px; }
.daily-section-total { color: var(--brand); font-size: 15px; font-variant-numeric: tabular-nums; }
.daily-section-missing { padding: 5px 8px; border-radius: 999px; color: #a03c43; background: #f9e5e6; font-size: 8px; font-weight: 750; white-space: nowrap; }
.daily-section-missing.is-ready { color: #347255; background: #e7f2eb; }
.daily-field-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; color: #6e858a; background: #fff; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.daily-field-toggle:hover { color: var(--brand); border-color: #a8c6c3; background: #f4f9f8; }
.daily-field-toggle:focus-visible { outline: 3px solid rgba(0, 99, 107, .18); outline-offset: 2px; }
.daily-field-chevron { color: var(--accent); font-size: 14px; line-height: 1; }
.daily-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.daily-field-grid[hidden] { display: none; }
.daily-field-grid label { display: grid; gap: 8px; min-width: 0; padding: 15px 17px; background: #fff; color: #708489; font-size: 9px; }
.daily-field-grid input { width: 100%; min-height: 39px; padding: 9px 10px; color: var(--ink); background: #fbfcfb; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.daily-field-grid input.is-invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(237,40,50,.10); }
.daily-field-grid input.is-missing { border-color: #d84a51; background: #fff7f7; box-shadow: 0 0 0 3px rgba(216,74,81,.11); }
.daily-side { position: sticky; top: 94px; display: grid; gap: 14px; }
.daily-side > .panel { margin: 0; border-radius: 5px; }
.daily-save-panel label { display: grid; gap: 8px; padding: 0 21px 18px; color: #6d8288; font-size: 9px; }
.daily-save-panel textarea { width: 100%; padding: 11px; background: #fbfcfb; font: inherit; font-size: 10px; resize: vertical; }
.daily-save-actions { display: grid; gap: 9px; padding: 0 21px 17px; }
.daily-save-panel > p { margin: 0; padding: 15px 21px 19px; border-top: 1px solid #e7eae8; color: #8d9b9f; font-size: 9px; line-height: 1.7; }
.daily-save-panel > p.is-ready { color: #347255; background: #f0f8f4; }
.daily-history-refresh { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 3px; color: var(--brand); background: #fff; cursor: pointer; }
.daily-history-list { display: grid; }
.daily-filter-period-active .daily-history-list { max-height: 560px; overflow: auto; }
.daily-history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 13px 20px; border: 0; border-top: 1px solid #e8ebe9; color: #657a80; background: #fff; text-align: left; cursor: pointer; }
.daily-history-item:hover, .daily-history-item.is-current { background: #f3f8f7; }
.daily-history-item strong { font-size: 10px; }
.daily-history-item span { padding: 3px 6px; border-radius: 999px; color: #8a6c42; background: #f7efe3; font-size: 8px; }
.daily-history-item span.is-ready { color: #347255; background: #e7f2eb; }
.daily-history-item b { grid-column: 1 / -1; color: var(--brand); font-size: 11px; font-variant-numeric: tabular-nums; }
.daily-history-empty { margin: 0; padding: 0 21px 21px; color: #8e9da1; font-size: 9px; }
.daily-ready-modal { width: min(680px, 100%); }
.daily-ready-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; border: 1px solid var(--line); background: var(--line); }
.daily-ready-summary div { min-width: 0; padding: 14px 16px; background: #fff; }
.daily-ready-summary dt { margin-bottom: 7px; color: #87999d; font-size: 8px; font-weight: 750; letter-spacing: .5px; text-transform: uppercase; }
.daily-ready-summary dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.daily-ready-summary .is-total dd { color: var(--brand); font-size: 17px; }
.daily-ready-check { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid #d9e5e2; color: #58736d; background: #f6faf8; font-size: 10px; line-height: 1.55; cursor: pointer; }
.daily-ready-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--brand); }

@media (max-width: 1180px) {
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-kpis article:nth-child(3) { border-right: 0; }
  .dashboard-kpis article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-trend-panel { grid-row: auto; }
  .daily-layout { grid-template-columns: minmax(0, 1fr); }
  .daily-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-period-summary { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .dashboard-hero { display: grid; padding: 28px 24px; }
  .dashboard-period { justify-self: start; }
  .dashboard-filter { justify-items: start; min-width: 0; width: 100%; }
  .dashboard-custom-period { max-width: 520px; }
  .dashboard-source-strip { align-items: flex-start; flex-wrap: wrap; }
  .dashboard-source-strip button { width: 100%; margin-left: 0; padding: 5px 0; text-align: left; }
  .dashboard-kpis { grid-template-columns: 1fr 1fr; }
  .dashboard-kpis article, .dashboard-kpis article:nth-child(3) { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .dashboard-kpis article:nth-child(even) { border-right: 0; }
  .daily-kpis, .daily-summary-grid, .daily-side { grid-template-columns: 1fr 1fr; }
  .daily-report-heading { align-items: flex-start; flex-direction: column; }
  .daily-filter { min-width: 0; width: 100%; }
  .daily-period-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tax-panel .panel-heading { align-items: stretch; flex-direction: column; }
  .dashboard-tax-total { min-width: 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
}

@media (max-width: 600px) {
  .dashboard-profit-kpis, .dashboard-kpis, .daily-kpis, .daily-summary-grid, .daily-side { grid-template-columns: 1fr; }
  .dashboard-profit-kpis article:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-kpis article { border-right: 0 !important; }
  .daily-summary-wide { grid-column: auto; grid-template-columns: 1fr; }
  .daily-field-grid { grid-template-columns: 1fr; }
  .dashboard-tax-breakdown { grid-template-columns: 1fr; }
  .daily-field-section .panel-heading { align-items: flex-start; }
  .daily-field-heading-actions { width: 100%; justify-content: space-between; }
  .daily-status-line, .daily-report-heading { align-items: flex-start; flex-direction: column; }
  .daily-entry-guide { grid-template-columns: 1fr; gap: 4px; }
  .daily-ready-summary { grid-template-columns: 1fr; }
  .daily-date-control { width: 100%; }
  .dashboard-period { flex-wrap: wrap; }
  .dashboard-custom-period, .daily-filter, .daily-period-controls, .daily-period-kpis { grid-template-columns: 1fr; }
  .daily-period-controls { grid-column: 1 / -1; }
  .daily-filter-modes { grid-column: 1 / -1; }
}

/* Brand Cell logistics visual system · 2026-10-11
   Presentation only: no workflow, validation, role, or financial behavior changes. */
:root {
  --brand: #00636b;
  --brand-dark: #042f34;
  --accent: #ed2832;
  --ink: #18333a;
  --muted: #64777c;
  --line: rgba(24, 51, 58, .15);
  --surface: #fff;
  --page: #efeee9;
  --paper: #f7f6f2;
  --red-dark: #ca1720;
  --success: #387052;
  --error: #a3323a;
  --brand-shadow: 0 22px 62px rgba(4, 47, 52, .11);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body { background: var(--page); }
body { font-size: 15px; }
h1 { margin-bottom: 10px; color: var(--ink); font-size: clamp(34px, 3.2vw, 46px); font-weight: 650; line-height: 1.05; letter-spacing: -1.2px; }
h2 { color: var(--ink); font-weight: 650; }
.muted { color: var(--muted); }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: 1.9px; }

.button {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .05px;
}
.button-primary { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 11px 27px rgba(237, 40, 50, .19); }
.button-primary:hover:not(:disabled) { border-color: var(--red-dark); background: var(--red-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.button-secondary:hover:not(:disabled) { color: var(--brand-dark); border-color: rgba(0, 99, 107, .45); background: #f8fbfa; }
.button-danger { border-color: var(--accent); background: var(--accent); box-shadow: 0 8px 20px rgba(237, 40, 50, .18); }
.button-danger:hover:not(:disabled) { border-color: var(--red-dark); background: var(--red-dark); }

input, select, textarea,
.review-form-grid input, .review-form-grid select, .review-comment-field textarea,
.payout-decision-fields select, .payout-run-select, .payout-decision-fields textarea {
  border-color: var(--line);
  border-radius: 4px;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus,
.review-form-grid input:focus, .review-form-grid select:focus, .review-comment-field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 99, 107, .12);
}

.login-topbar { min-height: 94px; background: var(--brand-dark); box-shadow: none; }
.login-brand span { color: rgba(255, 255, 255, .63); letter-spacing: 1.4px; text-transform: uppercase; }
.login-card { border-color: var(--line); border-radius: 4px; box-shadow: var(--brand-shadow); }

.app-layout { grid-template-columns: 264px minmax(0, 1fr); background: var(--page); }
.sidebar {
  color: rgba(255, 255, 255, .76);
  border-right: 0;
  background: var(--brand-dark);
  box-shadow: 22px 0 70px rgba(0, 0, 0, .10);
}
.sidebar-brand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
  padding: 24px 22px;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: transparent;
  box-shadow: none;
}
.brand-mark { width: 52px; height: 52px; border-radius: 0; background: transparent; box-shadow: none; }
.brand-mark img { display: block; width: 52px; height: 52px; }
.brand-copy { min-width: 0; align-self: center; }
.brand-name { margin: 0 0 7px; font-size: 18px; line-height: 1; letter-spacing: .45px; }
.brand-product { color: rgba(255, 255, 255, .55); font-size: 8px; line-height: 1.25; letter-spacing: 1.35px; }
.nav-group-label { padding: 28px 28px 12px; color: rgba(255, 255, 255, .38); font-size: 9px; letter-spacing: 2px; }
.main-nav { gap: 5px; margin: 0 22px; }
.nav-item {
  min-height: 52px;
  padding: 12px 15px;
  border-radius: 4px;
  color: rgba(255, 255, 255, .63);
  font-size: 14px;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-item.active,
.nav-group-toggle.active-group,
.nav-group-toggle[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-item.active { box-shadow: 3px 0 0 var(--accent) inset; }
.nav-item.active::before { display: none; }
.nav-icon,
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon,
.nav-group-toggle[aria-expanded="true"] .nav-icon { color: currentColor; }
.nav-chevron { color: rgba(255, 255, 255, .48); }
.nav-submenu { margin: 5px 0 8px 28px; padding: 2px 0 2px 12px; border-left-color: rgba(255, 255, 255, .14); }
.nav-subitem { min-height: 39px; padding: 8px 11px; color: rgba(255, 255, 255, .55); font-size: 12px; }
.nav-subitem.active { color: #fff; background: rgba(255, 255, 255, .09); box-shadow: 3px 0 0 var(--accent) inset; }
.payout-nav-label small { color: rgba(255, 255, 255, .38); }
.sidebar-footer { color: rgba(255, 255, 255, .48); }
.sidebar-environment { color: rgba(255, 255, 255, .76); }
.environment-dot { background: #77c7a6; box-shadow: 0 0 0 4px rgba(119, 199, 166, .10); }
.sidebar-version { border-top-color: rgba(255, 255, 255, .10); }

.main-shell { background: var(--page); }
.topbar {
  min-height: 78px;
  padding: 12px 32px;
  border-bottom-color: var(--line);
  background: rgba(247, 246, 242, .94);
  box-shadow: none;
}
.breadcrumb { color: rgba(24, 51, 58, .52); }
.breadcrumb strong { color: var(--ink); }
.account-pill { color: var(--brand); border-color: rgba(0, 99, 107, .18); border-radius: 999px; background: rgba(223, 236, 235, .72); }
.user-profile strong { color: var(--ink); }
.user-profile span { color: var(--muted); }
.user-avatar { border-radius: 4px; background: var(--brand); box-shadow: none; }
.logout-button { min-height: 40px; }
.page-shell { width: min(1500px, 100%); padding: 38px 46px 42px; }
.pilot-banner { margin-bottom: 32px; padding: 14px 18px; border-color: rgba(138, 95, 14, .22); border-radius: 4px; color: #76551b; background: #fff8dc; }
.pilot-banner strong { color: #624818; }
.page-heading { align-items: flex-end; margin-bottom: 30px; }
.page-heading .muted { font-size: 15px; line-height: 1.55; }
.page-heading-meta { border-left-color: var(--line); }
.page-heading-meta span { color: var(--muted); }
.page-heading-meta strong { color: var(--ink); font-size: 14px; }
.development-badge { border-radius: 999px; }

.notice,
.registry-job-progress,
.attention-block,
.file-row,
.panel,
.empty-module,
.park-card,
.help-grid article,
.help-agent-card,
.payout-run-picker,
.payout-history-card,
.payout-review-item,
.review-item {
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: none;
}
.notice { padding: 15px 18px; color: var(--muted); background: rgba(255, 255, 255, .58); }
.notice strong { color: var(--ink); }
.registry-job-progress { background: #fff; box-shadow: 0 12px 32px rgba(4, 47, 52, .06); }
.registry-job-progress-steps span { border-color: var(--line); border-radius: 4px; }
.attention-block { border-left: 4px solid #d8793b; background: #fff8f0; }
.attention-symbol { border-radius: 4px; }
.file-row, .panel, .empty-module, .park-card, .help-grid article, .help-agent-card, .payout-run-picker { background: #fff; }
.panel, .empty-module { box-shadow: 0 14px 38px rgba(4, 47, 52, .055); }
.panel-heading { padding: 23px 25px 18px; }
.panel-heading h2 { font-size: 18px; }
.stats { gap: 18px; margin-bottom: 22px; }
.stats article {
  min-height: 126px;
  padding: 21px 22px;
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 38px rgba(4, 47, 52, .05);
}
.stats span { color: var(--muted); }
.stats strong { color: var(--ink); font-size: 27px; }
.stats small { color: rgba(100, 119, 124, .82); }
.overview-stats article:first-child strong, .overview-stats article:nth-child(3) strong { font-size: 20px; line-height: 1.25; }
.workflow-steps { border-color: rgba(24, 51, 58, .10); }
.workflow-steps b { border-radius: 4px; color: var(--brand); background: var(--paper); }
.workflow-steps strong { color: var(--ink); }
.workflow-steps p { color: var(--muted); }
.empty-module { min-height: 360px; padding: 72px 34px; }
.empty-module .module-icon { width: 58px; height: 58px; margin-bottom: 22px; border-radius: 4px; color: var(--brand); background: var(--paper); }
.empty-module h2 { color: var(--ink); font-size: 24px; }
.empty-module p { color: var(--muted); font-size: 13px; }

table { font-size: 12px; }
th, td { padding: 16px 18px; border-top-color: rgba(24, 51, 58, .10); }
th { color: var(--muted); background: #f3f3ef; font-size: 10px; font-weight: 750; letter-spacing: .65px; text-transform: uppercase; }
td { color: var(--ink); }
tbody tr { background: #fff; }
tbody tr:hover { background: #fbfbf8; }
.badge { border-radius: 999px; padding: 5px 9px; }
.badge.ready, .badge-success { color: #386f52; background: #e1f0e5; }
.badge.blocked, .badge-error { color: #a3323a; background: #f7e2e3; }
.badge-pending, .badge-warning { color: #8a5f0e; background: #faf0cc; }
.badge-info { color: #2f658d; background: #e5f0f7; }
.badge-teal { color: #07636a; background: #dceeee; }

.cargo-ready-icon { border-radius: 4px; }
.cargo-flow li, .cargo-flow b,
.review-filter, .review-filter span,
.review-item-id, .review-item-figures span,
.review-state, .payout-issue-label,
.payout-review-item-facts, .payout-file-picker,
.payout-period-picker, .payout-period-mode,
.payout-calendar-month, .payout-calendar-day,
.payout-machine-fields, .payout-decision-guidance,
.payout-writeoff-symbol { border-radius: 4px; }
.history-modal, .review-modal { border-radius: 6px; box-shadow: 0 28px 80px rgba(4, 47, 52, .30); }
.history-modal-backdrop, .review-modal-backdrop { background: rgba(4, 47, 52, .70); }
.page-footer { color: rgba(24, 51, 58, .42); }

.dashboard-reconciliation-panel { grid-column: 1 / -1; }
.dashboard-reconciliation-panel .panel-heading { align-items: flex-end; }
.dashboard-reconciliation-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.dashboard-reconciliation-kpis div { min-width: 0; padding: 18px 22px; border-right: 1px solid var(--line); }
.dashboard-reconciliation-kpis div:last-child { border-right: 0; }
.dashboard-reconciliation-kpis span, .dashboard-reconciliation-kpis strong { display: block; }
.dashboard-reconciliation-kpis span { min-height: 26px; color: var(--muted); font-size: 9px; line-height: 1.45; text-transform: uppercase; letter-spacing: .45px; }
.dashboard-reconciliation-kpis strong { margin-top: 7px; color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.dashboard-reconciliation-kpis .is-debit strong { color: var(--accent); }
.dashboard-reconciliation-kpis .is-credit strong { color: var(--success); }
.dashboard-reconciliation-kpis .is-attention strong { color: #99651d; }
.transaction-reconciliation-view { max-width: 1500px; margin: 0 auto; }
.transaction-expected-panel { overflow: hidden; margin-top: 20px; border-radius: 6px; }
.transaction-expected-panel .panel-heading { align-items: center; }
.transaction-expected-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #d9e4e2; border-radius: 999px; color: #6f8488; background: #f5f8f7; font-size: 8px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.transaction-expected-badge.is-ready { color: #16724b; border-color: #b9ddca; background: #edf8f2; }
.transaction-expected-badge.is-warning { color: #9a6420; border-color: #ebd2aa; background: #fff8eb; }
.transaction-expected-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); gap: 1px; }
.transaction-expected-kpis article { min-width: 0; padding: 19px 24px; background: #fff; }
.transaction-expected-kpis span, .transaction-expected-kpis strong { display: block; }
.transaction-expected-kpis span { min-height: 24px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .4px; line-height: 1.45; text-transform: uppercase; }
.transaction-expected-kpis strong { margin-top: 7px; color: var(--brand-dark); font-size: 21px; font-variant-numeric: tabular-nums; }
.transaction-expected-note { margin: 0; padding: 15px 24px 17px; color: #71868a; background: #f8faf9; font-size: 9px; line-height: 1.55; }
.transaction-breakdown-wrap { overflow-x: auto; border-bottom: 1px solid var(--line); }
.transaction-breakdown-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.transaction-breakdown-table th, .transaction-breakdown-table td { padding: 11px 18px; border-bottom: 1px solid #edf2f1; }
.transaction-breakdown-table th { color: #71868a; background: #f8faf9; font-size: 8px; letter-spacing: .35px; text-transform: uppercase; }
.transaction-breakdown-table td { color: #49666d; background: #fff; font-size: 10px; }
.transaction-breakdown-table td.amount { color: #294f57; font-variant-numeric: tabular-nums; white-space: nowrap; }
.transaction-breakdown-table tr.is-detail td:first-child { padding-left: 36px; color: #8a9da1; font-size: 9px; }
.transaction-breakdown-table tr.is-detail td:first-child::before { content: "↳"; margin-right: 7px; color: #a8b6b8; }
.transaction-breakdown-table tr:not(.is-detail) td:first-child { color: #294f57; font-weight: 750; }
.transaction-breakdown-table tr.is-deduction:not(.is-detail) td { background: #fffafa; }
.transaction-breakdown-table tr.is-deduction td.amount { color: #9a584f; }
.transaction-breakdown-table tr.is-unmapped td { background: #fff9ed; }
.transaction-breakdown-table td.is-positive { color: var(--success); font-weight: 750; }
.transaction-breakdown-table td.is-negative { color: var(--accent); font-weight: 750; }
.transaction-breakdown-panel { overflow: hidden; margin-bottom: 16px; border-radius: 6px; }
.transaction-breakdown-panel .table-wrap { max-height: 520px; }
.transaction-source-panel { overflow: hidden; margin-top: 20px; border-radius: 6px; }
.transaction-source-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px 18px; padding: 0 25px 20px; }
.transaction-source-fields label { display: grid; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.transaction-source-fields select, .transaction-source-fields input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.transaction-source-fields-filters { padding-top: 4px; border-top: 1px solid #edf1f0; }
.transaction-source-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 25px 20px; }
.transaction-source-actions .button { min-height: 42px; }
.transaction-source-note { margin: 0; padding: 15px 25px; border-top: 1px solid var(--line); color: #71868a; background: #f8faf9; font-size: 9px; line-height: 1.55; }
.transaction-source-panel > .message { min-height: 28px; margin: 0; padding: 9px 25px 14px; }
.transaction-source-results { border-top: 1px solid var(--line); }
.transaction-source-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding: 17px 25px; background: #f8faf9; color: var(--muted); font-size: 11px; }
.transaction-source-summary strong { color: var(--ink); font-size: 14px; }
.transaction-source-results .table-wrap { max-height: 560px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transaction-source-results th { position: sticky; top: 0; z-index: 2; background: #f7f9f8; }
.transaction-source-results td { max-width: 250px; vertical-align: top; }
.transaction-source-results td strong, .transaction-source-results td small { display: block; }
.transaction-source-results td small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.transaction-source-description { min-width: 180px; white-space: normal; }
.transaction-source-date-cell { min-width: 142px; white-space: nowrap; }
.transaction-source-results .amount.is-positive { color: #177a55; }
.transaction-source-results .amount.is-negative { color: #b63d49; }
.transaction-source-results .amount.is-zero { color: var(--muted); }
.transaction-source-detail-button { border: 0; padding: 4px 0; color: var(--accent); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.transaction-source-empty { padding: 28px 25px; color: var(--muted); text-align: center; }
.transaction-source-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 25px; }
.transaction-source-pagination span { min-width: 120px; color: var(--muted); text-align: center; font-size: 10px; font-weight: 700; }
.transaction-source-detail { margin: 0 25px 25px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfc; }
.transaction-source-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.transaction-source-detail-head h3 { margin: 3px 0 0; }
.transaction-source-detail dl { display: grid; grid-template-columns: minmax(160px, .45fr) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.transaction-source-detail dt, .transaction-source-detail dd { margin: 0; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 10px; overflow-wrap: anywhere; }
.transaction-source-detail dt { color: var(--muted); font-weight: 700; }
.transaction-source-detail details { margin-top: 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.transaction-source-detail summary { padding: 11px 13px; cursor: pointer; font-size: 10px; font-weight: 700; }
.transaction-source-detail pre { max-height: 340px; margin: 0; padding: 14px; overflow: auto; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.transaction-reconciliation-form { overflow: hidden; margin: 20px 0 0; border-radius: 6px; }
.transaction-reconciliation-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 25px 22px; }
.transaction-reconciliation-fields label { display: grid; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.transaction-reconciliation-fields select, .transaction-reconciliation-fields input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.transaction-reconciliation-files { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0 25px 20px; padding: 18px; border: 1px dashed rgba(0,99,107,.38); border-radius: 5px; color: var(--muted); background: rgba(0,99,107,.035); cursor: pointer; }
.transaction-reconciliation-files .module-icon { grid-row: 1 / span 2; align-self: center; width: 42px; height: 42px; border-radius: 50%; color: var(--brand); background: rgba(0,99,107,.10); }
.transaction-reconciliation-files strong { align-self: end; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.transaction-reconciliation-files > span:last-of-type { align-self: start; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.transaction-reconciliation-files input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.transaction-reconciliation-rules { display: grid; gap: 5px; margin: 0 25px 20px; padding: 15px 17px; border-left: 3px solid var(--brand); color: #587278; background: #f4f8f7; font-size: 10px; line-height: 1.6; }
.transaction-reconciliation-rules strong { color: var(--ink); font-size: 11px; }
.transaction-reconciliation-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 25px; border-top: 1px solid var(--line); background: var(--paper); }
.transaction-reconciliation-actions p { margin: 0; color: var(--muted); font-size: 10px; }
.transaction-reconciliation-view > .message { min-height: 30px; margin: 11px 0 4px; }
.transaction-reconciliation-result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 12px 0 16px; padding: 25px; color: #fff; background: linear-gradient(125deg, var(--brand-dark), #07545b); border-radius: 6px; }
.transaction-reconciliation-result-head h2 { margin: 4px 0 7px; font-size: 25px; }
.transaction-reconciliation-result-head p { margin: 0; color: rgba(255,255,255,.72); font-size: 10px; }
.transaction-reconciliation-result-head .eyebrow { color: rgba(255,255,255,.56); }
.transaction-reconciliation-result-head .button { flex: 0 0 auto; background: #fff; color: var(--brand-dark); border-color: #fff; }
.transaction-reconciliation-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.transaction-reconciliation-kpis article { min-width: 0; min-height: 105px; padding: 17px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.transaction-reconciliation-kpis span, .transaction-reconciliation-kpis strong { display: block; }
.transaction-reconciliation-kpis span { min-height: 30px; color: var(--muted); font-size: 8px; line-height: 1.45; text-transform: uppercase; letter-spacing: .4px; }
.transaction-reconciliation-kpis strong { margin-top: 8px; color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.transaction-reconciliation-kpis .is-debit strong { color: var(--accent); }
.transaction-reconciliation-kpis .is-credit strong { color: var(--success); }
.transaction-reconciliation-kpis .is-attention strong { color: #99651d; }
.transaction-reconciliation-mapping { margin-bottom: 16px; }
.transaction-reconciliation-table-panel { margin-bottom: 20px; border-radius: 6px; }
.transaction-reconciliation-table-panel table { min-width: 1050px; }
.transaction-reconciliation-table-panel td { vertical-align: top; }
.transaction-status { font-weight: 750; }
.transaction-status.is-paid { color: var(--success); }
.transaction-status.is-unpaid, .transaction-status.is-partial, .transaction-status.is-discrepancy { color: var(--accent); }
.transaction-status.is-overpaid, .transaction-status.is-extra { color: #99651d; }
.transaction-reconciliation-empty { padding: 24px; color: var(--muted); text-align: center; font-size: 10px; }
.transaction-reconciliation-history { overflow: hidden; margin-top: 20px; border-radius: 6px; }
.transaction-reconciliation-history > p { margin: 0; padding: 0 25px 17px; color: var(--muted); font-size: 9px; }
#transaction-reconciliation-history-list { display: grid; border-top: 1px solid var(--line); }
.transaction-reconciliation-history-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 15px 25px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.transaction-reconciliation-history-item:hover { background: #f5f8f7; }
.transaction-reconciliation-history-item:disabled { cursor: default; opacity: .7; }
.transaction-reconciliation-history-item > span:first-child { display: grid; gap: 5px; min-width: 0; }
.transaction-reconciliation-history-item strong { font-size: 11px; }
.transaction-reconciliation-history-item small { color: var(--muted); font-size: 9px; }
.transaction-reconciliation-history-meta { flex: 0 0 auto; color: var(--brand); font-size: 9px; font-weight: 750; }

@media (max-width: 1150px) {
  .app-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar-brand { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding-inline: 14px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark img { width: 42px; height: 42px; }
  .brand-name { font-size: 14px; letter-spacing: .35px; }
  .brand-product { font-size: 7px; letter-spacing: 1px; }
  .page-shell { padding-inline: 22px; }
  .topbar { padding-inline: 22px; }
  .parks-grid, .cargo-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parks-hero { align-items: stretch; flex-direction: column; }
  .parks-filter { justify-items: start; min-width: 0; }
  .parks-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parks-summary article:nth-child(4n) { border-right: 1px solid var(--line); }
  .parks-summary article:nth-child(2n) { border-right: 0; }
  .parks-summary article:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .parks-summary article:nth-last-child(-n+2) { border-bottom: 0; }
  .payout-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payout-review-item { grid-template-columns: minmax(0, 1.5fr) minmax(140px, .7fr); }
  .payout-review-item-actions { grid-column: 1 / -1; grid-template-columns: auto 1fr minmax(150px, auto); align-items: center; }
  .payout-review-item-actions small { grid-column: 2; grid-row: 2; }
  .payout-review-item-actions .button { grid-column: 3; grid-row: 1 / span 2; }
  .payout-recheck-form { grid-template-columns: 1fr 1fr; }
  .payout-recheck-form .button { grid-column: 1 / -1; justify-self: end; }
  .dashboard-reconciliation-kpis, .transaction-reconciliation-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .transaction-expected-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-reconciliation-kpis div:nth-child(3) { border-right: 0; }
  .dashboard-reconciliation-kpis div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .app-layout { display: block; }
  .sidebar { position: static; height: auto; min-height: 0; overflow-x: hidden; }
  .mobile-navigation-ready .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(340px, calc(100% - 32px)); height: 100vh; height: 100dvh; padding: 0 0 max(20px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transform: translateX(-100%); }
  .mobile-menu-open { overflow: hidden; }
  .mobile-navigation-ready.mobile-menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .mobile-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(0, 20, 24, .56); touch-action: none; }
  .mobile-nav-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: max(12px, env(safe-area-inset-top)) 16px 12px 22px; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; background: var(--brand-dark); }
  .mobile-nav-heading strong { font-size: 16px; }
  .mobile-menu-close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: #fff; background: transparent; }
  .mobile-menu-close svg, .mobile-menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mobile-menu-close:focus-visible, .sidebar .nav-item:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
  .mobile-navigation { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--brand-dark); background: #fff; font: inherit; font-size: 14px; font-weight: 700; }
  #mobile-current-section { min-width: 0; color: var(--ink); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
  .sidebar-brand, .sidebar-footer, .nav-group-label { display: none; }
  .main-nav { display: grid; flex: 0 0 auto; gap: 5px; margin: 12px; overflow: visible; }
  .nav-group-label-secondary + .main-nav { margin-top: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
  .nav-cluster { display: grid; min-width: 0; gap: 4px; }
  .nav-submenu { display: grid; gap: 4px; margin: 0 0 6px 25px; padding-left: 10px; }
  .nav-submenu[hidden] { display: none; }
  .nav-item { width: 100%; min-width: 0; min-height: 48px; padding: 12px; }
  .nav-item > span:not(.nav-icon):not(.nav-chevron) { min-width: 0; overflow-wrap: anywhere; }
  .nav-label small { display: block; margin-top: 3px; font-size: 9px; color: rgba(255,255,255,.48); }
  .nav-chevron { flex: 0 0 auto; }
  .nav-subitem { min-height: 44px; font-size: 13px; }
  .topbar { position: sticky; align-items: center; gap: 16px; flex-wrap: wrap; }
  .breadcrumb { display: none; }
  .topbar-right { min-width: 0; max-width: 100%; margin-left: auto; justify-content: flex-end; }
  .topbar-right .user-profile { min-width: 0; }
  .topbar-right .user-profile > div:first-child { min-width: 0; overflow-wrap: anywhere; }
  .topbar-right .user-avatar, .topbar-right .logout-button { flex: 0 0 auto; }
  .stats, .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-item { grid-template-columns: 1fr 1fr; }
  .review-item-actions { grid-column: 1 / -1; grid-template-columns: auto repeat(2, minmax(120px, 1fr)); }
  .review-item-actions .review-state { grid-column: auto; }
  .review-item-actions .review-decision-note { grid-column: 1 / -1; max-width: none; }
  .review-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-steps { grid-template-columns: 1fr; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .payout-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payout-form-fields { grid-template-columns: 1fr; }
  .payout-run-picker { flex-direction: column; align-items: stretch; gap: 12px; }
  .payout-run-picker label { flex-basis: auto; }
  .transaction-reconciliation-result-head { align-items: stretch; flex-direction: column; }
}
@media (max-width: 600px) {
  .page-shell { padding: 18px 14px 25px; }
  .topbar { padding: 10px 14px; }
  .mobile-navigation { flex-basis: 100%; }
  .topbar-right { gap: 12px; }
  .account-pill, .user-profile span { display: none; }
  .stats, .parks-grid, .help-grid { grid-template-columns: 1fr; }
  .parks-hero { padding: 27px 22px; }
  .parks-period { width: 100%; overflow-x: auto; }
  .parks-period button { flex: 1 0 auto; }
  .parks-custom-period, .parks-summary { grid-template-columns: 1fr; }
  .park-card-finance { grid-template-columns: 1fr; }
  .parks-summary article, .parks-summary article:nth-child(4n), .parks-summary article:nth-child(2n), .parks-summary article:nth-last-child(-n+4) { border-right: 0; border-bottom: 1px solid var(--line); }
  .parks-summary article:last-child { border-bottom: 0; }
  .help-agent-picker { grid-template-columns: 1fr; }
  .help-agent-card { padding: 19px; }
  .help-section-heading { align-items: stretch; flex-direction: column; }
  .pilot-banner { align-items: flex-start; flex-direction: column; }
  .actions, .actions .button { width: 100%; }
  .file-row { align-items: stretch; flex-direction: column; }
  .cargo-ready-panel, .cargo-flow { align-items: stretch; flex-direction: column; }
  .cargo-history-heading, .history-modal-actions { align-items: stretch; flex-direction: column; }
  .cargo-history-grid { grid-template-columns: 1fr; }
  .history-modal { padding: 24px 19px 19px; }
  .history-modal-details { grid-template-columns: 1fr; }
  .history-modal-details div, .history-modal-details div:nth-child(odd), .history-modal-details div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #e7edef; }
  .history-modal-details div:last-child { border-bottom: 0; }
  .history-modal-actions .button { width: 100%; }
  .cargo-review-heading, .cargo-review-toolbar, .cargo-review-export { align-items: stretch; flex-direction: column; }
  .cargo-review-progress { text-align: left; }
  .review-item { grid-template-columns: 1fr; }
  .review-item-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-item-actions { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-item-actions .review-state { grid-column: 1 / -1; }
  .review-form-grid { grid-template-columns: 1fr; }
  .review-modal { padding: 24px 18px 18px; }
  .login-card { margin-top: 12px; padding: 25px 21px; }
  .payout-history-grid, .payout-workflow, .payout-review-item, .payout-recheck-form, .payout-writeoff-figures, .payout-decision-fields, .payout-machine-fields, .payout-period-modes, .payout-period-controls { grid-template-columns: 1fr; }
  .payout-review-item-actions { grid-template-columns: 1fr; grid-column: auto; }
  .payout-review-item-actions small, .payout-review-item-actions .button { grid-column: auto; grid-row: auto; }
  .payout-form-footer { align-items: stretch; flex-direction: column; }
  .payout-recheck-form .button { grid-column: auto; justify-self: stretch; }
  .payout-form-fields input, .payout-recheck-form input { max-width: none; }
  .payout-search-label { flex-basis: auto; width: 100%; }
  .payout-gate-list small { display: none; }
  .payout-source-label { align-self: start; }
  .payout-machine-fields div:nth-child(odd) { border-right: 0; }
  .payout-machine-fields div:nth-last-child(-n+2) { border-bottom: 1px solid #e7edef; }
  .payout-machine-fields div:last-child { border-bottom: 0; }
  .payout-decision-fields label:nth-child(n+3) { grid-column: auto; }
  .payout-document-action .button { width: 100%; }
  .attention-block { grid-template-columns: auto 1fr; align-items: start; }
  .attention-block > .button { grid-column: 1 / -1; width: 100%; }
  .dashboard-reconciliation-kpis, .transaction-expected-kpis, .transaction-source-fields, .transaction-reconciliation-fields, .transaction-reconciliation-kpis { grid-template-columns: 1fr; }
  .transaction-source-actions, .transaction-source-detail-head { align-items: stretch; flex-direction: column; }
  .transaction-source-actions .button { width: 100%; }
  .transaction-source-detail { margin: 0 14px 18px; }
  .transaction-source-detail dl { grid-template-columns: 1fr; }
  .transaction-source-detail dt { padding-bottom: 2px; border-bottom: 0; }
  .transaction-source-detail dd { padding-top: 2px; }
  .dashboard-reconciliation-kpis div { border-right: 0; border-top: 1px solid var(--line); }
  .dashboard-reconciliation-kpis div:first-child { border-top: 0; }
  .transaction-reconciliation-actions, .transaction-reconciliation-result-head { align-items: stretch; flex-direction: column; }
  .transaction-reconciliation-result-head .button { width: 100%; }
  .transaction-reconciliation-history-item { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
