﻿html, body {
    overflow-x: hidden; /* Evita scroll horizontal */
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #F5F5F5;
    color: #4A4A4A;
    margin: 0;
    padding: 0;
}

main.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #1A73E8;
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCC;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #1A73E8;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-primary:hover {
        background-color: #0F4C8A;
    }

@media (max-width: 768px) {
    .top-navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

        .nav-menu li a {
            display: block;
            width: 100%;
        }
}
@media (max-width: 480px) {

    .login-container {
        margin: 30px 15px;
        padding: 25px 20px;
    }

    .login-title-brand {
        font-size: 20px;
    }
}


.input-icon {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

    .input-icon .icon {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        pointer-events: none;
    }

    .input-icon img {
        width: 20px;
        height: 20px;
    }

    .input-icon input {
        width: 100%;
        padding: 12px 12px 12px 45px !important; /* espacio para el icono */
        border: 1px solid #CCC;
        border-radius: 8px;
        font-size: 16px;
    }

.login-title-brand {
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    color: #1A73E8;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #004B9A;
    margin-bottom: 25px;
    text-align: center;
}

.card-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dashboard-card {
    background: white;
    border: 1px solid #EEE;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
    padding: 18px;
    border-radius: 12px;
    width: 220px;
    transition: transform 0.2s;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
    }

    .dashboard-card h3 {
        font-size: 18px;
        color: #004B9A;
    }

    .dashboard-card p {
        font-size: 28px;
        font-weight: bold;
        color: #0E66F0;
    }

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

    .filters input[type="date"] {
        padding: 8px 12px;
        border: 1px solid #B5B5B5;
        border-radius: 6px;
        font-size: 14px;
    }

    .filters button {
        background-color: #0E66F0;
        border: none;
        padding: 10px 18px;
        color: white;
        border-radius: 6px;
        cursor: pointer;
    }

        .filters button:hover {
            background-color: #004B9A;
        }

.filter-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.filter-group label {
    font-size: 14px;
    color: #004B9A;
}

.filter-group input {
    padding: 8px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .dashboard-table th {
        background-color: #004B9A;
        color: white;
        padding: 10px;
    }

    .dashboard-table td {
        padding: 10px;
        border-bottom: 1px solid #DDD;
    }

.stats-horizontal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 25px auto;
    max-width: 650px;
}

.stat-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .stat-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    }

.stat-icon {
    background: #0E66F0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    margin-right: 16px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
    text-transform: capitalize;
}

.metrics-container {
    display: flex;
    justify-content: flex-end; /* A LA DERECHA */
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.metric-card {
    width: 180px; /* MÁS PEQUEÑAS */
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .metric-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    }

    .metric-card i {
        font-size: 24px;
    }

    .metric-card h4 {
        margin: 0;
        font-size: 14px;
        color: #4A4A4A;
    }

    .metric-card span {
        font-size: 18px;
        font-weight: bold;
        color: #1A73E8;
    }

/* COLORES POR TIPO */
.metric-1 i {
    color: #F4A100;
}

.metric-2 i {
    color: #28A745;
}

.metric-3 i {
    color: #DC3545;
}

.metric-4 i {
    color: #1A73E8;
}

.active-filter {
    border: 2px solid #0E66F0;
    transform: scale(1.05);
    transition: 0.2s ease;
}

.link-solicitud {
    font-weight: 600;
    color: #0E66F0;
    text-decoration: none;
}

    .link-solicitud:hover {
        text-decoration: underline;
    }

.detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
}

.detail-title {
    font-size: 26px;
    margin-bottom: 30px;
}

    .detail-title span {
        color: #1f6feb;
    }

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.card-title {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

    .info-grid div {
        display: flex;
        flex-direction: column;
    }

label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

span {
    font-weight: 600;
}

.observaciones {
    margin-top: 15px;
}

.actions {
    margin: 20px 0;
    
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

    .btn.primary {
        background: #1f6feb;
        color: #fff;
    }

    .btn.secondary {
        background: #2da44e;
        color: #fff;
    }

    .btn.outline {
        border: 2px solid #1f6feb;
        color: #1f6feb;
        background: transparent;
    }

    .btn:hover {
        opacity: .9;
    }

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

    .badge.success {
        background: #dafbe1;
        color: #116329;
    }

    .badge.danger {
        background: #ffebe9;
        color: #cf222e;
    }

/* UPLOAD */
.upload-box {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.detail-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .card-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        flex: 1;
    }

    .card-header i {
        color: #1A73E8;
        font-size: 18px;
    }

.status-badge {
    background: #E3F2FD;
    color: #1A73E8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

    .detail-grid label {
        font-size: 12px;
        color: #777;
        display: block;
    }

    .detail-grid span {
        font-size: 14px;
        font-weight: 500;
        color: #333;
    }

.detail-observations {
    margin-top: 16px;
}

    .detail-observations p {
        background: #F9FAFB;
        padding: 14px;
        border-radius: 8px;
        font-size: 14px;
    }

.badge-ok {
    background: #E6F4EA;
    color: #1E8E3E;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.badge-pending {
    background: #FFF4E5;
    color: #F29900;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.contract-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #F1F3F4;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

    .btn-secondary:hover {
        background: #E8EAED;
    }

.page-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
}

    .page-title span {
        color: #1A73E8;
    }

.detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .card-header i {
        font-size: 20px;
        color: #1A73E8;
    }

    .card-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 22px;
}

    .info-grid div {
        display: flex;
        flex-direction: column;
    }

    .info-grid label {
        font-size: 12px;
        color: #777;
        margin-bottom: 4px;
    }

    .info-grid span {
        font-size: 14px;
        font-weight: 500;
        color: #333;
    }

.observations {
    margin-top: 20px;
}

    .observations label {
        font-size: 12px;
        color: #777;
    }

    .observations p {
        margin-top: 6px;
        background: #f5f7fa;
        padding: 12px;
        border-radius: 8px;
        font-size: 14px;
    }

.actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #f1f4f9;
    color: #1A73E8;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

    .btn-secondary:hover {
        background: #e3e9f3;
    }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #e0e0e0;
}

    .badge.ok {
        background: #e6f4ea;
        color: #137333;
    }

    .badge.warn {
        background: #fce8e6;
        color: #c5221f;
    }
.detalle-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.detalle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .detalle-header h1 {
        font-size: 26px;
        font-weight: 600;
    }

.estado-badge {
    background: #1a73e8;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

    .card h2 {
        margin-bottom: 20px;
        font-size: 18px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

/* GRID INFO */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 26px;
}

    .info-grid .full {
        grid-column: span 3;
    }

label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.observaciones {
    background: #f8f9fb;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

    .badge.success {
        background: #e6f4ea;
        color: #137333;
    }

    .badge.warning {
        background: #fff4e5;
        color: #b26a00;
    }

/* ACTIONS */
.actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

    .btn.primary {
        background: #1a73e8;
        color: #fff;
    }

    .btn.secondary {
        background: #f1f3f4;
        color: #333;
    }

    .btn.outline {
        border: 1px solid #1a73e8;
        color: #1a73e8;
    }
/* Card general */
.card-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Header resultados */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .card-header h3 {
        margin: 0;
        font-size: 18px;
        color: #1A73E8;
    }

.result-count {
    font-size: 14px;
    color: #777;
}

/* Filtros */
.filters-inline {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 260px;
}

    .filter-group label {
        font-size: 13px;
        margin-bottom: 4px;
        color: #555;
    }

/* Mensaje info */
.info-box {
    background: #F4F8FF;
    border-left: 4px solid #1A73E8;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 16px;
    color: #333;
}

/* Tabla limpia */
.clean-table {
    width: 100%;
    border-collapse: collapse;
}

    .clean-table thead th {
        background: #F8FAFC;
        font-weight: 600;
        font-size: 14px;
        color: #333;
        padding: 12px;
    }

    .clean-table tbody td {
        padding: 12px;
        font-size: 14px;
        border-top: 1px solid #EEE;
    }

/* Badge estado */
.status-badge {
    background: #E8F0FE;
    color: #1A73E8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Link solicitud */
.strong-link {
    font-weight: 600;
    color: #1A73E8;
    text-decoration: none;
}

    .strong-link:hover {
        text-decoration: underline;
    }

/* Tabla vacía */
.empty-row {
    text-align: center;
    padding: 20px;
    color: #777;
}
/* Card del filtro */
.filter-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    max-width: 600px;
}

/* Grupo label + select */
.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .filter-group label {
        font-size: 14px;
        font-weight: 500;
        color: #444;
        margin-bottom: 6px;
    }

/* Select bonito */
.select-filter {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #fff;
}

/* Botón alineado */
.filter-btn {
    height: 42px;
    padding: 0 22px;
    white-space: nowrap;
}
.table-filters input {
    width: 100%;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}
.solicitudes-table td:nth-child(5),
.solicitudes-table th:nth-child(5) {
    white-space: normal;
    min-width: 220px;
}
@media (max-width: 768px) {
    .solicitudes-table td:nth-child(6),
    .solicitudes-table th:nth-child(6),
    .solicitudes-table td:nth-child(7),
    .solicitudes-table th:nth-child(7) {
        min-width: 110px;
        text-align: right;
        font-size: 14px;
    }
}
}



.table-filters th {
    background: #f9fafb;
}
/* ===============================
   AJUSTE FINO FILTRO SOLICITUDES
   
================================ */

/* El filtro ocupa el ancho del contenido */
.filter-card {
    max-width: 100%;
    width: 100%;
    padding: 18px 20px;
}

/* Alineación más natural con la página */
.filter-card {
    align-items: center;
}

    /* El select respira mejor */
    .filter-card .select-filter {
        height: 42px;
    }

    /* Botón con el mismo peso visual */
    .filter-card .filter-btn {
        height: 42px;
        min-width: 160px;
    }

/* En desktop se ve como barra, en mobile se apila */
@media (max-width: 768px) {
    .filter-card {
        flex-direction: column;
        align-items: stretch;
    }

        .filter-card .filter-btn {
            width: 100%;
        }
}
@media (max-width: 768px) {
    .solicitudes-table {
        min-width: 720px;
    }
}
@media (max-width: 768px) {
    .table-filters input {
        font-size: 15px;
    }
}

.card-section .card-header h3 {
    color: #004B9A;
}

/* ===============================
   VISTA SOLICITUDES (AISLADA)
================================ */

.solicitudes-view {
    width: 100%;
    padding: 16px;
}

/* ===== Filtro ===== */
.solicitudes-filter-card {
    display: flex;
    align-items: center;
    gap: 16px;width: 35%;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.solicitudes-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 240px;
}

.solicitudes-select-filter {
    height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.solicitudes-filter-btn {
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    min-width: 140px;
}

/* ===== Card Resultados ===== */
.solicitudes-card-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.solicitudes-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

    .solicitudes-card-header h3 {
        color: #004B9A;
        font-size: 18px;
        font-weight: 600;
    }

@media (max-width: 576px) {
    .solicitudes-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===== Tabla ===== */
.solicitudes-table thead th {
    background: #F1F5FB;
    color: #1F2937;
    font-weight: 600;
    width: 100%; /* evita que se aplaste */
    border-collapse: collapse;
}


/* Botón más pequeño SOLO en solicitudes */
.solicitudes-filter-btn {
    width: auto !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    height: 38px;
}

/* Header tabla más oscuro SOLO solicitudes */
.solicitudes-table thead th {
    background-color: #E9F0FA;
    color: #1F2937;
    width: 100%; /* evita que se aplaste */
    border-collapse: collapse;
}

.solicitudes-table th,
.solicitudes-table td {
    white-space: nowrap;
    padding: 12px;
}
/* Evita que filter-card global rompa esta vista */
.solicitudes-filter-card {
    max-width: 100%;
}
/* ===============================
   VISTA SOLICITUDES – FILTRO
================================ */

.solicitudes-filter-card {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 35%;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

/* Grupo select */
.solicitudes-filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 320px;
}

.solicitudes-filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #004B9A;
    margin-bottom: 6px;
}

/* Select */
.solicitudes-select-filter {
    height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Botón */
.solicitudes-filter-btn {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    min-width: 130px;
}

/* Mobile */
@media (max-width: 768px) {
    .solicitudes-filter-card {
        flex-direction: column;
        align-items: stretch;
    }

    .solicitudes-filter-btn {
        width: 100%;
    }
}
    /* ===============================
   DASHBOARD VIEW
================================ */

    .dashboard-view {
        width: 100%;
    }

    /* ===== FILTRO ===== */
    .dashboard-filter-bar {
        background: #ffffff;
        padding: 18px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
        margin-bottom: 28px;
        display: flex;
        align-items: flex-end;
        gap: 16px;
        flex-wrap: wrap;
    }

    .dashboard-filter-group {
        display: flex;
        flex-direction: column;
        min-width: 180px;
    }

        .dashboard-filter-group label {
            font-size: 13px;
            font-weight: 500;
            color: #1A73E8;
            margin-bottom: 4px;
        }

        .dashboard-filter-group input[type="date"] {
            height: 38px;
            padding: 6px 10px;
            border-radius: 8px;
            border: 1px solid #ccc;
            font-size: 14px;
        }

    .dashboard-filter-btn {
        height: 40px;
        padding: 0 22px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
    }

    /* ===== MÉTRICAS ===== */
.dashboard-metrics {
    display: flex;
    justify-content: flex-end; 
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

    .dashboard-metric-card {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 18px;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        cursor: pointer;
        transition: 0.2s ease;
    }

        .dashboard-metric-card:hover {
            transform: translateY(-2px);
        }

        .dashboard-metric-card.active-filter {
            border: 2px solid #1A73E8;
        }

    /* ===== TABLA ===== */
    .dashboard-table-view {
        width: 100%;
        border-collapse: collapse;
    }

        .dashboard-table-view thead th {
            background: #004B9A;
            padding: 12px;
            font-size: 14px;
            font-weight: 600;
        }

        .dashboard-table-view tbody td {
            padding: 12px;
            border-bottom: 1px solid #eee;
            font-size: 14px;
        }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .dashboard-filter-bar {
            flex-direction: column;
            align-items: stretch;
        }

        .dashboard-filter-btn {
            width: 100%;
        }
        .solicitudes-filter-group,
        .solicitudes-filter-btn {
            width: 100%;
        }
    }
.table-wrapper {
     overflow-x: auto;
    width: 100%;
}

.btn-primaryD {
    width: 15%;
    padding: 14px;
    background-color: #1A73E8;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.titlegeneral  span{
    font-size: 15px;
    font-weight: 500;
    color: #1A73E8;
}

.login-help {
    margin-top: 18px;
    text-align: center;
}

    .login-help a {
        font-size: 13px;
        color: #1A73E8;
        text-decoration: none;
    }

        .login-help a:hover {
            text-decoration: underline;
        }
.link-button {
    background: none;
    border: none;
    color: #1A73E8;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

    .link-button:hover {
        text-decoration: underline;
    }
/* ===========================
   Renovaciones
   =========================== */

.table-brand {
    width: 100%;
    border-collapse: collapse;
}

    .table-brand th,
    .table-brand td {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .table-brand thead th {
        font-weight: 600;
    }

/* Resaltado por vencimiento */
.warning-row {
    background-color: var(--warning-bg, #fff3cd);
}

/* Acción de renovación */
.btn-link-brand {
    color: #0d6efd; /* azul link */
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

    .btn-link-brand:hover {
        color: #084298;
        text-decoration: underline;
    }
.fila-alerta {
    background-color: #fff3cd;
}
.login-page main {
    display: flex;
    align-items: center;
    justify-content: center;
}
.contract-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* para que en mobile se bajen */
}
.form-actions-center {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.btn-icon-copy {
    border: 1px solid #ced4da;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: #0d6efd;
    transition: all .2s ease;
}

    .btn-icon-copy:hover {
        background: #e9ecef;
    }

    .btn-icon-copy.copied {
        background: #d1e7dd;
        border-color: #198754;
        color: #198754;
    }
.url-copy-group {
    display: flex;
    width: 100%;
    gap: 8px;
}

.url-input {
    flex: 1;
    height: 44px; 
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0 12px; 
    background-color: #f1f3f5;
    font-size: 14px;
    line-height: 44px;
      min-width: 0;
}

    .url-input:focus {
        outline: none;
    }

.url-copy-btn {
    height: 44px;
    border: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
    border-radius:  8px 8px ;
    background-color: #f1f3f5;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0d6efd;
}

    .url-copy-btn:hover {
        background-color: #f1f3f5;
    }

    .url-copy-btn.copied {
        background-color: #d1e7dd;
        color: #198754;
        border-color: #198754;
    }

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

    /* Hover (solo desktop, aunque no se vea ahí) */
    .whatsapp-float:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(0,0,0,.35);
        text-decoration: none;
        color: #fff;
    }

/*  OCULTO POR DEFECTO */
.whatsapp-mobile-only {
    display: none;
}
/*  SOLO MOBILE */
@media (max-width: 768px) {
    .whatsapp-mobile-only {
        display: flex;
    }
}

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(0,0,0,.35);
        color: #fff;
        text-decoration: none;
    }


    .whatsapp-float:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(0,0,0,.35);
        color: #fff;
        text-decoration: none;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2.5s infinite;
}



/* solo mobile */
@media (max-width: 768px) {
    .whatsapp-mobile-only {
        display: flex;
    }
}
/* ===============================
   SOLICITUDES - AJUSTE DE COLUMNAS
   =============================== */

/* Columna # Solicitud */
.solicitudes-table th:nth-child(1),
.solicitudes-table td:nth-child(1) {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    text-align: left;
    white-space: nowrap;
}

    /* Input filtro de # Solicitud */
    .solicitudes-table th:nth-child(1) input {
        width: 100%;
    }
