:root {
  --bg: #f3f6fb;
  --bg-accent: radial-gradient(circle at top left, rgba(46, 123, 255, 0.18), transparent 24%), radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.14), transparent 22%);
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-soft: #f7faff;
  --sidebar: linear-gradient(180deg, #0c1f3b 0%, #08172c 100%);
  --sidebar-line: rgba(255, 255, 255, 0.08);
  --text: #162033;
  --muted: #7f8aa3;
  --line: #e5ebf5;
  --brand: #2b6ef3;
  --brand-2: #1d56d2;
  --brand-soft: rgba(65, 133, 255, 0.14);
  --ok: #159a66;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-accent), var(--bg);
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: var(--sidebar);
  color: #d9e5ff;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.mobile-nav-backdrop {
  display: none;
}

.brand-card,
.sidebar-team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--sidebar-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.brand-card {
  margin-bottom: 18px;
}

.brand.brand-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  margin-bottom: 20px;
  padding: 10px 8px 14px;
  border-bottom: 1px solid var(--sidebar-line);
}

.brand.brand-only img {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.brand-card strong,
.sidebar-team strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
}

.brand-card span,
.sidebar-team span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(217, 229, 255, 0.74);
}

.brand-mark,
.sidebar-team-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4888ff, #6559ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.sidebar-team {
  margin-bottom: 20px;
}

.sidebar-team-badge {
  background: linear-gradient(135deg, #1ec8b2, #2384ff);
  font-size: 13px;
}

.sidebar-label {
  margin: 18px 10px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(217, 229, 255, 0.48);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-subtitle {
  margin: 10px 10px 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(217, 229, 255, 0.42);
  font-weight: 800;
}

.sidebar-subtitle:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sidebar-nav a {
  position: relative;
  text-decoration: none;
  padding: 13px 14px 13px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(225, 235, 255, 0.78);
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.sidebar-nav a:hover {
  transform: translateX(2px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(52, 123, 255, 0.22), rgba(52, 123, 255, 0.08));
  border-color: rgba(98, 158, 255, 0.22);
  box-shadow: inset 3px 0 0 #77a9ff;
}

.app-main {
  min-width: 0;
  padding: 24px 24px 30px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.app-topbar-compact {
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 74px;
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faff;
  box-shadow: var(--shadow-soft);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #355582;
  transition: transform .2s ease, opacity .2s ease;
}

.topbar-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: #101827;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 290px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fbff;
  color: var(--muted);
}

.search-shell span {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.search-shell input {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.topbar-icon,
.topbar-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f7faff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.topbar-icon {
  color: #5f6f8d;
  font-size: 15px;
}

.topbar-avatar {
  background: linear-gradient(135deg, #ffb5d8, #ffc98f);
  color: #4a2130;
  font-weight: 800;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
}

.dashboard-wrap,
.surface-stack {
  display: grid;
  gap: 18px;
}

.surface,
.card,
.table-card,
table,
.auth-panel {
  background: var(--surface);
  border: 1px solid rgba(222, 230, 242, 0.86);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.surface,
.card {
  padding: 20px;
}

.dash-toolbar,
.list-header,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-panel,
.form-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.94));
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-head h3,
.form-panel-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #13213a;
}

.panel-title {
  margin: 1px 0 6px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #243754;
}

.panel-description {
  max-width: 820px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0;
  font-weight: 600;
  color: #7a88a3;
}

.filter-stat {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(43,110,243,0.12), rgba(43,110,243,0.04));
  border: 1px solid rgba(43,110,243,0.12);
  text-align: right;
}

.filter-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.filter-stat span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-quickbar {
  display: none;
}

.span-2 {
  grid-column: 1 / -1;
}

.dash-toolbar-title h2,
.list-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.dash-toolbar-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dash-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  border: 1px solid #e5ebf6;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  box-shadow: var(--shadow-soft);
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: rgba(43, 110, 243, 0.07);
}

.kpi-card h3 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.kpi-card p {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: #121a2b;
}

.surface-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #ebf0f8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}

.status-item .label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.status-item .value {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-2);
}

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

.card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.card p {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  box-shadow: none;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f9;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #f8fbff;
  color: #8a96ad;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background .18s ease, transform .18s ease;
}

tbody tr:hover {
  background: rgba(73, 130, 255, 0.04);
}

.recent-table td:last-child {
  font-weight: 700;
  color: var(--brand-2);
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 10px 16px;
  margin: 0;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--brand), #5a92ff);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(43, 110, 243, 0.22);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(43, 110, 243, 0.26);
}

.btn.ghost,
.wizard-actions .ghost {
  background: #f6f9ff;
  color: #446183;
  border: 1px solid #dfe8f6;
  box-shadow: none;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 12px;
}

form.inline {
  display: inline;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0 14px;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  background: #fbfdff;
  color: var(--text);
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9aa6bd;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #8cb3ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 110, 243, 0.12);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4e5d78;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.flash {
  display: none;
}

.app-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: all .2s ease;
}

.app-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.app-popup.success {
  background: linear-gradient(135deg, #15a56b, #1fc987);
}

.app-popup.error {
  background: linear-gradient(135deg, #d1295e, #ff5b73);
}

.small {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-panel {
  width: 100%;
  max-width: 460px;
  padding: 28px;
}

.auth-brand {
  margin-bottom: 8px;
}

.auth-brand img {
  width: 210px;
  max-width: 100%;
  display: block;
}

.auth-brand p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-panel h2 {
  margin: 16px 0 6px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.auth-sub {
  margin: 0 0 14px;
  color: var(--muted);
}

.auth-btn {
  width: 100%;
  margin-top: 4px;
}

.section-badge {
  display: inline-block;
  background: rgba(43, 110, 243, 0.1);
  color: var(--brand-2);
  border: 1px solid rgba(43, 110, 243, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  margin: 4px 0 12px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 6px 0 22px;
}

.wizard-step-chip {
  border: 1px solid #e3eaf5;
  border-radius: 16px;
  padding: 12px;
  background: #fbfdff;
  color: #6f7d96;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: all .2s ease;
}

.wizard-step-chip.active {
  background: linear-gradient(135deg, #eef5ff, #f5f8ff);
  border-color: #bfd5ff;
  color: #2358d0;
  box-shadow: 0 10px 22px rgba(43, 110, 243, 0.12);
}

.wizard-step-chip.done {
  background: #f1fff8;
  border-color: #bae9d0;
  color: #17724f;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.candidate-row.status-cv-geldi td { background: rgba(61, 145, 255, 0.06); }
.candidate-row.status-cv-inceleniyor td { background: rgba(109, 95, 255, 0.05); }
.candidate-row.status-on-gorusme td { background: rgba(250, 173, 20, 0.07); }
.candidate-row.status-mulakat td { background: rgba(255, 216, 77, 0.11); }
.candidate-row.status-referans td { background: rgba(148, 163, 184, 0.08); }
.candidate-row.status-olumlu td { background: rgba(34, 197, 94, 0.08); }
.candidate-row.status-olumsuz td { background: rgba(244, 63, 94, 0.08); }
.candidate-row.status-ise-alindi td { background: rgba(16, 185, 129, 0.09); }

.status-badge.status-cv-geldi { background: #dbeafe; color: #1e3a8a; border-color: #bfdbfe; }
.status-badge.status-cv-inceleniyor { background: #e9e7ff; color: #4338ca; border-color: #d9d6ff; }
.status-badge.status-on-gorusme { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.status-badge.status-mulakat { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.status-badge.status-referans { background: #edf2f7; color: #475569; border-color: #dce4ef; }
.status-badge.status-olumlu { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.status-badge.status-olumsuz { background: #ffe4e6; color: #9f1239; border-color: #fecdd3; }
.status-badge.status-ise-alindi { background: #cffafe; color: #155e75; border-color: #a5f3fc; }

.section-head .btn {
  flex-shrink: 0;
}

.calendar-shell {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(222, 230, 242, 0.86);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,255,0.96));
  box-shadow: var(--shadow);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-title {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: #132746;
}

.calendar-meta {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: right;
  background: linear-gradient(135deg, rgba(43,110,243,0.12), rgba(43,110,243,0.04));
  border: 1px solid rgba(43,110,243,0.12);
}

.calendar-meta strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.calendar-meta span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.calendar-weekdays,
.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.calendar-weekdays div {
  padding: 10px 8px;
  text-align: center;
  border-radius: 14px;
  background: #eef4ff;
  color: #49617f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 170px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid #e6edf8;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-day-empty {
  background: rgba(255,255,255,0.45);
  border-style: dashed;
  box-shadow: none;
}

.calendar-day.has-events {
  border-color: rgba(43,110,243,0.18);
}

.calendar-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.calendar-day-head strong {
  font-size: 18px;
  color: #132746;
}

.calendar-day-head span {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
}

.calendar-day-events {
  display: grid;
  gap: 8px;
  align-content: start;
}

.calendar-event-pill {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(43,110,243,0.10), rgba(43,110,243,0.04));
  border: 1px solid rgba(43,110,243,0.12);
}

.calendar-event-pill strong,
.calendar-event-pill span {
  display: block;
}

.calendar-event-pill strong {
  font-size: 13px;
  color: #18304e;
}

.calendar-event-pill span {
  margin-top: 3px;
  font-size: 12px;
  color: #5f7393;
}

.calendar-empty-note {
  font-size: 12px;
  color: #9aa6bd;
  font-weight: 700;
}

.week-calendar-wrap {
  display: grid;
  gap: 14px;
}

.week-calendar-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.week-head-btn {
  width: 100%;
  padding: 10px 8px;
  border-radius: 14px;
  background: #eef4ff;
  border: 1px solid transparent;
  color: #49617f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.week-head-btn:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(43,110,243,0.14);
  background: #e7f0ff;
}

.week-head-btn.active {
  background: linear-gradient(135deg, rgba(43,110,243,0.16), rgba(43,110,243,0.08));
  border-color: rgba(43,110,243,0.22);
  color: #18408d;
}

.work-calendar-list {
  display: grid;
  gap: 16px;
}

.work-calendar-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(222, 230, 242, 0.86);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.96));
  box-shadow: var(--shadow);
}

.work-calendar-person {
  display: grid;
  align-content: start;
  gap: 8px;
}

.work-calendar-person strong {
  font-size: 18px;
  color: #132746;
}

.work-calendar-person span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.work-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.workday-chip {
  min-height: 118px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid #e7eef8;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workday-chip.active {
  background: linear-gradient(180deg, #f5f9ff, #edf4ff);
  border-color: rgba(43,110,243,0.16);
}

.workday-chip.off {
  background: linear-gradient(180deg, #fcfcfd, #f5f7fb);
  opacity: 0.85;
}

.workday-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a88a3;
}

.workday-chip strong {
  font-size: 13px;
  line-height: 1.45;
  color: #19314f;
}

.workday-note {
  font-size: 12px;
  line-height: 1.5;
  color: #60728f;
}

.workday-chip.is-highlighted {
  border-color: rgba(43,110,243,0.34);
  box-shadow: 0 14px 26px rgba(43,110,243,0.14);
  transform: translateY(-1px);
}

.section-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.section-nav-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(222, 230, 242, 0.86);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.96));
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.section-nav-card strong {
  font-size: 16px;
  color: #132746;
}

.section-nav-card span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 600;
}

.section-nav-card.active {
  border-color: rgba(43,110,243,0.22);
  background: linear-gradient(135deg, rgba(43,110,243,0.10), rgba(43,110,243,0.04));
  box-shadow: 0 14px 28px rgba(43,110,243,0.10);
}

.section-record-list {
  display: grid;
  gap: 14px;
}

.section-record-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(222, 230, 242, 0.86);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.96));
  box-shadow: var(--shadow-soft);
}

.section-record-card strong,
.section-record-card span {
  display: block;
}

.section-record-card strong {
  font-size: 15px;
  color: #132746;
}

.section-record-card span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 600;
}

body.is-leaving .app-main {
  opacity: 0;
  transform: translateY(8px);
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(82vw, 320px);
    height: 100vh;
    z-index: 80;
    transform: translateX(-110%);
    transition: transform .24s ease;
    overflow-y: auto;
  }

  .sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .app-topbar {
    flex-direction: row;
    align-items: center;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .search-shell {
    min-width: 0;
    width: 100%;
  }

  .calendar-weekdays,
  .month-calendar-grid,
  .week-calendar-head,
  .work-calendar-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-calendar-card {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(3px);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }

  body.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  body.mobile-menu-open .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 760px) {
  .app-main {
    padding: 12px 12px 24px;
  }

  .app-topbar {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    position: sticky;
    top: 10px;
    z-index: 30;
  }

  .container {
    max-width: 100%;
  }

  .sidebar {
    display: block;
  }

  .app-list-header {
    display: none;
  }

  .mobile-quickbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    position: sticky;
    top: 92px;
    z-index: 25;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(222, 230, 242, 0.86);
    box-shadow: var(--shadow-soft);
  }

  .mobile-quickbar .btn {
    flex: 1 1 0;
    justify-content: center;
    min-height: 46px;
    border-radius: 16px;
  }

  .mobile-primary-action {
    box-shadow: 0 10px 22px rgba(43, 110, 243, 0.18);
  }

  .mobile-filter-panel {
    display: none;
    padding: 16px;
    border-radius: 20px;
  }

  .mobile-filter-panel.is-open {
    display: block;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-actions {
    position: sticky;
    bottom: 10px;
    background: rgba(255,255,255,0.96);
    padding-top: 8px;
  }

  .filter-actions .btn,
  .filter-actions button {
    flex: 1 1 0;
    justify-content: center;
    min-height: 46px;
  }

  .filter-summary {
    border-radius: 18px;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
  }

  .two-col,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 24px;
  }

  th,
  td {
    padding: 12px;
  }

  .calendar-weekdays,
  .month-calendar-grid,
  .week-calendar-head,
  .work-calendar-week {
    grid-template-columns: 1fr;
  }

  .responsive-list-card {
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody {
    display: grid;
    gap: 14px;
  }

  .responsive-table tr {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e6edf8;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(25, 45, 86, 0.10);
    padding: 12px 14px;
    overflow: hidden;
  }

  .responsive-table td {
    border-bottom: 1px solid #edf2f9;
    padding: 12px 0;
  }

  .responsive-table td:last-child {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #8a96ad;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
  }

  .responsive-table td[data-label="Aday"]::before,
  .responsive-table td[data-label="Ad Soyad"]::before {
    margin-bottom: 10px;
  }

  .responsive-table .candidate-person,
  .responsive-table .employee-person {
    align-items: flex-start;
    gap: 14px;
  }

  .responsive-table .candidate-thumb,
  .responsive-table .candidate-thumb-fallback,
  .responsive-table .employee-thumb,
  .responsive-table .employee-thumb-fallback {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .responsive-table .candidate-actions,
  .responsive-table .employee-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .responsive-table .candidate-actions .btn,
  .responsive-table .employee-actions .btn,
  .responsive-table .candidate-actions form,
  .responsive-table .employee-actions form,
  .responsive-table .auto-status-form,
  .responsive-table .auto-status-form select {
    width: 100%;
  }

  .responsive-table .cv-preview-link {
    width: 100%;
    justify-content: flex-start;
  }

  .dash-toolbar-actions {
    display: none;
  }
}

.leave-type-badge,
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.leave-type-default {
  background: #eef4ff;
  color: #29456f;
  border-color: #d9e7ff;
}

.leave-type-annual {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.leave-type-weekly {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.leave-type-holiday {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.leave-type-medical {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.leave-type-unpaid {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.calendar-day.is-today {
  border-color: rgba(43, 110, 243, 0.34);
  box-shadow: 0 0 0 3px rgba(43, 110, 243, 0.08), var(--shadow-soft);
}

.calendar-event-pill.leave-type-annual,
.calendar-event-pill.leave-type-weekly,
.calendar-event-pill.leave-type-holiday,
.calendar-event-pill.leave-type-medical,
.calendar-event-pill.leave-type-unpaid,
.calendar-event-pill.leave-type-default {
  background: #fff;
}

.file-chip {
  margin: -4px 0 8px;
  background: #f6f9ff;
  color: #355582;
  border-color: #dbe6f7;
}

.reminder-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.reminder-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #e6edf8;
  box-shadow: var(--shadow-soft);
}

.reminder-card strong {
  font-size: 14px;
  color: #18304e;
}

.reminder-card span,
.reminder-card small {
  color: #6e7d96;
}

.reminder-card small {
  font-size: 12px;
  font-weight: 700;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dbe4f3;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 25px rgba(25, 45, 86, 0.06);
  cursor: pointer;
  transition: 0.18s ease;
}

.check-card:hover {
  border-color: #b9cdf5;
  box-shadow: 0 14px 28px rgba(43, 110, 243, 0.10);
  transform: translateY(-1px);
}

.check-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2b6ef3;
  flex-shrink: 0;
}

.check-card span {
  color: #18304e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.check-group-shell {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #e7eef8;
  background: #f8fbff;
}

.check-group-note {
  margin: 0 0 6px;
  color: #71819a;
  font-size: 12px;
  font-weight: 600;
}

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

.reminder-leave_pending {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffdf2, #fff8db);
}

.reminder-document_missing {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff6f6, #ffe9e9);
}

.reminder-leave_upcoming {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
}
