﻿@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap");

.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

:root {
  /* EXPORT_08 light gradient tema + dash-pro KPI */
  --bg-app: #f7fbff;
  --bg-app-2: #f3f8ff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #ffffff;
  --border: rgba(226, 232, 240, 0.9);
  --border-soft: rgba(255, 255, 255, 0.78);
  --text: #172033;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --brand: #0ea5e9;
  --brand-2: #8b5cf6;
  --brand-3: #10b981;
  --accent: #8b5cf6;
  --sidebar-text: #27344a;
  --sidebar-muted: #748197;
  --sidebar-hover: rgba(255, 255, 255, 0.66);
  --sidebar-active: rgba(255, 255, 255, 0.9);
  --danger: #e11d48;
  --success: #059669;
  --warning: #d97706;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(14, 165, 233, 0.04);
  --shadow-sm: 0 5px 18px rgba(15, 23, 42, 0.055);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 14px 36px rgba(56, 189, 248, 0.18);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grad-brand: linear-gradient(115deg, #10b981 0%, #38bdf8 48%, #8b5cf6 100%);
  --grad-brand-strong: linear-gradient(135deg, #059669 0%, #0ea5e9 48%, #7c3aed 100%);
  --grad-title: linear-gradient(115deg, #059669 0%, #0ea5e9 48%, #7c3aed 100%);
  --grad-soft: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.16), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.15), transparent 36%),
    radial-gradient(circle at 45% 100%, rgba(14, 165, 233, 0.12), transparent 42%),
    linear-gradient(135deg, #f8fffb 0%, #f3f9ff 45%, #faf7ff 100%);
  --grad-sidebar: linear-gradient(165deg, rgba(236, 253, 245, 0.96) 0%, rgba(240, 249, 255, 0.96) 48%, rgba(245, 243, 255, 0.96) 100%);
  --grad-app: var(--grad-soft);
  --chart-bar: #38bdf8;
  --chart-line: #8b5cf6;
  --kpi-emerald-soft: #ecfdf5;
  --kpi-rose-soft: #fff1f2;
  --kpi-sky-soft: #f0f9ff;
  --kpi-violet-soft: #f5f3ff;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--grad-app);
  background-attachment: fixed;
}

/* ----- Auth (yalnızca giriş) ----- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.auth-left {
  display: none;
  flex: 1;
  max-width: 42%;
  background: linear-gradient(155deg, #047857 0%, #6d28d9 48%, #1d4ed8 100%);
  color: #f8fafc;
  padding: 3rem;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.auth-left h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-left p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.55;
  max-width: 28rem;
  font-size: 0.95rem;
}
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--grad-soft);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card-solid);
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.auth-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.auth-link-row {
  margin: 0.75rem 0 0;
  text-align: center;
}
.btn-link {
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover {
  color: var(--accent);
}
.card-grid.two-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.super-admin-shell .sidebar-brand-text .tag {
  color: #7c3aed;
}

.auth-card .sub {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.auth-brand-mobile {
  display: block;
  text-align: center;
  margin-bottom: 1.25rem;
}
.auth-brand-mobile strong {
  font-size: 1.1rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 900px) {
  .auth-left {
    display: flex;
  }
  .auth-brand-mobile {
    display: none;
  }
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
label.field input {
  font-size: 1rem;
  text-transform: none;
  font-weight: 500;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
}
label.field input:focus {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  border-color: var(--accent);
}
.btn {
  border: 0;
  border-radius: var(--radius);
  height: 44px;
  padding: 0 1.1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28);
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: #f8fafc;
}
.btn-sm {
  height: 36px;
  padding: 0 0.85rem;
  font-size: 0.85rem;
}
.msg {
  font-size: 0.875rem;
  color: var(--danger);
  margin-top: 0.75rem;
  min-height: 1.25rem;
}
.msg.ok {
  color: var(--success);
}

/* ----- Uygulama kabuğu ----- */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  overflow: hidden;
}
.app-shell.is-hidden {
  display: none !important;
}
.auth-screen.is-hidden {
  display: none !important;
}

.sidebar {
  background: var(--grad-sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
  border-right: 1px solid rgba(14, 165, 233, 0.14);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.75), 8px 0 30px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(18px);
  min-height: 0;
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 0.5rem;
}
.sidebar-brand-text {
  min-width: 0;
  flex: 1;
}
.sidebar-account-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  color: #7c3aed;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.sidebar-account-btn .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}
.sidebar-account-btn:hover {
  background: #fff;
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.sidebar-account-btn.is-active {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.45);
  color: #047857;
}
.sidebar-brand .name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sidebar-brand .tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-muted);
  margin-top: 0.2rem;
}

.nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.65rem;
}
.nav-section {
  margin-top: 1rem;
}
.nav-section:first-child {
  margin-top: 0.25rem;
}
.nav-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--sidebar-muted);
  padding: 0.45rem 0.55rem 0.55rem;
  font-weight: 700;
}
.nav-label .nav-sec-ico {
  font-size: 18px;
  opacity: 0.92;
  color: #7c3aed;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}
.nav-label-text {
  flex: 1;
  min-width: 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 2px;
  background: transparent;
  color: var(--sidebar-text);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.nav-item .nav-item-ico {
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.88;
  color: #0ea5e9;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}
.nav-item-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.nav-item:hover {
  background: var(--sidebar-hover);
  border-color: rgba(255, 255, 255, 0.75);
}
.nav-item.is-active {
  background: var(--sidebar-active);
  color: #102033;
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.12), inset 3px 0 0 #10b981;
}
.nav-item.is-active .nav-item-ico {
  color: #10b981;
  opacity: 1;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}
.top-header {
  height: 56px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.5;
  pointer-events: none;
}
.top-header .page-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.panel-ver {
  margin-left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(5, 150, 105, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(5, 150, 105, 0.35);
  flex-shrink: 0;
}
.top-header .user-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: auto;
}
.top-header .pill {
  background: linear-gradient(120deg, rgba(5, 150, 105, 0.12), rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.12));
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-2);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.content-area {
  padding: 1.5rem;
  flex: 1;
}

.page-head {
  margin-bottom: 1.25rem;
}
.page-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-head .lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 52rem;
  line-height: 1.5;
}

.card-panel {
  background-color: var(--bg-card-solid);
  background-image: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(14, 165, 233, 0.04), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}
.toolbar .grow {
  flex: 1;
  min-width: 140px;
}
input.search {
  width: 100%;
  max-width: 280px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  font-family: var(--font);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
table.data th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
table.data td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
table.data tr:last-child td {
  border-bottom: 0;
}
table.data tbody tr:hover td {
  background: #fafbfc;
}

.leave-personnel-detail-btn {
  min-height: 30px;
  height: 30px;
  padding: 0 0.55rem;
}

.badge-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-status.pending {
  background: #fef3c7;
  color: #92400e;
}
.badge-status.approved {
  background: #d1fae5;
  color: #065f46;
}
.badge-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.grid-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.grid-form input,
.grid-form select {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 10px;
  font-family: var(--font);
}
.grid-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 64px;
}
.personnel-form .form-section {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0.15rem;
}
.personnel-form .form-section--intro {
  margin-top: 0;
}
.form-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-section-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 500;
}

.personnel-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.personnel-page-head .btn {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.personnel-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.personnel-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow);
}
.personnel-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.personnel-card--clickable:hover,
.personnel-card--clickable:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
  outline: none;
}
.personnel-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.personnel-card-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.personnel-card-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.personnel-card-body {
  font-size: 0.82rem;
}
.personnel-card-row {
  margin: 0.25rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.personnel-card-row span {
  color: var(--text-muted);
  min-width: 4.5rem;
}
.personnel-card-meta {
  display: inline-block;
  margin: 0.35rem 0 0.5rem;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 600;
}
.personnel-card-muted,
.personnel-card-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}
.personnel-card-block {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}
.personnel-card-block h4 {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.personnel-card-hours {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
.personnel-leave-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.personnel-leave-list li {
  font-size: 0.78rem;
  line-height: 1.35;
}

.personnel-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}
.personnel-modal[hidden] {
  display: none !important;
}
.personnel-modal-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}
.personnel-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  padding: 1rem 1.15rem 1.25rem;
  margin-top: 0.5rem;
}
.personnel-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  padding-bottom: 0.35rem;
  z-index: 2;
}
.personnel-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
body.personnel-modal-open {
  overflow: hidden;
}
.personnel-detail-sub {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.personnel-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.personnel-detail-section {
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
}
.personnel-detail-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.personnel-detail-section h4 {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.personnel-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.35rem 0.85rem;
}
.personnel-detail-row {
  margin: 0;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.personnel-detail-row span {
  color: var(--text-muted);
  font-size: 0.74rem;
}
.personnel-detail-row strong {
  font-weight: 600;
  word-break: break-word;
}
.personnel-detail-notes {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.personnel-detail-panel {
  width: min(960px, 100%);
}
.personnel-detail-table-wrap {
  overflow-x: auto;
}
.personnel-detail-table-wrap table {
  width: 100%;
  font-size: 0.8rem;
}
.grid-span-2 {
  grid-column: span 2;
}
.grid-span-all {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .grid-span-2 {
    grid-column: 1 / -1;
  }
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kpi {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.kpi .val {
  font-size: 1.65rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
.kpi .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.quick-links button {
  font-family: var(--font);
}

.json-preview {
  background: #0f172a;
  color: #94a3b8;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  overflow: auto;
  max-height: 220px;
  margin-top: 0.75rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.module-hero .module-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(5, 150, 105, 0.12), rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.12));
}
.module-placeholder-card {
  position: relative;
  padding-left: 1.35rem;
}
.module-placeholder-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
}
.module-key-line {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.module-key-line code {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  background: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem;
  }
  .nav-scroll {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.25rem;
  }
  .nav-section {
    display: contents;
  }
  .nav-label {
    width: 100%;
    padding-top: 0.5rem;
  }
  .nav-item {
    width: auto;
    flex: 1 1 auto;
    min-width: 120px;
  }
}

/* —— Özet pano (kurumsal, kompakt) —— */
.content-area > .view[hidden],
#dashboardView[hidden],
#dashHomeSummary[hidden] {
  display: none !important;
}
.content-area:has(> #dashboardView:not([hidden])) {
  padding-top: 0.75rem;
}
.dash-home-summary {
  margin-bottom: 0.15rem;
}
.dashboard-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.dash-toolbar-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash-toolbar-actions {
  margin: 0;
}
.kpi-row--tight {
  margin-top: 0.35rem;
  margin-bottom: 0.55rem;
  gap: 0.65rem;
}
.dashboard-view .kpi {
  padding: 0.72rem 0.85rem;
}
.dashboard-view .kpi .val {
  font-size: 1.35rem;
}
.kpi-accent {
  border: 1px solid rgba(5, 150, 105, 0.22);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #f0fdf4 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
  margin: 0.5rem 0 0.65rem;
  align-items: start;
}
.dash-span-2 {
  grid-column: span 2;
}
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-span-2 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem 0.85rem;
  box-shadow: var(--shadow);
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.dash-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.dash-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #059669, #2563eb);
  color: #fff;
  min-width: 1.5rem;
  text-align: center;
}
.dash-pill-soft {
  background: #e2e8f0;
  color: #0f172a;
}
.dash-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.dash-inline-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.dash-inline-label textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--font);
  resize: vertical;
}
.dash-pending-stack {
  position: relative;
  min-height: 132px;
  margin-top: 0.35rem;
  overflow: hidden;
}
.dash-pending-card-host {
  position: relative;
  min-height: 120px;
}
.dash-pending-card {
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.7rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 70%, #f0fdf4 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform, opacity;
}
.dash-pending-card.is-exit-right {
  transform: translateX(115%);
  opacity: 0;
}
.dash-pending-card.is-exit-left {
  transform: translateX(-115%);
  opacity: 0;
}
.dash-pending-name {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}
.dash-pending-dates {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dash-pending-reason {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.dash-pending-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid rgba(5, 150, 105, 0.12);
  padding-top: 0.5rem;
  margin-top: 0.15rem;
}
.dash-pending-note-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 100%;
}
.dash-pending-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  font-family: var(--font);
  font-size: 0.8rem;
  resize: vertical;
  min-height: 2rem;
  width: 100%;
  box-sizing: border-box;
}
.dash-pending-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.dash-pending-actions .btn-sm,
.dash-pending-btns .btn-sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
}
.dash-pending-empty {
  margin: 0.35rem 0 0;
}

#dashPendingEmpty:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  height: 100%;
  text-align: center;
}
.dash-leave-cards {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 240px;
  overflow: auto;
  margin-top: 0.25rem;
}
.dash-leave-mini-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
}
.dash-leave-mini-name {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.dash-leave-mini-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dash-table-wrap {
  margin-top: 0.35rem;
  max-height: 240px;
  overflow: auto;
}
.data-compact td,
.data-compact th {
  font-size: 0.8rem;
  padding: 0.45rem 0.5rem;
}
.dash-reason {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}
.dash-actions {
  white-space: nowrap;
}
.dash-actions .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
}
.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.dash-list li {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dash-list li:last-child {
  border-bottom: none;
}
.dash-li-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}
.dash-li-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dash-status.pending {
  color: #b45309;
}
.dash-status.approved {
  color: #047857;
}
.dash-status.rejected {
  color: #b91c1c;
}
.dash-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  margin: 0;
}
.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 900px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}
.dash-chart-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.dash-chart {
  min-height: 52px;
}
.dash-segbar {
  display: flex;
  width: 100%;
  height: 22px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
}
.dash-seg {
  height: 100%;
  min-width: 4px;
  transition: opacity 0.15s ease;
}
.dash-seg:hover {
  opacity: 0.88;
}
.dash-legend {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}
.dash-legend-item strong {
  color: var(--text);
}
.dash-legend-sep {
  opacity: 0.45;
}
.msg--inline {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Hesabım — sağdan çekmece */
body.account-drawer-open {
  overflow: hidden;
}
.account-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.account-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}
.account-drawer-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
  cursor: pointer;
}
.account-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 94vw);
  max-width: 100%;
  background: #f8fafc;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.account-drawer.is-open .account-drawer-panel {
  transform: translateX(0);
}
.account-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.account-drawer-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.account-drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}
.account-drawer-toolbar {
  margin-bottom: 0.75rem;
}
.account-drawer-json {
  max-height: none;
  flex: 1;
  min-height: 120px;
}

/* Dashboard 3+2 layout (stable selectors only) */
.dash-pro-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.35rem 0 0.75rem;
}
.dash-pro-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.dash-pro-kpi::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(6px);
  pointer-events: none;
}
.dash-pro-kpis .dash-pro-kpi:nth-child(1) {
  background: var(--kpi-emerald-soft);
  border-color: rgba(16, 185, 129, 0.28);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(1)::after {
  background: linear-gradient(135deg, #34d399, #14b8a6);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(2) {
  background: var(--kpi-rose-soft);
  border-color: rgba(251, 113, 133, 0.32);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(2)::after {
  background: linear-gradient(135deg, #fb7185, #fb923c);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(3) {
  background: var(--kpi-sky-soft);
  border-color: rgba(56, 189, 248, 0.32);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(3)::after {
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(4) {
  background: var(--kpi-violet-soft);
  border-color: rgba(167, 139, 250, 0.32);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(4)::after {
  background: linear-gradient(135deg, #a78bfa, #d946ef);
}
.dash-pro-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(1) .dash-pro-kpi-icon {
  background: linear-gradient(135deg, #34d399, #14b8a6);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(2) .dash-pro-kpi-icon {
  background: linear-gradient(135deg, #fb7185, #fb923c);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(3) .dash-pro-kpi-icon {
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
}
.dash-pro-kpis .dash-pro-kpi:nth-child(4) .dash-pro-kpi-icon {
  background: linear-gradient(135deg, #a78bfa, #d946ef);
}
.dash-pro-kpi-val {
  margin-top: 0.2rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dash-pro-kpis .dash-pro-kpi:nth-child(1) .dash-pro-kpi-val {
  background: linear-gradient(115deg, #059669, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-pro-kpis .dash-pro-kpi:nth-child(2) .dash-pro-kpi-val {
  background: linear-gradient(115deg, #e11d48, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-pro-kpis .dash-pro-kpi:nth-child(3) .dash-pro-kpi-val {
  background: linear-gradient(115deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-pro-kpis .dash-pro-kpi:nth-child(4) .dash-pro-kpi-val {
  background: linear-gradient(115deg, #7c3aed, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-pro-kpi-lbl {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-pro-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dash-pro-row--trio-top {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.dash-pro-row--duo-mid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.dash-pro-col-4 {
  grid-column: span 4;
}
.dash-pro-col-6 {
  grid-column: span 6;
}
.dash-pro-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.dash-pro-span-full {
  min-height: 210px;
}
.dash-pro-leave-list,
.dash-pro-feed,
.dash-pending-stack {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.dash-pro-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-pro-feed li {
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--border);
}
.dash-pro-feed li:last-child {
  border-bottom: none;
}
.dash-pro-feed-text {
  margin: 0;
  font-size: 0.82rem;
}
.dash-pro-feed-meta {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.dash-pro-news {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
}
.dash-pro-news-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 255, 0.72));
  box-shadow: var(--shadow-sm);
}
.dash-pro-news-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
}
.dash-pro-news-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dash-pro-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}
.dash-pro-bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 2fr auto;
  gap: 0.45rem;
  align-items: center;
}
.dash-pro-bar-name {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-pro-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.dash-pro-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #0ea5e9);
}
.dash-pro-bar-val {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.dash-pro-line-chart {
  min-height: 150px;
}
.dash-pro-line-chart svg {
  width: 100%;
  height: 150px;
}
.dash-pro-chart-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .dash-pro-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-pro-row--trio-top .dash-pro-col-4 {
    grid-column: span 6;
  }
  .dash-pro-row--duo-mid .dash-pro-col-6 {
    grid-column: span 12;
  }
}
@media (max-width: 720px) {
  .dash-pro-kpis {
    grid-template-columns: 1fr;
  }
  .dash-pro-row--trio-top .dash-pro-col-4,
  .dash-pro-row--duo-mid .dash-pro-col-6 {
    grid-column: span 12;
  }
}

/* —— Anasayfa dash-pro (açık gradient tema + 3+2 layout) —— */
:root {
  --dash-trio-card-height: 372px;
}

.content-area:has(> #dashboardView.dash-pro-theme:not([hidden])) {
  background: transparent;
  padding: 0.75rem 0 1rem;
}

.dash-pro-theme.dashboard-view {
  color: var(--text);
}

.dash-pro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-pro-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.dash-pro-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dash-pro-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #334155;
  background: linear-gradient(120deg, #d1fae5, #e0f2fe, #ede9fe);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.dash-pro-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dash-pro-sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dash-pro-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.dash-pro-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  min-width: min(320px, 88vw);
  box-shadow: var(--shadow-sm);
}

.dash-pro-search-wrap .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.dash-pro-search {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  width: 100%;
  outline: none;
}

.dash-pro-search::placeholder {
  color: var(--text-muted);
}

.dash-pro-cta {
  white-space: nowrap;
  box-shadow: var(--shadow-glow);
}

.dash-pro-row--12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.dash-pro-card.dash-card,
.dash-pro-theme .dash-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.dash-pro-theme .dash-card-head h3 {
  color: var(--text);
  font-weight: 800;
}

#dashHomeSummary > .dash-pro-row--trio-top {
  grid-template-columns: repeat(3, 1fr);
  height: var(--dash-trio-card-height);
  max-height: var(--dash-trio-card-height);
  align-items: stretch;
}

#dashHomeSummary > .dash-pro-row--trio-top > .dash-pro-col-4 {
  grid-column: auto;
  height: 100%;
  min-height: 0;
}

#dashHomeSummary > .dash-pro-row--trio-top > .dash-pro-col-4 > .dash-pro-card {
  height: 100%;
}

#dashHomeSummary > .dash-pro-row--trio-top .dash-card-head {
  flex: 0 0 auto;
}

#dashHomeSummary > .dash-pro-row--trio-top .dash-pro-leave-list,
#dashHomeSummary > .dash-pro-row--trio-top .dash-pro-feed,
#dashHomeSummary > .dash-pro-row--trio-top .dash-pending-stack {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
}

#dashHomeSummary > .dash-pro-row--duo-mid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#dashHomeSummary > .dash-pro-row--duo-mid > .dash-pro-col-6 {
  grid-column: auto;
}

.dash-pro-leave-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.dash-pro-leave-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.dash-pro-leave-row--clickable {
  cursor: pointer;
}

.dash-pro-leave-row--clickable:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.dash-pro-leave-row--today {
  background: #fff1f2;
  border-color: #fecdd3;
}
.dash-pro-leave-row--today .dash-pro-leave-name {
  color: #9f1239;
}
.dash-pro-leave-row--today .dash-pro-leave-meta {
  color: #be123c;
  opacity: 0.88;
}

.dash-pro-leave-row--tomorrow {
  background: #fffbeb;
  border-color: #fde68a;
}
.dash-pro-leave-row--tomorrow .dash-pro-leave-name {
  color: #92400e;
}
.dash-pro-leave-row--tomorrow .dash-pro-leave-meta {
  color: #b45309;
  opacity: 0.88;
}

.dash-pro-leave-row--day_after {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.dash-pro-leave-row--day_after .dash-pro-leave-name {
  color: #1d4ed8;
}
.dash-pro-leave-row--day_after .dash-pro-leave-meta {
  color: #1e40af;
  opacity: 0.88;
}

.dash-pro-leave-row--future {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.dash-pro-leave-row--future .dash-pro-leave-name {
  color: #065f46;
}
.dash-pro-leave-row--future .dash-pro-leave-meta {
  color: #047857;
  opacity: 0.88;
}

.dash-pro-leave-row--report {
  background: #fff7ed;
  border-color: #fed7aa;
}
.dash-pro-leave-row--report .dash-pro-leave-name {
  color: #9a3412;
}
.dash-pro-leave-row--report .dash-pro-leave-meta {
  color: #c2410c;
  opacity: 0.88;
}

.dash-pro-leave-row--excuse {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.dash-pro-leave-row--excuse .dash-pro-leave-name {
  color: #075985;
}
.dash-pro-leave-row--excuse .dash-pro-leave-meta {
  color: #0369a1;
  opacity: 0.88;
}

.dash-pro-leave-row.is-hidden-by-search {
  display: none;
}

.dash-pro-leave-main {
  min-width: 0;
}

.dash-pro-leave-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
  letter-spacing: normal;
}

.dash-pro-leave-meta {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
  letter-spacing: normal;
}

.dash-pro-leave-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.dash-pro-leave-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #475569;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.dash-pro-leave-detail-btn:hover {
  background: #fff;
  color: #0ea5e9;
}

.dash-pro-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.dash-pro-badge--today {
  color: #9f1239;
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.dash-pro-badge--tomorrow {
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.dash-pro-badge--day_after {
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.38);
}

.dash-pro-badge--future {
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dash-pro-badge--report {
  color: #9a3412;
  border: 1px solid rgba(249, 115, 22, 0.38);
}

.dash-pro-badge--excuse {
  color: #075985;
  border: 1px solid rgba(14, 165, 233, 0.38);
}

.dash-pro-pending-btns {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dash-pro-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: filter 0.12s ease, transform 0.12s ease;
}

.dash-pro-icon-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.dash-pro-icon-btn .material-symbols-outlined {
  font-size: 1.25rem;
}

.dash-pro-icon-btn--ok {
  color: #fff;
  border-color: rgba(16, 185, 129, 0.35);
  background: #10b981;
}

.dash-pro-icon-btn--no {
  color: #fff;
  border-color: rgba(244, 63, 94, 0.35);
  background: #f43f5e;
}

.dash-pro-theme .dash-pending-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 0.65rem 0.75rem 0.7rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: var(--shadow-sm);
}

.dash-pro-feed-text {
  white-space: normal;
  overflow: visible;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  letter-spacing: normal;
}

.dash-pro-theme .dash-pro-feed li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.dash-pro-theme .dash-pro-feed li::before {
  content: "notifications";
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #0ea5e9;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe, #ede9fe);
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.dash-pro-theme .dash-pro-feed li > * {
  flex: 1;
  min-width: 0;
}

.dash-pro-theme .dash-pro-feed .dash-pro-feed-item {
  border-radius: 11px;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.dash-pro-theme .dash-pro-feed .dash-pro-feed-item:nth-child(odd) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.78));
}

.dash-pro-theme .dash-pro-feed .dash-pro-feed-item:nth-child(even) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 242, 254, 0.72));
}

.dash-pro-theme .dash-pro-feed .dash-pro-feed-item:hover,
.dash-pro-theme .dash-pro-feed .dash-pro-feed-item:focus-visible {
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: var(--shadow);
}

.dash-pro-theme .dash-pending-card-host .dash-pending-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.88));
  border-color: rgba(251, 146, 60, 0.28);
}

.dash-pro-theme .dash-pending-card-host .dash-pending-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 243, 199, 0.8));
  border-color: rgba(245, 158, 11, 0.26);
}

.dash-pro-news-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 255, 0.72));
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.dash-pro-theme .dash-pro-news-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 255, 0.82));
}

.dash-pro-theme .dash-pro-news-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 233, 254, 0.84));
}

.dash-pro-news-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.dash-pro-theme .dash-pro-bar-row:nth-child(odd) {
  border-radius: 10px;
  padding: 0.25rem 0.35rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.7));
}

.dash-pro-theme .dash-pro-bar-row:nth-child(even) {
  border-radius: 10px;
  padding: 0.25rem 0.35rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.76));
}

.dash-pro-news-card:focus-visible {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  outline: none;
}

.dash-pro-news-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
  letter-spacing: normal;
}

.dash-pro-news-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  white-space: normal;
  word-break: normal;
  letter-spacing: normal;
}

.dash-pro-theme .dash-pro-bar-fill {
  background: linear-gradient(90deg, #10b981, #38bdf8, #8b5cf6);
}

.dash-pro-theme .dash-pill {
  background: var(--grad-brand);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-sm);
}

.dash-item-modal {
  position: fixed;
  inset: 0;
  z-index: 1450;
}

.dash-item-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.dash-item-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(640px, calc(100vw - 2rem));
  max-height: min(80vh, 720px);
  transform: translate(-50%, -50%);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.dash-item-modal-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.dash-item-modal-head h3 {
  margin: 0;
  font-size: 1rem;
}

.dash-item-modal-meta {
  margin: 0.22rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-item-modal-body {
  padding: 0.95rem 1rem 1rem;
  overflow: auto;
}

.dash-item-modal-body p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--text);
}

body.dash-item-modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  #dashHomeSummary > .dash-pro-row--trio-top {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }

  #dashHomeSummary > .dash-pro-row--duo-mid {
    grid-template-columns: 1fr;
  }
}

/* —— Süper admin platform paneli —— */
.super-admin-shell .content-area {
  padding-bottom: 2rem;
}
.super-platform-view .super-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.super-platform-view .super-page-head h2 {
  margin: 0 0 0.35rem;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.super-stats-row {
  margin-bottom: 1.25rem;
}
.super-form-grid {
  margin-bottom: 1.25rem;
}
.super-form-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.super-card-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.super-card-head--row {
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.super-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--kpi-sky-soft);
  color: #0284c7;
  flex-shrink: 0;
}
.super-form-card h3,
.super-table-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.super-card-sub {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.super-form-fields {
  display: grid;
  gap: 0.65rem;
}
.super-table-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.super-table-wrap {
  overflow-x: auto;
}
.super-data-table th {
  white-space: nowrap;
}
.super-slug {
  font-size: 0.82rem;
  background: var(--kpi-violet-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.super-plan-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--kpi-emerald-soft);
  color: #047857;
  font-size: 0.82rem;
  font-weight: 600;
}
.super-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}
.super-empty .material-symbols-outlined {
  font-size: 42px;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.super-empty p {
  margin: 0.25rem 0;
}
.super-empty-sub {
  font-size: 0.88rem;
}
.super-billing-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  background: var(--bg-muted, #f1f5f9);
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border);
}
.super-billing-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.super-billing-tab.is-active {
  background: var(--bg-card-solid);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.super-billing-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--success);
}
.super-pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.super-pricing-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.super-pricing-card--featured {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.super-pricing-card--unlimited {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.04) 0%, var(--bg-card-solid) 40%);
}
.super-pricing-card--unlimited .super-pricing-code {
  color: #7c3aed;
}
.super-pricing-head h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
}
.super-pricing-code {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.super-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.super-pricing-amount {
  font-size: 1.85rem;
  font-weight: 700;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.super-pricing-unit {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.super-pricing-alt {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.super-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.super-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}
.super-feature-list li .material-symbols-outlined {
  font-size: 18px;
}
.super-feature-list li.is-on {
  color: var(--text);
}
.super-feature-list li.is-on .material-symbols-outlined {
  color: var(--success);
}
.super-feature-list li.is-off {
  color: var(--text-soft);
}
.super-feature-list li.is-off .material-symbols-outlined {
  color: #cbd5e1;
}
.super-feature-list li.is-limit {
  color: var(--text-muted);
}
.super-feature-list li.is-limit .material-symbols-outlined {
  color: var(--brand);
}
.super-pricing-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.super-pricing-edit {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.super-inline-field {
  flex: 1;
  min-width: 120px;
  margin: 0;
}
.super-toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.super-toast {
  background: #064e3b;
  color: #ecfdf5;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: superToastIn 0.25s ease;
}
.super-toast--err {
  background: #881337;
  color: #fff1f2;
}
.super-toast.is-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@keyframes superToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
