/* SGTC v24 - Dashboard Operacional */

.page-v24-dashboard {
    max-width: 1580px;
}

.v24-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,210,26,.22), transparent 25%),
        linear-gradient(135deg, #07362f 0%, #075a52 52%, #0f766e 100%);
    color: #fff;
    border-radius: 24px;
    padding: 26px 28px;
    margin-bottom: 16px;
    box-shadow: 0 22px 50px rgba(4,45,39,.18);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.v24-hero h1 {
    margin: 4px 0 6px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.7px;
}

.v24-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-weight: 700;
}

.v24-kicker {
    display: inline-flex;
    color: #ffe271;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
}

.v24-periodo {
    display: flex;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}

.v24-periodo label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgba(255,255,255,.86);
    font-size: 11px;
    font-weight: 900;
}

.v24-periodo input {
    height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 10px;
    color: #07362f;
    font-weight: 800;
}

.v24-alerts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.v24-alert {
    border-radius: 18px;
    padding: 13px 15px;
    border: 1px solid #dbece7;
    background: #fff;
    box-shadow: 0 14px 32px rgba(4,45,39,.08);
}

.v24-alert strong {
    display: block;
    color: #053047;
    font-weight: 950;
    margin-bottom: 3px;
}

.v24-alert span {
    color: #58746e;
    font-weight: 700;
    font-size: 13px;
}

.v24-alert.success {
    border-color: #bdebd6;
    background: #f0fff8;
}

.v24-alert.warning {
    border-color: #ffe08a;
    background: #fff9e8;
}

.v24-alert.danger {
    border-color: #ffc5bd;
    background: #fff1ef;
}

.v24-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.v24-kpi {
    min-height: 132px;
    border-radius: 22px;
    padding: 17px;
    background: #ffffff;
    border: 1px solid #dcebe5;
    box-shadow: 0 16px 36px rgba(4,45,39,.10);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.v24-kpi span {
    color: #58746e;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.v24-kpi strong {
    color: #053047;
    font-size: 27px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.7px;
}

.v24-kpi small {
    color: #708a84;
    font-weight: 750;
}

.v24-kpi.primary {
    background: linear-gradient(135deg, #07362f, #0f766e);
    border-color: rgba(255,255,255,.16);
}

.v24-kpi.primary span,
.v24-kpi.primary small,
.v24-kpi.primary strong {
    color: #fff;
}

.v24-kpi.warning {
    background: linear-gradient(135deg, #fff4c2, #fff);
    border-color: #ffe18d;
}

.v24-kpi.money {
    background: linear-gradient(135deg, #eefaf5, #fff);
}

.v24-fast-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.v24-fast-actions a {
    text-decoration: none;
    text-align: center;
    color: #075a52;
    background: #eaf8f4;
    border: 1px solid #cceae1;
    border-radius: 15px;
    padding: 12px 8px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(4,45,39,.07);
    transition: transform .14s ease, background .14s ease;
}

.v24-fast-actions a:hover {
    transform: translateY(-1px);
    background: #dcf4ee;
}

.v24-grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
    gap: 16px;
    margin-bottom: 16px;
}

.v24-card {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,253,251,.98));
    border: 1px solid #dcebe5;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(4,45,39,.10);
    padding: 16px;
    overflow: hidden;
}

.v24-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.v24-card-head h2 {
    margin: 0 0 3px;
    color: #053047;
    font-size: 19px;
    font-weight: 950;
}

.v24-card-head p {
    margin: 0;
    color: #607d76;
    font-weight: 750;
}

.v24-card-head a {
    color: #075a52;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.v24-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v24-bar-row {
    display: grid;
    grid-template-columns: minmax(170px, .9fr) minmax(150px, 1.2fr) 60px;
    gap: 12px;
    align-items: center;
}

.v24-bar-label strong {
    display: block;
    color: #053047;
    font-weight: 950;
}

.v24-bar-label small {
    color: #6b837e;
    font-weight: 750;
}

.v24-bar-track {
    height: 12px;
    border-radius: 99px;
    background: #e6f2ef;
    overflow: hidden;
}

.v24-bar-track span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #0f766e, #ffd21a);
}

.v24-status-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.v24-status-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
    border: 1px solid #e0eee9;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
}

.v24-status-item span {
    font-weight: 950;
    color: #053047;
}

.v24-status-item strong {
    font-size: 22px;
    color: #075a52;
}

.v24-status-item small {
    grid-column: 1 / -1;
    color: #6b837e;
    font-weight: 750;
}

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

.v24-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.v24-table th {
    background: #eaf5f1;
    color: #06372f;
    text-align: left;
    font-size: 12px;
    padding: 10px;
    white-space: nowrap;
}

.v24-table td {
    border-bottom: 1px solid #e8f0ed;
    padding: 10px;
    vertical-align: top;
}

.v24-table small {
    color: #667f78;
    font-weight: 700;
}

.v24-timeline {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.v24-timeline-item {
    display: grid;
    grid-template-columns: 15px 1fr auto;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #053047;
    border: 1px solid #e0eee9;
    border-radius: 16px;
    padding: 10px;
    background: #fff;
}

.v24-timeline-item .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #0f766e;
    box-shadow: 0 0 0 4px rgba(15,118,110,.12);
}

.v24-timeline-item .dot.stock {
    background: #ffd21a;
    box-shadow: 0 0 0 4px rgba(255,210,26,.22);
}

.v24-timeline-item strong {
    display: block;
    font-weight: 950;
}

.v24-timeline-item small {
    color: #6b837e;
    font-weight: 750;
}

.v24-timeline-item em {
    color: #78918b;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.v24-empty,
.v24-empty-cell {
    padding: 18px;
    text-align: center;
    color: #78918b;
    font-weight: 850;
    background: #f7fbfa;
    border-radius: 16px;
}

.v24-empty-cell {
    border-radius: 0;
}

@media (max-width: 1350px) {
    .v24-kpi-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
    .v24-fast-actions {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 1100px) {
    .v24-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .v24-alerts,
    .v24-grid-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .v24-kpi-grid,
    .v24-fast-actions {
        grid-template-columns: 1fr;
    }
    .v24-periodo {
        flex-direction: column;
        align-items: stretch;
    }
    .v24-bar-row {
        grid-template-columns: 1fr;
    }
}
