
/*FICHERO ERP_ControlAcceso.php */

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* ── WRAPPER PRINCIPAL ── */
        .ca-wrapper {
            margin: 20px;
            border: 1.5px solid #77bc1f;
            border-radius: 12px;
            overflow: hidden;
            font-family: Arial, sans-serif;
        }

        /* ── CABECERA ── */
        .ca-header {
            background: #77bc1f;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .ca-header-logo {
            max-height: 120px;
            padding: 5px;
            border-radius: 4px;
        }

        .ca-title-block {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .ca-title-block h1 {
            font-size: 18px;
            font-weight: bold;
            color: white;
            margin: 0;
            padding: 0;
        }

        .ca-title-block p {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.85);
            margin: 5px 0 0 0;
            padding: 0;
        }

        .ca-datetime {
            text-align: right;
            color: white;
            flex-shrink: 0;
        }

        .ca-datetime .ca-fecha {
            font-size: 13px;
            opacity: 0.9;
        }

        .ca-datetime .ca-reloj {
            font-size: 24px;
            font-weight: bold;
            letter-spacing: 2px;
            font-variant-numeric: tabular-nums;
        }

        /* ── CUERPO ── */
        .ca-body {
            background: #f9f9f9;
            padding: 20px;
        }

        .ca-sublabel {
            font-size: 13px;
            color: #666;
            margin-bottom: 14px;
        }

        /* ── CUADRÍCULA RESPONSIVE ── */
        .ca-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        /* ── TARJETA USUARIO ── */
        .ca-card {
            background: white;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 16px 10px 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
        }

        .ca-card:hover {
            border-color: #77bc1f;
            background: #f2fae8;
        }

        .ca-horario {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            font-size: 11px;
            color: #4a8c0f;
            font-weight: 600;
            text-align: center;
        }

        .ca-horario-turno {
            background: #f2fae8;
            border: 1px solid #cdeaa5;
            border-radius: 6px;
            padding: 2px 8px;
            white-space: nowrap;
        }

        .ca-horario-vacio {
            font-size: 10px;
            color: #999;
            font-style: italic;
        }

        .ca-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #e8f7d4;
            border: 1.5px solid #77bc1f;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            font-weight: bold;
            color: #4a8c0f;
            flex-shrink: 0;
        }

        .ca-nombre {
            font-size: 12px;
            font-weight: 600;
            color: #333;
            text-align: center;
            line-height: 1.3;
            word-break: break-word;
        }

        .ca-btn {
            font-size: 11px;
            background: #77bc1f;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 5px 12px;
            cursor: pointer;
            font-family: Arial, sans-serif;
            font-weight: 600;
            width: 100%;
        }

        .ca-btn:hover {
            background: #63a018;
        }

        .ca-btn:active {
            transform: scale(0.97);
        }

        /* ── MODAL CONTRASEÑA ── */
        .ca-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }

        .ca-overlay.activo {
            display: flex;
        }

        .ca-modal {
            background: white;
            border-radius: 12px;
            padding: 28px 24px 22px;
            width: 320px;
            max-width: 90vw;
            text-align: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        }

        .ca-modal-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: #e8f7d4;
            border: 2px solid #77bc1f;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            color: #4a8c0f;
            margin: 0 auto 10px;
        }

        .ca-modal h2 {
            font-size: 15px;
            color: #333;
            margin-bottom: 4px;
            font-family: Arial, sans-serif;
        }

        .ca-modal p {
            font-size: 12px;
            color: #888;
            margin-bottom: 18px;
            font-family: Arial, sans-serif;
        }

        .ca-modal input[type="password"] {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid #ddd;
            border-radius: 8px;
            font-size: 20px;
            letter-spacing: 6px;
            text-align: center;
            outline: none;
            margin-bottom: 8px;
            font-family: Arial, sans-serif;
        }

        .ca-modal input[type="password"]:focus {
            border-color: #77bc1f;
        }

        .ca-modal-error {
            font-size: 12px;
            color: #c0392b;
            min-height: 18px;
            margin-bottom: 12px;
            font-family: Arial, sans-serif;
        }

        .ca-modal-btns {
            display: flex;
            gap: 10px;
        }

        .ca-modal-btns button {
            flex: 1;
            padding: 9px;
            border-radius: 8px;
            border: none;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            font-family: Arial, sans-serif;
        }

        .ca-btn-cancelar {
            background: #f0f0f0;
            color: #555;
        }

        .ca-btn-cancelar:hover {
            background: #e0e0e0;
        }

        .ca-btn-confirmar {
            background: #77bc1f;
            color: white;
        }

        .ca-btn-confirmar:hover {
            background: #63a018;
        }

        /* ── VISTAS DE ESTADO ── */
        .ca-estado-container-centered {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        .ca-estado-wrapper {
            margin: 20px;
            border: 1.5px solid #77bc1f;
            border-radius: 12px;
            overflow: hidden;
            font-family: Arial, sans-serif;
            width: 100%;
            max-width: 420px;
        }

        .ca-estado-header {
            background: #77bc1f;
            padding: 14px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ca-estado-header h2 {
            font-size: 16px;
            font-weight: bold;
            color: white;
            margin: 0;
            color: white !important;
        }

        .ca-estado-body {
            background: #f9f9f9;
            padding: 24px 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            text-align: center;
        }

        .ca-estado-usuario {
            font-size: 14px;
            color: #555;
            margin-bottom: 4px;
        }

        .ca-estado-btn {
            padding: 12px 0;
            font-size: 14px;
            font-weight: bold;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-family: Arial, sans-serif;
            width: 100%;
            letter-spacing: 0.5px;
        }

        .ca-estado-btn.verde {
            background: #77bc1f;
            color: white;
        }

        .ca-estado-btn.verde:hover {
            background: #63a018;
        }

        .ca-estado-btn.rojo {
            background: #e74c3c;
            color: white;
        }

        .ca-estado-btn.rojo:hover {
            background: #c0392b;
        }


        .ca-estado-btn.naranja {
            background: #e67e22;
            color: white;
        }

        .ca-estado-btn.naranja:hover {
            background: #d35400;
        }

        .ca-estado-btn.azul {
            background: #2980b9;
            color: white;
        }

        .ca-estado-btn.azul:hover {
            background: #21618c;
        }

        /* ── TOASTS / ALERTAS ── */
        #ca-toast-container {
            position: fixed;
            inset: 0;
            z-index: 99999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 14px;
            pointer-events: none;
        }

        .ca-toast {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 12px;
            background: white;
            border-radius: 16px;
            padding: 32px 28px 24px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
            font-family: Arial, sans-serif;
            font-size: 14px;
            color: #333;
            width: 340px;
            max-width: 90vw;
            opacity: 0;
            transform: scale(0.85);
            transition: opacity 0.25s ease, transform 0.25s ease;
            pointer-events: auto;
            border-top: 5px solid #ccc;
        }

        .ca-toast.activo {
            opacity: 1;
            transform: scale(1);
        }

        .ca-toast-exito {
            border-top-color: #77bc1f;
        }

        .ca-toast-error {
            border-top-color: #e74c3c;
        }

        .ca-toast-icono {
            font-size: 34px;
            line-height: 1;
        }

        .ca-toast-texto {
            line-height: 1.5;
        }

        .ca-toast-cerrar {
            position: absolute;
            top: 8px;
            right: 12px;
            background: none;
            border: none;
            font-size: 20px;
            line-height: 1;
            color: #aaa;
            cursor: pointer;
            padding: 4px;
        }

        .ca-toast-cerrar:hover {
            color: #333;
        }

        /* ══════════════════════════════════════════════
       MEDIA QUERIES (RESPONSIVE DE CORTE DIAGONAL)
       ══════════════════════════════════════════════ --> */

        /* Pantallas medianas (Tablets y Laptops pequeñas) */
        @media (max-width: 1024px) {
            .ca-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Pantallas pequeñas (Móviles en horizontal y Tablets verticales) */
        @media (max-width: 768px) {
            .ca-header {
                flex-direction: column;
                padding: 16px;
                gap: 12px;
            }

            .ca-title-block {
                order: 1;
            }

            .ca-datetime {
                order: 2;
                text-align: center;
                width: 100%;
                border-top: 1px solid rgba(255, 255, 255, 0.3);
                padding-top: 8px;
            }

            .ca-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }

        /* Pantallas muy pequeñas (Móviles verticales estándar) */
        @media (max-width: 480px) {
            .ca-wrapper {
                margin: 10px;
            }

            .ca-header-logo {
                max-height: 90px;
            }

            .ca-title-block h1 {
                font-size: 16px;
            }

            .ca-datetime .ca-reloj {
                font-size: 20px;
            }

            .ca-body {
                padding: 12px;
            }

            .ca-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .ca-card {
                flex-direction: row;
                justify-content: space-between;
                padding: 12px;
                text-align: left;
                gap: 12px;
            }

            .ca-nombre {
                text-align: left;
                flex: 1;
            }

            .ca-btn {
                width: auto;
                padding: 8px 14px;
            }
        }


        /* ── LEYENDA ── */
        .et-leyenda {
            display: flex;
            gap: 18px;
            margin-bottom: 14px;
            font-family: Arial, sans-serif;
            font-size: 12px;
            color: #555;
        }

        .et-leyenda-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .et-dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .et-dot.verde {
            background: #77bc1f;
        }

        .et-dot.amarillo {
            background: #f5d76e;
        }

        .et-dot.rojo {
            background: #e74c3c;
        }

        .et-dot.azul {
            background: aquamarine;
        }



        /* ── SOLO el borde de la tarjeta cambia de color ── */
        .ca-card.et-verde {
            border-color: #77bc1f;
        }

        .ca-card.et-amarillo {
            border-color: #f5d76e;
        }

        .ca-card.et-rojo {
            border-color: #e74c3c;
        }

        .ca-card.et-azul {
            border-color: aquamarine;
        }


        /* ── SOLO el avatar cambia de color ── */
        .ca-avatar.et-verde {
            background: #e8f7d4;
            border-color: #77bc1f;
            color: #4a8c0f;
        }

        .ca-avatar.et-amarillo {
            background: #f5d76e;
            border-color: #6b5900;
            color: #6b5900;
        }

        .ca-avatar.et-rojo {
            background: #fadbd8;
            border-color: #e74c3c;
            color: #a93226;
        }

        .ca-avatar.et-azul {
            background: aquamarine;
            border-color: blue;
            color: blue;
        }

        /*FICHERO ERP_SolicitarDias.php */
         .sd-wrapper {
        margin: 20px;
        border: 1.5px solid #77bc1f;
        border-radius: 12px;
        overflow: hidden;
        font-family: Arial, sans-serif;
    }

    .sd-header {
        background: #77bc1f;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .sd-header-logo {
        max-height: 90px;
        padding: 5px;
        border-radius: 4px;
    }

    .sd-title-block {
        flex: 1;
        color: white;
    }

    .sd-title-block h1 {
        font-size: 18px;
        margin: 0;
    }

    .sd-title-block p {
        font-size: 13px;
        margin: 4px 0 0 0;
        opacity: 0.9;
    }

    .sd-btn-volver {
        background: white;
        color: #4a8c0f;
        border: none;
        border-radius: 8px;
        padding: 8px 16px;
        font-weight: 600;
        cursor: pointer;
        font-family: Arial, sans-serif;
        flex-shrink: 0;
    }

    .sd-btn-volver:hover {
        background: #f2fae8;
    }

    .sd-body {
        background: #f9f9f9;
        padding: 20px;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .sd-calendario-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 16px;
        flex: 1 1 340px;
        max-width: 420px;
    }

    .sd-cal-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .sd-cal-titulo {
        font-weight: bold;
        font-size: 15px;
        color: #333;
    }

    .sd-nav-btn {
        background: #e8f7d4;
        border: none;
        border-radius: 6px;
        width: 32px;
        height: 32px;
        cursor: pointer;
        color: #4a8c0f;
        font-size: 14px;
    }

    .sd-nav-btn:hover {
        background: #d5f0b0;
    }

    .sd-cal-diassemana {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-size: 11px;
        color: #888;
        margin-bottom: 6px;
    }

    .sd-cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }

    #sd-cal-grid .sd-cal-dia {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 13px;
        cursor: pointer;
        color: #333;
        background: #f5f5f5;
    }

    #sd-cal-grid .sd-cal-dia:hover:not(.sd-cal-deshabilitado):not(.sd-cal-seleccionado):not(.sd-cal-pendiente):not(.sd-cal-aprobado) {
        background: #e8f7d4 !important;
        color: #333 !important;
    }

    #sd-cal-grid .sd-cal-dia-vacio {
        background: transparent;
        cursor: default;
    }

    #sd-cal-grid .sd-cal-hoy {
        border: 1.5px solid #77bc1f;
        font-weight: bold;
    }

    #sd-cal-grid .sd-cal-deshabilitado {
        cursor: not-allowed;
    }

    #sd-cal-grid .sd-cal-dia.sd-cal-deshabilitado:not(.sd-cal-pendiente):not(.sd-cal-aprobado):not(.sd-cal-denegado) {
        color: #ccc !important;
        background: transparent !important;
    }

    #sd-cal-grid .sd-cal-dia.sd-cal-seleccionado {
        background: #77bc1f !important;
        color: white !important;
        font-weight: bold;
    }

    /* ESTADOS DE SOLICITUD */
    #sd-cal-grid .sd-cal-dia.sd-cal-pendiente {
        background-color: #f5d76e !important;
        color: #6b5900 !important;
        font-weight: bold;
    }

    #sd-cal-grid .sd-cal-dia.sd-cal-aprobado {
        background-color: #77bc1f !important;
        color: #ffffff !important;
        font-weight: bold;
    }

    #sd-cal-grid .sd-cal-dia.sd-cal-denegado {
        background-color: #e74c3c !important;
        color: #ffffff !important;
        font-weight: bold;
    }

    .sd-leyenda {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid #eee;
        font-size: 12px;
        color: #555;
    }

    .sd-leyenda-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .sd-leyenda-punto {
        width: 12px;
        height: 12px;
        border-radius: 4px;
        display: inline-block;
    }

    .sd-punto-pendiente {
        background: #f5d76e;
    }

    .sd-punto-aprobado {
        background: #77bc1f;
    }

    .sd-punto-denegado {
        background: #e74c3c;
    }

    .sd-seleccion-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 16px;
        flex: 1 1 260px;
        max-width: 320px;
    }

    .sd-seleccion-card h3 {
        font-size: 14px;
        color: #333;
        margin-bottom: 12px;
    }

    .sd-lista-dias {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 16px;
        max-height: 260px;
        overflow-y: auto;
    }

    .sd-lista-dias li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f2fae8;
        border-radius: 6px;
        padding: 8px 10px;
        font-size: 13px;
        color: #333;
    }

    .sd-lista-dias li.sd-vacio {
        background: transparent;
        color: #999;
        justify-content: center;
        font-size: 12px;
    }

    .sd-quitar-dia {
        background: none;
        border: none;
        color: #c0392b;
        font-size: 16px;
        cursor: pointer;
        line-height: 1;
    }

    .sd-motivo-block {
        margin-bottom: 16px;
    }

    .sd-motivo-block label {
        display: block;
        font-size: 13px;
        color: #333;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .sd-motivo-textarea {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 8px 10px;
        font-family: Arial, sans-serif;
        font-size: 13px;
        color: #333;
        resize: vertical;
        box-sizing: border-box;
        margin-bottom: 8px;
    }

    .sd-motivo-textarea:focus {
        outline: none;
        border-color: #77bc1f;
    }

    .sd-btn-enviar {
        width: 100%;
        background: #77bc1f;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 12px;
        font-weight: bold;
        cursor: pointer;
        font-family: Arial, sans-serif;
    }

    .sd-btn-enviar:hover:not(:disabled) {
        background: #63a018;
    }

    .sd-btn-enviar:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    /* PANEL ADMIN */
    .sd-admin-panel {
        margin: 0 20px 20px 20px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 16px 20px;
    }

    .sd-admin-panel h2 {
        font-size: 15px;
        color: #333;
        margin: 0 0 14px 0;
    }

    .sd-admin-vacio {
        color: #999;
        font-size: 13px;
    }

    .sd-admin-tabla {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .sd-admin-tabla th {
        text-align: left;
        color: #666;
        font-size: 12px;
        text-transform: uppercase;
        border-bottom: 2px solid #eee;
        padding: 8px 10px;
    }

    .sd-admin-tabla td {
        padding: 10px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
        vertical-align: top;
    }

    .sd-admin-acciones {
        min-width: 220px;
    }

    .sd-admin-form-inline {
        display: inline-block;
        margin-right: 8px;
    }

    .sd-btn-aprobar {
        background: #77bc1f;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 6px 12px;
        font-weight: 600;
        cursor: pointer;
        font-family: Arial, sans-serif;
        font-size: 12px;
    }

    .sd-btn-aprobar:hover {
        background: #63a018;
    }

    .sd-btn-denegar {
        background: #e74c3c;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 6px 12px;
        font-weight: 600;
        cursor: pointer;
        font-family: Arial, sans-serif;
        font-size: 12px;
    }

    .sd-btn-denegar:hover {
        background: #c0392b;
    }

    .sd-denegar-block {
        margin-top: 10px;
        width: 100%;
        max-width: 320px;
    }

    .sd-btn-confirmar-denegar {
        background: #c0392b;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 6px 12px;
        font-weight: 600;
        cursor: pointer;
        font-family: Arial, sans-serif;
        font-size: 12px;
        width: 100%;
    }

    .sd-btn-confirmar-denegar:hover {
        background: #a5311f;
    }

    /* MODAL ADMIN */
    .sd-modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .sd-modal-content {
        background: white;
        padding: 24px;
        border-radius: 12px;
        width: 320px;
        max-width: 90%;
        position: relative;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .sd-modal-cerrar {
        position: absolute;
        top: 10px;
        right: 14px;
        border: none;
        background: none;
        font-size: 22px;
        cursor: pointer;
        color: #888;
    }

    .sd-modal-content h3 {
        margin-top: 0;
        font-size: 16px;
        color: #333;
    }

    .sd-modal-content p {
        font-size: 13px;
        color: #666;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    #sd-toast-container {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        pointer-events: none;
    }

    .sd-toast {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        background: white;
        border-radius: 16px;
        padding: 32px 28px 24px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        font-family: Arial, sans-serif;
        font-size: 14px;
        color: #333;
        width: 340px;
        max-width: 90vw;
        opacity: 0;
        transform: scale(0.85);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: auto;
        border-top: 5px solid #ccc;
    }

    .sd-toast.activo {
        opacity: 1;
        transform: scale(1);
    }

    .sd-toast-exito {
        border-top-color: #77bc1f;
    }

    .sd-toast-error {
        border-top-color: #e74c3c;
    }

    .sd-toast-icono {
        font-size: 34px;
    }

    .sd-toast-cerrar {
        position: absolute;
        top: 8px;
        right: 12px;
        background: none;
        border: none;
        font-size: 20px;
        color: #aaa;
        cursor: pointer;
    }

    .sd-toast-cerrar:hover {
        color: #333;
    }

    @media (max-width: 768px) {
        .sd-body {
            flex-direction: column;
        }

        .sd-calendario-card,
        .sd-seleccion-card {
            max-width: 100%;
        }

        .sd-admin-tabla,
        .sd-admin-tabla thead,
        .sd-admin-tabla tbody,
        .sd-admin-tabla th,
        .sd-admin-tabla td,
        .sd-admin-tabla tr {
            display: block;
            width: 100%;
        }

        .sd-admin-tabla thead {
            display: none;
        }

        .sd-admin-tabla td {
            border-bottom: none;
        }

        .sd-admin-tabla tr {
            border-bottom: 2px solid #eee;
            margin-bottom: 10px;
        }
    }


            /*FICHERO ERP_DatosTrabajador.php */

   /* Estilos base del Modal */
    .md-modal-wrapper {
        margin: 20px auto;
        max-width: 640px;
        border: 1px solid #ddd;
        border-radius: 10px;
        overflow: hidden;
        font-family: Arial, sans-serif;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .md-modal-header {
        background: #eef3f2;
        padding: 14px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .md-nav {
        list-style: none;
        display: flex;
        gap: 22px;
        margin: 0;
        padding: 0;
    }

    .md-tab {
        font-weight: bold;
        color: #333;
        cursor: pointer;
        padding-bottom: 4px;
        transition: 0.2s;
    }

    .md-tab.active {
        color: #000;
        border-bottom: 2px solid #000;
    }

    .md-btn-cerrar {
        background: white;
        border: 1px solid #ccc;
        border-radius: 6px;
        width: 30px;
        height: 30px;
        font-size: 16px;
        cursor: pointer;
        color: #555;
        flex-shrink: 0;
    }

    .md-modal-body {
        background: #eef1f0;
        padding: 24px 20px;
    }

    .md-control-group {
        display: flex;
        align-items: center;
        margin-bottom: 14px;
        gap: 10px;
    }

    .md-control-group label {
        width: 130px;
        min-width: 130px;
        font-weight: 500;
        color: #333;
        font-size: 14px;
    }

    .md-input {
        flex: 1;
        max-width: 320px;
        border: none;
        border-bottom: 1px solid #ccc;
        background: transparent;
        padding: 4px 2px;
        font-size: 14px;
        color: #666;
    }

    .md-input-editable {
        flex: 1;
        max-width: 320px;
        border: 1px solid #bbb;
        border-radius: 4px;
        background: #fff;
        padding: 6px 8px;
        font-size: 14px;
        color: #333;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
        transition: border 0.2s;
    }

    .md-input-editable:focus {
        border-color: #77bc1f;
        outline: none;
    }

    .md-input-editable-select {
        flex: 1;
        max-width: 338px;
        border: 1px solid #bbb;
        border-radius: 4px;
        background: #fff;
        padding: 6px 8px;
        font-size: 14px;
        color: #333;
    }

    .md-input-editable:disabled,
    .md-input-editable-select:disabled {
        background: #f4f4f4;
        color: #777;
        border-color: #ddd;
        cursor: not-allowed;
    }

    .md-btn-guardar {
        background: #007bff;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 10px 24px;
        font-weight: bold;
        cursor: pointer;
        font-family: Arial, sans-serif;
        transition: background 0.2s;
    }

    .md-btn-guardar:hover {
        background: #0056b3;
    }

    .md-btn-volver-abajo {
        background: #6c757d;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 10px 24px;
        font-weight: bold;
        cursor: pointer;
        font-family: Arial, sans-serif;
    }

    .md-btn-volver-abajo:hover {
        background: #5a6268;
    }

    .md-btn-delete {
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 2px 8px;
        font-size: 12px;
        cursor: pointer;
        margin-left: 10px;
    }

    .md-btn-delete:hover {
        background: #bd2130;
    }

    .md-label-bloque {
        font-weight: 600;
        color: #333;
        font-size: 14px;
    }

    .md-vacio {
        color: #888;
        font-style: italic;
        font-size: 13px;
    }

    .md-lista-archivos {
        list-style: none;
        padding: 0;
    }

    .md-lista-archivos li {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }

    .md-lista-archivos a {
        color: #007bff;
        text-decoration: none;
    }

    .md-tabla-jornada {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        font-size: 13px;
        text-align: center;
    }

    .md-tabla-jornada th,
    .md-tabla-jornada td {
        border: 1px solid #ccc;
        padding: 8px;
    }

    .md-tabla-jornada thead th {
        background: #dfe7e5;
    }

    .md-tabla-jornada tfoot td {
        background: #dfe7e5;
        font-weight: bold;
    }

    @media (max-width: 600px) {
        .md-nav {
            flex-wrap: wrap;
            gap: 12px;
        }

        .md-control-group {
            flex-direction: column;
            align-items: flex-start;
        }

        .md-control-group label {
            width: auto;
        }

        .md-input-editable,
        .md-input-editable-select,
        .md-input {
            max-width: 100%;
            width: 100%;
        }
    }
