/* SGTC v23 - Módulos operacionais: cards/forms/tabelas profissionais */

.page-v23 {
    max-width: 1560px;
}

.v23-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

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

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

.v23-module-card {
    text-decoration: none;
    color: #053047;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transition: transform .14s ease, box-shadow .14s ease;
}

.v23-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(4,45,39,.16);
}

.v23-module-card strong {
    font-size: 22px;
    font-weight: 950;
}

.v23-module-card span {
    color: #5c7888;
    font-weight: 700;
}

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

.v23-card-head h2 {
    font-size: 18px;
    margin: 0 0 3px;
    color: #053047;
}

.v23-card-head p {
    margin: 0;
    color: #5c7888;
    font-weight: 650;
}

.v23-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.v23-form-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v23-form-grid label,
.v23-inline-form label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: #214c47;
    margin-bottom: 5px;
}

.v23-form-grid input,
.v23-form-grid select,
.v23-form-grid textarea,
.v23-inline-form input,
.v23-inline-form select,
.v23-filter input,
.v23-filter select {
    width: 100%;
    border: 1px solid #cfe0da;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    outline: none;
    background: #fff;
    min-height: 42px;
}

.v23-form-grid textarea {
    min-height: 92px;
    resize: vertical;
}

.v23-form-grid .span-2 {
    grid-column: span 2;
}

.v23-form-grid .full {
    grid-column: 1 / -1;
}

.v23-inline-form,
.v23-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.v23-inline-form input,
.v23-inline-form select,
.v23-filter input,
.v23-filter select {
    max-width: 260px;
}

.v23-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
    color: #214c47;
    height: 42px;
}

.v23-check input {
    width: auto;
    min-height: auto;
}

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

.v23-table-wrap.small {
    max-height: 310px;
    overflow-y: auto;
}

.v23-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

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

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

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

.v23-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    background: #e8f7f1;
    color: #075a52;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

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

.v23-kpi {
    border: 1px solid #dcebe5;
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(4,45,39,.10);
}

.v23-kpi.primary {
    background: linear-gradient(135deg, #07362f, #0f766e);
    color: #fff;
}

.v23-kpi.alert {
    background: linear-gradient(135deg, #fff7d8, #fff);
    border-color: #ffe48a;
}

.v23-kpi span {
    display: block;
    color: #5c7888;
    font-weight: 850;
    margin-bottom: 6px;
}

.v23-kpi.primary span {
    color: rgba(255,255,255,.82);
}

.v23-kpi strong {
    display: block;
    font-size: 25px;
    font-weight: 950;
}

.row-alert {
    background: #fffaf0;
}

@media (max-width: 1050px) {
    .v23-grid-2,
    .v23-grid-3,
    .v23-kpi-grid {
        grid-template-columns: 1fr;
    }
    .v23-form-grid,
    .v23-form-grid.compact {
        grid-template-columns: 1fr;
    }
    .v23-form-grid .span-2 {
        grid-column: 1;
    }
    .v23-inline-form input,
    .v23-inline-form select,
    .v23-filter input,
    .v23-filter select {
        max-width: none;
    }
}
