:root {
  --ink: #172033;
  --muted: #68758b;
  --line: #dfe5ef;
  --soft: #f3f6fb;
  --paper: #f3f6fb;
  --white: #fff;
  --teal: #2457d6;
  --teal-dark: #1949bf;
  --teal-soft: #eaf0ff;
  --lime: #ffb34d;
  --amber: #ed9b35;
  --amber-soft: #fff4d9;
  --blue: #2457d6;
  --red: #ce5d5d;
  --navy: #10233f;
  --shadow: 0 14px 40px rgba(20, 49, 94, .12);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.eyebrow.light { color: #a7d8cc; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--navy); background: var(--lime); font: 800 14px "Manrope"; }
.brand-mark.large { width: 52px; height: 52px; border-radius: 16px; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand { position: relative; overflow: hidden; min-height: 100vh; padding: 52px 8vw; color: white; background: linear-gradient(135deg, #10233f 0%, #183760 48%, #2457d6 100%); }
.login-brand::before { content: ""; position: absolute; inset: -20% -30% auto auto; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.login-copy { position: relative; z-index: 2; max-width: 600px; margin-top: 12vh; }
.login-copy h1 { margin: 0; max-width: 570px; font: 800 clamp(42px, 5.4vw, 76px)/1.02 "Manrope"; letter-spacing: -.045em; }
.login-copy > p:last-child { max-width: 500px; font-size: 18px; line-height: 1.7; color: #d4e8e4; }
.login-art { position: relative; width: 510px; height: 260px; margin: 55px auto 0; }
.people-card { position: absolute; z-index: 2; width: 160px; height: 190px; padding: 22px; border: 1px solid rgba(255,255,255,.22); border-radius: 24px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); box-shadow: 0 25px 50px rgba(0,0,0,.12); }
.people-card span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--navy); background: var(--lime); font-weight: 800; }
.people-card b, .people-card small { display: block; margin-top: 27px; }
.people-card small { margin-top: 5px; color: #bfded8; }
.card-one { left: 0; top: 35px; transform: rotate(-7deg); }
.card-two { left: 170px; top: 0; transform: rotate(2deg); }
.card-three { right: 0; top: 42px; transform: rotate(8deg); }
.orb { position: absolute; display: block; border-radius: 50%; background: var(--lime); opacity: .65; filter: blur(1px); }
.orb-a { width: 18px; height: 18px; left: 135px; top: 0; }
.orb-b { width: 11px; height: 11px; right: 120px; bottom: 10px; }
.orb-c { width: 7px; height: 7px; right: 5px; top: 20px; }
.login-foot { position: absolute; bottom: 36px; color: #a9d1ca; font-size: 13px; }
.login-panel { display: grid; min-height: 100vh; place-items: center; padding: 60px; background: #fff; }
.login-form-wrap { width: min(430px, 100%); }
.login-form-wrap h2 { margin: 0 0 10px; font: 800 34px/1.2 "Manrope"; letter-spacing: -.03em; }
.mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 50px; }
label { display: block; margin-top: 20px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; margin-top: 8px; padding: 13px 14px; color: var(--ink); border: 1px solid #ccd9d5; border-radius: 10px; outline: none; background: white; transition: .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12,119,109,.1); }
textarea { resize: vertical; min-height: 90px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 50px; }
.password-wrap .icon-button { position: absolute; top: 13px; right: 7px; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; }
.icon-button:hover { background: var(--soft); }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 24px; font-size: 13px; }
.login-options a { color: var(--teal); text-decoration: none; font-weight: 700; }
.check-label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.check-label input { width: auto; margin: 0; accent-color: var(--teal); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font-weight: 700; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(18,54,48,.08); }
.button.primary { color: white; border-color: var(--teal); background: var(--teal); }
.button.primary:hover { background: var(--teal-dark); }
.button.ghost { background: transparent; }
.button.danger { color: var(--red); }
.button.full { width: 100%; justify-content: space-between; padding: 14px 18px; }
.button.compact { padding: 10px 15px; font-size: 13px; }
.demo-box { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.demo-box > span { display: block; margin-bottom: 9px; color: #8b9795; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.demo-box button { width: 100%; padding: 10px 12px; text-align: left; border: 0; border-radius: 9px; background: transparent; }
.demo-box button:hover { background: var(--soft); }
.demo-box b, .demo-box small { display: block; }
.demo-box b { color: var(--ink); font-size: 13px; }
.demo-box small { margin-top: 2px; color: var(--muted); }

.app-shell { min-height: 100vh; display: block; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; width: 250px; padding: 28px 18px 20px; flex-direction: column; color: #dce6f5; background: var(--navy); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 25px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand b, .sidebar-brand small { display: block; }
.sidebar-brand b { color: white; font: 800 17px "Manrope"; }
.sidebar-brand small { margin-top: 2px; color: #8fb6b0; font-size: 10px; }
#main-nav { padding-top: 18px; }
.nav-label { margin: 24px 12px 8px; color: #719991; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; margin: 3px 0; padding: 12px 14px; color: #c8d2e1; text-align: left; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 600; }
.nav-item span { width: 20px; font-size: 18px; }
.nav-item em { margin-left: auto; padding: 2px 7px; color: var(--navy); border-radius: 10px; background: var(--lime); font-size: 10px; font-style: normal; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item.active { box-shadow: inset 3px 0 var(--lime); }
.sidebar-help { display: flex; align-items: center; gap: 10px; margin: auto 4px 14px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.07); }
.sidebar-help > span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--teal-dark); border-radius: 50%; background: var(--lime); font-weight: 800; }
.sidebar-help b, .sidebar-help small { display: block; }
.sidebar-help b { color: white; font-size: 11px; }
.sidebar-help small { margin-top: 2px; color: #92b9b2; font-size: 9px; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 14px 7px 0; border-top: 1px solid rgba(255,255,255,.09); }
.user-card .avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #174a43; background: #c8f04a; font-size: 11px; font-weight: 800; }
.user-card b, .user-card small { display: block; max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card b { color: white; font-size: 11px; }
.user-card small { margin-top: 3px; color: #8fb6b0; font-size: 9px; }
.user-card button { margin-left: auto; color: #9bc0ba; border: 0; background: transparent; }
.main-area { width: calc(100% - 250px); min-width: 0; margin-left: 250px; }
.topbar { position: sticky; z-index: 8; top: 0; display: flex; height: 88px; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(243,246,251,.95); backdrop-filter: blur(10px); }
.company-switcher { display: flex; align-items: center; gap: 10px; }
.company-switcher small, .company-switcher b { display: block; }
.company-switcher small { color: #91a09d; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.company-switcher b { margin-top: 2px; font-size: 13px; }
.company-logo { display: grid; width: 36px; height: 36px; place-items: center; color: var(--navy); border-radius: 10px; background: var(--lime); font: 800 14px "Manrope"; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.notification { position: relative; font-size: 19px; }
.notification em { position: absolute; top: 2px; right: 1px; display: grid; width: 15px; height: 15px; place-items: center; color: white; border-radius: 50%; background: var(--amber); font-size: 8px; font-style: normal; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 20px; }
.page-content { max-width: 1600px; margin: 0 auto; padding: 32px 42px 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.page-head > div:first-child { min-width: 0; }
.page-head h1 { margin: 0 0 7px; font: 800 30px "Manrope"; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); }
.head-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dashboard-hero { min-height: 245px; margin-bottom: 22px; padding: 38px 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; color: white; border-radius: 18px; background: linear-gradient(125deg,#183760 0%,#2457d6 65%,#4f7aeb 100%); box-shadow: 0 14px 40px rgba(20,49,94,.16); }
.dashboard-hero h2 { margin: 14px 0 12px; font: 800 clamp(28px, 4vw, 44px)/1.04 "Manrope"; letter-spacing: -.035em; }
.dashboard-hero p { max-width: 650px; margin: 0; color: #d7e2ff; line-height: 1.6; }
.dashboard-hero .pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.13); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.dashboard-hero .button { color: var(--teal); white-space: nowrap; border-color: white; background: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat-card::after { content: ""; position: absolute; right: -25px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--soft); }
.stat-card .stat-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: var(--teal); background: var(--teal-soft); }
.stat-card h3 { margin: 15px 0 3px; font: 800 28px "Manrope"; }
.stat-card p { margin: 0; color: var(--muted); font-size: 12px; }
.stat-card small { position: absolute; top: 22px; right: 18px; color: var(--teal); font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 3px 14px rgba(17,34,67,.04); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.card-header h2 { margin: 0; font: 800 16px "Manrope"; }
.text-button { color: var(--teal); border: 0; background: transparent; font-size: 12px; font-weight: 700; }
.request-list { padding: 2px 20px; }
.request-row { display: grid; grid-template-columns: 1.3fr .8fr .8fr .55fr; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf2f0; }
.request-row:last-child { border: 0; }
.person { display: flex; align-items: center; gap: 11px; }
.person-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: var(--teal-dark); background: var(--teal-soft); font-size: 11px; font-weight: 800; }
.person b, .person small { display: block; }
.person b { font-size: 12px; }
.person small, .request-row > div > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.request-row > div > b { display: block; font-size: 11px; }
.status { display: inline-flex; width: max-content; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 12px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.pending { color: #a96717; background: var(--amber-soft); }
.status.approved, .status.ready { color: #087469; background: var(--teal-soft); }
.status.draft { color: #657a91; background: #edf2f7; }
.status.rejected { color: #a44444; background: #fae7e7; }
.activity-list { padding: 9px 21px 17px; }
.activity-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; }
.activity-dot { display: grid; width: 28px; height: 28px; place-items: center; color: var(--teal); border-radius: 50%; background: var(--teal-soft); font-size: 11px; }
.activity-item b { display: block; font-size: 11px; }
.activity-item p { margin: 3px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.activity-item time { color: #9aa6a4; font-size: 9px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.quick-action { padding: 17px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: white; }
.quick-action span { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 18px; color: var(--teal); border-radius: 9px; background: var(--teal-soft); font-size: 17px; }
.quick-action b, .quick-action small { display: block; }
.quick-action b { font-size: 12px; }
.quick-action small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.filter-bar { display: flex; gap: 10px; margin-bottom: 17px; }
.search { position: relative; flex: 1; }
.search input { margin: 0; padding-left: 37px; }
.search span { position: absolute; top: 12px; left: 13px; color: var(--muted); }
.filter-bar select { width: 180px; margin: 0; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; color: #7d8c89; text-align: left; background: #f7faf8; font-size: 9px; letter-spacing: .08em; }
.data-table td { padding: 15px 16px; border-top: 1px solid #edf2f0; font-size: 11px; }
.data-table tr:hover td { background: #fcfefd; }
.data-table .button { padding: 7px 10px; font-size: 10px; }
.empty-state { padding: 70px 25px; text-align: center; }
.empty-state span { display: grid; width: 60px; height: 60px; margin: 0 auto 17px; place-items: center; color: var(--teal); border-radius: 18px; background: var(--teal-soft); font-size: 25px; }
.empty-state h3 { margin: 0 0 7px; font: 800 18px "Manrope"; }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.workflow-step { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.workflow-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 29px; right: -9px; color: #9bb0ac; }
.workflow-step span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--teal); border-radius: 8px; background: var(--teal-soft); font-size: 11px; font-weight: 800; }
.workflow-step b, .workflow-step small { display: block; }
.workflow-step b { margin-top: 11px; font-size: 11px; }
.workflow-step small { margin-top: 4px; color: var(--muted); font-size: 9px; }

.org-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.org-toolbar label { display: flex; width: auto; align-items: center; gap: 7px; margin: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; }
.org-toolbar label span { color: var(--muted); font-size: 10px; }
.org-toolbar input[type="color"] { width: 32px; height: 28px; margin: 0; padding: 2px; border: 0; }
.org-toolbar select { width: auto; min-width: 135px; margin: 0; padding: 9px 12px; font-size: 11px; }
.org-canvas-wrap { position: relative; min-height: 680px; overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 13px; background-color: #f8fafd; background-image: radial-gradient(#cbd6e7 1px, transparent 1px); background-size: 20px 20px; }
.org-free-canvas { position: relative; width: 1500px; height: 900px; min-width: 100%; }
.org-connectors { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.org-connectors path { fill: none; stroke: #91a3bd; stroke-width: 2; }
.org-free-node { position: absolute; z-index: 2; width: 210px; min-height: 104px; padding: 15px; text-align: left; border: 1px solid #cbd8ee; border-top: 4px solid var(--node-accent, var(--teal)); border-radius: 11px; background: var(--node-fill, white); box-shadow: 0 8px 22px rgba(16,35,63,.1); cursor: grab; user-select: none; touch-action: none; }
.org-free-node:active { cursor: grabbing; }
.org-free-node.selected { box-shadow: 0 0 0 3px var(--teal-soft), 0 10px 25px rgba(16,35,63,.14); }
.org-free-node.executive { color: white; border-color: var(--navy); background: var(--navy); }
.org-free-node .node-top { display: flex; align-items: center; gap: 9px; pointer-events: none; }
.org-free-node .avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: var(--navy); border-radius: 50%; background: var(--lime); font-size: 9px; font-weight: 800; }
.org-free-node b, .org-free-node small, .org-free-node em { display: block; pointer-events: none; }
.org-free-node b { font-size: 12px; line-height: 1.3; }
.org-free-node small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.org-free-node.executive small { color: #c8d2e1; }
.org-free-node em { margin-top: 10px; color: #7c8ba2; font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.org-free-node.executive em { color: #9fb0c8; }
.org-canvas-help { position: sticky; z-index: 4; left: 14px; bottom: 14px; display: inline-flex; gap: 8px; padding: 9px 12px; color: #405069; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 5px 15px rgba(16,35,63,.08); font-size: 10px; }
.org-chart { min-width: max-content; text-align: center; }
.org-chart ul { position: relative; display: flex; justify-content: center; padding-top: 35px; margin: 0; }
.org-chart li { position: relative; padding: 35px 8px 0; list-style: none; }
.org-chart li::before, .org-chart li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 35px; border-top: 1.5px solid #91aaa4; }
.org-chart li::after { right: auto; left: 50%; border-left: 1.5px solid #91aaa4; }
.org-chart li:only-child::before, .org-chart li:only-child::after { display: none; }
.org-chart li:only-child { padding-top: 0; }
.org-chart li:first-child::before, .org-chart li:last-child::after { border: 0; }
.org-chart li:last-child::before { border-right: 1.5px solid #91aaa4; border-radius: 0 7px 0 0; }
.org-chart li:first-child::after { border-radius: 7px 0 0 0; }
.org-chart ul ul::before { content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 35px; border-left: 1.5px solid #91aaa4; }
.org-node { width: 184px; min-height: 102px; padding: 15px; text-align: left; border: 1px solid #cfe0dc; border-top: 4px solid var(--node-accent, var(--teal)); border-radius: 12px; background: var(--node-fill, white); box-shadow: 0 8px 20px rgba(20,50,46,.07); }
.org-node.executive { width: 210px; color: white; border-color: var(--node-accent, var(--teal)); background: var(--node-accent, var(--teal)); }
.org-node .node-top { display: flex; align-items: center; gap: 9px; }
.org-node .avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: var(--teal-dark); border-radius: 9px; background: var(--lime); font-size: 9px; font-weight: 800; }
.org-node b, .org-node small, .org-node em { display: block; }
.org-node b { font-size: 11px; line-height: 1.3; }
.org-node small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.org-node.executive small { color: #cce5e0; }
.org-node em { margin-top: 10px; color: #8ca09c; font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.org-node.executive em { color: #b7d9d2; }
.org-chart.compact .org-node { width: 150px; min-height: 85px; padding: 11px; }
.org-chart.compact li { padding-left: 4px; padding-right: 4px; }
.org-chart.minimal .org-node { border: 0; border-left: 4px solid var(--node-accent); border-radius: 4px; box-shadow: none; }
.org-hint { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 15px; border-radius: 12px; color: #315f59; background: var(--teal-soft); font-size: 11px; line-height: 1.5; }

.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.company-card { padding: 20px; }
.company-card-top { display: flex; align-items: center; gap: 12px; }
.company-card .company-logo { width: 44px; height: 44px; }
.company-card h3 { margin: 0; font: 800 14px "Manrope"; }
.company-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.company-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.company-metrics div { padding: 12px; border-radius: 9px; background: var(--soft); }
.company-metrics b, .company-metrics small { display: block; }
.company-metrics b { font: 800 18px "Manrope"; }
.company-metrics small { color: var(--muted); font-size: 9px; }
.admin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.admin-summary div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-summary b, .admin-summary small { display: block; }
.admin-summary b { font: 800 22px "Manrope"; }
.admin-summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.setup-tabs { display: flex; gap: 6px; margin: 18px 0; padding: 5px; border-radius: 11px; background: var(--soft); }
.setup-tab { padding: 9px 13px; color: var(--muted); border: 0; border-radius: 8px; background: transparent; font-size: 11px; font-weight: 700; }
.setup-tab.active { color: white; background: var(--teal); }
.setup-panel { padding: 20px; }
.setup-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.setup-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }
.setup-item b, .setup-item small { display: block; }
.setup-item b { font-size: 11px; }
.setup-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.readonly-field { color: #61716e; background: #f1f5f3; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-card { padding: 22px; }
.settings-card h2 { margin: 0 0 5px; font: 800 16px "Manrope"; }
.settings-card > p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.toggle-row b, .toggle-row small { display: block; }
.toggle-row b { font-size: 11px; }
.toggle-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.switch { position: relative; width: 38px; height: 22px; border: 0; border-radius: 15px; background: #cdd8d5; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: .2s; }
.switch.on { background: var(--teal); }
.switch.on::after { left: 19px; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(7,31,28,.62); backdrop-filter: blur(3px); }
.modal { width: min(920px, 96vw); max-height: 92vh; overflow: auto; border-radius: 18px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal.small { width: min(520px, 96vw); }
.modal-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); background: white; }
.modal-head h2 { margin: 0; font: 800 20px "Manrope"; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--soft); }
.modal-body { padding: 24px; }
.modal-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--line); background: white; }
.form-steps { display: flex; margin-bottom: 28px; }
.form-step { position: relative; display: flex; flex: 1; align-items: center; gap: 8px; color: #91a09d; font-size: 10px; font-weight: 700; }
.form-step::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-step:last-child::after { display: none; }
.form-step span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--soft); }
.form-step.active { color: var(--teal); }
.form-step.active span { color: white; background: var(--teal); }
.form-section h3 { margin: 0 0 5px; font: 800 17px "Manrope"; }
.form-section > p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full-field { grid-column: 1 / -1; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 10px; }
.option-card { display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.option-card input { width: auto; margin: 0; accent-color: var(--teal); }
.review-block { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; }
.review-block h4 { margin: 0 0 12px; color: var(--teal); font-size: 10px; letter-spacing: .08em; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.review-grid small, .review-grid b { display: block; }
.review-grid small { color: var(--muted); font-size: 9px; }
.review-grid b { margin-top: 3px; font-size: 11px; }
.approval-detail { display: grid; grid-template-columns: 1fr 260px; gap: 22px; }
.approval-timeline { padding: 16px; border-radius: 12px; background: var(--soft); }
.timeline-item { position: relative; padding: 0 0 22px 25px; border-left: 1px solid #bfd0cc; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; top: 0; left: -5px; width: 9px; height: 9px; border: 2px solid var(--soft); border-radius: 50%; background: var(--teal); }
.timeline-item.pending::before { background: var(--amber); }
.timeline-item b, .timeline-item small { display: block; }
.timeline-item b { font-size: 10px; }
.timeline-item small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.email-preview { margin-top: 15px; padding: 15px; border: 1px dashed #b9ccc7; border-radius: 10px; background: #fbfdfc; font-size: 10px; line-height: 1.55; }
.email-preview b { color: var(--teal); }
.toast { position: fixed; z-index: 100; right: 25px; bottom: 25px; max-width: 360px; padding: 14px 18px; color: white; border-radius: 11px; background: #173f3a; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .page-head { align-items: flex-start; flex-direction: column; }
  .head-actions { justify-content: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr 1fr; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .request-row { grid-template-columns: 1.2fr .8fr .6fr; }
  .request-row > div:nth-child(2) { display: none; }
}
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { padding: 30px; }
  .mobile-brand { display: flex; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: translateX(0); }
  .main-area { width: 100%; margin-left: 0; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 18px; }
  .company-switcher { display: none; }
  .page-content { padding: 24px 18px 60px; }
  .dashboard-hero { display: block; padding: 30px 25px; }
  .dashboard-hero .button { margin-top: 24px; }
  .stats-grid, .settings-grid, .company-grid, .admin-summary, .setup-list { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow-step::after { display: none; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar select { width: calc(50% - 5px); }
  .table-card { overflow-x: auto; }
  .data-table { min-width: 760px; }
  .quick-actions { grid-template-columns: 1fr; }
  .form-grid, .approval-detail { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .top-actions .notification { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .stats-grid, .workflow { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .form-step { font-size: 0; }
  .review-grid { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden; }
  #org-print-area, #org-print-area * { visibility: visible; }
  #org-print-area { position: absolute; inset: 0; width: 100%; padding: 20px; background: white; }
  .org-canvas-wrap { overflow: visible; border: 0; background: white; }
  .org-chart { transform: scale(.72); transform-origin: top left; }
  .org-free-canvas { transform: scale(.65); transform-origin: top left; }
  .org-canvas-help { display: none; }
}
