﻿.summary-page {
    padding-bottom: 24px;
}

.summary-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.summary-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(31, 45, 61, 0.08);
    margin-bottom: 18px;
    overflow: hidden;
}

.summary-filter-card .card-body {
    padding: 18px;
}

.summary-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.summary-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    margin-bottom: 6px;
}

.summary-field .form-control {
    border-radius: 12px;
    min-height: 42px;
    border: 1px solid #dfe7f1;
    box-shadow: none;
}

.summary-field-btn .btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 600;
}

.summary-exec-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
    color: #fff;
    border-radius: 20px;
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(21, 94, 117, 0.22);
}

.summary-exec-banner__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.summary-exec-banner__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.summary-exec-banner__text {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.96;
}

.kpi-card .card-body {
    padding: 18px 18px 16px;
}

.kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.kpi-title {
    font-size: 14px;
    font-weight: 600;
    color: #5b6472;
}

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255,255,255,0.25);
}

.kpi-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: #1f2937;
    margin-bottom: 8px;
}

    .kpi-value small {
        font-size: 16px;
        font-weight: 600;
    }

.kpi-foot {
    font-size: 13px;
    color: #667085;
}

    .kpi-foot.up {
        color: #0f9d58;
    }

    .kpi-foot.down {
        color: #d93025;
    }

.kpi-card-primary {
    background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
}

.kpi-card-success {
    background: linear-gradient(180deg, #effcf6 0%, #ffffff 100%);
}

.kpi-card-warning {
    background: linear-gradient(180deg, #fff8e8 0%, #ffffff 100%);
}

.kpi-card-danger {
    background: linear-gradient(180deg, #fff1f1 0%, #ffffff 100%);
}

.summary-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    padding: 16px 18px 10px;
}

.summary-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #243041;
    margin-bottom: 3px;
}

.summary-card .card-category {
    font-size: 12px;
    color: #7b8794;
}

.summary-card .card-body {
    padding: 18px;
}

.chart-wrap {
    position: relative;
    height: 320px;
}

.donut-wrap {
    height: 320px;
}

.summary-table thead th {
    border-top: 0;
    border-bottom: 1px solid #e9eef5;
    font-size: 13px;
    font-weight: 700;
    color: #425466;
    background: #f8fafc;
    vertical-align: middle;
}

.summary-table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
    font-size: 14px;
    color: #344054;
}

.summary-total-row td {
    font-weight: 700;
    background: #f8fbff;
}

.cost-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fbff;
    color: #516173;
    font-size: 13px;
    line-height: 1.7;
}

    .cost-note i {
        margin-right: 6px;
        color: #2563eb;
    }

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.insight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.insight-badge {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .insight-badge.bad {
        background: #fff1f1;
        color: #d93025;
    }

    .insight-badge.good {
        background: #effcf6;
        color: #0f9d58;
    }

    .insight-badge.info {
        background: #eef6ff;
        color: #2563eb;
    }

    .insight-badge.warn {
        background: #fff8e8;
        color: #ca8a04;
    }

.insight-title {
    font-weight: 700;
    color: #253243;
    margin-bottom: 4px;
}

.insight-text {
    font-size: 13px;
    line-height: 1.7;
    color: #5b6776;
}

.util-badge {
    display: inline-block;
    min-width: 52px;
    padding: 5px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

    .util-badge.high {
        background: #dcfce7;
        color: #166534;
    }

    .util-badge.medium {
        background: #fef3c7;
        color: #92400e;
    }

    .util-badge.low {
        background: #fee2e2;
        color: #991b1b;
    }

.policy-card .card-body {
    padding-top: 12px;
}

.policy-list {
    margin: 0;
    padding-left: 18px;
}

    .policy-list li {
        margin-bottom: 12px;
        color: #425466;
        line-height: 1.7;
    }

@media (max-width: 1199.98px) {
    .summary-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .summary-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .summary-filter-grid {
        grid-template-columns: 1fr;
    }

    .summary-exec-banner {
        flex-direction: column;
    }

    .chart-wrap,
    .donut-wrap {
        height: 260px;
    }

    .kpi-value {
        font-size: 28px;
    }
}
.summary-card {
    border: 1px solid #edf2f7;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.2s ease;
}

    .summary-card:hover {
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
        transform: translateY(-1px);
    }

    .summary-card .card-header {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-bottom: 1px solid #eef2f7;
        padding: 16px 18px 12px;
    }

    .summary-card .card-title {
        font-size: 16px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 4px;
    }

    .summary-card .card-category {
        font-size: 12px;
        color: #64748b;
        letter-spacing: 0.1px;
    }

.chart-wrap {
    position: relative;
    height: 330px;
}

.donut-wrap {
    height: 330px;
}
.cost-table-wrap {
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.summary-table thead th {
    border-top: 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    background: #fff7ed;
    vertical-align: middle;
    padding-top: 12px;
    padding-bottom: 12px;
}

.summary-table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
    font-size: 14px;
    color: #334155;
    padding-top: 11px;
    padding-bottom: 11px;
}

.summary-table tbody tr:hover td {
    background: #fffaf0;
}

.cost-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    font-size: 13px;
    line-height: 1.7;
}

    .cost-note i {
        margin-right: 6px;
        color: #ea580c;
    }
.insight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

    .insight-item:hover {
        border-color: #dbeafe;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
    }

.insight-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .insight-badge.bad {
        background: #fef2f2;
        color: #dc2626;
    }

    .insight-badge.good {
        background: #ecfdf5;
        color: #16a34a;
    }

    .insight-badge.info {
        background: #eff6ff;
        color: #2563eb;
    }

    .insight-badge.warn {
        background: #fff7ed;
        color: #ea580c;
    }

.insight-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 14px;
}

.insight-text {
    font-size: 13px;
    line-height: 1.7;
    color: #5b6776;
}
.summary-card.card-roomshare {
    border-top: 4px solid #7c3aed;
}

.chart-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.chart-chip-purple {
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

.donut-wrap-premium {
    position: relative;
    height: 350px;
    padding-top: 4px;
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
}

.donut-center__label {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 2px;
}

.donut-center__value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.donut-center__sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.card-roomshare .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.summary-card.card-deptusage {
    border-top: 4px solid #10b981;
}

.chart-chip-emerald {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.dept-chart-wrap {
    height: 300px;
}

.summary-table-sm thead th {
    font-size: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.summary-table-sm tbody td {
    font-size: 13px;
    padding-top: 9px;
    padding-bottom: 9px;
}
.policy-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    background: #ffffff;
    transition: all 0.2s;
}

    .policy-item:hover {
        box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    }

.policy-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .policy-icon.good {
        background: #ecfdf5;
        color: #16a34a;
    }

    .policy-icon.warn {
        background: #fff7ed;
        color: #ea580c;
    }

    .policy-icon.bad {
        background: #fef2f2;
        color: #dc2626;
    }

    .policy-icon.info {
        background: #eff6ff;
        color: #2563eb;
    }

.policy-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.policy-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}
.policy-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

    .policy-item:hover {
        border-color: #dbeafe;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
    }

.policy-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .policy-icon.good {
        background: #ecfdf5;
        color: #16a34a;
    }

    .policy-icon.warn {
        background: #fff7ed;
        color: #ea580c;
    }

    .policy-icon.bad {
        background: #fef2f2;
        color: #dc2626;
    }

    .policy-icon.info {
        background: #eff6ff;
        color: #2563eb;
    }

.policy-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 14px;
}

.policy-text {
    font-size: 13px;
    line-height: 1.7;
    color: #5b6776;
}
.kpi-card .card-body {
    min-height: 150px;
}
.summary-page {
    padding-bottom: 24px;
    background: #f8fafc;
}

.summary-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

/* ===== Buttons ===== */
.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: none;
}

    .btn.btn-primary:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
    }

    .btn.btn-primary.btn-round {
        border-radius: 999px;
        padding-left: 16px;
        padding-right: 16px;
        font-weight: 600;
    }

.summary-field-btn .btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 600;
}

/* ===== Card base ===== */
.summary-card {
    border: 1px solid #e5eaf2;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    margin-bottom: 18px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.2s ease;
}

    .summary-card:hover {
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .summary-card .card-header {
        background: #ffffff;
        border-bottom: 1px solid #edf2f7;
        padding: 16px 18px 12px;
    }

    .summary-card .card-title {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 4px;
        letter-spacing: 0.1px;
    }

    .summary-card .card-category {
        font-size: 12px;
        color: #64748b;
        line-height: 1.5;
    }

    .summary-card .card-body {
        padding: 18px;
    }

/* ===== Filter ===== */
.summary-filter-card {
    border-color: #dfe7f1;
    background: #ffffff;
}

    .summary-filter-card .card-body {
        padding: 18px;
    }

.summary-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.summary-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.summary-field .form-control {
    border-radius: 12px;
    min-height: 42px;
    border: 1px solid #dbe3ee;
    box-shadow: none;
    color: #0f172a;
    background: #fff;
}

    .summary-field .form-control:focus {
        border-color: #93c5fd;
        box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.10);
    }

/* ===== KPI ===== */
.kpi-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    min-height: 154px;
}

    .kpi-card::before {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        top: 0;
        height: 4px;
        border-radius: 0 0 8px 8px;
    }

.kpi-card-primary::before {
    background: #2563eb;
}

.kpi-card-success::before {
    background: #0f766e;
}

.kpi-card-warning::before {
    background: #d97706;
}

.kpi-card .card-body {
    padding: 20px 18px 18px;
}

.kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.kpi-title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    line-height: 1.5;
    letter-spacing: 0.1px;
}

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid transparent;
}

.kpi-card-primary .kpi-icon {
    color: #2563eb;
    background: #eff6ff;
    border-color: #dbeafe;
}

.kpi-card-success .kpi-icon {
    color: #0f766e;
    background: #ecfeff;
    border-color: #ccfbf1;
}

.kpi-card-warning .kpi-icon {
    color: #d97706;
    background: #fff7ed;
    border-color: #fed7aa;
}

.kpi-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

    .kpi-value small {
        font-size: 15px;
        font-weight: 700;
        color: #475569;
    }

.kpi-foot {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
    font-weight: 500;
}

/* ===== Chart helpers ===== */
.chart-wrap {
    position: relative;
    height: 330px;
}

.donut-wrap {
    height: 330px;
}

.donut-wrap-premium {
    position: relative;
    height: 350px;
    padding-top: 4px;
}

.chart-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.chart-chip-purple {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}

.chart-chip-emerald {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* ===== Donut center ===== */
.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
}

.donut-center__label {
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 2px;
}

.donut-center__value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.donut-center__sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ===== Cost table ===== */
.cost-table-wrap {
    border-radius: 18px;
    background: #fffdfa;
}

.summary-table thead th {
    border-top: 0;
    border-bottom: 1px solid #e8edf3;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    vertical-align: middle;
    padding-top: 12px;
    padding-bottom: 12px;
}

.summary-table tbody td {
    vertical-align: middle;
    border-color: #eef2f7;
    font-size: 14px;
    color: #334155;
    padding-top: 11px;
    padding-bottom: 11px;
}

.summary-table tbody tr:hover td {
    background: #f8fbff;
}

.summary-table-sm thead th {
    font-size: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.summary-table-sm tbody td {
    font-size: 13px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.cost-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fffaf0;
    border: 1px solid #fde7c2;
    color: #7c4a03;
    font-size: 13px;
    line-height: 1.7;
}

    .cost-note i {
        margin-right: 6px;
        color: #d97706;
    }

/* ===== Util badges ===== */
.util-badge {
    display: inline-block;
    min-width: 52px;
    padding: 5px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

    .util-badge.high {
        background: #ecfdf5;
        color: #166534;
    }

    .util-badge.medium {
        background: #fff7ed;
        color: #9a3412;
    }

    .util-badge.low {
        background: #fef2f2;
        color: #991b1b;
    }

/* ===== Insight / Policy ===== */
.policy-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

    .policy-item:hover {
        border-color: #dbeafe;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.06);
    }

.policy-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .policy-icon.good {
        background: #ecfdf5;
        color: #16a34a;
    }

    .policy-icon.warn {
        background: #fff7ed;
        color: #ea580c;
    }

    .policy-icon.bad {
        background: #fef2f2;
        color: #dc2626;
    }

    .policy-icon.info {
        background: #eff6ff;
        color: #2563eb;
    }

.policy-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    font-size: 14px;
}

.policy-text {
    font-size: 13px;
    line-height: 1.7;
    color: #5b6776;
}

/* ===== Special cards ===== */
.summary-card.card-roomshare {
    border-top: 4px solid #7c3aed;
}

.summary-card.card-deptusage {
    border-top: 4px solid #10b981;
}

.policy-card {
    border-top: 4px solid #2563eb;
}

.card-roomshare .card-header,
.card-deptusage .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
    .summary-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .summary-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .summary-filter-grid {
        grid-template-columns: 1fr;
    }

    .chart-wrap,
    .donut-wrap,
    .donut-wrap-premium {
        height: 280px;
    }

    .kpi-value {
        font-size: 28px;
    }
}