/* ===== Work24 / ShiftTakip ===== */
:root {
    --font: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    --navy: #0b1220;
    --navy-2: #111a2c;
    --sb-text: #c5ccda;
    --sb-muted: #6b7690;
    --bg: #eaf4fb;
    --card: #ffffff;
    --line: #d2e7f6;
    --text: #0c2b48;
    --muted: #56738f;
    --blue: #0284c7;
    --green: #10b981;
    --grad: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    --danger: #e11d48;
    --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12px; margin-top: 12px; }
.mt { margin-top: 18px; }

.logo-mark {
    display: inline-block; font-weight: 800; margin-right: 1px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ================= AUTH (Buz Mavisi / Ice Blue) ================= */
.auth-body {
    min-height: 100vh;
    background: #e6f3fc;
    background: radial-gradient(130% 120% at 50% 0%, #f4faff 0%, #e0f2fe 35%, #cfe7f8 70%, #b8def6 100%);
    color: #0f2842;
    overflow-x: hidden;
    position: relative;
}
.auth-bg {
    position: fixed; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(2, 132, 199, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 132, 199, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 45%, transparent 85%);
}
.auth-glow { position: fixed; border-radius: 50%; filter: blur(95px); pointer-events: none; animation: float 12s ease-in-out infinite; }
.auth-glow.g1 { width: 540px; height: 540px; left: -140px; top: -140px; background: rgba(56, 189, 248, .42); }
.auth-glow.g2 { width: 480px; height: 480px; right: -120px; bottom: -140px; background: rgba(14, 165, 233, .32); animation-delay: -6s; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.auth-wrap {
    position: relative; z-index: 1; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px;
}
.auth-logo {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; margin-bottom: 22px; letter-spacing: -.6px;
    color: #0c4a6e; text-decoration: none;
}
.auth-logo .logo-mark {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-weight: 800;
}
.auth-logo .logo-name {
    color: #0c4a6e;
    font-weight: 800;
}
.auth-logo .logo-tld {
    color: #0284c7; font-weight: 700; font-size: 22px; opacity: .92;
}
.auth-logo sup, .sb-logo sup { font-size: 10px; color: #0284c7; }
.auth-card {
    width: 100%; max-width: 370px; padding: 34px 28px 28px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(12, 74, 110, 0.14), 0 0 0 1px rgba(186, 230, 253, 0.65), inset 0 1px 2px rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: rise .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: #0c4a6e; }
.auth-sub { color: #526b83; font-size: 13.5px; line-height: 1.55; margin: 8px 0 22px; }

.seg {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px;
    background: #e2f1fc; border: 1px solid #cbe4f7; border-radius: 12px; margin-bottom: 20px;
}
.seg-btn {
    position: relative; z-index: 1; padding: 9px; font-size: 13px; font-weight: 700;
    color: #526b83; border-radius: 9px; transition: color .2s;
}
.seg-btn.active { color: #0284c7; }
.seg-indicator {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    background: #ffffff; border-radius: 9px; transition: transform .3s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 2px 8px rgba(12, 74, 110, 0.12);
}
.seg-btn[data-mode="phone"].active ~ .seg-indicator { transform: translateX(100%); }

.f-label { display: block; font-size: 13px; font-weight: 700; color: #1e3a5f; margin: 14px 0 7px; }
.f-input {
    width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
    background: #ffffff; border: 1px solid #c7e2f5; color: #0c4a6e; font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.f-input::placeholder { color: #8faec7; }
.f-input:focus {
    outline: none; border-color: #0284c7;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.18);
}
.pw-wrap { position: relative; }
.pw-wrap .f-input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #64748b; padding: 4px; }
.pw-toggle:hover { color: #0284c7; }
.forgot-row { text-align: right; margin: 12px 0 16px; }
.forgot-row a { font-size: 12.5px; font-weight: 700; color: #0284c7; }
.forgot-row a:hover { color: #0369a1; text-decoration: underline; }

.btn-gradient {
    display: block; width: 100%; height: 44px; line-height: 44px; text-align: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff; font-weight: 700; font-size: 14.5px; border-radius: 12px;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.32);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-gradient:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(2, 132, 199, 0.42); }
.btn-gradient:active { transform: translateY(0); }
.auth-or { text-align: center; color: #64748b; font-size: 13px; margin: 16px 0 10px; }
.btn-trial {
    display: block; height: 42px; line-height: 40px; text-align: center; border-radius: 12px;
    background: #eff8ff; border: 1.5px solid #bae6fd; color: #0284c7; font-weight: 700; font-size: 13.5px;
    transition: all .2s;
}
.btn-trial:hover { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; transform: translateY(-1px); }
.auth-link { display: block; text-align: center; font-size: 13px; font-weight: 600; margin-top: 16px; color: #64748b; }
.auth-link:hover { color: #0284c7; }
.auth-link.inline { display: inline; margin: 0; color: #0284c7; }
.auth-chips { display: flex; gap: 10px; margin-top: 24px; }
.auth-chips span {
    padding: 9px 26px; font-size: 12.5px; font-weight: 600; color: #225177;
    border-radius: 12px; border: 1px solid rgba(255,255,255,.9);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 6px 18px rgba(12, 74, 110, 0.06);
    backdrop-filter: blur(10px);
}
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; font-weight: 500; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.install-log { margin: 18px 0; padding-left: 20px; color: #1e3a5f; font-size: 13.5px; line-height: 1.9; }
.install-log li { margin-bottom: 6px; }

/* ================= APP ================= */
.app-body { background: var(--bg); display: flex; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: 198px;
    background: linear-gradient(180deg, #dcf0fb 0%, #cee6f7 50%, #c2dff5 100%);
    color: #174266;
    border-right: 1px solid #b8daf0;
    box-shadow: 2px 0 16px rgba(12, 74, 110, 0.06);
    display: flex; flex-direction: column; z-index: 40; transition: transform .3s ease;
}
.sb-logo { display: block; padding: 10px 12px 3px; font-size: 17px; font-weight: 800; color: #0c4a6e; }
.sb-nav { flex: 1; overflow-y: auto; padding: 0 5px 12px; }
.sb-nav::-webkit-scrollbar { width: 3px; }
.sb-nav::-webkit-scrollbar-thumb { background: #b8daf0; border-radius: 3px; }
.sb-group { font-size: 9px; font-weight: 800; letter-spacing: 0.9px; color: #477399; padding: 4px 6px 1px; margin-top: 3px; }
.sb-item {
    display: flex; align-items: center; gap: 7.5px; padding: 2.5px 6px; margin: 0.5px 0;
    font-size: 11.5px; font-weight: 600; color: #1e4569; border-radius: 6px; transition: background .15s, color .15s;
    line-height: 1.15;
}
.sb-item:hover { background: rgba(255,255,255,.7); color: #0284c7; }
.sb-item.active {
    background: #ffffff; color: #0284c7;
    box-shadow: 0 2px 6px rgba(12, 74, 110, 0.1), inset 2.5px 0 0 #0284c7;
}

/* 3D Renkli Sidebar İkonları (Canlı, Parlak ve Derinlikli) */
.sb-icon-3d {
    width: 23px; height: 23px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
    box-shadow: 0 3px 6px rgba(12,74,110,.22), 0 1px 2px rgba(0,0,0,.1), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.2);
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.sb-icon-3d svg {
    width: 13px; height: 13px; color: #ffffff !important; stroke: #ffffff !important; opacity: 1 !important;
    filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35));
}
.sb-item:hover .sb-icon-3d {
    transform: translateY(-1.5px) scale(1.1);
    box-shadow: 0 5px 10px rgba(12,74,110,.3), inset 0 1.5px 1.5px rgba(255,255,255,.8);
}
.sb-item.active .sb-icon-3d {
    transform: scale(1.04);
    box-shadow: 0 4px 8px rgba(12,74,110,.35), inset 0 1.5px 1.5px rgba(255,255,255,.9);
}

.sb-ic-dashboard      { background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%); }
.sb-ic-organization   { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.sb-ic-departments    { background: linear-gradient(135deg, #34d399 0%, #047857 100%); }
.sb-ic-employee-types { background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%); }
.sb-ic-employees      { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); }
.sb-ic-company        { background: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%); }
.sb-ic-roles          { background: linear-gradient(135deg, #fb7185 0%, #be123c 100%); }
.sb-ic-shifts-group   { background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%); }
.sb-ic-shifts         { background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%); }
.sb-ic-bulk-shift     { background: linear-gradient(135deg, #a3e635 0%, #4d7c0f 100%); }
.sb-ic-shift-calendar { background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%); }
.sb-ic-my-shift       { background: linear-gradient(135deg, #facc15 0%, #b45309 100%); }
.sb-ic-locations      { background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%); }
.sb-ic-operations     { background: linear-gradient(135deg, #818cf8 0%, #4338ca 100%); }
.sb-ic-events         { background: linear-gradient(135deg, #818cf8 0%, #4338ca 100%); }
.sb-ic-requests       { background: linear-gradient(135deg, #c084fc 0%, #6b21a8 100%); }
.sb-ic-activity-log   { background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%); }
.sb-ic-notifications  { background: linear-gradient(135deg, #f472b6 0%, #be185d 100%); }
.sb-ic-timesheet      { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.sb-ic-payroll        { background: linear-gradient(135deg, #38bdf8 0%, #1e40af 100%); }
.sb-ic-payslip        { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.sb-ic-erp-export     { background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%); }
.sb-ic-account-group  { background: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%); }
.sb-ic-account        { background: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%); }
.sb-ic-support        { background: linear-gradient(135deg, #14b8a6 0%, #0e7490 100%); }
.sb-overlay { display: none; }

/* ================= SIDEBAR FLYOUT MENÜ (HOVER SAĞ MENÜ) ================= */
.sb-item-wrap {
    position: relative;
}
.sb-item-wrap.has-flyout .sb-item {
    padding-right: 4px;
}
.sb-flyout-arrow {
    margin-left: auto;
    color: #477399;
    opacity: 0.6;
    transition: transform .2s ease, opacity .2s ease, color .2s ease;
    flex-shrink: 0;
}
.sb-item:hover .sb-flyout-arrow,
.sb-item-wrap.has-flyout:hover .sb-flyout-arrow {
    opacity: 1;
    transform: translateX(2.5px);
    color: #0284c7;
}

.sb-flyout-panel {
    position: fixed;
    left: 196px;
    width: 308px;
    background: #ffffff;
    border: 1px solid #b8daf0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(12, 74, 110, 0.18), 0 3px 10px rgba(12, 74, 110, 0.08);
    padding: 8px;
    display: none;
    z-index: 99999;
    pointer-events: auto;
}
.sb-flyout-panel.is-open {
    display: block;
}
.sb-flyout-panel.pinned {
    border-color: #0284c7;
    box-shadow: 0 20px 48px rgba(2, 132, 199, 0.22), 0 4px 12px rgba(12, 74, 110, 0.12);
}
.sb-flyout-panel::before {
    content: '';
    position: absolute;
    top: -20px;
    bottom: -20px;
    left: -25px;
    width: 30px;
    pointer-events: auto;
    background: transparent;
}
.sb-item-wrap.has-flyout.flyout-active > .sb-item {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 6px rgba(12, 74, 110, 0.1), inset 2.5px 0 0 #0284c7;
}
.sb-item-wrap.has-flyout.flyout-active .sb-flyout-arrow {
    transform: translateX(3px);
    color: #0284c7;
    opacity: 1;
}

.sb-flyout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 5px;
}
.sb-flyout-head-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0c4a6e;
}
.sb-flyout-head-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0284c7;
}

.sb-flyout-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sb-flyout-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 10px;
    border-radius: 9px;
    text-decoration: none;
    color: #1e4569;
    transition: all 0.16s ease;
    border: 1px solid transparent;
}
.sb-flyout-link:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0284c7;
    transform: translateX(3px);
}
.sb-flyout-link.active {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
    font-weight: 700;
}
/* 3D Renkli Mega Flyout Sağ Menü İkonları */
.sb-flyout-ic {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 4px 10px rgba(12, 74, 110, 0.22), 
                0 1px 2px rgba(0, 0, 0, 0.08), 
                inset 0 1.5px 1.5px rgba(255, 255, 255, 0.65), 
                inset 0 -1.5px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.sb-flyout-ic svg {
    width: 16px;
    height: 16px;
    color: #ffffff !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.sb-flyout-link:hover .sb-flyout-ic {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 18px rgba(12, 74, 110, 0.28), 
                inset 0 2px 2px rgba(255, 255, 255, 0.8), 
                inset 0 -1.5px 2px rgba(0, 0, 0, 0.3);
}
.sb-flyout-link.active .sb-flyout-ic {
    transform: scale(1.04);
    box-shadow: 0 5px 12px rgba(12, 74, 110, 0.35), 
                inset 0 1.5px 1.5px rgba(255, 255, 255, 0.8);
}

/* Modül Bazlı Özel 3D Canlı Renk Paletleri */
/* Kadro & Organizasyon */
.sb-flyout-ic-employees        { background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%); box-shadow: 0 4px 10px rgba(37,99,235,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-departments      { background: linear-gradient(135deg, #34d399 0%, #059669 100%); box-shadow: 0 4px 10px rgba(5,150,105,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-employee-types   { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); box-shadow: 0 4px 10px rgba(217,119,6,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-roles            { background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%); box-shadow: 0 4px 10px rgba(225,29,72,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-company          { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); box-shadow: 0 4px 10px rgba(124,58,237,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }

/* Vardiya & Mesai Planı */
.sb-flyout-ic-shifts           { background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%); box-shadow: 0 4px 10px rgba(15,118,110,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-shift-calendar   { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); box-shadow: 0 4px 10px rgba(2,132,199,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-bulk-shift       { background: linear-gradient(135deg, #a3e635 0%, #4d7c0f 100%); box-shadow: 0 4px 10px rgba(77,124,15,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-my-shift         { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 4px 10px rgba(217,119,6,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }

/* Saha & Lokasyon Sistemleri */
.sb-flyout-ic-locations        { background: linear-gradient(135deg, #f87171 0%, #dc2626 100%); box-shadow: 0 4px 10px rgba(220,38,38,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-location-tracking{ background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); box-shadow: 0 4px 10px rgba(37,99,235,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-nfc-terminal     { background: linear-gradient(135deg, #818cf8 0%, #4338ca 100%); box-shadow: 0 4px 10px rgba(67,56,202,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-turnstiles       { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); box-shadow: 0 4px 10px rgba(13,148,136,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-mobile-checkin   { background: linear-gradient(135deg, #10b981 0%, #047857 100%); box-shadow: 0 4px 10px rgba(4,120,87,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-cafeteria        { background: linear-gradient(135deg, #fb923c 0%, #c2410c 100%); box-shadow: 0 4px 10px rgba(194,65,12,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-visitors         { background: linear-gradient(135deg, #f472b6 0%, #be185d 100%); box-shadow: 0 4px 10px rgba(190,24,93,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-mobile-app       { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); box-shadow: 0 4px 10px rgba(3,105,161,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }

/* Operasyon & Hareket */
.sb-flyout-ic-events           { background: linear-gradient(135deg, #818cf8 0%, #4338ca 100%); box-shadow: 0 4px 10px rgba(67,56,202,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-requests         { background: linear-gradient(135deg, #c084fc 0%, #7e22ce 100%); box-shadow: 0 4px 10px rgba(126,34,206,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-sms-notifications{ background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); box-shadow: 0 4px 10px rgba(21,128,61,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-notifications    { background: linear-gradient(135deg, #f472b6 0%, #db2777 100%); box-shadow: 0 4px 10px rgba(219,39,119,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-activity-log     { background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%); box-shadow: 0 4px 10px rgba(3,105,161,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }

/* Raporlar & Puantaj */
.sb-flyout-ic-timesheet        { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 10px rgba(5,150,105,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-payroll          { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); box-shadow: 0 4px 10px rgba(29,78,216,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-payslip          { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); box-shadow: 0 4px 10px rgba(180,83,9,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-erp-export       { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); box-shadow: 0 4px 10px rgba(109,40,217,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }

/* Hesap & Destek */
.sb-flyout-ic-account          { background: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%); box-shadow: 0 4px 10px rgba(29,78,216,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-mail-settings    { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); box-shadow: 0 4px 10px rgba(8,145,178,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }
.sb-flyout-ic-support          { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); box-shadow: 0 4px 10px rgba(194,65,12,.25), inset 0 1.5px 1.5px rgba(255,255,255,.65), inset 0 -1.5px 2px rgba(0,0,0,.25); }

.sb-flyout-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.sb-flyout-item-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.sb-flyout-link:hover .sb-flyout-item-title {
    color: #0284c7;
}
.sb-flyout-item-desc {
    font-size: 10px;
    color: #64748b;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-flyout-item-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #475569;
    margin-left: auto;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
.sb-flyout-item-badge.pulse {
    background: #dcfce7;
    color: #15803d;
}
.sb-flyout-link.active .sb-flyout-item-badge {
    background: #bae6fd;
    color: #0369a1;
}

.sb-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sb-close-btn {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    color: #0c4a6e;
    cursor: pointer;
    background: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    transition: background 0.2s;
}
.sb-close-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 960px) {
    .sb-close-btn {
        display: inline-flex !important;
    }
    .sb-flyout-panel {
        display: none !important;
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #bae6fd !important;
        background: #f0f9ff !important;
        border-radius: 10px !important;
        margin-top: 4px !important;
        padding: 6px !important;
    }
    .sb-item-wrap.has-flyout.mobile-open .sb-flyout-panel {
        display: block !important;
    }
    .sb-flyout-arrow {
        display: inline-block !important;
        transition: transform 0.2s ease;
        padding: 4px;
        opacity: 0.8;
    }
    .sb-item-wrap.has-flyout.mobile-open .sb-flyout-arrow {
        transform: rotate(90deg);
        color: #0284c7;
    }
}

.main {
    flex: 1; margin-left: 198px; min-width: 0; transition: margin .3s ease;
    background: radial-gradient(130% 90% at 85% 0%, #f4faff 0%, #eaf4fb 55%, #e1eff9 100%);
    min-height: 100vh;
}
.sb-collapsed .sidebar { transform: translateX(-100%); }
.sb-collapsed .main { margin-left: 0; }

.topbar {
    height: 52px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
    position: sticky; top: 0; z-index: 30;
}
.tb-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
    border: 1px solid var(--line); color: var(--text); background: #fff; transition: all .2s;
}
.icon-btn:hover { background: #e0f2fe; border-color: #bae6fd; color: #0284c7; }
.icon-btn.ghost { border-color: transparent; }
.lang-dropdown-wrapper { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer;
    background: #fff; color: var(--text); transition: all .2s;
}
.lang-btn:hover { background: #f0f8fd; border-color: #bae6fd; }
.lang-code { font-size: 10px; font-weight: 700; background: #e0f2fe; color: #0369a1; padding: 3px 5px; border-radius: 5px; }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 145px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(12,74,110,.14);
    padding: 5px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; z-index: 55;
    display: flex; flex-direction: column; gap: 3px;
}
.lang-menu.show { opacity: 1; visibility: visible; transform: none; }
.lang-item {
    display: flex; align-items: center; gap: 9px; padding: 8px 10px; font-size: 12.5px; font-weight: 600;
    border-radius: 8px; color: var(--text); text-decoration: none; transition: background .15s, color .15s;
}
.lang-item:hover { background: #f0f8fd; color: #0284c7; }
.lang-item.active { background: #e0f2fe; color: #0369a1; font-weight: 700; }

.user-box { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-meta { text-align: right; line-height: 1.2; }
.user-meta strong { display: block; font-size: 12.5px; color: #0c4a6e; }
.user-meta small { font-size: 11px; color: var(--muted); }
.avatar {
    width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.user-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(12,74,110,.12);
    padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; z-index: 50;
}
.user-box.open .user-menu { opacity: 1; visibility: visible; transform: none; }
.user-menu a { display: flex; align-items: center; padding: 8px 10px; font-size: 13px; border-radius: 7px; color: var(--text); }
.user-menu a:hover { background: #f0f8fd; color: #0284c7; }

.content { padding: 22px 24px 60px; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: #0c4a6e; }
.page-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }

.btn-dark {
    height: 34px; padding: 0 16px; background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #fff; font-size: 12.5px; font-weight: 700;
    border-radius: 9px; transition: transform .15s, box-shadow .2s, filter .2s;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.btn-dark:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38); }
.btn-light { height: 34px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 600; background: #fff; color: #0c4a6e; transition: all .2s; }
.btn-light:hover { background: #f0f8fd; border-color: #0284c7; color: #0284c7; }
.btn-danger { height: 34px; padding: 0 18px; background: var(--danger); color: #fff; border-radius: 9px; font-size: 13px; font-weight: 700; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-full-dark {
    width: 100%; height: 42px; background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: #fff; font-weight: 700; font-size: 14px;
    border-radius: 10px; margin-top: 20px; transition: filter .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.btn-full-dark:hover { filter: brightness(1.1); box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38); }
.btn-text-green { color: #059669; font-weight: 700; font-size: 13px; }
.btn-text-green:hover { text-decoration: underline; }

.card {
    background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: 0 4px 20px -2px rgba(12,74,110,.05), 0 1px 3px rgba(12,74,110,.03); overflow: hidden;
}
.card.pad { padding: 20px 22px; }
.card-tools { display: flex; justify-content: flex-end; padding: 10px 12px 6px; }
.btn-excel {
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
    font-size: 12px; font-weight: 700; color: #0284c7; background: #e0f2fe; border: 1px solid #bae6fd; border-radius: 8px;
    transition: background .2s, transform .15s;
}
.btn-excel:hover { background: #bae6fd; transform: translateY(-1px); }

/* Tablolar */
.table-wrap { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dtable thead { background: #eef7fc; }
.dtable th {
    text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; color: #0c4a6e;
    padding: 12px 12px 8px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
.filter-row td { padding: 0 12px 10px; border-bottom: 1px solid var(--line); background: #f8fcfe; }
.flt {
    width: 100%; height: 28px; padding: 0 8px; font-size: 11.5px; border: 1px solid #cfe5f6; border-radius: 6px;
    background: #fff; color: #0c4a6e; transition: border-color .2s;
}
.flt:focus { outline: none; border-color: #0284c7; }
.dtable tbody td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tbody tr:hover { background: #f0f8fd; }
.muted-cell { color: #56738f; }
.actions { white-space: nowrap; }
.act { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; color: #4b556a; transition: background .15s; }
.act:hover { background: #eef2ff; color: #4338ca; }
.act.del { color: var(--danger); }
.act.del:hover { background: #fff1f3; }
.empty { text-align: center; color: var(--muted); padding: 40px 0 !important; }

.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 12px; color: #4b556a; }
.pager { display: flex; align-items: center; gap: 6px; }
.pg-btn { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 11.5px; }
.pg-btn.disabled { color: #c3c9d4; pointer-events: none; }
.pg-info { font-size: 11.5px; padding: 0 4px; }

/* Modallar */
.modal {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
    background: rgba(11,18,32,.5); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-card {
    width: 100%; max-width: 500px; background: #fff; border-radius: 18px;
    box-shadow: 0 30px 80px rgba(11,18,32,.3); transform: translateY(12px); transition: transform .25s;
}
.modal-card.sm { max-width: 400px; }
.modal-card.lg { max-width: 660px; }
.modal.show .modal-card { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 6px; }
.modal-head h2 { font-size: 18px; font-weight: 800; }
.modal-x { font-size: 24px; line-height: 1; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; }
.modal-x:hover { background: #f4f6fa; color: var(--text); }
.modal-body { padding: 10px 22px 16px; }
.m-label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 6px; }
.req { color: var(--danger); }
.m-input {
    width: 100%; height: 38px; padding: 0 12px; border: 1px solid #d9dee8; border-radius: 9px; font-size: 13.5px;
    background: #fff; transition: border-color .2s;
}
textarea.m-input { height: auto; padding: 10px 12px; }
.m-input:focus { outline: none; border-color: #2fb98a; box-shadow: 0 0 0 3px rgba(47,185,138,.15); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 20px; }

/* Grid Düzenleri */
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Bildirim Kutusu (Toast) */
.toast {
    position: fixed; right: 22px; bottom: 22px; z-index: 200; padding: 12px 18px; border-radius: 12px;
    background: var(--navy); color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 16px 40px rgba(11,18,32,.3); border-left: 4px solid var(--green);
    opacity: 0; transform: translateY(14px); pointer-events: none; transition: .3s;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--blue); }

/* ================= ÖZEL BİLEŞENLER ================= */

/* Kullanıcı Limiti Kartı */
.limit-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px; display: flex; gap: 16px; align-items: center; margin-bottom: 14px;
}
.limit-icon {
    width: 44px; height: 44px; border-radius: 12px; background: #ecfdf5;
    display: grid; place-items: center; flex-shrink: 0;
}
.limit-body { flex: 1; }
.limit-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.limit-fraction { font-size: 16px; font-weight: 800; color: #0c4a6e; }
.progress-bar { width: 100%; height: 6px; background: #e0f2fe; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: #10b981; border-radius: 6px; transition: width .4s ease; }
.limit-desc { font-size: 12px; color: var(--muted); }

/* İstatistik Kutucukları */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
    box-shadow: 0 4px 16px rgba(12, 74, 110, 0.04);
}
.stat-card span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-card strong { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; color: #0c4a6e; }

.info-notice {
    font-size: 12px; color: #64748b; line-height: 1.5; margin-bottom: 14px;
}

/* Tablo Hücre Rozetleri */
.emp-cell { display: flex; align-items: center; gap: 10px; }
.avatar-tag {
    width: 32px; height: 32px; border-radius: 50%; background: #e0f2fe; color: #0284c7;
    display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.emp-name { display: flex; align-items: center; gap: 6px; }
.badge-you {
    font-size: 10.5px; font-weight: 700; background: #ecfdf5; color: #059669;
    padding: 1px 6px; border-radius: 6px; border: 1px solid #a7f3d0;
}
.badge-owner {
    font-size: 10.5px; font-weight: 700; background: #eff6ff; color: #2563eb;
    padding: 1px 6px; border-radius: 6px; border: 1px solid #bfdbfe;
}
.dep-pill {
    display: inline-block; font-size: 11.5px; color: #0369a1; background: #f0f9ff;
    padding: 3px 8px; border-radius: 6px; border: 1px solid #e0f2fe;
}
.status-badge {
    display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.status-badge.active { background: #ecfdf5; color: #059669; }
.status-badge.inactive { background: #f1f5f9; color: #64748b; }
.status-badge.pending { background: #fef3c7; color: #d97706; }
.status-badge.approved { background: #ecfdf5; color: #059669; }
.status-badge.rejected { background: #ffe4e6; color: #e11d48; }

.role-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.role-badge.manager { background: #ecfdf5; color: #059669; }
.role-badge.employee { background: #eff6ff; color: #2563eb; }
.role-badge.none { background: #f1f5f9; color: #64748b; }

.qr-pill {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-family: monospace;
    background: #f8fafc; border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; cursor: pointer;
}
.qr-pill:hover { background: #eef2f6; }

/* Şirket Ayarları & Sekmeler */
.tabs-nav { display: flex; gap: 6px; margin-bottom: 14px; }
.tab-btn {
    padding: 8px 16px; font-size: 13px; font-weight: 700; border-radius: 9px;
    background: #fff; border: 1px solid var(--line); color: var(--text); transition: .2s;
}
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.settings-box {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; margin-bottom: 14px;
}
.settings-box-title { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #94a3b8; margin-bottom: 12px; }

.timezone-row { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.clock-display-card {
    background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 18px; text-align: center; min-width: 170px;
}
.clock-title { font-size: 9.5px; font-weight: 800; letter-spacing: .8px; color: #94a3b8; display: block; }
.digital-clock { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin: 4px 0; font-family: monospace; }

/* Switch / Toggle */
.switch-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0; background-color: #cbd5e1;
    transition: .25s; border-radius: 24px;
}
.slider:before {
    position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
    background-color: white; transition: .25s; border-radius: 50%;
}
input:checked + .slider { background-color: #10b981; }
input:checked + .slider:before { transform: translateX(20px); }

/* Hap Filtreler (Rol Atama) */
.filter-pills-row { display: flex; gap: 6px; margin: 12px 0; }
.f-pill {
    padding: 6px 14px; font-size: 12px; font-weight: 700; border-radius: 8px;
    background: #fff; border: 1px solid var(--line); color: var(--text);
}
.f-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Vardiya Gün Tablosu (Modal İçi) */
.shift-days-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.shift-days-table th { text-align: left; padding: 6px 8px; color: #64748b; font-size: 11px; }
.shift-days-table td { padding: 6px 8px; }
.custom-check { display: inline-flex; align-items: center; cursor: pointer; }
.custom-check input { width: 16px; height: 16px; cursor: pointer; }

/* Toplu Vardiya */
.bulk-header-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bulk-filters-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: flex-end; }
.bulk-list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.bulk-item { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bulk-item.all { background: #f8fafc; border-radius: 8px; margin-bottom: 6px; }

/* Vardiya Takvimi */
.calendar-filter-bar {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 18px; display: flex; gap: 16px; align-items: flex-end; margin-bottom: 14px;
    box-shadow: 0 4px 18px rgba(12, 74, 110, 0.05);
}
.week-picker-box {
    display: flex; align-items: center; justify-content: space-between; height: 38px;
    background: #f0f8fd; border: 1px solid #cce4f7; border-radius: 9px; padding: 0 8px;
}
.arrow-btn { padding: 4px 8px; font-size: 14px; border-radius: 6px; color: #0c4a6e; }
.arrow-btn:hover { background: #dff0fc; color: #0284c7; }
.week-text { text-align: center; line-height: 1.1; }
.week-text strong { color: #0c4a6e; }
.this-week-badge {
    font-size: 11px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    padding: 3px 8px; border-radius: 6px; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}
.legend-row { display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; margin: 12px 0; color: #476482; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.work { background: #10b981; }
.dot.off { background: #ef4444; }
.dot.leave { background: #f59e0b; }
.dot.holiday { background: #3b82f6; }
.dot.overtime { background: #8b5cf6; }
.dot.missing { background: #f97316; }
.dot.no-entry { background: #94a3b8; }
.dot.late { background: #eab308; }
.dot.multi { background: #06b6d4; }
.dot.fixed { background: #6366f1; }
.week-title-badge {
    font-size: 13px; font-weight: 700; color: #0369a1; background: #e0f2fe;
    border: 1px solid #bae6fd; display: inline-block; padding: 6px 14px; border-radius: 8px; margin-bottom: 12px;
}

.cal-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; }
.cal-table th { padding: 12px 10px; background: #eef7fc; border: 1px solid var(--line); font-size: 11.5px; color: #0c4a6e; font-weight: 700; }
.cal-table td { padding: 14px 8px; border: 1px solid var(--line); }
.cal-day-cell { cursor: pointer; transition: background .15s; }
.cal-day-cell:hover { background: #f0f8fd; }
.shift-time-badge { font-size: 11px; font-weight: 700; color: #0369a1; background: #e6f4fc; border: 1px solid #c7e5f8; padding: 4px 8px; border-radius: 6px; }
.shift-off-badge { font-size: 11px; font-weight: 700; color: #ef4444; background: #fee2e2; border: 1px solid #fecaca; padding: 4px 8px; border-radius: 6px; }

/* Vardiyam */
.my-shift-top-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.date-range-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.active-tag { font-size: 11px; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; }
.actions-group-right { margin-left: auto; display: flex; gap: 14px; }
.btn-link { font-size: 13px; font-weight: 700; color: #64748b; }
.btn-link:hover { color: var(--text); }
.shift-hero-card {
    background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius);
    padding: 18px 24px; margin-bottom: 16px;
}
.hero-sub { font-size: 11px; font-weight: 800; color: #059669; letter-spacing: 1px; }
.hero-dates { font-size: 24px; font-weight: 800; color: #064e3b; margin-top: 4px; }

.days-cards-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 12px; text-align: left;
}
.day-card.today-highlight { border-color: #38bdf8; background: #f0f9ff; }
.day-name { font-size: 12px; font-weight: 700; color: #64748b; }
.day-date { font-size: 11px; color: var(--muted); margin: 6px 0 14px; display: flex; justify-content: space-between; align-items: center; }
.today-tag { font-size: 9.5px; font-weight: 800; color: #0284c7; background: #e0f2fe; padding: 1px 5px; border-radius: 4px; }
.day-hours { font-size: 12.5px; font-weight: 800; color: #0f172a; }

/* Puantaj Raporu */
.timesheet-filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.ts-row-1 { display: flex; gap: 12px; margin-bottom: 12px; }
.ts-row-2 { display: flex; gap: 12px; align-items: flex-end; }
.month-selector {
    display: flex; align-items: center; justify-content: space-between; height: 38px;
    background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
}
.ts-switch-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding-bottom: 6px; }
.ts-actions { margin-left: auto; display: flex; gap: 8px; }
.timesheet-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 10px; }
.timesheet-grid-table th { border: 1px solid var(--line); }
.th-today { background: #0f172a !important; color: #fff !important; }
.ts-cell { text-align: center; border: 1px solid var(--line); cursor: pointer; padding: 8px 4px !important; }
.ts-cell:hover { background: #f1f5f9; }
.badge-none { font-size: 10px; color: #94a3b8; }

/* Hesabım */
.balance-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px; display: inline-flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.circle-badge {
    width: 38px; height: 38px; border-radius: 50%; border: 3px solid #38bdf8; color: #0284c7;
    display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.trial-banner-card {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius);
    padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.subscription-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.trial-tag { font-size: 11.5px; font-weight: 700; color: #2563eb; background: #eff6ff; padding: 4px 10px; border-radius: 6px; }
.sub-meta-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.activity-filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }

/* ================= PAKET SEÇİN MODALI ================= */
.package-cards-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px;
}
.plan-card {
    position: relative; border: 1px solid #d9dee8; border-radius: 14px; padding: 18px 14px;
    background: #fff; cursor: pointer; transition: all .2s ease;
}
.plan-card:hover { border-color: #94a3b8; }
.plan-card.selected {
    border: 2px solid #10b981; background: #f0fdf4;
}
.plan-badge-selected {
    position: absolute; top: -10px; left: 14px; font-size: 10.5px; font-weight: 800;
    background: #10b981; color: #fff; padding: 2px 8px; border-radius: 6px;
}
.plan-name { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.plan-price { font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.plan-price small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.plan-feature { font-size: 12px; color: var(--muted); font-weight: 600; }

.counter-box {
    display: inline-flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px;
    overflow: hidden; background: #fff; height: 38px;
}
.counter-btn {
    width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px; font-weight: 700;
    color: #475569; background: #f8fafc; transition: background .15s;
}
.counter-btn:hover { background: #e2e8f0; }
.counter-val {
    min-width: 44px; text-align: center; font-size: 15px; font-weight: 800; color: #0f172a;
}
.payment-total-row {
    display: flex; justify-content: space-between; align-items: center; padding-top: 14px;
    border-top: 1px solid var(--line); font-size: 15px; font-weight: 600;
}
.payment-total-row strong { font-size: 20px; font-weight: 800; color: #0f172a; }

/* Responsive */
@media (max-width: 1100px) {
    .days-cards-grid { grid-template-columns: repeat(4, 1fr); }
    .bulk-filters-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); width: 230px; }
    .sidebar.open { transform: none; }
    .sb-overlay.show { display: block; position: fixed; inset: 0; background: rgba(11,18,32,.45); z-index: 35; }
    .main { margin-left: 0; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .f-grid { grid-template-columns: 1fr; }
    .days-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .package-cards-grid { grid-template-columns: 1fr; }
}

/* ================= TIMESHEET TABLOSU & MODAL (Görseller 2, 3, 4) ================= */
.timesheet-header {
    display: flex; justify-content: space-between; align-items: flex-end; padding: 22px 24px 14px;
}
.ts-title-tag { font-size: 11px; font-weight: 700; color: #94a3b8; letter-spacing: 0.8px; text-transform: uppercase; }
.ts-company-title { font-size: 22px; font-weight: 800; color: #0c1a2e; margin-top: 3px; }
.ts-month-pill { font-size: 15px; font-weight: 700; color: #475569; }

.legend-swatches-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 0 24px 16px;
    font-size: 12px; font-weight: 500; color: #475569;
}
.legend-sw-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch {
    width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex-shrink: 0;
}
.sw-checkin  { background: #cbd5e1; }
.sw-leave    { background: #93c5fd; }
.sw-holiday  { background: #94a3b8; }
.sw-overtime { background: #86efac; }
.sw-missing  { background: #fca5a5; }
.sw-no-entry { background: #e2e8f0; }
.sw-late     { background: #f59e0b; width: 10px; height: 3px; border-radius: 2px; }
.sw-multi    { background: #0d9488; }
.sw-fixed    { background: #2563eb; width: 9px; height: 9px; border-radius: 50%; }

.timesheet-grid-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
}
.timesheet-grid-table th {
    padding: 8px 3px; text-align: center; border: 1px solid #e2eff8; background: #ffffff;
    font-weight: 600; color: #64748b; vertical-align: middle;
}
.timesheet-grid-table th .th-wday { font-size: 9.5px; font-weight: 700; color: #64748b; }
.timesheet-grid-table th .th-num { font-size: 12.5px; font-weight: 800; color: #0c1a2e; margin-top: 1px; }

/* Bugün Kapsülü (14 ÇAR) */
.th-today-pill {
    padding: 2px 2px !important; background: #ffffff !important;
}
.today-capsule {
    background: #0f172a; color: #ffffff; border-radius: 14px; padding: 5px 6px;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 32px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}
.today-capsule .tc-day { font-size: 8.5px; font-weight: 800; color: #cbd5e1; letter-spacing: 0.5px; }
.today-capsule .tc-num { font-size: 13.5px; font-weight: 800; color: #ffffff; line-height: 1.1; }

.timesheet-grid-table td {
    padding: 12px 6px; border: 1px solid #e2eff8; text-align: center; vertical-align: middle;
}
.emp-cell-flex {
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #0c1a2e; text-align: left;
    padding-left: 6px; white-space: nowrap;
}
.emp-avatar-circle {
    width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #0f172a;
    display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: #0f172a; flex-shrink: 0;
}
.emp-avatar-circle.md { width: 22px; height: 22px; font-size: 11px; }
.emp-avatar-circle.lg { width: 24px; height: 24px; font-size: 12px; }

.badge-ts-yok { font-size: 11.5px; color: #94a3b8; font-weight: 500; }
.ts-cell { cursor: pointer; transition: background .15s; }
.ts-cell:hover { background: #e0f2fe !important; }

/* ================= GÜN DETAY MODALI (Görseller 3 ve 4) ================= */
.day-detail-modal-card {
    width: 100%; max-width: 520px; background: #ffffff; border-radius: 24px;
    box-shadow: 0 30px 80px rgba(12, 74, 110, 0.22); overflow: hidden; padding: 0;
}
.dd-head {
    display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 14px;
}
.dd-emp { display: flex; align-items: center; gap: 10px; }
.dd-emp-name { font-size: 18px; font-weight: 800; color: #0c1a2e; }
.dd-close-btn {
    width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; display: grid; place-items: center;
    border: none; cursor: pointer; color: #64748b; font-size: 20px; line-height: 1; transition: background .2s;
}
.dd-close-btn:hover { background: #e2e8f0; color: #0f172a; }

.dd-scroll-content {
    max-height: calc(85vh - 70px); overflow-y: auto; padding: 0 26px 26px;
}
.dd-sub-bar {
    font-size: 13.5px; margin-bottom: 18px; line-height: 1.4;
}
.dd-sub-status { font-weight: 700; color: #64748b; }
.dd-sub-date { font-weight: 600; color: #64748b; margin-left: 4px; }

.dd-metrics-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px;
}
.dd-metric-item { display: flex; flex-direction: column; }
.dd-m-label { font-size: 12px; font-weight: 600; color: #64748b; }
.dd-m-val { font-size: 18px; font-weight: 800; color: #0c1a2e; margin-top: 3px; }
.dd-m-sub { font-size: 11px; color: #64748b; margin-top: 1px; font-weight: 500; }

.dd-card-box {
    border-radius: 18px; padding: 18px; margin-bottom: 14px;
}
.dd-card-box.pale-green {
    background: #f2f9f5;
}
.dd-card-box.pale-blue {
    background: #edf5fa;
}

.dd-box-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; cursor: pointer;
}
.dd-box-title {
    display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #0c1a2e;
}
.dd-bar-indicator {
    width: 12px; height: 3px; background: #059669; border-radius: 2px;
}
.dd-chevron-btn {
    color: #64748b; display: grid; place-items: center; border: none; background: none; cursor: pointer;
}

.dd-empty-box {
    background: #ffffff; border-radius: 12px; padding: 14px 16px; border: 1px solid #e0ede6;
    color: #334155; font-size: 13px; font-weight: 500;
}
.dd-btn-add-pair {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #059669;
    background: none; border: none; cursor: pointer; margin: 14px 0 12px;
}
.dd-btn-add-pair:hover { text-decoration: underline; }

.dd-form-group { margin-bottom: 12px; }
.dd-label { display: block; font-size: 12.5px; font-weight: 700; color: #0c1a2e; margin-bottom: 6px; }
.dd-select, .dd-input {
    width: 100%; height: 42px; border-radius: 12px; border: 1px solid #d5e1ec; background: #ffffff;
    padding: 0 14px; font-size: 13.5px; color: #0c1a2e; transition: border-color .2s;
}
.dd-select:focus, .dd-input:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,0.12); }
.dd-input::placeholder { color: #94a3b8; }

.dd-actions-row {
    display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px;
}
.dd-btn-cancel {
    padding: 10px 18px; font-size: 13.5px; font-weight: 700; color: #334155; background: none; border: none; cursor: pointer;
}
.dd-btn-cancel:hover { color: #0c1a2e; }
.dd-btn-save {
    padding: 10px 24px; font-size: 13.5px; font-weight: 700; color: #ffffff; background: #0b1324;
    border-radius: 12px; border: none; cursor: pointer; transition: background .2s, transform .1s;
}
.dd-btn-save:hover { background: #1e293b; transform: translateY(-1px); }

.dd-mola-row {
    display: flex; justify-content: space-between; align-items: center;
}
.dd-mola-val { font-size: 22px; font-weight: 800; color: #0c4a6e; display: block; margin-top: 2px; }
.dd-pill-select {
    height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid #cfe0ed; background: #ffffff;
    font-size: 12px; font-weight: 600; color: #334155; cursor: pointer;
}

.dd-history-row {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.dd-history-val { font-size: 22px; font-weight: 800; color: #0c4a6e; display: block; margin-top: 2px; }

/* Topbar Kapı QR Okut Butonu */
.topbar-qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.topbar-qr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
    color: #ffffff !important;
}
.qr-pulse-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
    animation: blinkQrDot 1.6s infinite ease-in-out;
}
@keyframes blinkQrDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

/* ==========================================================================
   KAPSAMLI MOBİL VE TABLET UYUMLULUK SİSTEMİ (RESPONSIVE STYLES)
   ========================================================================== */

/* 1. TABLET VE KÜÇÜK DİZÜSTÜLER (<= 960px) */
@media (max-width: 960px) {
    /* Genel Yapı ve Çekmece Sidebar */
    .main {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .sidebar {
        width: 280px !important;
        max-width: 84vw !important;
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 9999 !important;
        box-shadow: 4px 0 24px rgba(12, 74, 110, 0.25) !important;
    }
    .sidebar.open {
        transform: translateX(0) !important;
    }
    .sb-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(11, 18, 32, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }
    .sb-overlay.show {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Topbar Uyum */
    .topbar {
        padding: 0 16px !important;
    }
    .tb-right {
        gap: 8px !important;
    }

    /* Sayfa Başlığı ve Butonlar */
    .page-head {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .page-head > div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Form ve Grid Düzenleri */
    .f-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .bulk-filters-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .bulk-header-card {
        padding: 14px !important;
    }
}

/* 2. TABLET VE MOBİL CİHAZLAR (<= 768px) */
@media (max-width: 768px) {
    /* Genel İçerik Boşlukları */
    .content {
        padding: 14px 12px 60px !important;
    }
    .page-head h1 {
        font-size: 20px !important;
    }

    /* İstatistik Kartları */
    .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .stat-card {
        padding: 12px 14px !important;
    }
    .stat-card strong {
        font-size: 20px !important;
    }

    /* Vardiya Günlük Kartları (Yatay Kaydırılabilir Akıllı Kartlar) */
    .days-cards-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
    }
    .day-card {
        min-width: 120px !important;
        flex: 0 0 auto !important;
        scroll-snap-align: start !important;
        padding: 12px 10px !important;
    }

    /* Vardiya Takvimi Filtre Çubuğu */
    .calendar-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }
    .cal-filter-group {
        width: 100% !important;
        max-width: 100% !important;
    }
    .cal-filter-group select,
    .cal-filter-group input {
        width: 100% !important;
    }
    .week-picker-box {
        width: 100% !important;
    }
    .legend-row {
        flex-wrap: wrap !important;
        gap: 10px 14px !important;
    }

    /* Dashboard Kapı QR Banner */
    .qr-quick-banner {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .qr-quick-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    .qr-quick-actions a,
    .qr-quick-actions button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Vardiyam Sayfası Üst Çubuk */
    .my-shift-top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .my-shift-top-bar .date-range-badge {
        justify-content: center !important;
    }
    .actions-group-right {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: space-between !important;
    }
    .shift-hero-card {
        padding: 16px 18px !important;
    }
    .shift-hero-card .hero-dates {
        font-size: 20px !important;
    }

    /* Puantaj ve Filtreler */
    .timesheet-filter-card {
        padding: 14px !important;
    }
    .ts-row-1, .ts-row-2 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .ts-row-1 > div, .ts-row-2 > div {
        width: 100% !important;
    }
    .ts-actions {
        margin-left: 0 !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .ts-actions button,
    .ts-actions a {
        flex: 1 1 auto !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Tablo Alanları & Yatay Dokunmatik Kaydırma */
    .table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        display: block !important;
        margin-bottom: 8px !important;
    }
    .dtable {
        min-width: 580px !important;
    }
    .timesheet-grid-table {
        min-width: 900px !important;
    }
    /* Puantajda Personel Adı Kolonunu Sabitle (Sticky Header) */
    .timesheet-grid-table th:first-child,
    .timesheet-grid-table td:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 5 !important;
        background: #ffffff !important;
        box-shadow: 2px 0 6px rgba(12, 74, 110, 0.08) !important;
    }
    .timesheet-grid-table thead th:first-child {
        z-index: 6 !important;
        background: #eef7fc !important;
    }

    /* Tablo Altı Sayfalama */
    .table-foot {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    .pager {
        justify-content: center !important;
    }

    /* Kullanıcı Limiti Kartı */
    .limit-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 14px 16px !important;
    }
    .limit-body {
        width: 100% !important;
    }

    /* Sekmeler Menüsü (Yatay Dokunmatik) */
    .tabs-nav {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 6px !important;
        width: 100% !important;
    }
    .tab-btn {
        flex-shrink: 0 !important;
    }

    /* Toplu Vardiya Form Grid */
    .bulk-filters-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* A4 Maaş Pusulası Mobil Görünümü */
    .payslip-page-wrap {
        padding: 0 !important;
    }
    .payslip-page {
        padding: 16px 14px !important;
        border-radius: 10px !important;
    }
    .signatures {
        flex-direction: column !important;
        gap: 14px !important;
    }
    .summary-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* 3. AKILLI TELEFONLAR VE DAR EKRANLAR (<= 640px) */
@media (max-width: 640px) {
    /* Topbar Alanı */
    .topbar {
        padding: 0 10px !important;
        height: 52px !important;
    }
    .user-meta {
        display: none !important;
    }
    .topbar-qr-btn span:not(.qr-pulse-dot) {
        display: none !important;
    }
    .topbar-qr-btn {
        padding: 7px 10px !important;
        margin-right: 2px !important;
    }

    /* Modallar (Mobil Bottom-Sheet Uyumu) */
    .modal {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    .modal-card,
    .modal-card.sm,
    .modal-card.lg {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 22px 22px 0 0 !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .modal-head {
        padding: 16px 18px 8px !important;
    }
    .modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 18px 16px !important;
        max-height: calc(90vh - 130px) !important;
    }
    .modal-foot {
        flex-direction: column-reverse !important;
        gap: 8px !important;
        padding: 10px 18px 18px !important;
    }
    .modal-foot button {
        width: 100% !important;
        height: 44px !important;
        justify-content: center !important;
        font-size: 14px !important;
    }

    /* Form Kontrolleri (iOS & Android Otomatik Zoom Engelleme: Font >= 16px) */
    .m-input,
    .f-input,
    .dd-input,
    .dd-select,
    select.m-input,
    textarea.m-input {
        font-size: 16px !important;
        min-height: 42px !important;
        border-radius: 10px !important;
    }

    /* Butonlar & Aksiyonlar */
    .btn-dark,
    .btn-light,
    .btn-primary {
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Kart İçi Düzenler */
    .card.pad {
        padding: 14px 14px !important;
    }
    .settings-box {
        padding: 14px 14px !important;
    }

    /* Kapı Posteri Modalı */
    .door-poster-card {
        max-width: 100% !important;
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }
    .poster-door-title {
        font-size: 20px !important;
    }
    .poster-qr-frame canvas,
    .poster-qr-frame img {
        width: 180px !important;
        height: 180px !important;
        max-width: 100% !important;
    }
}

/* 4. MİNİK EKRANLAR (<= 480px) */
@media (max-width: 480px) {
    /* Tek Sütunlu İstatistikler */
    .stats-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .stat-card {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 16px !important;
    }
    .stat-card strong {
        margin-top: 0 !important;
        font-size: 18px !important;
    }

    /* Dil Seçici: Sadece Kısaltmayı Göster (TR / EN) */
    .lang-btn {
        padding: 0 8px !important;
        font-size: 0 !important;
    }
    .lang-btn .lang-code {
        font-size: 11px !important;
        margin-right: 0 !important;
    }
    .lang-btn svg {
        display: none !important;
    }

    /* Auth Sayfaları (Giriş / Kayıt) */
    .auth-card {
        padding: 24px 18px !important;
        border-radius: 18px !important;
        max-width: calc(100vw - 24px) !important;
    }
    .auth-logo {
        font-size: 24px !important;
    }
}


