﻿/* =========================================================
   Vak?f Burs Y?netim ? Kurumsal UI
   Sadece aray?z. Backend mant???na dokunulmaz.

   Responsive standartlar (yeni mod?ller i?in):
   - Filtre sat?rlar?: .filter-bar + col-12 col-sm-6 col-lg-* (col-md-1 yok)
   - Tablolar: her zaman .table-responsive i?inde
   - Aksiyon h?creleri: .table-actions
   - Modallar: Html::modalDialog('sm|md|lg|xl') ? varsay?lan SMALL
   - sm=onay/uyar?  md=form  lg=detay  xl=tablo
   - Butonlar: sayfa LARGE 44px, modal footer MEDIUM 40px
   - Yatay ta?ma yasak; overflow container ile y?net
   ========================================================= */

:root {
  /* Vuslat Vakf? marka paleti (vuslatvakfi.org.tr) */
  --brand-teal: #138999;
  --brand-teal-dark: #0f6f7c;
  --brand-teal-soft: #e6f5f7;
  --brand-orange: #DF5311;
  --brand-orange-dark: #c2470e;
  --brand-ink: #0b2c33;
  --brand-muted: #768385;

  --sidebar: #0b2c33;
  --sidebar-hover: #134049;
  --sidebar-active: #138999;
  --bg: #f5f8f9;
  --card: #FFFFFF;
  --heading: #0b2c33;
  --text: #4a5b61;
  --border: #d7e3e6;
  --success: #16A34A;
  --warning: #DF5311;
  --danger: #DC2626;
  --info: #138999;
  --muted: #768385;
  --sidebar-width: 280px;
  --topbar-height: 72px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 44, 51, 0.06), 0 4px 12px rgba(11, 44, 51, 0.04);
  --transition: 200ms ease;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --scroll-size: 8px;
  --scroll-track: transparent;
  --scroll-thumb: rgba(11, 44, 51, 0.22);
  --scroll-thumb-hover: rgba(19, 137, 153, 0.72);

  /* Modal design system ? tek kaynak */
  --modal-sm: 420px;
  --modal-md: 640px;
  --modal-lg: 900px;
  --modal-xl: 1200px;
  --modal-gutter: 16px;
  --modal-radius: 12px;
  --modal-shadow: 0 16px 40px rgba(11, 44, 51, 0.16);
  --modal-overlay: rgba(11, 44, 51, 0.48);
  --modal-padding: 20px;
  --modal-header-padding: 16px 20px;
  --modal-footer-padding: 12px 20px;
  --modal-title-size: 1.125rem;
  --modal-max-height: calc(100vh - 48px);
  --modal-max-height: calc(100dvh - 48px);

  --btn-height-sm: 36px;
  --btn-height-md: 40px;
  --btn-height-lg: 44px;
  --btn-radius: 8px;
  --btn-min-width: 90px;

  --z-sticky: 1020;
  --z-dropdown: 1030;
  --z-sidebar-backdrop: 1035;
  --z-sidebar: 1040;
  --z-overlay: 1050;
  --z-modal: 1055;
  --z-toast: 1080;
  --z-tooltip: 1090;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  height: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

/* Modern scrollbar ? WebKit (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: var(--scroll-size);
  height: var(--scroll-size);
}
*::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

/* Dark surfaces (sidebar, dark panels) */
.admin-sidebar,
.admin-sidebar * {
  --scroll-thumb: rgba(255, 255, 255, 0.22);
  --scroll-thumb-hover: rgba(19, 137, 153, 0.9);
  --scroll-track: transparent;
}

.sidebar-nav {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.topbar-title,
.sidebar-brand-text strong {
  color: var(--heading);
}

a { color: var(--info); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-teal-dark); }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-primary,
.btn-success {
  --bs-btn-bg: var(--info);
  --bs-btn-border-color: var(--info);
  --bs-btn-hover-bg: var(--brand-teal-dark);
  --bs-btn-hover-border-color: var(--brand-teal-dark);
  --bs-btn-active-bg: #0c5a65;
  --bs-btn-active-border-color: #0c5a65;
  background-color: var(--info);
  border-color: var(--info);
  color: #fff;
}
.btn-primary:hover,
.btn-success:hover {
  background-color: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  color: #fff;
}

.btn-outline-secondary,
.btn-outline-success {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: #F1F5F9;
  --bs-btn-hover-border-color: #CBD5E1;
  --bs-btn-hover-color: var(--heading);
  color: var(--text);
  border-color: var(--border);
  background: var(--card);
}
.btn-outline-secondary:hover,
.btn-outline-success:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--heading);
}

.btn-outline-primary {
  --bs-btn-color: var(--info);
  --bs-btn-border-color: var(--info);
  --bs-btn-hover-bg: var(--brand-teal-soft);
  --bs-btn-hover-border-color: var(--brand-teal-dark);
  --bs-btn-hover-color: var(--brand-teal-dark);
  color: var(--info);
  border-color: var(--info);
  background: var(--card);
}
.btn-outline-primary:hover {
  background: var(--brand-teal-soft);
  border-color: var(--brand-teal-dark);
  color: var(--brand-teal-dark);
}

.btn-outline-danger {
  --bs-btn-color: var(--danger);
  --bs-btn-border-color: var(--danger);
  --bs-btn-hover-bg: #FEF2F2;
  --bs-btn-hover-border-color: #B91C1C;
  --bs-btn-hover-color: #B91C1C;
  color: var(--danger);
  border-color: var(--danger);
  background: var(--card);
}
.btn-outline-danger:hover {
  background: #FEF2F2;
  border-color: #B91C1C;
  color: #B91C1C;
}

.btn-danger {
  background-color: var(--danger);
  border-color: var(--danger);
}
.btn-warning {
  background-color: var(--warning);
  border-color: var(--warning);
  color: #0F172A;
}
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; }
.btn-lg { padding: 0.7rem 1.2rem; }

.btn-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  position: relative;
}
.btn-icon:hover { background: #F1F5F9; color: var(--heading); }

.btn-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  color: var(--heading);
}
.btn-user-menu:hover { background: #F1F5F9; }
.user-menu-avatar,
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E2E8F0;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------
   Admin shell + FIXED sidebar
   --------------------------------------------------------- */
.admin-body {
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  max-height: 100vh;
  background: var(--sidebar);
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  z-index: var(--z-sidebar);
  overflow: hidden;
}

.sidebar-brand {
  height: auto;
  min-height: auto;
  max-height: none;
  padding: 1rem 1rem 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  flex-shrink: 0;
  background: var(--sidebar);
}

.sidebar-brand-logo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: transparent;
  border-radius: 0;
  padding: 0.15rem 0;
  box-shadow: none;
  /* Logodaki siyah zemin men? rengiyle kayna??r, beyaz logo kal?r */
  mix-blend-mode: lighten;
}

.sidebar-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--sidebar-active);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
  text-align: center;
}
.sidebar-brand-text strong {
  color: #F8FAFC;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sidebar-brand-text span {
  color: #9eb8bd;
  font-size: 0.72rem;
}

.sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0.75rem;
}

.sidebar-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 244, 246, 0.72);
  padding: 1.1rem 0.85rem 0.4rem;
  margin-top: 0.55rem;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 0.35rem;
}
.sidebar-section-label:first-child {
  margin-top: 0;
  padding-top: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 44px;
  padding: 0 0.85rem;
  margin-bottom: 0.2rem;
  border-radius: 8px;
  color: #CBD5E1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}
.sidebar-link i {
  width: 18px;
  font-size: 1.05rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.9;
}
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #F8FAFC;
}
.sidebar-link.is-active {
  background: var(--sidebar-active);
  color: #FFFFFF;
}
.sidebar-link.is-active i { opacity: 1; }
button.sidebar-link-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
button.sidebar-link-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Accordion menu */
.sidebar-acc {
  margin: 0.15rem 0;
}
.sidebar-acc--nested {
  margin: 0.1rem 0 0.1rem 0.15rem;
}
.sidebar-acc-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #E2E8F0;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-acc-toggle:hover,
.sidebar-acc-toggle:focus-visible {
  background: var(--sidebar-hover);
  color: #fff;
  outline: none;
}
.sidebar-acc-toggle > i:first-child {
  width: 1.15rem;
  text-align: center;
  opacity: 0.92;
  flex-shrink: 0;
}
.sidebar-acc-toggle > span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}
.sidebar-acc-chevron {
  margin-left: auto;
  font-size: 0.78rem;
  opacity: 0.75;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.sidebar-acc-toggle.is-open .sidebar-acc-chevron {
  transform: rotate(90deg);
}
.sidebar-acc-toggle--sub {
  min-height: 44px;
  padding: 0.45rem 0.75rem 0.45rem 0.95rem;
  font-weight: 600;
  font-size: 0.84rem;
  color: #CBD5E1;
}
.sidebar-acc-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0.4;
  transition: max-height 0.24s ease, opacity 0.2s ease;
  padding-left: 0.2rem;
}
.sidebar-acc-panel.is-open {
  max-height: 1200px;
  opacity: 1;
}
.sidebar-acc-panel[hidden]:not(.is-open) {
  display: none;
}
.sidebar-link--leaf {
  min-height: 44px;
  height: auto;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  font-weight: 500;
}
.sidebar-acc--nested .sidebar-link--leaf {
  padding-left: 1.35rem;
  min-height: 48px;
}
.sidebar-link--leaf .badge {
  font-size: 0.68rem;
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .sidebar-acc-toggle,
  .sidebar-acc-toggle--sub,
  .sidebar-link,
  .sidebar-link--leaf {
    min-height: 48px;
  }
}

.sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 0.9rem;
  background: var(--sidebar);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.sidebar-user-avatar {
  background: #334155;
  color: #F8FAFC;
}
.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.sidebar-user-meta strong {
  color: #F8FAFC;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-meta span {
  color: #94A3B8;
  font-size: 0.72rem;
}

.btn-sidebar-logout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: transparent;
  color: #E2E8F0;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color var(--transition), border-color var(--transition);
}
.btn-sidebar-logout:hover {
  background: var(--sidebar-hover);
  border-color: rgba(148, 163, 184, 0.4);
  color: #fff;
}

.admin-shell {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* width: calc(...) + margin-left birlikte yatay kaymaya yol a??yordu */
  width: auto;
  max-width: calc(100% - var(--sidebar-width));
  min-width: 0;
  overflow-x: hidden;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  max-width: 100%;
  min-width: 0;
  /* Dropdown men?lerin kesilmemesi i?in; ta?may? ?ocuklarda min-width:0 ile y?net */
  overflow: visible;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.topbar-panel-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.topbar-panel-switch .form-select {
  min-width: 0;
  width: auto;
  max-width: 140px;
  min-height: 36px;
}

.topbar-titles { min-width: 0; }
.topbar-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--info); }
.breadcrumb-sep { opacity: 0.6; }

.topbar-search {
  position: relative;
  display: none;
}
@media (min-width: 992px) {
  .topbar-search { display: block; }
}
.topbar-search i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.topbar-search input {
  width: 240px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #F8FAFC;
  padding: 0 0.85rem 0 2.2rem;
  color: var(--heading);
  font-size: 0.88rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.topbar-search input:focus {
  outline: none;
  border-color: #7ec4cd;
  box-shadow: 0 0 0 3px rgba(19, 137, 153, 0.14);
  background: #fff;
}

.notif-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 1.5px solid #fff;
  display: none;
}
.btn-icon.has-alerts .notif-dot {
  display: block;
}

.inbox-alert-bell-item {
  white-space: normal;
  max-width: 320px;
}
.inbox-alert-bell-item strong {
  display: block;
  font-size: 0.86rem;
}

.inbox-alert-groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.inbox-alert-group-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(19, 137, 153, 0.16);
  border-radius: 12px;
  background: #f7fbfc;
  color: var(--brand-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.inbox-alert-group-link:hover,
.inbox-alert-group-link:focus-visible {
  background: #eef8fa;
  border-color: rgba(19, 137, 153, 0.32);
  color: var(--brand-ink);
  transform: translateY(-1px);
}
.inbox-alert-group-count {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar-dropdown {
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
}
.topbar-dropdown .dropdown-item {
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text);
}
.topbar-dropdown .dropdown-item:hover { background: #F1F5F9; color: var(--heading); }

.admin-main {
  flex: 1;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: var(--z-sidebar-backdrop);
  opacity: 1;
  transition: opacity 0.2s ease;
}
.sidebar-backdrop[hidden] {
  display: block !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.sidebar-panel-switch {
  padding: 0.65rem 0.85rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-panel-switch .form-select {
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.sidebar-panel-switch .form-select option {
  color: #0b2c33;
}

/* ---------------------------------------------------------
   Surfaces / cards
   --------------------------------------------------------- */
.surface {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;
}

.meeting-day-card {
  border-color: color-mix(in srgb, var(--primary, #0d6efd) 28%, var(--border));
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--primary, #0d6efd) 10%, transparent);
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  height: 100%;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: #CBD5E1; }
.stat-card .label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.stat-card .value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}
.stat-card .fw-bold,
.stat-card .small { color: var(--text); }

.chart-status-wrap {
  width: 220px;
  height: 220px;
  max-width: 100%;
  margin: 0 auto;
}

.chart-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chart-box {
  height: 260px;
  width: 100%;
  position: relative;
}

.chart-box-wide {
  height: 280px;
}

.chart-data-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
}

.chart-data-list-wide {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.chart-data-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--text);
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}

.chart-data-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status-query-panel {
  border-left: 4px solid var(--info);
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.status-query-panel .form-control {
  background: #fff;
}

.status-result dt {
  color: var(--muted);
  font-weight: 500;
}

.status-result dd {
  margin-bottom: 0.55rem;
}

.chart-data-list li strong {
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.chart-grid > [class*="col-"] {
  display: flex;
}

.chart-grid > [class*="col-"] > .chart-card {
  width: 100%;
}

/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */
.table-responsive.surface,
.surface.table-responsive {
  overflow: auto;
  max-height: min(70vh, 780px);
}

.table {
  margin-bottom: 0;
  color: var(--text);
  --bs-table-bg: transparent;
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.th-sort {
  color: #64748B;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color var(--transition);
  user-select: none;
}
.th-sort:hover,
.th-sort.is-sorted {
  color: var(--info);
}
.th-sort i {
  font-size: 0.7rem;
}

.sort-bar .form-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.spotlight-section {
  border: 1px solid var(--border);
}

.spotlight-panel {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.spotlight-panel-head {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.spotlight-panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--heading);
  font-weight: 700;
}

.spotlight-panel-head span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.spotlight-list {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spotlight-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.spotlight-index {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.spotlight-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition), background-color var(--transition);
}

.spotlight-item:hover {
  border-color: #7ec4cd;
  background: var(--brand-teal-soft);
  color: inherit;
}

.spotlight-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spotlight-main strong {
  color: var(--heading);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-main span {
  color: var(--text);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.spotlight-city,
.spotlight-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.spotlight-rank {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--info);
  font-variant-numeric: tabular-nums;
}

.spotlight-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--heading);
  background: var(--brand-teal-soft);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-variant-numeric: tabular-nums;
}

.spotlight-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 767px) {
  .spotlight-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .spotlight-meta {
    justify-content: flex-start;
  }
}
.table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: var(--border);
  font-size: 0.9rem;
}
.table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: #F1F5F9;
  background-color: #F1F5F9;
}
.table > tbody > tr:nth-of-type(even) > * {
  background-color: #FCFDFE;
}
.table .fw-semibold,
.table .fw-bold { color: var(--heading); }

.table > tbody > tr.row-risk > *,
.table > tbody > tr.row-docs-incomplete > * {
  background-color: #FEF2F2 !important;
  color: #991B1B;
}
.table-hover > tbody > tr.row-risk:hover > *,
.table-hover > tbody > tr.row-docs-incomplete:hover > * {
  background-color: #FEE2E2 !important;
}
.risk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #DC2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.risk-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #FECACA;
  border: 1px solid #F87171;
  display: inline-block;
}

.pagination .page-link {
  color: var(--text);
  border-color: var(--border);
}
.pagination .page-item.active .page-link {
  background: var(--info);
  border-color: var(--info);
}

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
.form-label {
  color: var(--heading);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}
.form-control,
.form-select {
  border-color: var(--border);
  border-radius: 8px;
  color: var(--heading);
  min-height: 44px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control-sm,
.form-select-sm {
  min-height: 40px;
}
.form-control:focus,
.form-select:focus {
  border-color: #7ec4cd;
  box-shadow: 0 0 0 3px rgba(19, 137, 153, 0.14);
}
.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow);
}
.form-section h2 {
  font-size: 0.95rem;
  color: var(--heading);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.step-nav .step-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.step-nav .step-btn:hover { background: #F1F5F9; }
.step-nav .step-btn.active {
  background: var(--info);
  border-color: var(--info);
  color: #fff;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--card);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.type-card:hover { border-color: #CBD5E1; }
.type-card.is-selected {
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(19, 137, 153, 0.12);
  background: #fff;
}
.type-card-title {
  font-weight: 700;
  color: var(--heading);
}
.type-card-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 200ms ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.honeypot {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#bursForm {
  position: relative;
}

/* ---------------------------------------------------------
   Candidate / CV
   --------------------------------------------------------- */
.candidate-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.candidate-header {
  background: var(--sidebar);
  color: #F8FAFC;
  padding: 1.5rem;
}
.candidate-header-cv {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.candidate-header-main {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1 1 320px;
  min-width: 0;
}
.candidate-header-info {
  min-width: 0;
  flex: 1 1 auto;
}
.candidate-header-subtitle {
  opacity: 0.92;
  line-height: 1.45;
}
.candidate-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.candidate-portrait-block {
  width: 112px;
  flex-shrink: 0;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.candidate-portrait {
  width: 112px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}
.candidate-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.candidate-portrait-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.9);
}
.candidate-portrait-applied {
  margin: 0;
  text-align: center;
  line-height: 1.25;
  color: rgba(248, 250, 252, 0.9);
}
.candidate-portrait-applied .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}
.candidate-portrait-applied time {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.candidate-portrait-applied .date,
.candidate-portrait-applied .time {
  display: block;
}
.candidate-header .h3,
.candidate-header h2 { color: #F8FAFC; }
.score-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  min-width: 88px;
}
.badge-chip {
  display: inline-block;
  background: var(--brand-teal-soft);
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin: 0.15rem;
  font-size: 0.82rem;
}

.cv-sheet {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.5rem 0.5rem;
}
.cv-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem 0.15rem;
}
.cv-toggle-all {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.15rem 0;
  min-height: 0 !important;
  line-height: 1.2;
  cursor: pointer;
}
.cv-toggle-all:hover,
.cv-toggle-all:focus-visible {
  color: var(--heading);
}
.cv-section {
  padding: 0.15rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.cv-section:last-child { border-bottom: 0; }
.cv-title {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--heading);
  font-weight: 700;
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}
.cv-title::-webkit-details-marker { display: none; }
.cv-title::marker { content: ""; }
.cv-title i {
  font-size: 0.95rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.cv-section[open] > .cv-title {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}
.cv-section[open] > .cv-title i {
  transform: rotate(180deg);
}
.cv-section-body {
  padding: 0.15rem 0 0.85rem;
}
.cv-title:hover { color: var(--brand-teal, #138999); }
.cv-title:focus-visible {
  outline: 2px solid var(--brand-teal, #138999);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .cv-title i { transition: none; }
}
.cv-row {
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: 0.35rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #F1F5F9;
  align-items: start;
}
.cv-row:last-child { border-bottom: 0; }
.cv-label { color: var(--muted); font-size: 0.88rem; }
.cv-value { color: var(--heading); font-weight: 600; font-size: 0.93rem; word-break: break-word; }
.cv-text-block { margin-bottom: 1rem; }
.cv-text-block:last-child { margin-bottom: 0; }
.cv-text-block h4 { font-size: 0.9rem; margin: 0 0 0.35rem; color: var(--heading); }
.cv-text-block p { margin: 0; color: var(--text); line-height: 1.55; }
.cv-iban-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.cv-iban-form-row .form-control {
  flex: 1 1 12rem;
  min-width: 0;
}

/* ---------------------------------------------------------
   Public / Auth
   --------------------------------------------------------- */
.public-body {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
.public-header {
  background: var(--sidebar);
  color: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  overflow-x: hidden;
}
.public-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #F8FAFC !important;
  font-weight: 700;
  font-size: 1rem;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--info);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.public-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.public-nav a { color: #E2E8F0; font-weight: 500; }
.public-nav a:hover { color: #fff; }
.public-footer {
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
  overflow-x: hidden;
}

.public-main {
  overflow-x: hidden;
  max-width: 100%;
}

.hero-panel {
  background: var(--sidebar);
  color: #F8FAFC;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.hero-panel h1 {
  color: #F8FAFC;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-panel .opacity-75 { color: #94A3B8 !important; }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-card .h4 { color: var(--heading); }

/* Alerts / badges */
.alert { border-radius: 10px; border-color: var(--border); }
.badge.text-bg-success { background-color: var(--success) !important; }
.badge.text-bg-warning { background-color: var(--warning) !important; color: #0F172A !important; }
.badge.text-bg-danger { background-color: var(--danger) !important; }
.badge.text-bg-info { background-color: var(--info) !important; }
.badge.text-bg-secondary { background-color: #64748B !important; }

.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-secondary { color: var(--muted) !important; }

/* ---------------------------------------------------------
   Responsive ? Mobile First + Tablet + Desktop
   --------------------------------------------------------- */

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.admin-main > *,
.public-main > .container,
.public-main > .container-fluid {
  max-width: 100%;
}

/* =========================================================
   Global modal system
   Boyut: Html::modalDialog('sm|md|lg|xl')
   Varsay?lan (s?n?fs?z) = SMALL ? onay / uyar? / bilgi
   ========================================================= */
.modal {
  z-index: var(--z-modal);
}

.modal-backdrop {
  --bs-backdrop-bg: var(--modal-overlay);
  --bs-backdrop-opacity: 1;
  background-color: var(--modal-overlay);
  z-index: var(--z-overlay);
}

.modal-dialog {
  --modal-width: var(--modal-sm);
  width: min(var(--modal-width), calc(100vw - (var(--modal-gutter) * 2)));
  max-width: min(var(--modal-width), calc(100vw - (var(--modal-gutter) * 2)));
  height: auto;
  margin: var(--modal-gutter) auto;
}

.modal-dialog.modal-sm { --modal-width: var(--modal-sm); }
.modal-dialog.modal-md { --modal-width: var(--modal-md); }
.modal-dialog.modal-lg { --modal-width: var(--modal-lg); }
.modal-dialog.modal-xl { --modal-width: var(--modal-xl); }

.modal-dialog.modal-fullscreen {
  width: 100%;
  max-width: 100%;
  margin: 0;
  --modal-width: 100%;
}

.modal-content {
  height: auto;
  max-height: var(--modal-max-height);
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: var(--modal-radius);
  box-shadow: var(--modal-shadow);
  overflow: hidden;
}

.modal-fullscreen .modal-content {
  max-height: 100vh;
  border-radius: 0;
}

.modal-header {
  padding: var(--modal-header-padding);
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  gap: 0.75rem;
}

.modal-title,
.modal-header .modal-title {
  font-family: var(--font);
  font-size: var(--modal-title-size);
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-ink);
  margin: 0;
}

.modal-header .btn-close {
  width: 2rem;
  height: 2rem;
  padding: 0.4rem;
  margin: -0.15rem -0.25rem -0.15rem auto;
  flex-shrink: 0;
}

.modal-body {
  padding: var(--modal-padding);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

.modal-footer {
  padding: var(--modal-footer-padding);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.modal-footer > * {
  margin: 0 !important;
}

.modal-footer .btn {
  min-height: var(--btn-height-md);
  height: var(--btn-height-md);
  min-width: var(--btn-min-width);
  width: auto;
  flex: 0 0 auto;
  padding: 0 1rem;
  border-radius: var(--btn-radius);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.admin-main .modal-footer .btn,
.public-main .modal-footer .btn {
  min-height: var(--btn-height-md);
  height: var(--btn-height-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (min-width: 576px) {
  .modal-dialog,
  .modal-dialog.modal-sm,
  .modal-sm {
    max-width: min(var(--modal-sm), calc(100vw - (var(--modal-gutter) * 2)));
  }

  .modal-dialog.modal-md {
    max-width: min(var(--modal-md), calc(100vw - (var(--modal-gutter) * 2)));
  }
}

@media (min-width: 992px) {
  .modal-dialog.modal-lg,
  .modal-lg {
    max-width: min(var(--modal-lg), calc(100vw - (var(--modal-gutter) * 2)));
  }

  .modal-dialog.modal-xl,
  .modal-xl {
    max-width: min(var(--modal-xl), calc(100vw - (var(--modal-gutter) * 2)));
  }
}

@media (min-width: 1200px) {
  .modal-dialog.modal-xl,
  .modal-xl {
    max-width: min(var(--modal-xl), calc(100vw - (var(--modal-gutter) * 2)));
  }
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.table-responsive.surface,
.surface.table-responsive {
  overflow: auto;
  max-height: min(70vh, 780px);
}

.admin-main .btn,
.public-main .btn,
.auth-body .btn {
  min-height: var(--btn-height-lg);
  border-radius: var(--btn-radius);
}

.btn-size-sm {
  min-height: var(--btn-height-sm);
  height: var(--btn-height-sm);
  padding-inline: 0.75rem;
  border-radius: var(--btn-radius);
}

.btn-size-md {
  min-height: var(--btn-height-md);
  height: var(--btn-height-md);
  padding-inline: 1rem;
  border-radius: var(--btn-radius);
}

.btn-size-lg {
  min-height: var(--btn-height-lg);
  height: var(--btn-height-lg);
  padding-inline: 1.1rem;
  border-radius: var(--btn-radius);
}
.admin-main .btn-sm,
.public-main .btn-sm {
  min-height: 40px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
}
.form-check-label {
  padding-left: 0.15rem;
  line-height: 1.4;
}

.dashboard-kpi-card {
  padding: 1rem;
  border-radius: 1rem;
  height: 100%;
  min-width: 0;
}
.dashboard-kpi-card .label {
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-word;
}
.dashboard-kpi-card .value {
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.35rem;
  word-break: break-word;
}
.dashboard-kpi-card .meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.hq-app-overview {
  border: 1px solid color-mix(in srgb, var(--brand-teal) 28%, var(--border));
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-teal-soft) 72%, #fff) 0%, var(--card) 7.5rem),
    var(--card);
  position: relative;
  overflow: hidden;
}
.hq-app-overview::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-teal) 0%, var(--brand-orange) 100%);
}
.hq-app-overview > * {
  position: relative;
  z-index: 1;
}
#hq-overview-title {
  color: var(--brand-ink);
  font-weight: 800;
}
#hq-overview-title + .small {
  color: var(--brand-muted) !important;
}
.hq-overview-kpi {
  height: 100%;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
}
.hq-overview-kpi .label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.hq-overview-kpi .value {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
  color: var(--brand-ink);
}
.hq-overview-kpi .meta {
  font-size: 0.78rem;
  color: var(--brand-muted);
  margin-top: 0.4rem;
}
.hq-overview-kpi-total {
  border-color: color-mix(in srgb, var(--brand-teal) 35%, var(--border));
  background: linear-gradient(145deg, var(--brand-teal-soft) 0%, #fff 70%);
}
.hq-overview-kpi-total .value {
  color: var(--brand-teal-dark);
}
.hq-overview-kpi-male {
  border-color: color-mix(in srgb, var(--brand-teal) 30%, var(--border));
  background: linear-gradient(145deg, rgba(19, 137, 153, 0.12) 0%, #fff 75%);
}
.hq-overview-kpi-male .value {
  color: var(--brand-teal);
}
.hq-overview-kpi-female {
  border-color: color-mix(in srgb, var(--brand-orange) 35%, var(--border));
  background: linear-gradient(145deg, rgba(223, 83, 17, 0.12) 0%, #fff 75%);
}
.hq-overview-kpi-female .value {
  color: var(--brand-orange-dark);
}
.hq-overview-kpi-yurt {
  border-color: color-mix(in srgb, var(--brand-ink) 18%, var(--border));
  background: linear-gradient(145deg, rgba(11, 44, 51, 0.06) 0%, #fff 75%);
}
.hq-overview-kpi-burs {
  border-color: color-mix(in srgb, var(--brand-teal) 22%, var(--border));
  background: linear-gradient(145deg, rgba(19, 137, 153, 0.08) 0%, #fff 75%);
}
.hq-overview-panel {
  height: 100%;
  min-width: 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 16%, var(--border));
  border-radius: 1rem;
  background: var(--card);
}
.hq-overview-panel > .h6 {
  color: var(--brand-ink);
  font-weight: 750;
}
.hq-overview-chart {
  height: 220px;
}
.hq-city-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--brand-teal) 14%, var(--border));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
}
.hq-city-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.86rem;
  color: var(--text);
  background: var(--brand-teal-soft);
  border: 1px solid color-mix(in srgb, var(--brand-teal) 18%, var(--border));
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.hq-city-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hq-city-list li strong {
  color: var(--brand-teal-dark);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  line-height: 1.2;
}
.hq-city-purpose {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--brand-muted);
  white-space: nowrap;
}
.dashboard-lead {
  display: block;
}
@media (max-width: 991.98px) {
  .dashboard-lead {
    display: flex;
    flex-direction: column;
  }
  .dashboard-lead > .hq-app-overview {
    order: -1;
  }
  .dashboard-lead > .dashboard-panel-switch {
    order: 0;
  }
}
.kpi-purpose-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.kpi-purpose-split span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.kpi-purpose-split strong {
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 575.98px) {
  .hq-city-list {
    grid-template-columns: 1fr;
  }
  .hq-overview-chart {
    height: 200px;
  }
}

.qurbani-decision-form {
  display: inline-block;
  width: 100%;
  max-width: 240px;
  min-width: 0;
  vertical-align: top;
}

.qurbani-decision-actions .btn {
  flex: 1 1 auto;
}

.city-permission-grid {
  max-height: 320px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.candidate-avatar {
  width: 84px;
  height: 84px;
  font-size: 2rem;
  flex-shrink: 0;
}
.candidate-avatar-img {
  width: 84px;
  height: 84px;
  object-fit: cover;
}

.scholar-docs-panel.sticky-lg-top {
  top: 1rem;
}
.scholar-docs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.doc-preview-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  margin-bottom: 0.85rem;
}
.doc-preview-card:last-of-type {
  margin-bottom: 0;
}
.doc-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: #F8FAFC;
}
.doc-preview-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--heading);
}
.doc-preview-link {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.doc-preview-frame {
  background: #fff;
}
.doc-preview-frame.is-photo {
  max-width: 160px;
  margin: 0.85rem auto;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.doc-preview-frame.is-photo img,
.doc-preview-frame.is-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.doc-preview-applied {
  margin: 0 0.85rem 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.doc-preview-applied time {
  font-weight: 700;
}
.doc-preview-frame.is-image {
  max-height: 280px;
  overflow: hidden;
}
.doc-preview-frame.is-pdf-placeholder {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  min-height: 120px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.doc-preview-pdf-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.doc-preview-pdf-copy {
  min-width: 0;
}
.doc-preview-pdf-copy strong {
  display: block;
  color: var(--heading);
  margin-bottom: 0.2rem;
}
.doc-preview-empty {
  padding: 1rem 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}
.doc-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.85rem 0.85rem 1rem;
  margin-top: 0 !important;
}
.doc-photo-upload .form-label {
  margin-bottom: 0;
  width: 100%;
}
.doc-photo-upload .form-control {
  width: 100%;
  max-width: 100%;
}
.doc-photo-upload .form-text {
  width: 100%;
  margin-top: 0;
}
.doc-photo-upload .btn {
  margin-top: 0.25rem;
  min-width: 11rem;
}

.commission-panel.sticky-lg-top {
  top: 1rem;
}

.commission-form--locked fieldset {
  opacity: 0.85;
}

.pending-manager-status-line {
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.rejection-reason-full,
.rejection-reason-preview {
  white-space: pre-wrap;
  overflow: visible;
  max-height: none;
  word-break: break-word;
}

.stat-card .value.value-money {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
}

.uni-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  vertical-align: middle;
  background: var(--info);
  flex-shrink: 0;
}

.min-w-0 {
  min-width: 0;
}

.attendance-sheet-wrap {
  overflow-x: auto;
}

.attendance-sheet {
  min-width: 980px;
}

.attendance-sheet th,
.attendance-sheet td {
  vertical-align: middle;
}

.attendance-status-cell {
  width: 1%;
  white-space: nowrap;
}

.attendance-status-pills {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
}

.attendance-pill {
  margin: 0;
  cursor: pointer;
}

.attendance-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.attendance-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.attendance-pill:hover span {
  border-color: var(--brand-teal);
  color: var(--brand-ink);
}

.attendance-pill input:focus-visible + span {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

.attendance-pill input:checked + span {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}

.attendance-pill-present input:checked + span {
  background: var(--success);
  border-color: var(--success);
}

.attendance-pill-absent input:checked + span {
  background: var(--danger);
  border-color: var(--danger);
}

.attendance-pill-excused input:checked + span {
  background: var(--info);
  border-color: var(--info);
}

.attendance-pill input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.attendance-time-cell {
  white-space: nowrap;
  width: 5.75rem;
}

.attendance-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.attendance-note-cell {
  min-width: 10rem;
}

.attendance-meeting-link {
  display: block;
  height: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.attendance-meeting-link:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow);
  color: inherit;
}

.table-actions {
  white-space: normal !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.table-actions .btn {
  white-space: nowrap;
}

body.sidebar-open {
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .chart-box,
  .chart-box-wide {
    height: 240px;
  }
  .chart-data-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.28);
  }
  .admin-shell {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
  .admin-main {
    padding: 1rem;
  }
  .admin-topbar {
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    padding: 0 0.75rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow: visible;
  }
  .topbar-left {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    gap: 0.5rem;
  }
  .topbar-right {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.25rem;
  }
  .topbar-title {
    font-size: 1.05rem;
    max-width: min(52vw, 14rem);
  }
  .breadcrumb-nav {
    display: none !important;
  }
  #sidebarToggle.btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
  }
  .topbar-panel-switch {
    display: none !important;
  }
  .stat-card {
    min-height: 92px;
    padding: 0.95rem 1rem;
  }
  .stat-card .value {
    font-size: 1.35rem;
  }
  .hero-panel {
    padding: 1.75rem 1.25rem;
  }
  .public-header-inner {
    min-height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .public-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .step-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .step-nav .step-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
  }
  .candidate-header {
    padding: 1.15rem;
  }
  .candidate-header-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .candidate-header-info {
    width: 100%;
  }
  .candidate-header-actions {
    width: 100%;
    justify-content: center;
  }
  .candidate-meta-badges {
    justify-content: center;
  }
  .score-pill {
    min-width: 76px;
  }
  .commission-panel.sticky-lg-top {
    position: static !important;
    top: auto;
  }
  .qurbani-decision-form {
    max-width: none;
    display: block;
  }
}

@media (max-width: 767.98px) {
  .admin-main {
    padding: 0.85rem;
  }
  .surface {
    border-radius: 10px;
  }
  .surface.p-3,
  .surface.p-4,
  .surface.p-md-4 {
    padding: 0.95rem !important;
  }
  .form-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .chart-data-list,
  .chart-data-list-wide {
    grid-template-columns: 1fr;
  }
  .chart-box,
  .chart-box-wide {
    height: 220px;
  }
  .table thead th,
  .table tbody td {
    padding: 0.7rem 0.75rem;
    font-size: 0.84rem;
  }
  /* Prefer readable wrap; never crush to one glyph per line */
  .table tbody td {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .applications-table tbody td {
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* Dar ekranda s?k??an tablolar yatay kayd?r?ls?n (kart olmayanlar) */
  .admin-main .table-responsive > table:not(.budget-card-table):not(.admin-card-table):not(.applications-table) {
    min-width: 720px;
  }
  .table thead th,
  .table tbody td.num,
  .table tbody td.text-nowrap,
  .table tbody td .badge {
    white-space: nowrap;
  }
  .attendance-sheet {
    min-width: 920px;
  }
  .table-actions {
    min-width: 9.5rem;
  }
  .table-actions .btn {
    width: 100%;
  }
  .spotlight-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .spotlight-meta {
    justify-content: flex-start;
  }
  .spotlight-main strong,
  .spotlight-main span {
    white-space: normal;
  }
  .auth-card {
    padding: 1.35rem 1.1rem;
    border-radius: 10px;
  }
  .public-main {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .d-flex.justify-content-between.align-items-center {
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .admin-main form.surface .row > [class*="col-"] {
    margin-bottom: 0;
  }
  .btn.w-100,
  .d-grid .btn {
    width: 100%;
  }
  .hero-cta-group > .btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .filter-bar .form-control,
  .filter-bar .form-select {
    min-height: 44px;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
  }
  /* Inline action forms in tables */
  .table td .d-inline-block[style*="min-width"],
  .table td form[style*="min-width"] {
    min-width: 0 !important;
    width: 100%;
    max-width: 220px;
  }
}

@media (max-width: 575.98px) {
  .cv-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .topbar-title {
    font-size: 0.98rem;
  }
  .brand span:not(.brand-mark) {
    font-size: 0.92rem;
  }
  .stat-card .value,
  .dashboard-kpi-card .value {
    font-size: 1.2rem;
  }
  .display-6 {
    font-size: 1.6rem;
  }
  .hero-panel h1 {
    font-size: 1.45rem;
  }
  .type-card {
    padding: 0.9rem;
  }
  .modal-footer {
    justify-content: stretch;
  }
  .modal-footer .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }
  .candidate-avatar,
  .candidate-avatar-img {
    width: 64px;
    height: 64px;
  }
  .candidate-avatar {
    font-size: 1.5rem;
  }
  .city-permission-actions .btn {
    min-height: 40px;
  }
}

@media (max-width: 379.98px) {
  :root {
    --topbar-height: 64px;
  }
  .admin-main {
    padding: 0.7rem;
  }
  .btn-user-menu {
    padding-right: 0.35rem;
  }
  .sidebar-link {
    font-size: 0.86rem;
  }
  .hero-cta-group > .btn {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .topbar-panel-switch .form-select {
    max-width: 160px;
  }
}

@media (min-width: 1366px) {
  .admin-main { padding: 1.75rem 2rem; }
  .topbar-search input { width: 280px; }
}

@media (min-width: 1600px) {
  .admin-main { padding: 2rem 2.25rem; }
  .topbar-search input { width: 320px; }
}

@media (min-width: 1920px) {
  .admin-main {
    padding: 2rem 2.5rem;
    max-width: 100%;
  }
}

/* ---------------------------------------------------------
   Work task timeline
   --------------------------------------------------------- */
.task-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.35rem;
  position: relative;
}
.task-timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-teal), rgba(19, 137, 153, 0.15));
  border-radius: 999px;
}
.task-timeline-item {
  position: relative;
  padding: 0 0 1.25rem 2rem;
}
.task-timeline-item:last-child {
  padding-bottom: 0;
}
.task-timeline-marker {
  position: absolute;
  left: 0.2rem;
  top: 0.35rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-teal);
  box-shadow: 0 0 0 4px var(--brand-teal-soft);
  z-index: 1;
}
.task-timeline-primary .task-timeline-marker { border-color: var(--brand-teal); }
.task-timeline-success .task-timeline-marker { border-color: var(--success); box-shadow: 0 0 0 4px #e8f8ee; }
.task-timeline-danger .task-timeline-marker { border-color: var(--danger); box-shadow: 0 0 0 4px #fdecec; }
.task-timeline-warning .task-timeline-marker { border-color: var(--brand-orange); box-shadow: 0 0 0 4px #fff1e9; }
.task-timeline-secondary .task-timeline-marker { border-color: #94a3b8; box-shadow: 0 0 0 4px #eef2f6; }
.task-timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  box-shadow: var(--shadow);
}
.task-timeline-note {
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .task-timeline-item {
    padding-left: 1.75rem;
  }
}

/* Work task alert ? global modal chrome + compact body content */
.work-task-alert-eyebrow {
  color: var(--brand-teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
}
.work-task-alert-message {
  font-size: 0.95rem;
  color: var(--brand-ink);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
.work-task-alert-card {
  background: #f7fbfc;
  border: 1px solid rgba(19, 137, 153, 0.16);
  border-radius: var(--modal-radius);
  padding: 0.9rem 1rem;
}
.work-task-alert-task-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-ink);
  margin: 0 0 0.35rem;
}
.work-task-alert-task-desc {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.work-task-alert-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  margin: 0;
}
.work-task-alert-meta dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-muted);
  margin: 0;
}
.work-task-alert-meta dd {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-ink);
  margin: 0;
}

.bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
}

.bulk-toolbar-info {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--brand-ink);
}

.bulk-toolbar .btn[disabled] {
  opacity: 0.45;
}

.applications-table {
  width: max(100%, 1120px);
  min-width: 1120px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

/* Sayfadaki tüm başvuru satırları görünsün; iç max-height ~6 satıra sıkıştırmasın */
.applications-table-wrap.table-responsive,
.surface.table-responsive.applications-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.applications-table col.col-check { width: 48px; }
.applications-table col.col-seq { width: 64px; }
.applications-table col.col-no { width: 150px; }
.applications-table col.col-name { width: auto; }
.applications-table col.col-purpose { width: 100px; }
.applications-table col.col-city { width: 110px; }
.applications-table col.col-uni { width: 220px; }
.applications-table col.col-gender { width: 88px; }
.applications-table col.col-burs { width: 96px; }
.applications-table col.col-rank { width: 76px; }
.applications-table col.col-interview { width: 148px; }
.applications-table col.col-actions { width: 108px; }

.applications-table thead th,
.applications-table tbody td {
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
}

.applications-table .bulk-check-col,
.applications-table th.bulk-check-col,
.applications-table td.bulk-check-col {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  padding-left: 0.75rem;
  padding-right: 0.5rem;
  text-align: center;
}

.applications-table .bulk-check-col .form-check-input {
  display: inline-block;
  margin: 0;
  float: none;
  position: static;
  vertical-align: middle;
  cursor: pointer;
}

.volunteers-table .bulk-check-col,
.volunteers-table th.bulk-check-col,
.volunteers-table td.bulk-check-col {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  padding-left: 0.75rem;
  padding-right: 0.5rem;
  text-align: center;
}

.volunteers-table .bulk-check-col .form-check-input {
  display: inline-block;
  margin: 0;
  float: none;
  position: static;
  vertical-align: middle;
  cursor: pointer;
}

.applications-table .col-interview {
  overflow: hidden;
}

.applications-table .col-interview .badge {
  display: inline-flex;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  font-size: 0.7rem;
  padding: 0.28rem 0.45rem;
}

.applications-table .col-actions,
.applications-table td.table-actions {
  display: table-cell;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  padding: 0.4rem 0.7rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
}

.admin-main .applications-table .application-detail-btn,
.applications-table .application-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: auto;
  min-width: 0;
  min-height: 28px;
  height: 28px;
  padding: 0 0.55rem;
  margin: 0;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .applications-table td.table-actions,
  .applications-table .table-actions {
    min-width: 108px;
  }

  .applications-table .table-actions .btn,
  .admin-main .applications-table .application-detail-btn {
    width: auto !important;
  }
}

@media (max-width: 575.98px) {
  .bulk-toolbar {
    align-items: stretch;
  }

  .bulk-toolbar .btn {
    width: 100%;
  }
}

.bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.75rem;
  font-weight: 650;
  color: var(--brand-ink);
  cursor: pointer;
}

.application-filter-toggle .btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}

.application-filter-toggle .bi-chevron-down {
  margin-left: auto;
  transition: transform 160ms ease;
}

.application-filters.is-expanded .application-filter-toggle .bi-chevron-down {
  transform: rotate(180deg);
}

.class-year-filter-wrap {
  margin-top: 0.15rem;
}

.class-year-filter {
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.12));
  border-radius: 0.5rem;
  background: var(--bs-body-bg, #fff);
}

.class-year-filter .form-check-label {
  font-size: 0.9rem;
  user-select: none;
}

.application-filters .filter-bar {
  align-items: stretch;
}

.application-filters .filter-bar > [class*="col-"] > .form-select,
.application-filters .filter-bar > [class*="col-"] > .form-control,
.application-filters .filter-bar > .application-filter-submit > .btn {
  width: 100%;
}

.list-meta-row {
  gap: 0.5rem;
}

.list-meta-row .risk-legend {
  display: inline-flex;
  flex-wrap: wrap;
}

/* Mobil: ba?vuru tablosu kart listesine d?n???r */
@media (max-width: 767.98px) {
  .application-filters .filter-bar > [class*="col-"]:not(.application-filter-search):not(.application-filter-toggle):not(.application-filter-submit) {
    display: none;
  }

  .application-filters.is-expanded .filter-bar > [class*="col-"] {
    display: block;
  }

  .application-filter-submit {
    margin-top: 0.15rem;
  }

  .list-page-toolbar .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .list-meta-row {
    align-items: flex-start !important;
  }

  .list-meta-row .risk-legend {
    display: flex;
    margin-left: 0 !important;
    margin-top: 0.35rem;
    line-height: 1.4;
  }

  .applications-table-wrap.table-responsive,
  .applications-table-wrap.surface {
    overflow: visible;
    max-height: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .applications-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: auto !important;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }

  .applications-table colgroup {
    display: none;
  }

  .applications-table thead {
    display: none;
  }

  .applications-table tbody {
    display: block;
  }

  .applications-table tbody tr {
    display: block;
    margin: 0;
    padding: 1rem 1rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .applications-table tbody tr > * {
    background-color: transparent !important;
  }

  .applications-table tbody tr.row-risk,
  .applications-table tbody tr.row-docs-incomplete {
    border-color: #fecaca;
    background: #fef2f2;
  }

  .applications-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0.42rem 0;
    border: 0;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .applications-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    max-width: 38%;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    padding-top: 0.12rem;
  }

  .applications-table tbody td > :not(.badge) {
    text-align: right;
  }

  .applications-table tbody td.app-card-title {
    display: block;
    padding: 0 0 0.7rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--heading);
  }

  .applications-table tbody td.app-card-title::before {
    content: none;
  }

  .applications-table tbody td.app-card-title > :not(.badge):not(.risk-badge) {
    text-align: left;
  }

  .applications-table tbody td.bulk-check-col {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 0 0.55rem;
  }

  .applications-table tbody td.bulk-check-col::before {
    content: none;
  }

  .applications-table tbody td.app-col-desktop {
    display: none !important;
  }

  .applications-table tbody td.col-interview {
    overflow: visible;
  }

  .applications-table tbody td.col-interview .badge {
    max-width: none;
    white-space: nowrap;
  }

  .applications-table tbody td.table-actions,
  .applications-table .table-actions {
    display: flex !important;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0.75rem 0 0;
    overflow: visible;
    white-space: normal;
  }

  .applications-table tbody td.table-actions::before {
    content: none;
  }

  .applications-table tbody td.table-actions .d-flex {
    width: 100%;
  }

  .applications-table tbody td.table-actions .btn,
  .admin-main .applications-table .application-detail-btn {
    flex: 1 1 0;
    width: auto !important;
    min-height: 44px;
    height: 44px;
    font-size: 0.86rem;
  }

  .applications-table tbody td.applications-empty-cell,
  .applications-table tbody tr:has(.applications-empty-cell) {
    display: block;
    text-align: center;
    box-shadow: none;
  }

  .applications-table tbody td.applications-empty-cell::before {
    content: none;
  }
}

/* Bursiyer listesi ? kurumsal data table */
.scholars-table-wrap {
  padding: 0;
  overflow: auto;
}

.scholars-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.scholars-table thead th {
  padding: 0.52rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  color: #4d6168;
  background: #f4f8f9;
  border-bottom: 1px solid #dce6e8;
  box-shadow: none;
}

.scholars-table tbody td {
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  vertical-align: middle;
  border-bottom: 1px solid #eef3f4;
  color: var(--text);
  background: #fff;
}

.scholars-table tbody tr:nth-child(even) td {
  background: #fbfcfd;
}

.scholars-table tbody tr:hover td {
  background: #f3f8f9;
}

.scholars-table tbody tr:last-child td {
  border-bottom: 0;
}

.scholars-table .col-tc { width: 8.25rem; white-space: nowrap; }
.scholars-table .col-name { min-width: 9.5rem; }
.scholars-table .col-city { width: 6.25rem; white-space: nowrap; }
.scholars-table .col-uni { min-width: 9rem; max-width: 13.5rem; }
.scholars-table .col-dept { min-width: 9.5rem; max-width: 14.5rem; }
.scholars-table .col-date { width: 6.25rem; white-space: nowrap; }
.scholars-table .col-abs { width: 8.75rem; }
.scholars-table .col-money {
  width: 7.25rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.scholars-table .col-term { min-width: 8.5rem; max-width: 12rem; }
.scholars-table .col-summary { min-width: 12rem; }
.scholars-table .col-actions,
.scholars-table td.table-actions {
  width: 1%;
  min-width: 10.5rem;
  padding-right: 0.75rem;
  text-align: right;
  white-space: nowrap;
  display: table-cell;
  vertical-align: middle;
}

.scholars-table .col-uni,
.scholars-table .col-dept {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.scholar-tc {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #3d5158;
}

.scholar-name-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}

.scholar-name-text {
  min-width: 0;
  font-weight: 600;
  color: var(--brand-ink);
  font-size: 0.8375rem;
}

.scholar-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.38rem;
  border-radius: 4px;
  border: 1px solid #ead7a8;
  background: #fbf6e8;
  color: #8a6a1a;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.scholar-flag-burs-off {
  border-color: #f0c2c2;
  background: #fdf2f2;
  color: #9b2c2c;
}

.scholar-flag-debt {
  border-color: #e8b4b4;
  background: #fff0f0;
  color: #a12626;
}

.scholar-receivables-alert .scholar-receivables-list {
  margin-bottom: 0;
}

.scholars-table tr.row-burs-closed {
  opacity: 0.92;
}
.scholars-table tr.row-docs-incomplete .scholar-name-text {
  color: #991B1B;
}
.scholars-table tr.row-docs-incomplete .scholar-flag {
  border-color: #f0b4b4;
  background: #fff5f5;
  color: #991B1B;
}

.scholar-date {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
}

.scholar-date-day {
  font-weight: 600;
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.scholar-date-time {
  font-size: 0.7rem;
  color: var(--brand-muted);
  font-variant-numeric: tabular-nums;
}

.scholar-abs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid transparent;
}

.scholar-abs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.scholar-abs-badge.is-ok {
  color: #1f7a45;
  background: #eef8f1;
  border-color: #d5eadc;
}

.scholar-abs-badge.is-warn {
  color: #9a5b12;
  background: #fbf4ea;
  border-color: #ecd9be;
}

.scholar-abs-badge.is-critical {
  color: #a12626;
  background: #f8eeee;
  border-color: #e6cccc;
}

.scholar-abs-meta {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  color: var(--brand-muted);
  line-height: 1.25;
}

.scholar-money-deduct {
  color: #9b3a3a;
}

.scholar-money-pay {
  font-weight: 600;
  color: var(--brand-ink);
}

.scholar-paid-flag {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--success);
  line-height: 1.25;
}

.scholar-term-reason {
  font-weight: 600;
  color: #8a3b3b;
  font-size: 0.78rem;
}

.scholar-summary {
  font-size: 0.75rem;
  color: var(--text);
}

.scholar-actions {
  --scholar-action-size: 2rem;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  width: max-content;
  max-width: none;
  margin-left: auto;
}

.scholar-actions-form {
  display: inline-flex;
  margin: 0;
  min-width: 0;
}

.scholar-actions--extended {
  width: max-content;
  max-width: none;
}

.scholar-actions--extended .scholar-actions-form {
  display: inline-flex;
}

.scholar-actions--extended .scholar-actions-form .btn {
  flex: 0 0 auto;
  width: var(--scholar-action-size);
}

.scholar-actions--extended .scholar-more {
  justify-self: auto;
}

.scholars-table-wrap--foundation .col-actions,
.scholars-table-wrap--foundation td.table-actions {
  width: 1%;
  min-width: 12.25rem;
  white-space: nowrap;
}

.scholar-actions .scholar-more {
  display: inline-flex;
  flex: 0 0 auto;
}

.scholars-table .scholar-actions .btn,
.admin-main .scholars-table .scholar-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  width: var(--scholar-action-size);
  min-width: var(--scholar-action-size);
  max-width: var(--scholar-action-size);
  min-height: var(--scholar-action-size);
  height: var(--scholar-action-size);
  padding: 0;
  margin: 0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.scholars-table .scholar-actions .btn i,
.admin-main .scholars-table .scholar-actions .btn i {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

.scholar-ekstre-btn {
  color: #4a5b61;
  background: #fff;
  border: 1px solid #cfdadc;
}

.scholar-ekstre-btn:hover,
.scholar-ekstre-btn:focus {
  color: var(--brand-ink);
  background: #f4f8f9;
  border-color: #b7c8cc;
}

.scholar-invite-btn {
  --bs-btn-padding-y: 0;
}

.scholar-term-btn {
  color: #8a5410;
  background: #fff;
  border: 1px solid #e2cba8;
}

.scholar-term-btn:hover,
.scholar-term-btn:focus {
  color: #6e420c;
  background: #fbf6ee;
  border-color: #d4b184;
}

.scholar-more-btn {
  width: var(--scholar-action-size) !important;
  min-width: var(--scholar-action-size) !important;
  max-width: var(--scholar-action-size) !important;
  padding: 0 !important;
  color: #5c6e74;
}

.scholar-action-menu {
  min-width: 13.5rem;
  padding: 0.28rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(11, 44, 51, 0.12);
  z-index: 1085;
}

.scholar-action-menu form {
  display: block;
  margin: 0;
}

.scholar-action-menu .dropdown-item {
  width: 100%;
  text-align: left;
}

.scholar-term-item {
  color: #8a5410;
}

.scholar-term-item:hover,
.scholar-term-item:focus {
  color: #6e420c;
  background: #fbf6ee;
}

.scholar-action-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.scholar-action-menu .dropdown-item i {
  font-size: 0.88rem;
}

@media (max-width: 767.98px) {
  .scholars-table td.table-actions,
  .scholars-table .table-actions {
    width: 1%;
    min-width: 10.5rem;
  }

  .scholar-actions {
    gap: 0.22rem;
  }

  .scholar-actions--extended {
    width: max-content;
  }

  .scholars-table-wrap--foundation .col-actions,
  .scholars-table-wrap--foundation td.table-actions {
    min-width: 12.25rem;
  }
}
.ekstre-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--brand-teal-soft);
}
.ekstre-meta span {
  display: block;
  font-size: 0.72rem;
  color: var(--brand-muted);
  margin-bottom: 0.15rem;
}
.ekstre-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.ekstre-chip {
  display: flex;
  flex-direction: column;
  min-width: 88px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
}
.ekstre-chip b {
  font-size: 1.05rem;
  color: var(--brand-ink);
  line-height: 1.2;
}
.ekstre-chip span {
  font-size: 0.72rem;
  color: var(--brand-muted);
}
.ekstre-chip.is-absent b { color: var(--danger); }
.ekstre-chip.is-paid b {
  color: var(--success);
  font-size: 0.92rem;
}
.ekstre-table-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ekstre-skeleton { display: grid; gap: 0.75rem; }
.ekstre-skel {
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eef4f5 25%, #f7fbfb 50%, #eef4f5 75%);
  background-size: 200% 100%;
  animation: ekstreShimmer 1.2s linear infinite;
}
.ekstre-skel-sm { height: 40px; width: 60%; }
.ekstre-skel-lg { height: 180px; }
@keyframes ekstreShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (min-width: 768px) {
  .ekstre-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.auth-body:has(.qr-kiosk) {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(19, 137, 153, 0.12), transparent 42%),
    radial-gradient(circle at bottom left, rgba(223, 83, 17, 0.08), transparent 38%),
    linear-gradient(180deg, #f7fbfc 0%, #eef5f6 100%);
  color: #0b2c33;
}

.auth-body:has(.qr-kiosk) main.container {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.auth-body:has(.qr-kiosk) h1,
.auth-body:has(.qr-kiosk) h2,
.auth-body:has(.qr-kiosk) h3,
.auth-body:has(.qr-kiosk) p {
  color: inherit;
}

.qr-kiosk {
  --kiosk-ink: #0b2c33;
  --kiosk-muted: #33474d;
  --kiosk-line: #c9dade;
  --kiosk-surface: #ffffff;
  --kiosk-teal: #138999;
  --kiosk-teal-dark: #0f6f7c;
  --kiosk-teal-soft: #e6f5f7;
  --kiosk-orange: #df5311;
  --kiosk-orange-soft: #fff2eb;
  --kiosk-danger: #b42318;
  min-height: 100vh;
  padding: clamp(1rem, 2.4vw, 2rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1rem, 2vw, 1.5rem);
  color: var(--kiosk-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.qr-kiosk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.2vw, 1.6rem);
  background: var(--kiosk-surface);
  border: 1px solid var(--kiosk-line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(11, 44, 51, 0.06);
}

.qr-kiosk-brand {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  min-width: 0;
}

.qr-kiosk-logo {
  height: clamp(42px, 5vw, 56px);
  width: auto;
  flex-shrink: 0;
}

.qr-kiosk-brand-copy {
  min-width: 0;
}

.qr-kiosk-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kiosk-teal-dark) !important;
}

.qr-kiosk-title {
  margin: 0.2rem 0;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--kiosk-ink) !important;
}

.qr-kiosk-meta {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  color: var(--kiosk-muted) !important;
}

.qr-kiosk-head-aside {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: var(--kiosk-teal-soft);
  border: 1px solid #c5e3e7;
  min-width: 7.5rem;
}

.qr-kiosk-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 0.85rem;
}

.qr-kiosk-session-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.qr-kiosk-timer-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kiosk-teal-dark) !important;
}

.qr-kiosk-timer {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--kiosk-ink) !important;
}

.qr-kiosk-stage {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 0;
}

.qr-kiosk-frame {
  width: min(68vw, 460px);
  aspect-ratio: 1;
  background: #fff;
  border: 2px solid var(--kiosk-line);
  border-radius: 24px;
  padding: clamp(0.85rem, 1.8vw, 1.25rem);
  box-shadow: 0 16px 40px rgba(11, 44, 51, 0.08);
}

.qr-kiosk-svg,
.qr-kiosk-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-kiosk-skeleton {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(90deg, #e8eef0 25%, #f7fbfb 50%, #e8eef0 75%);
  background-size: 200% 100%;
  animation: ekstreShimmer 1.2s linear infinite;
}

.qr-kiosk-hint {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--kiosk-ink) !important;
}

.qr-kiosk-error {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff1f0;
  border: 1px solid #f0c7c7;
  color: var(--kiosk-danger) !important;
  font-weight: 700;
  text-align: center;
}

.qr-kiosk-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
  min-height: 0;
}

.qr-kiosk-pane {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.7rem;
  text-align: center;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--kiosk-surface);
  border: 1px solid var(--kiosk-line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(11, 44, 51, 0.06);
}

.qr-kiosk-pane-single {
  width: min(100%, 560px);
  padding-bottom: 1.25rem;
}

.qr-kiosk-pane-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qr-kiosk-pane-in {
  border-top: 5px solid var(--kiosk-teal);
}

.qr-kiosk-pane-in .qr-kiosk-pane-badge {
  background: var(--kiosk-teal-soft);
  color: var(--kiosk-teal-dark);
}

.qr-kiosk-pane-out {
  border-top: 5px solid var(--kiosk-orange);
}

.qr-kiosk-pane-out .qr-kiosk-pane-badge {
  background: var(--kiosk-orange-soft);
  color: #a63f0d;
}

.qr-kiosk-pane-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--kiosk-ink) !important;
  text-transform: none;
}

.qr-kiosk-pane-note {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: var(--kiosk-muted) !important;
}

.qr-kiosk-pane .qr-kiosk-frame {
  width: min(36vw, 380px);
}

.qr-kiosk-wait {
  display: grid;
  place-items: center;
  min-height: 0;
}

.qr-kiosk-wait-card {
  width: min(100%, 720px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  background: var(--kiosk-surface);
  border: 1px solid var(--kiosk-line);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(11, 44, 51, 0.07);
}

.qr-kiosk-wait-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kiosk-teal-dark) !important;
}

.qr-kiosk-wait-title {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--kiosk-ink) !important;
}

.qr-kiosk-wait-detail {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--kiosk-muted) !important;
}

.qr-kiosk-welcome {
  display: grid;
  place-items: center;
  min-height: 0;
}

.qr-kiosk-welcome-card {
  width: min(100%, 720px);
  padding: clamp(1.75rem, 4.5vw, 2.75rem);
  text-align: center;
  background: linear-gradient(165deg, #ecfdf5 0%, #f0fdfa 55%, #fff 100%);
  border: 2px solid #0f766e;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.16);
  animation: kioskWelcomeIn 0.45s ease-out;
}

.qr-kiosk-welcome-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f766e !important;
}

.qr-kiosk-welcome-title {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--kiosk-ink) !important;
}

.qr-kiosk-welcome-detail {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: #0f766e !important;
}

.qr-kiosk-welcome-card.is-checkout {
  background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
  border-color: #1d4ed8;
  box-shadow: 0 18px 44px rgba(29, 78, 216, 0.12);
}

.qr-kiosk-welcome-card.is-checkout .qr-kiosk-welcome-kicker,
.qr-kiosk-welcome-card.is-checkout .qr-kiosk-welcome-detail {
  color: #1d4ed8 !important;
}

@keyframes kioskWelcomeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qr-kiosk-confirm {
  display: grid;
  place-items: center;
  min-height: 0;
}

.qr-kiosk-confirm-card {
  width: min(100%, 640px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  background: var(--kiosk-surface);
  border: 2px solid var(--kiosk-teal-dark, #0b6b6e);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(11, 44, 51, 0.1);
}

.qr-kiosk-confirm-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kiosk-teal-dark) !important;
}

.qr-kiosk-confirm-title {
  margin: 0;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--kiosk-ink) !important;
}

.qr-kiosk-confirm-timer {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: #b45309 !important;
}

.qr-kiosk-frame-confirm {
  width: min(52vw, 420px);
  margin-inline: auto;
}

.qr-kiosk.is-confirm .qr-kiosk-frame {
  outline: 3px solid #b45309;
  outline-offset: 6px;
  border-radius: 16px;
}

.yoklama-hs-scan {
  margin-top: 0.75rem;
}

.yoklama-hs-video-wrap {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 0.75rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #0b2c33;
  box-shadow: 0 10px 28px rgba(11, 44, 51, 0.18);
}

.yoklama-hs-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yoklama-hs-frame {
  pointer-events: none;
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}

.yoklama-hs-status {
  text-align: center;
  min-height: 1.35rem;
}

.yoklama-hs-cam-btn {
  margin-top: 0.35rem;
}

.qr-kiosk-countdown {
  margin: 1.1rem 0 0;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--kiosk-teal-dark) !important;
}

.qr-kiosk-policy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  padding: clamp(0.95rem, 1.8vw, 1.2rem) clamp(1rem, 2vw, 1.35rem);
  background: var(--kiosk-surface);
  border: 1px solid var(--kiosk-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(11, 44, 51, 0.05);
}

.qr-kiosk-policy-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.qr-kiosk-policy-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--kiosk-teal-soft);
  color: var(--kiosk-teal-dark);
  font-size: 1rem;
}

.qr-kiosk-policy-item:first-child .qr-kiosk-policy-icon {
  background: #fff1f0;
  color: var(--kiosk-danger);
}

.qr-kiosk-policy-item p {
  margin: 0;
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--kiosk-muted) !important;
}

@media (max-width: 900px) {
  .qr-kiosk-dual-grid {
    grid-template-columns: 1fr;
  }

  .qr-kiosk-pane .qr-kiosk-frame,
  .qr-kiosk-frame {
    width: min(78vw, 420px);
  }

  .qr-kiosk-head-aside {
    justify-items: start;
    width: 100%;
  }

  .qr-kiosk-policy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .qr-kiosk-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Kiosk shell — tablet / tam ekran */
.auth-body--kiosk,
.auth-body:has(.qr-kiosk) {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.auth-body--kiosk main.container--kiosk,
.auth-body:has(.qr-kiosk) main.container {
  min-height: 100dvh;
  min-height: 100vh;
}

.qr-kiosk-orient-hint {
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7a3b08 !important;
  background: #fff4e5;
  border: 1px solid #f0d2a8;
}

/*
 * Galaxy Tab A11 (8.7", 1340×800 yatay) ve benzeri 8–11" tabletler.
 * Kısa yükseklikte QR’ı büyüt, üst/alt bandı sıkılaştır.
 */
@media (orientation: landscape) and (max-height: 920px) and (min-width: 960px) {
  .qr-kiosk,
  .qr-kiosk--tablet {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0.55rem 0.85rem;
    gap: 0.5rem;
    overflow: hidden;
  }

  .qr-kiosk-orient-hint[hidden] {
    display: none !important;
  }

  .qr-kiosk-head {
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem;
    border-radius: 14px;
    gap: 0.55rem 1rem;
    box-shadow: 0 6px 16px rgba(11, 44, 51, 0.05);
  }

  .qr-kiosk-brand {
    gap: 0.7rem;
  }

  .qr-kiosk-logo {
    height: 34px;
  }

  .qr-kiosk-kicker {
    font-size: 0.66rem;
  }

  .qr-kiosk-title {
    font-size: 1.28rem;
    margin: 0.1rem 0;
  }

  .qr-kiosk-meta {
    font-size: 0.86rem;
  }

  .qr-kiosk-head-aside {
    min-width: 6.25rem;
    padding: 0.4rem 0.7rem;
  }

  .qr-kiosk-timer {
    font-size: 1.2rem;
  }

  .qr-kiosk-stage,
  .qr-kiosk-wait,
  .qr-kiosk-confirm,
  .qr-kiosk-welcome {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: center;
    align-content: center;
  }

  .qr-kiosk-stage[hidden],
  .qr-kiosk-wait[hidden],
  .qr-kiosk-confirm[hidden],
  .qr-kiosk-welcome[hidden],
  .qr-kiosk-error[hidden] {
    display: none !important;
  }

  .qr-kiosk-pane-single {
    width: min(100%, 520px);
    padding: 0.65rem 0.9rem 0.85rem;
    border-radius: 18px;
    gap: 0.55rem;
  }

  .qr-kiosk-frame,
  .qr-kiosk-pane .qr-kiosk-frame,
  .qr-kiosk-frame-confirm {
    /* Tab A11 yatay: ~400–440px kare — telefonla rahat okunur */
    width: min(58vmin, 56dvh, 440px);
  }

  .qr-kiosk-hint {
    font-size: 1.02rem;
    line-height: 1.35;
  }

  .qr-kiosk-wait-card,
  .qr-kiosk-confirm-card {
    width: min(100%, 640px);
    padding: 0.85rem 1.15rem 1rem;
    border-radius: 18px;
  }

  .qr-kiosk-wait-title,
  .qr-kiosk-confirm-title {
    font-size: 1.45rem;
  }

  .qr-kiosk-confirm-timer {
    margin: 0.4rem 0 0.55rem;
    font-size: 2.35rem;
  }

  .qr-kiosk-countdown {
    margin-top: 0.65rem;
    font-size: 2.8rem;
  }

  .qr-kiosk-error {
    flex: 0 0 auto;
  }

  .qr-kiosk-policy {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    gap: 0.45rem 0.85rem;
    border-radius: 12px;
    box-shadow: none;
  }

  .qr-kiosk-policy-icon {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .qr-kiosk-policy-item {
    gap: 0.5rem;
  }

  .qr-kiosk-policy-item p {
    font-size: 0.76rem;
    line-height: 1.35;
  }
}

/* Galaxy Tab A11 dikey (800×1340) — yataya çevir uyarısı + büyük QR */
@media (orientation: portrait) and (min-width: 700px) and (max-width: 980px) {
  .qr-kiosk-orient-hint {
    display: block !important;
  }

  .qr-kiosk,
  .qr-kiosk--tablet {
    min-height: 100dvh;
    padding: 0.75rem 0.9rem 1rem;
    gap: 0.75rem;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .qr-kiosk-pane-single {
    width: min(100%, 520px);
  }

  .qr-kiosk-frame,
  .qr-kiosk-pane .qr-kiosk-frame,
  .qr-kiosk-frame-confirm {
    width: min(72vw, 420px);
  }

  .qr-kiosk-policy {
    grid-template-columns: 1fr;
  }
}

/* ~11" tabletler (ör. 1920×1200) — QR biraz daha büyük */
@media (orientation: landscape) and (min-height: 921px) and (max-height: 1280px) and (min-width: 1100px) and (max-width: 2200px) {
  .qr-kiosk--tablet .qr-kiosk-frame,
  .qr-kiosk--tablet .qr-kiosk-pane .qr-kiosk-frame,
  .qr-kiosk--tablet .qr-kiosk-frame-confirm,
  .qr-kiosk-single .qr-kiosk-frame {
    width: min(52vmin, 520px);
  }

  .qr-kiosk-pane-single {
    width: min(100%, 640px);
  }
}

/* Canl? yoklama izleme ? timeline ak??? */
.live-queue {
  --attendance-absent: #dc3545;
  --attendance-present: #198754;
  --attendance-exited: #6c757d;
  --attendance-timeline-line: rgba(11, 44, 51, 0.14);
}

.live-queue-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.live-queue-subtitle {
  font-size: 0.8125rem;
  color: var(--brand-muted);
}

.live-queue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.live-queue-toolbar .btn {
  min-height: 2rem;
}

.live-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Timeline ? yatay (desktop) */
.live-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.75rem 1rem;
  background: var(--bg, #f8f9fa);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.live-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
}

.live-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-timeline-step-absent .live-timeline-dot {
  background: var(--attendance-absent);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.18);
}

.live-timeline-step-present .live-timeline-dot {
  background: var(--attendance-present);
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18);
}

.live-timeline-step-exited .live-timeline-dot {
  background: var(--attendance-exited);
  box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.18);
}

.live-timeline-label {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
  line-height: 1.2;
}

.live-timeline-step-absent .live-timeline-label { color: var(--attendance-absent); }
.live-timeline-step-present .live-timeline-label { color: var(--attendance-present); }
.live-timeline-step-exited .live-timeline-label { color: var(--attendance-exited); }

.live-timeline-count {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.live-timeline-step-absent .live-timeline-count { color: var(--attendance-absent); }
.live-timeline-step-present .live-timeline-count { color: var(--attendance-present); }
.live-timeline-step-exited .live-timeline-count { color: var(--attendance-exited); }

.live-timeline-connector {
  flex: 0 1 3rem;
  height: 2px;
  margin: 0 0.35rem;
  margin-bottom: 2.5rem;
  background: var(--attendance-timeline-line);
  border-radius: 999px;
}

.live-flow-grid {
  align-items: stretch;
}

.live-queue-panel,
.live-violation-panel {
  padding: 1rem 1.125rem;
  height: 100%;
}

.live-queue-panel-absent {
  border-top: 4px solid var(--attendance-absent);
}

.live-queue-panel-present {
  border-top: 4px solid var(--attendance-present);
}

.live-queue-panel-exited {
  border-top: 4px solid var(--attendance-exited);
}

.live-panel-title-absent i { color: var(--attendance-absent); }
.live-panel-title-present i { color: var(--attendance-present); }
.live-panel-title-exited i { color: var(--attendance-exited); }

.live-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

.live-panel-head-compact {
  margin-bottom: 0.5rem;
}

.live-panel-head-main {
  flex: 1;
  min-width: 0;
}

.live-panel-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.live-panel-title-plain i {
  display: none;
}

.live-panel-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--brand-muted);
  line-height: 1.45;
}

.live-panel-badge {
  flex-shrink: 0;
  min-width: 1.75rem;
  margin-top: 0.05rem;
}

.live-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  color: var(--brand-muted);
  text-align: center;
}

.live-empty i {
  font-size: 1.25rem;
  opacity: 0.75;
}

.live-empty p {
  font-size: 0.8125rem;
}

.live-empty-sm {
  padding: 0.625rem 0.5rem;
}

.live-student-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(420px, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 0.1rem;
}

.live-student-list-violations {
  max-height: min(320px, 40vh);
}

.live-student-list::-webkit-scrollbar {
  width: 6px;
}

.live-student-list::-webkit-scrollbar-thumb {
  background: rgba(11, 44, 51, 0.18);
  border-radius: 999px;
}

.live-student-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6875rem 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.live-student-item-absent {
  border-left: 3px solid var(--attendance-absent);
}

.live-student-item-present {
  border-left: 3px solid var(--attendance-present);
}

.live-student-item-exited {
  border-left: 3px solid var(--attendance-exited);
  opacity: 0.95;
}

.live-student-info {
  flex: 1;
  min-width: 0;
}

.live-student-name {
  font-weight: 650;
  font-size: 0.9375rem;
  line-height: 1.35;
  word-break: break-word;
}

.live-student-no {
  margin-top: 0.125rem;
  font-size: 0.78rem;
  color: var(--brand-muted);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.live-student-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--brand-muted);
  line-height: 1.4;
}

.live-student-meta-sub {
  margin-top: 0.15rem;
  font-size: 0.72rem;
}

.live-time-display {
  margin-top: 0.35rem;
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.live-time-display-in {
  color: var(--attendance-present);
}

.live-time-display-out {
  color: var(--attendance-exited);
}

.live-student-side {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 46%;
}

.live-student-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.live-action-btn {
  white-space: nowrap;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 999px;
  white-space: nowrap;
}

.live-student-side > .live-status-pill {
  margin-top: 0.125rem;
}

.live-status-pill-absent {
  color: var(--attendance-absent);
  background: rgba(220, 53, 69, 0.1);
}

.live-status-pill-present {
  color: var(--attendance-present);
  background: rgba(25, 135, 84, 0.1);
}

.live-status-pill-exited-sub {
  color: var(--attendance-exited);
  background: rgba(108, 117, 125, 0.12);
}

.live-status-pill-exited {
  color: var(--attendance-exited);
  background: rgba(108, 117, 125, 0.12);
}

.live-student-item-enter {
  animation: live-item-enter 0.42s ease-out;
}

.live-student-item-highlight {
  animation: live-item-highlight 0.5s ease-out;
}

@keyframes live-item-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes live-item-highlight {
  0% { background-color: rgba(25, 135, 84, 0.14); }
  100% { background-color: #fff; }
}

.live-student-item-warn {
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

/* Geriye d?n?k */
.live-queue-grid { align-items: stretch; }
.live-queue-panel-in { border-top-color: var(--attendance-present); }
.live-queue-panel-out { border-top-color: var(--attendance-exited); }
.live-student-meta-in { color: var(--attendance-present); font-weight: 600; }
.live-student-status { font-size: 0.8125rem; color: var(--brand-muted); }
.live-list { display: flex; flex-direction: column; gap: 0.5rem; }
.live-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6875rem 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.live-card-name { font-weight: 650; font-size: 0.9375rem; }
.live-card-meta { font-size: 0.78rem; color: var(--brand-muted); }
.live-card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.live-card-warn {
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

/* G?n?ll? paneli ? saha / mobil */
.vol-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.vol-quick-btn {
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  white-space: normal;
}
.vol-quick-btn i { font-size: 1.25rem; }
.volunteer-subnav {
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .vol-quick-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575.98px) {
  .vol-quick-btn { min-height: 4.25rem; font-size: 0.9rem; }
}

.yoklama-tc {
  letter-spacing: 0.18em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767.98px) {
  .live-queue-header {
    align-items: flex-start;
  }

  .live-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
  }

  .live-timeline-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.625rem;
    text-align: left;
    padding: 0.35rem 0;
  }

  .live-timeline-label {
    flex: 1;
    font-size: 0.8125rem;
    text-transform: none;
    letter-spacing: 0;
  }

  .live-timeline-count {
    font-size: 1rem;
    min-width: 1.5rem;
    text-align: right;
  }

  .live-timeline-connector {
    flex: none;
    width: 2px;
    height: 1.25rem;
    margin: 0 0 0 5px;
    align-self: flex-start;
  }

  .live-student-item,
  .live-card {
    flex-direction: column;
    align-items: stretch;
  }

  .live-student-side {
    max-width: 100%;
    justify-content: flex-start;
  }

  .live-student-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-student-item-enter,
  .live-student-item-highlight {
    animation: none;
  }
}

.household-structure-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.household-structure-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  min-width: 0;
}
.household-structure-stat .label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.household-structure-stat .value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.3rem;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .household-structure-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-apply-wrap.public-body {
  background: transparent;
  min-height: 0;
  color: inherit;
}
.admin-apply-wrap .container.apply-page {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Print / accessibility helpers */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------
   Mobil / tablet sertle?tirme (marka ve masa?st? d?zeni korunur)
   --------------------------------------------------------- */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.admin-shell,
.admin-main,
.public-main,
.surface,
.filter-bar,
.row > [class*="col-"] {
  min-width: 0;
}

.admin-body,
.public-body,
.auth-body {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.modal-content {
  max-height: min(var(--modal-max-height), calc(100dvh - 24px));
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .sidebar-link {
    min-height: 44px;
  }
  .table-responsive {
    margin-inline: 0;
    border-radius: 10px;
  }
  .table-responsive::after {
    content: "";
    pointer-events: none;
  }
}

@media (max-width: 767.98px) {
  .form-control,
  .form-select,
  textarea.form-control {
    font-size: 16px; /* iOS otomatik yak?nla?t?rmay? ?nler */
  }
  .admin-main {
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
  .filter-bar .btn,
  .admin-main form.surface .btn {
    min-height: 44px;
  }
  .dropdown-menu {
    max-width: min(100vw - 1.5rem, 22rem);
  }
  .modal-dialog {
    margin: max(0.5rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.5rem, env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
  }
  .modal-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .modal-footer .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
  .pagination .page-link {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 379.98px) {
  .admin-topbar {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  .topbar-title {
    font-size: 0.92rem;
    line-height: 1.25;
  }
}

/* ---------------------------------------------------------
   Aile foto?raf galerisi (sosyal hizmetler)
   --------------------------------------------------------- */
.household-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}
.household-photo-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--border, #e2e8f0);
}
.household-photo-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  aspect-ratio: 1;
  overflow: hidden;
}
.household-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.household-photo-thumb:hover img,
.household-photo-thumb:focus-visible img {
  transform: scale(1.04);
}
.household-photo-delete {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  margin: 0;
}
.household-photo-delete .btn {
  padding: 0.2rem 0.4rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
}
.household-gallery-dialog {
  border: 0;
  padding: 0;
  max-width: min(96vw, 960px);
  width: 96vw;
  background: transparent;
}
.household-gallery-dialog::backdrop {
  background: rgba(15, 23, 42, 0.82);
}
.household-gallery-dialog__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 0.5rem 1rem;
}
.household-gallery-dialog img {
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  background: #0f172a;
}
.household-gallery-dialog__caption {
  color: #e2e8f0;
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
  max-width: 40rem;
}
.household-gallery-dialog__close {
  position: absolute;
  top: 0;
  right: 0.25rem;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}
.household-gallery-dialog__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.household-gallery-dialog__nav.is-prev { left: 0.25rem; }
.household-gallery-dialog__nav.is-next { right: 0.25rem; }
@media (max-width: 575.98px) {
  .household-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .household-gallery-dialog__nav {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* ===== Butce & Harcamalar + Menu matrisi (mobil) ===== */
.budget-module .page-toolbar {
  gap: 0.75rem;
}
.budget-module .page-toolbar .btn {
  min-height: 42px;
}
.budget-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}
.budget-toolbar-actions .btn {
  flex: 1 1 auto;
}
.budget-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.budget-filter-actions .btn {
  min-height: 40px;
  flex: 1 1 auto;
}
.budget-balance-note {
  display: block;
  margin-top: 0.35rem;
}
.budget-show-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}
.budget-show-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.budget-show-actions > .btn,
.budget-show-actions form {
  flex: 0 1 auto;
}
.budget-show-actions form {
  display: flex;
  margin: 0;
}
.budget-show-actions form .btn {
  width: auto;
  min-width: var(--btn-min-width);
}
.budget-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.budget-item-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
}
.budget-item-actions .form-control,
.budget-item-actions .btn {
  min-height: 40px;
}
.budget-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.budget-card-footer .btn {
  min-height: 44px;
  flex: 1 1 auto;
}
.menu-modules-matrix {
  -webkit-overflow-scrolling: touch;
}
.menu-modules-matrix table {
  min-width: 520px;
}
.menu-modules-matrix th,
.menu-modules-matrix td {
  vertical-align: middle;
}
.menu-modules-matrix input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 767.98px) {
  .budget-module .page-toolbar {
    flex-direction: column;
    align-items: stretch !important;
  }
  .budget-toolbar-actions .btn {
    width: 100%;
  }
  .budget-balance-cards > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .budget-filter-grid > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .budget-filter-actions {
    width: 100%;
  }
  .budget-filter-actions .btn {
    width: 100%;
  }
  .budget-show-head {
    flex-direction: column;
  }
  .budget-show-actions {
    width: 100%;
  }
  .budget-show-actions .btn,
  .budget-show-actions form {
    width: 100%;
  }
  .budget-card-footer {
    flex-direction: column-reverse;
  }
  .budget-card-footer .btn {
    width: 100%;
  }
  .budget-item-actions form.is-reject {
    flex-direction: column;
  }
  .budget-item-actions form.is-reject .form-control {
    width: 100%;
    max-width: none !important;
  }

  /* Tablolar? mobil kartlara ?evir */
  .budget-card-table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }
  .budget-card-table thead {
    display: none;
  }
  .budget-card-table tbody {
    display: block;
  }
  .budget-card-table tbody tr {
    display: block;
    margin: 0;
    padding: 0.95rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .budget-card-table tbody tr.is-empty {
    text-align: center;
    color: var(--muted);
  }
  .budget-card-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.4rem 0;
    border: 0;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word;
  }
  .budget-card-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 36%;
    max-width: 36%;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    padding-top: 0.15rem;
  }
  .budget-card-table tbody td[data-label=""]::before,
  .budget-card-table tbody td.budget-card-actions::before {
    content: none;
    display: none;
  }
  .budget-card-table tbody td.budget-card-actions {
    display: block;
    padding-top: 0.75rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--border);
  }
  .budget-card-table tbody td.budget-card-actions .btn {
    width: 100%;
    min-height: 42px;
  }
  .budget-card-table tbody td > :not(.badge) {
    text-align: right;
    margin-left: auto;
  }
  .budget-card-table tbody td.budget-card-actions > * {
    text-align: left;
    margin-left: 0;
  }

  /* Harcama kalem form sat?rlar? */
  .budget-expense-lines {
    border-collapse: separate;
    border-spacing: 0 0.65rem;
  }
  .budget-expense-lines thead {
    display: none;
  }
  .budget-expense-lines tbody {
    display: block;
  }
  .budget-expense-lines tbody tr.expense-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.65rem;
    padding: 0.85rem;
    margin: 0;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .budget-expense-lines tbody tr.expense-line td {
    border: 0;
    padding: 0;
    display: block;
  }
  .budget-expense-lines tbody tr.expense-line td:nth-child(1),
  .budget-expense-lines tbody tr.expense-line td:nth-child(2),
  .budget-expense-lines tbody tr.expense-line td:nth-child(3) {
    grid-column: 1 / -1;
  }
  .budget-expense-lines tbody tr.expense-line td:nth-child(4) {
    grid-column: 2;
    justify-self: end;
  }
  .budget-expense-lines .form-select,
  .budget-expense-lines .form-control {
    min-height: 44px;
    font-size: 16px; /* iOS zoom ?nleme */
  }
  .budget-expense-lines .remove-line {
    min-width: 44px;
    min-height: 44px;
  }

  /* Men? matrisi: yatay kayd?r + sticky ilk s?tun */
  .menu-modules-matrix {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-bottom: 0.25rem;
  }
  .menu-modules-matrix table {
    min-width: 640px;
  }
  .menu-modules-matrix th:first-child,
  .menu-modules-matrix td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--card, #fff);
    box-shadow: 4px 0 8px rgba(15, 23, 42, 0.06);
    min-width: 140px;
  }
  .menu-modules-matrix tr.table-light td {
    background: #f1f5f9;
  }
  .settings-form-mobile {
    max-width: 100% !important;
    width: 100%;
  }

  .household-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .household-photo-delete .btn {
    min-width: 40px;
    min-height: 40px;
  }
  .household-photos-panel .row.g-2 > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .budget-module .fs-4 {
    font-size: 1.25rem !important;
  }
  .menu-modules-matrix input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ===== Admin card tables (is atamalari vb.) ===== */
@media (max-width: 767.98px) {
  .admin-card-table {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }
  .admin-card-table thead { display: none; }
  .admin-card-table tbody { display: block; }
  .admin-card-table tbody tr {
    display: block;
    margin: 0;
    padding: 0.95rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .admin-card-table tbody tr.is-empty {
    text-align: center;
    color: var(--muted);
  }
  .admin-card-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.4rem 0;
    border: 0;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word;
  }
  .admin-card-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 36%;
    max-width: 36%;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    padding-top: 0.15rem;
  }
  .admin-card-table tbody td[data-label=""]::before,
  .admin-card-table tbody td.budget-card-actions::before {
    content: none;
    display: none;
  }
  .admin-card-table tbody td.budget-card-actions {
    display: block;
    padding-top: 0.75rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--border);
  }
  .admin-card-table tbody td.budget-card-actions .btn {
    width: 100%;
    min-height: 42px;
  }
  .admin-card-table tbody td.budget-card-actions .d-flex {
    flex-direction: column;
  }
  .admin-card-table tbody td > :not(.badge) {
    text-align: right;
    margin-left: auto;
    max-width: 62%;
  }
  .admin-card-table tbody td.budget-card-actions > * {
    text-align: left;
    margin-left: 0;
    max-width: none;
  }
  .admin-card-table tbody td.task-card-title {
    display: block;
    padding-bottom: 0.65rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .admin-card-table tbody td.task-card-title::before { content: none; display: none; }
  .admin-card-table tbody td.task-card-title > * {
    text-align: left;
    margin-left: 0;
    max-width: none;
  }
}

.yoklama-portal {
  max-width: 720px;
  padding: 1.5rem 0 2rem;
}

.yoklama-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.yoklama-portal-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--border, #dbe4ea);
  background: var(--card, #fff);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 44, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.yoklama-portal-card:hover,
.yoklama-portal-card:focus-visible {
  transform: translateY(-2px);
  border-color: #0d9488;
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.14);
  color: inherit;
}

.yoklama-portal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  font-size: 1.25rem;
}

.yoklama-portal-city {
  font-size: 1.15rem;
  font-weight: 800;
}

.yoklama-portal-action {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f766e;
}

/* —— Kullanıcılar listesi —— */
.users-page {
  --users-action-size: 2.05rem;
}

.users-toolbar {
  border-radius: 14px;
}

.users-toolbar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.users-toolbar__create {
  flex: 0 0 auto;
  white-space: nowrap;
}

.users-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.users-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border, #d5e0e6);
  background: #fff;
  color: var(--muted, #5a6b72);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.users-filter:hover,
.users-filter:focus-visible {
  border-color: var(--brand-teal, #0f766e);
  color: var(--brand-teal, #0f766e);
}

.users-filter.is-active {
  background: var(--brand-teal, #0f766e);
  border-color: var(--brand-teal, #0f766e);
  color: #fff;
}

.users-table-wrap {
  border-radius: 14px;
  overflow: auto;
}

.users-table {
  --bs-table-bg: transparent;
  min-width: 920px;
}

.users-table > :not(caption) > * > * {
  padding: 0.7rem 0.85rem;
  vertical-align: middle;
}

.users-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5a6b72);
  font-weight: 700;
  border-bottom-width: 1px;
  white-space: nowrap;
}

.users-col-actions {
  width: 1%;
  min-width: 11.5rem;
}

.users-username {
  font-size: 0.82rem;
  color: var(--brand-teal-dark, #0f4c5c);
  background: rgba(15, 118, 110, 0.06);
  border: 0;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.users-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.users-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border, #d5e0e6);
  background: #f8fbfc;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink, #1a2b32);
  white-space: nowrap;
}

.users-cell-email,
.users-cell-cities {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-actions-cell.table-actions {
  white-space: nowrap !important;
  display: table-cell;
}

.users-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.users-action-form {
  display: inline-flex;
  margin: 0;
}

.users-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--users-action-size);
  height: var(--users-action-size);
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--border, #d5e0e6);
  background: #fff;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.users-action-btn:hover,
.users-action-btn:focus-visible {
  border-color: var(--brand-teal, #0f766e);
  color: var(--brand-teal, #0f766e);
  background: rgba(15, 118, 110, 0.06);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.users-action-btn.is-primary:hover,
.users-action-btn.is-primary:focus-visible {
  border-color: var(--brand-teal, #0f766e);
  color: var(--brand-teal, #0f766e);
}

.users-action-btn.is-warning {
  color: #b45309;
}

.users-action-btn.is-warning:hover,
.users-action-btn.is-warning:focus-visible {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.users-action-btn.is-success {
  color: #047857;
}

.users-action-btn.is-success:hover,
.users-action-btn.is-success:focus-visible {
  border-color: #10b981;
  color: #065f46;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.users-action-btn.is-danger {
  color: #b91c1c;
}

.users-action-btn.is-danger:hover,
.users-action-btn.is-danger:focus-visible {
  border-color: #ef4444;
  color: #991b1b;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.users-action-btn.is-disabled,
.users-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.users-action-btn:disabled:hover {
  border-color: var(--border, #d5e0e6);
  color: #334155;
  background: #fff;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .users-toolbar__top {
    flex-direction: column;
  }

  .users-toolbar__create {
    width: 100%;
  }
}

.mobile-collapsible-filters .filter-bar {
  align-items: stretch;
}
.mobile-collapsible-filters .mobile-filter-toggle .btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
}
.mobile-collapsible-filters.is-expanded .mobile-filter-toggle .bi-chevron-down {
  transform: rotate(180deg);
}
@media (max-width: 767.98px) {
  .mobile-collapsible-filters .filter-bar > [class*="col-"]:not(.mobile-filter-search):not(.mobile-filter-toggle):not(.mobile-filter-submit) {
    display: none;
  }
  .mobile-collapsible-filters.is-expanded .filter-bar > [class*="col-"] {
    display: block;
  }
  .mobile-collapsible-filters.is-expanded .filter-bar > .mobile-filter-submit,
  .mobile-collapsible-filters .filter-bar > .mobile-filter-submit {
    display: grid;
  }
}

/* ===== Mobile app-shell polish (2026) ===== */
body.admin-body {
  overflow-x: hidden;
}

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}
.dash-quick-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.55rem 0.75rem;
  white-space: normal;
  line-height: 1.25;
}
.dash-quick-grid--lists {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
  .admin-main .form-control,
  .admin-main .form-select,
  .admin-main .btn:not(.btn-sm):not(.btn-icon):not(.users-action-btn):not(.scholar-action-btn) {
    min-height: 44px;
  }
  .admin-main .btn-sm {
    min-height: 40px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch !important;
    gap: 0.5rem;
  }
  .modal-footer > * {
    width: 100%;
    margin: 0 !important;
  }
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  .chart-box,
  .chart-box-wide,
  .hq-overview-chart,
  canvas {
    max-width: 100% !important;
  }
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.15rem;
  }
  .nav-tabs .nav-link {
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .users-table.admin-card-table,
  .scholars-table.admin-card-table,
  .volunteers-table.admin-card-table {
    min-width: 0 !important;
  }
  .users-table-wrap,
  .scholars-table-wrap {
    overflow: visible;
  }
  .admin-card-table tbody td.users-actions-cell,
  .admin-card-table tbody td.budget-card-actions {
    display: block;
  }
  .admin-card-table .users-actions,
  .admin-card-table .scholar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    width: 100%;
  }
  .admin-card-table .users-action-btn,
  .admin-card-table .scholar-action-btn,
  .admin-card-table .scholar-actions .btn {
    min-width: 44px;
    min-height: 44px;
  }
  .admin-card-table .users-cell-email,
  .admin-card-table .users-cell-cities {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .dash-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-kpi-card .value,
  .stat-card .value {
    font-size: 1.35rem;
  }
}

@media (max-width: 379.98px) {
  .topbar-title {
    max-width: min(46vw, 11rem);
    font-size: 0.98rem;
  }
  .dash-quick-grid {
    grid-template-columns: 1fr;
  }
}



/* Statistics module */
.stats-page .stats-kpi { min-height: 5.5rem; transition: border-color .15s ease, transform .15s ease; }
.stats-page a.stats-kpi:hover { border-color: var(--brand-teal, #138999); transform: translateY(-1px); }
.stats-page .stats-kpi--ok .value { color: #0f766e; }
.stats-page .stats-kpi--warn .value { color: #b45309; }
.stats-page .stats-kpi--danger .value { color: #b91c1c; }
.stats-page .stats-kpi--info .value { color: var(--brand-teal, #138999); }
.stats-page .stats-narrative { border-left: 3px solid var(--brand-teal, #138999); }
.stats-chart-wrap { position: relative; width: 100%; height: 280px; max-width: 100%; overflow: hidden; }
.stats-chart-wrap--tall { height: 360px; }
.stats-highlights li { padding: .35rem 0; border-bottom: 1px solid rgba(148,163,184,.25); }
.stats-highlights li:last-child { border-bottom: 0; }
@media (max-width: 767.98px) {
  .stats-chart-wrap { height: 240px; }
  .stats-chart-wrap--tall { height: 280px; }
  .stats-page .stats-kpi .value { font-size: 1.25rem; }
}
