:root {
  --ink: #17231f;
  --muted: #6d7974;
  --line: #dfe6e2;
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --forest: #143b35;
  --forest-2: #1d5148;
  --mint: #dff2e9;
  --green: #247a53;
  --green-bg: #e6f5ed;
  --blue: #2d64a8;
  --blue-bg: #e8f0fb;
  --yellow: #9a670d;
  --yellow-bg: #fff4d6;
  --amber: #b4541b;
  --amber-bg: #fff0e4;
  --red: #b43f3f;
  --red-bg: #fdeaea;
  --shadow: 0 8px 24px rgba(18, 46, 39, .07);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--forest); color: #f7fbf9; display: flex; flex-direction: column; overflow-y: auto; z-index: 30; }
.brand-lockup, .login-brand { display: flex; align-items: center; gap: 11px; }
.brand-lockup { min-height: 76px; padding: 17px 20px; border-bottom: 1px solid rgba(255,255,255,.1); position: sticky; top: 0; background: var(--forest); z-index: 2; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #f1b27e; color: var(--forest); font-size: 19px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.brand-lockup strong, .login-brand strong { display: block; font-size: 16px; letter-spacing: .01em; }
.brand-lockup small, .login-brand small { display: block; color: #b7cbc4; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.side-nav { padding: 13px 12px 24px; }
.nav-label { margin: 16px 10px 6px; color: #87a59c; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.side-nav a { min-height: 39px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: #d9e5e1; border-radius: 9px; font-size: 12.5px; transition: .16s ease; }
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(255,255,255,.08); color: #bcd0c9; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.side-nav a:hover .nav-icon, .side-nav a.active .nav-icon { background: #f1b27e; color: var(--forest); }
.sidebar-footer { margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid rgba(255,255,255,.09); color: #d9e5e1; font-size: 11px; }
.sidebar-footer small { display: block; margin: 3px 0 0 14px; color: #8facA3; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.status-dot.green { background: #62d69b; box-shadow: 0 0 0 3px rgba(98,214,155,.12); }

.main-column { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 32px; display: flex; align-items: center; gap: 24px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.menu-button { display: none; background: transparent; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.global-search { width: min(520px, 50vw); height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf9; color: var(--muted); }
.global-search:focus-within { border-color: #7da39a; box-shadow: 0 0 0 3px rgba(36,122,83,.09); background: #fff; }
.global-search input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 17px; }
.notification-button { min-height: 35px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--muted); border-radius: 9px; font-size: 12px; }
.notification-button:hover { background: var(--canvas); color: var(--ink); }
.notification-button b { min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--red); color: #fff; font-size: 10px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar, .mini-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 800; text-transform: uppercase; }
.avatar { width: 36px; height: 36px; }
.mini-avatar { width: 31px; height: 31px; flex: 0 0 auto; background: var(--mint); color: var(--forest); font-size: 12px; }
.user-copy strong, .user-copy small { display: block; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-copy strong { font-size: 12px; }
.user-copy small { color: var(--muted); font-size: 10px; }
.user-popover { position: absolute; right: 0; top: 48px; width: 180px; padding: 7px; border: 1px solid var(--line); background: #fff; border-radius: 11px; box-shadow: var(--shadow); }
.user-popover a, .user-popover button { width: 100%; display: block; padding: 9px 10px; text-align: left; border: 0; background: transparent; border-radius: 7px; cursor: pointer; }
.user-popover a:hover, .user-popover button:hover { background: var(--canvas); }

.content { padding: 30px 32px 48px; max-width: 1580px; margin: 0 auto; }
.page-header { min-height: 82px; margin-bottom: 25px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-header h1, .profile-hero h1 { margin: 3px 0 5px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.page-header p, .profile-heading p { margin: 0; color: var(--muted); }
.eyebrow { display: block; color: var(--green); font-size: 9px; font-weight: 850; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: #acd0c5; }
.header-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button { min-height: 40px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; font-size: 12px; cursor: pointer; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--forest); color: #fff; box-shadow: 0 5px 15px rgba(20,59,53,.13); }
.button.primary:hover { background: var(--forest-2); }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button.secondary:hover { border-color: #b8c7c2; }
.button.danger { background: var(--red); color: #fff; }
.button.wide { width: 100%; }
.filter-button { border-color: var(--forest); background: var(--forest); color: #fff; }
.clear-filter { padding: 9px 2px; color: var(--muted); font-size: 12px; }
.back-link { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--green); }

.message-stack { position: fixed; z-index: 60; right: 22px; top: 88px; width: min(390px, calc(100vw - 44px)); display: grid; gap: 8px; }
.message { padding: 13px 14px; display: flex; justify-content: space-between; gap: 10px; border: 1px solid #bee0cd; border-radius: 11px; background: var(--green-bg); color: #18583d; box-shadow: var(--shadow); }
.message.error { border-color: #efc3c3; color: #8f2c2c; background: var(--red-bg); }
.message button { border: 0; background: transparent; cursor: pointer; color: inherit; }

.section-block { margin-bottom: 30px; }
.section-heading, .panel-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading h2, .panel-heading h2, .panel-heading h3 { margin: 2px 0 0; letter-spacing: -.02em; }
.section-heading h2, .panel-heading h2 { font-size: 19px; }
.panel-heading h3 { font-size: 16px; }
.section-heading > a, .panel-heading > a { color: var(--green); font-size: 11px; font-weight: 750; }
.kpi-grid { display: grid; gap: 11px; }
.kpi-grid.five { grid-template-columns: repeat(5, minmax(0,1fr)); }
.kpi-grid.six { grid-template-columns: repeat(6, minmax(0,1fr)); }
.kpi-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.kpi-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.kpi-card { position: relative; min-height: 132px; padding: 17px 17px 15px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 16px rgba(20,59,53,.04); }
.kpi-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #b9c3bf; }
.kpi-card > span { display: block; min-height: 36px; color: var(--muted); font-size: 11px; font-weight: 700; }
.kpi-card strong { display: block; margin: 3px 0; font-size: 25px; line-height: 1.15; letter-spacing: -.03em; }
.kpi-card small { color: #8b9591; font-size: 10px; }
.kpi-card.green::before { background: var(--green); }.kpi-card.green strong { color: var(--green); }
.kpi-card.blue::before { background: var(--blue); }.kpi-card.blue strong { color: var(--blue); }
.kpi-card.yellow::before { background: #d0a328; }.kpi-card.yellow strong { color: var(--yellow); }
.kpi-card.amber::before { background: var(--amber); }.kpi-card.amber strong { color: var(--amber); }
.kpi-card.red::before { background: var(--red); }.kpi-card.red strong { color: var(--red); }
.kpi-card.actionable { display: block; color: inherit; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.kpi-card.actionable:hover, .kpi-card.actionable:focus-visible { transform: translateY(-2px); border-color: #90afa6; box-shadow: 0 9px 22px rgba(20,59,53,.10); outline: none; }
.kpi-grid.compact .kpi-card { min-height: 115px; }
.dashboard-split { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .8fr); gap: 18px; align-items: stretch; margin-bottom: 30px; }
.dashboard-split.equal { grid-template-columns: repeat(2, minmax(0,1fr)); }
.dashboard-split .section-block { margin: 0; }
.attention-panel { padding: 19px; background: var(--forest); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.attention-title { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 10px; }
.attention-title h2 { margin: 2px 0; font-size: 16px; }
.signal { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.signal.red { background: #f28080; }
.attention-list a { display: flex; align-items: center; gap: 9px; padding: 10px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.attention-list a > span:nth-child(2) { min-width: 0; flex: 1; }
.attention-list strong, .attention-list small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention-list strong { font-size: 11px; }.attention-list small { color: #b5cbc4; font-size: 9px; }
.attention-list b { color: #f1b27e; font-size: 9px; text-transform: uppercase; }
.attention-panel .mini-avatar { background: rgba(255,255,255,.12); color: #fff; }
.all-clear { height: calc(100% - 50px); min-height: 145px; display: grid; place-items: center; text-align: center; align-content: center; gap: 9px; }
.all-clear > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: rgba(98,214,155,.15); color: #62d69b; font-size: 22px; }
.all-clear p { margin: 0; color: #b5cbc4; }.all-clear strong { display: block; color: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(20,59,53,.04); }
.chart-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 30px; }
.chart-card { padding: 17px; min-height: 290px; }
.chart-card canvas { width: 100%; height: 215px; display: block; }
.alert-feed { margin-top: 4px; padding: 19px; }
.feed-list a { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 12px 3px; border-top: 1px solid var(--line); }
.feed-list strong, .feed-list small { display: block; }.feed-list strong { font-size: 12px; }.feed-list small { color: var(--muted); font-size: 10px; }
.feed-list time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.severity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.severity-dot.warning { background: #d3a333; }.severity-dot.critical { background: var(--red); }

.table-panel { overflow: hidden; }
.filter-bar { min-height: 68px; padding: 13px 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.search-field { min-width: 230px; flex: 1; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 11px; background: var(--canvas); border: 1px solid transparent; border-radius: 9px; color: var(--muted); }
.search-field:focus-within { border-color: #9ab6ad; background: #fff; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.form-control { width: 100%; min-height: 41px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #cfd9d4; border-radius: 9px; outline: 0; transition: .15s ease; }
.form-control:focus { border-color: #6e9c90; box-shadow: 0 0 0 3px rgba(36,122,83,.09); }
.form-control.compact { width: auto; min-width: 135px; max-width: 210px; }
textarea.form-control { min-height: 90px; resize: vertical; }
.employee-selector { display: grid; gap: 6px; }
.employee-search { min-height: 37px; }
.employee-selector select { display: none; }
.employee-search-results { display: none; max-height: 190px; overflow-y: auto; border: 1px solid #cfd9d4; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(10,35,29,.12); }
.employee-search-results.is-open { display: block; }
.employee-search-option { width: 100%; padding: 9px 11px; border: 0; border-bottom: 1px solid #edf1ef; background: #fff; color: var(--ink); text-align: left; cursor: pointer; font-size: 10px; }
.employee-search-option:last-child { border-bottom: 0; }
.employee-search-option:hover, .employee-search-option:focus { background: var(--green-bg); outline: 0; }
.employee-search-count { grid-column: 1 / -1; min-height: 12px; color: var(--muted); font-size: 9px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.data-table th { padding: 11px 12px; text-align: left; color: #7a8782; background: #f8faf9; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid #ebefed; color: #34413c; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfdfc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.signal-column { width: 22px; }.actions-column { width: 125px; }
.table-signal { width: 7px; height: 7px; display: block; border-radius: 50%; background: #c5cfcb; }
.table-signal.green { background: var(--green); }.table-signal.yellow { background: #d0a328; }.table-signal.amber { background: var(--amber); }.table-signal.red { background: var(--red); }.table-signal.blue { background: var(--blue); }
.row-actions { white-space: nowrap; }
.row-actions a { margin-right: 9px; color: var(--green); font-size: 10px; font-weight: 750; }
.row-actions .danger-link { color: var(--red); }
.table-primary { font-weight: 750; color: var(--forest); }
.empty-table { min-height: 220px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-table span, .empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 50%; background: var(--canvas); color: var(--green); font-weight: 800; }
.empty-table p { margin: 2px 0; }.empty-table strong { color: var(--ink); }
.pagination { min-height: 57px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination div { display: flex; gap: 6px; }.pagination a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
.export-menu { position: relative; }.export-menu summary { list-style: none; cursor: pointer; }.export-menu summary::-webkit-details-marker { display: none; }
.export-menu > div { position: absolute; right: 0; top: 45px; z-index: 10; width: 145px; padding: 6px; display: grid; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.export-menu a, .export-menu button { padding: 8px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 6px; font-size: 11px; }
.export-menu a:hover, .export-menu button:hover { background: var(--canvas); }
.status-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; background: #edf1ef; color: #64716c; font-size: 9px; font-weight: 800; white-space: normal; }
.status-pill.green { background: var(--green-bg); color: var(--green); }.status-pill.blue { background: var(--blue-bg); color: var(--blue); }.status-pill.yellow { background: var(--yellow-bg); color: var(--yellow); }.status-pill.amber { background: var(--amber-bg); color: var(--amber); }.status-pill.red { background: var(--red-bg); color: var(--red); }
.red-text { color: var(--red) !important; font-weight: 800; }.yellow-text { color: var(--yellow) !important; font-weight: 800; }.amber-text { color: var(--amber) !important; font-weight: 800; }

.form-panel { padding: 23px; }
.form-panel.narrow { max-width: 670px; }.form-panel.narrow form > div { margin-bottom: 14px; }
.form-panel.narrow form > div > label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 750; }
.form-panel.narrow form > div > input, .form-panel.narrow form > div > select { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #cfd9d4; border-radius: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px 19px; }
.form-grid.one { grid-template-columns: 1fr; }.full-width { grid-column: 1 / -1; }
.field-block label { display: block; margin: 0 0 5px; font-size: 11px; font-weight: 750; }.field-block label b { color: var(--red); }.field-block > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.field-error { display: block; margin-top: 4px; color: var(--red); font-size: 10px; }
.form-alert { margin-bottom: 16px; padding: 12px; border: 1px solid #edc0c0; border-radius: 9px; background: var(--red-bg); color: #8b2f2f; }
.form-alert ul, .errorlist { margin: 0; padding-left: 18px; }
.check-field > label { margin-bottom: 9px; }
.check-input { width: 18px; height: 18px; accent-color: var(--forest); vertical-align: middle; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfb; }
.check-grid > div label { display: flex; gap: 7px; align-items: center; margin: 0; font-weight: 550; }
.check-grid input { accent-color: var(--forest); }
.employee-selector + small { grid-column: 1 / -1; }
.form-actions { margin-top: 25px; padding-top: 17px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.confirm-card { max-width: 520px; margin: 80px auto; padding: 34px; text-align: center; background: #fff; border: 1px solid #efd0d0; border-radius: 18px; box-shadow: var(--shadow); }
.warning-mark { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--red-bg); color: var(--red); font-size: 24px; font-weight: 900; }
.confirm-card h1 { margin: 5px 0; }.confirm-card p { color: var(--muted); }.confirm-card form { margin-top: 22px; display: flex; gap: 9px; justify-content: center; }

.profile-hero { padding: 0 0 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.profile-heading { display: flex; align-items: center; gap: 16px; }.profile-heading h1 { margin-top: 1px; }
.profile-avatar { width: 65px; height: 65px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 18px; background: var(--forest); color: #fff; font-size: 28px; font-weight: 850; }
.profile-actions { display: flex; align-items: center; gap: 12px; }.authorization-badge { min-width: 145px; padding: 9px 12px; border-radius: 11px; }.authorization-badge small, .authorization-badge strong { display: block; }.authorization-badge small { font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }.authorization-badge strong { font-size: 17px; }.authorization-badge.green { background: var(--green-bg); color: var(--green); }.authorization-badge.red { background: var(--red-bg); color: var(--red); }
.critical-banner { margin-bottom: 17px; padding: 13px 16px; display: flex; gap: 14px; align-items: center; border: 1px solid #efc4c4; border-radius: 11px; background: var(--red-bg); color: #8c3232; }.critical-banner strong { white-space: nowrap; }.critical-banner span { font-size: 11px; }
.sensitive-panel { max-width: 760px; }.sensitive-value { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }.profile-section { padding: 20px; }.profile-section.wide { grid-column: 1 / -1; }
.expiry-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 9px; }
.expiry-mini { padding: 13px; border: 1px solid var(--line); border-top: 3px solid #bac5c0; border-radius: 10px; background: #fbfdfc; }.expiry-mini span, .expiry-mini strong, .expiry-mini small { display: block; }.expiry-mini span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }.expiry-mini strong { margin: 5px 0 8px; font-size: 11px; }.expiry-mini small { color: var(--muted); font-size: 9px; }.expiry-mini.green { border-top-color: var(--green); }.expiry-mini.yellow { border-top-color: #d0a328; }.expiry-mini.red { border-top-color: var(--red); background: #fffafa; }
.detail-list { margin: 0; }.detail-list > div { padding: 9px 0; display: grid; grid-template-columns: 130px 1fr; gap: 12px; border-top: 1px solid var(--line); }.detail-list dt { color: var(--muted); font-size: 10px; }.detail-list dd { margin: 0; font-size: 11px; font-weight: 650; }.detail-list dd small { display: block; color: var(--muted); font-weight: 400; }
.passport-detail-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 15px; align-items: start; }
.passport-detail-grid .detail-panel { min-width: 0; padding: 19px; }
.passport-history { display: grid; gap: 8px; }
.passport-history-entry { min-width: 0; padding: 10px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; }
.passport-history-entry > span:last-child { min-width: 0; }
.passport-history-entry strong, .passport-history-entry small { display: block; }
.passport-history-entry strong { font-size: 11px; }
.passport-history-entry small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.document-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }.document-list a { padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; }.document-list a:hover { border-color: #9bb4ac; }.document-list strong, .document-list small { display: block; }.document-list strong { font-size: 11px; }.document-list small { color: var(--muted); font-size: 9px; }
.file-mark { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--blue-bg); color: var(--blue); font-size: 8px; font-weight: 900; }

.onboarding-overview { margin-bottom: 15px; padding: 20px; display: grid; grid-template-columns: 145px minmax(180px,1fr) auto; gap: 22px; align-items: center; }.onboarding-overview > div:first-child strong, .onboarding-overview > div:first-child small { display: block; }.onboarding-overview > div:first-child strong { font-size: 30px; color: var(--green); letter-spacing: -.04em; }.onboarding-overview > div:first-child small { color: var(--muted); font-size: 9px; }.progress-track { width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 9px; background: #e8eeeb; appearance: none; }.progress-track::-webkit-progress-bar { border-radius: inherit; background: #e8eeeb; }.progress-track::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--forest), #50a27f); }.progress-track::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--forest), #50a27f); }.onboarding-overview dl { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(80px,1fr)); gap: 8px 18px; }.onboarding-overview dl div { display: flex; justify-content: space-between; gap: 12px; }.onboarding-overview dt { color: var(--muted); font-size: 9px; }.onboarding-overview dd { margin: 0; font-size: 10px; font-weight: 750; }
.journey-panel { padding: 20px; }.journey-list { list-style: none; margin: 0; padding: 0; }.journey-list li { position: relative; min-height: 65px; padding: 9px 0; display: grid; grid-template-columns: 34px minmax(0,1fr) 115px 50px; gap: 12px; align-items: start; border-top: 1px solid var(--line); }.journey-number { position: relative; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #edf1ef; color: #75817c; font-size: 9px; font-weight: 850; }.journey-line { position: absolute; left: 14px; top: 39px; bottom: -10px; width: 2px; background: #e2e9e5; }.journey-list li:last-child .journey-line { display: none; }.journey-list li.complete .journey-number { background: var(--green-bg); color: var(--green); }.journey-list li.in_progress .journey-number { background: var(--blue-bg); color: var(--blue); }.journey-list li.blocked .journey-number, .journey-list li.overdue .journey-number { background: var(--red-bg); color: var(--red); }.journey-list strong, .journey-list small { display: block; }.journey-list > li > div > strong { font-size: 11px; }.journey-list small { color: var(--muted); font-size: 9px; }.journey-list p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.journey-date { text-align: right; }.journey-date strong { font-size: 9px; }.journey-list li > a { color: var(--green); font-size: 9px; font-weight: 750; text-align: right; }
.score-badge { min-width: 140px; padding: 10px 14px; border-radius: 11px; }.score-badge small, .score-badge strong { display: block; }.score-badge small { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }.score-badge strong { font-size: 21px; }.score-badge.green { background: var(--green-bg); color: var(--green); }.score-badge.yellow { background: var(--yellow-bg); color: var(--yellow); }.score-badge.red { background: var(--red-bg); color: var(--red); }
.checklist-panel, .corrective-panel { padding: 20px; }.checklist-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.checklist-results article { min-height: 68px; padding: 12px; display: grid; grid-template-columns: 35px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; }.result-mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: #edf1ef; color: var(--muted); font-size: 9px; font-weight: 850; }.checklist-results article.green .result-mark { background: var(--green-bg); color: var(--green); }.checklist-results article.red .result-mark { background: var(--red-bg); color: var(--red); }.checklist-results strong, .checklist-results small { display: block; }.checklist-results strong { font-size: 11px; }.checklist-results small { color: var(--muted); font-size: 9px; }.checklist-results a { color: var(--green); font-size: 9px; font-weight: 750; }.corrective-panel { margin-top: 15px; }.corrective-panel h2 { margin: 4px 0 15px; font-size: 16px; }.corrective-panel dl { margin: 0; display: flex; gap: 30px; }.corrective-panel dt { color: var(--muted); font-size: 9px; }.corrective-panel dd { margin: 2px 0; font-size: 10px; font-weight: 750; }

.expiry-legend { display: flex; gap: 13px; padding-top: 8px; color: var(--muted); font-size: 10px; }.expiry-legend span { display: flex; align-items: center; gap: 5px; }.expiry-legend i { width: 7px; height: 7px; border-radius: 50%; }.expiry-legend i.red { background: var(--red); }.expiry-legend i.yellow { background: #d0a328; }.expiry-legend i.amber { background: var(--amber); }
.horizon-tabs { margin-bottom: 15px; padding: 5px; display: inline-flex; flex-wrap: wrap; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: 11px; }.horizon-tabs a { padding: 8px 13px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }.horizon-tabs a.active { background: var(--forest); color: #fff; }.horizon-tabs a.red-tab.active { background: var(--red); }
.tracker-summary { margin-bottom: 15px; }.tracker-summary .kpi-card { min-height: 108px; }
.capacity-inline { margin: 0 0 15px; padding: 19px; }.capacity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }.capacity-grid article { padding: 13px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 10px; }.capacity-grid article.yellow { border-top-color: var(--yellow); }.capacity-grid article.red { border-top-color: var(--red); background: var(--red-bg); }.capacity-grid span, .capacity-grid strong, .capacity-grid small { display: block; }.capacity-grid span, .capacity-grid small { color: var(--muted); font-size: 9px; }.capacity-grid strong { margin: 5px 0; font-size: 14px; }
.budget-filter { padding: 15px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; align-items: end; }.budget-filter label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }.budget-filter .button { min-height: 41px; }

.report-filter { margin-bottom: 15px; }.date-field { display: flex; align-items: center; gap: 7px; }.date-field label { color: var(--muted); font-size: 10px; font-weight: 700; }.report-summary { margin-bottom: 16px; }.report-summary .kpi-card { min-height: 112px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 15px; }.report-section { padding: 18px 18px 0; }.report-actions { display: flex; gap: 6px; }.report-actions a { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); font-size: 9px; font-weight: 750; }
.report-list { list-style: none; margin: 0; padding: 0; }.report-list li { padding: 10px 2px; display: grid; grid-template-columns: 27px 1fr auto; gap: 8px; align-items: center; border-top: 1px solid var(--line); }.report-list li > span { color: #9ba6a1; font-size: 9px; }.report-list li > strong { font-size: 10px; }.report-list li > small { color: var(--muted); font-size: 8px; }.panel-footer-link { margin: 0 -18px; padding: 11px 18px; display: block; border-top: 1px solid var(--line); background: #fafcfb; color: var(--green); font-size: 10px; font-weight: 750; }
.report-catalog { padding: 19px; }.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }.catalog-grid a { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }.catalog-grid a:hover { border-color: #90afa6; background: #fbfdfc; }.catalog-grid strong, .catalog-grid small { display: block; }.catalog-grid strong { font-size: 11px; }.catalog-grid small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.search-page { padding: 20px; }.large-search { display: flex; gap: 8px; }.large-search input { min-height: 48px; }.search-count { margin: 20px 0 7px; color: var(--muted); font-size: 10px; }.search-result-list a { padding: 14px 7px; display: grid; grid-template-columns: 8px 1fr auto; gap: 13px; align-items: center; border-top: 1px solid var(--line); }.search-result-list strong, .search-result-list small { display: block; }.search-result-list strong { font-size: 12px; }.search-result-list small { color: var(--muted); font-size: 9px; }.search-result-list b { color: var(--green); font-size: 10px; }
.notification-page { overflow: hidden; }.notification-row { padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }.notification-row.unread { background: #fcfefd; }.notification-row:last-child { border-bottom: 0; }.severity-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--blue-bg); color: var(--blue); font-weight: 900; }.severity-icon.warning { background: var(--yellow-bg); color: var(--yellow); }.severity-icon.critical { background: var(--red-bg); color: var(--red); }.notification-row h2 { margin: 2px 0; font-size: 14px; }.notification-row p { margin: 0; color: var(--muted); font-size: 10px; }.notification-row small { color: #939d99; font-size: 8px; }
.empty-state { min-height: 450px; display: grid; place-items: center; align-content: center; text-align: center; }.empty-state h1, .empty-state h2 { margin: 4px 0; }.empty-state p { color: var(--muted); }.empty-state .button { margin-top: 10px; }.success-state .empty-icon { background: var(--green-bg); }
.empty-inline { padding: 20px; color: var(--muted); text-align: center; }
.user-cell { display: flex; align-items: center; gap: 9px; }.user-cell strong, .user-cell small { display: block; }.user-cell small { color: var(--muted); font-size: 9px; }

.settings-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 15px; }.master-panel, .threshold-panel { padding: 19px; }.master-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.master-list a { padding: 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; }.master-list a:hover { border-color: #99b4ac; }.master-list strong, .master-list small { display: block; }.master-list strong { font-size: 11px; }.master-list small { color: var(--muted); font-size: 9px; }.master-list b { color: var(--green); font-size: 9px; }.threshold-panel > p { color: var(--muted); font-size: 10px; }.threshold-panel .field-block { margin-bottom: 12px; }.threshold-preview { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 5px; }.threshold-preview span { padding: 5px 7px; border-radius: 6px; font-size: 8px; font-weight: 800; }.threshold-preview .green { background: var(--green-bg); color: var(--green); }.threshold-preview .yellow { background: var(--yellow-bg); color: var(--yellow); }.threshold-preview .red { background: var(--red-bg); color: var(--red); }
.audit-details { position: relative; }.audit-details summary { cursor: pointer; color: var(--green); font-weight: 750; }.audit-details > div { position: absolute; right: 0; z-index: 12; width: min(500px, 65vw); max-height: 360px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }.audit-details pre { white-space: pre-wrap; word-break: break-word; font-size: 9px; color: var(--muted); }

.import-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 15px; }.import-panel { padding: 19px; }.import-panel .panel-heading > div { display: flex; align-items: center; gap: 10px; }.step-number { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--forest); color: #fff; font-size: 12px; font-weight: 850; }.template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.template-grid a { padding: 11px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; }.template-grid a > span:nth-child(2) { min-width: 0; flex: 1; }.template-grid strong, .template-grid small { display: block; }.template-grid strong { font-size: 10px; }.template-grid small { color: var(--muted); font-size: 8px; }.template-grid b { color: var(--green); font-size: 8px; }
.upload-form { display: grid; gap: 12px; }.drop-zone { min-height: 120px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #9fb8b0; border-radius: 11px; background: #fafcfb; cursor: pointer; }.drop-zone:hover { background: var(--green-bg); }.drop-zone input { max-width: 210px; margin-top: 7px; font-size: 9px; }.drop-zone strong, .drop-zone small { display: block; }.drop-zone small { color: var(--muted); font-size: 9px; }.upload-mark { color: var(--green); font-size: 26px; }.import-preview .panel-heading { padding: 16px; margin: 0; }.import-values { display: flex; flex-wrap: wrap; gap: 5px 11px; }.import-values span { color: var(--muted); font-size: 8px; }.import-values b { margin-right: 4px; color: var(--ink); }.commit-bar { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); background: #fafcfb; }.commit-bar p { margin: 0; color: var(--muted); font-size: 9px; }

.auth-body { background: var(--forest); }.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(430px,.85fr); }.login-story { position: relative; padding: 46px clamp(35px, 6vw, 90px); display: flex; flex-direction: column; overflow: hidden; color: #fff; background: radial-gradient(circle at 10% 90%, rgba(241,178,126,.22), transparent 32%), radial-gradient(circle at 90% 10%, rgba(92,167,143,.2), transparent 30%), var(--forest); }.login-story::after { content: ""; position: absolute; width: 360px; height: 360px; right: -160px; bottom: -180px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }.brand-mark.large { width: 45px; height: 45px; }.login-brand strong { font-size: 19px; }.story-copy { max-width: 650px; margin: auto 0; }.story-copy h1 { max-width: 620px; margin: 12px 0 17px; font-size: clamp(39px, 5vw, 70px); line-height: .99; letter-spacing: -.055em; }.story-copy > p { max-width: 570px; color: #c2d5cf; font-size: 16px; }.story-points { margin-top: 31px; display: flex; gap: 12px; flex-wrap: wrap; }.story-points span { min-width: 135px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 11px; background: rgba(255,255,255,.05); color: #bcd0c9; font-size: 10px; }.story-points b { display: block; color: #fff; font-size: 17px; }.local-note { position: relative; z-index: 2; margin: 0; color: #8faea5; font-size: 10px; }.login-panel { display: grid; place-items: center; padding: 35px; background: #f5f7f6; }.login-card { width: min(410px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 22px 60px rgba(10,35,29,.13); }.login-card h2 { margin: 5px 0 4px; font-size: 29px; letter-spacing: -.03em; }.login-card > p { margin: 0 0 24px; color: var(--muted); }.login-card .field-block { margin-bottom: 15px; }.login-help { margin: 14px 0 0 !important; text-align: center; font-size: 9px; }.login-card .form-alert { font-size: 11px; }

@media (max-width: 1220px) {
  .kpi-grid.five, .kpi-grid.six { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .chart-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .expiry-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; left: -270px; width: 248px; transition: left .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.17); }.sidebar.open { left: 0; }.menu-button { display: block; }
  .topbar { padding: 0 20px; }.content { padding: 24px 20px 40px; }.global-search { width: min(420px, 48vw); }
  .dashboard-split, .dashboard-split.equal, .settings-grid { grid-template-columns: 1fr; }.report-summary.kpi-grid.six { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .login-shell { grid-template-columns: 1fr; }.login-story { min-height: 45vh; }.login-panel { min-height: 55vh; }.story-copy { margin: 60px 0; }
}
@media (max-width: 720px) {
  .topbar { height: auto; min-height: 68px; padding: 10px 14px; flex-wrap: wrap; gap: 9px; }.global-search { order: 3; width: 100%; }.top-actions { margin-left: auto; }.user-copy { display: none; }.content { padding: 20px 14px 35px; }
  .page-header, .profile-hero { display: block; }.header-actions, .profile-actions { margin-top: 15px; }.profile-actions { align-items: stretch; }.authorization-badge { flex: 1; }
  .kpi-grid.five, .kpi-grid.six, .kpi-grid.three, .kpi-grid.two, .report-summary.kpi-grid.six { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chart-grid, .report-grid, .profile-grid, .import-layout { grid-template-columns: 1fr; }.profile-section.wide { grid-column: auto; }
  .passport-detail-grid { grid-template-columns: 1fr; }
  .capacity-grid { grid-template-columns: 1fr; }.budget-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid { grid-template-columns: 1fr; }.full-width { grid-column: auto; }.check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .expiry-card-grid, .catalog-grid, .document-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-bar { align-items: stretch; }.search-field { min-width: 100%; }.form-control.compact { width: 100%; max-width: none; }
  .critical-banner { align-items: flex-start; flex-direction: column; }.master-list, .template-grid { grid-template-columns: 1fr; }
  .notification-row { grid-template-columns: 38px 1fr; }.notification-row form { grid-column: 2; }.commit-bar { align-items: stretch; flex-direction: column; }
  .onboarding-overview { grid-template-columns: 1fr; gap: 12px; }.journey-list li { grid-template-columns: 34px minmax(0,1fr) 90px; }.journey-list li > a { grid-column: 2; text-align: left; }.checklist-results { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .kpi-grid.five, .kpi-grid.six, .kpi-grid.three, .kpi-grid.two, .report-summary.kpi-grid.six { grid-template-columns: 1fr; }.kpi-card { min-height: 105px; }
  .expiry-card-grid, .catalog-grid, .document-list { grid-template-columns: 1fr; }.profile-heading { align-items: flex-start; }.profile-avatar { width: 49px; height: 49px; border-radius: 13px; font-size: 20px; }
  .budget-filter { grid-template-columns: 1fr; }
  .profile-actions { flex-direction: column; }.login-panel { padding: 20px; }.login-card { padding: 25px; }.login-story { padding: 30px 24px; }.story-copy h1 { font-size: 38px; }.story-points span { min-width: calc(50% - 6px); }.user-menu { display: none; }
}

@media print {
  .sidebar, .topbar, .header-actions, .filter-bar, .horizon-tabs, .pagination, .message-stack, .row-actions, .actions-column, .report-actions { display: none !important; }
  .app-shell { display: block; }.content { max-width: none; padding: 0; }.panel, .kpi-card { box-shadow: none; break-inside: avoid; }.page-header { min-height: 0; margin-bottom: 14px; }.data-table { min-width: 0; font-size: 8px; }.data-table th, .data-table td { padding: 6px; }.chart-grid { grid-template-columns: repeat(2,1fr); }.chart-card { min-height: 240px; }
}
