body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #eaeaea;
    height: 100dvh;
    overflow: hidden;
}

.header {
    background: linear-gradient(90deg, #6B0F13 60%, #2d0103 100%);
    height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
}
.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px 0 0;
    position: relative;
}

.header-logo img {
    height: 100%;
    width: 250px;
    max-height: 120px;
    object-fit: contain;
}
.header-bottle {
    font-size: 32px;
    color: #fff;
    margin-left: 4px;
    opacity: 0.8;
}

.login-bg {
    min-height: calc(100dvh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
}

.login-card {
    background: #ededed;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 48px 32px 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    max-width: 90vw;
}

.user-icon {
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
}
.login-form label {
    font-size: 18px;
    color: #6B0F13;
    margin-bottom: 2px;
    margin-left: 2px;
}
.login-form input {
    padding: 10px;
    border: 2px solid #6B0F13;
    border-radius: 5px;
    font-size: 18px;
    outline: none;
    margin-bottom: 8px;
    background: #fff;
    color: #222;
    transition: border 0.2s;
}
.login-form input:focus {
    border-color: #a83232;
}
.login-form button {
    margin-top: 12px;
    padding: 12px 0;
    background: #a83232;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.login-form button:hover {
    background: #6B0F13;
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        padding: 0 20px 0 20px;
    }
    .login-card {
    background: #ededed;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 48px 32px 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 210px;
    max-width: 90vw;
}

}

.menu-bg {
    height: calc(89.99dvh - 120px - 1dvh);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
    padding: 40px 20px;
    /* overflow: hidden; */
}

.menu-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-title {
    color: #6B0F13;
    font-size: 32px;
    margin-bottom: 48px;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 800px;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.menu-card-image {
    /* width: 180px; */
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-card-title {
    color: #6B0F13;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.footer {
    height: 1.4dvh;
    width: 100%;
    background: #a4262c;
}

.logout-button {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #6B0F13;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logout-button:hover {
    background: #a83232;
    transform: translateY(-2px);
}

.logout-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
    }
    
    .menu-card-image {
        width: 140px;
        height: 140px;
    }
    
    .menu-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .menu-bg {
    /* height: 520px; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
    padding: 40px 20px;
    overflow: hidden;   
    }   
    .menu-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height:100%;
    }
    .menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 120px;
    }
}

/* Ordenes Page Styles */
.back-button-container {
    position: absolute;
    left: 0;
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-button {
    color: #fff;
    font-size: 50px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.back-button:hover {
    color: #ccc;
}

.page-title {
    color: #fff;
    font-size: 32px;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 2px 2px 8px #2d0103;
}

.ordenes-container {
    background: #eaeaea;
    height: calc(100dvh - 160px - 1dvh);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filters-section {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #6B0F13;
}

.filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    /* gap: 6px; */
    flex: 1;
    min-width: 140px;
}

.filter-group label {
    font-size: 11px;
    color: #6B0F13;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.filter-input {
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fafafa;
    color: #333;
    transition: all 0.2s;
    font-family: Arial, sans-serif;
}

.filter-input:hover {
    border-color: #bbb;
    background: #fff;
}

.filter-input:focus {
    border-color: #6B0F13;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107, 15, 19, 0.1);
}

/* .filter-input[type="text"] {
    min-width: 180px;
} */

/* .filter-input[type="date"] {
    min-width: 150px;
} */

.filter-input::placeholder {
    color: #999;
    font-style: italic;
}

.table-section {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: auto;
}

/* Scrollbar styling (match actividades) */
.table-section::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-section::-webkit-scrollbar-thumb {
    background: #6B0F13;
    border-radius: 4px;
}

.table-section::-webkit-scrollbar-thumb:hover {
    background: #8B1F23;
}

.ordenes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.ordenes-table thead {
    background: #2d0103;
    color: #fff;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.ordenes-table th {
    padding: 12px;
    text-align: left;
    border-right: 1px solid #444;
}

.ordenes-table th:last-child {
    border-right: none;
}

.ordenes-table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s;
}

.ordenes-table tbody tr:hover {
    background-color: #f5f5f5;
}

.ordenes-table td {
    padding: 12px;
    text-align: left;
    border-right: 1px solid #eee;
}

.ordenes-table td:last-child {
    border-right: none;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-abierta {
    background: #ffebee;
    color: #c62828;
}

.status-asignada {
    background: #fff3e0;
    color: #e65100;
}

.status-en-progreso {
    background: #e3f2fd;
    color: #1565c0;
}

.status-completada-tecnico {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-rechazada {
    background: #fce4ec;
    color: #880e4f;
}

.status-aprobada-calidad {
    background: #e8eaf6;
    color: #283593;
}

.status-aprobada-coordinador {
    background: #e0f2f1;
    color: #00695c;
}

.critical-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 16px;
}

.critical-badge.critical {
    background: #ffebee;
    color: #c62828;
}

@media (max-width: 1024px) {
    .filter-row {
        gap: 8px;
    }
    
    .filter-input {
        min-width: 100px;
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .ordenes-table {
        font-size: 12px;
    }
    
    .ordenes-table th,
    .ordenes-table td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .ordenes-container {
        padding: 12px;
        height: calc(100dvh - 144px - 1dvh);
    }
    
    .filters-section {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
        border-left: 3px solid #6B0F13;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .filter-row {
        flex-direction: row;
        gap: 0px;
    }
    
    .filter-group {
        min-width: unset;
        gap: 6px;
    }

    /* Hide filters on mobile except dateStart and status */
    .filter-group:has(#searchInput),
    .filter-group:has(#dateEnd),
    .filter-group:has(#areaFilter),
    .filter-group:has(#technicalFilter),
    .filter-group:has(#criticalFilter) {
        display: none;
    }

    .filter-group label {
        font-size: 10px;
        letter-spacing: 0.6px;
    }
    
    .filter-input {
        width: 80%;
        min-width: unset;
        padding: 5px;
        font-size: 15px;
        border-radius: 8px;
        border-width: 2px;
    }

    .filter-input:focus {
        box-shadow: 0 0 0 3px rgba(107, 15, 19, 0.15);
    }
    
    .ordenes-table {
        font-size: 13px;
    }
    
    .ordenes-table th,
    .ordenes-table td {
        padding: 10px 8px;
    }

    .ordenes-table th {
        font-size: 12px;
    }

    /* Hide columns on mobile except ORDEN, DESCRIPCION, and # */
    .ordenes-table th:nth-child(2),
    .ordenes-table th:nth-child(3),
    .ordenes-table th:nth-child(5),
    .ordenes-table td:nth-child(2),
    .ordenes-table td:nth-child(3),
    .ordenes-table td:nth-child(5) {
        display: none;
    }
    
    .page-title {
        font-size: 22px;
        display: none;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .back-button {
        font-size: 40px;
    }

    .back-button-container {
        width: 60px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 90dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(90deg, #6B0F13 60%, #2d0103 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 10px 25px;
    flex: 1;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    font-size: 16px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #6B0F13;
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

#sapRespuestaMessage{
    background: #ffffff;
}

.form-group p {
    margin: 0;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
}

.status-dropdown {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
}

.status-dropdown:hover {
    border-color: #6B0F13;
}

.form-value {
    margin: 0;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
}

.detail-group {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #6B0F13;
}

.detail-group p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.detail-group strong {
    color: #6B0F13;
}

.pdf-section {
    display: flex;
    justify-content: center;
}

.pdf-button {
    padding: 12px 24px;
    background: #6B0F13;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-button:hover {
    background: #8B1320;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 15, 19, 0.3);
}

.activities-button {
    width: 100%;
    padding: 12px;
    background: #ddd;
    color: #333;
    border: 1px solid #999;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activities-button:hover {
    background: #ccc;
    border-color: #666;
}

.modal-footer {
    padding: 10px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #f5f5f5;
}

.save-button {
    padding: 10px 20px;
    background: #6B0F13;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-button:hover {
    background: #8B1320;
}

.save-button:disabled {
    background: #aaa;
    color: #eee;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}



.reject-button {
    padding: 10px 20px;
    background: white;
    color: red;
    border:1px solid black;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reject-button:hover {
    background: #dadada;
}

/* Signature Modal Styles */
.signature-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
}

.signature-modal-header {
    background: linear-gradient(90deg, #6B0F13 60%, #2d0103 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.signature-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.signature-modal-body {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signature-canvas-container {
    /* width: 100%; */
    /* max-width: 500px; */
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.signature-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    display: none;
    pointer-events: none;
}

#signatureCanvas,
#aprobarSignatureCanvas {
    display: block;
    width: 600px;
    height: 250px;
    cursor: crosshair;
    touch-action: none;
}

.signature-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 0 0 12px 12px;
}

@media (max-width: 768px) {
    .signature-modal-content {
        width: 95%;
        max-width: none;
    }

    .signature-modal-header h2 {
        font-size: 20px;
    }

    #signatureCanvas,
    #aprobarSignatureCanvas {
        height: 250px;
    }

    .signature-modal-footer {
        flex-direction: column;
    }

    .signature-modal-footer button {
        width: 100%;
    }
}

#rejectComment {
    width: 96%; 
    height: 120px;
}

/* ─── Rutinas Page ─────────────────────────────────────────────────────────── */

.rutinas-container {
    height: calc(100dvh - 120px - 1.4dvh);
    overflow-y: auto;
    background: #eaeaea;
}

.rutinas-container::-webkit-scrollbar { width: 6px; }
.rutinas-container::-webkit-scrollbar-track { background: #f0f0f0; }
.rutinas-container::-webkit-scrollbar-thumb { background: #b0b0b0; border-radius: 3px; }
.rutinas-container::-webkit-scrollbar-thumb:hover { background: #6B0F13; }

.rutinas-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rutinas-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #d0d0d0;
    border-left: 3px solid #6B0F13;
    cursor: pointer;
    transition: background 0.15s;
    gap: 16px;
    min-height: 80px;
}

.rutinas-row:first-child {
    border-top: 1px solid #d0d0d0;
}

.rutinas-row:hover {
    background: #ece0e0;
}

.rutinas-label {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    /* color: #b8860b; */
    word-break: break-word;
    margin-left: 3rem;
}

.rutinas-img-container {
    width: 88px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rutinas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rutinas-chevron {
    font-size: 2rem;
    color: #aaa;
    flex-shrink: 0;
    line-height: 1;
    margin-left: 4px;
}

.rutinas-empty {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 1rem;
}

/* ─── Admin Rutinas Detail View ────────────────────────────────────────────── */

.admin-detail-view {
    flex-direction: column;
    height: calc(100dvh - 120px - 1.4dvh);
    background: #eaeaea;
    overflow: hidden;
}

.admin-detail-subheader {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 2px solid #d0d0d0;
    gap: 12px;
    flex-shrink: 0;
}

.admin-detail-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.admin-date-input {
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.875rem;
    color: #333;
    background: #f9f9f9;
    cursor: pointer;
}

.admin-date-sep {
    color: #888;
    font-weight: 700;
}

.admin-equipo-nombre {
    flex: 0.6;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
}

.admin-table-wrap {
    flex: 1;
    overflow-y: auto;
}

.admin-table-wrap::-webkit-scrollbar { width: 6px; }
.admin-table-wrap::-webkit-scrollbar-track { background: #f0f0f0; }
.admin-table-wrap::-webkit-scrollbar-thumb { background: #b0b0b0; border-radius: 3px; }
.admin-table-wrap::-webkit-scrollbar-thumb:hover { background: #6B0F13; }

.admin-rutinas-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-rutina-row {
    border-bottom: 1px solid #d8d8d8;
    background: #f5f5f5;
    transition: background 0.12s;
}

.admin-rutina-row:first-child td { border-top: 1px solid #d0d0d0; }
.admin-rutina-row:hover { background: #ece0e0; }

.admin-cell {
    padding: 12px 8px;
    vertical-align: middle;
    font-size: 0.82rem;
    color: #333;
}

.admin-cell--date {
    width: 68px;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    border-left: 3px solid #6B0F13;
    text-align: center;
}

.admin-cell--tec {
    text-align: center;
}

.admin-tec-name {
    display: block;
    font-weight: 600;
    color: #6B0F13;
    font-size: 0.8rem;
    line-height: 1.3;
}

.admin-tec-time {
    display: block;
    color: #666;
    font-size: 0.75rem;
    margin-top: 2px;
}

.admin-cell--pdf {
    width: 52px;
    text-align: center;
}

/* Technician's own slot — clickable to enter activities */
.admin-cell--mine {
    cursor: pointer;
    transition: background-color 0.15s;
}

.admin-cell--mine:hover {
    background-color: rgba(107, 15, 19, 0.07);
}

.admin-cell--mine .admin-tec-name::after {
    content: ' ›';
    font-weight: 400;
    opacity: 0.6;
}

.admin-pdf-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: #6B0F13;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.admin-pdf-icon small {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: -2px;
}

.admin-empty {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

.turno-selection {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: calc(100dvh - 120px - 1.4dvh);
    padding: 32px 24px;
    background: #eaeaea;
    box-sizing: border-box;
}

.turno-selection-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6B0F13;
    margin: 0 0 8px;
    text-align: center;
}

.turno-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px 0;
    border: 2px solid #6B0F13;
    border-radius: 10px;
    background: #fff;
    color: #6B0F13;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.06em;
}

.turno-btn:hover {
    background: #6B0F13;
    color: #fff;
}

.turno-btn--small {
    width: auto;
    padding: 6px 10px;
    /* font-size: 0.72rem; */
    border-radius: 6px;
}

.turno-back-btn {
    margin-top: 8px;
    width: 100%;
    max-width: 400px;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #888;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.15s;
}

.turno-back-btn:hover {
    color: #333;
}

@media (max-width: 768px) {
    .rutinas-label { font-size: 0.875rem; }
    .rutinas-img-container { width: 72px; height: 54px; }
    .turno-btn { padding: 10px; }
    .admin-equipo-nombre { font-size: 0.95rem; }
    .admin-detail-subheader { flex-wrap: wrap; }
    .admin-tec-name { font-size: 0.72rem; }
    .admin-tec-time { font-size: 0.68rem; }
    .admin-date-input { font-size: 0.78rem; padding: 4px 5px; }
}