:root {
  --rita-bg: var(--mds_brand_appearance_neutral_weakest_background-color, #f7f7f7);
  --rita-surface: var(--mds_brand_appearance_neutral_default_background-color, #fff);
  --rita-text: var(--mds_brand_appearance_neutral_default_text-color, #141414);
  --rita-muted: var(--mds_brand_appearance_neutral_weak_text-color, #4c4c4c);
  --rita-subtle: var(--mds_brand_appearance_neutral_weakest_text-color, #6a6a6a);
  --rita-border: var(--mds_brand_appearance_neutral_default_border-color, #d4d4d4);
  --rita-accent: var(--mds_brand_appearance_secondary_default_background-color, #42b0d5);
  --rita-accent-soft: var(--mds_brand_appearance_secondary_weak_background-color, #e2f3f9);
  --sidebar-width: 252px;
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--rita-bg); color: var(--rita-text); font-family: "Maersk Text", Arial, sans-serif; font-size: 16px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { display: block; }

.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 12px 16px; transform: translateY(-150%); border-radius: 6px; background: #141414; color: #fff; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 24px 16px 20px; background: var(--rita-surface); border-right: 1px solid var(--rita-border); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin: 0 0 44px 8px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #141414; color: #fff; }
.brand-mark svg { width: 31px; height: 31px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: "Maersk Headline", "Maersk Text", Arial, sans-serif; font-size: 19px; line-height: 1.1; letter-spacing: .02em; }
.brand-copy small { color: var(--rita-subtle); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.nav-caption { padding: 0 12px 10px; color: var(--rita-subtle); font-size: 12px; font-weight: 700; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--rita-muted); font-size: 14px; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.nav-item:hover { background: #f0f0f0; color: var(--rita-text); }
.nav-item.is-active { background: var(--rita-accent-soft); color: #005986; font-weight: 700; }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.nav-count { display: grid; width: 22px; height: 22px; margin-left: auto; place-items: center; border-radius: 11px; background: rgba(20,20,20,.06); color: var(--rita-subtle); font-size: 12px; }
.sidebar-bottom { display: grid; gap: 18px; margin-top: auto; }
.workspace-card { display: flex; align-items: center; gap: 11px; padding: 12px 10px; border-top: 1px solid var(--rita-border); }
.workspace-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 6px; background: #f0f0f0; color: #4c4c4c; }
.workspace-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.workspace-card strong, .workspace-card small { display: block; }
.workspace-card strong { font-size: 12px; font-weight: 700; }
.workspace-card small { margin-top: 3px; color: var(--rita-subtle); font-size: 11px; }
.sidebar-version { padding: 0 10px; color: var(--rita-subtle); font-size: 11px; }

.main-column { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--rita-border); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.topbar-context { display: flex; align-items: center; gap: 10px; color: var(--rita-muted); font-size: 13px; }
.topbar-context-label { color: var(--rita-text); font-weight: 700; }
.context-divider { color: #b3b3b3; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.connectivity { display: inline-flex; align-items: center; gap: 8px; color: var(--rita-muted); font-size: 12px; }
.connectivity-dot { width: 8px; height: 8px; border: 2px solid #f0a000; border-radius: 50%; background: #ffd15c; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--rita-border); border-radius: 50%; background: #f7f7f7; color: #4c4c4c; font-size: 13px; font-weight: 700; }
.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.menu-toggle:hover { background: #f0f0f0; }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.content-wrap { width: min(1260px, 100%); margin: 0 auto; padding: 28px 40px 24px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--rita-subtle); font-size: 12px; }
.breadcrumb strong { color: var(--rita-text); font-weight: 600; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: #005986; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Maersk Headline", "Maersk Text", Arial, sans-serif; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.page-description { max-width: 630px; margin-bottom: 0; color: var(--rita-muted); font-size: 14px; line-height: 1.55; }
.heading-actions { display: grid; justify-items: end; gap: 6px; flex: 0 0 auto; }
.action-hint { color: var(--rita-subtle); font-size: 11px; }
.status-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid #f3d888; border-radius: 8px; background: #fff8e6; }
.status-symbol { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #ffedbd; color: #7a5a00; }
.status-symbol svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.status-copy { min-width: 0; flex: 1; }
.status-copy strong { display: block; margin-bottom: 3px; font-size: 13px; }
.status-copy p { margin: 0; color: #5f542f; font-size: 12px; line-height: 1.5; }
.status-tag { flex: 0 0 auto; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.summary-card { min-height: 142px; padding: 18px 20px; border: 1px solid var(--rita-border); border-radius: 12px; background: var(--rita-surface); }
.summary-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-label { color: var(--rita-muted); font-size: 13px; font-weight: 600; }
.summary-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; }
.summary-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.icon-blue { background: #e2f3fb; color: #005986; }
.icon-teal { background: #e5f4f2; color: #006f67; }
.icon-green { background: #eaf5e8; color: #328529; }
.summary-value { margin-top: 12px; font-family: "Maersk Headline", "Maersk Text", Arial, sans-serif; font-size: 30px; font-weight: 700; line-height: 1; }
.summary-note { margin-top: 8px; color: var(--rita-subtle); font-size: 11px; }

.records-panel { overflow: hidden; min-height: 380px; border: 1px solid var(--rita-border); border-radius: 12px; background: var(--rita-surface); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #e2e2e2; }
.panel-header h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.3; }
.panel-header p { margin: 0; color: var(--rita-subtle); font-size: 12px; }
.records-updated { color: var(--rita-subtle); font-size: 11px; white-space: nowrap; }
.empty-state { display: grid; min-height: 280px; align-content: center; justify-items: center; padding: 32px 20px 38px; text-align: center; }
.empty-illustration { display: grid; width: 92px; height: 82px; margin-bottom: 18px; place-items: center; border-radius: 24px; background: #f3f8fa; color: #0077b2; }
.empty-illustration svg { width: 80px; height: 70px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.empty-state h3 { margin-bottom: 7px; font-size: 17px; line-height: 1.3; }
.empty-state p { max-width: 420px; margin-bottom: 16px; color: var(--rita-subtle); font-size: 12px; line-height: 1.55; }
.empty-state-note { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 16px; background: #f0f0f0; color: #4c4c4c; font-size: 11px; }
.empty-state-dot { width: 6px; height: 6px; border-radius: 50%; background: #8a8a8a; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px 4px; color: var(--rita-subtle); font-size: 11px; }

.page-view[hidden] { display: none !important; }
.nav-item:focus-visible, .brand:focus-visible, .menu-toggle:focus-visible { outline: 3px solid #0077b2; outline-offset: 2px; }
.data-panel { min-height: 300px; }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; font-size: 13px; }
.data-table th { padding: 13px 16px; border-bottom: 1px solid #d8d8d8; background: #f4f4f4; color: #333; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 0; border-bottom: 1px solid #e5e5e5; }
.table-empty { display: grid; min-height: 210px; align-content: center; justify-items: center; gap: 7px; padding: 26px 20px; color: var(--rita-subtle); text-align: center; }
.table-empty strong { color: var(--rita-text); font-size: 14px; }
.table-empty span { font-size: 12px; line-height: 1.5; }
.folder-path { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 22px 24px 0; color: var(--rita-subtle); font-size: 12px; }
.folder-path span:not([aria-hidden]) { padding: 8px 11px; border: 1px solid #d7d7d7; border-radius: 6px; background: #fff; color: #333; font-weight: 600; }
.evidence-empty { min-height: 230px; }

.mobile-scrim { position: fixed; z-index: 15; inset: 0; background: rgba(20,20,20,.35); }
.mobile-scrim[hidden], [hidden] { display: none !important; }

@media (max-width: 1020px) {
  :root { --sidebar-width: 220px; }
  .content-wrap { padding-right: 28px; padding-left: 28px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
}

@media (max-width: 760px) {
  .sidebar { z-index: 20; width: min(286px, calc(100vw - 56px)); transform: translateX(-105%); transition: transform .2s ease; box-shadow: none; }
  .sidebar.is-open { transform: translateX(0); box-shadow: 12px 0 32px rgba(0,0,0,.12); }
  .main-column { margin-left: 0; }
  .topbar { height: 60px; gap: 12px; padding: 0 16px; }
  .menu-toggle { display: inline-flex; flex: 0 0 40px; margin-left: -7px; }
  .topbar-context { margin-right: auto; }
  .topbar-actions { gap: 10px; }
  .connectivity { font-size: 0; }
  .connectivity-dot { width: 9px; height: 9px; }
  .avatar { width: 32px; height: 32px; }
  .content-wrap { padding: 20px 16px 18px; }
  .breadcrumb { margin-bottom: 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 18px; }
  h1 { font-size: 28px; }
  .heading-actions { justify-items: start; }
  .status-banner { align-items: flex-start; gap: 10px; padding: 14px; }
  .status-symbol { flex-basis: 30px; width: 30px; height: 30px; }
  .status-tag { display: none; }
  .summary-grid { grid-template-columns: 1fr; gap: 10px; }
  .summary-card { min-height: 112px; padding: 14px 16px; }
  .summary-value { margin-top: 8px; font-size: 27px; }
  .summary-note { margin-top: 5px; }
  .panel-header { align-items: flex-start; flex-direction: column; padding: 17px 16px; }
  .records-updated { font-size: 10px; }
  .folder-path { gap: 6px; padding: 18px 16px 0; }
  .folder-path span:not([aria-hidden]) { padding: 7px 9px; font-size: 11px; }
  .table-empty { min-height: 180px; padding-right: 14px; padding-left: 14px; }
  .empty-state { min-height: 265px; padding: 26px 16px 30px; }
  .page-footer { flex-direction: column; gap: 5px; padding-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
