/* Panel: topbar tam genişlik üstte, sidebar alt satırda; tek menü düğmesi topbar’da */

:root {
  --shell-sidebar-bg: #eaf2ff;
  --shell-sidebar-text: #1f2937;
  --shell-content-bg: #edf3ff;
  --shell-content-area-bg: #edf3ff;
  --shell-outer-grad-start: #edf3ff;
  --shell-outer-grad-end: #e7efff;
  --shell-topbar-bg: #dde9ff;
  --shell-topbar-text: #1f2937;
  /* Mega + vurgular: topbar/sidebar ile aynı soğuk mavi aile */
  --shell-accent: #1d4ed8;
  --shell-accent-deep: #1e40af;
  --shell-mega-bg: #1e40af;
  --shell-mega-text: #f8fafc;
  --shell-mega-active-bg: #ffffff;
  --shell-mega-active-text: #1e40af;
  --shell-mega-sub-panel-bg: #ffffff;
  --shell-mega-sub-link: #475569;
  --shell-mega-sub-active-bg: #dbeafe;
  --shell-mega-sub-active-text: #1e40af;
  --shell-nav-parent-fw: 700;
  --shell-nav-sub-fw: 600;
  --shell-card-bg: #f8fbff;
  --shell-border: #cdd9ee;
  --shell-text: #1f2937;
  --shell-muted: #4f5d73;
  --shell-sidebar-hover: #d3e4ff;
  --shell-active: #b9d2ff;
  --shell-active-text: #1d4ed8;
  /* Hata/sil uyarısı: kromadan ayrı, turuncu-amber (bordo ile karışmasın) */
  --shell-danger-fg: #b45309;
  --shell-danger-bg: #fffbeb;
  --shell-danger-border: #fde68a;
  --shell-danger-strong: #c2410c;
  --shell-topbar-height: 56px;
  --shell-sidebar-open: 200px;
  --shell-sidebar-closed: 60px;
  --shell-mobile-break: 900px;
  --shell-fs-h1: 1.4rem;
  --shell-fs-h2: 1.1rem;
  --shell-fs-h3: 0.95rem;
  --shell-fs-body: 0.96rem;
  --shell-menu-primary-fs: 0.875rem;
  --shell-menu-sub-fs: 0.83rem;
}

/* Form kontrolleri: macOS / Safari / Chrome koyu native select’leri açık temada tut */
html {
  height: 100%;
  color-scheme: light only;
}

select,
select option,
select optgroup {
  color-scheme: light only !important;
  color: #111827 !important;
  background-color: #ffffff !important;
}

/* macOS / Safari / Chrome: sistem koyu temasında bile native liste açık kalsın (panel dışı sayfalar dahil) */
@media (prefers-color-scheme: dark) {
  select,
  select option,
  select optgroup {
    color-scheme: light only !important;
    background-color: #ffffff !important;
    color: #111827 !important;
  }
}

/* Panel + giriş: native menulist — appearance:none bazı görünümlerde koyu açılır liste üretiyor */
body:not(.panel-body):not(.page-auth) select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 38px;
  padding: 0 2.25rem 0 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 14px;
  color: #111827 !important;
}

body:not(.panel-body):not(.page-auth) select option,
body:not(.panel-body):not(.page-auth) select optgroup {
  background-color: #ffffff !important;
  color: #111827 !important;
}

body.page-auth select,
body.page-auth select option,
body.page-auth select optgroup {
  color-scheme: light only !important;
  -webkit-appearance: menulist !important;
  appearance: auto !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #111827 !important;
}

body.page-auth {
  margin: 0;
  min-height: 100vh;
  color-scheme: light only;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--shell-text);
  background: linear-gradient(
    180deg,
    var(--shell-outer-grad-start) 0%,
    var(--shell-outer-grad-end) 100%
  );
}

/* Panel: yerel menü (menulist) — açık tema açılır liste */
.panel-body select {
  color-scheme: light;
  color-scheme: light only;
  -webkit-appearance: menulist;
  appearance: auto;
  min-height: 38px;
  padding: 0.35rem 2rem 0.35rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25;
  background-color: #ffffff;
  background-image: none;
  color: #111827;
}

.panel-body select option,
.panel-body select optgroup {
  color-scheme: light;
  color-scheme: light only;
  background-color: #ffffff;
  color: #111827;
}

select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

textarea,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"] {
  color-scheme: light;
  background-color: #ffffff;
  color: #111827;
}

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

.panel-body {
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--shell-text);
  background: linear-gradient(
    180deg,
    var(--shell-outer-grad-start) 0%,
    var(--shell-outer-grad-end) 100%
  );
  color-scheme: light only;
}

/* Üst + gövde sütunu */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 100%;
}

/* ——— Topbar: tam genişlik, alt çizgi tek ——— */
.topbar {
  flex: 0 0 var(--shell-topbar-height);
  height: var(--shell-topbar-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem 0 0.5rem;
  background: var(--shell-topbar-bg);
  color: var(--shell-topbar-text);
  border-bottom: 1px solid var(--shell-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar__lead {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 0;
}

/* Tek menü düğmesi: panel + X */
.topbar__menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--shell-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar__menu-toggle:hover {
  background: #dfeaff;
  color: var(--shell-text);
}

.menu-icon {
  display: none;
  align-items: center;
  justify-content: center;
}

/* Daraltılmış = menü kapalı (masaüstü dar şerit / mobil çekmece kapalı): panel ikonu */
.app-shell--collapsed .menu-icon--panel {
  display: flex;
}

.app-shell--collapsed .menu-icon--close {
  display: none;
}

/* Genişletilmiş = menü açık: kapat (X) */
.app-shell:not(.app-shell--collapsed) .menu-icon--panel {
  display: none;
}

.app-shell:not(.app-shell--collapsed) .menu-icon--close {
  display: flex;
}

/* Proje adı: masaüstünde sidebar durumundan bağımsız kalıcı */
.topbar__brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--shell-topbar-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(240px, 36vw);
  padding: 0 0.35rem 0 0;
  pointer-events: auto;
  flex-shrink: 0;
}

.topbar__brand:hover {
  color: var(--shell-active-text);
}

.topbar__center {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.topbar__search-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.topbar__search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--shell-muted);
  pointer-events: none;
}

.topbar__search {
  width: 100%;
  height: 38px;
  padding: 0 0.75rem 0 2.25rem;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.875rem;
  background: #f2f6ff;
  color: var(--shell-text);
}

.topbar__search:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.topbar__search:focus {
  outline: 2px solid rgba(29, 78, 216, 0.2);
  border-color: #93c5fd;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .topbar__center {
    display: none;
  }
}

.topbar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: color-mix(in srgb, var(--shell-topbar-text) 72%, transparent);
  cursor: pointer;
}

.topbar__icon-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--shell-topbar-text) 10%, transparent);
  color: var(--shell-topbar-text);
}

.topbar__icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

a.topbar__user--link {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  margin: 0 -0.15rem;
  outline-offset: 2px;
}

a.topbar__user--link:hover {
  background: color-mix(in srgb, var(--shell-topbar-text) 10%, transparent);
}

a.topbar__user--link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--shell-topbar-text) 45%, transparent);
}

.topbar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.topbar__user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

@media (max-width: 520px) {
  .topbar__user-text {
    display: none;
  }
}

.topbar__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--shell-topbar-text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__role {
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--shell-topbar-text) 55%, transparent);
}

.topbar__logout {
  margin: 0;
}

.topbar__logout-btn {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--shell-muted);
  cursor: pointer;
}

.topbar__logout-btn:hover {
  background: var(--shell-sidebar-hover);
  color: var(--shell-text);
}

/* ——— Gövde: sidebar + içerik (topbar altında) ——— */
.app-shell__body {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
}

/* ——— Sidebar (masaüstü: yan sütun) ——— */
.sidebar {
  flex: 0 0 var(--shell-sidebar-open);
  width: var(--shell-sidebar-open);
  background: var(--shell-sidebar-bg);
  border-right: 1px solid #c7d5ee;
  display: flex;
  flex-direction: column;
  transition: flex-basis 0.2s ease, width 0.2s ease;
  overflow: hidden;
  min-height: 0;
}

.app-shell--collapsed .sidebar {
  flex-basis: var(--shell-sidebar-closed);
  width: var(--shell-sidebar-closed);
  background: var(--shell-sidebar-bg);
  border-right-color: #e2e8f0;
}

.sidebar__mobile-brand {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--shell-text);
  border-bottom: 1px solid var(--shell-border);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.45rem;
  gap: 0.35rem;
  flex: 1;
}

.app-shell--collapsed .sidebar__nav {
  padding: 0.85rem 0.4rem;
  align-items: stretch;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  color: color-mix(in srgb, var(--shell-sidebar-text) 82%, transparent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
}

.app-shell--collapsed .sidebar__link {
  justify-content: center;
  padding: 0.62rem 0.35rem;
  border-radius: 12px;
}

.app-shell--collapsed .sidebar__link:hover {
  background: #cddfff;
}

.app-shell--collapsed .sidebar__link.is-active {
  background: #b9d2ff;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.22);
}

.sidebar__link:hover {
  background: var(--shell-sidebar-hover);
  color: var(--shell-sidebar-text);
}

.sidebar__link.is-active {
  background: var(--shell-active);
  color: var(--shell-active-text);
  box-shadow: inset 3px 0 0 #1d4ed8;
}

/* ——— Sidebar: Panel yönetimi (açılır grup) ——— */
.sidebar__details {
  margin: 0;
  border-radius: 10px;
}

.sidebar__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  color: color-mix(in srgb, var(--shell-sidebar-text) 82%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.sidebar__summary::-webkit-details-marker {
  display: none;
}

.sidebar__summary:hover {
  background: var(--shell-sidebar-hover);
  color: var(--shell-sidebar-text);
}

.sidebar__summary-chev {
  margin-left: auto;
  font-size: 0.65rem;
  opacity: 0.65;
}

.sidebar__sub {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.15rem 0 0.35rem 0.85rem;
  margin: 0 0 0.25rem 0.35rem;
  border-left: 1px solid var(--shell-border);
}

.sidebar__sublink {
  display: block;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--shell-sidebar-text) 78%, transparent);
  text-decoration: none;
}

.sidebar__sublink:hover {
  background: #d1e2ff;
  color: var(--shell-sidebar-text);
}

.sidebar__sublink.is-active {
  background: #bfd6ff;
  color: #1e3a8a;
  font-weight: 700;
}

.app-shell--collapsed .sidebar__summary {
  justify-content: center;
}

.app-shell--collapsed .sidebar__summary-chev,
.app-shell--collapsed .sidebar__sub {
  display: none;
}

.sidebar__icon {
  flex-shrink: 0;
  display: flex;
}

.sidebar__text {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.app-shell--collapsed .sidebar__text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}

/* İmleç yanında gösterim — konum JS ile (fixed) */
.sidebar-floating-tooltip {
  position: fixed;
  z-index: 200;
  padding: 0.45rem 0.7rem;
  background: #1f2937;
  color: #f9fafb;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  max-width: 220px;
  line-height: 1.3;
  transition: opacity 0.06s ease;
}

.sidebar-floating-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.shell-backdrop {
  display: none;
}

.content-area {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--shell-content-area-bg);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.content-area:has(.page-stack--table) {
  overflow: hidden;
}

/* Tablo sayfaları: üst sabit, tablo gövdesi kayar, alt footer sabit */
.page-stack--table {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.page-stack__header {
  flex: 0 0 auto;
}

.page-stack__table {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Kullanıcılar: beyaz içerik paneli, kenarlarda boşluk + grid kartlar */
.content-area:has(.employee-directory-page) {
  background: #e8ecf1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.employee-directory-page.page-stack--table {
  gap: 0;
}

.employee-directory__surface {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.employee-directory-page__header {
  flex: 0 0 auto;
  padding: 1.25rem 1.5rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
}

.employee-directory-page__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.employee-directory-page__title-block {
  min-width: 0;
}

.employee-directory-page__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.employee-directory-page__sub {
  margin: 0;
  max-width: 40rem;
}

.employee-directory-page__header .page-sub {
  margin-top: 0.35rem;
}

.employee-directory-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
}

.employee-directory-filters__search {
  flex: 1 1 16rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 0.4rem;
  transition: border-color 0.15s ease;
}

.employee-directory-filters__search:focus-within {
  border-bottom-color: #2563eb;
}

.employee-directory-filters__search-icon {
  flex: 0 0 auto;
  color: #94a3b8;
}

.employee-directory-filters__search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  padding: 0.25rem 0;
  color: var(--shell-text);
}

.employee-directory-filters__search input::placeholder {
  color: #94a3b8;
}

.employee-directory-filters__extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.employee-directory-filters__compact select {
  min-width: 8.75rem;
  font-size: 0.82rem;
}

.employee-directory-filters__reset {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.employee-directory-filters__reset:hover {
  text-decoration: underline;
}

.employee-directory__add-btn {
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
}

.page-stack__table.employee-directory__list-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

.page-stack__table.employee-directory__list-shell > .table-footer {
  flex: 0 0 auto;
  margin: 0 1.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.employee-directory-scroll {
  flex: 1;
  min-height: 0;
  padding: 1rem 1.5rem 1.25rem;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem 0.85rem;
  align-items: stretch;
}

@media (min-width: 90rem) {
  .employee-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.employee-directory__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--shell-muted);
  margin: 0;
}

.employee-directory__loading {
  text-align: center;
  font-size: 0.84rem;
  color: var(--shell-muted);
  padding: 0.6rem 1rem 0.15rem;
  margin: 0;
}

.employee-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: visible;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.employee-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.employee-card__toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  padding: 0.35rem 0.35rem 0 0.5rem;
  min-height: 2.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 12px 12px 0 0;
}

.employee-card__toolbar .employee-card__overflow-menu {
  position: relative;
}

.employee-card__toolbar .row-actions__trigger {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
}

.employee-card__toolbar .row-actions__trigger:hover {
  background: #fff;
  border-color: #e2e8f0;
  color: #334155;
}

.employee-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  flex: 1;
  padding: 0.65rem 0.85rem 1rem;
  border-radius: 0 0 12px 12px;
  transition: background-color 0.12s ease;
}

.employee-card__link:hover {
  background: rgba(255, 255, 255, 0.65);
}

.employee-card__name {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  padding-inline: 0.2rem;
}

.employee-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  width: 100%;
  min-width: 0;
}

.employee-card__meta-line {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
  word-break: break-word;
}

.employee-card__meta-line--division {
  color: #64748b;
}

.employee-card__meta-line--detail {
  font-size: 0.7rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .content-area:has(.employee-directory-page) {
    padding: 1rem;
  }

  .employee-directory-page__header {
    padding: 1rem 1rem 0.85rem;
  }

  .employee-directory-scroll {
    padding: 0.85rem 1rem 1rem;
  }

  .page-stack__table.employee-directory__list-shell > .table-footer {
    margin: 0 1rem 0.85rem;
  }

  .employee-directory-page__title-row {
    flex-wrap: wrap;
  }

  .employee-directory__add-btn {
    width: 100%;
    justify-content: center;
  }
}

.page-stack__table.panel-card > .table-section-title {
  flex: 0 0 auto;
  margin-bottom: 0.65rem;
}

.data-table--sticky thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--shell-card-bg);
  box-shadow:
    inset 0 -1px 0 var(--shell-border),
    0 1px 0 rgba(15, 23, 42, 0.04);
}

.table-footer {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--shell-border);
  background: var(--shell-card-bg);
}

.table-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.85rem;
  color: var(--shell-muted);
}

.table-footer__pager {
  margin: 0;
}

.table-footer__limit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.table-footer__limit-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--shell-text);
}

.table-footer__limit-label select {
  min-width: 4.5rem;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.profile-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-page__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.link-back {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1d4ed8;
  text-decoration: none;
}

.link-back:hover {
  text-decoration: underline;
}

/* ——— Mobil / dar ekran: çekmece + backdrop ——— */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: var(--shell-topbar-height);
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    flex: none;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border-right: 1px solid var(--shell-border);
  }

  .app-shell:not(.app-shell--collapsed) .sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.1);
  }

  .app-shell--collapsed .sidebar {
    flex-basis: auto;
    width: min(280px, 88vw);
    transform: translateX(-100%);
  }

  .sidebar__mobile-brand {
    display: block;
  }

  /* Mobilde dar şerit yok: her zaman tam genişlik çekmece */
  .app-shell--collapsed .sidebar__text {
    opacity: 1;
    width: auto;
  }

  .shell-backdrop {
    display: block;
    position: fixed;
    top: var(--shell-topbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.38);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .app-shell:not(.app-shell--collapsed) .shell-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Responsive: üst bardaki proje adını gizle (yer kazan); başlık çekmece içinde / sayfada */
  .topbar__brand {
    display: none;
  }

  .content-area {
    width: 100%;
    min-height: 0;
    overflow: hidden;
  }
}

.panel-card {
  background: var(--shell-card-bg);
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.panel-card--fill {
  min-height: calc(100vh - var(--shell-topbar-height) - 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.panel-card--project {
  border: 1px solid color-mix(in srgb, var(--shell-border) 96%, transparent);
  background: var(--shell-card-bg);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 10px 24px rgba(30, 64, 175, 0.08);
}

.project-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: #eef4ff;
  border: 1px solid #cddcf8;
}

.project-hero-avatar {
  width: 88px;
  height: 88px;
  margin-bottom: 0.95rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.45rem;
  color: #ffffff;
  background: #2563eb;
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.project-hero-chips {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.project-hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #374151;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e7ff;
}

.panel-card__heading {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-card__sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--shell-muted);
}

.rbac-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rbac-header {
  padding: 1.25rem 1.5rem;
}

.rbac-title {
  margin: 0;
  font-size: 1.35rem;
}

.rbac-sub {
  margin: 0.45rem 0 0;
  color: var(--shell-muted);
}

.rbac-alert {
  margin-top: 0.75rem;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.rbac-alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.rbac-alert--error {
  background: var(--shell-danger-bg);
  color: var(--shell-danger-fg);
  border: 1px solid var(--shell-danger-border);
}

.rbac-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 1200px) {
  .rbac-grid {
    grid-template-columns: 1fr;
  }
}

.rbac-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.rbac-card__sub {
  margin: 0.45rem 0 1rem;
  color: var(--shell-muted);
  font-size: 0.9rem;
}

.rbac-role-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rbac-role-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem;
}

.rbac-role-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rbac-role-item__head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.rbac-badge {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
}

.rbac-role-item__desc {
  margin: 0.45rem 0 0;
  color: var(--shell-muted);
  font-size: 0.88rem;
}

.rbac-role-item__key {
  margin: 0.45rem 0;
  font-size: 0.82rem;
}

.rbac-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rbac-chip {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.75rem;
  color: #4b5563;
  background: #f9fafb;
}

.rbac-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rbac-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.rbac-field input,
.rbac-field select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  height: 38px;
  padding: 0 0.65rem;
  font: inherit;
  font-weight: 400;
}

.rbac-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 0;
  padding: 0.65rem;
}

.rbac-fieldset legend {
  padding: 0 0.35rem;
  color: var(--shell-muted);
  font-size: 0.8rem;
}

.rbac-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.rbac-check span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.rbac-check small {
  color: var(--shell-muted);
  font-size: 0.76rem;
}

.rbac-btn {
  border: none;
  border-radius: 8px;
  height: 38px;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #2563eb;
}

.rbac-btn--secondary {
  background: #0f766e;
}

/* ——— Ortak sayfa / tablo / formlar ——— */
.muted {
  color: var(--shell-muted);
  font-size: 0.9rem;
}

.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.page-toolbar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.page-sub {
  margin: 0.35rem 0 0;
  color: var(--shell-muted);
  font-size: 0.9rem;
}

.table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--shell-muted);
  margin: 0 0 0.65rem;
}

.table-section-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.table-section-sub {
  margin: 0 0 1rem;
}

.table-wrap {
  overflow: auto;
  margin-bottom: 0.85rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--shell-border);
  text-align: left;
  vertical-align: middle;
}

.data-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--shell-muted);
  font-weight: 600;
}

.data-table__actions-col {
  width: 52px;
  text-align: right;
}

.data-table__empty {
  text-align: center;
  color: var(--shell-muted);
  padding: 1.25rem !important;
}

.cell-muted {
  color: var(--shell-muted);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

@media (max-width: 1100px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

.filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--shell-text);
}

.filters__field input,
.filters__field select {
  width: 100%;
  font-weight: 400;
}

.filters__field input {
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 0.6rem;
  font: inherit;
}

.filters__buttons {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.row-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.row-actions__trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--shell-border);
  background: #fff;
  color: var(--shell-muted);
  cursor: pointer;
}

.row-actions__trigger::-webkit-details-marker {
  display: none;
}

/* Konum: açılınca shell.js `position:fixed` verir (overflow taşması önlenir) */
.row-actions__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 200px;
  max-width: min(280px, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 0.35rem;
  z-index: 40;
}

.row-actions__item {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: var(--shell-text);
  text-decoration: none;
  font-size: 0.86rem;
}

.row-actions__item:hover {
  background: var(--shell-sidebar-hover);
}

.row-actions__item--btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.row-actions__item--danger {
  color: var(--shell-danger-fg);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pager__link {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d4ed8;
}

.pager__link.is-disabled {
  pointer-events: none;
  opacity: 0.35;
  color: var(--shell-muted);
}

.pager__info {
  font-size: 0.86rem;
  color: var(--shell-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--shell-border);
  color: #374151;
  background: #f9fafb;
}

.pill--ok {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.pill--muted {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #6b7280;
}

.pill--ghost {
  font-weight: 500;
}

.alert {
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}

.alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.alert--error {
  background: var(--shell-danger-bg);
  color: var(--shell-danger-fg);
  border: 1px solid var(--shell-danger-border);
}

.alert--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.btn-primary-solid,
.btn-secondary-solid,
.btn-danger-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary-solid {
  background: var(--shell-accent);
  color: #fff;
}

.btn-secondary-solid {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}

.btn-danger-solid {
  background: var(--shell-danger-strong);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--shell-muted);
  border-color: transparent;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: var(--shell-accent);
  border: 1px solid color-mix(in srgb, var(--shell-accent) 35%, #cbd5e1);
}

.btn-outline:hover {
  background: #eff6ff;
  border-color: var(--shell-accent);
}

.stack-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.stack-form__field input {
  width: 100%;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 0.6rem;
  font: inherit;
  font-weight: 400;
  color-scheme: light;
  background-color: #ffffff;
  color: #111827;
}

.stack-form__field select {
  color-scheme: light;
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  height: 38px;
  padding: 0 0.6rem;
  font: inherit;
  font-weight: 400;
}

.stack-form__hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: #64748b;
}

.stack-form__checkrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  font-size: 0.86rem;
  margin-top: 0.5rem;
}

/* Eğitim ekleme/düzenleme sayfası (standalone) */
.course-form-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.8rem 1.2rem 3rem;
}

.course-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.course-form-card__head {
  margin-bottom: 1.2rem;
}

.course-form-card__title {
  margin: 0;
  font-size: 1.4rem;
  color: #0f172a;
}

.course-form-card__sub {
  margin: 0.4rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.stack-form__field textarea {
  width: 100%;
  min-height: 5.5rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-weight: 400;
  resize: vertical;
  color-scheme: light;
  background-color: #ffffff;
  color: #111827;
}

.input-readonly {
  background: #f9fafb !important;
  color: var(--shell-muted) !important;
  cursor: not-allowed;
}

.stack-form__field select {
  width: 100%;
}

.stack-form__field .panel-ui-select-root {
  width: 100%;
}

.stack-form__field .panel-ui-select__trigger {
  width: 100%;
  max-width: none;
}

.modal-dialog .panel-ui-select__dropdown,
dialog.modal-dialog .panel-ui-select__dropdown {
  z-index: 1000;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.form-page__header {
  margin-bottom: 0.75rem;
}

.confirm-dialog,
.modal-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(420px, 92vw);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
  background: #ffffff;
  color: #111827;
}

.modal-dialog--lg {
  width: min(520px, 94vw);
  max-width: min(520px, 94vw);
}

/** İki sütunlu kısa formlar (yan hak / performans modalları) */
.modal-dialog--form-wide {
  width: min(560px, 94vw);
  max-width: min(560px, 94vw);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  width: 100%;
}

.form-grid-2__full {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.confirm-dialog__inner,
.modal-dialog__form,
.modal-dialog > form.stack-form {
  padding: 1rem 1.1rem;
}

.confirm-dialog__msg,
.modal-dialog__title {
  margin: 0 0 0.5rem;
}

.modal-dialog__actions,
.confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.profile-hero__avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: #2563eb;
  flex-shrink: 0;
}

.profile-hero__avatar--photo {
  display: block;
  object-fit: cover;
  padding: 0;
}

.profile-hero__main {
  flex: 1;
  min-width: 220px;
}

.profile-hero__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell-muted);
  font-weight: 700;
}

.profile-hero__name {
  margin: 0.25rem 0 0.15rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.profile-hero__meta {
  margin: 0;
  color: var(--shell-muted);
}

.profile-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.profile-hero__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  margin-bottom: 0.85rem;
}

.profile-tabs a {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}

.profile-tabs a:hover {
  background: rgba(255, 255, 255, 0.65);
}

.profile-tabs a.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.profile-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--shell-border, #e2e8f0);
}

.profile-subtabs a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
}

.profile-subtabs a:hover {
  background: #fff;
  color: var(--shell-text, #0f172a);
}

.profile-subtabs a.is-active {
  background: #fff;
  color: var(--shell-active-text, #1d4ed8);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.profile-panel__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.profile-dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

@media (max-width: 900px) {
  .profile-dl {
    grid-template-columns: 1fr;
  }
}

.profile-dl dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--shell-muted);
}

.profile-dl dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.nested-page__crumb {
  margin: 0 0 0.65rem;
}

.nested-page__crumb a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.role-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.role-hero__key code {
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.role-hero__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.perm-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.perm-group__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.perm-group__title--row {
  margin-bottom: 0.65rem;
}

.perm-check--inline {
  align-items: center;
  margin: 0;
}

.perm-group__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
}

@media (max-width: 900px) {
  .perm-group__list {
    grid-template-columns: 1fr;
  }
}

.perm-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.35rem 0.25rem;
  border-radius: 10px;
}

.perm-check:hover {
  background: #f9fafb;
}

.perm-check span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.perm-check strong {
  font-size: 0.86rem;
}

.perm-check small {
  font-size: 0.76rem;
}

/* Ortak tablo shell (toolbar + liste satırı) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dt-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem 0;
}

.dt-title-row__heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--shell-active-text);
  letter-spacing: -0.02em;
}

.dt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--shell-border);
  background: var(--shell-card-bg);
}

.dt-toolbar__search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 0.5rem 0 0.45rem;
  background: #fff;
}

.dt-toolbar__search-icon {
  display: flex;
  color: var(--shell-muted);
}

.dt-toolbar__search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  height: 36px;
  font: inherit;
  font-size: 0.875rem;
}

.dt-toolbar__search input[type="search"]:focus {
  outline: none;
}

.dt-toolbar__lead {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  flex: 1;
  min-width: 0;
}

.dt-toolbar__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
}

.dt-toolbar__date-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--shell-muted);
}

.dt-toolbar__date-field input[type="date"] {
  height: 36px;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  padding: 0 0.35rem;
  font: inherit;
  font-size: 0.82rem;
  background: #fff;
}

.dt-toolbar__apply {
  align-self: flex-end;
}

.dt-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.dt-toolbar__icon-group {
  display: flex;
  gap: 0.25rem;
}

.dt-icon-btn {
  min-width: 2.25rem;
  height: 34px;
  padding: 0 0.45rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--shell-muted);
  cursor: not-allowed;
}

.dt-toolbar__page-size select {
  min-width: 4.5rem;
  height: 34px;
  font-size: 0.8rem;
}

.btn-secondary-solid--sm,
.btn-danger-solid--sm {
  height: 34px;
  padding: 0 0.65rem;
  font-size: 0.82rem;
}

.table-footer--simple {
  justify-content: flex-start;
}

.data-table--list tbody td {
  vertical-align: middle;
}

.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cell-stack__primary {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--shell-text);
}

.cell-stack__secondary {
  font-size: 0.82rem;
}

.pill--danger-outline {
  border-color: var(--shell-danger-border);
  background: var(--shell-danger-bg);
  color: var(--shell-danger-fg);
}

.pill--warn-outline {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

/* ——— İzin modülü (panel teması) ——— */
.leave-page__toolbar {
  margin-bottom: 0.75rem;
}

.leave-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .leave-dash-grid {
    grid-template-columns: 1fr;
  }
}

.leave-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.leave-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--shell-text);
  letter-spacing: -0.02em;
}

.leave-card-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.leave-inline-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--shell-muted);
}

.leave-inline-field select {
  min-width: 8.5rem;
}

.leave-balance-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.leave-donut {
  position: relative;
  width: 168px;
  height: 168px;
  flex-shrink: 0;
}

.leave-donut--sm {
  width: 132px;
  height: 132px;
}

.leave-donut__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--shell-active-text) 0deg 120deg,
    #e5e7eb 120deg 360deg
  );
  mask: radial-gradient(farthest-side, transparent 58%, #000 59%);
  -webkit-mask: radial-gradient(farthest-side, transparent 58%, #000 59%);
}

.leave-donut__center {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--shell-border);
}

.leave-donut__value {
  font-size: 1.35rem;
  color: var(--shell-text);
  line-height: 1.1;
}

.leave-donut__label {
  font-size: 0.72rem;
  color: var(--shell-muted);
  max-width: 8ch;
}

.leave-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.25rem;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.leave-metrics dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--shell-muted);
}

.leave-metrics dd {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--shell-text);
}

.leave-metrics__accent {
  color: var(--shell-active-text);
}

.leave-card-foot {
  margin: 1rem 0 0;
  font-size: 0.82rem;
}

.leave-calendar-split {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem 1.35rem;
  align-items: start;
}

.leave-mini-cal {
  flex: 0 0 auto;
}

.leave-mini-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.leave-mini-cal__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--shell-text);
}

.leave-cal-nav-btn {
  border: 1px solid var(--shell-border);
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: not-allowed;
  color: var(--shell-muted);
}

.leave-mini-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1.65rem));
  gap: 0.2rem 0.15rem;
  font-size: 0.68rem;
  text-align: center;
  color: var(--shell-muted);
}

.leave-mini-cal__grid > span:nth-child(-n + 7) {
  font-weight: 700;
  font-size: 0.62rem;
  color: var(--shell-muted);
}

.leave-cal-dim {
  color: #cbd5e1;
}

.leave-cal-mark {
  font-weight: 700;
  border-radius: 6px;
  padding: 0.1rem 0;
}

.leave-cal-mark--holiday {
  background: #e0e7ff;
  color: #3730a3;
}

.leave-cal-mark--leave {
  background: #dbeafe;
  color: #1d4ed8;
}

.leave-cal-mark--selected {
  background: var(--shell-active-text);
  color: #fff;
}

.leave-mini-legend {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--shell-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.leave-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.leave-legend-dot--leave {
  background: #3b82f6;
}

.leave-month-summary {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  align-content: start;
}

.leave-month-summary li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0.32rem 0.1rem;
  border-bottom: none;
  color: var(--shell-text);
}

.leave-month-summary li > span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--shell-muted);
  line-height: 1.2;
}

.leave-month-summary em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--shell-text);
  line-height: 1.2;
}

.leave-month-summary__hi {
  color: var(--shell-active-text);
}

@media (max-width: 720px) {
  .leave-month-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .leave-calendar-split {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .leave-mini-cal {
    justify-self: center;
  }

  .leave-month-summary {
    grid-template-columns: 1fr;
    max-width: 16rem;
    justify-self: center;
  }
}

.leave-card-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.link-accent-arrow {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--shell-active-text);
  text-decoration: none;
}

.link-accent-arrow:hover {
  text-decoration: underline;
}

.link-muted-arrow {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--shell-muted);
  text-decoration: none;
}

.link-muted-arrow:hover {
  color: var(--shell-text);
  text-decoration: underline;
}

.leave-request-page .leave-request-card {
  max-width: 920px;
}

.leave-form-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--shell-border);
  margin: -0.25rem -0.5rem 1.25rem;
  padding: 0 0.5rem;
}

.leave-form-tabs__item {
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--shell-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.leave-form-tabs__item.is-active {
  color: var(--shell-active-text);
  border-bottom-color: var(--shell-active-text);
}

.leave-readonly-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.leave-datetime-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .leave-datetime-row {
    grid-template-columns: 1fr 1fr;
  }
}

.leave-calc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin: 0.5rem 0 1rem;
}

.panel-card--tight {
  padding: 1rem 1.15rem;
}

.leave-calc-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 6rem;
}

.leave-calc-item--wide {
  flex: 1;
  min-width: 200px;
}

.leave-calc-input {
  width: 4rem;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-align: center;
}

.leave-calc-accent {
  color: var(--shell-active-text);
}

.leave-attachments__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--shell-active-text);
}

.leave-attachments__empty {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.btn-linkish {
  border: none;
  background: none;
  padding: 0;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--shell-active-text);
  cursor: not-allowed;
}

.btn-primary-solid--sm {
  height: 34px;
  padding: 0 0.7rem;
  font-size: 0.82rem;
}

/* ——— Profil İzin sekmesi (üst özet + tablo) ——— */
.profile-leave-section {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.profile-leave-section .leave-dash-grid {
  gap: 1.15rem;
}

.profile-leave-section .panel-card.leave-balance-card,
.profile-leave-section .panel-card.leave-calendar-card {
  border-radius: 14px;
  border: 1px solid var(--shell-border);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.07);
  padding: 1.35rem 1.45rem;
}

.profile-leave-section .leave-card-head {
  margin-bottom: 1.05rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.profile-leave-section .leave-card-title {
  font-size: 1.08rem;
}

.profile-leave-section .leave-mini-cal__grid {
  grid-template-columns: repeat(7, minmax(0, 2.05rem));
  gap: 0.38rem 0.28rem;
  font-size: 0.74rem;
}

.profile-leave-section .leave-mini-cal__grid > span:nth-child(-n + 7) {
  font-size: 0.66rem;
}

.profile-leave-section .leave-donut {
  width: 176px;
  height: 176px;
}

.profile-leave-section .leave-donut__value {
  font-size: 1.42rem;
}

.profile-leave-section .leave-metrics {
  gap: 0.52rem 1.35rem;
}

.profile-leave-section .leave-month-summary li {
  padding: 0.34rem 0;
}

.profile-leave-section .leave-cal-mark--holiday {
  background: #fef3c7;
  color: #92400e;
}

.profile-leave-section .leave-cal-mark--leave {
  background: #e0e7ff;
  color: var(--shell-active-text);
}

.profile-leave-section .leave-cal-mark--selected {
  background: var(--shell-active-text);
  color: #fff;
}

.profile-leave-section .leave-card-actions button.link-accent-arrow {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: right;
}

.leave-request-modal.modal-dialog--lg {
  width: min(640px, 94vw);
  max-width: min(640px, 94vw);
}

.leave-request-dialog-form {
  max-height: min(78vh, 720px);
  overflow-y: auto;
}

/* ——— Profil özet / özlük ——— */
.profile-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }
}

.profile-summary-card__title,
.profile-pending-card .profile-summary-card__title {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--shell-text);
}

.profile-summary-card__body {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.profile-leave-split {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 180px;
}

.profile-leave-split li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.86rem;
}

.profile-leave-split span {
  color: var(--shell-muted);
}

.profile-summary-card__links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.profile-pending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-pending-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.profile-pending-list strong {
  margin-left: auto;
  font-size: 1rem;
  color: var(--shell-text);
}

.profile-pending-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}

.personal-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

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

.personal-avatar-card {
  text-align: center;
}

.personal-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.personal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #eff6ff;
  border: 2px solid var(--shell-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--shell-active-text);
}

.personal-avatar--photo {
  display: block;
  object-fit: cover;
  padding: 0;
}

.personal-photo-form {
  margin-top: 0.75rem;
  text-align: left;
}

.personal-photo-remove-form {
  margin-top: 0.5rem;
}

.personal-photo-remove-form .personal-photo-remove {
  cursor: pointer;
}

.personal-photo-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.personal-photo-remove {
  border: none;
  background: none;
  color: var(--shell-muted);
  font-size: 0.78rem;
  cursor: not-allowed;
  text-decoration: underline;
}

.personal-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-panel__title--accent {
  color: var(--shell-active-text);
  font-size: 1rem;
}

.personal-kv {
  margin: 0;
}

.personal-kv > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

@media (max-width: 520px) {
  .personal-kv > div {
    grid-template-columns: 1fr;
  }
}

.personal-kv dt {
  margin: 0;
  font-weight: 600;
  color: var(--shell-muted);
}

.personal-kv dd {
  margin: 0;
  font-weight: 500;
  color: var(--shell-text);
}

/* ——— Toast (panel) ——— */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  max-width: min(440px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  border: 1px solid transparent;
  animation: toast-in 0.22s ease-out;
}

.toast--out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.toast--error {
  background: var(--shell-danger-bg);
  color: var(--shell-danger-fg);
  border-color: var(--shell-danger-border);
}

.toast--info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.toast--warning {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Public / auth / landing (merged from app.css) ========== */
:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --border: #2a3544;
  --text: #e8edf4;
  --muted: #8b9aaf;
  --accent: #3d8bfd;
  --accent-hover: #5a9dff;
  --danger: #f87171;
  --success: #4ade80;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  font-size: 16px;
}

body:not(.panel-body) {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a5f 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, #2d1f4e 0%, transparent 50%), var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body:not(.panel-body) a {
  color: var(--accent);
  text-decoration: none;
}
body:not(.panel-body) a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-link:hover {
  color: var(--text);
}

.inline-form {
  display: inline;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #041018;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #041018;
}

body:not(.panel-body) .btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
body:not(.panel-body) .btn-ghost:hover {
  border-color: var(--muted);
}

.btn-block {
  width: 100%;
}

body:not(.panel-body) .muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  max-width: 40rem;
}

.hero-wide {
  max-width: 52rem;
}

.lead-wide {
  max-width: 48rem;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.landing-section {
  padding: 2.5rem 0;
}

.landing-section.muted-band {
  background: rgba(26, 34, 44, 0.55);
  border-block: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  font-size: 0.98rem;
  margin: -0.25rem 0 1.75rem;
  max-width: 48rem;
}

.prose {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 48rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.landing-grid {
  margin-top: 0.25rem;
}

.card-rich h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-rich p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.features {
  padding: 1rem 0 4rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.page-landing,
.page-auth,
.page-dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(400px, 100%);
}

.auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field input:focus {
  outline: 2px solid rgba(61, 139, 253, 0.45);
  outline-offset: 0;
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 1rem 0 0;
}
.alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}
.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
}

.dashboard-main {
  padding: 2rem 0 4rem;
}

.page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
}

.page-head p {
  margin: 0 0 2rem;
}

.card-dash h2 {
  font-size: 1rem;
}

/* ——— Tanıtım sayfası (açık tema, uzun akış) ——— */
body.page-landing {
  background: #f5f7ff;
  color: #111827;
}

body.page-landing a {
  color: #2563eb;
}
body.page-landing a:hover {
  color: #1d4ed8;
}

body.page-landing .site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

body.page-landing .logo {
  color: #111827;
}

body.page-landing .nav-link {
  color: #6b7280;
}
body.page-landing .nav-link:hover {
  color: #111827;
}

body.page-landing .btn-primary {
  background: #2563eb;
  color: #ffffff;
}
body.page-landing .btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

body.page-landing .btn-ghost {
  border-color: #e5e7eb;
  color: #374151;
}
body.page-landing .btn-ghost:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

body.page-landing .site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  margin-top: 0;
}

.landing-main {
  flex: 1;
}

.container-wide {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.landing-hero {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(165deg, #ffffff 0%, #f0f4ff 38%, #e8eeff 72%, #f5f7ff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.landing-kicker {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f46e5;
}

.landing-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0f172a;
  max-width: 22ch;
}

@media (min-width: 768px) {
  .landing-title {
    max-width: none;
  }
}

.landing-lead {
  margin: 0 0 2rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #374151;
  max-width: 58rem;
}

.landing-lead strong {
  color: #0f172a;
  font-weight: 600;
}

.btn-landing-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none;
}
.btn-landing-primary:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

body.page-landing .landing-section {
  padding: 3.5rem 0;
}

body.page-landing .landing-band {
  background: #ffffff;
  border-block: 1px solid #e5e7eb;
}

.landing-h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.landing-intro {
  margin: -0.25rem 0 2rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #4b5563;
  max-width: 58rem;
}

.prose-landing {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #374151;
}

.prose-landing p {
  margin: 0 0 1.15rem;
}

.prose-landing p:last-child {
  margin-bottom: 0;
}

.prose-wide {
  max-width: none;
}

@media (min-width: 900px) {
  .prose-wide {
    max-width: 58rem;
  }
}

.landing-columns {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .landing-columns {
    grid-template-columns: 1fr min(320px, 34%);
    gap: 3rem;
  }
}

.landing-col-main .landing-h2 {
  margin-top: 0;
}

.landing-aside-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.landing-h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.landing-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
}

.landing-list li {
  margin-bottom: 0.5rem;
}

body.page-landing .card-landing {
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.page-landing .card-rich h3 {
  color: #0f172a;
}

body.page-landing .card-rich p {
  color: #4b5563;
}

.landing-cta {
  padding: 3rem 0 4.5rem;
  background: linear-gradient(180deg, #eef2ff 0%, #f5f7ff 100%);
  border-top: 1px solid #e5e7eb;
}

.landing-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 720px) {
  .landing-cta-inner {
    flex-direction: row;
    align-items: center;
  }
}

.landing-cta-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.landing-cta-text {
  margin: 0;
  font-size: 1rem;
  color: #6b7280;
}

/* Giriş sayfası — minimal üst çubuk */
.site-header--minimal {
  border-bottom: 1px solid var(--border);
}

.header-inner--center {
  justify-content: center;
}

.logo--static {
  cursor: default;
  text-decoration: none;
}

/* Panel select: birleşik CSS sonrası — asla appearance:none’a dönme (macOS açılır liste) */
.panel-body select {
  color-scheme: light !important;
  color-scheme: light only !important;
  -webkit-appearance: menulist !important;
  appearance: auto !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #111827 !important;
}

.panel-body select option,
.panel-body select optgroup {
  color-scheme: light !important;
  color-scheme: light only !important;
  background-color: #ffffff !important;
  color: #111827 !important;
}

/* Yerel select yerine kullanılan tema içi seçici (macOS liste koyusu yok) */
.panel-ui-select-root {
  position: relative;
  display: block;
  width: 100%;
}

.panel-ui-select__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  max-width: 42rem;
  min-height: 40px;
  padding: 0.45rem 0.72rem;
  margin: 0;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--shell-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.panel-ui-select__trigger:focus {
  outline: 2px solid color-mix(in srgb, var(--shell-active-text) 42%, transparent);
  outline-offset: 1px;
}

.panel-ui-select__trigger::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--shell-muted);
  border-bottom: 2px solid var(--shell-muted);
  transform: rotate(45deg);
  translate: 0 -0.1rem;
  flex-shrink: 0;
}

.panel-ui-select-root--open .panel-ui-select__trigger::after {
  transform: rotate(225deg);
  translate: 0 0.12rem;
}

.panel-ui-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-width: min(42rem, 100%);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--shell-border);
  background: #ffffff;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    0 4px 10px rgba(15, 23, 42, 0.05);
  z-index: 500;
}

/* Tetik dar kaldığında (ör. kart başlığı) liste yine rahat okunur genişlikte */
.dash-widget .panel-ui-select-root {
  min-width: 0;
  width: auto;
}

.dash-widget .panel-ui-select__trigger {
  max-width: none;
  width: auto;
  min-width: 8.5rem;
  min-height: 32px;
  padding: 0.32rem 0.65rem 0.32rem 0.78rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(203, 213, 225, 0.95);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--shell-active-text);
  gap: 0.5rem;
}

.dash-widget .panel-ui-select__trigger::after {
  width: 0.45rem;
  height: 0.45rem;
}

.dash-widget .panel-ui-select__dropdown {
  min-width: max(100%, 12rem);
  width: max-content;
  max-width: min(22rem, calc(100vw - 1.5rem));
}

.panel-ui-select__option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.62rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  color: var(--shell-text);
  text-align: left;
  cursor: pointer;
}

.panel-ui-select__option:hover {
  background: rgba(241, 245, 249, 0.95);
}

select.panel-ui-select__native:focus {
  outline: none;
}

select.panel-ui-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ——— Dashboard sayfası ——— */
.dashboard-page {
  gap: 1.35rem;
  max-width: min(1280px, 100%);
  margin-inline: auto;
}

.dash-hero {
  padding: 1.35rem 1.45rem;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.65);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 40px rgba(15, 23, 42, 0.06);
}

.dash-hero__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shell-active-text);
}

.dash-hero__title {
  margin: 0 0 0.45rem;
  font-size: var(--shell-fs-h1, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--shell-text);
  line-height: 1.15;
}

.dash-hero__sub {
  margin: 0;
  max-width: 46rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--shell-muted);
}

.dash-hero__sub a {
  font-weight: 600;
}

.manager-dashboard {
  width: 100%;
  min-width: 0;
}

.manager-dashboard__grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

/* Dar ekranda tek sütun; tablet ve üstünde 2’li, geniş masaüstünde 3’lü (en fazla 3) */
@media (min-width: 520px) {
  .manager-dashboard__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .manager-dashboard__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.manager-dashboard__grid > .dash-widget {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.manager-dashboard__grid > .dash-widget .dash-widget__body {
  flex: 1;
  min-height: 220px;
  max-height: min(460px, 62vh);
}

.manager-dashboard__grid > .dash-widget--lookup {
  grid-column: 1 / -1;
}

.manager-dashboard__grid > .dash-widget--lookup .dash-widget__body--lookup {
  min-height: 220px;
  max-height: min(460px, 62vh);
}

@media (max-width: 540px) {
  .dash-hero {
    padding: 1.1rem;
  }
}

/* ——— Üst menü: 1) ana şerit (mega bg + mega text) 2) alt şerit (ters: mega text bg, mega bg renkte link) ——— */
.shell-mega-nav {
  display: none;
  flex-direction: column;
  background: var(--shell-mega-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--shell-mega-text) 22%, rgba(0, 0, 0, 0.25));
}

.shell-nav-topbar .shell-mega-nav {
  display: flex;
}

.shell-mega-strip {
  width: 100%;
}

.shell-mega-strip--primary {
  border-bottom: 1px solid color-mix(in srgb, var(--shell-mega-text) 18%, transparent);
}

.shell-mega-strip__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 clamp(0.55rem, 2vw, 1.35rem);
  overflow-x: auto;
  scrollbar-width: thin;
}

.shell-mega-cluster {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  flex-shrink: 0;
}

/* Açılır grupların altında tam genişlik ikinci şerit (X=--shell-mega-bg, Y=--shell-mega-text) */
.shell-mega-subrow {
  display: none;
  width: 100%;
  background: var(--shell-mega-text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--shell-mega-bg) 12%, transparent);
}

.shell-mega-nav--inline-open .shell-mega-subrow,
.shell-mega-nav--route .shell-mega-subrow {
  display: block;
}

.shell-mega-subrow__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0.42rem clamp(0.55rem, 2vw, 1.35rem);
  min-height: 2.75rem;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: thin;
}

.shell-mega-subrow .shell-mega-slot {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.shell-mega-subrow .shell-mega-slot[hidden] {
  display: none !important;
}

.shell-mega-subrow .shell-mega-sub-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  font-size: var(--shell-menu-sub-fs, 0.83rem);
  font-weight: var(--shell-nav-sub-fw, 600);
  color: var(--shell-mega-bg);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.shell-mega-subrow .shell-mega-sub-link:hover {
  background: color-mix(in srgb, var(--shell-mega-bg) 13%, transparent);
  color: var(--shell-mega-bg);
}

.shell-mega-subrow .shell-mega-sub-link.is-active-route {
  background: var(--shell-mega-bg);
  color: var(--shell-mega-text);
  border-color: color-mix(in srgb, var(--shell-mega-bg) 40%, var(--shell-mega-text));
}

.shell-mega-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.66rem 0.82rem;
  font-size: var(--shell-menu-primary-fs, 0.875rem);
  font-weight: var(--shell-nav-parent-fw, 700);
  color: color-mix(in srgb, var(--shell-mega-text) 92%, transparent);
  text-decoration: none;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.shell-mega-pill:hover {
  color: var(--shell-mega-text);
  background: rgba(255, 255, 255, 0.1);
}

.shell-mega-pill--link.is-active-route,
.shell-mega-pill.is-active-route:not(.shell-mega-pill--parent) {
  color: var(--shell-mega-active-text);
  background: var(--shell-mega-active-bg);
  border-bottom-color: var(--shell-mega-active-bg);
}

.shell-mega-pill--parent.is-open,
.shell-mega-pill--parent.is-route-group {
  color: var(--shell-mega-text);
  background: rgba(255, 255, 255, 0.14);
}

.shell-mega-pill--parent.is-active-route {
  color: var(--shell-mega-active-text);
  background: var(--shell-mega-active-bg);
}

.shell-nav-topbar .sidebar {
  display: none !important;
}

.shell-nav-topbar .topbar__menu-toggle {
  display: none !important;
}

.shell-nav-topbar .app-shell__body {
  flex-direction: column;
}

.shell-nav-topbar .content-area {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

/* Gövde yazısı ölçeği */
body.panel-body.shell-font-readable {
  font-size: 1.02rem;
}

body.panel-body.shell-font-readable .dash-person__name {
  font-size: 0.88rem;
}

body.panel-body.shell-font-compact {
  font-size: 0.92rem;
}

body.panel-body.shell-font-compact .dash-person__name {
  font-size: 0.78rem;
}

/* ——— Dashboard kartları ——— */
.dash-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid rgba(203, 213, 230, 0.85);
  border-radius: 18px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05),
    0 12px 32px rgba(15, 23, 42, 0.07);
}

.dash-widget::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--shell-active-text) 0%,
    color-mix(in srgb, var(--shell-active-text) 55%, #ffffff) 55%,
    color-mix(in srgb, var(--shell-active-text) 28%, transparent) 100%
  );
}

.dash-widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.95rem 1.2rem 0.85rem;
  margin: 0;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(241, 245, 249, 0.95);
}

.dash-widget__title-cluster {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 220px;
}

.dash-widget__head .dash-range-form {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

@media (max-width: 520px) {
  .dash-widget__head .dash-range-form {
    margin-left: 0;
    width: 100%;
  }

  .dash-widget__head .dash-widget__filter {
    width: 100%;
  }

  .dash-widget__head .dash-widget__filter select {
    width: 100%;
  }
}

.dash-widget__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--shell-text);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.dash-widget__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--shell-muted);
  line-height: 1.35;
}

.dash-widget__filter select {
  min-height: auto;
  height: auto;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(248, 250, 252, 0.95) !important;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--shell-active-text) !important;
  cursor: pointer;
}

.dash-widget__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 1rem 1.05rem;
}

.dash-widget__body--lookup {
  gap: 0;
  padding-top: 0.85rem;
}

.dash-widget__lookup-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

@media (min-width: 560px) {
  .dash-widget__lookup-layout {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
  }

  .dash-widget__lookup-layout .dash-widget__search-field {
    flex: 0 0 clamp(320px, 36%, 480px);
    align-self: flex-start;
  }

  .dash-widget__lookup-layout .dash-widget__results-dash {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
  }
}

.dash-widget__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
  container-type: inline-size;
}

.dash-widget__search-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.85);
}

.dash-widget__search-field:focus-within {
  border-color: color-mix(in srgb, var(--shell-active-text) 42%, #e2e8f0);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shell-active-text) 14%, transparent);
}

.dash-widget__search-icon {
  color: var(--shell-muted);
  flex-shrink: 0;
}

.dash-widget__search-field input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  color: var(--shell-text);
}

.dash-widget__search-submit {
  flex-shrink: 0;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--shell-active-text) 35%, #e2e8f0);
  background: var(--shell-active-text);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.dash-widget__search-submit:hover {
  filter: brightness(1.05);
}

.dash-widget__search-submit:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--shell-active-text) 55%, transparent);
  outline-offset: 2px;
}

.dash-widget__results-dash {
  margin-top: 0;
  flex: 1;
  min-height: 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  container-type: inline-size;
}

.dash-widget__idle-hint {
  margin: 0;
}

.dash-widget__hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}

.dash-people-grid {
  display: grid;
}

.dash-people-grid--tiles {
  grid-template-columns: repeat(auto-fill, minmax(6.85rem, 1fr));
  gap: 0.62rem;
  align-content: start;
}

.dash-people-grid--search.dash-people-grid--tiles {
  grid-template-columns: repeat(auto-fill, minmax(7.75rem, 1fr));
}

/* Kart genişliğine göre sütun: dar alanda 2, genişte 3 kutucuk */
@container (min-width: 220px) {
  .dash-people-grid--tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (max-width: 219px) {
  .dash-people-grid--tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.dash-person--tile {
  padding: 0.78rem 0.45rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 241, 0.95);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.dash-person--tile:hover {
  border-color: color-mix(in srgb, var(--shell-active-text) 42%, #e2e8f0);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.08),
    0 0 0 1px color-mix(in srgb, var(--shell-active-text) 12%, transparent);
  transform: translateY(-1px);
}

.dash-person__badge {
  display: inline-flex;
  align-self: center;
  margin-bottom: 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.dash-person__name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--shell-text);
  line-height: 1.28;
}

.dash-person__meta {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--shell-muted);
  margin-top: 0.22rem;
}

.dash-person__meta--accent {
  color: var(--shell-active-text);
}

.dash-person__pill {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--shell-active-text);
  background: color-mix(in srgb, var(--shell-active-text) 12%, transparent);
}

.dash-person__role {
  font-size: 0.67rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 0.2rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-empty {
  text-align: center;
  padding: 1.6rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.55);
}

.dash-empty--soft {
  background: rgba(255, 255, 255, 0.5);
}

.dash-empty__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--shell-text);
}

.dash-empty__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 18rem;
  margin-inline: auto;
}

.dash-welcome {
  max-width: 40rem;
  padding: 1.35rem 1.45rem !important;
  border-radius: 16px !important;
  border: 1px solid rgba(203, 213, 230, 0.85) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.dash-welcome__title {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--shell-text);
}

.dash-welcome__text {
  margin: 0;
  line-height: 1.55;
}

.personal-photo-locked {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}

.settings-page .settings-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--shell-active-text);
}

.settings-fieldset {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--shell-border);
  background: var(--shell-card-bg);
}

.settings-fieldset__legend {
  padding: 0 0.4rem;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--shell-text);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.settings-fieldset__hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--shell-muted);
}

.settings-code-snippet {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--shell-active-text);
  background: var(--shell-card-bg);
  padding: 0.1rem 0.38rem;
  border-radius: 6px;
  border: 1px solid var(--shell-border);
}

.settings-page__intro {
  padding-inline: 0.15rem;
  margin-bottom: 0.5rem;
}

.settings-page__intro-text {
  max-width: 48rem;
  line-height: 1.55;
}

.settings-row-tight {
  margin-top: 0.85rem !important;
}

.dash-range-form {
  display: inline-flex;
  margin: 0;
  align-items: center;
}

.content-area:has(.settings-page.settings-page--wide) {
  padding-top: 1.15rem;
}

.dashboard-page.page-stack {
  padding-inline: 0.12rem;
}

/* ——— Üst çubuk: mesajlar (ticket) ——— */
.topbar__notif-wrap {
  position: relative;
}

.topbar__icon-btn--notif {
  position: relative;
}

.topbar__notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
  background: #dc2626;
  color: #fff;
  pointer-events: none;
}

.topbar__notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(22rem, 92vw);
  max-height: min(70vh, 22rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--shell-border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
  z-index: 120;
}

.topbar__notif-panel[hidden] {
  display: none !important;
}

.topbar__notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar__notif-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--shell-accent);
  text-decoration: none;
}

.topbar__notif-all:hover {
  text-decoration: underline;
}

.topbar__notif-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem 0.45rem 0.55rem;
}

.topbar__notif-item {
  display: block;
  padding: 0.55rem 0.55rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.topbar__notif-item:hover {
  background: #f1f5f9;
}

.topbar__notif-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.84rem;
}

.topbar__notif-item__badge {
  flex-shrink: 0;
  min-width: 1.15rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
  text-align: center;
}

.topbar__notif-item__prev {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.topbar__notif-empty {
  margin: 0;
  padding: 0.75rem 0.5rem;
  font-size: 0.82rem;
}

.topbar__notif-readall {
  border: none;
  background: transparent;
  color: #6366f1;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.topbar__notif-item.is-unread {
  background: #eef2ff;
}

.topbar__notif-item.is-unread:hover {
  background: #e0e7ff;
}

.topbar__notif-item-title {
  display: block;
  font-weight: 700;
  font-size: 0.84rem;
}

.topbar__notif-item-msg {
  display: block;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  margin-top: 0.1rem;
}

.topbar__notif-item-time {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.topbar__notif-foot {
  padding: 0.5rem 0.65rem 0.65rem;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.topbar__notif-page-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--shell-accent);
}

.topbar__notif-page-btn:hover {
  filter: brightness(1.05);
}

/* ——— Mesajlar sayfası ——— */
.messages-page--gate .messages-gate {
  padding: 1.25rem 1.35rem;
}

.messages-gate__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.messages-shell {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  min-height: min(70vh, 720px);
}

@media (max-width: 900px) {
  .messages-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.messages-sidebar {
  padding: 1rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}

.messages-compose--inline {
  padding: 0.85rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fafbff;
}

.messages-compose__title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.messages-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--shell-muted);
}

.messages-field input,
.messages-field textarea {
  font: inherit;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--shell-text);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fff;
}

.messages-field--picker {
  margin-bottom: 0.55rem;
}

.messages-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.messages-picker__field input {
  width: 100%;
  font: inherit;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--shell-text);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fff;
}

.messages-picker__field input:focus {
  outline: 2px solid color-mix(in srgb, var(--shell-active-text) 35%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--shell-active-text) 45%, #d1d5db);
}

.messages-picker__chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--shell-active-text) 35%, #cbd5e1);
  border-radius: 10px;
  background: #eff6ff;
}

.messages-picker__chip[hidden] {
  display: none;
}

.messages-picker__chip-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--shell-text);
  flex-shrink: 0;
}

.messages-picker__chip-email {
  font-size: 0.78rem;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-picker__chip-clear {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: var(--shell-muted);
  border-radius: 6px;
}

.messages-picker__chip-clear:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.messages-picker__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.messages-picker__results[hidden] {
  display: none;
}

.messages-picker__option {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--shell-text);
}

.messages-picker__option:hover,
.messages-picker__option:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.messages-picker__option-name {
  font-size: 0.86rem;
  font-weight: 700;
}

.messages-picker__option-meta {
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messages-picker__empty {
  margin: 0;
  padding: 0.55rem 0.6rem;
  font-size: 0.78rem;
}

.messages-hint {
  margin: 0.35rem 0 0;
  min-height: 1.1rem;
  font-size: 0.78rem;
}

.messages-sidebar__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--shell-muted);
}

.messages-inbox {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
}

.messages-inbox__row {
  text-align: left;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.messages-inbox__row:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.messages-inbox__row.is-active {
  border-color: color-mix(in srgb, var(--shell-accent) 45%, #e2e8f0);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--shell-accent) 25%, transparent);
}

.messages-inbox__row--unread {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.messages-inbox__row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.messages-inbox__preview {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.messages-inbox__unread {
  flex-shrink: 0;
  min-width: 1.2rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  background: #1d4ed8;
  color: #fff;
}

.messages-thread {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.messages-thread__empty {
  padding: 1.5rem 1.25rem;
}

.messages-thread__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.messages-thread__head {
  flex-shrink: 0;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.messages-thread__peer {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.messages-thread__sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

.messages-bubble-list {
  flex: 1;
  min-height: 180px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}

.messages-bubble {
  align-self: flex-start;
  max-width: min(100%, 38rem);
}

.messages-bubble--mine {
  align-self: flex-end;
}

.messages-bubble__text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.messages-bubble--mine .messages-bubble__text {
  background: #dbeafe;
  border-color: #93c5fd;
}

.messages-bubble__time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  padding: 0 0.15rem;
}

.messages-reply {
  flex-shrink: 0;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.settings-card__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.settings-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.settings-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.settings-check input {
  margin-top: 0.2rem;
}

.settings-card__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.hr-leave-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--shell-border);
  background: var(--shell-card-bg);
}

.hr-leave-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--shell-muted);
}

.hr-leave-toolbar__field select,
.hr-leave-toolbar__field input[type="date"] {
  height: 36px;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  padding: 0 0.4rem;
  font: inherit;
  font-size: 0.82rem;
  min-width: 9rem;
  background: #fff;
}

.hr-leave-page .hr-leave-table-card {
  border-radius: 14px;
}

/* ——— Panel tipografi (--shell-fs-* :root) ——— */
body.panel-body {
  font-size: var(--shell-fs-body);
}

.panel-body .page-stack__title,
.panel-body .auth-title {
  font-size: var(--shell-fs-h1);
  font-weight: 800;
  line-height: 1.2;
}

.panel-body .profile-panel__title,
.panel-body .settings-card__title,
.panel-body .dash-widget__title,
.panel-body .dt-title-row__heading {
  font-size: var(--shell-fs-h2);
  font-weight: 700;
}

.panel-body .page-sub,
.panel-body .dash-widget__subtitle {
  font-size: var(--shell-fs-h3);
  line-height: 1.48;
}

.settings-page--wide {
  max-width: min(920px, 100%);
}

.settings-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.settings-radio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.settings-master-form .settings-card {
  margin-bottom: 1rem;
}

/* ——— Eğitim oynatıcı (panel dışı sade sayfa) ——— */
.training-player-page {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.training-player-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.training-player-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.training-player-bar__brand {
  font-weight: 800;
  color: var(--shell-active-text, #2563eb);
  text-decoration: none;
}

.training-player-bar__title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.training-player-bar__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.training-player-bar__link:hover {
  color: #0f172a;
  text-decoration: underline;
}

.training-player-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.training-player-meta {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.training-player-frame-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.training-player-frame-wrap--pdf .training-player-frame {
  min-height: min(72vh, 720px);
}

.training-player-frame {
  width: 100%;
  min-height: min(56vh, 520px);
  border: 0;
  border-radius: 8px;
  background: #0f172a;
}

.training-player-video {
  display: block;
  width: 100%;
  max-height: min(70vh, 640px);
  border-radius: 8px;
  background: #000;
}

.training-player-external .training-player-cta {
  margin-top: 0.75rem;
  display: inline-flex;
}

.training-player-complete {
  margin-top: 1.25rem;
}

select.training-assign-select {
  width: 100%;
  min-height: 14rem;
}

/* Eğitim — Udemy tarzı öğrenme + erişim diyaloğu */
.training-learn-page {
  margin: 0;
  min-height: 100vh;
  background: #f1f5f9;
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.training-learn-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.training-learn-topbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.training-learn-topbar__brand {
  font-weight: 800;
  color: var(--shell-active-text, #2563eb);
  text-decoration: none;
}

.training-learn-topbar__title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.training-learn-topbar__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.training-portal {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.training-portal__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.training-portal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.training-portal__sub {
  margin: 0.2rem 0 0;
}

.training-portal__card {
  margin-bottom: 1.25rem;
}

.training-learn-shell {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 52px);
  align-items: stretch;
}

.training-learn-sidebar {
  width: min(280px, 34vw);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 1rem 0.85rem 1.5rem;
}

.training-learn-sidebar__title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.training-learn-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.training-learn-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.training-learn-nav__link:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.training-learn-nav__link.is-active {
  background: color-mix(in srgb, var(--shell-active-text, #2563eb) 10%, #ffffff);
  border-color: color-mix(in srgb, var(--shell-active-text, #2563eb) 28%, #e2e8f0);
}

.training-learn-nav__name {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.3;
}

.training-learn-nav__meta {
  font-size: 0.72rem;
}

.training-learn-nav__empty {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.training-learn-main {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem 2rem;
  background: #f8fafc;
}

.training-learn-meta {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .training-learn-shell {
    flex-direction: column;
  }

  .training-learn-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .training-learn-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .training-learn-nav__link {
    flex: 1 1 140px;
  }
}

.training-access-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.training-access-dialog .modal-dialog__title {
  margin-top: 0;
}

.training-access-editor {
  padding: 0.25rem 0.15rem 0.5rem;
}

.training-access-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.85rem;
}

.training-access-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.training-access-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}

.training-access-checkgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  max-height: 11rem;
  overflow-y: auto;
}

.training-access-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.modal-dialog.training-access-dialog select.training-access-multiselect,
.modal-dialog.training-access-dialog select.training-access-multiselect option {
  color-scheme: light !important;
  color-scheme: light only !important;
  -webkit-appearance: menulist !important;
  appearance: auto !important;
  background-color: #ffffff !important;
  color: #111827 !important;
}

.modal-dialog.training-access-dialog select.training-access-multiselect option {
  background-color: #ffffff !important;
  color: #111827 !important;
}

.training-access-multiselect {
  width: 100%;
  min-height: 12rem;
}

/* ——— Profil header: bağlı olduğu kişi ——— */
.profile-hero__manager {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #475569;
}

.profile-hero__manager-label {
  color: #94a3b8;
  margin-right: 0.3rem;
}

.profile-hero__manager-name {
  font-weight: 600;
  color: #1e293b;
}

/* ——— Organizasyon dizini (profil > organizasyon) ——— */
.org-directory__search {
  position: relative;
  display: block;
  margin: 0.85rem 0 1rem;
  max-width: 28rem;
}

.org-directory__search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.org-directory__search input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  font-size: 0.92rem;
  background: #fff;
}

.org-directory__search input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.org-directory__grid {
  margin-top: 0.25rem;
}

.org-directory__card .employee-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.org-directory__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #c7d2fe;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.org-directory__card .employee-card__meta {
  align-items: center;
}

/* ——— Performans değerlendirmeleri (profil > performans) ——— */
.review-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
}

.review-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-item__period {
  font-weight: 700;
}

.review-item__stars {
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.review-item__star {
  color: #cbd5e1;
}

.review-item__star.is-on {
  color: #f59e0b;
}

.review-item__summary {
  margin: 0.5rem 0 0.6rem;
  line-height: 1.45;
}

.review-item__head-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-item__score {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.review-item__score-num {
  font-weight: 700;
  color: #475569;
  font-size: 0.85rem;
}

.review-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* Kriter dağılımı (barlar) */
.review-criteria {
  margin: 0.75rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.review-criteria__row {
  display: grid;
  grid-template-columns: 11rem 1fr 2.6rem;
  align-items: center;
  gap: 0.6rem;
}

.review-criteria__label {
  font-size: 0.85rem;
  color: #334155;
}

.review-criteria__bar {
  position: relative;
  height: 0.5rem;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.review-criteria__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 999px;
}

.review-criteria__val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-align: right;
}

/* Cevap */
.review-reply {
  margin-top: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: #f8fafc;
  border-left: 3px solid #6366f1;
  border-radius: 0 0.5rem 0.5rem 0;
}

.review-reply__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-reply__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6366f1;
}

.review-reply__date {
  font-size: 0.75rem;
}

.review-item__date {
  white-space: nowrap;
}

.review-reply__text {
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

.review-reply-form {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.review-reply-form textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  font: inherit;
  resize: vertical;
}

/* Değerlendirme formu kriter alanı */
.review-form-criteria {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  margin: 0.25rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.6rem 1rem;
}

.review-form-criteria legend {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 0.4rem;
  color: #334155;
}

.review-form-criteria__field {
  margin: 0;
}

/* ===== Eğitim Kampüsü (LMS portal) ===== */
.lms {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
  background: #f1f5f9;
}

.lms-nav {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lms-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.lms-nav__item:hover {
  background: #f1f5f9;
}

.lms-nav__item.is-active {
  background: #eef2ff;
  color: #4338ca;
}

.lms-nav__ico {
  font-size: 1.05rem;
  width: 1.3rem;
  text-align: center;
}

.lms-nav__divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.6rem 0.4rem;
}

.lms-nav__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 0 0.8rem;
  margin-bottom: 0.2rem;
}

.lms-nav__points {
  margin-top: auto;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.lms-nav__points-label {
  font-size: 0.72rem;
  opacity: 0.85;
}

.lms-nav__points-value {
  font-size: 1.35rem;
}

.lms-nav__points-sub {
  font-size: 0.72rem;
  opacity: 0.85;
}

.lms-main {
  padding: 1.6rem 1.9rem 3rem;
  overflow-y: auto;
}

.lms-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.lms-head__title {
  margin: 0;
  font-size: 1.5rem;
  color: #0f172a;
}

.lms-head__sub {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.lms-empty {
  color: #64748b;
  padding: 1.5rem 0.5rem;
}

/* Eğitim kartları */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}

.course-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s, transform 0.15s;
}

.course-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.course-card__thumb {
  height: 96px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.course-card__body {
  padding: 0.85rem 1rem 0.4rem;
  flex: 1;
}

.course-card__tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4338ca;
  background: #eef2ff;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}

.course-card__title {
  margin: 0.5rem 0 0.3rem;
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.3;
}

.course-card__desc {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card__status {
  font-size: 0.8rem;
  color: #475569;
}

.course-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem 0.95rem;
}

.course-card__admin {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 0.85rem;
  border-top: 1px dashed #e2e8f0;
  margin-top: 0.2rem;
  padding-top: 0.6rem;
}

.points-pill {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.points-pill--muted {
  background: #f1f5f9;
  color: #64748b;
}

.points-pill--cost {
  background: #ecfdf5;
  color: #047857;
}

.progress {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.6rem 0 0.4rem;
}

.progress__bar {
  height: 100%;
  background: #6366f1;
  border-radius: 999px;
  transition: width 0.3s;
}

.progress__bar--done {
  background: #10b981;
}

.lms-linkbtn {
  border: none;
  background: transparent;
  color: #4f46e5;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.lms-linkbtn:hover {
  text-decoration: underline;
}

.lms-linkbtn--danger {
  color: #dc2626;
}

/* Puan özeti */
.points-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.points-summary__item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1.4rem;
  text-align: center;
  min-width: 120px;
}

.points-summary__item span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #4338ca;
}

.points-summary__item small {
  color: #64748b;
  font-size: 0.76rem;
}

/* Rozet kartları */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.badge-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.badge-card__medal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.badge-card__title {
  margin: 0;
  font-size: 0.92rem;
  color: #0f172a;
}

/* Ödül kartları */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.reward-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.reward-card__body {
  flex: 1;
}

.reward-card__title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.reward-card__desc {
  margin: 0;
  font-size: 0.83rem;
  color: #64748b;
}

.reward-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Talep listesi */
.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.req-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.req-item__meta {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill--wait {
  background: #fef3c7;
  color: #b45309;
}

.status-pill--ok {
  background: #dcfce7;
  color: #15803d;
}

.status-pill--no {
  background: #fee2e2;
  color: #b91c1c;
}

/* Ödül yönetimi formları */
.reward-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: flex-end;
  padding: 0.4rem 0 0.2rem;
}

.reward-form .field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.reward-form .field--narrow {
  flex: 0 0 130px;
}

.reward-form .field__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.reward-form .field__input {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
}

.reward-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.reward-inline__name {
  width: 140px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.3rem 0.45rem;
  font-size: 0.82rem;
}

.reward-inline__cost {
  width: 70px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.3rem 0.45rem;
  font-size: 0.82rem;
}

.reward-inline__active {
  font-size: 0.78rem;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.training-learn-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.training-learn-topbar__close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
}

.training-learn-topbar__close:hover {
  background: #fecaca;
}

.training-complete-hint {
  margin: 0;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #3730a3;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .lms {
    grid-template-columns: 1fr;
  }
  .lms-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .lms-nav__points {
    margin-top: 0;
    width: 100%;
  }
}
