/* ============================================================
   IKNET HRM v2 — assets/css/style.css
   Bootstrap 5 tabanlı, sidebar layout
============================================================ */

:root {
  --primary:       #1a56db;
  --primary-dark:  #1341a8;
  --primary-light: #ebf0fd;
  --sidebar-w:     240px;
  --topbar-h:      60px;
  --sidebar-bg:    #1e2430;
  --sidebar-text:  #a9b4cb;
  --sidebar-hover: #252e3f;
  --border:        #e5e7eb;
  --bg:            #f4f5f7;
  --card-bg:       #ffffff;
  --text:          #1f2937;
  --muted:         #6b7280;
  --radius:        8px;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}
a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ── PAGE LOADER ─────────────────────────────────────────── */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .45s ease;
}
#pageLoader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loader-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}
.loader-ring--outer {
  border-color: var(--primary-light);
  border-top-color: var(--primary);
  animation: ldr-spin 1s linear infinite;
}
.loader-ring--inner {
  inset: 14px;
  border-color: rgba(26,86,219,.1);
  border-bottom-color: var(--primary-dark);
  animation: ldr-spin .7s linear infinite reverse;
}
.loader-logo {
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1;
  animation: ldr-pulse 1.8s ease-in-out infinite;
}
@keyframes ldr-spin {
  to { transform: rotate(360deg); }
}
@keyframes ldr-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: width .25s ease;
  overflow: hidden;
}
.sidebar.collapsed { width: 60px; }

.sidebar-header {
  padding: 0 16px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
}
.brand-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 16px;
}
.brand-logo {
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.sidebar-logo { max-height: 36px; max-width: 160px; object-fit: contain; }

.sidebar-menu {
  list-style: none;
  padding: 12px 8px;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}
.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.menu-section {
  color: rgba(169,180,203,.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 10px 6px;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar.collapsed .menu-section { opacity: 0; }

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--sidebar-text);
  font-size: 13.5px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-menu li a i { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar-menu li a:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-menu li.active a { background: var(--primary); color: #fff; }
.sidebar.collapsed .sidebar-menu li a span { display: none; }
.sidebar.collapsed .sidebar-menu li a { justify-content: center; }

/* ── MAIN WRAPPER ────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .25s ease;
}
.main-wrapper.expanded { margin-left: 60px; }

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 4px; }
.topbar-btn {
  color: var(--muted) !important;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
}
.topbar-btn:hover { background: var(--bg); color: var(--text) !important; }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.topbar-avatar-initials {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.badge-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}
.breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--text); font-weight: 500; }

/* ── PAGE CONTENT ────────────────────────────────────────── */
.page-content { padding: 24px; flex: 1; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  font-weight: 600;
}
.card-body { padding: 20px; }

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #ebf0fd; color: #1a56db; }
.stat-icon.green  { background: #ecfdf5; color: #059669; }
.stat-icon.yellow { background: #fffbeb; color: #d97706; }
.stat-icon.red    { background: #fef2f2; color: #dc2626; }
.stat-icon.purple { background: #f5f3ff; color: #7c3aed; }
.stat-icon.gray   { background: #f9fafb; color: #6b7280; }

.stat-value { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── TABLES ──────────────────────────────────────────────── */
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table { margin: 0; font-size: 13.5px; }
.table thead th {
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 10px 16px;
  white-space: nowrap;
}
.table tbody td { padding: 12px 16px; vertical-align: middle; }
.table tbody tr:hover { background: #fafafa; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge { font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 4px; }
.badge-pending   { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-approved  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-rejected  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-cancelled { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }

/* ── AVATAR ──────────────────────────────────────────────── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  color: #fff; background: var(--primary);
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  padding: 8px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
  outline: none;
}
.form-label { font-size: 13px; font-weight: 500; margin-bottom: 5px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { font-size: 13.5px; border-radius: 6px; font-weight: 500; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-sm  { font-size: 12px; padding: 4px 10px; }
.btn-xs  { font-size: 11px; padding: 2px 7px; border-radius: 4px; line-height: 1.5; }
.btn-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 6px;
}

/* ── NOTIFICATIONS ───────────────────────────────────────── */
.notif-dropdown { width: 340px; max-height: 440px; overflow-y: auto; }
.notif-header { border-bottom: 1px solid var(--border); flex-shrink: 0; }
#notifList { overflow-y: auto; flex: 1; }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  display: flex; gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  transition: background .1s;
}
.notif-item:hover { background: #f9fafb; }
.notif-item.unread { background: #f0f5ff; }
.notif-item.unread:hover { background: #e8f0fe; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; }
.notif-text { font-size: 13px; line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 { font-size: 22px; font-weight: 700; margin: 0; color: var(--text); }
.page-header .subtitle { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── LOGIN ───────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e2430 0%, #1a3a6e 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  margin-bottom: 12px;
}
.login-brand-logo {
  width: 72px; height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.login-logo h1 { font-size: 24px; font-weight: 700; margin: 0; }
.login-logo p  { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-header { border-bottom: 1px solid var(--border); padding: 16px 20px; }
.modal-footer { border-top: 1px solid var(--border); padding: 14px 20px; }
.modal-title  { font-size: 16px; font-weight: 600; }

/* ── TABS ────────────────────────────────────────────────── */
.nav-tabs .nav-link {
  font-size: 13.5px; color: var(--muted);
  border: none; border-bottom: 2px solid transparent;
  padding: 10px 16px; border-radius: 0;
}
.nav-tabs .nav-link:hover { color: var(--primary); }
.nav-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; font-weight: 600; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state i { font-size: 40px; opacity: .35; margin-bottom: 12px; }
.empty-state p { margin: 0; font-size: 14px; }

/* ── SPINNER ─────────────────────────────────────────────── */
.spin {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.spin.dark { border-color: rgba(26,86,219,.2); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SEARCH ──────────────────────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap .bi-search { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.search-wrap input { padding-left: 32px; }

/* ── CALENDAR ────────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border-radius: 8px; overflow: hidden; }
.cal-head { background: #f9fafb; padding: 8px; text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cal-cell { background: #fff; padding: 6px 8px; min-height: 80px; position: relative; }
.cal-cell.today { background: #f0f5ff; }
.cal-cell.other-month { background: #fafafa; }
.cal-cell.holiday { background: #fef9ec; }
.cal-day { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cal-day.today-num { width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cal-event { font-size: 11px; padding: 2px 6px; border-radius: 3px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event.leave    { background: #dbeafe; color: #1e40af; }
.cal-event.travel   { background: #d1fae5; color: #065f46; }
.cal-event.holiday  { background: #fde68a; color: #92400e; }
.cal-event.birthday { background: #ede9fe; color: #5b21b6; }

/* ── TOAST ───────────────────────────────────────────────── */
.toast-container { z-index: 9999; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; box-shadow: 4px 0 12px rgba(0,0,0,.2); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrapper { margin-left: 0 !important; }
  .page-content { padding: 16px; }
  .topbar { padding: 0 12px; }
}

/* ── UTILS ───────────────────────────────────────────────── */
.text-primary  { color: var(--primary) !important; }
.bg-primary    { background: var(--primary) !important; }
.fw-600        { font-weight: 600; }
.fs-13         { font-size: 13px; }
.fs-12         { font-size: 12px; }
.fs-15         { font-size: 15px; }
.cursor-pointer{ cursor: pointer; }

/* ============================================================
   LOGIN PAGE — İki Parçalı Giriş Ekranı
============================================================ */

/* Body için login page özel ayarları */
body.login-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

/* ── Layout ─────────────────────────────────────────────── */
.login-split { display: flex; height: 100vh; overflow: hidden; }

/* ── Sol Panel (Form) — order:2 ile sağa yerleşir ───────── */
.login-left {
  order: 2;
  flex: 0 0 33.333%;
  width: 33.333%;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(16px, 3vh, 36px) clamp(20px, 3.5vw, 44px);
  box-shadow: -4px 0 24px rgba(0,0,0,.08);
  position: relative;
  z-index: 2;
}

/* Üst blok: logo */
.login-top { text-align: center; }
.login-brand { display: flex; flex-direction: column; align-items: center; }
.login-brand img {
  width: clamp(88px, 14vh, 144px);
  height: clamp(88px, 14vh, 144px);
  object-fit: contain;
  margin-bottom: clamp(4px, 1vh, 10px);
}
.login-brand-name {
  font-size: clamp(16px, 2.2vh, 24px);
  font-weight: 800;
  color: #1a56db;
  letter-spacing: -.5px;
  line-height: 1;
}
.login-brand-tagline {
  color: #9ca3af;
  font-size: clamp(10px, 1.3vh, 13px);
  margin-top: 3px;
}

/* Orta blok: form */
.login-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(8px, 1.5vh, 18px) 0;
}
.login-heading {
  font-size: clamp(14px, 2vh, 20px);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}
.login-sub {
  color: #6b7280;
  font-size: clamp(11px, 1.5vh, 13px);
  margin-bottom: clamp(12px, 2vh, 24px);
}

.form-label {
  font-size: clamp(11px, 1.4vh, 13px);
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  display: block;
}
.form-group { margin-bottom: clamp(8px, 1.5vh, 14px); }
.form-control {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: clamp(7px, 1.2vh, 10px) 13px;
  font-size: clamp(12px, 1.5vh, 14px);
  color: #1f2937;
  background: #f9fafb;
  width: 100%;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
  background: #fff;
}
.form-hint {
  font-size: clamp(10px, 1.2vh, 11px);
  color: #9ca3af;
  margin-top: 2px;
  display: block;
}

.btn-login {
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: clamp(8px, 1.4vh, 11px);
  font-size: clamp(13px, 1.6vh, 15px);
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.btn-login:hover { background: #1341a8; }
.btn-login:active { transform: scale(.99); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }

.login-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: clamp(11px, 1.4vh, 13px);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(8px, 1.5vh, 16px);
}

.alert-box {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: clamp(11px, 1.4vh, 13px);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(8px, 1.5vh, 16px);
}
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #16a34a; }
.alert-danger { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }

.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  font-size: clamp(13px, 1.6vh, 16px);
}
.pw-toggle:hover { color: #6b7280; }

.forgot-link {
  font-size: clamp(10px, 1.3vh, 12px);
  color: #1a56db;
  text-decoration: none;
  transition: color .2s;
}
.forgot-link:hover { color: #1341a8; text-decoration: underline; }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.back-link {
  font-size: clamp(11px, 1.4vh, 13px);
  color: #1a56db;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.back-link:hover { color: #1341a8; text-decoration: underline; }

.loading-state {
  text-align: center;
  padding: clamp(16px, 3vh, 32px) 0;
}
.spinner {
  border: 3px solid #e5e7eb;
  border-top: 3px solid #1a56db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alt blok: app + footer */
.login-bottom {}
.app-section {
  padding-top: clamp(8px, 1.5vh, 16px);
  border-top: 1px solid #f3f4f6;
}
.app-section-label {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-align: center;
  margin-bottom: clamp(6px, 1vh, 10px);
}
.app-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: nowrap;
}
.app-btn-left {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: clamp(5px, 1vh, 9px) clamp(8px, 1.5vw, 14px);
  color: #1f2937;
  text-decoration: none;
  background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
  min-width: 120px;
}
.app-btn-left:hover {
  border-color: #1a56db;
  background: #f0f5ff;
  color: #1a56db;
}
.app-btn-left .abl-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.app-btn-left .abl-text {
  text-align: left;
  line-height: 1.2;
}
.app-btn-left .abl-text small {
  font-size: 9px;
  color: #6b7280;
  display: block;
}
.app-btn-left .abl-text strong {
  font-size: 12px;
  font-weight: 700;
}
.app-btn-left.logo-only {
  padding: clamp(4px, .8vh, 7px) clamp(6px, 1.2vw, 10px);
  min-width: unset;
  border-color: #e5e7eb;
}
.app-store-logo {
  height: clamp(24px, 3.5vh, 36px);
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.login-footer {
  margin-top: clamp(6px, 1.2vh, 14px);
  font-size: 10px;
  color: #c4c9d4;
  text-align: center;
}

/* ── Sağ Panel (Görsel) — order:1 ile sola yerleşir ──────── */
.login-right {
  order: 1;
  flex: 0 0 66.667%;
  width: 66.667%;
  min-height: 100vh;
  background: linear-gradient(145deg, #1a2744 0%, #1a3a7a 45%, #2563eb 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-right::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.login-right::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.login-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 48px) clamp(32px, 5vw, 64px);
}
.login-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.login-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}
.login-default-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: .6;
}
.login-default-visual .vis-icon {
  width: 96px;
  height: 96px;
  background: rgba(255,255,255,.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,.8);
}
.login-text-area {
  text-align: center;
  margin-top: clamp(12px, 2.5vh, 28px);
  flex-shrink: 0;
}
.login-headline {
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.login-subtext {
  font-size: clamp(12px, 1.4vw, 14px);
  color: rgba(255,255,255,.7);
  max-width: 440px;
  line-height: 1.65;
  margin: 0 auto;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 770px) {
  body.login-page {
    overflow: auto;
    height: auto;
    min-height: 100vh;
  }
  .login-split {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  /* Görseli tamamen gizle */
  .login-right {
    display: none !important;
  }
  /* Formu tam genişliğe çıkar */
  .login-left {
    flex: none;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    order: 1;
    box-shadow: none;
  }
}

/* ============================================================
   DROPDOWN TAŞMA DÜZELTMESİ
   .table-card overflow:hidden + .table-responsive overflow-x:auto
   birlikte, tablodaki işlem menüsünü kesiyordu. Liste kısaysa
   (tek personel) menü karta sığmayıp görünmez oluyordu.
   main.js menü açılınca .dropdown-open ekler, kapanınca kaldırır.
============================================================ */
.table-card.dropdown-open,
.table-responsive.dropdown-open { overflow: visible !important; }

/* JS devre dışıysa / eski tarayıcı için yedek */
.table-card:has(.dropdown-menu.show),
.table-responsive:has(.dropdown-menu.show) { overflow: visible; }

/* ============================================================
   KÜÇÜK EKRAN (telefon) — okunabilirlik
============================================================ */
@media (max-width: 575.98px) {
  .page-content { padding: 12px; }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-value { font-size: 19px; }
  .stat-label { font-size: 11px; }
  .table { font-size: 12.5px; }
  .card-header { font-size: 13.5px; }
  .modal-dialog { margin: 8px; }
  /* Kart içi buton grupları alt alta sığsın */
  .card-header .btn-sm, .page-header .btn { white-space: nowrap; }
}
