:root {
  --navy: #123a70;
  --navy-2: #0c2c58;
  --orange: #f58220;
  --ink: #172235;
  --muted: #718096;
  --line: #e6ebf2;
  --surface: #fff;
  --bg: #f4f7fb;
  --green: #169b62;
  --red: #d64545;
  --shadow: 0 12px 32px rgba(24, 47, 83, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; color: #fff; background: linear-gradient(180deg, var(--navy), var(--navy-2)); padding: 28px 18px; z-index: 10; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; padding: 0 6px 23px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; background: var(--orange); border-radius: 12px; font-size: 24px; font-weight: 900; }
.brand-logo { display: block; width: 100%; height: 92px; padding: 7px 10px; object-fit: contain; border-radius: 13px; background: rgba(255,255,255,.96); }
nav { overflow-y: auto; }
.nav-group { margin: 14px 10px 7px; color: #9bb2d0; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; color: #cbd8e9; background: transparent; padding: 11px 13px; border-radius: 10px; text-align: left; font-size: 13px; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.11); }
.nav-item.active { box-shadow: inset 3px 0 var(--orange); }
.nav-icon { width: 21px; text-align: center; font-size: 16px; }
.sidebar-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid rgba(255,255,255,.1); color: #c8d5e6; font-size: 12px; }
.sidebar-foot small { display: block; opacity: .55; margin-top: 6px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #36d399; margin-right: 6px; }
main { margin-left: 260px; min-height: 100vh; }
.topbar { height: 88px; padding: 16px 30px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5; }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
h1 { margin: 0; font-size: 24px; }
.top-actions, .profile { display: flex; align-items: center; gap: 12px; }
.profile { padding-left: 12px; border-left: 1px solid var(--line); }
.profile > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #e8f0fa; color: var(--navy); font-weight: 800; }
.profile strong, .profile small { display: block; font-size: 12px; }
.profile small { color: var(--muted); margin-top: 2px; }
.notification { width: 38px; height: 38px; border: 0; border-radius: 11px; color: var(--orange); background: #fff4e9; }
.logout-button { border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.install-button, .primary { border: 0; border-radius: 10px; padding: 10px 15px; color: #fff; background: var(--navy); font-weight: 700; }
.content { padding: 27px 30px 50px; max-width: 1600px; margin: auto; }
.welcome { padding: 25px 28px; border-radius: 18px; color: white; background: linear-gradient(120deg, var(--navy), #205b9c); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.welcome::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -100px; border: 45px solid rgba(245,130,32,.7); border-radius: 50%; }
.welcome h2 { margin: 0 0 8px; font-size: 23px; }
.welcome p { margin: 0; max-width: 650px; color: #d5e1ef; font-size: 13px; line-height: 1.65; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.metric { padding: 19px; }
.metric-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: #edf3fb; color: var(--navy); }
.metric strong { display: block; margin: 12px 0 5px; font-size: 21px; }
.trend { color: var(--green); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.panel { padding: 21px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head small { color: var(--muted); }
.cashflow-chart { height: 235px; display: flex; align-items: end; gap: 14px; padding: 15px 5px 64px; border-bottom: 1px solid var(--line); }
.bar-set { height: 100%; flex: 1; display: flex; gap: 4px; align-items: end; position: relative; }
.bar { flex: 1; min-width: 8px; border-radius: 5px 5px 0 0; background: var(--navy); }
.bar.out { background: #ffc18d; }
.bar.profit, .bar.cash { background: var(--green); }
.bar.loss { background: var(--red); }
.finance-bar small { position: absolute; bottom: -50px; left: -16px; right: -16px; color: var(--muted); font-size: 9px; text-align: center; white-space: nowrap; }
.bar-label { position: absolute; bottom: -29px; left: 0; right: 0; color: var(--muted); font-size: 9px; text-align: center; }
.chart-legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px 17px; font-size: 11px; color: var(--muted); }
.legend-box { width: 9px; height: 9px; display: inline-block; border-radius: 2px; margin-right: 5px; background: var(--navy); }
.legend-box.out { background: #ffc18d; }
.legend-box.profit { background: var(--green); }
.dashboard-period { margin: 16px 0 18px; display: grid; grid-template-columns: 1.3fr repeat(2, minmax(150px, .55fr)) auto; align-items: end; gap: 12px; }
.dashboard-period > div:first-child small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.period-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.dashboard-period label { color: var(--muted); font-size: 11px; }
.unit-list { display: grid; gap: 13px; }
.unit-row { display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 11px; }
.unit-row > span:first-child { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: #f2f5fa; }
.unit-row strong, .unit-row small { display: block; font-size: 12px; }
.unit-row small { color: var(--muted); margin-top: 3px; }
.unit-value { text-align: right; color: var(--green); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: left; }
.quick:hover { border-color: var(--orange); transform: translateY(-1px); }
.quick span { display: block; font-size: 21px; margin-bottom: 10px; }
.quick strong { font-size: 12px; }
.section-card { padding: 22px; }
.toolbar { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 18px; }
.search { flex: 1; max-width: 370px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfd; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px; color: var(--muted); background: #f7f9fc; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
td { padding: 13px 11px; border-bottom: 1px solid var(--line); }
.status { display: inline-block; padding: 5px 8px; border-radius: 20px; background: #e9f8f1; color: var(--green); font-size: 10px; font-weight: 700; }
.status.warn { background: #fff1e5; color: #c76515; }
.module-hero { margin-bottom: 18px; }
.module-hero h2 { margin: 0 0 7px; font-size: 20px; }
.module-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.empty-state { padding: 48px; text-align: center; color: var(--muted); }
.empty-state span { display: block; font-size: 40px; margin-bottom: 12px; }
.toast { position: fixed; right: 25px; bottom: 25px; padding: 12px 17px; color: white; background: var(--ink); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); transition: .2s; pointer-events: none; z-index: 20; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }
.mobile-only { display: none; }
.icon-button { border: 0; background: transparent; font-size: 22px; }
.auth-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 70% 20%, #2b67a7 0, var(--navy) 35%, #092248 100%); }
.auth-screen[hidden] { display: none; }
.auth-card { width: min(420px, 100%); padding: 34px; border-radius: 22px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.login-logo { display: block; width: 185px; height: 105px; margin: 0 auto 20px; object-fit: contain; }
.auth-card h2 { margin: 4px 0 7px; }
.auth-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
label { display: grid; gap: 6px; color: #4d5d72; font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 10px 12px; color: var(--ink); border: 1px solid #dbe2eb; border-radius: 9px; background: #fbfcfe; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,58,112,.08); }
.auth-card label { margin-bottom: 14px; }
.auth-card .primary { width: 100%; margin-top: 4px; }
.auth-card > small { display: block; margin-top: 14px; color: var(--muted); text-align: center; }
.form-error { min-height: 18px; color: var(--red); font-size: 11px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(7,22,44,.55); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(720px, 100%); max-height: 92vh; overflow-y: auto; padding: 25px; border-radius: 18px; background: white; box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.compact-modal { width: min(630px, 100%); }
.amount-positive { color: var(--green); font-weight: 700; }
.amount-negative { color: var(--red); font-weight: 700; }
.journal-balanced { color: var(--green); font-size: 10px; font-weight: 700; }
.pos-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.pos-cart { min-height: 240px; }
.pos-total { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; font-size: 12px; }
.total-row.grand { font-size: 17px; font-weight: 800; }
.stock-low { color: var(--red); font-weight: 700; }
.stock-ok { color: var(--green); font-weight: 700; }
.modal-head, .modal-actions { display: flex; align-items: center; justify-content: space-between; }
.modal-head { margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-close { border: 0; background: transparent; color: var(--muted); font-size: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.modal-actions { justify-content: flex-end; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); }
.secondary { border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; color: var(--ink); background: white; font-weight: 700; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.row-action { border: 0; border-radius: 7px; padding: 6px 9px; color: var(--navy); background: #edf3fb; font-size: 11px; font-weight: 700; }
a.row-action { display: inline-block; text-decoration: none; }
.document-actions { white-space: nowrap; }
.document-actions .row-action { margin: 2px; }
.payment-card { padding: 20px; border: 1px solid #dce5f2; border-radius: 18px; background: linear-gradient(145deg, #f8fbff, #fff); }
.payment-card > strong { display: block; margin: 12px 0 4px; font-size: 1.55rem; letter-spacing: .04em; color: var(--navy); }
.payment-qr { display: block; width: min(240px, 100%); margin: 18px auto 0; border-radius: 14px; }
.member-market { margin: 22px 0; }
.market-hero { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 28px; border-radius: 22px; color: white; background: linear-gradient(125deg, #0d3974, #1767b0 62%, #f7941d 150%); box-shadow: 0 18px 40px rgba(13,57,116,.18); }
.market-hero h2 { margin: 6px 0; font-size: clamp(22px, 3vw, 34px); }
.market-hero p { margin: 0; max-width: 650px; color: #dcecff; }
.market-search { min-width: min(380px, 100%); }
.market-search input { width: 100%; padding: 15px 18px; border: 0; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.service-grid { display: grid; grid-template-columns: repeat(7, minmax(110px,1fr)); gap: 12px; margin: 18px 0 28px; }
.service-tile { border: 1px solid var(--line); border-radius: 16px; padding: 17px 10px; background: white; color: var(--ink); text-align: center; box-shadow: 0 5px 18px rgba(31,55,86,.06); }
.service-tile:hover { transform: translateY(-3px); border-color: #f7941d; }
.service-tile span { display: block; margin-bottom: 9px; font-size: 28px; color: var(--navy); }
.service-tile strong, .service-tile small { display: block; }
.service-tile small { margin-top: 5px; color: var(--muted); }
.catalog-head { display: flex; justify-content: space-between; align-items: end; margin: 12px 2px; }
.catalog-head h2, .catalog-head p { margin: 0; }
.catalog-head p { color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(190px,1fr)); gap: 16px; }
.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 7px 24px rgba(31,55,86,.07); }
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,55,86,.13); }
.catalog-visual { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 145px; color: white; background: linear-gradient(135deg,#1b5da3,#68a8e4); }
.catalog-visual.catalog-umkm { background: linear-gradient(135deg,#ef7d16,#ffb24d); }
.catalog-visual span { font-size: 48px; }
.catalog-visual small { margin-top: 8px; }
.catalog-body { padding: 15px; }
.catalog-source { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #f18418; }
.catalog-body h3 { min-height: 44px; margin: 7px 0 3px; font-size: 16px; }
.catalog-body p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.catalog-body > strong { display: block; color: var(--navy); font-size: 17px; }
.catalog-body > strong small { font-weight: 500; color: var(--muted); }
.catalog-buy { width: 100%; margin-top: 13px; }
.info-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; border-radius: 22px; color: white; background: linear-gradient(125deg, #123a70, #1d65a7); box-shadow: var(--shadow); }
.info-hero span { color: #ffd39d; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.info-hero h2 { margin: 7px 0; font-size: clamp(24px, 4vw, 38px); }
.info-hero p { margin: 0; color: #d8e7f8; }
.info-hero img { width: 170px; height: 112px; object-fit: contain; padding: 10px; border-radius: 16px; background: white; }
.info-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.info-tab { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: white; color: var(--ink); font-weight: 800; }
.info-tab.active { color: white; background: var(--navy); border-color: var(--navy); }
.profile-layout, .info-grid, .news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card, .news-card { padding: 22px; }
.info-card h3, .news-card h3 { margin: 8px 0; }
.info-card p, .news-card p, .profile-layout p { color: var(--muted); line-height: 1.7; }
.info-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--orange); font-weight: 900; }
.clean-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.structure-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.structure-node { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 5px 18px rgba(31,55,86,.05); }
.structure-node strong { color: var(--navy); }
.structure-node p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.org-chart-pro { padding: 22px; margin-bottom: 18px; overflow-x: auto; }
.org-chart-canvas { position: relative; min-width: 1120px; padding: 0 12px 4px; }
.org-chart-title { text-align: center; margin-bottom: 18px; }
.org-chart-title span { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.org-chart-title h3 { margin: 5px 0 0; color: var(--navy); font-size: 24px; }
.org-top { display: flex; justify-content: center; margin-bottom: 44px; position: relative; }
.org-top::after { content: ""; position: absolute; left: 50%; bottom: -34px; width: 2px; height: 34px; background: #6d96d8; }
.org-layout { position: relative; display: grid; grid-template-columns: 300px 430px 330px; gap: 24px; align-items: start; }
.org-layout::before { content: ""; position: absolute; top: -22px; left: 150px; right: 165px; height: 2px; background: #6d96d8; }
.org-main, .org-side, .org-management { position: relative; border: 1px solid #f08a37; border-radius: 16px; padding: 18px; background: #fff1e6; box-shadow: 0 8px 22px rgba(31,55,86,.07); }
.org-main::before, .org-side::before { content: ""; position: absolute; left: 50%; top: -22px; width: 2px; height: 22px; background: #6d96d8; }
.org-main::after, .org-side::after, .org-management::after { content: ""; position: absolute; left: calc(50% - 5px); top: -6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #6d96d8; }
.org-side { min-height: 178px; }
.org-blue { border-color: #7fa6db; background: #e9f2ff; }
.org-green { border-color: #8cc587; background: #eaf8e7; }
.org-main h4, .org-side h4, .org-management h4 { margin: 0 0 12px; color: var(--navy); text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.org-side ol { margin: 0; padding-left: 0; list-style: none; color: var(--ink); line-height: 1.65; font-size: 13px; }
.org-box { min-width: 0; padding: 13px 14px; border: 1px solid #d9e3ef; border-radius: 12px; background: white; text-align: center; box-shadow: 0 5px 14px rgba(31,55,86,.06); }
.org-box small { display: block; color: var(--navy); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.org-box strong { display: block; margin-top: 6px; color: var(--ink); font-size: 18px; line-height: 1.25; word-break: normal; overflow-wrap: anywhere; }
.org-box span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.org-center { display: flex; justify-content: center; margin-bottom: 18px; }
.org-center .org-box { width: 230px; }
.org-pair { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 14px; }
.org-fields { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 10px; margin-top: 16px; }
.org-field { min-height: 54px; display: grid; place-items: center; padding: 10px 8px; border: 1px solid #f08a37; border-radius: 12px; background: white; text-align: center; color: var(--ink); font-weight: 800; font-size: 12px; line-height: 1.25; }
.org-management { width: 620px; margin: 46px auto 0; background: #fffbd8; border-color: #f4d82e; }
.org-management::before { content: ""; position: absolute; left: 50%; top: -46px; width: 2px; height: 46px; background: #6d96d8; }
.org-members { position: relative; width: 260px; margin: 36px auto 0; padding: 11px 16px; border-radius: 10px; background: #ff5b52; color: white; text-align: center; font-weight: 900; box-shadow: 0 8px 18px rgba(255,91,82,.22); }
.org-members::before { content: ""; position: absolute; left: 50%; top: -36px; width: 2px; height: 36px; background: #6d96d8; }
.org-members::after { content: ""; position: absolute; left: calc(50% - 5px); top: -6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #6d96d8; }
.org-modern { min-width: 1040px; padding: 4px 8px 10px; }
.org-modern-title { text-align: center; margin-bottom: 18px; }
.org-modern-title span { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.org-modern-title h3 { margin: 6px 0 0; color: var(--navy); font-size: 28px; }
.org-modern-top { display: flex; justify-content: center; }
.org-modern-top article { width: 310px; padding: 17px 20px; border-radius: 18px; color: white; background: linear-gradient(135deg, var(--navy), #276eb5); text-align: center; box-shadow: 0 14px 30px rgba(18,58,112,.22); }
.org-modern-top small, .org-role-card small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.org-modern-top strong { display: block; margin: 5px 0; font-size: 22px; }
.org-modern-top span { color: #dcecff; font-size: 13px; }
.org-modern-connector { width: 2px; height: 32px; margin: 0 auto; background: #7ea6de; position: relative; }
.org-modern-connector::after, .org-modern-down::after { content: ""; position: absolute; left: -5px; bottom: -1px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #7ea6de; }
.org-modern-columns { position: relative; display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 18px; padding-top: 24px; }
.org-modern-columns::before { content: ""; position: absolute; top: 0; left: 16%; right: 16%; height: 2px; background: #7ea6de; }
.org-modern-panel { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 32px rgba(31,55,86,.08); }
.org-modern-panel::before { content: ""; position: absolute; top: -24px; left: 50%; width: 2px; height: 24px; background: #7ea6de; }
.org-modern-panel h4 { margin: 0 0 14px; color: var(--navy); text-align: center; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.org-modern-panel.pembina { background: #eef6ff; border-color: #9bbde8; }
.org-modern-panel.pengawas { background: #edf9ec; border-color: #99cc94; }
.org-modern-panel.pengurus { background: #fff2e8; border-color: #f0a160; }
.org-modern-panel.pengelola { width: 560px; margin: 36px auto 0; background: #fffbe1; border-color: #f0d64a; }
.org-modern-list { display: grid; gap: 10px; }
.org-modern-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.org-role-card { min-height: 84px; padding: 13px 14px; border: 1px solid #dce5f0; border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 6px 18px rgba(31,55,86,.05); }
.org-role-card small { color: var(--navy); }
.org-role-card strong { display: block; margin: 6px 0 4px; color: var(--ink); font-size: 16px; line-height: 1.25; }
.org-role-card span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.org-role-card.empty { border-style: dashed; background: rgba(255,255,255,.55); }
.org-role-card.empty strong { color: #8b99aa; }
.org-modern-down { width: 2px; height: 36px; margin: 0 auto; background: #7ea6de; position: relative; }
.org-section { margin: 20px 0; }
.org-section h3 { margin: 0 0 12px; color: var(--navy); }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.person-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; text-align: center; box-shadow: 0 6px 20px rgba(31,55,86,.06); }
.person-card.muted { color: var(--muted); background: #f8fafc; }
.person-photo { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 12px; overflow: hidden; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--navy), #4f8ed0); font-weight: 900; font-size: 22px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card h4 { margin: 0 0 5px; }
.person-card strong { display: block; color: var(--orange); font-size: 12px; }
.person-card p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.news-card small { color: var(--orange); font-weight: 900; }
.info-editor-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.info-edit-row { display: grid; grid-template-columns: 86px 1fr 1fr auto; gap: 12px; align-items: end; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.info-edit-row .wide { grid-column: 2 / 4; }
.info-photo-preview { align-self: center; text-align: center; color: var(--muted); font-size: 11px; }
.info-photo-preview img, .info-photo-preview span { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 5px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #4f8ed0); color: white; font-weight: 900; object-fit: cover; }
.info-photo-preview.empty span { background: #dbe6f2; color: var(--navy); }
.row-action.danger { color: #b42318; background: #fff0ee; }
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-period { grid-template-columns: 1fr 1fr; }
  .dashboard-period > div:first-child, .period-actions { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .structure-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: .25s; box-shadow: 20px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  main { margin-left: 0; }
  .mobile-only { display: inline-block; }
  .topbar { height: 74px; padding: 12px 16px; }
  .topbar h1 { font-size: 18px; }
  .eyebrow, .profile div, .notification, .logout-button { display: none; }
  .content { padding: 17px 14px 40px; }
  .welcome { padding: 21px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dashboard-period { grid-template-columns: 1fr; }
  .dashboard-period > div:first-child, .period-actions { grid-column: auto; }
  .metric { padding: 14px; }
  .metric strong { font-size: 16px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .modal { padding: 19px; }
  .pos-layout { grid-template-columns: 1fr; }
  .market-hero { display: block; padding: 22px; }
  .market-search { min-width: 0; margin-top: 18px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .catalog-card { min-width: 240px; scroll-snap-align: start; }
  .info-hero { display: block; padding: 22px; }
  .info-hero img { margin-top: 18px; width: 145px; height: 96px; }
  .profile-layout, .info-grid, .news-grid, .structure-flow, .people-grid { grid-template-columns: 1fr; }
  .org-chart-pro { padding: 16px; }
  .info-edit-row { grid-template-columns: 1fr; }
  .info-edit-row .wide { grid-column: auto; }
}
