/* ═══════════════════════════════════════════════════════════════════
   Matchday Command Center
   ═══════════════════════════════════════════════════════════════════ */
.matchday-page { max-width: 1200px; margin: 0 auto; }

/* League Selector → base styles in style.css (shared) */
.md-league-selector { margin-bottom: 1rem; }

/* Spieltag Selector (Pill Bar) */
.md-selector {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 0.5rem;
}
.md-selector-scroll {
    display: flex; gap: 0.4rem; overflow-x: auto; flex: 1;
    scrollbar-width: thin;
}
.md-selector-pill {
    flex-shrink: 0; padding: 0.4rem 0.8rem; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; border: 1px solid var(--gray-300);
    cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
    white-space: nowrap; background: transparent; font-family: var(--font);
    transition: all 0.15s;
}
.md-selector-pill:hover { border-color: var(--gray-500); background: var(--gray-50); }
.md-selector-pill.active { background: var(--primary); color: white; border-color: var(--primary); }
.md-selector-pill .status-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.md-selector-pill .pill-date { font-size: 0.7rem; opacity: 0.7; margin-left: 0.15rem; }
.md-selector-add {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
    color: white; border: none; cursor: pointer; font-size: 0.9rem; flex-shrink: 0;
    transition: background 0.15s; display: flex; align-items: center; justify-content: center;
}
.md-selector-add:hover { background: var(--primary-dark, #1a56db); }

/* Pairings Exhausted Banner */
.pairings-exhausted-banner {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    background: #fef3c7; border: 1px solid #fde68a; border-radius: var(--radius-xl);
    padding: 0.85rem 1.25rem; margin-bottom: 1rem;
    font-size: 0.88rem; font-weight: 600; color: #92400e;
}
.pairings-exhausted-banner i { color: #d97706; font-size: 1.1rem; }
.pairings-exhausted-banner span { flex: 1; }

/* Empty State */
.md-empty {
    text-align: center; padding: 4rem 2rem;
}
.md-empty-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--gray-100); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; font-size: 2rem; color: var(--gray-400);
}
.md-empty h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.md-empty p { color: var(--text-muted); }

/* Create Form */
.md-create-form {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 1.5rem; margin-top: 1rem;
}
.md-create-form h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.create-league-badge {
    display: inline-block; padding: 0.2rem 0.7rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 800; color: white; letter-spacing: 0.03em;
}
.md-create-form .form-group { margin-bottom: 1rem; }
.md-create-form .form-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; display: block; }
.md-create-form .form-input { width: 100%; max-width: 300px; }

/* Top Bar */
.md-topbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 1rem 1.5rem; margin-bottom: 1.5rem;
}
.md-topbar-title { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.md-topbar-date { font-size: 0.85rem; color: var(--text-muted); }
.md-topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.md-badge {
    padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.md-badge.planned { background: #e5e7eb; color: #4b5563; }
.md-badge.attendance_open { background: #fef3c7; color: #92400e; }
.md-badge.generated { background: #dbeafe; color: #1e40af; }
.md-badge.live { background: #fecaca; color: #991b1b; animation: badgePulse 1.5s infinite; }
.md-badge.completed { background: #d1fae5; color: #065f46; }
@keyframes badgePulse { 0%,100%{opacity:1}50%{opacity:0.7} }

/* QR & PIN Button (prominent) */
.md-qr-btn {
    animation: qrBtnPulse 2s infinite;
}
@keyframes qrBtnPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(212,160,23,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(212,160,23,0); }
}

/* Section */
.md-section {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 1.5rem; margin-bottom: 1.5rem;
}
.md-section-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.md-section-header h2 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }

/* Counter */
.md-counter {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.9rem;
}
.counter-value { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.counter-label { color: var(--text-muted); }

/* My Attendance Bar */
.my-attend-bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
    background: var(--gray-100); border-radius: var(--radius-lg); padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
}
.my-attend-label { font-weight: 600; font-size: 0.9rem; }
.my-attend-buttons { display: flex; gap: 0.5rem; }

.btn-attend {
    min-width: 44px; min-height: 44px; padding: 0.5rem 1.25rem;
    border: 2px solid; border-radius: var(--radius);
    font-family: var(--font); font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 0.4rem; background: transparent;
}
.btn-attend-yes { border-color: var(--success); color: var(--success); }
.btn-attend-yes:hover, .btn-attend-yes.active { background: var(--success); color: white; }
.btn-attend-no { border-color: var(--danger); color: var(--danger); }
.btn-attend-no:hover, .btn-attend-no.active { background: var(--danger); color: white; }

/* Attendance Grid (Admin) */
.attendance-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem;
}
.attend-player {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200); border-radius: var(--radius); transition: all 0.2s;
    cursor: pointer; min-height: 44px;
}
.attend-player:hover { border-color: var(--gray-400); }
.attend-player .player-name { flex: 1; font-weight: 600; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attend-player .attend-toggle {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gray-300);
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: transparent;
    transition: all 0.2s; flex-shrink: 0;
}
.attend-player.present { border-color: var(--success); background: #ecfdf5; }
.attend-player.present .attend-toggle { border-color: var(--success); background: var(--success); color: white; }
.attend-player.absent { border-color: var(--danger); background: #fef2f2; }
.attend-player.absent .attend-toggle { border-color: var(--danger); background: var(--danger); color: white; }
.attend-player.pending { border-color: var(--gray-300); background: var(--gray-50); }
.attend-player.pending .attend-toggle { border-color: var(--gray-400); color: var(--gray-400); }

/* Extended Attendance Status Colors */
.attend-player.excused { border-color: #f59e0b; background: #fefce8; }
.attend-player.excused .attend-toggle { border-color: #f59e0b; background: #f59e0b; color: white; }
.attend-player.sick { border-color: #8b5cf6; background: #faf5ff; }
.attend-player.sick .attend-toggle { border-color: #8b5cf6; background: #8b5cf6; color: white; }
.attend-player.no-show { border-color: #dc2626; background: #fef2f2; }
.attend-player.no-show .attend-toggle { border-color: #dc2626; background: #dc2626; color: white; }
.attend-player.late-cancel { border-color: #ea580c; background: #fff7ed; }
.attend-player.late-cancel .attend-toggle { border-color: #ea580c; background: #ea580c; color: white; }

/* Attendance badges (penalty & note) */
.attend-badges { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.attend-penalty-badge {
    font-size: 0.6rem; font-weight: 800; color: #dc2626; background: #fecaca;
    padding: 0.1rem 0.35rem; border-radius: 8px;
    display: flex; align-items: center; gap: 0.15rem;
}
.attend-penalty-badge i { font-size: 0.55rem; }
.attend-note-icon {
    font-size: 0.65rem; color: #f59e0b; cursor: help;
}

/* Check-in badge (green phone icon) */
.attend-checkin-badge {
    font-size: 0.6rem; font-weight: 800; color: #10b981; background: #d1fae5;
    padding: 0.1rem 0.3rem; border-radius: 8px;
    display: flex; align-items: center; gap: 0.1rem;
}
.attend-checkin-badge i { font-size: 0.55rem; }

/* Checked-in player has subtle green glow */
.attend-player.checked-in.present {
    box-shadow: 0 0 0 1px #10b981, inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

/* Check-in counter in header */
.checkin-counter {
    display: inline-flex; align-items: center; gap: 0.3rem;
    margin-left: 0.75rem; padding: 0.2rem 0.6rem;
    background: #d1fae5; color: #065f46; border-radius: 12px;
    font-size: 0.75rem; font-weight: 600;
}
.checkin-counter i { font-size: 0.7rem; color: #10b981; }

/* Manual check-in section in attendance menu */
.attend-menu-checkin {
    padding: 0.6rem 0.8rem; border-top: 1px solid var(--gray-200);
    display: flex; align-items: center; gap: 0.5rem;
}
.attend-menu-checkin.checked {
    color: #10b981; font-size: 0.8rem; font-weight: 600;
}
.attend-menu-checkin.checked i {
    font-size: 0.9rem;
}
.attend-menu-checkin .btn-success {
    background: #10b981; color: white; border: none; font-weight: 600;
}
.attend-menu-checkin .btn-success:hover {
    background: #059669;
}

/* Admin attendance actions bar */
.attend-admin-actions {
    display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}

/* Attendance Status Modal (Admin) */
.attend-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; animation: fadeIn 0.15s ease;
}
.attend-menu-modal {
    background: var(--white); border-radius: var(--radius-xl);
    padding: 1.25rem; max-width: 380px; width: 92%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.attend-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem;
}
.attend-menu-header h3 {
    font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.5rem; margin: 0;
}
.attend-menu-header .btn-close {
    background: none; border: none; font-size: 1.3rem; color: var(--text-muted);
    cursor: pointer; padding: 0.25rem; line-height: 1;
}
.attend-menu-options {
    display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem;
}
.attend-menu-option {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.6rem 0.75rem; border: 1px solid var(--gray-200);
    border-radius: var(--radius); cursor: pointer;
    background: transparent; font-family: var(--font); text-align: left;
    transition: all 0.15s; width: 100%;
}
.attend-menu-option:hover { border-color: var(--primary); background: var(--gray-50); }
.attend-menu-option.active { border-color: var(--primary); background: rgba(196,30,42,0.06); }
.attend-menu-option > i:first-child { font-size: 0.9rem; width: 20px; text-align: center; color: var(--text-muted); }
.attend-menu-text { flex: 1; }
.attend-menu-text strong { display: block; font-size: 0.85rem; color: var(--text-dark); }
.attend-menu-text small { font-size: 0.73rem; color: var(--text-muted); }
.attend-menu-penalty {
    font-size: 0.65rem; color: #dc2626; background: #fecaca;
    padding: 0.15rem 0.4rem; border-radius: 8px;
}
.attend-menu-check { color: var(--primary); font-size: 0.85rem; }

/* Note input in attendance modal */
.attend-menu-note {
    display: flex; align-items: center; gap: 0.5rem;
    border-top: 1px solid var(--gray-200); padding-top: 0.75rem;
}
.attend-menu-note label {
    font-size: 0.8rem; font-weight: 600; white-space: nowrap; color: var(--text-muted);
    display: flex; align-items: center; gap: 0.3rem;
}
.attend-menu-note .form-input {
    flex: 1; font-size: 0.82rem; padding: 0.4rem 0.6rem;
}

/* Simple attendance list (Player view) */
.attendance-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.attend-group-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.35rem; }
.attend-group-title i { color: var(--success); }
.attend-group-title.attend-absent i { color: var(--danger); }
.attend-list { display: flex; flex-direction: column; gap: 0.2rem; }
.attend-item { font-size: 0.85rem; padding: 0.25rem 0.5rem; background: var(--gray-50); border-radius: var(--radius); }

/* Blocks Grid */
.blocks-grid { display: flex; flex-direction: column; gap: 1rem; }

.block-card {
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden;
}
.block-card.active-block { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.block-head {
    background: var(--gray-100); padding: 0.65rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--gray-200);
}
.block-head-left { display: flex; align-items: center; gap: 0.75rem; }
.block-num { font-weight: 800; font-size: 0.95rem; }
.block-time { font-size: 0.8rem; color: var(--text-muted); }
.block-time-badge {
    font-size: 0.78rem; font-weight: 700; color: #065f46;
    background: #d1fae5; padding: 0.15rem 0.5rem; border-radius: 10px;
}
.block-boards-edit {
    display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--text-muted);
}
.block-boards-input {
    width: 40px; padding: 0.2rem 0.35rem; border: 1px solid var(--gray-300);
    border-radius: 4px; text-align: center; font-size: 0.8rem; font-weight: 700;
}
.block-head-right { display: flex; align-items: center; gap: 0.5rem; }
.block-status {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.5rem;
    border-radius: 4px; letter-spacing: 0.04em;
}
.block-status.pending { background: #e5e7eb; color: #6b7280; }
.block-status.ready { background: #dbeafe; color: #1e40af; }
.block-status.active { background: #fecaca; color: #991b1b; }
.block-status.completed { background: #d1fae5; color: #065f46; }

.block-body { padding: 0.5rem; }

.blk-match {
    display: grid; grid-template-columns: 60px 1fr auto auto auto; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.5rem; border-radius: var(--radius); margin-bottom: 0.25rem;
}
.blk-match:hover { background: var(--gray-50); }
.blk-match-done { cursor: pointer; transition: background 0.15s, border-left 0.15s; border-left: 3px solid transparent; }
.blk-match-done:hover { background: var(--gray-100); border-left-color: var(--primary); }
.blk-board { font-size: 0.75rem; color: var(--accent-dark); font-weight: 700; }
.blk-players { font-size: 0.9rem; font-weight: 600; }
.blk-winner { color: var(--success, #10b981); font-weight: 700; }
.blk-vs { color: var(--text-muted); margin: 0 0.2rem; font-weight: 400; }
.blk-writer {
    font-size: 0.78rem; font-weight: 600; color: var(--info, #2563eb);
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: #eff6ff; padding: 0.2rem 0.55rem; border-radius: 12px;
    white-space: nowrap;
}
.blk-writer i { font-size: 0.65rem; }
.blk-writer.blk-writer-none { color: var(--gray-400); background: transparent; font-weight: 400; }
.blk-score {
    font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 800;
    min-width: 50px; text-align: center;
}
.blk-score.live { color: var(--primary); }
.blk-action a { font-size: 0.75rem; }

/* Breaks / Pause Section */
.block-breaks-section {
    padding: 0.6rem 1rem; border-top: 1px solid var(--gray-200);
    background: #fef9ee; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.block-breaks-label {
    font-size: 0.78rem; font-weight: 700; color: #92400e;
    display: flex; align-items: center; gap: 0.3rem; white-space: nowrap;
}
.block-breaks-label i { color: #d97706; }
.block-breaks-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.break-tag {
    font-size: 0.75rem; font-weight: 600; color: #92400e; background: #fde68a;
    padding: 0.15rem 0.55rem; border-radius: 10px; white-space: nowrap;
}

/* Remove Player Modal */
.remove-player-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; animation: fadeIn 0.2s ease;
}
.remove-player-modal {
    background: var(--white); border-radius: var(--radius-xl);
    padding: 1.5rem; max-width: 420px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.remove-player-modal h3 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.remove-player-modal h3 i { color: var(--danger); }
.remove-player-modal .form-group { margin-bottom: 1rem; }
.remove-player-modal .form-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; display: block; }
.remove-player-modal .form-input { width: 100%; }
.remove-player-modal .modal-actions {
    display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.25rem;
}
.remove-player-modal .warning-text {
    font-size: 0.8rem; color: var(--text-muted); background: #fef3c7;
    padding: 0.5rem 0.75rem; border-radius: var(--radius); margin-bottom: 1rem;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Match list header row */
.blk-header {
    display: grid; grid-template-columns: 60px 1fr auto auto auto; align-items: center; gap: 0.5rem;
    padding: 0.3rem 0.5rem; font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .md-topbar { padding: 0.75rem 1rem; }
    .md-section { padding: 1rem; }
    .attendance-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .attendance-summary { grid-template-columns: 1fr; }
    .blk-match { grid-template-columns: 50px 1fr auto auto; }
    .blk-header { grid-template-columns: 50px 1fr auto auto; }
    .blk-writer { font-size: 0.7rem; padding: 0.15rem 0.4rem; }
    /* md-league-selector responsive handled in style.css */
    .md-selector { overflow-x: auto; }
    .md-selector-pill { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .pairings-exhausted-banner { font-size: 0.82rem; }
    .checkin-player-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .checkin-manual-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   Check-in Übersicht (Admin)
   ═══════════════════════════════════════════════════════════════════ */
.checkin-overview {
    margin-top: 1.25rem;
    border-top: 2px solid var(--gray-200);
    padding-top: 1.25rem;
}
.checkin-overview-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.checkin-overview-header h3 {
    margin: 0; font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.5rem;
}
.checkin-overview-header h3 i { color: #10b981; }
.checkin-overview-counter {
    font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
    background: var(--gray-100); padding: 0.3rem 0.75rem;
    border-radius: 20px;
}
.checkin-overview-counter span:first-child { color: #10b981; }

.checkin-group { margin-bottom: 1rem; }
.checkin-group h4 {
    font-size: 0.85rem; font-weight: 700; margin: 0 0 0.5rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.checkin-group-done h4 { color: #10b981; }
.checkin-group-pending h4 { color: var(--text-muted); }
.checkin-group-list {
    display: flex; flex-direction: column; gap: 0.35rem;
}
.checkin-player-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0.75rem; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--gray-200);
    gap: 0.5rem;
}
.checkin-player-item.checked {
    background: #f0fdf4; border-color: #bbf7d0;
}
.checkin-player-item.pending {
    background: var(--gray-50);
}
.checkin-player-name {
    font-weight: 600; font-size: 0.88rem; flex: 1;
}
.checkin-player-time {
    font-size: 0.75rem; color: #10b981; font-weight: 500;
    display: flex; align-items: center; gap: 0.3rem;
}
.checkin-manual-btn {
    font-size: 0.78rem !important;
    padding: 0.3rem 0.75rem !important;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   Late Arrival Requests (Admin Matchday Page)
   ═══════════════════════════════════════════════════════════════════════ */

.late-requests-section {
    margin-bottom: 1.5rem;
}
.late-requests-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.late-requests-header h3 {
    margin: 0; font-size: 1rem; font-weight: 700;
    color: #f59e0b;
}
.late-requests-header h3 i { margin-right: 0.3rem; }
.late-requests-badge {
    background: #ef4444; color: white;
    font-size: 0.75rem; font-weight: 800;
    padding: 0.15rem 0.5rem; border-radius: 999px;
    min-width: 20px; text-align: center;
    animation: lateBadgePulse 1.5s ease-in-out infinite;
}
@keyframes lateBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.late-request-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.04));
    border: 1px solid rgba(245,158,11,0.3);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}
.late-request-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 12px rgba(245,158,11,0.15);
}

.late-request-card.late-request-approved {
    border-left-color: #22c55e;
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.04));
    border-color: rgba(34,197,94,0.3);
}
.late-request-card.late-request-denied {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
    border-color: rgba(239,68,68,0.3);
    opacity: 0.7;
}
.late-request-card.late-request-decided {
    opacity: 0.7;
}

.late-request-info {
    display: flex; flex-direction: column; gap: 0.2rem;
    min-width: 0; flex: 1;
}
.late-request-name {
    font-weight: 700; font-size: 0.9rem; color: var(--text-dark);
}
.late-request-name i { color: #f59e0b; margin-right: 0.3rem; }
.late-request-time {
    font-size: 0.78rem; color: var(--text-muted);
}
.late-request-status {
    font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
}

.late-request-actions {
    display: flex; gap: 0.5rem; align-items: center;
    flex-shrink: 0;
}

.btn-approve-late {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white !important; border: none !important;
    font-weight: 700; font-size: 0.8rem !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s;
}
.btn-approve-late:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    transform: scale(1.03);
}

.btn-deny-late {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239,68,68,0.4) !important;
    font-weight: 600; font-size: 0.8rem !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s;
}
.btn-deny-late:hover {
    background: rgba(239,68,68,0.1) !important;
    border-color: #ef4444 !important;
}

@media (max-width: 480px) {
    .late-request-card { flex-direction: column; align-items: stretch; }
    .late-request-actions { justify-content: flex-end; }
}
