/* File Path: /20/acc6/public_assets/css/pages/dashboard.css */

.acc6-dashboard-page {
    display: grid;
    gap: 9px;
    direction: rtl;
}

.acc6-dashboard-hero {
    min-height: 78px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #b8cfd2;
    border-top: 4px solid var(--acc6-teal-700);
    border-radius: 7px;
    background: #fff;
    box-shadow: var(--acc6-shadow-sm);
}

.acc6-dashboard-overline {
    display: block;
    color: var(--acc6-teal-700);
    font-size: 10px;
    font-weight: 900;
}

.acc6-dashboard-hero h2 {
    margin: 1px 0 3px;
    color: var(--acc6-teal-950);
    font-size: 20px;
    font-weight: 900;
}

.acc6-dashboard-hero p {
    margin: 0;
    color: var(--acc6-muted);
    font-size: 11px;
    font-weight: 700;
}

.acc6-period-card {
    min-width: 390px;
    margin: 0;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: auto minmax(210px, 1fr);
    align-items: center;
    gap: 4px 8px;
    border: 1px solid #bfd5d6;
    border-radius: 6px;
    background: #f2f9f8;
}

.acc6-period-card label {
    color: #425c62;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.acc6-period-card select {
    width: 100%;
    min-height: 31px;
    border: 1px solid #8eb6b8;
    border-radius: 4px;
    background: #fff;
    color: var(--acc6-teal-950);
    font-family: Cairo, sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.acc6-period-card b {
    color: var(--acc6-teal-900);
    font-size: 12px;
    font-weight: 900;
    direction: ltr;
}

.acc6-period-card small {
    grid-column: 1 / -1;
    color: var(--acc6-muted);
    font-size: 9px;
    font-weight: 700;
    text-align: left;
}

.acc6-dashboard-period-note {
    padding: 7px 10px;
    border: 1px solid #e0b45b;
    border-right: 4px solid #c78108;
    border-radius: 5px;
    background: #fff9ec;
    color: #76510a;
    font-size: 10px;
    font-weight: 800;
}

.acc6-finance-kpis {
    display: grid;
    grid-template-columns: repeat(8, minmax(130px, 1fr));
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.acc6-finance-kpi {
    min-width: 130px;
    min-height: 73px;
    padding: 8px 9px;
    display: grid;
    align-content: center;
    gap: 2px;
    border: 1px solid #c3d4d8;
    border-right: 4px solid var(--acc6-teal-700);
    border-radius: 6px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--acc6-shadow-sm);
}

.acc6-finance-kpi:hover {
    border-color: var(--acc6-teal-600);
    background: var(--acc6-teal-50);
}

.acc6-finance-kpi span {
    color: #445b62;
    font-size: 9px;
    font-weight: 800;
}

.acc6-finance-kpi b {
    color: #0a6162;
    font-size: 16px;
    font-weight: 900;
    direction: ltr;
    text-align: right;
}

.acc6-finance-kpi small {
    color: #7a8d93;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc6-dashboard-integrity {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 6px;
}

.acc6-dashboard-integrity > div {
    min-height: 42px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #cbdadd;
    border-radius: 5px;
    background: #fff;
}

.acc6-dashboard-integrity span {
    color: #465c62;
    font-size: 9px;
    font-weight: 800;
}

.acc6-dashboard-integrity b {
    min-width: 30px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.acc6-dashboard-integrity b.is-ok {
    border: 1px solid #89c9a0;
    background: #eefaf2;
    color: #17743a;
}

.acc6-dashboard-integrity b.is-danger {
    border: 1px solid #e4a3a8;
    background: #fff0f1;
    color: #a31e2a;
}

.acc6-dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 9px;
}

.acc6-dashboard-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.acc6-dashboard-card {
    min-width: 0;
    border: 1px solid #c3d4d8;
    border-radius: 7px;
    background: #fff;
    box-shadow: var(--acc6-shadow-sm);
    overflow: hidden;
}

.acc6-card-title {
    min-height: 36px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--acc6-teal-800);
    color: #fff;
}

.acc6-card-title h3 {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.acc6-card-title span,
.acc6-card-title a {
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.acc6-card-title a {
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 4px;
}

.acc6-alert-list,
.acc6-action-list {
    padding: 7px;
    display: grid;
    gap: 5px;
}

.acc6-alert-item,
.acc6-action-item {
    min-height: 40px;
    padding: 7px 9px;
    display: block;
    border: 1px solid #d7e1e3;
    border-right-width: 4px;
    border-radius: 5px;
    background: #fafcfc;
    color: #263b41;
    text-decoration: none;
}

.acc6-alert-item strong {
    display: block;
    font-size: 10px;
    font-weight: 900;
}

.acc6-alert-item p {
    margin: 2px 0 0;
    color: #62777d;
    font-size: 9px;
    font-weight: 700;
}

.acc6-alert-danger { border-right-color: var(--acc6-danger); background: #fff8f8; }
.acc6-alert-warning { border-right-color: #d68a16; background: #fffaf1; }
.acc6-alert-success { border-right-color: var(--acc6-success); background: #f4fbf6; }

.acc6-action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.acc6-action-item {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right-color: var(--acc6-teal-600);
    color: var(--acc6-teal-900);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}

.acc6-action-item:hover {
    background: var(--acc6-teal-50);
    border-color: var(--acc6-teal-600);
}

.acc6-mini-table {
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
}

.acc6-mini-table thead th {
    position: static !important;
    padding: 6px 7px !important;
    background: #edf5f5 !important;
    color: var(--acc6-teal-950) !important;
    border-bottom: 1px solid #c4d8da !important;
    font-size: 9px !important;
}

.acc6-mini-table td {
    height: 29px;
    padding: 5px 7px !important;
    font-size: 9px !important;
}

@media (max-width: 1300px) {
    .acc6-finance-kpis {
        grid-template-columns: repeat(4, minmax(145px, 1fr));
    }

    .acc6-dashboard-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .acc6-dashboard-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .acc6-period-card {
        min-width: 0;
    }

    .acc6-dashboard-grid,
    .acc6-dashboard-grid-3,
    .acc6-dashboard-integrity {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .acc6-finance-kpis {
        display: flex;
    }

    .acc6-action-list {
        grid-template-columns: 1fr;
    }

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

    .acc6-period-card small {
        grid-column: auto;
    }
}
