/* Style halaman dashboard; urutan selector dipertahankan untuk menjaga cascade. */
body > [hidden] {
    display: none !important;
}

.dashboard-page {
    margin: 0;
    background: #f6f4f0;
    color: #302823;
    font:
        14px/1.5 "Segoe UI",
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.dashboard {
    --dash-muted: #7e746c;
    --dash-line: #eee8df;
    --dash-gold: #a76a08;
    min-height: 100dvh;
}

.dashboard *,
.dashboard *::before,
.dashboard *::after {
    box-sizing: border-box;
}

.dashboard [hidden],
#dashboard[hidden] {
    display: none !important;
}

.dashboard button,
.dashboard input {
    font: inherit;
}

.dashboard button {
    cursor: pointer;
}

.dashboard button,
.dashboard a,
.dashboard input {
    -webkit-tap-highlight-color: transparent;
}

.dashboard :focus-visible {
    outline: 2px solid #c18013;
    outline-offset: 4px;
}

.dashboard svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dash-skip {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 50;
    padding: 12px;
    background: var(--app-primary);
    color: var(--app-dark);
}

.dash-skip:focus {
    top: 12px;
}

.dash-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 252px;
    display: flex;
    flex-direction: column;
    padding: 0 18px;
    background: linear-gradient(155deg, #342820, #211b19 60%, #171416);
    color: #cfc3b7;
    border-right: 1px solid #49382a;
    overflow-y: auto;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 94px;
    color: #fff6e9;
    text-decoration: none;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.8px;
}

.dash-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.dash-brand-gold {
    color: var(--app-primary);
}

.dash-brand small {
    display: block;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #bda58d;
    margin-top: 1px;
}

.dash-search {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    margin: 8px 0 24px;
    border: 1px solid #57483c;
    border-radius: 7px;
    background: #ffffff06;
    color: #bca58d;
}

.dash-search svg {
    width: 17px;
    height: 17px;
}

.dash-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 12px;
}

.dash-search input::placeholder {
    color: #bcae9e;
}

.dash-nav-label {
    margin: 0 12px 12px;
    font-size: 10px;
    font-weight: 600;
    color: #aa9683;
    letter-spacing: 1.8px;
}

#dash-nav {
    display: grid;
    gap: 6px;
}

.dash-nav-group {
    display: grid;
    gap: 2px;
}

.dash-nav-group + .dash-nav-group {
    margin-top: 12px;
}

.dash-nav-group-title {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 38px;
    margin: 0;
    padding: 7px 13px;
    color: #b6a18d;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.dash-nav-group-title::-webkit-details-marker {
    display: none;
}

.dash-nav-group-title::after {
    content: "\F285";
    margin-left: auto;
    font: 10px/1 bootstrap-icons;
    transition: transform 160ms ease;
}

.dash-nav-group[open] > .dash-nav-group-title::after {
    transform: rotate(90deg);
}

.dash-nav-group-title > i {
    width: 18px;
    flex: 0 0 18px;
    color: var(--app-primary);
    text-align: center;
    font-size: 16px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    min-height: 38px;
    width: calc(100% - 31px);
    margin-left: 31px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 8px 13px;
    text-align: left;
    background: transparent;
    color: #d4c9bf;
    font-size: 13px;
}

.dash-nav-group:not([open]) > .dash-nav-item {
    display: none;
}

.dash-nav-item svg {
    width: 18px;
    height: 18px;
    color: #b6a18d;
}

.dash-nav-item:hover {
    background: #ffffff09;
    color: white;
}

.dash-nav-item[aria-current] {
    color: #ffcf72;
    background: linear-gradient(90deg, #ffbd3225, #ffbd3211);
    border-color: #ffbd322b;
}

.dash-nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--app-primary);
    margin-left: auto;
}

.dash-no-menu {
    padding: 0 12px;
    font-size: 12px;
}

.dash-sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 28px 8px;
    font-size: 12px;
}

.dash-sidebar-bottom small {
    display: block;
    color: #ad9b8b;
    font-size: 10px;
    margin-top: 2px;
}

.dash-product-mark {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    color: var(--app-primary);
    border: 1px solid #635039;
    border-radius: 9px;
    font-weight: bold;
}

.dash-workspace {
    margin-left: 252px;
}

.dash-topbar {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    gap: 16px;
    background: #fffdf9;
    border-bottom: 1px solid #e9e2d8;
}

.dash-topbar-left,
.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.dash-topbar-title {
    font-size: 13px;
    font-weight: 600;
    color: #71665a;
}

.dash-icon-button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid #e9e2d8;
    border-radius: 7px;
    background: transparent;
    color: #837461;
}

.dash-icon-button:hover {
    background: #fff2d8;
    color: #6a4713;
}

.dash-session-label {
    font-size: 11px;
    color: #57715d;
    white-space: nowrap;
}

.dash-session-label i {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #698b65;
    border-radius: 50%;
    margin-right: 5px;
}

.dash-topbar-divider {
    height: 25px;
    width: 1px;
    background: #e9e2d8;
}

.dash-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f6e6c6;
    color: #885a13;
    font-weight: 600;
}

#dash-user {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

.dash-main {
    max-width: 1600px;
    margin: auto;
    padding: 24px 36px 16px;
}

.dash-breadcrumb {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--dash-muted);
    margin-bottom: 22px;
}

.dash-breadcrumb span {
    color: #b5a99a;
}

.dash-breadcrumb strong {
    color: #8e641e;
    font-weight: 500;
}

.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 28px;
    border: 1px solid #efd6a0;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fff0cd url("../../../assets/images/background/login-form-v1.png?v=2") center top /
        100% auto no-repeat;
}

.dash-eyebrow {
    margin: 0 0 7px;
    color: #805c20;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.dash-welcome h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.8px;
}

#dash-greeting {
    margin: 9px 0 0;
    font-size: 12px;
    color: #6c512c;
}

.dash-date {
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #634921;
}

.dash-date small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 5px;
}

.dash-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #806638;
    padding: 0 2px;
    margin: 0 0 18px;
}

.dash-notice svg {
    width: 16px;
    height: 16px;
}

.dash-notice p {
    margin: 0;
    font-size: 11px;
}

.dash-notice strong {
    font-weight: 600;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 22px;
}

.dash-stat {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--dash-line);
    border-radius: 9px;
    background: #fffefa;
}

.dash-stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #fff1d5;
    color: #b37b21;
    border-radius: 10px;
}

.dash-stat p {
    margin: 0;
    font-size: 11px;
    color: #746a5e;
}

.dash-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1.5;
    font-weight: 500;
    color: #62564a;
}

.dash-stat small {
    display: block;
    font-size: 10px;
    color: var(--dash-muted);
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-grid > [data-dashboard-card] {
    display: block;
    min-width: 0;
}

.dash-grid > [data-dashboard-card] > .dash-card {
    height: 100%;
}

[data-dashboard-card][hidden] {
    display: none !important;
}

.dash-card {
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid #e7e0d6;
    background: #fffefa;
    border-radius: 10px;
    box-shadow: 0 3px 9px #49331a03;
}

.dash-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dash-card h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
}

.dash-card header p {
    margin: 4px 0 0;
    font-size: 10px;
    color: var(--dash-muted);
}

.dash-card-refresh {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: 1px solid var(--dash-line);
    border-radius: 7px;
    background: transparent;
    color: #9b896f;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.dash-card-refresh:hover {
    background: #fff2d8;
    color: #805c20;
}

.dash-card-refresh:active {
    transform: rotate(45deg);
}

.dash-card-refresh i {
    font-size: 15px;
    line-height: 1;
}

.dash-card-icon {
    color: #b59a71;
}

.dash-gauges {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 25px 0 20px;
}

.dash-gauge-item {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.dash-gauge {
    width: clamp(70px, 7.8vw, 116px);
    aspect-ratio: 1;
    border: 9px solid #f0e9dd;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.dash-gauge strong {
    text-align: center;
    font-size: 28px;
    line-height: 1;
    font-weight: 500;
    color: #7e6f5d;
}

.dash-gauge small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 5px;
    color: var(--dash-muted);
}

.dash-gauge-item b {
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dash-gauge-item > span {
    font-size: 9px;
    color: var(--dash-muted);
}

.dash-details {
    margin: 0;
    border-top: 1px solid var(--dash-line);
    padding-top: 10px;
    font-size: 11px;
}

.dash-details > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}

.dash-details dt {
    color: var(--dash-muted);
}

.dash-details dd {
    margin: 0;
    text-align: right;
    color: #6c6052;
}

.dash-services {
    margin-top: 19px;
}

.dash-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dash-line);
    font-size: 12px;
}

.dash-service:last-child {
    border-bottom: 0;
}

.dash-service-icon {
    color: #9b896f;
    display: flex;
}

.dash-service-icon svg {
    width: 19px;
    height: 19px;
}

.dash-status {
    margin-left: auto;
    padding: 4px 9px;
    border: 1px solid #e6e0d7;
    border-radius: 5px;
    background: #f6f3ee;
    color: #817565;
    font-size: 9px;
    white-space: nowrap;
}

.dash-status[data-online="true"] {
    border-color: #bad8c0;
    background: #edf8ef;
    color: #397247;
}

.dash-card-refresh:disabled {
    cursor: wait;
    opacity: 0.55;
}

.dash-card-note {
    border-top: 1px solid var(--dash-line);
    margin: 10px 0 0;
    padding-top: 13px;
    font-size: 10px;
    color: var(--dash-muted);
}

.dash-storage {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 0 18px;
}

.dash-gauge-storage {
    width: 124px;
    flex-shrink: 0;
    border-width: 12px;
}

.dash-storage .dash-details {
    flex: 1;
    border: 0;
    padding: 0;
}

.dash-storage-mounts {
    border-top: 1px solid var(--dash-line);
    padding-top: 14px;
}

.dash-storage-mount {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f1ece4;
    font-size: 11px;
}

.dash-storage-mount > div:last-child {
    text-align: right;
}

.dash-storage-mount strong,
.dash-storage-mount small {
    display: block;
}

.dash-storage-mount strong {
    color: #6c6052;
    font-weight: 500;
}

.dash-storage-mount small,
.dash-storage-empty,
.dash-storage-virtual > p {
    margin: 3px 0 0;
    color: var(--dash-muted);
    font-size: 9px;
}

.dash-storage-virtual {
    margin-top: 12px;
}

.dash-storage-physical summary,
.dash-storage-virtual summary {
    cursor: pointer;
    color: #806f58;
    font-size: 10px;
}

.dash-storage-virtual > p {
    margin-bottom: 6px;
}

.dash-chart-legend {
    display: flex;
    gap: 18px;
    font-size: 9px;
    color: var(--dash-muted);
    margin: 18px 0 10px;
}

.dash-chart-legend span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 2px;
    background: #c79232;
}

.dash-chart-legend span:nth-child(2)::before {
    background: #a5876e;
}

.dash-chart-legend span:nth-child(3)::before {
    background: #e1b977;
}

.dash-chart-legend [data-series="cpu"]::before {
    background: #367cc8;
}

.dash-chart-legend [data-series="memory"]::before {
    background: #d65c62;
}

.dash-chart-legend [data-series="calls"]::before {
    background: #42a653;
}

.dash-performance-chart {
    position: relative;
    min-height: 260px;
    height: 260px;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    border-bottom: 1px solid var(--dash-line);
}

.dashboard canvas.dash-chart {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.dashboard svg.dash-chart {
    display: block;
    width: 100%;
    height: 220px;
    overflow: visible;
}

.dash-chart-grid line {
    stroke: #eee8df;
    stroke-width: 1;
}

.dash-chart-grid text,
.dash-chart-axis-calls,
.dash-chart-empty-label {
    fill: #8c8176;
    font-size: 9px;
}

.dash-chart-empty-label {
    font-size: 11px;
}

.dash-chart-axis-calls {
    fill: #42a653;
}

.dash-chart-area-memory {
    fill: #d65c621f;
}

.dash-chart-line-memory,
.dash-chart-line-cpu,
.dash-chart-line-calls {
    fill: none;
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

circle.dash-chart-line-memory,
circle.dash-chart-line-cpu,
circle.dash-chart-line-calls {
    fill: #fffefa;
}

.dash-chart-line-memory {
    stroke: #d65c62;
}

.dash-chart-line-cpu {
    stroke: #367cc8;
}

.dash-chart-line-calls {
    stroke: #42a653;
}

.dash-chart-empty {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--dash-line);
    background:
        repeating-linear-gradient(0deg, transparent, transparent 39px, #f2ece3 40px),
        repeating-linear-gradient(90deg, transparent, transparent 69px, #f2ece3 70px);
    text-align: center;
}

.dash-empty-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 9px;
    border: 1px solid #e9dfce;
    border-radius: 10px;
    background: #fffcf5;
    color: #ae8a4f;
}

.dash-chart-empty strong {
    font-size: 12px;
    font-weight: 500;
    background: #fffefa;
}

.dash-chart-empty p {
    margin: 5px 0 0;
    font-size: 10px;
    color: var(--dash-muted);
    background: #fffefa;
}

.dash-session {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px 18px;
    border: 1px solid #e7e0d6;
    border-radius: 8px;
    background: #fffefa;
}

.dash-session-icon {
    display: flex;
    color: #a4885c;
}

.dash-session strong {
    font-weight: 500;
    font-size: 11px;
}

.dash-session p {
    margin: 2px 0 0;
    color: var(--dash-muted);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.dash-session-badge {
    margin-left: auto;
    color: #92713d;
    font-size: 10px;
    white-space: nowrap;
}

.dash-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    font-size: 10px;
    color: #8a7d6c;
}

.dash-workspace > footer-layout .dash-footer {
    padding: 0 36px 24px;
}

.dash-footer-separator {
    margin: 0 8px;
    color: #c6ab7d;
}

.dash-module-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 65px 24px;
}

.dash-module-empty p {
    max-width: 400px;
    color: var(--dash-muted);
    font-size: 13px;
}

.dash-primary {
    padding: 10px 18px;
    margin-top: 12px;
    background: var(--app-primary);
    color: var(--app-text-on-primary);
    border: 1px solid var(--app-primary-border);
    border-radius: 6px;
}

.dashboard.nav-collapsed .dash-sidebar {
    display: none;
}

.dashboard.nav-collapsed .dash-workspace {
    margin-left: 0;
}

@media (min-width: 1600px) {
    .dash-main {
        padding-top: 30px;
    }

    .dash-welcome {
        padding: 32px;
    }

    .dash-card {
        padding: 26px 28px;
    }
}

@media (max-width: 1200px) {
    .dash-sidebar {
        width: 224px;
        padding-inline: 14px;
    }

    .dash-workspace {
        margin-left: 224px;
    }

    .dash-main {
        padding: 22px;
    }

    .dash-stats {
        gap: 10px;
    }

    .dash-stat {
        padding: 15px 12px;
        gap: 10px;
    }

    .dash-stat-icon {
        width: 30px;
        height: 30px;
    }

    .dash-stat-icon svg {
        width: 16px;
        height: 16px;
    }

    .dash-card {
        padding: 20px;
    }

    .dash-storage {
        gap: 16px;
    }

    .dash-gauge-storage {
        width: 100px;
    }
}

@media (max-width: 960px) {
    .dash-sidebar {
        width: 252px;
        box-shadow: 10px 0 40px #0003;
    }

    .dash-workspace {
        margin-left: 0;
    }

    .dash-backdrop {
        position: fixed;
        inset: 0;
        z-index: 25;
        background: #17141680;
        border: 0;
    }

    .dash-topbar {
        padding-inline: 22px;
    }

    .dash-gauge {
        width: 90px;
    }

    .dash-welcome {
        background-size: auto 460px;
    }
}

@media (max-width: 680px) {
    .dash-main {
        padding: 18px 16px;
    }

    .dash-topbar {
        padding: 12px 16px;
        min-height: 66px;
    }

    .dash-topbar-left,
    .dash-topbar-right {
        gap: 9px;
    }

    .dash-topbar-title {
        font-size: 11px;
    }

    .dash-session-label,
    .dash-topbar-divider {
        display: none;
    }

    #dash-user {
        max-width: 85px;
    }

    .dash-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dash-welcome {
        padding: 22px;
    }

    .dash-welcome h1 {
        font-size: 27px;
    }

    .dash-date {
        display: none;
    }

    .dash-notice {
        align-items: flex-start;
    }

    .dash-notice svg {
        margin-top: 3px;
    }

    .dash-gauge {
        width: 92px;
    }

    .dash-gauge-storage {
        width: 110px;
    }

    .dash-footer {
        flex-wrap: wrap;
    }

    .dash-breadcrumb {
        margin-bottom: 16px;
    }

    .dash-brand {
        min-height: 84px;
    }
}

@media (max-width: 370px) {
    .dash-topbar-title {
        display: none;
    }

    .dash-gauge {
        width: 74px;
        border-width: 7px;
    }

    .dash-card {
        padding: 17px;
    }

    .dash-service {
        gap: 8px;
        font-size: 11px;
    }

    .dash-status {
        padding-inline: 6px;
    }
}

.dash-service-menu {
    position: relative;
}

.dash-service-menu[hidden] {
    display: none;
}

.dash-service-menu summary {
    cursor: pointer;
    list-style: none;
    padding: 7px;
    border: 1px solid var(--dash-line);
    border-radius: 5px;
}

.dash-service-menu summary::-webkit-details-marker {
    display: none;
}

.dash-service-actions {
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    z-index: 10;
    min-width: 145px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--dash-line);
    border-radius: 7px;
    box-shadow: 0 6px 18px #0002;
}

.dash-service-actions button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.dash-service-actions button:hover,
.dash-service-actions button:focus-visible {
    background: #f6f3ee;
}

.dash-service-actions button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.dash-service-spinner,
.dash-service.is-loading summary::after {
    display: inline-block;
    width: 13px;
    height: 13px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: dash-service-spin 0.7s linear infinite;
}

.dash-service.is-loading summary {
    cursor: wait;
}

.dash-service.is-loading summary > i {
    display: none;
}

.dash-service.is-loading summary::after {
    content: "";
}

@keyframes dash-service-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash-service-spinner,
    .dash-service.is-loading summary::after {
        animation-duration: 1.5s;
    }
}
