/* ============ TASARIM ANAHTARLARI ============ */
:root {
  --bg: #f5f6fa; --surface: #ffffff; --surface-2: #f0f2f7; --text: #141824; --text-2: #4b5468; --muted: #7b8497;
  --border: #e4e7ef; --primary: #2a78d6; --primary-2: #1d5fb0; --primary-soft: #e8f1fc; --on-primary: #fff;
  --good: #15803d; --good-soft: #e3f6ea; --warn: #b45309; --warn-soft: #fdf1dc; --bad: #c62828; --bad-soft: #fde8e8;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --side: #10141f; --side-text: #b7bfd1; --side-active: #1e2740; --side-border: #1e2536;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.05);
  --radius: 14px; color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1017; --surface: #161a24; --surface-2: #1d2230; --text: #eef0f6; --text-2: #b9c0d0; --muted: #8790a4;
  --border: #262c3b; --primary: #3987e5; --primary-2: #5a9cec; --primary-soft: #16263d; --on-primary: #08101c;
  --good: #4ade80; --good-soft: #12291c; --warn: #fbbf24; --warn-soft: #2e2410; --bad: #ff7b72; --bad-soft: #341717;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --side: #0a0d14; --side-active: #182036; --side-border: #171c29;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; } .pad { padding: 8px; } .spacer { flex: 1; }
.error { color: var(--bad); font-size: 14px; }
kbd { font: 11px ui-monospace, Consolas, monospace; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--muted); }
svg.i { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* ============ FORM ELEMANLARI ============ */
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
input:disabled { background: var(--surface-2); color: var(--muted); }
textarea { resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--primary); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--text); }
.check input { width: 18px; flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn { font: inherit; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 10px; cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn.primary:hover { background: var(--primary-2); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-soft); }
.btn.big { padding: 14px; font-size: 16px; width: 100%; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-2); border-radius: 10px; cursor: pointer; font-size: 18px; }
.icon-btn:hover { background: var(--surface-2); }

/* ============ GİRİŞ EKRANI ============ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { background: radial-gradient(1200px 600px at 10% 0%, #2a78d6 0%, #1a3f7a 45%, #0e1a33 100%); color: #fff; display: grid; place-items: center; padding: 48px; }
.auth-hero-inner { max-width: 440px; }
.auth-hero h1 { font-size: 40px; margin: 16px 0 8px; } .auth-hero p { opacity: .85; font-size: 17px; }
.auth-hero ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 16px; }
.logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #3b8cf0, #1d5fb0); color: #fff; font-size: 20px; flex: none; box-shadow: 0 4px 12px rgba(42,120,214,.4); }
.logo.big { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; background: rgba(255,255,255,.16); box-shadow: none; }
.auth-panel { display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 14px; }
.auth-card h2 { font-size: 26px; }
.link-center { text-align: center; font-size: 14px; }

/* ============ UYGULAMA KABUĞU ============ */
.app { display: flex; min-height: 100vh; }
.side { width: 256px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex: none; border-right: 1px solid var(--side-border); }
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px; color: #fff; }
.brand small { display: block; font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--side-text); }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px; display: grid; align-content: start; gap: 2px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7590; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-text); font-weight: 500; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--primary); }
.nav a.soon { opacity: .55; cursor: default; }
.nav .tag { margin-left: auto; font-size: 10px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.08); }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 14px; border-top: 1px solid var(--side-border); }
.side-foot .icon-btn { color: var(--side-text); } .side-foot .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.user-card { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; }
.user-meta { display: grid; min-width: 0; color: #fff; } .user-meta strong, .user-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; flex: none; background: var(--primary); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top h1 { font-size: 20px; }
.search-trigger { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 10px; cursor: pointer; font: inherit; min-width: 220px; }
.search-trigger:hover { border-color: var(--primary); }
.search-trigger kbd { margin-left: auto; }
.content { padding: 24px; max-width: 1500px; width: 100%; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 39; }
.only-mobile { display: none; }

/* ============ KART / TABLO ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.toolbar h2 { font-size: 22px; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); position: sticky; top: 0; }
tbody tr:hover { background: var(--surface-2); } tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); }
.badge.ok { background: var(--good-soft); color: var(--good); } .badge.off { background: var(--bad-soft); color: var(--bad); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.actions { display: flex; gap: 8px; } .actions.wrap { flex-wrap: wrap; align-items: center; } .actions.end { justify-content: flex-end; margin-top: 4px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.searchbar { position: relative; margin-bottom: 14px; }
.searchbar input { padding-left: 38px; } .searchbar .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); } .empty .em { font-size: 40px; display: block; margin-bottom: 8px; }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============ DASHBOARD ============ */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hello h2 { font-size: 26px; } .hello p { margin: 4px 0 0; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { display: flex; gap: 14px; align-items: flex-start; }
.kpi .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; background: var(--primary-soft); color: var(--primary); }
.kpi .ico.g { background: var(--good-soft); color: var(--good); } .kpi .ico.w { background: var(--warn-soft); color: var(--warn); } .kpi .ico.v { background: var(--surface-2); color: var(--text-2); }
.kpi > div:last-child { min-width: 0; } .kpi .lbl { color: var(--muted); font-size: 13px; } .kpi .val { font-size: 24px; white-space: nowrap; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.delta { font-size: 12px; font-weight: 600; } .delta.up { color: var(--good); } .delta.down { color: var(--bad); } .delta.flat { color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: 16px; }
.span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg button { font: inherit; font-size: 13px; padding: 5px 12px; border: 0; background: transparent; color: var(--text-2); border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--border); stroke-width: 1; } .chart .axis-t { fill: var(--muted); font-size: 11px; }
.chart .bar { fill: var(--series-1); } .chart .bar.hov { fill: var(--primary-2); } .chart .bar.today { fill: var(--series-3); }
.tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow); transform: translate(-50%, -100%); white-space: nowrap; z-index: 5; }
.hbar { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--series-1); border-radius: 999px; }
.hbar .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hbar .v { color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl { display: grid; gap: 4px; }
.tl-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; }
.tl-item:hover { background: var(--surface-2); }
.tl-time { font-weight: 700; font-variant-numeric: tabular-nums; } .tl-body { min-width: 0; } .tl-body div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.staff-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.staff-card .avatar { position: relative; }
.staff-card .dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted); }
.dot.Busy { background: var(--series-2); } .dot.Free { background: var(--good); }
.pulse-num { font-size: 30px; font-weight: 700; } .pulse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.pulse > div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.bday { padding: 10px 12px; background: var(--warn-soft); color: var(--warn); border-radius: 12px; margin-top: 12px; font-size: 14px; }

/* ============ MODAL / TOAST / PALETTE ============ */
.modal-back { position: fixed; inset: 0; background: rgba(8,12,20,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 60; animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; display: grid; gap: 14px; max-height: 92vh; overflow: auto; animation: pop .18s ease; }
.modal.wide { max-width: 780px; }
@keyframes pop { from { transform: scale(.97) translateY(6px); opacity: 0; } }
.form-grid { display: grid; gap: 14px; } .form-grid small { font-size: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,.3); animation: pop .2s; }
.palette { width: 100%; max-width: 580px; padding: 0; overflow: hidden; align-self: start; margin-top: 12vh; }
.palette input { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); padding: 18px 20px; font-size: 17px; }
.palette input:focus { box-shadow: none; }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.pal-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.pal-item.on, .pal-item:hover { background: var(--primary-soft); }
.pal-item small { margin-left: auto; color: var(--muted); }
.pick-list { display: grid; margin-top: 4px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); } .pick-list:empty { display: none; }
.pick-item { font: inherit; text-align: left; padding: 12px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.pick-item:hover { background: var(--surface-2); }
.note { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.note-box { background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.svc { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; } .svc:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.slot-row { margin: 10px 0; } .slot-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.slot { font: inherit; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.slot:hover { border-color: var(--primary); } .slot.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ============ TAKVİM ============ */
.cal-wrap { overflow-x: auto; }
.cal { display: flex; min-width: min-content; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.cal-emp { flex: 1 0 180px; border-left: 1px solid var(--border); }
.cal-emp.axis-col { flex: 0 0 56px; border-left: 0; position: sticky; left: 0; background: var(--surface); z-index: 2; }
.cal-head { padding: 12px 10px; text-align: center; font-weight: 600; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cal-col, .cal-axis { position: relative; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.cal-hour { position: absolute; left: 8px; font-size: 12px; color: var(--muted); transform: translateY(-50%); background: var(--surface); padding: 0 2px; }
.cal-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bad); z-index: 3; pointer-events: none; }
.appt { position: absolute; left: 4px; right: 4px; padding: 5px 8px; border-radius: 10px; overflow: hidden; cursor: pointer; font-size: 13px; color: #fff; border-left: 4px solid rgba(0,0,0,.3); background: #64748b; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .1s, box-shadow .15s; }
.appt:hover { box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 4; }
.appt .small { opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt[draggable="true"] { cursor: grab; }
.st-Pending { background: #d97706; } .st-Confirmed { background: #2563eb; } .st-CheckedIn { background: #7c3aed; } .st-InProgress { background: #0d9488; } .st-Completed { background: #16a34a; }
.appt.dead { opacity: .45; text-decoration: line-through; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 0; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* ============ MOBİL ============ */
@media (max-width: 1100px) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; } .auth-hero { display: none; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 8px 0 30px rgba(0,0,0,.4); }
  .only-mobile { display: inline-grid; } .hide-mobile { display: none !important; }
  .top { padding: 10px 14px; } .content { padding: 14px; }
  .search-trigger { min-width: 0; padding: 9px 11px; }
  .hello h2 { font-size: 22px; } .row2 { grid-template-columns: 1fr; }
  .pulse { grid-template-columns: 1fr 1fr 1fr; }
}
@media print { .side, .top, .quick { display: none; } }

/* ============ FİNANS SAYFALARI ============ */
.range { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.range-dates { display: flex; gap: 6px; align-items: center; } .range-dates input { width: 150px; padding: 8px 10px; }
.wrap-seg { flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; }
.tl-item.pend { grid-template-columns: 56px 1fr auto; cursor: default; }
.pend-r { display: grid; justify-items: end; gap: 6px; }
.methods { display: grid; gap: 10px; }
.method { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.method .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.method .share { font-weight: 700; color: var(--text-2); }
.pay-head { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface-2); border-radius: 12px; }
.pay-lines { display: grid; gap: 8px; }
.pay-line { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center; }
.pay-total { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.pay-total > div { display: flex; justify-content: space-between; }
.pay-total .big { font-size: 18px; padding-top: 6px; border-top: 1px solid var(--border); }
.pay-total .good { color: var(--good); } .pay-total .warn { color: var(--warn); } .pay-total .bad { color: var(--bad); }
.pl { display: grid; gap: 12px; } .pl > div { display: flex; justify-content: space-between; }
.pl .tot { border-top: 1px solid var(--border); padding-top: 12px; font-size: 18px; }
.good { color: var(--good); } .bad { color: var(--bad); }
.stat-list { display: grid; } .stat-list > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); }
.stat-list > div:last-child { border-bottom: 0; }
.heat { display: flex; gap: 6px; align-items: flex-end; height: 140px; }
.heat-c { flex: 1; display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; gap: 4px; }
.heat-c > div { align-self: end; } .heat-c small { color: var(--muted); font-size: 11px; }
.heat-b { background: var(--series-1); border-radius: 4px 4px 0 0; width: 100%; }
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.branch { display: grid; gap: 8px; align-content: start; }
.ico-sq { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
@media (max-width: 860px) { .range-dates input { width: 130px; } }
@media print { .toolbar .actions, .seg, .btn { display: none !important; } .card { box-shadow: none; break-inside: avoid; } .content { padding: 0; } }
.actions > input, .actions > select, .toolbar > select { width: auto; }
.actions > input[type="date"] { padding: 8px 10px; }
.card-head > select, .toolbar > .seg + select { width: auto; }

/* ============ GİRİŞ EKRANI (v2) ============ */
.auth { grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); background: var(--bg); }
.auth-hero { position: relative; overflow: hidden; place-items: center; padding: 56px;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(59,140,240,.55), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(235,104,52,.35), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #101a33 55%, #0a0f1c 100%); }
.auth-hero::before { content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
.hero-pole { position: absolute; right: 7%; top: -10%; width: 34px; height: 120%; border-radius: 20px; opacity: .16; transform: rotate(12deg);
  background: repeating-linear-gradient(45deg, #e34948 0 18px, #fff 18px 36px, #2a78d6 36px 54px, #fff 54px 72px);
  animation: pole 6s linear infinite; }
@keyframes pole { to { background-position: 0 144px; } }
.hero-glow { position: absolute; width: 420px; height: 420px; left: -120px; bottom: -160px; border-radius: 50%; background: rgba(42,120,214,.35); filter: blur(90px); }
.auth-hero-inner { position: relative; max-width: 520px; width: 100%; }
.hero-brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.hero-brand .logo.big { width: 52px; height: 52px; font-size: 24px; border-radius: 16px; background: linear-gradient(135deg, #3b8cf0, #1d5fb0); box-shadow: 0 10px 30px rgba(42,120,214,.45); }
.auth-hero h1 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; margin: 40px 0 16px; letter-spacing: -.03em; }
.auth-hero h1 em { font-style: normal; background: linear-gradient(90deg, #7cb6ff, #f3a37f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { font-size: 17px; line-height: 1.6; opacity: .78; margin: 0; }
.hero-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.hf { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.hf:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.hf .ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(124,182,255,.15); color: #9cc8ff; }
.hf strong { display: block; font-size: 14px; } .hf small { display: block; font-size: 12.5px; opacity: .65; margin-top: 2px; line-height: 1.4; }
.hero-quote { display: flex; align-items: center; gap: 14px; margin-top: 36px; font-size: 14px; opacity: .85; }
.hero-avatars { display: flex; } .hero-avatars i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; border: 2px solid #0e1628; margin-left: -8px; }
.hero-avatars i:first-child { margin-left: 0; background: #2a78d6; } .hero-avatars i:nth-child(2) { background: #eb6834; } .hero-avatars i:nth-child(3) { background: #1baf7a; }

.auth-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { max-width: 420px; gap: 16px; padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 24px 60px -12px rgba(16,24,40,.18); animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.auth-card h2 { font-size: 26px; letter-spacing: -.02em; } .auth-card > div > p { margin: 6px 0 4px; }
.field { position: relative; display: block; }
.field > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.field input { padding: 13px 14px 13px 44px; border-radius: 12px; background: var(--surface-2); border-color: transparent; font-size: 15px; }
.field input:focus { background: var(--surface); }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.field-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.field-btn:hover { background: var(--border); color: var(--text); }
.field:has(.field-btn) input { padding-right: 48px; }
.caps { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--warn); margin-top: -6px; }
.remember { font-size: 14px; color: var(--text-2); }
.auth-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.auth-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
#loginBtn, .auth-card .btn.primary.big { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 600; background: linear-gradient(135deg, #3b8cf0, #1d5fb0); border: 0; color: #fff; }
#loginBtn:hover { filter: brightness(1.07); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-foot { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; padding-top: 14px; border-top: 1px solid var(--border); }
.auth-foot .ic { color: var(--good); flex: none; }
.auth-copy { margin-top: 24px; font-size: 12px; color: var(--muted); }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 18px; }
@media (max-width: 1080px) { .hero-feats { grid-template-columns: 1fr; } .auth-hero { padding: 40px; } }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { justify-content: flex-start; padding-top: 48px; background: radial-gradient(600px 300px at 50% 0%, var(--primary-soft), transparent 70%), var(--bg); }
  .auth-card { padding: 26px 20px; border-radius: 20px; }
  .auth-mobile-brand { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .hero-pole, .auth-card, .spinner { animation: none; } }

/* ============ MODAL (v2) ============ */
body.modal-open { overflow: hidden; }
.modal-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px 16px;
  background: rgba(8, 12, 22, .52); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: mfade .18s ease; }
.modal-back.closing { animation: mfadeOut .16s ease forwards; }
.modal-back.closing .modal { animation: mpopOut .16s ease forwards; }
@keyframes mfade { from { opacity: 0; } }
@keyframes mfadeOut { to { opacity: 0; } }
@keyframes mpop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes mpopOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal { display: flex; flex-direction: column; width: 100%; max-height: min(90vh, 860px); padding: 0; gap: 0; overflow: hidden;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 24px 70px -12px rgba(10, 15, 30, .45), 0 2px 6px rgba(10, 15, 30, .08); animation: mpop .22s cubic-bezier(.2, .8, .2, 1); outline: none; }
.modal.sm { max-width: 440px; } .modal.md { max-width: 560px; } .modal.lg { max-width: 860px; } .modal.xl { max-width: 1100px; }
.modal.shake { animation: shake .4s; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid var(--border); }
.modal-titles { flex: 1; min-width: 0; }
.modal-titles h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.modal-titles p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.modal-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--primary-soft); color: var(--primary); }
.modal-ico.bad { background: var(--bad-soft); color: var(--bad); } .modal-ico.good { background: var(--good-soft); color: var(--good); } .modal-ico.warn { background: var(--warn-soft); color: var(--warn); }
.modal-x { width: 36px; height: 36px; margin: -4px -6px 0 0; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.modal-x:hover { background: var(--surface-2); color: var(--text); }
.modal-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px; display: grid; gap: 16px; align-content: start; }
.modal-body > .card { box-shadow: none; }
.modal-body .table-wrap, .modal-body > .card.table-wrap { border-radius: 12px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.modal-foot > .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.modal-foot .btn { min-width: 96px; }
.foot-hint { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.modal-msg { margin: 0; color: var(--text-2); line-height: 1.6; }
.modal-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 14px; line-height: 1.45; }
.modal-error svg { flex: none; margin-top: 1px; }

/* Form düzeni */
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.form-grid .full, .form-grid .form-section { grid-column: 1 / -1; }
.form-section { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 6px; border-top: 1px dashed var(--border); margin-top: 2px; }
.form-grid .form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.lbl-t { display: block; }
.req { color: var(--bad); }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.field-err { font-size: 12px; color: var(--bad); font-weight: 500; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent) !important; }
.field-suffix { position: relative; display: block; }
.field-suffix input { padding-right: 44px; }
.field-suffix .sfx { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.form-grid label.check { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.form-grid label.check:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--primary-soft); }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.08); background: var(--bad); }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }
.btn.primary .spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }

/* Komut paleti eski modal sınıflarını kullanır: yeni kurallardan etkilenmesin */
.modal.palette { max-width: 580px; max-height: none; display: block; border-radius: 16px; align-self: start; margin-top: 12vh; }

@media (max-width: 640px) {
  .modal-back { place-items: end stretch; padding: 0; }
  .modal { max-width: none !important; max-height: 92vh; border-radius: 20px 20px 0 0; animation: msheet .26s cubic-bezier(.2, .8, .2, 1); }
  .modal-back.closing .modal { animation: msheetOut .16s ease forwards; }
  .modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--border); margin: 8px auto 0; }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .modal-head { padding: 12px 18px 12px; } .modal-body { padding: 16px 18px; } .modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .modal.palette { margin-top: 0; border-radius: 20px 20px 0 0; }
}
@keyframes msheet { from { transform: translateY(100%); } }
@keyframes msheetOut { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-back { animation: none !important; } }

/* ============ ONLINE RANDEVU (panel) ============ */
.link-row { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.link-row input { border: 0; background: transparent; padding: 10px 0; font: 600 15px ui-monospace, Consolas, monospace; color: var(--primary); box-shadow: none !important; }
.link-row .ic { color: var(--muted); display: flex; }
.tips { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.tips h4 { font-size: 14px; margin-bottom: 6px; } .tips ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.qr-box { display: grid; place-items: center; min-height: 216px; padding: 8px; background: #fff; border-radius: 14px; width: fit-content; margin: 0 auto 10px; }
.appt .online { font-size: 11px; margin-left: 4px; }
.auth-copy a { color: var(--primary); font-weight: 600; }
.bk-credit { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.bk-credit a { color: var(--primary); font-weight: 600; }

/* ============ MÜŞTERİLER ============ */
.cust-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cust-kpi { font: inherit; color: var(--text); text-align: left; display: grid; gap: 2px; padding: 14px 16px; cursor: pointer; border-left: 4px solid var(--primary); transition: transform .12s, box-shadow .15s; }
.cust-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -8px rgba(16,24,40,.25); }
.cust-kpi.on { outline: 2px solid var(--primary); outline-offset: -2px; }
.cust-kpi.g { border-left-color: var(--good); } .cust-kpi.w { border-left-color: #eda100; } .cust-kpi.b { border-left-color: var(--bad); }
.cust-kpi .lbl { font-size: 12.5px; color: var(--muted); } .cust-kpi strong { font-size: 26px; letter-spacing: -.02em; } .cust-kpi small { font-size: 12px; color: var(--muted); }
.cust-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; padding: 14px; }
.cust-toolbar .searchbar { margin: 0; } .cust-toolbar .searchbar input { background: var(--surface-2); border-color: transparent; }
.cust-tools { display: flex; gap: 8px; align-items: center; } .cust-tools select { width: auto; padding: 9px 12px; }
.cust-tools .seg button { display: grid; place-items: center; padding: 7px 10px; }
.chips { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: all .12s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cust-card { display: grid; gap: 14px; cursor: pointer; transition: transform .12s, box-shadow .15s, border-color .15s; outline: none; }
.cust-card:hover, .cust-card:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: 0 12px 28px -12px rgba(16,24,40,.28); }
.cust-card.passive { opacity: .65; }
.cust-top { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.cust-id { display: grid; min-width: 0; } .cust-id strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-badges { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; } .cust-badges:empty { display: none; }
.cust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cust-stats div { display: grid; gap: 2px; } .cust-stats span { font-size: 11.5px; color: var(--muted); } .cust-stats strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-next { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--primary-soft); color: var(--text-2); }
.cust-actions { display: flex; gap: 8px; align-items: center; }
.cust-card .cust-actions .btn.primary { flex: 1; }
.btn.icon-only { width: 36px; padding: 6px 0; justify-content: center; text-decoration: none; }
.cust-table tr.clickable { cursor: pointer; }
.cust-table .cust-actions .btn.primary { padding: 6px 10px; }
.cust-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pg-row { display: flex; gap: 6px; }
.pg { font: inherit; min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600; }
.pg.on { background: var(--primary); border-color: var(--primary); color: #fff; } .pg:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 700px) {
  .cust-toolbar { grid-template-columns: 1fr; }
  .cust-tools { justify-content: space-between; } .cust-tools select { flex: 1; }
  .cust-kpis { grid-template-columns: repeat(2, 1fr); }
  .cust-grid { grid-template-columns: 1fr; }
}

/* ============ KENAR MENÜ: kaydırma çubuğu gizli, daha sıkı düzen ============ */
.nav { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; gap: 1px; padding-bottom: 8px; }
.nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.nav a { padding: 9px 12px; }
.nav-group { padding: 12px 10px 4px; }
.brand { padding: 16px 18px; }
.side-foot { padding: 12px 14px; }
/* İçerik taşarsa altta hafif gölge ile "devamı var" ipucu */
.side { position: sticky; }
.nav { mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
@media (max-height: 760px) { .nav a { padding: 7px 12px; } .nav-group { padding: 8px 10px 2px; } }

/* ============ KULLANICILAR & PROFİL ============ */
.side-foot .user-card { cursor: pointer; border-radius: 12px; padding: 6px; margin: -6px; transition: background .15s; }
.side-foot .user-card:hover { background: rgba(255,255,255,.06); }
.role-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.role-legend .card { padding: 14px; display: grid; gap: 6px; }
.ucard { display: grid; gap: 14px; } .ucard.passive { opacity: .6; }
.ucard-meta { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ucard-meta div { display: flex; gap: 8px; align-items: center; } .ucard-meta svg { color: var(--muted); }
.cred { font: 14px/1.7 ui-monospace, Consolas, monospace; background: var(--surface-2); border-radius: 12px; padding: 14px; white-space: pre-wrap; user-select: all; }
.perm-groups { display: grid; gap: 14px; }
.perm-group { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.perm-mod { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px; background: var(--surface-2); }
.perm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); }
.perm-row.changed { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); }
.perm-name { display: grid; } .perm-name small { color: var(--muted); font-size: 12px; }
.perm-dot { width: 10px; height: 10px; border-radius: 50%; } .perm-dot.yes { background: var(--good); } .perm-dot.no { background: var(--border); }
.tri-seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.tri { font: inherit; font-size: 12.5px; padding: 5px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--text-2); }
.tri.on { background: var(--surface); box-shadow: var(--shadow); font-weight: 600; color: var(--text); }
.tri.on.grant { color: var(--good); } .tri.on.deny { color: var(--bad); }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.profile-head h3 { font-size: 18px; }
.pw-meter { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-meter[data-s="0"] i { width: 10%; background: var(--bad); } .pw-meter[data-s="1"] i { width: 30%; background: var(--bad); }
.pw-meter[data-s="2"] i { width: 55%; background: #eda100; } .pw-meter[data-s="3"] i { width: 80%; background: var(--good); } .pw-meter[data-s="4"] i { width: 100%; background: var(--good); }
@media (max-width: 640px) { .perm-row { grid-template-columns: auto 1fr; } .tri-seg { grid-column: 1 / -1; justify-self: start; } }

/* ============ ADMIN PANELİ ============ */
.nav .tag.danger { background: var(--bad); color: #fff; }
.side-credit { padding: 0 18px 12px; font-size: 11px; color: #6b7590; }
.side-credit a { color: #9cc8ff; }
.kpi.clickable { cursor: pointer; transition: transform .12s, box-shadow .15s; }
.kpi.clickable:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(16,24,40,.3); }
.alerts { display: grid; gap: 8px; }
.alert-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); }
.alert-row.bad { background: var(--bad-soft); border-color: transparent; } .alert-row.warn { background: var(--warn-soft); border-color: transparent; }
.alert-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--text-2); }
.alert-row.bad .alert-ic { color: var(--bad); } .alert-row.warn .alert-ic { color: var(--warn); }
.alert-body { display: grid; min-width: 0; font-size: 13.5px; } .alert-body span { color: var(--text-2); }
.tl-item .avatar { flex: none; }
#appView .tl-item { grid-template-columns: 36px 1fr auto; }

.hero-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(243,163,127,.2); color: #f3a37f; margin-left: 6px; vertical-align: middle; }
.admin-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); margin-bottom: 12px; }
.admin-pill svg { width: 14px; height: 14px; }
.auth-card code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }

/* ============ RANDEVULAR (v2) ============ */
.ap-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; }
.ap-nav { display: flex; align-items: center; gap: 6px; }
.ap-nav .icon-btn { font-size: 24px; width: 38px; height: 38px; border: 1px solid var(--border); background: var(--surface); }
.ap-date { position: relative; display: block; padding: 4px 14px; border-radius: 12px; cursor: pointer; min-width: 190px; text-align: center; }
.ap-date:hover { background: var(--surface-2); }
.ap-title { display: grid; line-height: 1.25; pointer-events: none; }
.ap-title strong { font-size: 17px; color: var(--text); } .ap-title span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ap-date-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ap-date-input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.ap-actions { display: flex; gap: 8px; margin-left: auto; }
.ap-sum { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ap-sum-i { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; display: grid; gap: 2px; border-top: 3px solid var(--primary); }
.ap-sum-i strong { font-size: 20px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-sum-i span { font-size: 12px; color: var(--muted); }
.ap-sum-i.w { border-top-color: #d97706; } .ap-sum-i.p { border-top-color: #0d9488; } .ap-sum-i.g { border-top-color: #16a34a; } .ap-sum-i.b { border-top-color: var(--bad); }
.ap-sum-i.m { border-top-color: #7c3aed; } .ap-sum-i.o { border-top-color: #1baf7a; }
.ap-filters { display: grid; gap: 10px; margin-bottom: 14px; }
.ap-emps { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.emp-chip { font: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; font-size: 13.5px; font-weight: 500; transition: all .12s; }
.emp-chip b { font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center; }
.emp-chip.off { opacity: .45; } .emp-chip.off .avatar { filter: grayscale(1); }
.emp-chip:hover { border-color: var(--primary); }
.st-chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.st-c-Pending i { background: #d97706; } .st-c-Confirmed i { background: #2563eb; } .st-c-CheckedIn i { background: #7c3aed; } .st-c-InProgress i { background: #0d9488; }
.st-c-Completed i { background: #16a34a; } .st-c-Cancelled i { background: #94a3b8; } .st-c-NoShow i { background: var(--bad); }

.cal-scroll { max-height: calc(100vh - 330px); min-height: 420px; overflow: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.cal-scroll .cal { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.cal-emp { flex: 1 0 200px; }
.cal-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; min-height: 64px; }
.axis-col .cal-head { z-index: 6; }
.cal-head-t { display: grid; min-width: 0; flex: 1; } .cal-head-t strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cal-head-t small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.fillbar { height: 4px; border-radius: 4px; background: var(--border); margin-top: 4px; overflow: hidden; } .fillbar i { display: block; height: 100%; background: linear-gradient(90deg, #1baf7a, #eda100, #e34948); background-size: 300px 100%; }
.cal-line.half { border-top-style: dashed; opacity: .55; }
.cal-col.drop { background: color-mix(in srgb, var(--primary-soft) 70%, transparent); }
.cal-ghost { position: absolute; left: 4px; right: 4px; border-radius: 10px; border: 1.5px dashed var(--primary); background: color-mix(in srgb, var(--primary-soft) 80%, transparent); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 8px; pointer-events: none; z-index: 1; }
.cal-col:has(.cal-ghost:not(.hidden)) { cursor: copy; }
.cal-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bad); z-index: 3; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.cal-now-lbl { position: absolute; left: 4px; transform: translateY(-50%); background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; z-index: 3; }
.appt { left: 5px; right: 5px; padding: 6px 9px; border-radius: 10px; border-left-width: 4px; display: flex; flex-direction: column; gap: 1px; outline: none; z-index: 2; }
.appt:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); }
.appt.dragging { opacity: .5; }
.appt-top { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; opacity: .9; font-weight: 600; }
.appt-icons { display: flex; gap: 3px; }
.appt-name { font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-svc { font-size: 11.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 11px; opacity: .95; }
.appt.compact { flex-direction: row; align-items: center; gap: 6px; padding: 3px 8px; } .appt.compact .appt-icons { display: none; }
.appt.compact .appt-name { font-size: 12.5px; }
.appt.st-Cancelled, .appt.st-NoShow { background: #94a3b8; }
.legend { margin-top: 12px; } .legend i { width: 10px; height: 10px; border-radius: 3px; }

/* hafta */
.week { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.week-day { padding: 0; display: flex; flex-direction: column; min-height: 360px; overflow: hidden; }
.week-day.today { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.week-head { font: inherit; color: var(--text); text-align: left; display: grid; gap: 0; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.week-head span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; } .week-head strong { font-size: 24px; } .week-head small { font-size: 11.5px; color: var(--muted); }
.week-day.today .week-head { background: var(--primary-soft); } .week-day.today .week-head strong { color: var(--primary); }
.week-list { display: grid; gap: 6px; padding: 10px; align-content: start; flex: 1; }
.week-item { font: inherit; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 7px 9px; border-radius: 10px; border: 0; border-left: 3px solid var(--primary); background: var(--surface-2); color: var(--text); cursor: pointer; }
.week-item:hover { filter: brightness(.97); } .week-item.dead { opacity: .5; text-decoration: line-through; }
.week-item .wt { font-weight: 700; font-size: 12.5px; } .week-item .wn { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-item small { grid-column: 1 / -1; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-empty { color: var(--muted); text-align: center; padding: 20px 0; }
.week-add { font: inherit; font-size: 13px; margin: 0 10px 10px; padding: 8px; border-radius: 10px; border: 1px dashed var(--border); background: none; color: var(--muted); cursor: pointer; }
.week-add:hover { border-color: var(--primary); color: var(--primary); }
.st-b-Pending { border-left-color: #d97706 !important; } .st-b-Confirmed { border-left-color: #2563eb !important; } .st-b-CheckedIn { border-left-color: #7c3aed !important; }
.st-b-InProgress { border-left-color: #0d9488 !important; } .st-b-Completed { border-left-color: #16a34a !important; } .st-b-Cancelled { border-left-color: #94a3b8 !important; } .st-b-NoShow { border-left-color: var(--bad) !important; }
.st-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border-left: 4px solid; background: var(--surface-2); }
tr.clickable { cursor: pointer; }

/* detay */
.ad-head { display: flex; gap: 14px; align-items: flex-start; }
.ad-info { display: grid; gap: 6px; flex: 1; min-width: 0; }
.ad-when { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); } .ad-when svg { color: var(--muted); }
.ad-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; } .ad-links .btn { text-decoration: none; }
.ad-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ad-step { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; }
.ad-step i { width: 100%; height: 6px; border-radius: 6px; background: var(--border); }
.ad-step.done i { background: #16a34a; } .ad-step.on i { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.ad-step.on { color: var(--primary); font-weight: 700; } .ad-step.done { color: var(--text-2); }
.ad-badges { display: flex; gap: 6px; flex-wrap: wrap; } .ad-badges:empty { display: none; }
.ad-note { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; display: grid; gap: 4px; }

/* yeni randevu */
.na-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.na-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--primary-soft); color: var(--primary); }
.na-b { display: grid; gap: 8px; min-width: 0; }
.svc-t { display: grid; } .svc-t small { color: var(--muted); font-size: 12px; }
.appt-summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 600; font-size: 14px; }
.bk-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }

@media (max-width: 1100px) { .ap-sum { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) {
  .ap-sum { grid-template-columns: repeat(2, 1fr); }
  .ap-actions { margin-left: 0; width: 100%; } .ap-actions .btn { flex: 1; }
  .ap-bar .seg { width: 100%; } .ap-bar .seg button { flex: 1; }
  .cal-scroll { max-height: none; }
  .ad-flow span { display: none; }
}

#notifBtn { position: relative; }
.nbadge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #b42318; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; }
.live-alert { position: fixed; top: 16px; right: 16px; z-index: 80; display: flex; gap: 12px; align-items: flex-start; width: min(380px, calc(100vw - 32px)); padding: 14px 16px; border: 0; border-radius: 16px; background: #1b4f8a; color: #fff; text-align: left; box-shadow: 0 12px 40px rgba(27,79,138,.35); cursor: pointer; }
.live-alert .live-tx { display: grid; gap: 2px; min-width: 0; }
.live-alert strong { font-size: 14px; }
.live-alert .live-tx span { font-size: 13px; opacity: .92; }
.live-ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.live-ic .i { width: 18px; height: 18px; }
.notif-list { padding: 6px; }
.notif-row { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; width: 100%; text-align: left; border: 0; background: transparent; padding: 12px; border-radius: 12px; cursor: pointer; color: inherit; font: inherit; }
.notif-row + .notif-row { border-top: 1px solid var(--border); }
.notif-row.unread { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: transparent; }
.notif-row.unread .notif-dot { background: #1b4f8a; }
.notif-body { display: grid; gap: 2px; min-width: 0; }
.notif-body span { color: var(--text-2); font-size: 13.5px; }
.notif-body small { color: var(--muted); }
