html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.grid-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.table-excel {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.table-excel thead th {
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 600;
    border-bottom: 1px solid #cbd5e1;
    white-space: nowrap;
}

.table-excel td {
    vertical-align: middle;
}

.table-excel tr.row-anulado {
    opacity: 0.62;
    text-decoration: line-through;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-panel {
    background: #ffffff;
    border-radius: 0.85rem;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.modal-panel.modal-lg {
    max-width: 780px;
}

.modal-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-panel-body {
    padding: 1.25rem;
}

.modal-panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.mobile-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    min-height: 3.5rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
    height: 100%;
}

.kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kpi-value {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.btn-touch {
    min-height: 2.75rem;
}
