#sge-admin-app {
    display: flex;
    min-height: 90vh;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: #f5f7fb;
}

/* SIDEBAR */
.sge-admin-sidebar {
    width: 240px;
    background: #0f172a;
    color: #fff;
    padding: 20px;
}

.sge-admin-logo {
    font-size: 22px;
    margin-bottom: 30px;
}

.sge-admin-menu a {
    display: block;
    padding: 12px 14px;
    margin-bottom: 6px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.sge-admin-menu a:hover,
.sge-admin-menu a.active {
    background: #1e293b;
    color: #fff;
}

/* CONTENT */
.sge-admin-content {
    flex: 1;
    padding: 24px;
}

#sge-admin-view {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* TOPBAR */
.sge-admin-topbar {
    margin-bottom: 12px;
}

#sge-toggle-sidebar {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}

#sge-toggle-sidebar:hover {
    background: #1e293b;
}

/* SIDEBAR TOGGLE */
#sge-admin-app {
    transition: all 0.3s ease;
}

.sge-admin-sidebar {
    transition: width 0.3s ease, opacity 0.3s ease;
}

.sge-sidebar-hidden .sge-admin-sidebar {
    width: 0;
    opacity: 0;
    padding: 0;
    overflow: hidden;
}

.sge-sidebar-hidden .sge-admin-content {
    width: 100%;
}

/* =========================
   DASHBOARD KPIs
========================= */

.sge-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Contenedor de tarjetas */
.sge-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

/* Tarjeta KPI */
.sge-kpi {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border-left: 6px solid transparent;
}

/* Hover */
.sge-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Activo */
.sge-kpi.active {
    background: #f4f8ff;
    border-left-color: #2563eb;
}

/* Título */
.sge-kpi h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

/* Contador */
.sge-kpi span {
    display: block;
    margin-top: 8px;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}

/* Colores por estado */
.sge-kpi-blue { border-left-color: #2563eb; }
.sge-kpi-yellow { border-left-color: #f59e0b; }
.sge-kpi-purple { border-left-color: #800080; }
.sge-kpi-green { border-left-color: #16a34a; }
.sge-kpi-red { border-left-color: #dc2626; }
.sge-kpi-dark { border-left-color: #0f172a; }

/* =========================
   TABLA
========================= */

.sge-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.sge-table {
    table-layout: fixed;
    width: 100%;
}

.sge-table th,
.sge-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    text-align: left;
}

.sge-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.sge-table tr:hover {
    background: #f1f5f9;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.sge-field {
    margin-bottom: 12px;
}

.sge-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.sge-field input,
.sge-field select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.sge-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.sge-btn {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: #e5e7eb; /* gris base */
    color: #1f2937;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sge-btn-danger {
    background-color: #dc2626; /* rojo por defecto */
    color: #ffffff;
}

.sge-btn-danger:hover {
    background-color: #dc2626; /* gris oscuro al hover */
}

.sge-btn-danger:disabled {
    background-color: #fca5a5;
    cursor: not-allowed;
    opacity: 0.8;
}

.sge-btn-trash {
    background-color: #C4302B; /* rojo por defecto */
    color: #ffffff;
}

.sge-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fondo oscuro */
.sge-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* CONTENIDO CON SCROLL */
.sge-modal-content {
    position: relative;
    background: #fff;

    /* 🔹 AUMENTO DE ANCHO */
    width: 90%;
    max-width: 1100px;   /* antes seguramente ~900px */

    margin: 5vh auto;
    border-radius: 14px;
    padding: 24px;

    /* 🔹 CONTROL DE ALTURA */
    max-height: 90vh;
    overflow-y: auto;
}


.sge-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sge-modal-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.sge-modal-footer {
    margin-top: 16px;
    text-align: right;
}

.sge-block {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.sge-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.sge-field label {
    font-weight: 600;
    margin-bottom: 4px;
}

#sge-service-number {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

.sge-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px; /* un poco más de aire */
}


.sge-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .sge-modal-content {
        max-width: 95%;
    }

    .sge-modal-grid {
        grid-template-columns: 1fr;
    }
}

.sge-table-filters {
    margin-bottom: 12px;
}

#sge-table-search {
    width: 100%;
    max-width: 360px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.sge-table-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sge-table-filters input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.sge-btn-clear {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #B9757C;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.sge-btn-clear:hover {
    background: #89343D;
}

/* ===============================
   TOOLBAR SUPERIOR
================================ */

.sge-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: nowrap; /* 🔴 CLAVE */
}

/* IZQUIERDA */
.sge-table-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; /* 🔴 CLAVE */
    flex: 1;           /* ocupa el espacio disponible */
    min-width: 0;      /* 🔴 permite encogerse */
}

/* DERECHA */
.sge-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;    /* 🔴 nunca baja */
}

/* Inputs compactos */
.sge-table-filters input[type="text"] {
    min-width: 220px;
}

.sge-table-filters input[type="date"],
.sge-bulk-actions select {
    min-width: 140px;
}

/* Botones alineados */
.sge-bulk-actions button,
.sge-table-filters button {
    white-space: nowrap;
}

/* Buscador */
#sge-table-search {
    max-width: 240px;
    width: 100%;
}

/* Fechas */
#sge-date-from,
#sge-date-to {
    max-width: 140px;
}

/* Selects masivos */
#sge-bulk-mensajero,
#sge-bulk-estado {
    max-width: 180px;
}

/* Botones */
.sge-bulk-actions button,
.sge-table-filters button {
    white-space: nowrap;
}


@media (max-width: 1024px) {
    .sge-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sge-table-filters,
    .sge-bulk-actions {
        justify-content: flex-start;
    }
}

.sge-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2f9e44;
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 99999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.sge-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Badge base */
.sge-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
    white-space: nowrap;
}

/* Estados (mismos colores de KPI) */
.sge-status-solicitado {
    background-color: #2f80ed; /* azul */
}

.sge-status-pendiente {
    background-color: #f2c94c; /* amarillo */
    color: #333;
}

.sge-status-aceptado {
    background-color: #800080; /* amarillo */
}

.sge-status-entregado {
    background-color: #27ae60; /* verde */
}

.sge-status-rechazado {
    background-color: #eb5757; /* rojo */
}

/* Overlay de carga */
.sge-modal-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Botón en loading */
.sge-btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

/* Spinner simple */
.sge-btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    animation: sge-spin 0.8s linear infinite;
}

@keyframes sge-spin {
    to { transform: rotate(360deg) translateY(-50%); }
}

#sge-client-name {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

/* Header de sección */
.sge-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sge-section-title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}

.sge-section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Botón principal */
.sge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

/* Variante primaria (verde) */
.sge-btn-primary:hover {
    background-color: #4b8a23;
}

/* Botón con icono */
.sge-btn-icon {
    font-size: 18px;
    line-height: 1;
}


.sge-autocomplete {
    position: relative;
}

.sge-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.sge-autocomplete-item {
    padding: 8px 10px;
    cursor: pointer;
}

.sge-autocomplete-item:hover {
    background: #f3f3f3;
}

.sge-cuadre-bloque {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.sge-cuadre-mensajero {
    margin-bottom: 15px;
    color: #1e293b;
}

.sge-cuadre-resumen {
    margin-top: 10px;
    font-weight: 600;
}

.sge-negative {
    color: #d63638;
    font-weight: 700;
}

/* =========================
   LOADING GLOBAL
========================= */

#sge-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sge-loading-box {
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    font-weight: 600;
    color: #0f172a;
}

.sge-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e5e7eb;
    border-top-color: #16a34a;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: sge-spin 0.8s linear infinite;
}

@keyframes sge-spin {
    to { transform: rotate(360deg); }
}

/* =========================
   TOAST NOTIFICATIONS
========================= */

#sge-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sge-toast {
    min-width: 260px;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
}

.sge-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.sge-toast-success {
    background: #16a34a;
}

.sge-toast-error {
    background: #dc2626;
}

.sge-toast-warning {
    background: #f59e0b;
}

.sge-toast-info {
    background: #2563eb;
}

/* =========================
   CONFIRM MODAL
========================= */

#sge-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sge-confirm-box {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 14px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: sgeFadeIn 0.2s ease;
}

.sge-confirm-message {
    font-size: 15px;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 500;
}

.sge-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sge-btn-cancel {
    background: #C4302B;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.sge-btn-confirm {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.sge-btn-confirm:hover {
    background: #15803d;
}

@keyframes sgeFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.sge-delete-service {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
}

.sge-col-fecha {
    white-space: nowrap;
    text-align: center;
    width: 110px;
    font-size: 13px;
}

.sge-change-date {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.sge-change-date:hover {
    transform: scale(1.1);
    background: none;
}

/* ===== MODAL CAMBIO DE FECHA (AISLADO) ===== */

.sge-date-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.sge-date-modal.hidden {
    display: none;
}

.sge-date-modal-content {
    background: #fff;
    width: 340px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.sge-date-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.sge-date-modal-content input[type="date"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
}

.sge-date-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sge-date-modal-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#sge-save-date {
    background: #4CAF50;
    color: #fff;
}

#sge-cancel-date {
    background: #e53935;
    color: #fff;
}

/* ===== Evidencias en modal ===== */

.sge-evidencias-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sge-btn-evidencia {
    background: rgba(46,125,50,0.08);
    border: 1px solid #2e7d32;
    color: #2e7d32;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.sge-btn-evidencia:hover {
    background: #2e7d32;
    color: #fff;
}

.hidden {
    display: none !important;
}

.sge-payment-admin {
    margin-top: 10px;
    padding: 10px;
    background: rgba(46,125,50,0.06);
    border-left: 4px solid #2e7d32;
    border-radius: 6px;
    font-size: 13px;
}

.sge-badge-efectivo {
    background: #43a047;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

.sge-badge-transferencia {
    background: #1e88e5;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

.sge-badge-mixto {
    background: #8e24aa;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Tabla estable */
.sge-table {
    table-layout: fixed;
    width: 100%;
}

.sge-table th,
.sge-table td {
    vertical-align: middle;
}

/* Primera columna (checkbox) */
.sge-table th:first-child,
.sge-table td:first-child {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center;
}

.sge-cuadres-table table {
    table-layout: auto;
}

.sge-cliente-table table {
    table-layout: auto;
}

.sge-mensajero-table table {
    table-layout: auto;
}

.sge-dashboard-table table {
    table-layout: auto;
}


.sge-cuadres-search {
    margin-bottom: 0px;
}

#sge-cuadres-search-input {
    width: 350px;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.sge-highlight {
    background-color: #fff3a3;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.sge-highlight-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    font-size: 14px;
    cursor: pointer;
}

/* =========================
   LOGIN MODERNO SGE
========================= */

body {
    margin: 0;
}

.sge-login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f6f8, #eef2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sge-login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    animation: fadeInUp 0.5s ease;
}

.sge-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.sge-login-header img {
    max-width: 160px;
    margin-bottom: 15px;
}

.sge-login-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.sge-login-header p {
    margin-top: 8px;
    font-size: 14px;
    color: #777;
}

.sge-form-group {
    margin-bottom: 18px;
}

.sge-form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    background: #fafafa;
    transition: 0.2s ease;
}

.sge-form-group input:focus {
    background: #fff;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
    outline: none;
}

.sge-btn-primary:hover {
    background: #43a047;
    transform: translateY(-1px);
}

.sge-login-error {
    margin-top: 14px;
    text-align: center;
    color: #e53935;
    font-size: 14px;
}

/* Animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sge-resumen-cuadres{
    margin-top:25px;
}

.sge-resumen-table{
    width:100%;
    border-collapse:collapse;
}

.sge-resumen-table th,
.sge-resumen-table td{
    border:1px solid #444;
    padding:8px;
    text-align:left;
}

.sge-resumen-table thead{
    background:#eee;
}

.sge-resumen-table tfoot{
    background:#cfe3cf;
    font-weight:bold;
}

.sge-consignar{
    font-weight:bold;
}

.sge-negative {
    color: #d63638;
    font-weight: 700;
}

.sge-positive {
    color: #2e7d32;
    font-weight: 600;
}

#sge-delete-service-modal {
    background: #ef4444;
    color: white;
}

.sge-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.sge-actions-left {
    display: flex;
    gap: 10px;
}
/* =========================
   REPORTES
========================= */

.sge-reportes-filters {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.sge-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#sge-rep-kpis {
    margin-bottom: 8px;
}

#sge-rep-tabla thead th {
    white-space: nowrap;
}

#sge-rep-tabla tbody tr:hover {
    background: #f0f9ff;
}

#sge-rep-tabla tbody tr:last-child td {
    background: #f1f5f9;
}

/* =========================
   MODAL TENDENCIA
========================= */

.sge-trend-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sge-trend-modal-wrap.hidden { display: none; }
.sge-trend-modal-wrap.visible { display: flex; }

.sge-trend-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.sge-trend-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    width: min(780px, 94vw);
    padding: 28px 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: sgeTrendIn 0.22s ease;
}

@keyframes sgeTrendIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.sge-trend-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sge-trend-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sge-trend-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}

.sge-trend-close:hover { color: #0f172a; }

.sge-trend-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: -4px;
}

.sge-trend-chart-wrap {
    width: 100%;
    height: 320px;
    position: relative;
}

.sge-trend-loading {
    text-align: center;
    padding: 40px 0;
    color: #64748b;
    font-size: 14px;
}

/* Cursor pointer en KPIs del dashboard */
#sge-admin-view .sge-kpi {
    cursor: pointer;
}
