:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --line: #dfe7f3;
    --text: #071832;
    --muted: #68758a;
    --blue: #0757bd;
    --blue-2: #1766d1;
    --green: #159447;
    --red: #ef233c;
    --shadow: 0 16px 40px rgba(15, 42, 81, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #e7effa 48%, #f6f8fb 100%);
}

.login-card {
    width: min(430px, calc(100vw - 32px));
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-mark,
.app-logo img {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 8px 18px rgba(7, 24, 50, .12);
}

.login-brand h1,
.topbar h1,
.report-head h1 {
    margin: 0;
    font-size: 26px;
}

.login-brand p,
.eyebrow,
.panel-title span,
.report-head span {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: #20304a;
    font-size: 13px;
    font-weight: 700;
}

input,
select,
button {
    font: inherit;
}

.login-form input,
.filter-bar select {
    height: 44px;
    border: 1px solid #cdd8e7;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
}

.captcha-row {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 10px;
    align-items: center;
}

.captcha-row img {
    display: block;
    width: 148px;
    height: 48px;
    border: 1px solid #f1c6c3;
    border-radius: 8px;
    background: #fff3f2;
    object-fit: contain;
}

.login-form button,
.export-btn {
    height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    background: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

.login-form button {
    background: #d71912;
}

.login-form button:hover {
    background: #bd160f;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #8d1621;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.alert-success {
    color: #075b2b;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 160px;
    width: 100%;
    color: var(--muted);
    border: 1px dashed #cbd8e9;
    border-radius: 8px;
    background: #f8fbff;
    font-weight: 700;
    text-align: center;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    color: #fff;
    background: #e21a0c;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 14px 22px;
}

.app-logo img {
    width: 44px;
    height: 44px;
}

.app-logo strong {
    color: #fff;
    font-size: 17px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 0;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.nav-link span {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex: 0 0 24px;
    background: rgba(255, 255, 255, .92);
    mask: var(--nav-icon) center / 21px 21px no-repeat;
    -webkit-mask: var(--nav-icon) center / 21px 21px no-repeat;
}

.nav-icon-dashboard {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='8' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='15' width='7' height='6' rx='1.5'/%3E%3C/svg%3E");
}

.nav-icon-leasing {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v5h4'/%3E%3Cpath d='M9.5 13h5'/%3E%3Cpath d='M9.5 17h5'/%3E%3Cpath d='M5 7H3v14h10'/%3E%3C/svg%3E");
}

.nav-icon-service {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5 5L4 17l3 3 5.7-5.7a4 4 0 0 0 5-5l-2.9 2.9-2.9-2.9z'/%3E%3C/svg%3E");
}

.nav-icon-stock {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-4 9 4-9 4z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
}

.nav-link.active,
.nav-link:hover {
    color: #fff;
    background: #c91408;
}

.sidebar-user {
    margin-top: auto;
    padding: 14px;
    border-radius: 0;
    background: rgba(0, 0, 0, .14);
}

.sidebar-update {
    display: block;
    margin: 0 0 16px;
}

.sidebar-update p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-update div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.sidebar-update button {
    display: inline-grid;
    place-items: center;
    min-height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(180deg, #2dc8f4 0%, #079bd0 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        0 6px 14px rgba(0, 0, 0, .14);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.sidebar-update button:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .45),
        0 8px 16px rgba(0, 0, 0, .18);
}

.sidebar-update .refresh-btn {
    color: #1d3557;
    background: linear-gradient(180deg, #f8fbff 0%, #dbeafe 100%);
}

.sidebar-user span,
.sidebar-user a {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
}

.sidebar-user strong {
    display: block;
    margin: 5px 0 12px;
    color: #fff;
}

.main {
    min-height: 100vh;
    margin-left: 260px;
    padding: 12px;
}

.topbar,
.report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.eyebrow {
    color: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
}

.topbar-date {
    padding: 9px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.metric-card,
.panel,
.table-card,
.report-kpis article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.metric-card,
.panel,
.table-card {
    animation: rise .36s ease both;
    animation-delay: var(--delay, 0ms);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card {
    padding: 10px 12px;
}

.metric-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-head p {
    margin: 0 0 3px;
    font-weight: 800;
}

.metric-head h2 {
    margin: 0;
    font-size: 24px;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue-2);
}

.metric-icon:before {
    content: "";
    width: 22px;
    height: 22px;
    background: #fff;
    mask: var(--metric-icon) center / contain no-repeat;
    -webkit-mask: var(--metric-icon) center / contain no-repeat;
}

.icon-clipboard {
    background: #1766d1;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h4'/%3E%3Cpath d='M8 3h8l1 2h2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2l1-2Z'/%3E%3C/svg%3E");
}

.icon-file {
    background: #35a852;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
}

.icon-receipt {
    background: #8b35d6;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v18l3-2 3 2 3-2 3 2 3-2 1 .7V3Z'/%3E%3Cpath d='M8 8h8'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M8 16h5'/%3E%3C/svg%3E");
}

.icon-truck { background: #ff6b21; }
.icon-truck {
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3z'/%3E%3Cpath d='M14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}

.icon-allocation {
    background: #ff6b21;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='18' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='M12 8v3'/%3E%3Cpath d='M12 11H6v4.5'/%3E%3Cpath d='M12 11h6v4.5'/%3E%3C/svg%3E");
}

.icon-hourglass {
    background: #ef233c;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12'/%3E%3Cpath d='M6 22h12'/%3E%3Cpath d='M7 2c0 5 10 5 10 10S7 17 7 22'/%3E%3Cpath d='M17 2c0 5-10 5-10 10s10 5 10 10'/%3E%3C/svg%3E");
}

.icon-chart {
    background: #0aa6a6;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='m7 15 3-3 3 2 5-7'/%3E%3Cpath d='M18 7h2v2'/%3E%3C/svg%3E");
}

.icon-invoice {
    background: #0aa6a6;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-2-1.2-2 1.2-2-1.2-2 1.2-2-1.2L6 21Z'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h3'/%3E%3C/svg%3E");
}

.icon-car {
    background: #1f7ae0;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h16l-2-5a3 3 0 0 0-2.8-2H8.8A3 3 0 0 0 6 9Z'/%3E%3Cpath d='M4 14v4'/%3E%3Cpath d='M20 14v4'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.6'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.6'/%3E%3Cpath d='M9 10h6'/%3E%3C/svg%3E");
}

.icon-cars {
    background: #10243f;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h10l-1.5-3.2A2 2 0 0 0 9.7 6H6.3a2 2 0 0 0-1.8 1.2Z'/%3E%3Cpath d='M3 11v3'/%3E%3Ccircle cx='5.5' cy='14.5' r='1.3'/%3E%3Ccircle cx='11' cy='14.5' r='1.3'/%3E%3Cpath d='M10 17h11l-1.6-3.3A2 2 0 0 0 17.6 12h-3.8a2 2 0 0 0-1.8 1.1Z'/%3E%3Cpath d='M10 17v3'/%3E%3Ccircle cx='12.7' cy='20' r='1.3'/%3E%3Ccircle cx='19' cy='20' r='1.3'/%3E%3C/svg%3E");
}

.icon-box {
    background: #10243f;
    --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-4 9 4-9 4Z'/%3E%3Cpath d='M3 7v10l9 4 9-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
}

.metric-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0 5px;
}

.metric-mini span {
    font-size: 13px;
    font-weight: 800;
}

.metric-mini small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.metric-trend {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 12px;
}

.trend-naik .metric-trend {
    color: var(--green);
}

.trend-turun .metric-trend {
    color: var(--red);
}

.trend-tetap .metric-trend {
    color: #344966;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(250px, .84fr) minmax(250px, .84fr);
    grid-template-rows: 210px 330px;
    gap: 12px;
    align-items: stretch;
}

.panel {
    padding: 10px 12px;
    min-width: 0;
    overflow: hidden;
}

.panel-wide {
    grid-column: span 2;
}

.trend-panel {
    grid-column: 1 / span 2;
    grid-row: 1;
}

.branch-panel {
    grid-column: 3;
    grid-row: 1;
    min-height: 0;
}

.cash-panel {
    grid-column: 4;
    grid-row: 1;
    min-height: 0;
}

.map-panel {
    grid-column: 3 / span 2;
    grid-row: 2;
}

.model-panel {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.panel-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.panel-title h2 {
    margin: 0;
    color: var(--blue);
    font-size: 15px;
    text-transform: uppercase;
}

.line-chart {
    width: 100%;
    height: 150px;
}

.trend-panel .line-chart {
    height: 164px;
}

.line-chart-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    height: 100%;
}

.line-chart-item {
    min-width: 0;
}

.panel-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.panel-subtitle h3 {
    margin: 0;
    color: var(--blue);
    font-size: 13px;
    text-transform: uppercase;
}

.line-chart-item.is-cancel .panel-subtitle h3 {
    color: #b91c1c;
}

.panel-subtitle span {
    color: var(--muted);
    font-size: 11px;
}

.grid-line {
    stroke: #e6edf7;
    stroke-width: 1;
}

.axis-label {
    fill: #5c6a7f;
    font-size: 11px;
    font-weight: 700;
}

.point-label {
    fill: #0b4eb3;
    font-size: 11px;
    font-weight: 800;
}

.donut-wrap {
    display: grid;
    grid-template-columns: minmax(132px, 150px) minmax(96px, 1fr);
    gap: 12px;
    align-items: center;
}

.donut {
    width: min(150px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
}

.donut:after {
    content: "";
    position: absolute;
    inset: 34px;
    border-radius: 50%;
    background: #fff;
}

.donut span {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
}

.donut small {
    display: block;
    font-size: 11px;
    font-weight: 400;
}

.legend {
    display: grid;
    gap: 8px;
}

.legend div {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 4px 10px;
    align-items: center;
}

.legend i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend span {
    grid-column: 2;
    color: var(--muted);
    font-size: 11px;
}

.model-chart {
    display: block;
}

.bar-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
}

.bar-row {
    display: grid;
    grid-template-columns: 64px minmax(104px, 160px) 1fr 32px;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    min-height: 52px;
    padding: 5px 7px;
    border: 1px solid #edf2f8;
    border-radius: 8px;
    background: #fbfdff;
}

.bar-row img {
    width: 64px;
    height: 38px;
    object-fit: cover;
    object-position: center 36%;
    border-radius: 6px;
    background: #eef4fb;
}

.bar-row div {
    height: 18px;
    background: #edf3fb;
    border-radius: 4px;
    overflow: hidden;
}

.bar-row i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1d7cec, #0757bd);
}

.aceh-map {
    min-height: 0;
    height: 284px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(202px, .9fr);
    gap: 8px;
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(23, 102, 209, .08), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(52, 168, 83, .13), transparent 32%),
        #fbfdff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.aceh-map-visual {
    height: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
    padding-left: 8px;
}

.aceh-map-svg {
    width: 138%;
    max-width: none;
    height: 100%;
    display: block;
    transform: translateX(-96px) scale(1.18);
    transform-origin: center center;
}

.map-top-list {
    display: grid;
    gap: 4px;
    padding: 8px 8px 8px 0;
    margin-left: 0;
    min-width: 0;
}

.map-top-list h3 {
    margin: 0 0 4px;
    color: #10243f;
    font-size: 11px;
    text-transform: uppercase;
}

.map-rank-row {
    display: grid;
    grid-template-columns: 20px minmax(82px, 1fr) 46px 22px;
    gap: 6px;
    align-items: center;
    color: #071832;
    font-size: 11px;
}

.rank-no {
    color: #10243f;
    font-weight: 800;
}

.map-rank-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 4px;
    background: #eaf1fb;
}

.rank-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1d7cec, #0757bd);
}

.map-rank-row b {
    font-size: 11px;
    text-align: right;
}

.aceh-sea {
    fill: #f7fbff;
}

.aceh-region {
    stroke: rgba(255, 255, 255, .95);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 1px 1px rgba(15, 42, 81, .06));
    transition: fill .18s ease, stroke .18s ease;
}

.aceh-region:hover {
    stroke: #073f9e;
    stroke-width: 2;
}

.map-point circle {
    fill: #073f9e;
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 6px 9px rgba(7, 63, 158, .24));
}

.map-value {
    fill: #fff;
    font-size: 12px;
    font-weight: 900;
}

.map-label {
    fill: #0a1830;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, .92);
    stroke-width: 5px;
    stroke-linejoin: round;
    font-size: 9px;
    font-weight: 900;
}

.map-scale text {
    fill: #344966;
    font-size: 11px;
    font-weight: 800;
}

.map-scale-html {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
    min-width: 128px;
    padding: 7px 8px;
    border: 1px solid rgba(223, 231, 243, .9);
    border-radius: 6px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 18px rgba(15, 42, 81, .08);
}

.map-scale-html strong {
    grid-column: 1 / span 2;
    color: #344966;
    font-size: 10px;
    text-transform: uppercase;
}

.map-scale-html span {
    grid-column: 1 / span 2;
    height: 10px;
    background: linear-gradient(90deg, #e7eef7, #74d0c7 42%, #1766d1);
}

.map-scale-html em {
    color: #344966;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.map-scale-html em:last-child {
    text-align: right;
}

.map-source {
    fill: #7b8798;
    font-size: 8px;
    font-weight: 700;
}


.report-head {
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-btn {
    display: inline-grid;
    place-items: center;
    height: 40px;
    min-width: 78px;
}

.report-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.report-kpis article {
    padding: 16px 18px;
}

.report-kpis span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

.report-kpis strong {
    display: block;
    margin-top: 5px;
    font-size: 28px;
}

.report-page.green .report-kpis strong,
.report-page.green .report-head h1 {
    color: #176d16;
}

.report-page.red .report-kpis strong,
.report-page.red .report-head h1 {
    color: #b91c1c;
}

.report-page.blue .report-kpis strong,
.report-page.blue .report-head h1 {
    color: #073f9e;
}

.table-card {
    overflow: auto;
}

.report-block + .report-block {
    margin-top: 18px;
}

.report-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #f7fbff;
}

.report-section-title h2 {
    margin: 0;
    color: #073f9e;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.report-page.green .report-section-title h2 {
    color: #176d16;
}

.report-page.red .report-section-title h2 {
    color: #b91c1c;
}

.report-page.dark .report-section-title h2 {
    color: #10243f;
}

.report-section-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.report-section-title + .table-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.stock-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.stock-report-grid .report-block + .report-block {
    margin-top: 0;
}

.stock-report-grid .report-section-title {
    padding: 12px 16px;
}

.stock-report-grid table {
    min-width: 0;
    font-size: 13px;
}

.stock-report-grid th,
.stock-report-grid td {
    padding: 8px 7px;
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 13px;
}

.service-report-table {
    font-size: 14px;
}

.leasing-report-table {
    font-size: 14px;
}

th {
    position: sticky;
    top: 0;
    color: #fff;
    background: #073f9e;
    text-align: center;
    padding: 10px;
    z-index: 1;
}

.green th {
    background: #176d16;
}

.red th {
    background: #b91c1c;
}

.dark th {
    background: #10243f;
}

td {
    padding: 9px 10px;
    border-bottom: 1px solid #e9eef6;
    text-align: center;
}

tr.category-highlight td {
    color: #071f45;
    font-weight: 900;
    background: #f3f8ff;
}

.green tr.category-highlight td {
    color: #0e4f12;
    background: #f1fbf2;
}

.red tr.category-highlight td {
    color: #7f1d1d;
    background: #fff1f1;
}

td.match-credit-cell,
td.match-reference-cell {
    color: #04722f;
    background: #e9fbe9;
    font-weight: 900;
}

td:first-child,
td:nth-child(2),
th:first-child,
th:nth-child(2) {
    text-align: left;
}

tbody tr:nth-child(even) {
    background: #f7faff;
}

tfoot td {
    color: #073f9e;
    background: #edf5ff;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .widget-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stock-report-grid {
        grid-template-columns: 1fr;
    }

    .line-chart-stack {
        grid-template-columns: 1fr;
    }

    .aceh-map {
        grid-template-columns: 1fr;
        height: auto;
    }

    .aceh-map-visual {
        height: 300px;
    }

    .aceh-map-svg {
        width: 100%;
        transform: none;
    }

    .map-top-list {
        padding: 0 10px 10px;
    }

    .trend-panel .line-chart {
        height: 190px;
    }

    .trend-panel,
    .model-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .branch-panel {
        grid-column: 1;
        grid-row: auto;
    }

    .cash-panel {
        grid-column: 2;
        grid-row: auto;
    }

    .map-panel {
        grid-column: 1 / span 2;
        grid-row: auto;
    }
}

@media (max-width: 820px) {
    .sidebar {
        position: static;
        width: auto;
    }

    .main {
        margin-left: 0;
        padding: 16px;
    }

    .topbar,
    .report-head,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .widget-grid,
    .dashboard-grid,
    .report-kpis,
    .donut-wrap {
        grid-template-columns: 1fr;
    }

    .panel-wide {
        grid-column: auto;
    }

    .branch-panel,
    .cash-panel,
    .map-panel {
        grid-column: auto;
    }

    .bar-row {
        grid-template-columns: 72px minmax(96px, 1fr) 1fr 34px;
        gap: 8px;
    }

    .bar-row img {
        width: 72px;
        height: 42px;
    }
}
