/* Módulo Fichajes - billOS */

/* ========================================
   Tabs: Listado | Histórico | Vacaciones
   ======================================== */
.fichajes-tabs-wrap {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
}

.fichajes-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

#fichajes-vacaciones-resumen h3{
    margin: 0;
    margin-bottom: 16px;
}

.fichajes-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted, #6b7280);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}

.fichajes-tab-btn:hover {
    color: var(--text-primary, #111);
}

.fichajes-tab-btn.active {
    color: var(--primary, #2563eb);
    border-bottom-color: var(--primary, #2563eb);
}

.fichajes-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #dc2626;
    border-radius: 10px;
}

.fichajes-tab-content {
    padding: 24px;
}

/* Histórico: contenido con padding y tabla con scroll horizontal */
.fichajes-historico-inner {
    padding: 0;
    max-width: 100%;
}

.fichajes-historico-actions,
.fichajes-historico-actions .date-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Histórico: tabla con layout fijo y anchos por columna (estilo clientes/proveedores) para que no se solapen los datos */
.fichajes-historico-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light, #e5e7eb);
    background: var(--bg-card, #fff);
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.fichajes-historico-table-wrapper .fichajes-table {
    width: 100%;
    min-width: 960px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.fichajes-historico-table-wrapper .fichajes-table th,
.fichajes-historico-table-wrapper .fichajes-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light, #e5e7eb);

}

.fichajes-historico-table-wrapper .fichajes-table thead th {
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    background: #f9fafb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fichajes-historico-table-wrapper .fichajes-table tbody td {
    color: var(--text-primary, #111827);
}

.fichajes-historico-table-wrapper .fichajes-table tbody tr:hover {
    background: var(--bg-hover, #f9fafb);
}

.fichajes-historico-table-wrapper .fichajes-table tbody tr:last-child td {
    border-bottom: none;
}

/* Anchos por columna (evita solapamiento) */
.fichajes-historico-table-wrapper .fichaje-h-col-cb {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    text-align: center;
    box-sizing: border-box;
}

.fichajes-historico-table-wrapper .fichaje-h-col-usuario {
    width: 140px;
    min-width: 140px;
}

.fichajes-historico-table-wrapper .fichaje-h-col-fecha {
    width: 100px;
    min-width: 100px;
}

.fichajes-historico-table-wrapper .fichaje-h-col-entrada,
.fichajes-historico-table-wrapper .fichaje-h-col-salida {
    width: 140px;
    min-width: 140px;
}

.fichajes-historico-table-wrapper .fichaje-h-col-ip {
    width: 120px;
    min-width: 120px;
}

.fichajes-historico-table-wrapper .fichaje-h-col-geoloc {
    width: 140px;
    min-width: 140px;
}

.fichajes-historico-table-wrapper .fichaje-h-col-horas {
    width: 80px;
    min-width: 80px;
}

.fichajes-historico-table-wrapper .fichaje-h-col-pausas {
    width: 90px;
    min-width: 90px;
}

/* Selection bar para histórico (Ver / Editar selección) */
#fichajes-historico-selection-bar.selection-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 12px 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

#fichajes-historico-selection-bar .selection-bar-info {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

#fichajes-historico-selection-bar .selection-bar-actions {
    display: flex;
    gap: 8px;
}

#fichajes-historico-selection-bar .selection-bar-btn {
    padding: 8px 16px;
    border-radius: 25px;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
}

#fichajes-historico-selection-bar .selection-bar-btn:hover {
    background: rgba(255,255,255,0.25);
}

#fichajes-historico-selection-bar .selection-bar-btn.btn-primary {
    background: #2563eb;
}

#fichajes-historico-selection-bar .selection-bar-btn.btn-primary:hover {
    background: #1d4ed8;
}

.fichajes-historico-table-wrapper .fichaje-historico-row.selected {
    background: rgba(37, 99, 235, 0.08);
}

/* ===== Cambios pendientes de tu aprobación (bloque visual) ===== */
.fichajes-cambios-pendientes {
    margin-bottom: 24px;
}

.fichajes-cambios-pendientes-card {
    background: #f9fafb;
    border: 1px solid #e6e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgb(249 250 251);
    margin-top: 13px;
}

.fichajes-cambios-pendientes-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(252, 211, 77, 0.5);
}

.fichajes-cambios-pendientes-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.fichajes-cambios-pendientes-icon::before {
    content: '⏱';
    font-size: 22px;
    line-height: 1;
}

.fichajes-cambios-pendientes-heading {
    flex: 1;
    min-width: 0;
}

.fichajes-cambios-pendientes-title {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #92400e;
    letter-spacing: -0.02em;
}

.fichajes-cambios-pendientes-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #b45309;
    line-height: 1.4;
}

.fichajes-cambios-pendientes-badge {
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    background: #d97706;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
}

.fichajes-cambios-pendientes .fichajes-cambios-list {
    list-style: none;
    padding: 16px 24px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fichajes-cambio-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(252, 211, 77, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fichajes-cambio-item:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    border-color: #fcd34d;
}

.fichajes-cambio-item-accent {
    width: 4px;
    align-self: stretch;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    flex-shrink: 0;
}

.fichajes-cambio-item-body {
    flex: 1;
    min-width: 0;
    padding: 14px 0;
}

.fichajes-cambio-item-desc {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    line-height: 1.35;
}

.fichajes-cambio-item-date {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.fichajes-cambio-item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 0;
}

.fichajes-cambio-item-actions .btn {
    white-space: nowrap;
}

.fichajes-cambio-item-actions .fichaje-cambio-aprobar {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.fichajes-cambio-item-actions .fichaje-cambio-aprobar:hover {
    background: #047857;
    border-color: #047857;
    color: #fff;
}

.fichaje-cambio-btn-rechazar {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.fichaje-cambio-btn-rechazar:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

@media (max-width: 640px) {
    .fichajes-cambios-pendientes-header {
        flex-wrap: wrap;
        padding: 16px 18px;
    }
    .fichajes-cambios-pendientes .fichajes-cambios-list {
        padding: 12px 18px 16px;
    }
    .fichajes-cambio-item {
        flex-wrap: wrap;
    }
    .fichajes-cambio-item-actions {
        width: 100%;
        justify-content: flex-end;
        padding: 0 16px 12px 0;
    }
}

/* ===== Vacaciones (estilo HR) ===== */
.fichajes-vacaciones-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.fichajes-vacaciones-content .vacaciones-summary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(99, 102, 241, 0.06));
    border-radius: 12px;
    padding: 24px;
}

.fichajes-vacaciones-content .vacaciones-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    text-align: center;
}

.fichajes-vacaciones-content .vac-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fichajes-vacaciones-content .vac-label {
    font-size: 0.85em;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}

.fichajes-vacaciones-content .vac-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary, #2563eb);
    font-variant-numeric: tabular-nums;
}

.fichajes-vacaciones-content .vacaciones-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fichajes-vacaciones-content .vacacion-item {
    padding: 16px;
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.fichajes-vacaciones-content .vacacion-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fichajes-vacaciones-content .vacacion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.fichajes-vacaciones-content .vacacion-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fichajes-vacaciones-content .vacacion-dias {
    font-size: 0.85em;
    color: var(--text-muted, #6b7280);
}

.fichajes-vacaciones-content .vacacion-motivo,
.fichajes-vacaciones-content .vacacion-respuesta {
    font-size: 0.9em;
    color: var(--text-primary, #111);
    margin-bottom: 10px;
    padding: 10px;
    background: var(--bg-hover, #f9fafb);
    border-radius: 8px;
}

.fichajes-vacaciones-content .vacacion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--text-muted, #6b7280);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light, #e5e7eb);
}

.fichajes-vacaciones-content .badge-warning { background: rgba(245, 158, 11, 0.2); color: #b45309; }
.fichajes-vacaciones-content .badge-success { background: rgba(34, 197, 94, 0.2); color: #15803d; }
.fichajes-vacaciones-content .badge-danger { background: rgba(239, 68, 68, 0.2); color: #b91c1c; }
.fichajes-vacaciones-content .badge-secondary { background: rgba(107, 114, 128, 0.2); color: #4b5563; }

.vacacion-pendiente-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light, #eee);
}

.vacacion-pendiente-item:last-child {
    border-bottom: none;
}

.fichajes-vacaciones-content .empty-state,
.fichajes-vacaciones-content .error-state {
    padding: 24px;
    text-align: center;
    color: var(--text-muted, #6b7280);
}

.fichajes-vacaciones-content .btn-text-danger {
    color: #dc2626;
}

.fichajes-vacaciones-content .btn-text-danger:hover {
    color: #b91c1c;
}

/* ========================================
   Modal detalle fichaje - Línea temporal
   ======================================== */
.fichaje-detalle-modal-content {
    max-width: 520px;
}

.fichaje-detalle-modal-content .modal-body {
    padding: 20px 24px;
}

.fichaje-detalle-resumen {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
}

.fichaje-detalle-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}

.fichaje-detalle-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg-hover, #f9fafb);
    border-radius: 10px;
    text-align: center;
}

.fichaje-detalle-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
}

.fichaje-detalle-stat .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary, #2563eb);
}

.fichaje-detalle-meta {
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.fichaje-detalle-meta .label {
    font-weight: 500;
    margin-right: 4px;
}

.fichaje-timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #111);
    margin: 0 0 16px 0;
}

.fichaje-timeline {
    position: relative;
    padding-left: 24px;
}

.fichaje-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-light, #e5e7eb);
    border-radius: 1px;
}

.fichaje-timeline-item {
    position: relative;
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.fichaje-timeline-item:last-child {
    margin-bottom: 0;
}

.fichaje-timeline-marker {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary, #2563eb);
    border: 3px solid var(--bg-card, #fff);
    box-shadow: 0 0 0 1px var(--border-light, #e5e7eb);
    z-index: 1;
}

.fichaje-timeline-marker-pausa {
    background: #f59e0b;
    width: 14px;
    height: 14px;
    left: -23px;
    top: 5px;
}

.fichaje-timeline-inicio .fichaje-timeline-marker {
    background: #10b981;
}

.fichaje-timeline-fin .fichaje-timeline-marker {
    background: #ef4444;
}

.fichaje-timeline-content {
    flex: 1;
    min-width: 0;
}

.fichaje-timeline-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #111);
    margin-bottom: 4px;
}

.fichaje-timeline-time {
    font-size: 0.875rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 2px;
}

.fichaje-timeline-time.text-muted {
    font-style: italic;
}

.fichaje-timeline-duracion {
    font-size: 0.8rem;
    color: #b45309;
    font-weight: 500;
    margin-top: 4px;
}

/* ========================================
   Widget de fichaje activo en el header
   ======================================== */
.header-fichaje-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-right: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    text-decoration: none;
    color: #166534;
    font-size: 13px;
    font-weight: 500;
    transition: box-shadow 0.2s, transform 0.1s;
}

.header-fichaje-widget:hover {
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.15);
    transform: translateY(-1px);
    color: #166534;
}

.header-fichaje-widget[data-status="en_pausa"] {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    color: #92400e;
}

.header-fichaje-widget[data-status="en_pausa"]:hover {
    box-shadow: 0 2px 8px rgba(146, 64, 14, 0.12);
    color: #92400e;
}

.header-fichaje-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-fichaje-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: header-fichaje-pulse 2s ease-in-out infinite;
}

.header-fichaje-widget[data-status="en_pausa"] .header-fichaje-status::before {
    background: #d97706;
    animation: none;
}

@keyframes header-fichaje-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.header-fichaje-crono {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    min-width: 4.5em;
}

/* ========================================
   Panel y tabla de Fichajes
   ======================================== */
.fichajes-panel {
    background: var(--bg-card, #fff);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.fichajes-table-wrap {
    overflow-x: auto;
}

#fichajes-content{
    padding: 20px;
}

/* Vista temporal del día (barras 0:00–24:00, verde trabajo, naranja pausas) */
.fichajes-timeline-day-wrap {
    margin-bottom: 24px;
    background: var(--bg-card, #fff);
    border-radius: 12px;
    border: 1px solid var(--border-light, #e5e7eb);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fichajes-timeline-day-wrap .fichajes-timeline-day-header,
.fichajes-timeline-day-wrap .fichajes-timeline-grid {
    min-width: 920px;
}

.fichajes-timeline-day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fichajes-timeline-day-header label {
    font-weight: 600;
    color: var(--text-primary, #111);
}

.fichajes-timeline-day-header .input-field {
    width: auto;
    min-width: 140px;
}

.fichajes-timeline-grid {
    min-height: 80px;
}

.fichajes-timeline-loading,
.fichajes-timeline-empty,
.fichajes-timeline-error {
    color: var(--text-muted, #6b7280);
    padding: 16px;
    margin: 0;
    font-size: 0.9rem;
}

.fichajes-timeline-error {
    color: #dc2626;
}

.fichajes-timeline-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light, #eee);
}

.fichajes-timeline-row:last-child {
    border-bottom: none;
}

.fichajes-timeline-header {
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fichajes-timeline-label-col {
    flex: 0 0 180px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fichajes-timeline-name {
    font-weight: 500;
    color: var(--text-primary, #111);
}

.fichajes-timeline-hours {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    font-variant-numeric: tabular-nums;
}

.fichajes-timeline-bar-col {
    flex: 1;
    min-width: 400px;
}

.fichajes-timeline-hours-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 4px;
    padding-right: 0;
}

.fichajes-timeline-hour {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.fichajes-timeline-bar-track {
    position: relative;
    height: 24px;
    min-height: 24px;
    background: var(--bg-muted, #e5e7eb);
    border-radius: 6px;
    overflow: hidden;
}

.fichaje-timeline-segment {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-height: 24px;
    border-radius: 4px;
    min-width: 6px;
    box-sizing: border-box;
}

.fichaje-bar-work {
    background: #10b981;
}

.fichaje-bar-pause {
    background: #f59e0b;
}

.fichajes-timeline-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 2;
    pointer-events: none;
}

.fichajes-table {
    width: 100%;
    border-collapse: collapse;
}

.fichajes-table th,
.fichajes-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light, #eee);
}

.fichajes-table th {
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    font-size: 0.85rem;
    text-transform: none;
}

.fichajes-table tbody tr:hover {
    background: var(--bg-hover, #f9fafb);
}

.fichaje-nombre {
    font-weight: 500;
    color: var(--text-primary, #111);
}

.fichaje-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.fichaje-status-off {
    background: var(--bg-muted, #f3f4f6);
    color: var(--text-muted, #6b7280);
}

.fichaje-status-on {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.fichaje-status-pause {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.fichaje-tiempo {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text-primary, #111);
}

.fichaje-acciones {
    white-space: nowrap;
}

.fichaje-acciones .btn-fichaje {
    margin-right: 6px;
    margin-bottom: 4px;
}

.btn-fichaje {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.btn-fichaje:hover {
    transform: translateY(-1px);
}

.btn-fichaje-entrada {
    background: #10b981;
    color: #fff;
}

.btn-fichaje-entrada:hover {
    background: #059669;
}

.btn-fichaje-salida {
    background: #ef4444;
    color: #fff;
}

.btn-fichaje-salida:hover {
    background: #dc2626;
}

.btn-fichaje-reanudar {
    background: #3b82f6;
    color: #fff;
}

.btn-fichaje-reanudar:hover {
    background: #2563eb;
}

.btn-fichaje-pausa,
.btn-fichaje-pausa-otros {
    background: #f59e0b;
    color: #fff;
}

.btn-fichaje-pausa:hover,
.btn-fichaje-pausa-otros:hover {
    background: #d97706;
}

.fichaje-acciones-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.fichajes-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted, #6b7280);
}

/* Modal PIN y Pausa Otros (usan .modal-overlay + .modal-content.size-sm de modales.css) */
#fichajes-pin-modal .modal-body,
#fichajes-pausa-otros-modal .modal-body {
    padding: 24px;
}

.fichajes-pin-hint {
    margin-bottom: 12px;
    color: var(--text-muted, #6b7280);
    font-size: 0.9rem;
}

.fichajes-pin-input {
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    margin-bottom: 8px;
}

.fichajes-pin-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.fichajes-pin-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.fichajes-pin-actions .btn {
    min-width: 100px;
}
