:root {
    --ink: #111827;
    --muted: #667085;
    --line: #dde3ea;
    --paper: #f4f6f8;
    --card: #ffffff;
    --side: #121821;
    --side-2: #1b2430;
    --accent: #14b8a6;
    --accent-2: #f59e0b;
    --shadow: 0 18px 38px rgba(16, 24, 40, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.app-shell {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    min-height: 100vh;
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #f8fafc;
    background: linear-gradient(180deg, rgba(20, 184, 166, .10), transparent 36%), linear-gradient(180deg, var(--side), #0d1117);
    padding: 15px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.brand-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(20, 184, 166, .55);
    border-radius: 8px;
    background: #0f766e;
    font-weight: 900;
}
.brand-logo {
    display: block;
    width: 58px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; }
.brand span { color: #a9b4c2; font-size: 11px; }
.menu { display: grid; gap: 4px; }
.menu a {
    display: flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #dce3ea;
    padding: 0 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.menu a.active, .menu a:hover {
    border-color: rgba(20, 184, 166, .35);
    background: rgba(20, 184, 166, .12);
    color: #ffffff;
}
.user-box {
    display: grid;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    padding: 10px;
}
.user-box { margin-top: auto; }
.user-box span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.user-box small { color: #a9b4c2; }
.print-button, .export-button, .logout-button, .panel-actions button, .top-actions a, .top-actions button, .mini-button, .hero-actions a {
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--side-2);
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.print-button, .panel-actions button:first-child, .top-actions button:first-of-type { background: var(--accent); }
.export-button { background: #2563eb; }
.logout-button {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
}
.logout-button:hover { color: #fff; background: rgba(239, 68, 68, .35); }

.content { min-width: 0; padding: 16px; }
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.topbar p, .panel p {
    margin: 0 0 5px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { font-size: 30px; }
.top-actions, .panel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
select, input, textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    padding: 0 12px;
}
textarea {
    min-height: 96px;
    padding: 11px 12px;
    resize: vertical;
}

.summary-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.25fr) repeat(4, minmax(150px, .55fr));
    gap: 14px;
    align-items: stretch;
}
.site-summary, .metric-card, .module-card, .panel, .team-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.site-summary { grid-row: span 2; padding: 20px; }
.eyebrow {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}
.summary-content {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
}
.pie-chart {
    display: grid;
    width: 145px;
    height: 145px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0 58%, var(--accent-2) 58% 75%, #e5e7eb 75% 100%);
}
.pie-chart span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    font-weight: 900;
}
dl, dd { margin: 0; }
.site-summary dl { display: grid; gap: 9px; }
.site-summary dl div, .team-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
dt { color: var(--muted); }
dd { font-weight: 900; }
.metric-card {
    display: grid;
    align-content: center;
    min-height: 118px;
    padding: 18px;
}
.metric-card span { color: var(--muted); font-weight: 800; }
.metric-card strong { margin-top: 6px; font-size: 31px; line-height: 1; }
.metric-card small { margin-top: 8px; color: var(--muted); }

.module-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(118px, 1fr));
    gap: 9px;
    margin: 12px 0;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    min-height: 160px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .18), transparent 32%),
        linear-gradient(135deg, #ffffff, #f8fafc 58%, #eef2f6);
    box-shadow: var(--shadow);
    padding: 22px;
}
.dashboard-hero.ops-hero {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .94), rgba(17, 24, 39, .96)),
        linear-gradient(135deg, #0f766e, #111827);
    color: #fff;
}
.dashboard-hero.ops-hero .eyebrow { color: #99f6e4; }
.dashboard-hero.ops-hero h1 { color: #fff; }
.dashboard-hero.ops-hero p { color: #d1d5db; }
.hero-logo {
    display: block;
    width: 150px;
    max-width: 100%;
    margin-bottom: 12px;
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .24);
}
.dashboard-hero h1 {
    max-width: 780px;
    margin-bottom: 8px;
    color: #101828;
    font-size: 32px;
    line-height: 1.12;
}
.dashboard-hero p {
    max-width: 680px;
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.45;
}
.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.hero-actions a:first-child { background: var(--accent); }
.best-employee-card {
    display: grid;
    gap: 6px;
    width: 240px;
    border: 1px solid rgba(153, 246, 228, .35);
    border-radius: 8px;
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .20);
    padding: 13px;
}
.best-employee-card span {
    color: #99f6e4;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.best-employee-card strong {
    color: #ffffff;
    font-size: 19px;
    line-height: 1.15;
}
.best-employee-card small {
    color: #d1fae5;
    font-size: 12px;
    font-weight: 800;
}
.best-employee-card div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: end;
    border-top: 1px solid rgba(255, 255, 255, .16);
    margin-top: 4px;
    padding-top: 9px;
}
.best-employee-card b {
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}
.best-employee-card em {
    color: #ccfbf1;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
    text-transform: uppercase;
}

.site-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 10px;
    margin: 12px 0;
}
.site-blue-card {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(147, 197, 253, .72);
    border-radius: 8px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 28%, rgba(20, 184, 166, .36), transparent 28%),
        linear-gradient(135deg, #0f4c99, #0b2d68 64%, #061a3c);
    box-shadow: var(--shadow);
    padding: 12px;
    text-decoration: none;
}
.site-blue-card:hover {
    color: #fff;
    transform: translateY(-2px);
}
.site-blue-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    padding-bottom: 8px;
}
.site-blue-head h2 {
    color: #fff;
    font-size: 17px;
    line-height: 1.1;
}
.site-blue-head span {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.site-blue-body {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.site-donut-wrap {
    display: grid;
    justify-items: center;
    gap: 7px;
}
.mini-pie {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, .74);
    border-radius: 50%;
    background:
        radial-gradient(circle, #0b2d68 0 45%, transparent 46%),
        conic-gradient(#22c55e 0 calc(var(--active) * 1%), #f59e0b 0 calc((var(--active) + var(--isolir)) * 1%), #ef4444 0 calc((var(--active) + var(--isolir) + var(--dismantle)) * 1%), #60a5fa 0 100%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .20);
}
.mini-pie span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #0b2d68;
    font-size: 13px;
    font-weight: 900;
}
.site-donut-legend {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 4px 6px;
    width: 100%;
    color: #dbeafe;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.1;
}
.site-donut-legend b {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 1px;
}
.legend-green { background: #22c55e; }
.legend-yellow { background: #f59e0b; }
.legend-red { background: #ef4444; }
.site-blue-card dl {
    display: grid;
    gap: 5px;
}
.site-blue-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.site-blue-card dt {
    color: #bfdbfe;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.site-blue-card dd {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.expand-tools-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    margin: 12px 0;
    padding: 14px;
}
.kmz-dashboard-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    margin: 12px 0;
    padding: 14px;
}
.kmz-site-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 10px;
}
.kmz-site-card {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff, #eef6ff);
    padding: 12px;
}
.kmz-site-card h3 {
    border-radius: 8px 8px 0 0;
    color: #fff;
    background: linear-gradient(135deg, #0f4c99, #0b2d68);
    margin: -12px -12px 10px;
    padding: 9px 12px;
    font-size: 15px;
    text-align: center;
}
.kmz-map-preview {
    display: grid;
    min-height: 118px;
    place-items: center;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background:
        linear-gradient(rgba(255, 255, 255, .30), rgba(255, 255, 255, .30)),
        linear-gradient(135deg, #dbeafe, #bbf7d0);
}
.kmz-map-preview span {
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 8px;
    color: #111827;
    background: rgba(255, 255, 255, .86);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 900;
}
.kmz-card-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.mini-button.disabled {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
}
.kmz-popup {
    min-width: 260px;
    color: #111827;
}
.kmz-popup strong {
    display: block;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
    padding-bottom: 7px;
    font-size: 15px;
}
.kmz-popup table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
}
.kmz-popup th,
.kmz-popup td {
    border-bottom: 1px solid #eef2f6;
    padding: 6px 4px;
    text-align: left;
    vertical-align: top;
}
.kmz-popup th {
    width: 118px;
    color: #475467;
    background: transparent;
    font-size: 11px;
    text-transform: uppercase;
}
.kmz-popup td {
    font-weight: 800;
}

.clean-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.clean-metrics article, .clean-metrics .metric-link, .chart-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.clean-metrics article, .clean-metrics .metric-link {
    display: grid;
    gap: 6px;
    min-height: 128px;
    padding: 20px;
}
.metric-link, .chart-link {
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.metric-link:hover, .chart-link:hover, .module-card:hover {
    border-color: rgba(20, 184, 166, .45);
    box-shadow: 0 20px 44px rgba(15, 118, 110, .16);
    color: inherit;
    transform: translateY(-2px);
}
.metric-link.warning strong { color: #b45309; }
.metric-link.dark {
    color: #fff;
    border-color: #111827;
    background: linear-gradient(135deg, #111827, #0f766e);
}
.metric-link.dark span, .metric-link.dark small { color: #d1fae5; }
.clean-metrics span, .clean-metrics small { color: var(--muted); }
.clean-metrics span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.clean-metrics strong {
    font-size: 36px;
    line-height: 1;
}
.chart-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.2fr) repeat(2, minmax(260px, .75fr));
    gap: 14px;
}
.chart-card {
    min-height: 330px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}
.chart-card::after {
    content: "";
    position: absolute;
    right: -58px;
    top: -58px;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: rgba(20, 184, 166, .08);
    pointer-events: none;
}
.capacity-chart {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    min-height: 230px;
}
.donut {
    display: grid;
    width: 205px;
    height: 205px;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 51%, transparent 52%),
        conic-gradient(var(--accent) 0 calc(var(--used) * 1%), #94a3b8 0 86%, #ef4444 86% 100%);
}
.donut span {
    font-size: 36px;
    font-weight: 900;
}
.donut small {
    color: var(--muted);
    font-weight: 800;
}
.donut.customer-donut {
    background:
        radial-gradient(circle, #fff 0 49%, transparent 50%),
        conic-gradient(var(--accent) 0 calc(var(--active) * 1%), #f59e0b 0 calc((var(--active) + var(--isolir)) * 1%), #ef4444 0 calc((var(--active) + var(--isolir) + var(--dismantle)) * 1%), #e5e7eb 0 100%);
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .06), 0 18px 34px rgba(15, 118, 110, .18);
}
.chart-legend {
    display: grid;
    gap: 14px;
}
.chart-legend div {
    display: grid;
    grid-template-columns: 12px max-content 1fr;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}
.chart-legend i {
    width: 11px;
    height: 38px;
    border-radius: 999px;
    background: var(--accent);
}
.chart-legend i.ready { background: #94a3b8; }
.chart-legend i.full { background: #ef4444; }
.chart-legend strong { font-size: 24px; }
.chart-legend span { color: var(--muted); }
.chart-legend.modern {
    gap: 10px;
}
.chart-legend.modern div {
    grid-template-columns: 12px minmax(0, 1fr) max-content;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    padding: 12px;
}
.chart-legend.modern i {
    height: 28px;
}
.chart-legend.modern span {
    font-weight: 800;
}
.chart-legend.modern strong {
    font-size: 22px;
}
.status-bars, .team-bars {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.status-bars div, .team-bars div {
    display: grid;
    grid-template-columns: 1fr max-content;
    gap: 8px;
    align-items: center;
}
.status-bars span, .team-bars span { color: var(--muted); font-weight: 800; }
.status-bars i, .team-bars i {
    grid-column: 1 / -1;
    display: block;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #0f766e);
}
.team-bars i { background: linear-gradient(90deg, #334155, var(--accent)); }
.rank-bars, .package-bars {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}
.rank-row {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) max-content;
    gap: 8px;
    align-items: center;
}
.rank-row span, .package-row span {
    min-width: 0;
    color: #475467;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}
.rank-row strong, .package-row strong {
    font-size: 15px;
}
.rank-row i, .package-row i {
    grid-column: 1 / -1;
    display: block;
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}
.rank-row b, .package-row b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, var(--accent));
    box-shadow: 0 8px 18px rgba(20, 184, 166, .26);
}
.package-row {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    padding: 12px;
}
.package-row div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 10px;
    align-items: start;
}
.package-row b {
    background: linear-gradient(90deg, #1e3a8a, #0ea5e9, var(--accent));
}
.module-card {
    display: grid;
    gap: 6px;
    min-height: 104px;
    color: var(--ink);
    padding: 11px;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.module-card span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--side-2);
    font-size: 12px;
    font-weight: 900;
}
.module-card small, .panel-note { color: var(--muted); }
.module-card strong { font-size: 13px; line-height: 1.2; }
.module-card small { font-size: 11.5px; line-height: 1.35; }
.dashboard-shortcuts {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    margin: 0;
}
.database-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}
.setting-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}
.settings-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 18px;
    align-items: start;
}
.setting-panel {
    min-width: 0;
}
.setting-panel .panel-head {
    align-items: flex-start;
}
.setting-panel h2 {
    line-height: 1.15;
}
.setting-password-form {
    grid-template-columns: minmax(260px, 1fr) minmax(220px, .75fr);
    align-items: end;
}
.setting-password-form .form-actions {
    align-self: end;
}
.setting-employee-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.setting-employee-form label:last-of-type,
.setting-employee-form .form-actions {
    grid-column: 1 / -1;
}
.setting-employee-form input,
.setting-employee-form select,
.setting-password-form input,
.setting-password-form select {
    width: 100%;
    min-width: 0;
}
.database-grid .module-card {
    min-height: 112px;
}

.panel { margin-top: 16px; padding: 20px; }
.alert {
    margin-bottom: 14px;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 800;
}
.alert.success {
    border: 1px solid rgba(20, 184, 166, .28);
    color: #0f766e;
    background: rgba(20, 184, 166, .10);
}
.alert.danger {
    border: 1px solid rgba(239, 68, 68, .28);
    color: #b91c1c;
    background: rgba(239, 68, 68, .10);
}
.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.panel-head h2 { font-size: 21px; }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.filter-grid.customer-filter {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
}
.filter-grid.compact {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
}
.form-grid label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 900;
}
.form-grid label span {
    font-size: 12px;
    text-transform: uppercase;
}
.form-grid .print-button {
    width: max-content;
}
.form-wide {
    grid-column: 1 / -1;
}
.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.locked-employee {
    display: grid;
    gap: 2px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 9px 12px;
}
.locked-employee span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.locked-employee strong {
    line-height: 1.2;
}
.locked-employee small {
    color: var(--muted);
}
.attendance-photo {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef2f6;
}
.photo-empty {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #f8fafc;
    font-weight: 900;
}
.note-cell {
    min-width: 150px;
    max-width: 260px;
    white-space: normal;
    color: var(--text);
    line-height: 1.45;
}
.upload-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) max-content;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}
.upload-panel label span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-weight: 800;
}
.upload-panel input {
    padding-top: 9px;
}
.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}
table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}
th, td {
    border-bottom: 1px solid var(--line);
    padding: 13px 12px;
    text-align: left;
    vertical-align: middle;
}
th {
    color: #475467;
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
}
.click-table tbody tr {
    cursor: pointer;
}
.click-table tbody tr:hover {
    background: #f0fdfa;
}
.status-pill, .odp-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    background: #eef2f6;
    font-size: 12px;
    font-weight: 900;
}
.odp-status.ready { color: #065f46; background: #d1fae5; }
.odp-status.warning { color: #92400e; background: #fef3c7; }
.odp-status.full, .odp-status.overload { color: #991b1b; background: #fee2e2; }
.odp-status.empty { color: #475467; background: #eef2f6; }

.odp-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 14px;
}
.odp-filter {
    display: grid;
    align-content: start;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px;
}
.odp-filter label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.split-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
}
.update-list { display: grid; gap: 10px; margin-top: 14px; }
.update-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}
.update-list span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}
.finance-card {
    display: grid;
    align-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #1f2937, #0f766e);
    padding: 18px;
}
.finance-card strong { margin: 9px 0; font-size: 32px; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.team-card { padding: 16px; }
.team-card > span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}
.team-card h3 { margin: 8px 0 14px; font-size: 22px; }
.team-card dl { display: grid; gap: 8px; }
.bar {
    height: 9px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}
.bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}
.flow-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}
.flow-list li { padding-left: 7px; }
.flow-list span { display: block; margin-top: 3px; color: var(--muted); }

@media (max-width: 1180px) {
    .summary-grid, .module-grid, .database-grid, .clean-metrics, .chart-grid, .site-dashboard-grid, .kmz-site-grid { grid-template-columns: repeat(2, 1fr); }
    .site-summary { grid-column: 1 / -1; }
    .chart-focus { grid-column: 1 / -1; }
    .team-grid, .split-panel, .odp-layout, .settings-account-grid { grid-template-columns: 1fr; }
    .setting-password-form {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 780px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .content { padding: 16px; }
    .topbar, .panel-head, .summary-content, .dashboard-hero, .capacity-chart { display: grid; grid-template-columns: 1fr; }
    .dashboard-hero { padding: 24px; }
    .dashboard-hero h1 { font-size: 34px; }
    .best-employee-card { width: 100%; }
    .hero-actions { justify-content: stretch; }
    .hero-actions a { width: 100%; }
    .site-blue-body { grid-template-columns: 110px minmax(0, 1fr); }
    .mini-pie { width: 100px; height: 100px; }
    .summary-grid, .module-grid, .filter-grid, .filter-grid.compact, .form-grid, .database-grid, .clean-metrics, .chart-grid, .site-dashboard-grid, .kmz-site-grid, .settings-account-grid, .setting-password-form, .setting-employee-form { grid-template-columns: 1fr; }
}
@media print {
    .sidebar, .top-actions, .panel-actions, .module-grid, .print-toolbar { display: none; }
    .app-shell { display: block; }
    .content { padding: 0; }
    .panel, .site-summary, .metric-card { box-shadow: none; }
    .print-report-body { background: #fff; }
    .print-report { width: 100%; margin: 0; padding: 0; }
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 16%, rgba(14, 165, 233, .24), transparent 28%),
        radial-gradient(circle at 72% 68%, rgba(20, 184, 166, .18), transparent 26%),
        linear-gradient(135deg, #0d1117, #123f8c 48%, #f4f6f8 48%);
}
.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 28px;
    align-items: center;
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 0;
}
.login-hero {
    color: #fff;
}
.login-main-logo {
    display: block;
    width: min(360px, 78vw);
    margin-bottom: 28px;
    border-radius: 18px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, .34);
}
.login-hero span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.login-hero h1 {
    max-width: 660px;
    margin: 12px 0 14px;
    font-size: 54px;
    line-height: 1.02;
}
.login-hero p {
    max-width: 600px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.6;
}
.login-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.login-stats div {
    min-width: 138px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    padding: 16px;
}
.login-stats strong, .login-stats small { display: block; }
.login-stats strong { font-size: 28px; }
.login-stats small { color: #a9b4c2; }
.login-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 24px;
}
.brand.compact {
    color: var(--ink);
    border-bottom-color: var(--line);
    margin-bottom: 18px;
}
.brand.compact .brand-logo {
    width: 88px;
    height: 46px;
}
.brand.compact span { color: var(--muted); }
.login-form {
    display: grid;
    gap: 14px;
}
.login-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 900;
}
.login-form input { min-height: 48px; }
.login-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}
@media (max-width: 860px) {
    .login-body { background: #f4f6f8; }
    .login-shell { grid-template-columns: 1fr; }
    .login-hero { color: var(--ink); }
    .login-hero p { color: var(--muted); }
}

.public-body {
    color: #111827;
    background: #f7fafc;
}
.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 24px;
    align-items: center;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    padding: 14px clamp(18px, 4vw, 56px);
}
.public-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #111827;
    text-decoration: none;
    font-weight: 900;
}
.public-brand img {
    width: 92px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}
.public-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.public-nav a {
    border-radius: 8px;
    color: #475467;
    padding: 10px 12px;
    text-decoration: none;
    font-weight: 900;
}
.public-nav a:hover {
    color: #0f766e;
    background: #ecfdf5;
}
.public-login,
.public-actions a,
.public-cta a {
    border-radius: 8px;
    color: #fff;
    background: #0f766e;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 900;
    text-align: center;
}
.public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
    gap: 32px;
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(32px, 6vw, 82px) clamp(18px, 5vw, 72px);
    background:
        radial-gradient(circle at 82% 20%, rgba(245, 158, 11, .30), transparent 30%),
        radial-gradient(circle at 70% 86%, rgba(14, 165, 233, .25), transparent 34%),
        linear-gradient(120deg, rgba(15, 118, 110, .94), rgba(17, 24, 39, .96)),
        linear-gradient(135deg, #0f766e, #111827);
    color: #fff;
}
.public-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: #99f6e4;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.public-hero h1 {
    max-width: 820px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .98;
}
.public-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.7;
}
.public-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.public-actions a:nth-child(2) {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
}
.public-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 12px;
    max-width: 680px;
    margin-top: 34px;
}
.public-trust div,
.public-network-card,
.public-package-grid article,
.coverage-panel,
.public-flow article,
.public-cta {
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.public-trust div {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    padding: 16px;
}
.public-trust strong,
.public-trust span {
    display: block;
}
.public-trust strong {
    font-size: 30px;
}
.public-trust span {
    color: #bfdbfe;
    font-weight: 800;
}
.public-network-card {
    display: grid;
    gap: 22px;
    color: #111827;
    padding: 26px;
}
.promo-card {
    display: grid;
    gap: 14px;
    align-content: center;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(14, 165, 233, .92), rgba(15, 118, 110, .92) 48%, rgba(17, 24, 39, .94)),
        linear-gradient(135deg, #0ea5e9, #0f766e);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
    padding: clamp(24px, 4vw, 38px);
}
.promo-card::before {
    content: "";
    position: absolute;
    right: -76px;
    top: -76px;
    width: 210px;
    aspect-ratio: 1;
    border: 28px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}
.promo-card::after {
    content: "PROMO";
    position: absolute;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}
.promo-card span,
.promo-card h2,
.promo-card p,
.promo-card strong,
.promo-card a {
    position: relative;
    z-index: 1;
}
.promo-card span {
    width: max-content;
    border-radius: 8px;
    color: #111827;
    background: #facc15;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.promo-card h2 {
    max-width: 430px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: .95;
}
.promo-card p {
    max-width: 420px;
    margin: 0;
    color: #dff7ff;
    line-height: 1.65;
}
.promo-card strong {
    display: block;
    width: max-content;
    border-radius: 8px;
    color: #111827;
    background: #fff;
    padding: 12px 14px;
    font-size: 24px;
}
.promo-card a {
    width: max-content;
    border-radius: 8px;
    color: #fff;
    background: #111827;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 900;
}
.network-ring {
    display: grid;
    width: min(280px, 100%);
    aspect-ratio: 1;
    place-items: center;
    align-content: center;
    justify-self: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 52%, transparent 53%),
        conic-gradient(#14b8a6 0 72%, #e5e7eb 0 100%);
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .06), 0 22px 48px rgba(20, 184, 166, .18);
}
.network-ring span {
    font-size: 54px;
    font-weight: 900;
}
.network-ring small {
    color: #667085;
    font-weight: 900;
}
.network-list {
    display: grid;
    gap: 10px;
}
.network-list div,
.coverage-panel a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px;
}
.network-list span,
.coverage-panel span {
    color: #667085;
    font-weight: 900;
}
.public-section {
    padding: clamp(36px, 6vw, 78px) clamp(18px, 5vw, 72px);
}
.public-section-head {
    max-width: 760px;
    margin-bottom: 24px;
}
.public-section-head span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.public-section-head p {
    margin: 12px 0 0;
    color: #667085;
    line-height: 1.65;
}
.public-section h2,
.public-cta h2 {
    margin-top: 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
}
.public-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.public-package-grid article {
    display: grid;
    gap: 12px;
    min-height: 260px;
    padding: 24px;
}
.public-package-grid article span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.public-package-grid article h3 {
    font-size: 30px;
}
.public-package-grid article p,
.public-split p,
.public-flow p,
.public-cta p {
    color: #667085;
    line-height: 1.65;
}
.public-package-grid article strong {
    align-self: end;
    font-size: 22px;
}
.public-package-grid .featured {
    color: #fff;
    border-color: #0f766e;
    background: linear-gradient(135deg, #0f766e, #111827);
}
.public-package-grid .featured span,
.public-package-grid .featured p {
    color: #ccfbf1;
}
.public-split {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: center;
    background: #eef6f8;
}
.public-coverage {
    background:
        linear-gradient(180deg, #eef8fb, #ffffff);
}
.coverage-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.coverage-showcase article {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 22px;
}
.coverage-showcase span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.coverage-showcase strong {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}
.coverage-showcase small {
    color: #667085;
    line-height: 1.55;
}
.public-presence {
    background: #ffffff;
}
.presence-layout {
    display: grid;
    grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.presence-layout p {
    max-width: 520px;
    color: #667085;
    line-height: 1.65;
}
.presence-list {
    display: grid;
    overflow: hidden;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.presence-list a {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid #dde3ea;
    color: #111827;
    padding: 0 14px;
    text-decoration: none;
}
.presence-list a:last-child {
    border-bottom: 0;
}
.presence-list a:hover {
    background: #f0fdfa;
}
.presence-list strong {
    font-size: 15px;
}
.presence-list small {
    color: #667085;
    font-weight: 800;
}
.pin-dot {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    border: 3px solid #0f766e;
    border-radius: 50%;
}
.pin-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 7px;
    height: 7px;
    background: #0f766e;
    transform: translateX(-50%) rotate(45deg);
}
.coverage-panel {
    display: grid;
    gap: 10px;
    padding: 16px;
}
.coverage-panel a {
    color: #111827;
    text-decoration: none;
}
.coverage-panel a:hover {
    border-color: rgba(20, 184, 166, .45);
    background: #f0fdfa;
}
.coverage-panel-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    box-shadow: none;
}
.public-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.public-flow article {
    padding: 20px;
}
.public-flow span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: #111827;
    font-weight: 900;
}
.public-flow h3 {
    margin: 18px 0 10px;
    font-size: 22px;
}
.public-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 18px;
    align-items: center;
    margin: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px);
    padding: clamp(24px, 4vw, 42px);
}
.public-cta h2 {
    max-width: 760px;
}
@media (max-width: 980px) {
    .public-header {
        position: static;
        grid-template-columns: 1fr;
    }
    .public-nav {
        justify-content: flex-start;
    }
    .public-login {
        width: 100%;
    }
    .public-hero,
    .public-split,
    .presence-layout,
    .public-cta {
        grid-template-columns: 1fr;
    }
    .public-hero {
        min-height: 0;
    }
    .public-package-grid,
    .coverage-showcase,
    .coverage-panel-compact,
    .public-flow {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .public-trust {
        grid-template-columns: 1fr;
    }
    .public-actions a {
        width: 100%;
    }
}

.print-report-body {
    background: #eef2f6;
}
.print-report {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}
.print-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}
.report-header {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 18px;
}
.report-header img {
    width: 140px;
    border-radius: 8px;
}
.report-header p {
    margin: 7px 0 0;
    color: var(--muted);
}
.print-panel table {
    min-width: 0;
}
.invoice-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}
.invoice-box div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 20px;
}
.invoice-box p {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.invoice-box span {
    color: var(--muted);
}

/* Grup label sidebar (modul sesuai kebutuhan klien) */
.menu-group {
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7c93a6;
    font-weight: 800;
    margin: 8px 4px 1px;
}
.menu-group:first-child { margin-top: 0; }

/* Form modul CRUD */
.vb-crud-form { background:#0f1720; border:1px solid rgba(148,163,184,.18); border-radius:12px; padding:16px; margin-bottom:16px; }
.vb-form-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.vb-crud-form label { display:grid; gap:4px; font-size:12px; color:#c7d2da; font-weight:700; }
.vb-crud-form input, .vb-crud-form select, .vb-crud-form textarea {
    background:#0b1118; border:1px solid rgba(148,163,184,.28); border-radius:8px; color:#eaf0f4; padding:8px 10px; font-size:13px;
}
.vb-form-actions { margin-top:12px; display:flex; gap:8px; }
.mini-button.primary { background:#14b8a6; color:#04211d; border-color:#14b8a6; font-weight:800; }
.mini-button.danger { background:rgba(239,68,68,.14); color:#fca5a5; border-color:rgba(239,68,68,.4); }
td.nowrap { white-space:nowrap; }
.empty-cell { text-align:center; color:#94a3b8; padding:22px 0; }
.alert { background:rgba(20,184,166,.12); border:1px solid rgba(20,184,166,.4); color:#a7f3d0; padding:10px 14px; border-radius:8px; margin-bottom:12px; font-size:13px; }
.alert.danger { background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.4); color:#fca5a5; }
