/* SnapStock — Vardiya Takvim — Site temasıyla uyumlu (dark + terracotta) */

/* ══════════════════════════════════════════════════════
   YENİ HEATMAP v2  (satır=gün, sütun=saat)
   ══════════════════════════════════════════════════════ */

/* ── Renk seviyeleri: 0=boş → 8=çok yoğun (amber→sarı-yeşil→yeşil→teal→mavi→mor) ── */
.cv2-cell.level-0 { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); cursor: default; }
.cv2-cell.level-1 { background: rgba(251,191, 36,0.28); border-color: rgba(251,191, 36,0.45); }
.cv2-cell.level-2 { background: rgba(163,230, 53,0.30); border-color: rgba(163,230, 53,0.48); }
.cv2-cell.level-3 { background: rgba( 52,211,153,0.32); border-color: rgba( 52,211,153,0.50); }
.cv2-cell.level-4 { background: rgba( 20,184,166,0.34); border-color: rgba( 20,184,166,0.52); }
.cv2-cell.level-5 { background: rgba( 14,165,233,0.36); border-color: rgba( 14,165,233,0.54); }
.cv2-cell.level-6 { background: rgba( 59,130,246,0.38); border-color: rgba( 59,130,246,0.56); }
.cv2-cell.level-7 { background: rgba( 99,102,241,0.42); border-color: rgba( 99,102,241,0.60); }
.cv2-cell.level-8 { background: rgba(139, 92,246,0.48); border-color: rgba(139, 92,246,0.68); }

/* Aynı renkler legend noktaları için (daha opak) */
.cv2-lg-dot.level-0 { background: rgba(255,255,255,0.10); border: 1px dashed rgba(255,255,255,0.18); }
.cv2-lg-dot.level-1 { background: rgba(251,191, 36,0.75); }
.cv2-lg-dot.level-2 { background: rgba(163,230, 53,0.75); }
.cv2-lg-dot.level-3 { background: rgba( 52,211,153,0.80); }
.cv2-lg-dot.level-4 { background: rgba( 20,184,166,0.80); }
.cv2-lg-dot.level-5 { background: rgba( 14,165,233,0.80); }
.cv2-lg-dot.level-6 { background: rgba( 59,130,246,0.82); }
.cv2-lg-dot.level-7 { background: rgba( 99,102,241,0.84); }
.cv2-lg-dot.level-8 { background: rgba(139, 92,246,0.88); }

/* ── KPI Şeridi ──────────────────────────────────────── */
.cv2-kpi-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cv2-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    flex: 1;
    min-width: 150px;
}

.cv2-kpi-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cv2-kpi-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.cv2-kpi-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ── Legend ──────────────────────────────────────────── */
.cv2-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.cv2-lg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cv2-lg-dot {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.cv2-lg-hint {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ── Scroll wrapper ───────────────────────────────────── */
.cv2-scroll {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    padding: 12px;
}

/* ── Grid ─────────────────────────────────────────────── */
/* col1=gün etiketi, col2..N=saat hücreleri, colN+1=satır özeti */
.cv2-grid {
    display: grid;
    grid-template-columns: 72px repeat(var(--hc, 15), minmax(38px, 1fr)) minmax(80px, auto);
    gap: 3px;
    min-width: 600px;
}

/* ── Köşe ─────────────────────────────────────────────── */
.cv2-corner { /* boş sol-üst köşe */ }

/* ── Saat başlıkları ─────────────────────────────────── */
.cv2-hdr-hour {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 2px 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    position: relative;
    line-height: 1.1;
}

/* "22" büyük, "-23" küçük kısaltılmış */
.cv2-hdr-h1 { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.cv2-hdr-h2 { font-size: 0.55rem; font-weight: 500; color: var(--text-light, #9CA3AF); }

/* Aktif saat vurgusu */
.cv2-hdr-hour.is-now .cv2-hdr-h1 { color: #C96442; }
.cv2-hdr-hour.is-now .cv2-hdr-h2 { color: rgba(201,100,66,0.65); }

/* "Şu an" noktası */
.cv2-now-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #C96442;
    margin: 2px auto 0;
    box-shadow: 0 0 6px rgba(201,100,66,0.7);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

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

.cv2-hdr-sum {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 4px 8px;
}

/* ── Gün etiketi ─────────────────────────────────────── */
.cv2-day-lbl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 6px 4px 0;
    min-height: 38px;
}

.cv2-day-lbl strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: capitalize;
    line-height: 1.2;
}

.cv2-day-lbl small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.cv2-day-lbl.is-today strong { color: #C96442; }
.cv2-day-lbl.is-today small  { color: rgba(201,100,66,0.7); }

/* ── Hücre ───────────────────────────────────────────── */
.cv2-cell {
    height: 38px;
    border-radius: 5px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: help;
    transition: transform 0.1s, box-shadow 0.1s, filter 0.1s;
    position: relative;
    overflow: visible;
}

/* Bugünün sütununu hafif vurgula */
.cv2-cell.is-today-col {
    outline: 1px solid rgba(201,100,66,0.15);
    outline-offset: -1px;
}

/* Şu anki saat hücresi */
.cv2-cell.is-now-cell {
    outline: 2px solid rgba(201,100,66,0.65) !important;
    outline-offset: -2px;
    z-index: 3;
}

/* Şu anki saat hücresindeki canlı çizgi */
.cv2-now-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C96442, transparent);
    border-radius: 2px 2px 0 0;
    animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
    0%   { opacity: 0.4; }
    50%  { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Bugünde boş slot — hafif uyarı */
.cv2-cell.is-gap {
    background: rgba(239,68,68,0.07) !important;
    border-color: rgba(239,68,68,0.15) !important;
}

.cv2-cell:not(.level-0):hover {
    transform: scale(1.12);
    z-index: 10;
    filter: brightness(1.15);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* Hücre metni (initials veya sayı) */
.cv2-cell-txt {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.45);
    letter-spacing: 0.01em;
    user-select: none;
    pointer-events: none;
}

/* ── CSS Tooltip ─────────────────────────────────────── */
.cv2-cell[data-ht]::after {
    content: attr(data-ht);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,15,25,0.96);
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 200;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.15s;
}
.cv2-cell[data-ht]:hover::after  { opacity: 1; }
.cv2-cell.level-0[data-ht]:hover::after { opacity: 0; } /* boş hücrelerde tooltip yok */

/* Sağ kenarda tooltip sola taşsın */
.cv2-cell:last-of-type[data-ht]::after { left: auto; right: 0; transform: none; }

/* ── Satır özeti ─────────────────────────────────────── */
.cv2-row-sum {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
}

.cv2-row-sum.is-today {
    background: rgba(201,100,66,0.08);
    border-color: rgba(201,100,66,0.2);
}

.cv2-sum-top {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.cv2-sum-hours {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cv2-sum-hours small {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Kaplama % rozeti */
.cv2-cover-pct {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.4;
}
.cv2-cover-pct.cvp-good { background: rgba(16,185,129,0.2); color: #34D399; }
.cv2-cover-pct.cvp-mid  { background: rgba(245,158,11,0.2); color: #FBBF24; }
.cv2-cover-pct.cvp-low  { background: rgba(239, 68,68,0.2); color: #F87171; }

.cv2-sum-empty {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
    opacity: 0.6;
}

.cv2-sum-staff {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Personel initiali chip */
.cv2-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cv2-initial.cv2-more {
    background: var(--text-muted);
    font-size: 0.55rem;
}

/* ── Mobil ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .cv2-kpi-row { gap: 8px; }
    .cv2-kpi { padding: 10px 12px; min-width: 130px; }
    .cv2-kpi-val { font-size: 0.95rem; }
    .cv2-cell { height: 30px; }
    .cv2-grid { grid-template-columns: 60px repeat(var(--hc,15), minmax(30px,1fr)) 72px; }
}


/* ── Drag tooltip ────────────────────────────────── */
.shift-drag-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(20, 20, 19, 0.92);
    border: 1px solid rgba(255,255,255,0.10);
    color: #faf9f5;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.shift-drag-tooltip small {
    opacity: 0.55;
    font-size: 0.72rem;
}

.shift-drag-tooltip.copy-mode {
    background: rgba(201, 100, 66, 0.90);
    border-color: rgba(255,255,255,0.15);
    color: #faf9f5;
}

/* ── Page ────────────────────────────────────────── */
.shift-page {
    padding: 1rem;
    min-height: 100vh;
}

/* ── Toolbar ─────────────────────────────────────── */
.shift-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.shift-toolbar .range-label {
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0.5rem;
    font-size: 0.95rem;
}

.shift-toolbar .info-hint {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Grid wrapper ────────────────────────────────── */
.shift-grid-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.shift-grid {
    display: grid;
    min-width: 900px;
}

.shift-grid-header,
.shift-grid-row {
    display: grid;
    grid-template-columns: 220px repeat(var(--day-count, 7), minmax(140px, 1fr));
}

.shift-grid-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 5;
}

/* ── Day header ──────────────────────────────────── */
.day-header {
    text-align: left;
    padding: 0.75rem 0.6rem;
    font-size: 0.85rem;
    line-height: 1.3;
    border-right: 1px solid var(--glass-border);
    transition: background 0.15s;
    position: relative;
}

.day-header strong {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    font-family: inherit;
}

.day-header small {
    color: var(--text-muted);
    font-size: 0.73rem;
}

.day-header.is-today {
    background: rgba(201, 100, 66, 0.08);
    border-bottom: 2px solid var(--primary);
}

.day-header.is-today strong {
    color: var(--primary);
}

.day-header.is-tr-holiday {
    background: rgba(224, 92, 77, 0.08);
}

.day-header.is-foreign-holiday {
    background: rgba(230, 160, 48, 0.07);
}

.day-header .holiday-list {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.day-header .holiday-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 2px 7px;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    font-size: 0.68rem;
    color: var(--text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-header .holiday-badge.tr {
    background: rgba(224, 92, 77, 0.15);
    border-color: rgba(224, 92, 77, 0.25);
    color: #f87171;
    font-weight: 500;
}

/* ── Staff cell ──────────────────────────────────── */
.staff-cell {
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: sticky;
    left: 0;
    z-index: 3;
    min-height: 88px;
}

.staff-cell.empty {
    background: rgba(255,255,255,0.01);
}

.staff-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avatar-c1, #c96442) 0%, var(--avatar-c2, #d97757) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.82rem;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.staff-info strong {
    display: block;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
}

.staff-info small {
    color: var(--text-muted);
    font-size: 0.70rem;
}

/* ── Shift cell ──────────────────────────────────── */
.shift-cell {
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 6px;
    min-height: 88px;
    position: relative;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.12s ease;
}

.shift-cell:hover {
    background: rgba(201, 100, 66, 0.05);
}

.shift-cell.is-tr-holiday {
    background: rgba(224, 92, 77, 0.06);
}

.shift-cell.drop-active {
    background: rgba(201, 100, 66, 0.07);
    box-shadow: inset 0 0 0 1px rgba(201, 100, 66, 0.20);
}

.shift-cell.drop-target {
    background: rgba(201, 100, 66, 0.14);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.shift-cell.drop-copy {
    background: rgba(76, 175, 96, 0.12);
    box-shadow: inset 0 0 0 2px #4caf60;
}

/* ── Shift block ─────────────────────────────────── */
.shift-block {
    background: linear-gradient(135deg, var(--block-c1, #c96442) 0%, var(--block-c2, #d97757) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 7px 9px;
    margin-bottom: 4px;
    font-size: 0.77rem;
    font-weight: 500;
    cursor: grab;
    user-select: none;
    touch-action: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.shift-block::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.35);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.shift-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.shift-block.shift-dragging {
    opacity: 0.88;
    cursor: grabbing;
    z-index: 100;
    transform: rotate(-1.5deg) scale(1.03);
    box-shadow: 0 16px 36px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}

.shift-block.shift-resizing { opacity: 0.92; }

.shift-block .shift-time {
    display: block;
    line-height: 1.3;
    font-weight: 600;
    font-size: 0.80rem;
}

.shift-block .shift-duration {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.68rem;
    opacity: 0.80;
    background: rgba(255,255,255,0.15);
    padding: 1px 6px;
    border-radius: 999px;
}

.shift-block .shift-note {
    display: block;
    font-size: 0.68rem;
    opacity: 0.85;
    margin-top: 3px;
    font-style: italic;
}

.shift-block .shift-delete {
    position: absolute;
    top: 4px; right: 5px;
    background: rgba(0,0,0,0.20);
    color: #fff;
    border: none;
    width: 17px; height: 17px;
    border-radius: 50%;
    font-size: 0.82rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.shift-block:hover .shift-delete { display: flex; }
.shift-block .shift-delete:hover { background: rgba(224,92,77,0.85); }

.shift-block.shift-saving {
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}

.shift-block.shift-saving::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* ── Add Popover Modal ───────────────────────────── */
.shift-popover-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 9, 0.60);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shift-popover-modal {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    width: 420px;
    max-width: 92vw;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    animation: popIn 0.18s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.95) translateY(6px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.popover-staff-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 14px;
}

.popover-staff-header .staff-avatar { width: 42px; height: 42px; font-size: 0.9rem; }

.popover-staff-header h5 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: inherit;
}

.popover-staff-header small { color: var(--text-muted); font-size: 0.76rem; }

.popover-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Quick pick buttons ──────────────────────────── */
.suggested-ranges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 14px;
}

.range-btn {
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    padding: 9px 7px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: inherit;
    color: var(--text-main);
}

.range-btn:hover {
    border-color: rgba(201, 100, 66, 0.35);
    background: rgba(201, 100, 66, 0.07);
}

.range-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(201,100,66,0.15);
}

.range-btn .range-icon { color: var(--primary); font-size: 1rem; line-height: 1; }
.range-btn .range-label { font-weight: 600; font-size: 0.83rem; color: var(--text-main); }
.range-btn .range-time { font-size: 0.70rem; color: var(--text-muted); }

/* ── Conflict banner ─────────────────────────────── */
.conflict-banner {
    background: rgba(224, 92, 77, 0.10);
    border: 1px solid rgba(224, 92, 77, 0.25);
    border-radius: var(--radius-md);
    padding: 9px 11px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.80rem;
    color: var(--danger);
}

.conflict-banner .conflict-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.conflict-banner strong { display: block; margin-bottom: 2px; }
.conflict-banner small { opacity: 0.75; font-size: 0.73rem; }

/* ── Time spinner ────────────────────────────────── */
.time-spinner-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.time24 {
    display: flex;
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--input-bg);
    transition: border-color 0.15s;
    height: 40px;
}

.time24:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201,100,66,0.12);
}

.time24 input {
    border: none;
    outline: none;
    width: 34px;
    padding: 7px 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    background: transparent;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}

.time24 input::-webkit-outer-spin-button,
.time24 input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.time24 .time-sep { color: var(--text-muted); font-weight: 700; font-size: 0.98rem; }

.time24-arrows {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
    margin-left: 3px;
}

.time24-arrows button {
    border: none;
    background: transparent;
    width: 24px; height: 20px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.62rem;
    padding: 0; line-height: 1;
}

.time24-arrows button:hover { background: rgba(201,100,66,0.10); color: var(--primary); }
.time24-arrows button:first-child { border-bottom: 1px solid var(--glass-border); }

.time-arrow { color: var(--text-muted); font-size: 0.95rem; text-align: center; }

/* time-spinner (input[type=time] wrapper) */
.time-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--input-bg);
    height: 40px;
    gap: 0;
}

.time-spinner input[type="time"] {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.96rem;
    font-weight: 600;
    padding: 0 8px;
    flex: 1;
    height: 100%;
    font-variant-numeric: tabular-nums;
}

.time-spinner-arrows {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
}

.time-spinner-arrows button {
    border: none;
    background: transparent;
    width: 24px; height: 20px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.62rem;
    padding: 0; line-height: 1;
}

.time-spinner-arrows button:hover { background: rgba(201,100,66,0.10); color: var(--primary); }
.time-spinner-arrows button:first-child { border-bottom: 1px solid var(--glass-border); }

/* ── Drop confirm modal ──────────────────────────── */
.drop-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,10,9,0.55);
    backdrop-filter: blur(3px);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-confirm-modal {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    width: 310px;
    max-width: 92vw;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    animation: popIn 0.18s ease-out;
}

.drop-confirm-modal h6 { margin: 0 0 5px; font-size: 0.93rem; font-weight: 600; color: var(--text-main); font-family: inherit; }
.drop-confirm-modal p { margin: 0 0 13px; font-size: 0.80rem; color: var(--text-muted); }

.drop-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.drop-confirm-actions .btn { border-radius: var(--radius-md); padding: 8px; font-weight: 500; font-size: 0.83rem; }
.drop-confirm-actions .btn-cancel {
    grid-column: 1 / -1;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* ── Popover footer ──────────────────────────────── */
.popover-footer { display: flex; gap: 8px; margin-top: 6px; }
.popover-footer .btn-primary { flex: 1; font-weight: 600; border-radius: var(--radius-md); padding: 10px; }
.popover-footer .btn-outline-secondary { border-radius: var(--radius-md); padding: 10px 14px; font-weight: 500; }

/* ── Preset list (ayarlar modal) ─────────────────── */
.preset-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }

.preset-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 7px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
}

.preset-item .preset-icon {
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}

.preset-item input.preset-name {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    padding: 2px 4px;
    border-bottom: 1px dashed transparent;
}

.preset-item input.preset-name:focus { border-bottom-color: var(--primary); }

.preset-item .preset-time {
    display: flex; gap: 4px; align-items: center;
    font-variant-numeric: tabular-nums;
    font-size: 0.83rem;
    color: var(--text-main);
}

.preset-item .preset-time input {
    width: 48px; padding: 3px 5px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 0.83rem;
    background: var(--input-bg);
    color: var(--text-main);
}

.preset-item .preset-icon-picker { display: flex; gap: 2px; }

.preset-item .preset-icon-picker button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 3px 5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.preset-item .preset-icon-picker button.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(201,100,66,0.25);
}

.preset-item .preset-delete {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 3px 7px;
    font-size: 0.95rem;
}

/* ── Staff filter list ───────────────────────────── */
.staff-filter-list {
    display: flex; flex-direction: column; gap: 5px;
    max-height: 260px; overflow-y: auto;
}

.staff-filter-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
}

.staff-filter-item .staff-avatar { width: 30px; height: 30px; font-size: 0.75rem; }
.staff-filter-item label { flex: 1; margin: 0; font-size: 0.86rem; cursor: pointer; color: var(--text-main); }
.staff-filter-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

/* ── Toggle row ──────────────────────────────────── */
.toggle-row {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-bottom: 14px; padding: 9px 11px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.toggle-row label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: var(--text-main); cursor: pointer; margin: 0;
}

/* ── Work hours table ────────────────────────────── */
.work-hours-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.work-hours-table th,
.work-hours-table td {
    padding: 0.62rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}

.work-hours-table th {
    background: rgba(255,255,255,0.03);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.work-hours-table td .total-hours { font-weight: 600; color: var(--primary); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .shift-grid-header,
    .shift-grid-row {
        grid-template-columns: 155px repeat(var(--day-count, 7), minmax(115px, 1fr));
    }

    .shift-block { font-size: 0.70rem; padding: 5px 7px; }
    .shift-toolbar { font-size: 0.83rem; }
    .shift-popover-modal { width: 96vw; padding: 15px; }
    .suggested-ranges { grid-template-columns: 1fr; }
}

/* ── Boş hücre + hint ────────────────────────────── */
.shift-cell:not(:has(.shift-block)):hover::after {
    content: '+';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(201, 100, 66, 0.30);
    pointer-events: none;
}

/* ── Staff hours badge ───────────────────────────── */
.staff-hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.67rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 1px 6px;
    border-radius: 999px;
    margin-top: 3px;
}

/* ── Undo toast ──────────────────────────────────── */
.shift-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9997;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 11px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    animation: toastIn 0.22s var(--easing-spring);
    white-space: nowrap;
    font-size: 0.84rem;
    color: var(--text-main);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.shift-toast .toast-undo {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(201,100,66,0.25);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}

.shift-toast .toast-undo:hover {
    background: rgba(201,100,66,0.18);
}

/* ─── Haftalık Program Modalı ─────────────────────── */
.weekly-modal {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: min(680px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.weekly-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.weekly-modal-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0,0,0,.15);
}

.weekly-modal-body {
  overflow-y: auto;
  padding: 8px 0;
}

.weekly-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.weekly-row:last-child { border-bottom: none; }
.weekly-row.is-holiday { background: rgba(239,68,68,.06); }

.weekly-day {
  display: flex;
  flex-direction: column;
  min-width: 64px;
}
.weekly-day .day-name { font-weight: 600; font-size: .85rem; text-transform: capitalize; }
.weekly-day .day-date { font-size: .75rem; color: var(--text-muted); }

.weekly-time-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.weekly-hours { min-width: 32px; }

.weekly-off-label {
  flex: 1;
  font-size: .85rem;
  font-style: italic;
}

.weekly-row-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.preset-chip {
  padding: 2px 8px;
  font-size: .72rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: all .15s;
}
.preset-chip:hover { background: rgba(255,255,255,.1); }
.preset-chip.active {
  background: var(--primary, #5B5FC7);
  border-color: var(--primary, #5B5FC7);
  color: #fff;
}

.weekly-off-btn { flex-shrink: 0; font-size: .72rem; padding: 2px 8px; }

.weekly-modal-footer {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,.15);
}

.staff-name-link { cursor: pointer; text-decoration: underline dotted; }
.staff-name-link:hover { color: var(--primary, #5B5FC7); }
