* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --navy: #18324a;
    --green: #168a63;
    --cream: #f7f2e9;
    --text: #42596d;
    --border: #dfe7eb;
}

body {
    margin: 0;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
}

.login-page {
    min-height: 100vh;
    background: var(--cream);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.login-brand {
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--navy);
    color: #fff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
}

.login-brand h1 {
    max-width: 650px;
    margin: 60px 0 22px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.login-brand p {
    max-width: 620px;
    margin: 0;
    color: #cad8e2;
    font-size: 18px;
    line-height: 1.7;
}

.login-card {
    width: min(460px, calc(100% - 40px));
    margin: auto;
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(24, 50, 74, 0.12);
}

.login-label,
.dashboard-label {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.login-card h2 {
    margin: 13px 0 8px;
    font-size: 34px;
}

.login-card > p {
    margin: 0 0 27px;
    color: var(--text);
}

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

.login-card label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
}

.remember {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: start;
    font-weight: 500 !important;
}

.login-card button {
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.form-error {
    padding: 12px;
    border-radius: 9px;
    background: #fff1f1;
    color: #a12d2d;
    font-size: 14px;
}

.dashboard-page {
    min-height: 100vh;
    background: #f4f7f8;
}

.dashboard-header {
    min-height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.logout-button {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.dashboard-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0;
}

.dashboard-main h1 {
    margin: 14px 0 8px;
    font-size: 46px;
}

.dashboard-main > p {
    color: var(--text);
    font-size: 18px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.status-grid article {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.status-grid span {
    display: block;
    margin-bottom: 12px;
    color: var(--text);
}

.status-grid strong {
    color: var(--green);
    font-size: 24px;
}

@media (max-width: 800px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 380px;
        padding: 40px 24px;
    }

    .login-brand h1 {
        margin-top: 45px;
        font-size: 45px;
    }

    .login-card {
        margin: 40px auto;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

/* SYARIF DASHBOARD REAL MONITORING */

.sd-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sd-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    background: #10283b;
    color: #ffffff;
}

.sd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    color: #ffffff;
    text-decoration: none;
}

.sd-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.sd-brand strong {
    font-size: 18px;
}

.sd-brand small {
    color: #9db1c1;
    font-size: 12px;
}

.sd-nav {
    display: grid;
    gap: 6px;
    margin-top: 50px;
}

.sd-nav a {
    padding: 13px 14px;
    border-radius: 10px;
    color: #c4d1db;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sd-nav a:hover,
.sd-nav a.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sd-sidebar__footer {
    margin-top: auto;
    padding: 17px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.sd-sidebar__footer span {
    color: #9db1c1;
    font-size: 12px;
}

.sd-sidebar__footer strong {
    font-size: 14px;
}

.sd-workspace {
    min-width: 0;
}

.sd-topbar {
    min-height: 72px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.sd-topbar > div {
    display: grid;
    gap: 4px;
}

.sd-topbar__label {
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.sd-main {
    width: min(1450px, calc(100% - 56px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.sd-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.sd-heading h1 {
    margin: 12px 0 8px;
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -0.035em;
}

.sd-heading p {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.sd-updated {
    min-width: 210px;
    padding: 15px 17px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.sd-updated span {
    color: var(--text);
    font-size: 11px;
}

.sd-updated strong {
    font-size: 13px;
}

.sd-updated a {
    margin-top: 5px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.sd-alert {
    margin-bottom: 24px;
    padding: 15px 17px;
    border-radius: 10px;
    background: #fff1f1;
    color: #a12d2d;
}

.sd-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.sd-kpi {
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
}

.sd-kpi > span {
    display: block;
    color: var(--text);
    font-size: 13px;
}

.sd-kpi strong {
    display: block;
    margin: 12px 0 7px;
    color: var(--navy);
    font-size: 31px;
}

.sd-kpi small {
    color: #738696;
}

.sd-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
    align-items: start;
    gap: 24px;
    margin-bottom: 24px;
}

.sd-panel {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #ffffff;
}

.sd-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.sd-panel__heading span {
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.sd-panel__heading h2 {
    margin: 7px 0 0;
    font-size: 23px;
}

.sd-panel__heading > a {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.sd-service-list {
    display: grid;
}

.sd-service-row {
    min-width: 0;
    padding: 14px 0;
    display: grid;
    grid-template-columns:
        minmax(170px, 1fr)
        85px
        45px
        105px;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf1f3;
}

.sd-service-row:first-child {
    border-top: 0;
}

.sd-service-row > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.sd-service-row strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-service-row small {
    overflow: hidden;
    color: #82919c;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-service-row > span {
    color: var(--text);
    font-size: 12px;
}

.sd-service-row > a {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.sd-status {
    padding: 6px 8px;
    border-radius: 999px;
    text-align: center;
    font-size: 10px !important;
    font-weight: 900;
}

.sd-status.is-up {
    background: #e3f5ee;
    color: #117153;
}

.sd-status.is-down {
    background: #fff0f0;
    color: #a12d2d;
}

.sd-memory-list {
    display: grid;
    gap: 19px;
}

.sd-memory-item > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.sd-memory-item strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-memory-item span {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 11px;
}

.sd-memory-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eff2;
}

.sd-memory-track span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--green);
}

.sd-app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sd-app-grid a {
    min-width: 0;
    padding: 18px;
    display: grid;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--navy);
    text-decoration: none;
}

.sd-app-grid a:hover {
    border-color: #9dcfbe;
    background: #f4fbf8;
}

.sd-app-grid strong {
    font-size: 14px;
}

.sd-app-grid span {
    color: var(--text);
    font-size: 12px;
}

@media (max-width: 1150px) {
    .sd-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .sd-layout {
        grid-template-columns: 1fr;
    }

    .sd-sidebar {
        position: static;
        height: auto;
        padding: 18px;
    }

    .sd-nav {
        margin-top: 18px;
        display: flex;
        overflow-x: auto;
    }

    .sd-nav a {
        flex: 0 0 auto;
    }

    .sd-sidebar__footer {
        display: none;
    }

    .sd-main {
        width: min(100% - 30px, 1450px);
    }

    .sd-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .sd-updated {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .sd-topbar {
        padding: 0 16px;
    }

    .sd-main {
        padding-top: 30px;
    }

    .sd-kpi-grid,
    .sd-app-grid {
        grid-template-columns: 1fr;
    }

    .sd-panel {
        padding: 18px;
    }

    .sd-service-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sd-service-row > a {
        display: none;
    }

    .sd-service-row > span:nth-of-type(1) {
        display: none;
    }
}

/* SYARIF DASHBOARD — TOKO DIGIONDEL */

.store-money {
    font-size: 25px !important;
}

.store-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.store-status-grid article,
.store-status-grid > a {
    padding: 19px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--navy);
    text-decoration: none;
}

.store-status-grid span {
    color: var(--text);
    font-size: 12px;
}

.store-status-grid strong {
    font-size: 21px;
}

.store-status-grid > a {
    background: var(--green);
    color: #ffffff;
}

.store-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.store-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.store-table th {
    padding: 11px 10px;
    color: #718391;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.store-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #edf1f3;
    white-space: nowrap;
}

.store-order-status {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf2f4;
    font-size: 10px;
    font-weight: 900;
}

.status-processing,
.status-completed {
    background: #e3f5ee;
    color: #117153;
}

.status-pending,
.status-on-hold {
    background: #fff5d9;
    color: #8a6300;
}

.status-failed,
.status-cancelled {
    background: #fff0f0;
    color: #a12d2d;
}

.store-product-list {
    display: grid;
}

.store-product-list > div {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #edf1f3;
}

.store-product-list > div:first-child {
    border-top: 0;
}

.store-product-list span {
    display: grid;
    gap: 5px;
}

.store-product-list small {
    color: var(--text);
}

@media (max-width: 900px) {
    .store-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .store-status-grid {
        grid-template-columns: 1fr;
    }
}

/* TOKO DIGIONDEL — LINE CHART */

.store-chart-panel {
    margin-bottom: 24px;
}

.store-chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.store-chart-heading > div:first-child > span {
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.store-chart-heading h2 {
    margin: 7px 0 8px;
    font-size: 25px;
}

.store-chart-heading p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
}

.store-chart-total {
    min-width: 190px;
    padding: 15px 18px;
    display: grid;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f7faf9;
    text-align: right;
}

.store-chart-total span {
    color: var(--text);
    font-size: 11px;
}

.store-chart-total strong {
    color: var(--green);
    font-size: 20px;
}

.store-line-chart {
    width: 100%;
    overflow-x: auto;
}

.store-line-chart svg {
    width: 100%;
    min-width: 720px;
    height: auto;
    display: block;
}

.store-chart-grid {
    stroke: #e5ecef;
    stroke-width: 1;
}

.store-chart-area {
    fill: rgba(22, 138, 99, 0.12);
}

.store-chart-line {
    fill: none;
    stroke: var(--green);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-chart-point {
    fill: #ffffff;
    stroke: var(--green);
    stroke-width: 3;
}

.store-chart-labels {
    min-width: 720px;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #768895;
    font-size: 11px;
}

.store-chart-empty {
    padding: 45px;
    border-radius: 12px;
    background: #f4f7f8;
    color: var(--text);
    text-align: center;
}

@media (max-width: 620px) {
    .store-chart-heading {
        flex-direction: column;
    }

    .store-chart-total {
        width: 100%;
        text-align: left;
    }
}

/* LABEL DAN RINCIAN OMZET HARIAN */

.store-chart-value {
    fill: #0f7656;
    font-size: 13px;
    font-weight: 900;
}

.store-chart-point.has-revenue {
    cursor: pointer;
}

.store-chart-point.is-zero {
    opacity: 0.4;
}

.store-daily-breakdown {
    min-width: 720px;
    margin-top: 24px;
    padding-top: 21px;
    border-top: 1px solid var(--border);
}

.store-daily-breakdown__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.store-daily-breakdown__heading strong {
    font-size: 14px;
}

.store-daily-breakdown__heading span {
    color: var(--text);
    font-size: 11px;
}

.store-daily-breakdown__grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(145px, 1fr)
    );
    gap: 10px;
}

.store-daily-breakdown__grid > div {
    padding: 13px 15px;
    display: grid;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fbfa;
}

.store-daily-breakdown__grid span {
    color: var(--text);
    font-size: 11px;
}

.store-daily-breakdown__grid strong {
    color: var(--green);
    font-size: 15px;
}

/* TOKO DIGIONDEL — BAR CHART */

.store-bar-chart {
    width: 100%;
    min-width: 920px;
    height: 340px;
    padding: 20px 8px 0;
    display: flex;
    align-items: stretch;
    gap: 7px;
    border-bottom: 1px solid #dfe7eb;
}

.store-bar-item {
    min-width: 22px;
    flex: 1 1 0;
    display: grid;
    grid-template-rows: 28px minmax(0, 1fr) 25px;
    align-items: end;
    text-align: center;
}

.store-bar-value {
    align-self: center;
    color: #0f7656;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.store-bar-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid #dfe7eb;
}

.store-bar-fill {
    width: min(24px, 80%);
    min-height: 2px;
    display: block;
    border-radius: 6px 6px 0 0;
    background: var(--green);
    transition:
        height 180ms ease,
        opacity 180ms ease;
}

.store-bar-fill.has-revenue:hover {
    opacity: 0.75;
}

.store-bar-fill.is-zero {
    opacity: 0.12;
}

.store-bar-date {
    padding-top: 8px;
    color: #768895;
    font-size: 10px;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .store-bar-chart {
        min-width: 850px;
        height: 310px;
    }
}

/* NOMINAL DI DALAM BATANG GRAFIK */

.store-bar-item {
    grid-template-rows: minmax(0, 1fr) 25px;
}

.store-bar-track {
    position: relative;
}

.store-bar-fill {
    position: relative;
    padding-top: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.store-bar-fill .store-bar-value {
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.store-bar-fill.is-zero .store-bar-value {
    display: none;
}

/* BAR HARIAN — DUA WARNA */

.store-bar-item:nth-child(odd)
.store-bar-fill.has-revenue {
    background: #168b63;
}

.store-bar-item:nth-child(even)
.store-bar-fill.has-revenue {
    background: #214d70;
}

/* GRAFIK BULANAN 12 BULAN */

.store-monthly-panel {
    margin-bottom: 24px;
}

.store-monthly-summary {
    min-width: 240px;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.store-monthly-summary > div {
    display: grid;
    gap: 5px;
    text-align: right;
}

.store-monthly-summary > div span {
    color: var(--text);
    font-size: 11px;
}

.store-monthly-summary > div strong {
    color: var(--navy);
    font-size: 21px;
}

.store-trend-badge {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.store-trend-badge.is-up {
    background: #e1f5ed;
    color: #117153;
}

.store-trend-badge.is-down {
    background: #fff0f0;
    color: #a12d2d;
}

.store-trend-badge.is-flat {
    background: #edf2f5;
    color: #536774;
}

.store-monthly-chart {
    width: 100%;
    overflow-x: auto;
}

.store-monthly-chart svg {
    width: 100%;
    min-width: 900px;
    height: auto;
    display: block;
}

.monthly-chart-grid {
    stroke: #e4eaee;
    stroke-width: 1;
}

.monthly-chart-area {
    fill: rgba(33, 77, 112, 0.1);
}

.monthly-chart-line {
    fill: none;
    stroke: #214d70;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.monthly-chart-point {
    fill: #168b63;
    stroke: #ffffff;
    stroke-width: 3;
    cursor: pointer;
}

.monthly-chart-value {
    fill: #168b63;
    font-size: 12px;
    font-weight: 900;
}

.monthly-chart-month {
    fill: #718391;
    font-size: 11px;
}

@media (max-width: 620px) {
    .store-monthly-summary {
        width: 100%;
        justify-items: start;
    }

    .store-monthly-summary > div {
        text-align: left;
    }
}

/* BACKUP & RECOVERY */

.backup-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.backup-summary-card {
    padding: 20px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}

.backup-summary-card > span {
    color: var(--text);
    font-size: 12px;
}

.backup-summary-card > strong {
    color: var(--navy);
    font-size: 25px;
}

.backup-summary-card small {
    color: var(--text);
    line-height: 1.5;
}

.backup-progress {
    height: 7px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f3;
}

.backup-progress span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--green);
}

.backup-text-safe {
    color: #117153 !important;
}

.backup-text-danger {
    color: #a12d2d !important;
}

.backup-panel {
    margin-bottom: 24px;
}

.backup-card-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.backup-group-card {
    padding: 18px;
    display: grid;
    gap: 11px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
}

.backup-group-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.backup-group-card__top > span {
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
}

.backup-status {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    white-space: nowrap;
}

.backup-status.is-safe {
    background: #e1f5ed;
    color: #117153;
}

.backup-status.is-warning {
    background: #fff5d9;
    color: #8a6300;
}

.backup-status.is-danger,
.backup-status.is-missing {
    background: #fff0f0;
    color: #a12d2d;
}

.backup-group-age {
    color: var(--navy);
    font-size: 23px;
}

.backup-group-card > small {
    color: var(--text);
}

.backup-group-card dl {
    margin: 0;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.backup-group-card dl > div {
    padding: 9px;
    display: grid;
    gap: 4px;
    border-radius: 8px;
    background: #f5f8f8;
}

.backup-group-card dt {
    color: var(--text);
    font-size: 9px;
}

.backup-group-card dd {
    margin: 0;
    color: var(--navy);
    font-size: 11px;
    font-weight: 900;
}

.backup-group-card code {
    padding: 9px;
    overflow: hidden;
    border-radius: 8px;
    background: #132c3d;
    color: #d9e7ee;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backup-notice {
    padding: 19px;
    border: 1px solid #efdba8;
    border-radius: 13px;
    background: #fff9e9;
}

.backup-notice strong {
    color: #735400;
}

.backup-notice p {
    margin: 7px 0 0;
    color: #725f28;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .backup-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .backup-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .backup-summary-grid {
        grid-template-columns: 1fr;
    }

    .backup-group-card dl {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .backup-group-card__top {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* AUTOMASI N8N */

.automation-status-safe {
    color: #117153 !important;
}

.automation-status-danger {
    color: #a12d2d !important;
}

.automation-mini-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.automation-mini-grid article {
    padding: 18px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
}

.automation-mini-grid span {
    color: var(--text);
    font-size: 11px;
}

.automation-mini-grid strong {
    color: var(--navy);
    font-size: 21px;
}

.automation-execution-status {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf2f4;
    font-size: 10px;
    font-weight: 900;
}

.automation-execution-status.is-success {
    background: #e1f5ed;
    color: #117153;
}

.automation-execution-status.is-error,
.automation-execution-status.is-failed,
.automation-execution-status.is-crashed {
    background: #fff0f0;
    color: #a12d2d;
}

.automation-execution-status.is-running {
    background: #e8f0fb;
    color: #214d70;
}

.automation-execution-status.is-waiting {
    background: #fff5d9;
    color: #8a6300;
}

.automation-workflow-list {
    display: grid;
}

.automation-workflow-list > div {
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #edf1f3;
}

.automation-workflow-list > div:first-child {
    border-top: 0;
}

.automation-workflow-list > div > span:first-child {
    display: grid;
    gap: 5px;
}

.automation-workflow-list small {
    color: var(--text);
}

.automation-workflow-state {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.automation-workflow-state.is-active {
    background: #e1f5ed;
    color: #117153;
}

.automation-workflow-state.is-inactive {
    background: #edf2f4;
    color: #536774;
}

.automation-system-panel {
    margin-top: 24px;
}

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

.automation-system-grid > div {
    padding: 14px;
    display: grid;
    gap: 6px;
    border-radius: 10px;
    background: #f5f8f8;
}

.automation-system-grid dt {
    color: var(--text);
    font-size: 10px;
}

.automation-system-grid dd {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .automation-mini-grid,
    .automation-system-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .automation-mini-grid,
    .automation-system-grid {
        grid-template-columns: 1fr;
    }
}

/* WHATSAPP GATEWAY */

.whatsapp-safe {
    color: #117153 !important;
}

.whatsapp-danger {
    color: #a12d2d !important;
}

.whatsapp-mini-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.whatsapp-mini-grid article {
    padding: 18px;
    display: grid;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
}

.whatsapp-mini-grid span,
.whatsapp-mini-grid small {
    color: var(--text);
    font-size: 11px;
}

.whatsapp-mini-grid strong {
    color: var(--navy);
    font-size: 17px;
}

.whatsapp-image {
    overflow: hidden;
    font-size: 13px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whatsapp-session-list {
    display: grid;
    gap: 12px;
}

.whatsapp-session-card {
    padding: 16px;
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f7faf9;
}

.whatsapp-session-card > div {
    display: grid;
    gap: 5px;
}

.whatsapp-session-card span {
    color: var(--text);
    font-size: 10px;
}

.whatsapp-session-card strong {
    color: var(--navy);
    font-size: 12px;
}

.whatsapp-session-status {
    width: max-content;
    padding: 6px 9px;
    border-radius: 999px;
}

.whatsapp-session-status.is-working {
    background: #e1f5ed;
    color: #117153;
}

.whatsapp-session-status.is-scan_qr_code {
    background: #fff5d9;
    color: #8a6300;
}

.whatsapp-session-status.is-failed,
.whatsapp-session-status.is-stopped {
    background: #fff0f0;
    color: #a12d2d;
}

.whatsapp-system-list {
    margin: 0;
    display: grid;
    gap: 11px;
}

.whatsapp-system-list > div {
    padding: 12px;
    display: grid;
    gap: 6px;
    border-radius: 9px;
    background: #f5f8f8;
}

.whatsapp-system-list dt {
    color: var(--text);
    font-size: 10px;
}

.whatsapp-system-list dd {
    margin: 0;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
}

.whatsapp-system-list code {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whatsapp-open-button {
    margin-top: 17px;
    display: inline-block;
    font-weight: 900;
}

@media (max-width: 1000px) {
    .whatsapp-mini-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .whatsapp-session-card {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .whatsapp-mini-grid,
    .whatsapp-session-card {
        grid-template-columns: 1fr;
    }
}

/* PUSAT PERINGATAN */

.alert-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.alert-summary-card {
    padding: 20px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}

.alert-summary-card > span,
.alert-summary-card small {
    color: var(--text);
    font-size: 11px;
}

.alert-summary-card > strong {
    color: var(--navy);
    font-size: 27px;
}

.alert-summary-card.is-danger {
    border-top: 4px solid #bd3535;
}

.alert-summary-card.is-warning {
    border-top: 4px solid #d69b16;
}

.alert-summary-card.is-info {
    border-top: 4px solid #326e97;
}

.alert-summary-card.is-safe {
    border-top: 4px solid #168b63;
}

.alert-overall-label {
    font-size: 19px !important;
}

.alert-list {
    display: grid;
    gap: 14px;
}

.alert-item {
    padding: 19px;
    display: grid;
    grid-template-columns: 47px 1fr auto;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--border);
    border-left-width: 5px;
    border-radius: 13px;
    background: #ffffff;
}

.alert-item.is-danger {
    border-left-color: #bd3535;
}

.alert-item.is-warning {
    border-left-color: #d69b16;
}

.alert-item.is-info {
    border-left-color: #326e97;
}

.alert-item__icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
}

.alert-item.is-danger .alert-item__icon {
    background: #fff0f0;
    color: #a12d2d;
}

.alert-item.is-warning .alert-item__icon {
    background: #fff5d9;
    color: #8a6300;
}

.alert-item.is-info .alert-item__icon {
    background: #e9f1f7;
    color: #214d70;
}

.alert-item__content {
    min-width: 0;
}

.alert-item__meta {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.alert-item__meta span {
    color: var(--text);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alert-item__meta strong {
    font-size: 10px;
}

.alert-item h2 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 17px;
}

.alert-item p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.55;
}

.alert-item__action {
    padding: 9px 12px;
    border-radius: 9px;
    background: #f1f5f5;
    color: var(--navy);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.alert-empty-state {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #bde4d6;
    border-radius: 14px;
    background: #effaf6;
}

.alert-empty-state > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #168b63;
    color: #ffffff;
    font-size: 24px;
}

.alert-empty-state strong {
    color: #117153;
    font-size: 18px;
}

.alert-empty-state p {
    margin: 5px 0 0;
    color: var(--text);
}

.alert-refresh-note {
    margin-top: 20px;
    color: var(--text);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 950px) {
    .alert-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .alert-summary-grid {
        grid-template-columns: 1fr;
    }

    .alert-item {
        grid-template-columns: 42px 1fr;
    }

    .alert-item__action {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* Meta Ads Analysis V2 */
.ma-decision {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    padding: 22px;
    margin-bottom: 22px;
    border: 1px solid #dbe2ea;
    border-left-width: 6px;
    border-radius: 16px;
    background: #fff;
}

.ma-decision--success {
    border-left-color: #16a34a;
}

.ma-decision--warning {
    border-left-color: #d97706;
}

.ma-decision--danger {
    border-left-color: #dc2626;
}

.ma-decision--neutral {
    border-left-color: #64748b;
}

.ma-decision h2 {
    margin: 0 0 8px;
}

.ma-decision__reason,
.ma-recommendation p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.ma-recommendation {
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
}

.ma-recommendation strong {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
}

.ma-funnel-grid,
.ma-efficiency-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ma-funnel-card {
    position: relative;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.ma-funnel-card strong {
    display: block;
    margin-top: 10px;
    color: #0f172a;
    font-size: 25px;
}

.ma-metric-title {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    color: #64748b;
    font-size: 13px;
}

.ma-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: help;
}

.ma-info:hover,
.ma-info:focus,
.ma-info:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}

.ma-tooltip {
    position: absolute;
    z-index: 100;
    left: 50%;
    bottom: calc(100% + 12px);
    width: 280px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 12px 28px rgb(15 23 42 / 25%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(5px);
    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s ease;
}

.ma-info:hover .ma-tooltip,
.ma-info:focus .ma-tooltip,
.ma-info:focus-visible .ma-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1100px) {
    .ma-funnel-grid,
    .ma-efficiency-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .ma-decision {
        grid-template-columns: 1fr;
    }

    .ma-funnel-grid,
    .ma-efficiency-grid {
        grid-template-columns: 1fr;
    }

    .ma-tooltip {
        left: 0;
        width: min(280px, 75vw);
        transform: translateY(5px);
    }

    .ma-info:hover .ma-tooltip,
    .ma-info:focus .ma-tooltip,
    .ma-info:focus-visible .ma-tooltip {
        transform: translateY(0);
    }
}

/* Meta Ads Analysis per Entity */
.ma-section-description {
    margin: 7px 0 0;
    color: #64748b;
    line-height: 1.5;
}

.ma-analysis-table {
    min-width: 1450px;
}

.ma-analysis-table abbr {
    cursor: help;
    text-decoration:
        underline dotted;
    text-underline-offset: 3px;
}

.ma-level-pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.ma-analysis-table .ma-entity-name {
    min-width: 280px;
    font-weight: 700;
    white-space: normal;
}

.ma-analysis-table .ma-wrap {
    min-width: 320px;
    color: #475569;
    line-height: 1.5;
    white-space: normal;
}

/* Meta Ads Business Target */
.ma-business-form {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ma-business-form label {
    display: block;
}

.ma-business-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.ma-business-form input:focus {
    border-color: #64748b;
    outline: 3px solid rgb(148 163 184 / 25%);
}

.ma-business-results {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ma-business-results > div {
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
}

.ma-business-results span,
.ma-business-results small {
    display: block;
    color: #64748b;
}

.ma-business-results strong {
    display: block;
    margin: 7px 0;
    color: #0f172a;
    font-size: 24px;
}

.ma-save-button {
    justify-self: start;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ma-save-button:hover {
    background: #115e59;
}

.ma-form-message {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
}

.ma-form-message--success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.ma-form-message--danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ma-form-message ul {
    margin: 8px 0 0;
}

@media (max-width: 800px) {
    .ma-business-form,
    .ma-business-results {
        grid-template-columns: 1fr;
    }
}
