/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
    /* Colores principales */
    --primary-color: #003B7A;
    --primary-light: #0052A3;
    --primary-dark: #002952;
    --accent-color: #E63946;
    --accent-light: #FF4D5A;

    /* Colores neutros */
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-sidebar: #FAFBFC;
    --text-primary: #1A1A1A;
    --text-secondary: #6C757D;
    --text-light: #ADB5BD;

    /* Bordes y sombras */
    --border-color: #E9ECEF;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;

    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================
   LAYOUT PRINCIPAL
   ========================================== */
.container {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: 100vh;
    max-width: 1800px;
    margin: 0 auto;
    gap: 0;
}

/* ==========================================
   SIDEBAR - FORMULARIO
   ========================================== */
.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: var(--spacing-xl);
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.sidebar-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   FORMULARIO
   ========================================== */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    display: block;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all var(--transition-base);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 59, 122, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-light);
}

.form-group input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-family);
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    cursor: pointer;
    height: 3rem;
    /* Fixed height for consistency */
}

.form-group select:invalid {
    color: var(--text-light);
}

.form-group select option {
    color: var(--text-primary);
    background: white;
    padding: 1rem;
}

.helper-text {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-weight: 400;
}

/* ==========================================
   FILE UPLOAD
   ========================================== */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.file-label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 59, 122, 0.02);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.file-label svg {
    flex-shrink: 0;
}

.file-input:focus+.file-label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 59, 122, 0.1);
}

.file-preview {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-color);
}

.file-preview-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.file-preview-remove {
    flex-shrink: 0;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.file-preview-remove:hover {
    background: rgba(230, 57, 70, 0.1);
    transform: scale(1.1);
}

.file-preview-thumbnail {
    width: 100%;
    max-width: 200px;
    margin-top: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

/* ==========================================
   FIRMA DIGITAL - BOTÓN
   ========================================== */
.signature-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, rgba(0, 59, 122, 0.05) 0%, rgba(0, 82, 163, 0.05) 100%);
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.signature-open-btn:hover {
    background: linear-gradient(135deg, rgba(0, 59, 122, 0.1) 0%, rgba(0, 82, 163, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.signature-open-btn.signed {
    border-color: #10b981;
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.signature-open-btn.signed:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

/* ==========================================
   FIRMA DIGITAL - MODAL
   ========================================== */
.signature-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.signature-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.signature-modal-content {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.signature-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.signature-modal-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.signature-close-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.signature-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.signature-modal-body {
    padding: var(--spacing-lg);
    flex: 1;
    overflow-y: auto;
}

.signature-instructions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--primary-dark);
}

.signature-instructions svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.signature-canvas-wrapper {
    position: relative;
    width: 100%;
    background: white;
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.signature-canvas-wrapper:hover {
    border-color: var(--primary-color);
}

.signature-canvas {
    display: block;
    width: 100%;
    height: 300px;
    cursor: crosshair;
    touch-action: none;
}

.signature-modal-footer {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
    background: var(--bg-primary);
}

.signature-modal-footer .btn {
    flex: 1;
}

/* Firma en vista previa (estilos movidos al footer) */

/* ==========================================
   ANIMACIONES DE MODAL
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BOTONES
   ========================================== */
.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    outline: none;
    letter-spacing: 0.02em;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-print {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-print:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN DE VISTA PREVIA
   ========================================== */
.preview-section {
    padding: var(--spacing-xl);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.preview-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* ==========================================
   DOCUMENTO DE RECIBÍ
   ========================================== */
.receipt-document {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    transition: all var(--transition-base);
}

.receipt-document:hover {
    box-shadow: var(--shadow-xl);
}

.receipt-content {
    padding: var(--spacing-lg);
}

/* Logo CESTE */
.receipt-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--primary-color);
    height: 100px;
    /* Fixed height to avoid layout shift */
}

.receipt-logo img {
    max-width: 280px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Cuerpo del recibí */
.receipt-body {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: linear-gradient(to bottom, #f8f9fa 0%, transparent 100%);
    border-radius: var(--border-radius-sm);
}

.receipt-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
}

.editable-field {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    background: rgba(0, 59, 122, 0.05);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.editable-field.uppercase {
    text-transform: uppercase;
}

/* Centro de Coste */
.receipt-cost-center {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    padding: 0.5rem var(--spacing-lg);
    background: rgba(0, 59, 122, 0.02);
    border-radius: 4px;
    border-left: 3px solid var(--primary-light);
}

.cost-center-label {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.cost-center-value {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Total */
.receipt-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius-sm);
    color: white;
}

.total-label {
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.total-amount {
    font-size: var(--font-size-2xl);
    font-weight: 800;
}

/* Footer del recibí */
.receipt-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.signature-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: var(--spacing-xl);
}

.signature-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
}

.signature-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.signature-container {
    width: 300px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.signature-line {
    width: 100%;
    border-bottom: 2px solid var(--text-primary);
}

.receipt-date {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-top: var(--spacing-md);
}

.signature-display {
    width: 100%;
    margin-bottom: -10px;
    /* Slight overlap with line */
}

.signature-display img {
    width: 100%;
    height: auto;
    max-height: 80px;
    display: block;
    object-fit: contain;
}

/* ==========================================
   TICKET ADJUNTO
   ========================================== */
/* Ticket adjunto - OCULTO en vista previa, visible solo en PDF/impresión */
.attached-ticket {
    display: none;
    /* Oculto en pantalla */
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.ticket-header svg {
    color: var(--primary-color);
}

.ticket-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.ticket-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.ticket-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

.ticket-content embed,
.ticket-content iframe {
    width: 100%;
    min-height: 500px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

/* ==========================================
   MENSAJE DE AYUDA
   ========================================== */
.help-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.help-message svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.help-message p {
    font-size: var(--font-size-sm);
    color: var(--primary-dark);
    line-height: 1.6;
}

/* ==========================================
   ESTILOS DE IMPRESIÓN
   ========================================== */
@media print {
    body {
        background: white;
    }

    .container {
        display: block;
    }

    .sidebar,
    .preview-header,
    .help-message {
        display: none !important;
    }

    .preview-section {
        padding: 0;
    }

    .receipt-document {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .editable-field {
        background: transparent;
        color: var(--text-primary);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 640px) {

    .sidebar,
    .preview-section {
        padding: var(--spacing-md);
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .receipt-document {
        padding: var(--spacing-md);
    }

    .receipt-content {
        padding: var(--spacing-sm);
    }

    .receipt-text {
        font-size: var(--font-size-base);
    }

    .logo-title {
        font-size: var(--font-size-xl);
    }

    /* Firma responsive */
    .signature-modal {
        padding: 0;
    }

    .signature-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .signature-canvas {
        height: 250px;
    }

    .signature-modal-footer {
        flex-direction: column;
    }

    .signature-display {
        width: 100%;
        max-width: 250px;
    }

    .signature-line {
        width: 100%;
        max-width: 250px;
    }

    .receipt-logo svg {
        width: 220px;
        height: auto;
    }
}

/* ==========================================
   ADMIN PANEL STYLES (Global Scope)
   ========================================== */
.admin-access {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    text-align: center;
    width: 100%;
}

#adminLoginBtn.btn-link {
    background: rgba(0, 59, 122, 0.05);
    border: 1px solid rgba(0, 59, 122, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-family);
    display: inline-block;
    width: auto;
}

#adminLoginBtn.btn-link:hover {
    background: rgba(0, 59, 122, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 59, 122, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 59, 122, 0.05);
}

.admin-content {
    max-width: 900px !important;
    width: 90vw;
}

.admin-actions-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.status-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-table-wrapper {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#adminTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

#adminTable th {
    background: #f1f5f9;
    padding: 1rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    position: sticky;
    top: 0;
    border-bottom: 2px solid var(--border-color);
    z-index: 10;
}

#adminTable td {
    padding: 1rem;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

#adminTable tr:hover {
    background: rgba(0, 59, 122, 0.02);
}

/* Modal Login - Admin */
#adminLoginSection {
    padding: 2.5rem;
    text-align: center;
}

#adminLoginSection .form-group {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

#adminLoginSection input[type="password"] {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.6rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
}

/* Table Responsive Extras */
@media (max-width: 768px) {

    #adminTable th:nth-child(3),
    #adminTable td:nth-child(3),
    #adminTable th:nth-child(5),
    #adminTable td:nth-child(5) {
        display: none;
    }

    .admin-actions-top {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
}