@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body{
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link{
    color: #0366d6;
}
.btn-primary{
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}
#blazor-error-ui{
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@keyframes pulse{
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.10);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.6;
    }
}


.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    display: block;
}

.modal-content{
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    overflow: hidden;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer
    }


.collapsable-panel {
    border: 1px solid #eee;
    padding: 25px;
    background-color: white;
    overflow: hidden;
}

.collapsable .title {
    display: table-cell
}

.collapsable .value {
    display: table-cell;
    text-align: right;
}

/*tabla pequeña asigancion*/
table.paleBlueRows {
    border: 1px solid #FFFFFF;
    background-color: #EEEEEE;
    width: 80%;
    text-align: center;
    border-collapse: collapse;
}

    table.paleBlueRows td, table.paleBlueRows th {
        border: 1px solid #FFFFFF;
        padding: 1px 1px;
    }

    table.paleBlueRows tbody td {
        font-size: 12px;
    }

    table.paleBlueRows tr:nth-child(even) {
        background: #D0E4F5;
    }

    table.paleBlueRows thead {
        background: #0B6FA4;
        border-bottom: 5px solid #FFFFFF;
    }

        table.paleBlueRows thead th {
            font-size: 17px;
            font-weight: bold;
            color: #FFFFFF;
            text-align: center;
            border-left: 2px solid #FFFFFF;
        }

            table.paleBlueRows thead th:first-child {
                border-left: none;
            }

    table.paleBlueRows tfoot {
        font-size: 14px;
        font-weight: bold;
        color: #333333;
/*        background: #D0E4F5;*/
        border-top: 3px solid #444444;
    }

        table.paleBlueRows tfoot td {
            font-size: 14px;
        }

        /*tabla*/
table.minimalistBlack {
    border: 1px solid #000000;
    width: 100%;
    text-align: center;
}

    table.minimalistBlack td, table.minimalistBlack th {
        border: 1px solid #000000;
        padding: 1px 2px;
    }

    table.minimalistBlack tbody td {
        font-size: 12px;
    }

    table.minimalistBlack thead {
        background: #CFCFCF;
        background: -moz-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
        background: -webkit-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
        background: linear-gradient(to bottom, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
        border-bottom: 2px solid #000000;
    }

        table.minimalistBlack thead th {
            font-size: 12px;
            font-weight: bold;
            color: #000000;
            text-align: left;
        }

    table.minimalistBlack tfoot td {
        font-size: 14px;
    }

#collapsibleTable {
    display: none; /* Initially hide the table */
}
#collapseContainer{
    margin-bottom:10px;
    margin-top:10px;
}

.modal.modalDetallePedido {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1050;
}

    /* Center the content box itself */
    .modal.modalDetallePedido .modalDetallePedido-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 1300px !important;
        width: 90% !important; /* or 100% on mobile */
        max-height: 95vh;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        padding: 20px;
        border: 1px solid #888;
        margin: 0; /* important: no auto margins */
    }


.modalDetallePedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e5ea;
}

.modalDetallePedido-body {
    padding: 15px 20px;
    max-height: 85vh;
    overflow-y: auto;
}

.modalDetallePedido-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.modalDetallePedido-section {
    margin-bottom: 20px;
}

.section-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.modalDetallePedido-mainGrid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    gap: 20px;
}

.modalDetallePedido-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e5ea;
    padding: 12px 15px;
}

.tableProducts img.img-producto-carrito {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.qr-img {
    width: 200px;
    height: 200px;
}

.img-identificacion {
    width: 100px;
    height: auto;
    cursor: pointer;
}

.link-accent {
    color: darkcyan;
    cursor: pointer;
    text-decoration: underline;
}

.celda-decimo-activo {
    background-color: aquamarine;
    font-weight: 600;
}

@media (max-width: 768px) {
    .modalDetallePedido-mainGrid {
        grid-template-columns: 1fr;
    }

    .modalDetallePedido-content {
        margin: 10px;
        max-width: 100%;
    }
}

.link-accent {
    color: #0f766e;
    cursor: pointer;
    text-decoration: underline;
}

.qr-img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.img-identificacion {
    width: 90px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* Tabla productos */
.TablaMisPedidos {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

    .TablaMisPedidos thead tr {
        background: var(--ColorFondoCabeceraTabla, #e2f0ff);
    }

    .TablaMisPedidos thead th,
    .TablaMisPedidos thead td {
        padding: 8px 10px;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .TablaMisPedidos tbody td {
        padding: 8px 10px;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: middle;
        font-size: 0.9rem;
    }

    .TablaMisPedidos tbody tr:last-child td {
        border-bottom: none;
    }

    .TablaMisPedidos tbody tr:hover {
        background: #f1f5f9;
    }

/* Imagen producto */
.ImagenProductosCarrito img.img-producto-carrito {
    width: 70px;
    height: auto;
    border-radius: 6px;
}

/* Tabla Números variables */
.tableNV {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

    .tableNV th,
    .tableNV td {
        padding: 8px 10px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 0.9rem;
        text-align: center;
    }

    .tableNV thead tr {
        background: #e2f0ff;
        font-weight: 600;
    }

/* Tabla resumen */
.tableResumen {
    width: 100%;
    border-collapse: collapse;
}

    .tableResumen td {
        padding: 4px 0;
        font-size: 0.9rem;
    }

    .tableResumen tr.totalRow td {
        font-weight: 600;
        padding-top: 6px;
    }

/* Tabla décimos ya usa paleBlueRows, solo resaltamos la X */
.celda-decimo-activo {
    background-color: #bbf7d0 !important; /* verde suave */
    font-weight: 700;
}

.modalDetallePedido-mainGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 4px;
}

.modalDetallePedido-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modalDetallePedido-body {
    padding: 16px 22px 18px;
    max-height: calc(90vh - 110px); /* header + footer */
    overflow-y: auto;
}

/* Area de botones arriba a la derecha */
.modalDetallePedido-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

/* Cada bloque (productos, NV, resumen, envío, etc.) */
.modalDetallePedido-section {
    margin-bottom: 16px;
}

.section-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Estilo “card” para las secciones de info */
.info-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
}

.modalDetallePedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

    .modalDetallePedido-header .TextoMovilSubTituloPCWSMF {
        font-size: 1.25rem;
        font-weight: 600;
    }

.modalDetallePedido-footer {
    padding: 10px 22px 14px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    text-align: right;
}

.modal.modalDetallePedido {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.45);
    z-index: 1050;
}

    /* Main box */
    .modal.modalDetallePedido .modalDetallePedido-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 960px; /* slightly narrower */
        width: 90%;
        max-height: 90vh;
        background: #f7f8fb; /* soft grey background */
        border-radius: 12px;
        overflow: hidden;
        padding: 0; /* header/body handle padding */
        border: none;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    }

/* Prevent wrapping & give space to numeric columns */
.tableProducts th:nth-child(4),
.tableProducts td:nth-child(4), /* Cantidad */
.tableProducts th:nth-child(5),
.tableProducts td:nth-child(5), /* Precio */
.tableProducts th:nth-child(6),
.tableProducts td:nth-child(6), /* Subtotal */
.tableProducts th:nth-child(7),
.tableProducts td:nth-child(7) /* Donativo */ {
    white-space: nowrap;
    min-width: 85px; /* tweak: 80–100px depending on your font */
    text-align: right;
}

.tableProducts td:nth-child(2) {
    min-width: 220px;
    white-space: nowrap;
}

/* CANAL column */
.tableProducts td:nth-child(3) {
    white-space: normal;
    word-break: break-word;
}

/* GENERAL MODERN BUTTON BASE */
.btn-modern {
    border: none;
    outline: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.18s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    user-select: none;
}



/* PRIMARY BUTTON (Pagar pedido) */
.btn-modern-primary {
    background: #2563eb; /* tailwind blue-600 */
    color: white;
}

    .btn-modern-primary:hover {
        background: #1e40af; /* blue-800 */
        box-shadow: 0 3px 8px rgba(30, 64, 175, 0.25);
    }

/* WARNING BUTTON (Anular pedido) */
.btn-modern-danger {
    background: #dc2626; /* red-600 */
    color: white;
}

    .btn-modern-danger:hover {
        background: #b91c1c; /* red-700 */
        box-shadow: 0 3px 8px rgba(185, 28, 28, 0.25);
    }

/* SECONDARY BUTTON (Cambiar a Recogida) */
.btn-modern-secondary {
    background: #64748b; /* slate-500 */
    color: white;
}

    .btn-modern-secondary:hover {
        background: #475569; /* slate-600 */
        box-shadow: 0 3px 8px rgba(100, 116, 139, 0.25);
    }

/* Spacing between them */
.modalDetallePedido-actions input,
.modalDetallePedido-actions button {
    margin-left: 6px;
}

.btn-modern-close {
    background: #e5e7eb; /* gray-200 */
    color: #374151; /* gray-700 */
    border: none;
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.18s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

    .btn-modern-close:hover {
        background: #d1d5db; /* gray-300 */
        color: #111827; /* gray-900 */
        box-shadow: 0 3px 8px rgba(55, 65, 81, 0.18);
    }

    .btn-modern-close:active {
        background: #9ca3af; /* gray-400 */
    }

/* ====== CARD GENERAL ====== */

.pedidos-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 16px 20px 18px;
    background: #f8fafc;
}

    .pedidos-card > h4 {
        margin-bottom: 12px;
        font-weight: 600;
    }

/* ====== FILTERS ====== */

.pedidos-filters {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px 4px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

    .pedidos-filters .form-row {
        margin-bottom: 10px;
    }

/* ====== EXPORT BUTTON ====== */

.text-right > .btn.btn-primary {
    margin-bottom: 8px;
}

/* ====== SUMMARY CARDS ====== */

.pedidos-summary {
    margin-top: 8px;
    margin-bottom: 10px;
}

    .pedidos-summary .summary-header {
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 8px;
        text-decoration: underline;
    }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.summary-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.summary-card-wide {
    grid-column: span 2;
}

.summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.summary-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-summary-action {
    margin-left: 6px; /* spacing from the number */
    padding: 5px 10px; /* balanced padding */
    font-size: 0.78rem;
    border-radius: 6px; /* reduced rounding */
    border: none;
    background: #22c55e; /* green */
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    line-height: 1; /* keeps height compact */
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

    .btn-summary-action:hover {
        background: #16a34a; /* darker on hover */
        box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    }

/* ====== TABLE WRAPPER ====== */

.pedidos-table-wrapper {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
}

    /* Empty-state table center a bit better */
    .pedidos-table-wrapper table {
        margin-bottom: 0;
    }

/* ====== TRAMITAR / DETALLE buttons ====== */

.btn-tramitar,
.btn-detalle {
    border-radius: 999px;
    border: none;
    font-size: 0.8rem;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-tramitar {
    background: #0ea5e9;
    color: #ffffff;
}

    .btn-tramitar:hover {
        background: #0284c7;
    }

.btn-detalle {
    background: #e5e7eb;
    color: #111827;
}

    .btn-detalle:hover {
        background: #d1d5db;
    }

.modal-header-title span {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* spacing between buttons */
}

    /* Make the X button align nicely */
    .modal-header-actions .close {
        font-size: 26px;
        cursor: pointer;
        margin-left: 6px;
    }

    /* Reduce button height in header (looks cleaner) */
    .modal-header-actions button.btn-modern {
        padding: 6px 12px;
        border-radius: 6px;
    }

/* Compact outline button */
.btn-open-cert {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ffffff;
    color: #2563eb; /* blue-600 */
    border: 1px solid #93c5fd; /* blue-300 */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

    .btn-open-cert:hover {
        background: #eff6ff; /* blue-50 */
        border-color: #60a5fa; /* blue-400 */
        color: #1e40af; /* blue-800 */
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    }

/* Arrow icon */
.btn-open-cert-icon {
    font-size: 0.9rem;
    margin-left: 2px;
    transform: translateY(-1px);
}

/* Shift main content depending on sidebar width (global, not scoped) */
.sidebar-expanded + .main {
    margin-left: 260px; /* match .sidebar-expanded width */
}

.sidebar-collapsed + .main {
    margin-left: 70px; /* match .sidebar-collapsed width */
}

/* On mobile: sidebar overlays, don't push content */
@media (max-width: 640.98px) {
    .sidebar-expanded + .main,
    .sidebar-collapsed + .main {
        margin-left: 0;
    }
}

/* ====== DASHBOARD WIDGET STYLE ====== */

.dashboard-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Scrollable content area inside cards */
.dashboard-card-scroll {
    overflow-y: auto;
    padding-bottom: 25px; /* <-- extra bottom padding so content doesn't touch */
}

    /* Hide ugly scrollbars (Chrome/Edge) */
    .dashboard-card-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .dashboard-card-scroll::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.15);
        border-radius: 4px;
    }

    .dashboard-card-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

/* Nice title inside card */
.dashboard-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.admin-dashboard {
    padding: 20px 24px;
}

/* HEADER */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

    .dashboard-header h1 {
        margin: 0;
        font-size: 1.6rem;
    }

.dashboard-header-subtitle {
    margin: 4px 0 0;
    color: #666;
    font-size: 0.9rem;
}

.dashboard-header-meta {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    flex-direction: column;
}

/* SUMMARY CARDS */
.dashboard-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.summary-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    padding: 12px 14px;
}

.summary-label {
    font-size: 0.8rem;
    color: #777;
}

.summary-value {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 4px;
}

.summary-sub {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

/* GRID LAYOUT FOR WIDGETS */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

/* On narrow screens stack columns */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-grid-col-lg {
    min-width: 0; /* fixes overflow in flex/grid */
}

.dashboard-grid-col-sm {
    min-width: 0;
}

/* quick links */
.quick-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .quick-links li + li {
        margin-top: 6px;
    }

    .quick-links a {
        font-size: 0.9rem;
        text-decoration: none;
        color: #1976d2;
    }

        .quick-links a:hover {
            text-decoration: underline;
        }


/* Override global link color inside the sidebar */
.sidebar a,
.sidebar .nav-link,
.sidebar .nav-link:visited,
.sidebar .nav-link:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

    /* Hover state in sidebar */
    .sidebar a:hover,
    .sidebar .nav-link:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
    }

    /* Active (Blazor NavLink adds .active) */
    .sidebar .nav-link.active {
        color: #ffffff !important;
        font-weight: 600;
        background-color: rgba(255, 255, 255, 0.16) !important;
    }


/* FULL-WIDTH CENTERED CANVAS FOR DASHBOARD SECTIONS */
.dashboard-container-wide {
    width: 100%;
    max-width: 1700px; /* SUPER WIDE */
    margin: 0 auto; /* CENTER */
    padding: 0 24px; /* Left–right spacing */
    display: block;
    box-sizing: border-box;
}

.pedidos-weekly-wrapper,
.widget-container,
.widget-card {
    width: 100% !important;
    max-width: 100% !important;
}

.tiendas-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
}










/* Overlay */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55); /* dark blur overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Dialog shell */
.admin-modal-dialog {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    width: min(900px, 96vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Optional "lg" size (you already use admin-modal-lg) */
.admin-modal-lg {
    width: min(1100px, 96vw);
}

/* Header */
.admin-modal-header {
    padding: 14px 22px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-modal-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

/* Close button (X) */
.admin-modal-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    padding: 2px 4px;
    border-radius: 999px;
}

    .admin-modal-close:hover {
        background: #f3f4f6;
        color: #374151;
    }

/* Body */
.admin-modal-body {
    padding: 16px 22px 12px;
    overflow-y: auto;
}

    /* Tables inside modal: cap height and scroll */
    .admin-modal-body .table-admin-container {
        max-height: 50vh;
        overflow-y: auto;
    }

/* Footer */
.admin-modal-footer {
    padding: 12px 22px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Optional: lighten background behind the modal table */
.admin-modal-body .info-card {
    border-radius: 12px;
}