:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #14213d;
    --muted: #667085;
    --line: #e4e9f2;
    --primary: #0069ff;
    --primary-dark: #0052cc;
    --danger: #d92d20;
    --success: #039855;
    --warning: #b54708;
    --shadow: 0 12px 36px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

h1, h2, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: "SFMono-Regular", Consolas, monospace; }

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top, #e8f1ff 0, #f4f7fb 48%);
}
.auth-card {
    width: min(460px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
    color: #fff;
    background: var(--primary);
    font-weight: 800;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.security-note {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #344054;
    background: #f8fafc;
    font-size: 13px;
}

label {
    display: block;
    margin-bottom: 16px;
    color: #344054;
    font-size: 14px;
    font-weight: 650;
}
input, textarea, select {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    padding: 12px 13px;
    color: var(--text);
    background: #fff;
    font: inherit;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 105, 255, .11);
}
textarea { resize: vertical; min-height: 140px; font-family: "SFMono-Regular", Consolas, monospace; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 15px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 6px 11px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.btn-console { color: #fff; background: var(--primary); }
.btn-console:hover { background: var(--primary-dark); }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { color: #344054; background: #fff; border-color: #d0d5dd; }
.btn-danger-outline { color: var(--danger); background: #fff; border-color: #fda29b; }

.alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 14px;
}
.alert-success { color: #027a48; background: #ecfdf3; border-color: #abefc6; }
.alert-error { color: #b42318; background: #fef3f2; border-color: #fecdca; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px max(24px, calc((100vw - 1280px) / 2));
    color: #fff;
    background: #071a3d;
}
.topbar h1 { margin-bottom: 0; font-size: 25px; }
.eyebrow { margin-bottom: 4px; color: #8eb9ff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.top-actions, .card-actions { display: flex; align-items: center; gap: 10px; }
.top-actions form, .card-actions form { margin: 0; }

.container { width: min(1280px, calc(100% - 32px)); margin: 28px auto 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card, .panel, .account-card, .empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .04);
}
.stat-card { padding: 20px; }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 7px; font-size: 28px; }
.panel { padding: 24px; margin-bottom: 20px; }
.panel-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.panel-header h2 { margin-bottom: 3px; }
.panel-header p { margin-bottom: 0; color: var(--muted); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-footer code { color: #475467; font-size: 13px; }
.settings-panel { scroll-margin-top: 18px; }
.settings-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.settings-row label { margin-bottom: 0; }
.main-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 30px 0 4px;
    padding: 18px 20px;
    color: #fff;
    background: #0b2b5b;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(7, 26, 61, .12);
}
.main-category-heading h2 { margin: 2px 0 0; font-size: 21px; }
.main-category-heading > span { color: #b9d2fa; font-size: 13px; font-weight: 700; white-space: nowrap; }
.category-kicker { color: #8eb9ff; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.empty-state { padding: 48px 24px; text-align: center; }

.account-card { margin-top: 20px; padding: 24px; scroll-margin-top: 20px; }
.account-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.account-header h2 { margin: 5px 0 1px; }
.account-header p { margin: 0; color: var(--muted); }
.status-line { display: flex; align-items: center; gap: 8px; color: #475467; font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px rgba(3, 152, 85, .12); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
.mini-stats { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; margin-bottom: 18px; }
.mini-stats > div { padding: 15px; border-right: 1px solid var(--line); background: #fbfcfe; }
.mini-stats > div:last-child { border-right: 0; }
.mini-stats span { display: block; color: var(--muted); font-size: 12px; }
.mini-stats strong { display: block; margin-top: 5px; font-size: 15px; }
.inline-warning { margin: -5px 0 16px; color: var(--warning); font-size: 13px; }
.checked-at { margin-top: 14px; color: #98a2b3; font-size: 12px; text-align: right; }
.console-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
.droplet-name-cell { display: flex; align-items: center; gap: 10px; min-width: 250px; }
.droplet-name-cell strong { min-width: 0; overflow-wrap: anywhere; }
.console-unavailable { font-size: 11px; white-space: nowrap; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: #475467; background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { color: #027a48; background: #ecfdf3; }
.badge-neutral { color: #475467; background: #f2f4f7; }

@media (max-width: 1000px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mini-stats { grid-template-columns: repeat(3, 1fr); }
    .mini-stats > div:nth-child(3) { border-right: 0; }
}
@media (max-width: 680px) {
    .topbar, .account-header, .form-footer, .main-category-heading { align-items: stretch; flex-direction: column; }
    .settings-row { grid-template-columns: 1fr; }
    .main-category-heading > span { white-space: normal; }
    .top-actions, .card-actions { flex-wrap: wrap; }
    .stats-grid, .mini-stats { grid-template-columns: 1fr; }
    .mini-stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .mini-stats > div:last-child { border-bottom: 0; }
    .container { width: min(100% - 20px, 1280px); margin-top: 14px; }
    .panel, .account-card { padding: 17px; }
}

/* v1.5 verification and console placement */
.version-badge { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.btn-disabled { color: #98a2b3; background: #f2f4f7; border: 1px solid #eaecf0; cursor: not-allowed; white-space: nowrap; }
.build-footer { margin: 22px 0 8px; color: #98a2b3; font-size: 12px; text-align: center; }
.droplet-name-cell { display: inline-flex; align-items: center; gap: 10px; min-width: 280px; }

/* v1.6 - account directory, per-account category and expandable data */
.directory-panel {
    margin-top: 26px;
}
.directory-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(135deg, #071a3d 0%, #0b3f89 100%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 10px 26px rgba(7, 26, 61, .14);
}
.directory-title h2 { margin: 3px 0 0; font-size: 22px; }
.directory-title > span { color: #c9dbfa; font-size: 13px; font-weight: 750; white-space: nowrap; }
.account-list {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.account-list-head,
.account-row {
    display: grid;
    grid-template-columns: minmax(125px, .75fr) minmax(185px, 1.1fr) minmax(105px, .62fr) minmax(115px, .68fr) minmax(175px, 1fr) minmax(210px, 1.3fr) 120px;
    align-items: center;
    gap: 0;
}
.account-list-head {
    min-height: 46px;
    color: #475467;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.account-list-head > div,
.account-cell { padding: 13px 16px; }
.account-entry { border-bottom: 1px solid var(--line); }
.account-entry:last-child { border-bottom: 0; }
.account-entry.is-open { background: #fbfdff; }
.account-row { min-height: 68px; }
.account-row:hover { background: #fbfcfe; }
.account-cell { min-width: 0; font-size: 13px; }
.account-cell + .account-cell { border-left: 1px solid #f0f2f5; }
.category-line { display: flex; align-items: center; gap: 10px; }
.category-pill {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    color: #1849a9;
    background: #eff4ff;
    font-weight: 750;
    overflow-wrap: anywhere;
}
.email-cell { overflow-wrap: anywhere; }
.note-cell { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-text { min-width: 0; overflow-wrap: anywhere; }
.view-cell { text-align: right; }
.btn-xs { min-height: 29px; padding: 4px 9px; border-radius: 7px; font-size: 11px; }
.btn-ghost { color: #175cd3; background: #eff4ff; border-color: #d1e0ff; }
.account-edit-panel {
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #f8fbff;
}
.edit-grid {
    display: grid;
    grid-template-columns: minmax(145px, .75fr) minmax(120px, .55fr) minmax(150px, .65fr) minmax(240px, 1.35fr) auto;
    align-items: end;
    gap: 14px;
}
.edit-grid label { margin: 0; }
.edit-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 1px; }
.account-detail {
    padding: 22px;
    border-top: 1px solid var(--line);
    background: #fff;
}
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.detail-header h3 { margin: 5px 0 2px; font-size: 19px; }
.detail-header p { margin: 0; color: var(--muted); }
.droplet-table { min-width: 980px; }
.droplet-table th:first-child,
.droplet-table td:first-child { position: sticky; left: 0; z-index: 1; }
.droplet-table th:first-child { background: #eef4ff; }
.droplet-table td:first-child { background: #fff; }
.account-entry.is-open .droplet-table tr:hover td { background: #f8fbff; }
.account-entry.is-open .droplet-table tr:hover td:first-child { background: #f0f6ff; }
.terminal-cell { width: 128px; }
.droplet-link { color: #175cd3; font-weight: 750; }
.droplet-link:hover { text-decoration: underline; }

@media (max-width: 920px) {
    .account-list-head { display: none; }
    .account-row { grid-template-columns: 1fr 1fr; }
    .account-cell { display: grid; grid-template-columns: 95px 1fr; align-items: center; gap: 10px; border-left: 0 !important; border-bottom: 1px solid #f0f2f5; }
    .account-cell::before { content: attr(data-label); color: #667085; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
    .view-cell { text-align: left; }
    .note-cell { grid-template-columns: 95px minmax(0, 1fr) auto; }
    .edit-grid { grid-template-columns: 1fr; }
    .edit-actions { padding-bottom: 0; }
}

@media (max-width: 680px) {
    .directory-title, .detail-header { align-items: stretch; flex-direction: column; }
    .directory-title > span { white-space: normal; }
    .account-row { grid-template-columns: 1fr; }
    .account-cell { grid-template-columns: 88px minmax(0, 1fr); }
    .note-cell { grid-template-columns: 88px minmax(0, 1fr) auto; }
    .account-detail { padding: 16px; }
    .view-cell .btn { width: 100%; }
}


/* v1.8 - per-Droplet SSH data */
.droplet-table { min-width: 1120px; }
.ssh-cell { min-width: 155px; }
.btn-ssh-empty { color: #175cd3; background: #eff4ff; border-color: #b2ccff; }
.btn-ssh-empty:hover { background: #dbeafe; }
.btn-ssh-done { color: #027a48; background: #ecfdf3; border-color: #75e0a7; }
.btn-ssh-done:hover { background: #d1fadf; }
.ssh-summary { margin-top: 6px; max-width: 180px; color: #667085; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.ssh-form-row > td { padding: 0; background: #f7faff !important; }
.ssh-form-card { padding: 20px; border-top: 1px solid #d9e5f7; border-bottom: 1px solid #d9e5f7; }
.ssh-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ssh-form-heading h4 { margin: 2px 0; font-size: 17px; }
.ssh-form-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.ssh-form-kicker { color: #175cd3; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.ssh-state { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ssh-state.ready { color: #027a48; background: #ecfdf3; }
.ssh-state.empty { color: #b54708; background: #fffaeb; }
.ssh-form-grid { display: grid; grid-template-columns: minmax(180px, 1fr) 150px minmax(180px, .8fr); gap: 14px; }
.ssh-form-grid label { margin-bottom: 12px; }
.ssh-form-card textarea { min-height: 118px; }
.ssh-security-note { margin: -3px 0 14px; padding: 10px 12px; color: #475467; background: #eef4ff; border-radius: 9px; font-size: 12px; }
.ssh-form-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ssh-form-actions form { margin: 0; }
.ssh-delete-form { margin-top: 10px; }

@media (max-width: 760px) {
    .ssh-form-heading { flex-direction: column; }
    .ssh-form-grid { grid-template-columns: 1fr; }
}


/* v1.9 - payment due per account */
.payment-due-cell {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.payment-due-cell strong {
    color: #101828;
    font-size: 13px;
    white-space: nowrap;
}
.payment-due-meta {
    color: #667085;
    font-size: 10px;
    line-height: 1.35;
}
.payment-due-error { color: #b54708; }

@media (max-width: 1120px) and (min-width: 921px) {
    .account-list-head,
    .account-row {
        grid-template-columns: minmax(115px, .72fr) minmax(170px, 1fr) minmax(95px, .58fr) minmax(105px, .62fr) minmax(155px, .92fr) minmax(185px, 1.15fr) 110px;
    }
    .account-list-head > div,
    .account-cell { padding-left: 12px; padding-right: 12px; }
}

/* v2.0 - internal SSH terminal */
.terminal-cell { min-width: 132px; }
.terminal-cell .btn { width: 100%; justify-content: center; white-space: nowrap; }
.btn-console { color: #fff; background: #0f766e; border-color: #0f766e; }
.btn-console:hover { background: #115e59; border-color: #115e59; }

/* v2.1 - filter and sorting controls for account directory */
.account-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(145px, .85fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.account-filter-field {
    min-width: 0;
    margin: 0;
}
.account-filter-field > span {
    display: block;
    margin-bottom: 5px;
    color: #475467;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.account-filter-field input,
.account-filter-field select {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
}
.account-filter-reset {
    min-height: 38px;
    padding-inline: 14px;
}
.account-filter-summary {
    grid-column: 1 / -1;
    color: #667085;
    font-size: 11px;
}
.account-filter-summary strong { color: #101828; }
.account-sort-head {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-transform: inherit;
    cursor: pointer;
}
.account-sort-head:hover,
.account-sort-head.is-active { color: #175cd3; }
.sort-indicator {
    min-width: 14px;
    font-size: 13px;
    line-height: 1;
    text-align: center;
}
.account-entry[hidden] { display: none !important; }
.account-filter-empty {
    padding: 38px 20px;
    color: #667085;
    text-align: center;
}
.account-filter-empty strong,
.account-filter-empty span { display: block; }
.account-filter-empty strong { margin-bottom: 5px; color: #101828; }

@media (max-width: 1220px) {
    .account-filter-toolbar {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .account-filter-toolbar {
        grid-template-columns: 1fr 1fr;
    }
    .account-search-field,
    .account-sort-field,
    .account-filter-summary { grid-column: 1 / -1; }
    .account-filter-reset { width: 100%; }
}

@media (max-width: 480px) {
    .account-filter-toolbar { grid-template-columns: 1fr; }
    .account-search-field,
    .account-sort-field,
    .account-filter-summary { grid-column: auto; }
}

/* v2.2 - Telegram notifications, category dashboard, and filtered payment total */
.dashboard-category-card {
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: var(--shadow);
}
.dashboard-category-card h2 {
    margin: 5px 0 0;
    color: #101828;
    font-size: 25px;
}
.settings-stack {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    scroll-margin-top: 18px;
}
.settings-stack > .panel { margin-bottom: 0; }
.telegram-settings-panel { scroll-margin-top: 18px; }
.telegram-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.telegram-status.is-ready { color: #027a48; background: #ecfdf3; }
.telegram-status.is-empty { color: #b54708; background: #fffaeb; }
.telegram-current {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 11px 13px;
    color: #475467;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 12px;
}
.telegram-current strong { color: #101828; }
.telegram-form-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.1fr) minmax(210px, .8fr) minmax(190px, .65fr);
    gap: 14px;
}
.telegram-form-actions,
.telegram-ping-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.telegram-form-actions { margin-top: 2px; }
.field-help { display: block; margin-top: 6px; color: #667085; font-size: 11px; font-weight: 500; }
.telegram-ping-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.telegram-ping-form span,
.security-inline-note,
.telegram-monitor-note {
    color: #667085;
    font-size: 11px;
}
.telegram-monitor-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #eef4ff;
    border-radius: 8px;
}
button:disabled { cursor: not-allowed; opacity: .55; }
.account-total-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-top: 2px solid #d1e0ff;
    background: #f5f8ff;
}
.account-total-payment > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.account-total-payment span {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.account-total-payment small { color: #667085; font-size: 11px; }
.account-total-payment strong {
    color: #175cd3;
    font-size: 22px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .telegram-form-grid { grid-template-columns: 1fr; }
    .account-total-payment { align-items: flex-start; flex-direction: column; }
}

/* v2.2.3 - halaman Pengaturan terpisah */
.top-nav-button.is-active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}
.settings-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #071a3d 0%, #0b3f89 100%);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(7, 26, 61, .14);
}
.settings-page-heading h2 { margin: 3px 0 5px; font-size: 24px; }
.settings-page-heading p { margin: 0; color: #c9dbfa; }
.settings-submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 5px 18px rgba(16, 24, 40, .04);
}
.settings-submenu a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    color: #344054;
    background: #ffffff;
    font-size: 13px;
    font-weight: 750;
}
.settings-submenu a:hover {
    color: var(--primary-dark);
    border-color: #84adff;
    background: #f5f9ff;
}
.settings-stack {
    display: grid;
    gap: 20px;
}
.settings-stack .panel { margin-bottom: 0; }
#tambah-akun-digitalocean,
#pengaturan-kategori,
#pengaturan-telegram { scroll-margin-top: 20px; }

@media (max-width: 680px) {
    .settings-page-heading { align-items: stretch; flex-direction: column; }
    .settings-submenu { display: grid; grid-template-columns: 1fr; }
    .settings-submenu a { width: 100%; }
}


/* v4.0.0 - Payment, jatuh tempo dari billing notice, dan dua total */
.exact-payment-cell,
.exact-due-cell {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}
.exact-payment-cell strong {
    color: #101828;
    font-size: 14px;
    white-space: nowrap;
}
.exact-due-cell strong {
    color: #b42318;
    font-size: 13px;
    white-space: nowrap;
}
.exact-due-cell span:not(.muted) {
    color: #667085;
    font-size: 10px;
    white-space: nowrap;
}
@media (max-width: 1260px) and (min-width: 921px) {
    .account-list-head,
    .account-row { min-width: 1080px; }
}

.payment-source {
    color: #667085;
    font-size: 10px;
    white-space: nowrap;
}


/* v4.0.0 - parser notifikasi billing dan Total Payment Due */
.edit-billing-notice {
    grid-column: 1 / -2;
}
.edit-billing-notice textarea {
    min-height: 82px;
    resize: vertical;
}
.edit-billing-notice small {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}
.account-total-scope {
    min-width: 170px;
}
.account-total-values {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex-wrap: wrap;
}
.account-total-values > div {
    display: flex;
    min-width: 170px;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.account-total-values span {
    font-size: 10px;
}
@media (max-width: 760px) {
    .edit-billing-notice { grid-column: auto; }
    .account-total-values {
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
    }
    .account-total-values > div { align-items: flex-start; }
}
