:root {
  --app-bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --primary: #2463eb;
  --primary-dark: #1849b9;
  --primary-soft: #eaf1ff;
  --secondary: #0f9f8f;
  --secondary-soft: #e7f8f5;
  --accent: #0891b2;
  --accent-soft: #e7f7fb;
  --text-main: #152033;
  --text-muted: #647087;
  --border: #dfe5ee;
  --success: #1c9566;
  --success-soft: #e7f7ef;
  --warning: #d68b12;
  --warning-soft: #fff4dd;
  --danger: #d44f58;
  --danger-soft: #fff0f1;
  --shadow-sm: 0 3px 12px rgba(24, 43, 72, 0.055);
  --shadow-md: 0 14px 36px rgba(24, 43, 72, 0.09);
  --radius-card: 8px;
  --radius-control: 12px;
}

/* Eğitim merkezi ve Oryantasyon 2026 */
.nav-icon-learning::before {
  width: 15px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.nav-icon-learning::after {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  transform: translateX(1px);
}

.learning-public-page {
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.learning-entry-shell {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(15, 42, 86, .12);
}

.learning-entry-visual {
  padding: clamp(1.7rem, 4vw, 3.3rem);
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(125, 211, 252, .32), transparent 34%),
    linear-gradient(145deg, #0f2a56 0%, #17498b 55%, #0e7490 100%);
}

.learning-entry-visual .eyebrow,
.learning-entry-visual p {
  color: rgba(255, 255, 255, .82);
}

.learning-entry-visual h1 {
  margin: .5rem 0 1rem;
  color: #fff;
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
}

.learning-course-icon {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  color: #2563eb;
  background: #eaf1ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
}

.learning-course-icon::before {
  width: 24px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
  content: '';
}

.learning-course-icon::after {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  content: '';
}

.learning-entry-visual .learning-course-icon {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.learning-facts {
  display: grid;
  gap: .65rem;
  margin-top: 1.8rem;
}

.learning-facts span {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
}

.learning-facts strong { color: #fff; }

.learning-identity-card {
  align-self: stretch;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.learning-privacy-note {
  display: flex;
  gap: .75rem;
  margin: 1.15rem 0;
  padding: .85rem 1rem;
  border: 1px solid #cbe9df;
  border-radius: 12px;
  background: #effaf6;
}

.learning-privacy-note span {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: .36rem;
  border-radius: 50%;
  background: #22a06b;
}

.learning-privacy-note p {
  margin: 0;
  color: #49685e;
  font-size: .82rem;
}

.learning-viewer-page {
  min-height: calc(100vh - 68px);
  padding: clamp(1rem, 2.4vw, 2rem);
  background: #e9eff8;
}

.learning-viewer-topbar,
.learning-completion-bar {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.learning-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.learning-viewer-topbar h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.learning-viewer-topbar span { color: var(--text-muted); font-size: .83rem; }

.learning-live-state {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .85rem;
  border: 1px solid #cbe9df;
  border-radius: 999px;
  background: #fff;
  color: #18714d;
  font-size: .76rem;
  font-weight: 700;
}

.learning-viewer-statuses {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

.learning-quiz-badge {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  padding: .6rem .8rem;
  border: 1px solid #c9dcfb;
  border-radius: 999px;
  color: #1849b9;
  background: #f3f7ff;
  font-size: .73rem;
}

.learning-quiz-badge strong { font-size: .85rem; }

.learning-live-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 5px rgba(34, 160, 107, .12);
  animation: learningPulse 2s ease-in-out infinite;
}

@keyframes learningPulse { 50% { box-shadow: 0 0 0 8px rgba(34, 160, 107, 0); } }

.learning-viewer-stage {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: clamp(.55rem, 1.5vw, 1rem);
  border: 1px solid #d6e0ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 42, 86, .12);
}

.learning-slide-frame,
.learning-video-frame {
  display: grid;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-radius: 12px;
  background: #071a35;
}

.learning-slide-frame img,
.learning-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.learning-controls {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.learning-unit-status {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr);
  align-items: center;
  gap: .8rem;
}

.learning-unit-status strong { font-size: .82rem; white-space: nowrap; }
.learning-unit-status .progress { height: 8px; background: #edf2f9; }
.learning-unit-status .progress-bar { background: linear-gradient(90deg, #2563eb, #14b8a6); }

.learning-document-frame {
  overflow: hidden;
  height: min(72vh, 820px);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.learning-document-frame iframe { width: 100%; height: 100%; border: 0; }

.learning-external-card {
  display: grid;
  min-height: 360px;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fbff, #ecf5ff);
}

.learning-external-card h2 { font-size: 1.3rem; }

.learning-completion-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d6e0ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.learning-completion-bar div { display: grid; gap: .2rem; }
.learning-completion-bar span { color: var(--text-muted); font-size: .78rem; }
.learning-success-card { width: min(100%, 680px); }
.unavailable-card { width: min(100%, 720px); }

.training-rating-list { display: grid; gap: .75rem; }
.training-rating-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.training-rating-row legend { width: auto; margin: 0; font-size: .88rem; font-weight: 700; }
.training-rating-row > div { display: flex; gap: .35rem; }
.training-rating-row label input { position: absolute; opacity: 0; pointer-events: none; }
.training-rating-row label span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: #fbfcff; color: var(--text-muted); font-weight: 800; cursor: pointer; transition: .2s ease; }
.training-rating-row label input:checked + span { border-color: #2563eb; background: #2563eb; color: #fff; box-shadow: 0 6px 14px rgba(37, 99, 235, .22); }

.learning-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.learning-admin-card { display: grid; gap: .65rem; min-width: 0; padding: 1.2rem; border: 1px solid #dce5f2; border-radius: 16px; background: #fff; color: var(--text-main); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.learning-admin-card:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .28); box-shadow: 0 15px 35px rgba(15, 42, 86, .12); }
.learning-admin-card-top { display: flex; align-items: center; justify-content: space-between; }
.learning-admin-card h2 { margin: 0; overflow-wrap: anywhere; font-size: 1.08rem; }
.learning-admin-card p { margin: 0; color: var(--text-muted); font-size: .82rem; }
.status-badge { display: inline-flex; align-items: center; width: fit-content; padding: .35rem .58rem; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.status-active { color: #18714d; background: #e9f8f1; }
.status-muted { color: #667085; background: #eef1f6; }
.status-warning { color: #a46108; background: #fff5df; }
.learning-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.learning-card-metrics span { display: grid; gap: .1rem; color: var(--text-muted); font-size: .68rem; }
.learning-card-metrics strong { color: #0f2a56; font-size: 1rem; }

.learning-course-editor { max-width: 1100px; margin-inline: auto; }
.learning-content-options { padding: 1rem; border: 1px solid #dce5f2; border-radius: 14px; background: #f8fbff; }
.learning-content-options h2 { margin: 0; font-size: 1rem; }
.learning-content-options p { color: var(--text-muted); font-size: .8rem; }

.learning-report-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 18px; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(56, 189, 248, .28), transparent 30%), linear-gradient(135deg, #0f2a56, #17498b 62%, #0e7490); box-shadow: 0 18px 42px rgba(15, 42, 86, .22); }
.learning-report-hero h1 { margin: 0 0 .4rem; color: #fff; font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
.learning-report-hero p { margin: 0; color: rgba(255,255,255,.78); }
.learning-report-hero .eyebrow { color: #8fe9df; }
.learning-report-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.learning-report-meta span { padding: .38rem .62rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .72rem; font-weight: 700; }
.learning-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .7rem; margin: 1rem 0; }
.learning-kpi-grid > div { display: grid; gap: .25rem; min-width: 0; padding: .9rem; border: 1px solid #dce5f2; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.learning-kpi-grid span { overflow: hidden; color: var(--text-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.learning-kpi-grid strong { color: #0f2a56; font-size: 1.15rem; }
.learning-chart-panel { height: 320px; }
.learning-chart-panel canvas { max-height: 235px; }
.learning-link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.learning-link-grid label > span { display: block; margin-bottom: .4rem; font-size: .78rem; font-weight: 800; }
.learning-link-grid label > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem; }
.compact-progress { width: 110px; height: 7px; overflow: hidden; border-radius: 999px; background: #e7edf6; }
.compact-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2563eb,#14b8a6); }
.manager-evaluation-details summary { margin-top: .45rem; color: #2563eb; font-size: .72rem; font-weight: 800; cursor: pointer; }
.manager-evaluation-details form { display: grid; min-width: 240px; gap: .45rem; margin-top: .55rem; padding: .7rem; border: 1px solid var(--border); border-radius: 12px; background: #f8fbff; }
.manager-evaluation-details .form-control,
.manager-evaluation-details .form-select { min-height: 38px; border-radius: 9px; font-size: .78rem; }
.manager-evaluation-context { display: grid; gap: 2px; padding: 9px; border-left: 3px solid var(--primary); background: var(--primary-soft); }
.manager-evaluation-context strong { color: var(--text-main); font-size: .78rem; }
.manager-evaluation-context span,
.manager-evaluation-context small { color: var(--text-muted); font-size: .7rem; }
.survey-rev04-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.anonymous-badge { flex: 0 0 auto; padding: .45rem .7rem; border-radius: 999px; color: #18714d; background: #e9f8f1; font-size: .72rem; font-weight: 800; }
.survey-department-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.survey-department-options input { position: absolute; opacity: 0; }
.survey-department-options span { display: grid; min-height: 110px; align-content: center; gap: .35rem; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: #fbfcff; cursor: pointer; transition: .2s ease; }
.survey-department-options small { color: var(--text-muted); font-size: .72rem; line-height: 1.45; }
.survey-department-options input:checked + span { border-color: #2563eb; background: #eef5ff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.survey-participant-fields { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 12px; }
.survey-privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 18px 0 24px;
  padding: 20px 22px;
  border: 2px solid #9bdcc9;
  border-left: 6px solid var(--success);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(231, 247, 239, .98), rgba(247, 253, 250, .98));
  box-shadow: 0 10px 26px rgba(28, 149, 102, .10);
}

.survey-privacy-icon {
  position: relative;
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #176448;
  background: #dff5ea;
  box-shadow:
    inset 0 0 0 1px rgba(28, 149, 102, .14),
    0 6px 16px rgba(28, 149, 102, .12);
}

.survey-privacy-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  width: 16px;
  height: 14px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  transform: translateX(-50%);
}

.survey-privacy-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 22px;
  height: 18px;
  border-radius: 6px;
  background: currentColor;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 6px currentColor;
}

.survey-privacy-content {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
}

.survey-privacy-banner strong {
  color: #145c43;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.3;
}

.survey-privacy-banner small {
  display: block;
  color: #365e52;
  font-size: .9rem;
  font-weight: 620;
  line-height: 1.65;
}

.survey-privacy-banner small strong {
  font-size: inherit;
  font-weight: 850;
}

@media (max-width: 575.98px) {
  .survey-privacy-banner {
    gap: 12px;
    margin: 16px 0 20px;
    padding: 16px;
    border-left-width: 5px;
  }

  .survey-privacy-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .survey-privacy-icon::before {
    top: 11px;
    width: 14px;
    height: 12px;
  }

  .survey-privacy-icon::after {
    bottom: 8px;
    width: 20px;
    height: 16px;
  }

  .survey-privacy-banner strong {
    font-size: .98rem;
  }

  .survey-privacy-banner small {
    font-size: .82rem;
    line-height: 1.55;
  }
}
.survey-department-heading { margin-top: 4px; }
.survey-department-heading h2 { font-size: 1rem; }
.survey-attendance-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.survey-attendance-grid > section { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.survey-attendance-grid h3 { margin: 0 0 10px; font-size: .9rem; }
.survey-attendance-grid .table-responsive { max-height: 430px; overflow: auto; border-radius: 7px; background: #fff; }
.survey-pending-table { opacity: .9; }
.likert-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
  padding: 9px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f7f9fc;
}
.likert-legend span { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-muted); font-size: .67rem; line-height: 1.25; }
.likert-legend strong { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border: 1px solid #cad8eb; border-radius: 6px; color: var(--primary-dark); background: #fff; font-size: .72rem; }
.survey-question-list { display: grid; gap: 12px; }
.survey-question-list .survey-question { min-width: 0; margin: 0; padding: 16px; border: 1px solid #dfe7f2; border-radius: 8px; background: #fff; box-shadow: 0 5px 16px rgba(24, 43, 72, .045); }
.survey-question-list .survey-question legend { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; float: none; width: 100%; margin: 0 0 13px; padding: 0; color: var(--text-main); }
.survey-question-list .survey-question legend > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; color: #fff; background: var(--primary); font-size: .78rem; font-weight: 850; }
.survey-question-list .survey-question legend > strong { min-width: 0; font-size: .88rem; font-weight: 760; line-height: 1.45; }
.survey-question-list .survey-question legend > small { color: var(--text-muted); font-size: .65rem; font-weight: 700; white-space: nowrap; }
.likert-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.likert-options label { display: block; min-width: 0; margin: 0; cursor: pointer; }
.likert-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.likert-options label > span { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 6px; min-height: 54px; padding: 8px; border: 1px solid #dfe7f2; border-radius: 7px; color: var(--text-muted); background: #fafcff; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.likert-options label > span i { display: block; width: 14px; height: 14px; border: 2px solid #b6c4d8; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #fff; }
.likert-options label > span strong { color: var(--primary-dark); font-size: .78rem; }
.likert-options label > span small { min-width: 0; color: inherit; font-size: .64rem; font-weight: 680; line-height: 1.25; overflow-wrap: anywhere; }
.likert-options input:checked + span { border-color: var(--primary); color: var(--primary-dark); background: #edf4ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .1); transform: translateY(-1px); }
.likert-options input:checked + span i { border-color: var(--primary); background: var(--primary); }
.likert-options input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .18); outline-offset: 2px; }
.likert-options label:hover > span { border-color: #afc7ea; background: #f4f8ff; }
.user-department-editor summary { color: #2563eb; font-size: .72rem; font-weight: 700; cursor: pointer; }

@media (max-width: 991.98px) {
  .learning-admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .learning-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .learning-report-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767.98px) {
  .learning-entry-shell { grid-template-columns: 1fr; border-radius: 17px; }
  .learning-entry-visual { padding: 1.5rem; }
  .learning-facts { margin-top: 1.1rem; }
  .learning-identity-card { padding: 1.25rem; }
  .learning-viewer-page { padding: .75rem; }
  .learning-viewer-topbar { align-items: flex-start; }
  .learning-live-state span { display: none; }
  .learning-live-state { padding: .65rem; }
  .learning-viewer-statuses { align-items: flex-end; flex-direction: column-reverse; }
  .learning-controls { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .learning-controls .learning-unit-status { grid-column: 1 / -1; grid-row: 1; }
  .learning-controls .btn { width: 100%; }
  .learning-completion-bar { align-items: stretch; flex-direction: column; }
  .learning-completion-bar .btn { width: 100%; }
  .training-rating-row { align-items: flex-start; flex-direction: column; }
  .training-rating-row > div { width: 100%; justify-content: space-between; }
  .training-rating-row label span { width: 42px; height: 42px; }
  .learning-admin-grid,
  .learning-link-grid,
  .survey-department-options { grid-template-columns: 1fr; }
  .survey-participant-fields,
  .survey-attendance-grid { grid-template-columns: 1fr; }
  .learning-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .learning-link-grid label > div { grid-template-columns: 1fr; }
  .learning-link-grid .btn { width: 100%; }
  .learning-chart-panel { height: 290px; }
  .likert-legend { display: none; }
  .likert-options { grid-template-columns: 1fr; gap: 6px; }
  .likert-options label > span { grid-template-columns: auto 25px minmax(0, 1fr); min-height: 46px; padding: 8px 10px; }
  .likert-options label > span small { font-size: .76rem; }
  .survey-question-list .survey-question { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .learning-live-state i,
  .learning-admin-card { animation: none; transition: none; }
}

.employee-profile-link { color: inherit; text-decoration: none; }
.employee-profile-link:hover strong { color: var(--primary); }
.employee-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 18px;
  border: 1px solid #dbe6f5;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(120deg, #fff 0%, #f4f8ff 62%, #e8f5ff 100%);
  box-shadow: var(--shadow-md);
}
.employee-profile-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.employee-profile-identity h1 { margin: 0 0 5px; font-size: clamp(1.55rem, 2.2vw, 2.2rem); }
.employee-profile-identity p:last-child { margin: 0; color: var(--text-muted); }
.employee-profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  background: #155eef;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(21, 94, 239, 0.22);
}
.employee-profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.employee-orientation-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #cfe0f6;
  border-radius: 8px;
  background: #f4f8ff;
}
.employee-orientation-banner.is-complete { border-color: #bde7d4; background: #f0faf5; }
.employee-orientation-icon { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; color: #155eef; background: #e4edff; }
.employee-orientation-icon::before { width: 20px; height: 15px; border: 2px solid currentColor; border-radius: 4px; content: ''; }
.employee-orientation-icon::after { position: absolute; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid currentColor; content: ''; }
.employee-orientation-banner small,
.employee-orientation-banner strong,
.employee-orientation-banner p { display: block; margin: 0; }
.employee-orientation-banner small { color: var(--text-muted); font-size: .7rem; font-weight: 750; }
.employee-orientation-banner strong { color: #102a56; font-size: .95rem; }
.employee-orientation-banner p { margin-top: 2px; color: var(--text-muted); font-size: .75rem; }
.employee-orientation-banner > b { color: #155eef; font-size: 1.1rem; }
.employee-profile-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.employee-profile-kpis article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-top: 3px solid #155eef;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.employee-profile-kpis article:nth-child(2) { border-top-color: #14b8a6; }
.employee-profile-kpis article:nth-child(3) { border-top-color: #f59e0b; }
.employee-profile-kpis article:nth-child(4) { border-top-color: #7c3aed; }
.employee-profile-kpis article:nth-child(5) { border-top-color: #0ea5e9; }
.employee-profile-kpis article:nth-child(6) { border-top-color: #22a06b; }
.employee-profile-kpis small,
.employee-profile-kpis span { display: block; color: var(--text-muted); font-size: .74rem; }
.employee-profile-kpis strong { display: block; margin: 3px 0; color: #102a56; font-size: 1.45rem; }
.employee-profile-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr); gap: 16px; align-items: start; }
.employee-training-list { display: grid; gap: 12px; }
.employee-training-card { padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe; }
.employee-training-head { display: flex; justify-content: space-between; gap: 12px; }
.employee-training-head strong,
.employee-training-head small { display: block; }
.employee-training-head small { margin-top: 3px; color: var(--text-muted); }
.employee-training-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.employee-training-metrics span { padding: 9px; border-radius: 6px; background: #eef4fc; color: var(--text-muted); font-size: .72rem; }
.employee-training-metrics b { display: block; color: #102a56; font-size: .86rem; }
.employee-manager-note { margin: 10px 0 0; padding: 10px; border-left: 3px solid #7c3aed; background: #f6f3ff; font-size: .8rem; }
.employee-answer-details { margin-top: 10px; }
.employee-answer-details summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: .78rem; }
.employee-answer-list { display: grid; gap: 7px; margin-top: 9px; }
.employee-answer-list > div { display: grid; gap: 2px; padding: 9px; border-left: 3px solid #22a06b; background: #edf9f3; font-size: .76rem; }
.employee-answer-list > .is-wrong { border-left-color: #dc5a5a; background: #fff1f1; }
.employee-profile-facts { display: grid; gap: 0; margin: 0; }
.employee-profile-facts div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.employee-profile-facts div:last-child { border-bottom: 0; }
.employee-profile-facts dt { color: var(--text-muted); font-size: .7rem; font-weight: 700; }
.employee-profile-facts dd { margin: 2px 0 0; color: #102a56; font-weight: 700; }
.employee-profile-page .status-danger { color: var(--danger); background: var(--danger-soft); }
.employee-record-editor { margin-bottom: 14px; border: 1px solid #d8e4f4; border-radius: 8px; background: #f8fbff; }
.employee-record-editor > summary { padding: 12px 14px; color: var(--primary-dark); cursor: pointer; font-size: .8rem; font-weight: 800; }
.employee-record-editor[open] > summary { border-bottom: 1px solid #d8e4f4; }
.employee-record-editor form { padding: 14px; }
.employee-record-list { display: grid; gap: 10px; }
.employee-record-card { padding: 13px 14px; border: 1px solid var(--border); border-left: 4px solid #5b7db5; border-radius: 8px; background: #fff; }
.employee-record-card.record-tutanak { border-left-color: #d44f58; background: #fffafa; }
.employee-record-card.record-izin { border-left-color: #0ea5e9; }
.employee-record-card.record-saglik_raporu { border-left-color: #22a06b; }
.employee-record-card.record-performans { border-left-color: #7c3aed; }
.employee-record-card.record-sertifika,
.employee-record-card.record-odul { border-left-color: #e99518; }
.employee-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.employee-record-head > div { min-width: 0; }
.employee-record-head span,
.employee-record-head strong,
.employee-record-head small { display: block; }
.employee-record-head span { color: var(--primary); font-size: .67rem; font-weight: 850; text-transform: uppercase; }
.employee-record-head strong { margin-top: 2px; overflow-wrap: anywhere; color: #102a56; font-size: .9rem; }
.employee-record-head small { margin-top: 2px; color: var(--text-muted); font-size: .7rem; }
.employee-record-card > p { margin: 10px 0 0; color: #475467; font-size: .8rem; white-space: pre-line; }
.employee-record-files { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.employee-record-files a { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 9px; border: 1px solid #d8e4f4; border-radius: 6px; color: var(--primary-dark); background: #f8fbff; font-size: .72rem; text-decoration: none; }
.employee-record-files a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-record-files a small { flex: 0 0 auto; color: var(--text-muted); }

@media (max-width: 1199.98px) {
  .employee-profile-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .employee-profile-hero { align-items: flex-start; flex-direction: column; }
  .employee-profile-actions { justify-content: flex-start; }
  .employee-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .employee-profile-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-training-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-profile-identity { align-items: flex-start; }
  .employee-profile-avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.25rem; }
  .employee-orientation-banner { grid-template-columns: auto minmax(0, 1fr); }
  .employee-orientation-banner > b { grid-column: 2; }
  .employee-record-head { align-items: stretch; flex-direction: column; }
  .employee-record-head form .btn { width: 100%; }
}

.training-content-manager {
  position: relative;
  overflow: hidden;
  border-top: 3px solid #06a7c8;
}

.training-content-manager::after {
  position: absolute;
  top: -52px;
  right: -48px;
  width: 130px;
  height: 130px;
  border: 24px solid rgba(6, 167, 200, .055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.training-content-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

@media (max-width: 1100px) {
  .training-content-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.training-content-mode-grid label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.training-content-mode-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.training-content-mode-grid label > span {
  display: grid;
  min-height: 72px;
  gap: 3px;
  padding: 13px 14px 13px 44px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fbfcff;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.training-content-mode-grid label > span::before {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 17px;
  height: 17px;
  border: 2px solid #a5b4c8;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 4px #fff;
}

.training-content-mode-grid input:checked + span {
  border-color: #64b8f0;
  background: #eff8ff;
  box-shadow: inset 3px 0 #1689dc;
}

.training-content-mode-grid input:checked + span::before {
  border-color: #1689dc;
  background: #1689dc;
}

.training-content-mode-grid label:hover > span {
  transform: translateY(-1px);
  border-color: #9ecbf0;
}

.training-content-mode-grid strong {
  color: var(--text-main);
  font-size: .76rem;
}

.training-content-mode-grid small {
  color: var(--text-muted);
  font-size: .67rem;
  line-height: 1.4;
}

.training-content-warning {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--warning);
  border-radius: 10px;
  color: #8b5209;
  background: var(--warning-soft);
}

.training-content-warning strong { font-size: .76rem; }
.training-content-warning span { font-size: .71rem; line-height: 1.5; }

.training-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f4c9cc;
}

.training-danger-zone > div { display: grid; gap: 2px; }
.training-danger-zone strong { color: #b42318; font-size: .76rem; }
.training-danger-zone span { color: var(--text-muted); font-size: .7rem; }

.training-question-locked {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d7e3f3;
  border-radius: 14px;
  background: #f6f9fd;
}

.training-question-locked h2 { margin: 0 0 3px; font-size: .86rem; }
.training-question-locked p { margin: 0; color: var(--text-muted); font-size: .72rem; line-height: 1.5; }
.training-lock-icon { position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: #e5eefb; }
.training-lock-icon::before { position: absolute; top: 9px; left: 12px; width: 14px; height: 12px; border: 2px solid #3269b2; border-bottom: 0; border-radius: 8px 8px 0 0; content: ""; }
.training-lock-icon::after { position: absolute; right: 9px; bottom: 8px; left: 9px; height: 17px; border-radius: 5px; background: #3269b2; content: ""; }
.learning-content-options.is-edit-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.is-content-input-muted { opacity: .48; transition: opacity .18s ease; }

@media (max-width: 767.98px) {
  .training-content-mode-grid { grid-template-columns: 1fr; }
  .training-danger-zone,
  .learning-content-options.is-edit-note { align-items: stretch; flex-direction: column; }
  .training-danger-zone .btn,
  .learning-content-options.is-edit-note .btn { width: 100%; }
}

* {
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--app-bg);
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-x: hidden;
  animation: pageFade 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes surfaceIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

a {
  color: var(--primary-dark);
}

.container {
  max-width: 1140px;
}

.btn {
  min-height: 40px;
  border-radius: var(--radius-control);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.portal-card:hover {
  transform: translateY(-1px);
}

.btn-app {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.20);
}

.btn-app:hover,
.btn-app:focus {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0284c7 100%);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

.btn-outline-secondary {
  --bs-btn-color: var(--text-muted);
  --bs-btn-border-color: #cfd6e3;
  --bs-btn-hover-bg: var(--surface-soft);
  --bs-btn-hover-border-color: #c4ccdb;
  --bs-btn-hover-color: var(--text-main);
}

.text-theme,
.eyebrow,
.section-kicker {
  color: var(--primary-dark) !important;
}

.eyebrow,
.section-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fbfcff;
  color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.form-label {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 124px;
  height: auto;
  flex: 0 0 auto;
}

.brand-logo-admin {
  width: 86px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
  box-shadow: 0 12px 28px rgba(8, 20, 48, 0.18);
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(223, 232, 246, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
  box-shadow: 0 14px 34px rgba(15, 42, 86, 0.12);
}

.brand-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-frame-admin {
  width: 88px;
  height: 40px;
  padding: 5px 8px;
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(3, 12, 30, 0.24);
}

.brand-logo-frame-header {
  width: 126px;
  height: 42px;
  padding: 5px 9px;
  border-radius: 16px;
}

.brand-logo-frame-dashboard {
  width: 158px;
  height: 70px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border-color: rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-logo-frame-hero {
  width: min(236px, 58vw);
  height: 106px;
  padding: 13px 16px;
  border-radius: 24px;
  box-shadow:
    0 26px 56px rgba(15, 42, 86, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.72);
}

.brand-logo-frame-login {
  width: 136px;
  height: 62px;
  padding: 8px 11px;
  border-radius: 20px;
}

.admin-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 92px;
  min-width: 92px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 0, 0, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
  color: #e30613;
  box-shadow: 0 12px 28px rgba(8, 20, 48, 0.20);
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.admin-wordmark-symbol {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.admin-wordmark-symbol::before,
.admin-wordmark-symbol::after {
  content: "";
  position: absolute;
  display: block;
  background: #ef233c;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.05);
}

.admin-wordmark-symbol::before {
  width: 9px;
  height: 9px;
  right: 0;
  top: 0;
}

.admin-wordmark-symbol::after {
  width: 8px;
  height: 8px;
  left: 1px;
  bottom: 1px;
  transform: rotate(18deg);
  background: #ff5a66;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  border: 1px solid #ffd7d7;
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 90, 102, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
  color: #e30613;
  box-shadow: 0 14px 34px rgba(230, 0, 0, 0.08), 0 12px 28px rgba(15, 42, 86, 0.08);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark-header {
  height: 42px;
  min-width: 122px;
  padding: 0 14px;
  font-size: 1rem;
}

.brand-wordmark-dashboard {
  height: 60px;
  min-width: 148px;
  margin-bottom: 12px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 1.22rem;
}

.brand-wordmark-hero {
  height: 84px;
  min-width: 216px;
  padding: 0 26px;
  border-radius: 20px;
  font-size: 1.72rem;
}

.brand-wordmark-symbol {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-wordmark-symbol::before,
.brand-wordmark-symbol::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 3px;
  background: #e30613;
}

.brand-wordmark-symbol::before {
  width: 13px;
  height: 13px;
  right: 0;
  top: 0;
  box-shadow:
    -18px 9px 0 -2px #ff6b73,
    -10px 19px 0 -3px #ef233c;
}

.brand-wordmark-symbol::after {
  width: 12px;
  height: 12px;
  left: 2px;
  top: 11px;
  transform: rotate(22deg);
  background: #ff5a66;
}

.brand-wordmark-header .brand-wordmark-symbol {
  width: 24px;
  height: 24px;
}

.brand-wordmark-dashboard .brand-wordmark-symbol {
  width: 30px;
  height: 30px;
}

.brand-wordmark-hero .brand-wordmark-symbol {
  width: 38px;
  height: 38px;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1.15;
}

.brand-lockup small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 900;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}

.brand-mark-lg {
  width: 56px;
  height: 56px;
  font-size: 1.28rem;
}

.hero-logo {
  display: block;
  width: min(188px, 50vw);
  height: auto;
}

.public-topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.public-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.portal-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 24%, rgba(14, 165, 233, 0.18), transparent 28%),
    radial-gradient(circle at 64% 18%, rgba(37, 99, 235, 0.15), transparent 30%),
    linear-gradient(180deg, #f7f8ff 0%, var(--app-bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 46px 0 30px;
}

.portal-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 42px;
  width: 220px;
  height: 220px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.12));
  transform: rotate(10deg);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: end;
}

.logo-area {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
  font-weight: 850;
  font-size: 1rem;
}

.portal-hero h1,
.form-intro h1,
.login-panel h1,
.page-title-row h1,
.admin-page-section h1 {
  margin: 0;
  font-weight: 850;
  line-height: 1.14;
}

.form-intro h1,
.login-panel h1,
.page-title-row h1,
.admin-page-section h1 {
  font-size: clamp(1.18rem, 1.8vw, 1.58rem);
}

.portal-hero h1 {
  max-width: 700px;
  font-size: clamp(1.55rem, 3.2vw, 2.42rem);
}

.hero-copy {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-summary,
.portal-card,
.status-panel,
.login-panel,
.metric-box,
.table-panel,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  animation: surfaceIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.table-panel,
.form-card,
.login-panel,
.status-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
    var(--surface);
  border-color: #dbe7f7;
}

.hero-summary {
  display: flex;
  gap: 14px;
  padding: 18px;
}

.hero-summary p {
  margin: 2px 0 0;
  color: var(--text-muted);
}

.summary-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  margin-top: 7px;
  flex: 0 0 auto;
}

.portal-actions,
.form-page,
.admin-page-section {
  padding: 28px 0;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease, filter 190ms ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: #cbdcf6;
  box-shadow: 0 18px 44px rgba(15, 42, 86, 0.14);
  filter: saturate(1.03);
}

.portal-action-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 214px;
  padding: 0 22px 22px;
}

.portal-action-card::before {
  content: "";
  display: block;
  height: 68px;
  margin: 0 -22px 4px;
}

.action-indigo::before { background: linear-gradient(135deg, var(--primary-soft), rgba(37, 99, 235, 0.24)); }
.action-teal::before { background: linear-gradient(135deg, var(--secondary-soft), rgba(20, 184, 166, 0.28)); }
.action-purple::before { background: linear-gradient(135deg, var(--accent-soft), rgba(14, 165, 233, 0.24)); }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -38px;
  border-radius: 17px;
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-teal .card-icon { color: var(--secondary); }
.action-purple .card-icon { color: var(--accent); }

.card-title {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.public-footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.form-shell,
.survey-shell {
  max-width: 920px;
}

.survey-shell {
  max-width: 1060px;
}

.form-intro {
  position: relative;
  margin-bottom: 18px;
  padding: 22px;
  background: linear-gradient(135deg, var(--primary-soft), #ffffff 56%, var(--secondary-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.form-intro p:last-child {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--text-muted);
}

.form-card,
.table-panel {
  padding: 22px;
}

.form-card {
  display: grid;
  gap: 18px;
}

.section-heading {
  padding: 14px;
  margin-bottom: 0;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.section-heading h2,
.panel-heading h2,
.table-panel h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.section-heading p,
.panel-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.form-card .row {
  padding: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.required-label::after {
  content: " *";
  color: var(--danger);
}

.consent-box {
  padding: 14px;
  background: var(--primary-soft);
  border: 1px solid #cfe0ff;
  border-radius: 16px;
}

.submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.survey-progress-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
  background: var(--app-bg);
}

.progress {
  height: 16px;
  background: #e8edf7;
  border-radius: 999px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  font-size: 0.72rem;
  font-weight: 800;
}

.survey-step[hidden] {
  display: none !important;
}

.survey-step {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.survey-step .row {
  padding: 0;
  border: 0;
}

.likert-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  font-size: 0.9rem;
}

.likert-help span,
.survey-question {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.likert-help span {
  padding: 9px 10px;
}

.survey-question {
  padding: 14px;
}

.survey-question legend {
  float: none;
  width: auto;
  margin-bottom: 12px;
  font-size: 0.94rem;
  font-weight: 750;
}

.survey-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.survey-scale label {
  display: block;
  cursor: pointer;
}

.survey-scale input {
  position: absolute;
  opacity: 0;
}

.survey-scale span {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcff;
  text-align: center;
}

.survey-scale small {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.1;
}

.survey-scale input:checked + span,
.survey-scale input:focus-visible + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  outline: 2px solid rgba(37, 99, 235, 0.13);
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.login-body {
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 82% 30%, rgba(14, 165, 233, 0.16), transparent 24%),
    var(--app-bg);
}

.login-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 480px);
  padding: 28px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-body {
  background: var(--app-bg);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: linear-gradient(180deg, #102a56 0%, #143b78 100%);
  color: #ffffff;
  overflow-y: auto;
}

.admin-brand,
.admin-sidebar a {
  color: #ffffff;
}

.admin-brand {
  margin-bottom: 22px;
}

.admin-brand strong {
  font-size: 0.94rem;
}

.admin-brand {
  gap: 10px;
  align-items: center;
}

.admin-brand small,
.admin-nav-title {
  color: #c7d7f4;
}

.admin-nav {
  display: grid;
  gap: 16px;
}

.admin-nav-group {
  display: grid;
  gap: 6px;
}

.admin-nav-title {
  padding: 0 10px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 11px;
  border-radius: 12px;
  color: #f5f6ff;
  text-decoration: none;
  font-size: 0.80rem;
  font-weight: 650;
  line-height: 1.25;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.admin-nav a:hover {
  transform: translateX(2px);
}

.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  color: #eaebff;
  font-size: 0;
  overflow: hidden;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
}

.nav-icon-dashboard::before { width: 14px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, -42%); }
.nav-icon-dashboard::after { width: 10px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translate(-48%, -58%) rotate(-24deg); }
.nav-icon-search::before { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; transform: translate(-58%, -58%); }
.nav-icon-search::after { width: 7px; height: 2px; background: currentColor; transform: translate(0, 2px) rotate(45deg); }
.nav-icon-qr::before {
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(currentColor 0 0) 0 0 / 6px 6px,
    linear-gradient(currentColor 0 0) 9px 0 / 6px 6px,
    linear-gradient(currentColor 0 0) 0 9px / 6px 6px,
    linear-gradient(currentColor 0 0) 10px 10px / 5px 5px;
  background-repeat: no-repeat;
}
.nav-icon-idea::before { width: 12px; height: 13px; border: 2px solid currentColor; border-radius: 50% 50% 42% 42%; transform: translate(-50%, -60%); }
.nav-icon-idea::after { width: 9px; height: 4px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, 78%); }
.nav-icon-training::before { width: 16px; height: 10px; border: 2px solid currentColor; border-radius: 3px; transform: translate(-50%, -50%) skewY(-12deg); }
.nav-icon-training::after { width: 2px; height: 12px; background: currentColor; transform: translate(4px, -50%); }
.nav-icon-survey::before,
.nav-icon-mail::before { width: 15px; height: 11px; border: 2px solid currentColor; border-radius: 4px; transform: translate(-50%, -50%); }
.nav-icon-survey::after { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(12%, 0) rotate(35deg); }
.nav-icon-catalog::before { width: 13px; height: 16px; border: 2px solid currentColor; border-radius: 3px; transform: translate(-50%, -50%); }
.nav-icon-catalog::after { width: 7px; height: 2px; background: currentColor; box-shadow: 0 4px 0 currentColor; transform: translate(-50%, -70%); }
.nav-icon-department::before { width: 15px; height: 12px; border: 2px solid currentColor; border-radius: 3px; transform: translate(-50%, -50%); }
.nav-icon-department::after { width: 2px; height: 15px; background: currentColor; box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor; opacity: 0.9; transform: translate(-50%, -50%); }
.nav-icon-category::before { width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 2px; box-shadow: 8px 0 0 -2px transparent, 8px 0 0 0 currentColor, 0 8px 0 0 currentColor, 8px 8px 0 0 currentColor; transform: translate(-68%, -68%); }
.nav-icon-settings::before { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.nav-icon-settings::after { width: 5px; height: 5px; background: currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.nav-icon-mail::after { width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, -72%) rotate(-45deg); }
.nav-icon-users::before { width: 14px; height: 8px; border: 2px solid currentColor; border-radius: 999px 999px 4px 4px; transform: translate(-50%, 12%); }
.nav-icon-users::after { width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; transform: translate(-50%, -70%); }
.nav-icon-audit::before { width: 14px; height: 16px; border: 2px solid currentColor; border-radius: 4px; transform: translate(-50%, -50%); }
.nav-icon-audit::after { width: 8px; height: 2px; background: currentColor; box-shadow: 0 4px 0 currentColor; transform: translate(-50%, -80%); }

.admin-nav a.active .nav-icon,
.admin-nav a:hover .nav-icon {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.admin-content {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.admin-main {
  padding: 0 22px 32px;
}

.admin-menu-toggle,
.admin-backdrop {
  display: none;
}

.admin-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.page-title-row,
.admin-page-section > .container > .d-flex:first-child,
.admin-page-section > .d-flex:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #dbe7f7;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 56%, #edf6ff 100%);
  box-shadow: 0 18px 46px rgba(15, 42, 86, 0.10);
}

.dashboard-hero-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 20px;
  border-radius: 20px;
  min-height: 154px;
}

.dashboard-logo {
  display: block;
  width: 148px;
  height: auto;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #ffd7d7;
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 74, 74, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
  box-shadow: 0 14px 32px rgba(230, 0, 0, 0.08), 0 10px 26px rgba(15, 42, 86, 0.06);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.dashboard-hero-copy,
.dashboard-hero-side,
.dashboard-hero-actions {
  position: relative;
  z-index: 1;
}

.dashboard-hero h1 {
  margin: 0;
  color: #0f2a56;
  font-size: clamp(1.34rem, 2vw, 1.82rem);
  font-weight: 900;
  line-height: 1.08;
}

.dashboard-context {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
}

.dashboard-hero-copy p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.dashboard-hero-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.hero-stat .metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.hero-stat strong {
  display: block;
  color: #0f2a56;
  font-size: 1.18rem;
  line-height: 1.05;
  font-weight: 900;
}

.hero-stat span:not(.metric-icon) {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-self: end;
}

.dashboard-grid,
.admin-links,
.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(166px, 1fr));
  gap: 12px;
}

.metric-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  overflow: hidden;
  border-color: #dbe7f7;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-box::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 180ms ease;
}

.metric-box:hover {
  transform: translateY(-2px);
  border-color: #c7d9f4;
  box-shadow: 0 16px 36px rgba(15, 42, 86, 0.12);
}

.metric-box:hover::after {
  opacity: 1;
}

.metric-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--primary-soft);
  flex: 0 0 auto;
  color: var(--primary-dark);
}

.metric-indigo .metric-icon { background: var(--primary-soft); color: var(--primary-dark); }
.metric-teal .metric-icon { background: var(--secondary-soft); color: var(--secondary); }
.metric-purple .metric-icon { background: var(--accent-soft); color: var(--accent); }
.metric-warning .metric-icon { background: var(--warning-soft); color: var(--warning); }
.metric-success .metric-icon { background: var(--success-soft); color: var(--success); }
.metric-danger .metric-icon { background: var(--danger-soft); color: var(--danger); }

.metric-icon::before,
.metric-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.metric-icon-lightbulb::before {
  width: 15px;
  height: 15px;
  top: 8px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 44% 44%;
}

.metric-icon-lightbulb::after {
  width: 12px;
  height: 5px;
  top: 24px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.metric-icon-book::before {
  width: 18px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.metric-icon-book::after {
  width: 2px;
  height: 15px;
  background: currentColor;
}

.metric-icon-clock::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.metric-icon-clock::after {
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(2px, -1px);
}

.metric-icon-calendar::before {
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.metric-icon-calendar::after {
  width: 18px;
  height: 2px;
  top: 14px;
  background: currentColor;
}

.metric-icon-chat::before {
  width: 19px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.metric-icon-chat::after {
  width: 7px;
  height: 7px;
  right: 10px;
  bottom: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(24deg);
}

.metric-icon-users::before {
  width: 18px;
  height: 10px;
  bottom: 9px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 5px 5px;
}

.metric-icon-users::after {
  width: 15px;
  height: 15px;
  top: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.metric-icon-chart::before {
  width: 20px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.metric-icon-chart::after {
  width: 16px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-28deg);
}

.metric-icon-spark::before {
  width: 18px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}

.metric-icon-check::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.metric-icon-check::after {
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.metric-icon-alert::before {
  width: 20px;
  height: 18px;
  border: 2px solid currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.metric-icon-alert::after {
  width: 2px;
  height: 8px;
  background: currentColor;
  box-shadow: 0 10px 0 currentColor;
  transform: translateY(1px);
}

.metric-box span:not(.metric-icon) {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.3;
}

.metric-box small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
}

.metric-box strong,
.metric-box .h3 {
  display: block;
  margin-top: 5px;
  font-size: 1.16rem;
  line-height: 1.1;
  color: var(--text-main);
}

.chart-panel {
  min-height: 292px;
  position: relative;
  overflow: hidden;
  border-color: #dbe7f7;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.78), rgba(255, 255, 255, 0.98)),
    var(--surface);
}

.chart-danger {
  border-color: #ffd7d7;
  background:
    linear-gradient(180deg, rgba(255, 246, 246, 0.78), rgba(255, 255, 255, 0.98)),
    var(--surface);
}

.chart-panel canvas {
  width: 100% !important;
  height: 258px !important;
  max-height: 276px;
}

.chart-panel .empty-chart {
  font-size: 0.9rem;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-feature {
  min-height: 358px;
}

.chart-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
}

.chart-title .metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.chart-title h2 {
  margin: 0;
  color: #0f2a56;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
}

.chart-title p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.filter-panel {
  padding: 20px;
}

.modern-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.modern-table thead th {
  background: linear-gradient(180deg, #f7faff, #f1f6ff);
  color: #53627a;
  border: 0;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-top: 10px;
  padding-bottom: 10px;
}

.modern-table tbody tr {
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.modern-table tbody tr:hover {
  transform: translateY(-1px);
  filter: saturate(1.03);
  box-shadow: 0 10px 24px rgba(15, 42, 86, 0.08);
}

.modern-table tbody td {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-top: 1px solid #dfe7f3;
  border-bottom: 1px solid #dfe7f3;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 0.89rem;
}

.modern-table tbody td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 14px 0 0 14px;
}

.modern-table tbody td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 14px 14px 0;
}

.badge,
.text-bg-light,
.text-bg-success,
.text-bg-secondary {
  border-radius: 999px;
  padding: 0.38rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.text-bg-light,
.text-bg-secondary {
  color: var(--text-main) !important;
  background: var(--surface-soft) !important;
}

.text-bg-success {
  color: #146143 !important;
  background: var(--success-soft) !important;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 9px 16px;
}

.detail-list dt {
  color: var(--text-muted);
  font-size: 0.80rem;
  font-weight: 700;
}

.detail-list dd {
  margin-bottom: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.subsection-title,
.workflow-block h3 {
  margin: 18px 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

.workflow-block {
  padding: 14px;
  margin-bottom: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.compact-workflow-form {
  align-self: start;
}

.workflow-details {
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-soft), #fff);
  overflow: hidden;
}

.workflow-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.workflow-details summary::-webkit-details-marker {
  display: none;
}

.workflow-details summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.workflow-details[open] summary::after {
  content: "-";
}

.workflow-details .workflow-block {
  margin: 0 12px 12px;
  border-radius: 14px;
  animation: softReveal 160ms ease-out;
}

.workflow-block-compact textarea {
  min-height: 82px;
}

.source-text-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.source-text-preview p {
  margin: 0;
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.55;
}

.document-preview {
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #eef1f7;
}

.document-page {
  width: min(100%, 820px);
  min-width: 680px;
  margin: 0 auto;
  padding: 28px 30px;
  border: 1px solid #cfd5df;
  background: #ffffff;
  color: #111827;
  box-shadow: var(--shadow-sm);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.document-paragraph {
  margin: 0 0 6px;
  color: #111827;
}

.document-table {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  table-layout: fixed;
}

.document-table td,
.document-table th {
  min-height: 24px;
  padding: 5px 7px;
  border: 1px solid #111827;
  vertical-align: top;
  color: #111827;
  overflow-wrap: anywhere;
}

.document-table p {
  margin: 0 0 4px;
}

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

.document-image {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  vertical-align: middle;
}

.document-sheet h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.document-pdf {
  min-height: 900px;
  padding: 12px;
}

.document-pdf-frame {
  display: block;
  width: 100%;
  min-height: 860px;
  border: 0;
}

.dynamic-public-form .section-card h2 {
  margin-bottom: 14px;
}

.app-check {
  min-height: 48px;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcff;
}

.dynamic-field-editor {
  display: grid;
  gap: 12px;
}

.dynamic-field-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px minmax(180px, 0.8fr) 100px minmax(120px, auto);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

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

.answer-detail-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.answer-detail-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.answer-detail-item strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.report-stack,
.timeline-list {
  display: grid;
  gap: 10px;
}

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.report-row span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.report-row strong {
  color: var(--text-main);
  font-size: 1rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft);
}

.timeline-item strong {
  display: block;
  font-size: 0.94rem;
}

.timeline-item p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-item small {
  color: var(--text-muted);
  font-weight: 700;
}

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

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 28px;
  border-left: 2px solid #d8e7ff;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft);
}

.timeline-item span,
.timeline-item small {
  display: block;
  color: var(--text-muted);
}

.timeline-item p {
  margin: 6px 0 0;
}

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

.compact-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.insight-panel {
  position: relative;
  overflow: hidden;
  border-color: #dbe7f7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.insight-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--primary);
}

.insight-cyan::before {
  background: var(--accent);
}

.insight-teal::before {
  background: var(--secondary);
}

.insight-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  counter-reset: insight;
  list-style: none;
}

.insight-list li {
  counter-increment: insight;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.insight-list li::before {
  content: counter(insight);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.stack-list {
  display: grid;
  gap: 8px;
}

.stack-list-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.stack-list-item:hover {
  transform: translateY(-1px);
  border-color: #d6daf0;
  background: #ffffff;
}

.stack-list-danger,
.complaint-row td {
  background: #fffafa !important;
}

.stack-list-danger {
  border-color: #ffd1d1;
}

.stack-list-danger strong {
  color: #9d3030;
}

.complaint-row td:first-child {
  box-shadow: inset 4px 0 0 var(--danger);
}

.stack-list-item strong,
.stack-list-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stack-list-item strong {
  font-size: 0.9rem;
  font-weight: 750;
}

.stack-list-item span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.email-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.80rem;
}

.email-status-strip strong {
  color: var(--primary-dark);
}

.feedback-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feedback-type-option {
  position: relative;
  display: flex;
  min-height: 86px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feedback-type-option input {
  position: absolute;
  opacity: 0;
}

.feedback-type-option span {
  display: grid;
  align-content: center;
  gap: 4px;
  width: 100%;
  padding: 14px 16px 14px 22px;
}

.feedback-type-option::before {
  content: "";
  width: 6px;
  background: var(--primary);
}

.feedback-type-complaint::before {
  background: var(--danger);
}

.feedback-type-option strong {
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 900;
}

.feedback-type-option small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.feedback-type-option:has(input:checked) {
  transform: translateY(-1px);
  border-color: #b9cef4;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.feedback-type-complaint:has(input:checked) {
  border-color: #ffbcbc;
  background: #fffafa;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.type-badge-info {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.type-badge-danger {
  color: #9d3030;
  background: var(--danger-soft);
}

.open-answer {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.file-preview-list,
.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.file-preview-item,
.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.file-preview-item span,
.attachment-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-preview-item small,
.attachment-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.file-preview-error,
.file-preview-warning {
  border-color: #ffd1d1;
  background: var(--danger-soft);
  color: #8f2f2f;
}

.file-preview-warning {
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
}

.reference-code {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.pre-line {
  white-space: pre-line;
}

.qr-preview {
  width: min(100%, 220px);
  height: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.qr-single-layout {
  display: grid;
  gap: 22px;
}

.qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
}

.qr-card-copy h2 {
  margin: 0 0 10px;
  font-size: 1.36rem;
  font-weight: 850;
}

.qr-card-copy p {
  color: var(--text-muted);
  max-width: 640px;
}

.qr-info-note {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
}

.qr-code-panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.qr-preview-large {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 18px;
}

.qr-link-group .form-control {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.qr-print-poster {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.poster-logo {
  display: grid;
  place-items: center;
  width: 178px;
  height: 78px;
  padding: 10px 14px;
  border: 2px solid #111111;
  border-radius: 12px;
  background: #ffffff;
}

.poster-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-print-poster h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
}

.qr-print-poster p {
  max-width: 520px;
  margin: 0;
  color: var(--text-muted);
}

.poster-qr {
  width: min(72vw, 360px);
  height: auto;
}

.poster-url {
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #111111;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.poster-help {
  font-weight: 800;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-left: 0;
}

.form-check .form-check-input {
  flex: 0 0 auto;
  margin-left: 0;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.form-check-label,
.alert,
td,
th {
  overflow-wrap: anywhere;
}

.alert {
  border-radius: 16px;
}

.alert-danger {
  color: #8f2f2f;
  background: var(--danger-soft);
  border-color: #ffd1d1;
}

@media (max-width: 991.98px) {
  .admin-layout {
    display: block;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-actions {
    justify-content: flex-start;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(86vw, 320px);
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  .admin-menu-toggle:checked ~ .admin-layout .admin-sidebar {
    transform: translateX(0);
  }

  .admin-menu-toggle:checked ~ .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(18, 20, 45, 0.50);
  }

  .admin-menu-button {
    display: grid;
  }

  .admin-main {
    padding: 0 14px 28px;
  }

  .hero-grid,
  .portal-card-grid {
    grid-template-columns: 1fr;
  }

  .portal-action-card {
    min-height: 206px;
  }

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

@media (max-width: 575.98px) {
  .public-topbar .container {
    min-height: 84px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .public-topbar .btn {
    min-width: 116px;
  }

  .portal-hero {
    padding: 34px 0 24px;
  }

  .portal-actions,
  .form-page,
  .admin-page-section {
    padding: 18px 0;
  }

  .form-card,
  .table-panel,
  .login-panel {
    padding: 16px;
  }

  .portal-hero h1 {
    font-size: 1.62rem;
  }

  .form-intro h1,
  .login-panel h1,
  .page-title-row h1,
  .admin-page-section h1 {
    font-size: 1.16rem;
  }

  .submit-row,
  .survey-nav,
  .page-title-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .submit-row .btn,
  .survey-nav .btn {
    width: 100%;
  }

  .survey-scale {
    grid-template-columns: 1fr;
  }

  .feedback-type-grid {
    grid-template-columns: 1fr;
  }

  .survey-scale span {
    grid-template-columns: 42px 1fr;
    justify-items: start;
    min-height: 52px;
    text-align: left;
  }

  .attachment-item,
  .file-preview-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .dynamic-field-row {
    grid-template-columns: 1fr;
  }

  .modern-table,
  .modern-table thead,
  .modern-table tbody,
  .modern-table th,
  .modern-table td,
  .modern-table tr {
    display: block;
  }

  .modern-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .modern-table tr {
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
  }

  .modern-table tbody td,
  .modern-table tbody td:first-child,
  .modern-table tbody td:last-child {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 10px;
    border: 0;
    border-radius: 0;
    padding: 6px 0;
  }

  .modern-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-weight: 800;
  }

  .chart-panel canvas {
    height: 230px !important;
  }
}

/* HR workspace: compact, high-clarity employee and access management. */
.employee-directory,
.employee-editor-page,
.access-editor-page,
.role-management-page {
  width: min(100%, 1480px);
  margin-inline: auto;
}

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

.employee-kpi {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 92px;
  gap: 13px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(207, 218, 235, .88);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 28px rgba(34, 55, 91, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.employee-kpi::after {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border: 18px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .055;
}

.employee-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(34, 55, 91, .11);
}

.employee-kpi-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: currentColor;
  background: color-mix(in srgb, currentColor 11%, white);
  font-size: 1.15rem;
  font-weight: 800;
}

.employee-kpi > div {
  display: grid;
  min-width: 0;
}

.employee-kpi small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-kpi strong {
  color: var(--text-main);
  font-size: 1.38rem;
  line-height: 1.15;
}

.kpi-blue { color: #2563eb; }
.kpi-green { color: #14936b; }
.kpi-red { color: #d14f5a; }
.kpi-cyan { color: #0891b2; }

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.panel-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: .78rem;
}

.employee-import-panel {
  position: relative;
  overflow: hidden;
  border-top: 3px solid #2563eb;
}

.employee-import-panel::after {
  position: absolute;
  top: -62px;
  right: -52px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(37, 99, 235, .06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.file-type-pill,
.employee-editor-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cfe0ff;
  border-radius: 9px;
  color: #1d4ed8;
  background: #eef5ff;
  font-size: .68rem;
  font-weight: 800;
}

.employee-import-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .74rem;
}

.employee-import-foot a {
  color: #1d4ed8;
  font-weight: 800;
}

.employee-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.employee-name-cell > span,
.role-orb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #1d4ed8;
  background: linear-gradient(145deg, #edf4ff, #dbeafe);
  font-size: .78rem;
  font-weight: 900;
}

.employee-name-cell > div {
  display: grid;
  min-width: 0;
}

.employee-name-cell small {
  color: var(--text-muted);
  font-size: .69rem;
}

.import-history-grid,
.role-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.import-history-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.import-history-grid strong,
.import-history-grid small,
.import-history-grid span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-history-grid strong { font-size: .76rem; }
.import-history-grid small { color: var(--text-muted); font-size: .66rem; }
.import-history-grid span { color: #526078; font-size: .7rem; }

.employee-editor-card,
.access-editor-card {
  max-width: 1120px;
  margin-inline: auto;
  border-top: 3px solid #2563eb;
}

.employee-active-toggle,
.access-status-toggle {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #cdebdc;
  border-radius: 12px;
  background: #f0fbf6;
  font-weight: 750;
}

.employee-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.access-editor-section {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.access-editor-section h2 { margin: 0; font-size: .95rem; }
.access-editor-section p { margin: 3px 0 0; color: var(--text-muted); font-size: .75rem; }

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.role-select-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 68px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.role-select-card:hover { transform: translateY(-1px); border-color: #a9c6ff; }
.role-select-card:has(input:checked) { border-color: #75a7ff; background: #eef5ff; box-shadow: inset 3px 0 #2563eb; }
.role-select-card.is-department:has(input:checked) { border-color: #73d7c7; background: #edfbf8; box-shadow: inset 3px 0 #14a995; }
.role-select-card input { flex: 0 0 auto; margin-top: 3px; }
.role-select-card span { display: grid; min-width: 0; }
.role-select-card strong { overflow-wrap: anywhere; font-size: .76rem; }
.role-select-card small { color: var(--text-muted); font-size: .66rem; line-height: 1.4; }

.role-create-panel { border-top: 3px solid #8b5cf6; }
.role-management-card { display: grid; gap: 14px; min-width: 0; padding: 16px; }
.role-management-card.is-inactive { opacity: .7; }
.role-card-heading { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.role-card-heading > div { display: grid; min-width: 0; }
.role-card-heading strong { overflow-wrap: anywhere; font-size: .78rem; }
.role-card-heading small { color: var(--text-muted); font-size: .65rem; }
.role-management-card > p { color: var(--text-muted); font-size: .72rem; line-height: 1.55; }
.role-management-card form { display: grid; gap: 8px; }
.role-management-card .form-label { margin: 0; font-size: .68rem; }
.role-management-card .form-control,
.role-management-card .form-select { min-height: 42px; font-size: .75rem; }

.nav-icon-access::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 45% 45%;
  content: "";
  clip-path: polygon(50% 0, 100% 20%, 92% 75%, 50% 100%, 8% 75%, 0 20%);
}

.portal-learning-card {
  border-color: #d8e4f6;
  background: linear-gradient(145deg, #fff 55%, #f2f7ff 100%);
  box-shadow: 0 13px 32px rgba(32, 70, 126, .08);
}

.portal-learning-card:hover {
  border-color: #9fc1ff;
  box-shadow: 0 18px 40px rgba(32, 70, 126, .14);
}

@media (max-width: 1100px) {
  .employee-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-history-grid,
  .role-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .employee-kpi-grid,
  .role-card-grid,
  .import-history-grid,
  .role-list-grid { grid-template-columns: 1fr; }
  .employee-import-foot,
  .employee-editor-actions { align-items: stretch; flex-direction: column; }
  .employee-editor-actions .btn { width: 100%; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .file-type-pill,
  .employee-editor-badge { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .employee-kpi,
  .role-select-card,
  .portal-learning-card { transition: none; }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    animation: none !important;
  }

  .admin-sidebar,
  .admin-topbar,
  .admin-backdrop,
  .public-topbar,
  .public-footer,
  .no-print,
  .qr-card {
    display: none !important;
  }

  .admin-layout,
  .admin-content,
  .admin-main,
  .qr-single-layout {
    display: block !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .admin-page-section,
  .qr-admin-page,
  .qr-admin-page .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .qr-print-poster {
    display: grid !important;
    width: 100% !important;
    min-height: 250mm;
    padding: 16mm;
    border: 2px solid #000000;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .qr-print-poster h2 {
    font-size: 28pt;
  }

  .qr-print-poster p,
  .poster-url {
    color: #000000 !important;
    font-size: 13pt;
  }

  .poster-qr {
    width: 115mm !important;
    max-width: 115mm !important;
  }
}

/* Kurumsal mavi tema sıkılaştırmaları */
.admin-page-section {
  color: var(--text-main);
}

.admin-page-section .h2,
.admin-page-section .h5,
.table-panel h2.h5 {
  letter-spacing: 0;
}

.admin-page-section .h2 {
  font-size: clamp(1.22rem, 1.8vw, 1.62rem);
}

.table-panel h2.h5,
.chart-panel h2 {
  font-size: 0.94rem;
  font-weight: 820;
  color: var(--text-main);
}

.table-panel,
.form-card,
.metric-box,
.portal-card,
.login-panel {
  border-radius: 16px;
}

.dashboard-grid .metric-box {
  box-shadow: 0 10px 26px rgba(15, 42, 86, 0.075);
}

.metric-purple .metric-icon {
  background: var(--accent-soft);
  color: #0369a1;
}

.metric-box .small,
.metric-box span:not(.metric-icon) {
  font-size: 0.74rem;
}

.action-panel {
  padding: 16px;
}

.action-panel .panel-heading {
  margin-bottom: 10px;
}

.action-panel .panel-heading h2 {
  font-size: 0.88rem;
}

.action-panel .panel-heading p {
  font-size: 0.76rem;
  line-height: 1.35;
}

.stack-list-item {
  padding: 9px 10px;
  border-radius: 12px;
}

.stack-list-item strong {
  font-size: 0.82rem;
  line-height: 1.35;
}

.stack-list-item span {
  font-size: 0.72rem;
  line-height: 1.35;
}

.compact-workflow-form {
  padding: 16px;
}

.compact-workflow-form .form-control,
.compact-workflow-form .form-select {
  min-height: 42px;
  border-radius: 11px;
  font-size: 0.86rem;
}

.compact-workflow-form textarea.form-control {
  min-height: 72px;
}

.compact-workflow-form .mb-3 {
  margin-bottom: 0.72rem !important;
}

.workflow-details {
  border-radius: 14px;
  margin-bottom: 12px;
}

.workflow-details summary {
  min-height: 42px;
  font-size: 0.82rem;
}

.workflow-block {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 13px;
}

.workflow-block h3,
.subsection-title {
  font-size: 0.84rem;
  margin: 12px 0 8px;
}

.detail-summary-grid .metric-box strong {
  font-size: 1.02rem;
}

.detail-summary-grid .metric-box {
  min-height: 72px;
}

.chart-panel {
  box-shadow: 0 12px 30px rgba(15, 42, 86, 0.075);
}

.chart-panel canvas {
  filter: saturate(0.96);
}

/* Executive dashboard revizyonu */
.executive-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbe7f7;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 244, 255, 0.62)),
    #ffffff;
  box-shadow: 0 16px 38px rgba(15, 42, 86, 0.08);
}

.dashboard-top-strip {
  margin-top: 2px;
}

.executive-kpi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 76px;
  padding: 12px 13px 12px 15px;
  border: 1px solid #e4eaf4;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.86)),
    #ffffff;
  box-shadow: 0 10px 24px rgba(15, 42, 86, 0.055);
}

.executive-kpi:last-child {
  border-right: 1px solid #e4eaf4;
}

.executive-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.72;
}

.executive-kpi.metric-teal::before { background: var(--secondary); }
.executive-kpi.metric-purple::before { background: var(--accent); }
.executive-kpi.metric-warning::before { background: var(--warning); }
.executive-kpi.metric-success::before { background: var(--success); }
.executive-kpi.metric-danger::before { background: var(--danger); }

.executive-kpi .metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  align-self: center;
}

.executive-kpi div {
  min-width: 0;
  flex: 1 1 auto;
}

.executive-kpi span,
.executive-kpi em {
  display: block;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.executive-kpi strong {
  display: block;
  margin: 1px 0 2px;
  color: #0f2a56;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.executive-kpi .metric-icon::before,
.executive-kpi .metric-icon::after {
  left: 50%;
  top: 50%;
}

.executive-kpi .metric-icon-lightbulb::before { transform: translate(-50%, -58%); }
.executive-kpi .metric-icon-lightbulb::after { top: 25px; left: 50%; transform: translateX(-50%); }
.executive-kpi .metric-icon-book::before,
.executive-kpi .metric-icon-clock::before,
.executive-kpi .metric-icon-calendar::before,
.executive-kpi .metric-icon-chat::before,
.executive-kpi .metric-icon-users::before,
.executive-kpi .metric-icon-chart::before,
.executive-kpi .metric-icon-spark::before,
.executive-kpi .metric-icon-check::before,
.executive-kpi .metric-icon-alert::before {
  transform: translate(-50%, -50%);
}

.executive-kpi .metric-icon-book::after,
.executive-kpi .metric-icon-calendar::after,
.executive-kpi .metric-icon-users::after,
.executive-kpi .metric-icon-chart::after,
.executive-kpi .metric-icon-check::after,
.executive-kpi .metric-icon-alert::after {
  left: 50%;
  top: 50%;
}

.executive-kpi .metric-icon-book::after { transform: translate(-50%, -50%); }
.executive-kpi .metric-icon-calendar::after { transform: translate(-50%, -3px); }
.executive-kpi .metric-icon-chat::after { left: auto; top: auto; }
.executive-kpi .metric-icon-users::after { transform: translate(-50%, -70%); }
.executive-kpi .metric-icon-chart::after { transform: translate(-50%, -50%) rotate(-28deg); }
.executive-kpi .metric-icon-check::after { transform: translate(-50%, -50%) rotate(-45deg); }
.executive-kpi .metric-icon-clock::after { left: 50%; top: 50%; transform: translate(-18%, -62%); }
.executive-kpi .metric-icon-alert::after { transform: translate(-50%, -44%); }

.executive-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(300px, 0.82fr);
  gap: 14px;
  align-items: stretch;
}

.executive-main-chart,
.executive-performance-panel {
  border-radius: 18px;
  border-color: #dbe7f7;
  background:
    radial-gradient(circle at 84% 0%, rgba(20, 184, 166, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  box-shadow: 0 18px 44px rgba(15, 42, 86, 0.09);
}

.executive-main-chart {
  min-height: 410px;
  padding: 20px;
}

.executive-main-chart canvas {
  width: 100% !important;
  height: 306px !important;
}

.executive-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.executive-panel-title h2 {
  margin: 2px 0 4px;
  color: #0f2a56;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 900;
  line-height: 1.18;
}

.executive-panel-title p {
  max-width: 560px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.executive-panel-title.compact {
  margin-bottom: 14px;
}

.executive-performance-panel {
  padding: 18px;
}

.performance-list {
  display: grid;
  gap: 11px;
}

.performance-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  min-width: 0;
  padding-bottom: 14px;
}

.performance-row strong,
.performance-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-row strong {
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 840;
}

.performance-row span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.performance-row b {
  color: #0f2a56;
  font-size: 0.82rem;
  font-weight: 900;
}

.performance-row i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef8;
}

.performance-row i::before {
  content: "";
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.18);
}

.performance-list.teal .performance-row i::before {
  background: linear-gradient(90deg, var(--secondary), #67e8f9);
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.18);
}

.performance-divider {
  height: 1px;
  margin: 17px 0 14px;
  background: linear-gradient(90deg, transparent, #dfe7f4, transparent);
}

.global-search-panel {
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.11), transparent 24%),
    linear-gradient(180deg, #ffffff, #f9fbff);
}

.global-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.global-search-row .btn {
  min-width: 116px;
  min-height: 48px;
}

.search-result-list {
  display: grid;
  gap: 10px;
}

.search-result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dfe7f4;
  border-radius: 15px;
  background: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-result-card:hover {
  transform: translateY(-1px);
  border-color: #cddaf0;
  box-shadow: 0 12px 28px rgba(15, 42, 86, 0.08);
}

.search-result-card div {
  min-width: 0;
}

.search-result-card strong,
.search-result-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-card strong {
  font-size: 0.88rem;
  font-weight: 850;
}

.search-result-card small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.search-result-card em {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.search-result-danger {
  border-color: #ffd5d5;
  background: linear-gradient(90deg, #fff5f5, #ffffff 52%);
}

.search-result-teal {
  border-color: #c8f4ec;
  background: linear-gradient(90deg, #f0fffc, #ffffff 52%);
}

.search-result-purple {
  border-color: #e6d7ff;
  background: linear-gradient(90deg, #f7f1ff, #ffffff 52%);
}

.dashboard-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-grid-compact .metric-box {
  min-height: 74px;
  padding: 13px 14px;
  border-radius: 15px;
}

.dashboard-grid-compact .metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.nav-icon-matrix::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: translate(-50%, -50%);
}

.nav-icon-matrix::after {
  width: 15px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor, -5px 0 0 currentColor, 5px 0 0 currentColor;
  opacity: 0.75;
  transform: translate(-50%, -50%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.status-success {
  background: var(--success-soft);
  color: var(--success);
}

.status-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-muted {
  background: var(--surface-soft);
  color: var(--text-muted);
}

.status-info {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.soft-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fbfcff;
  color: var(--text-main);
  font-weight: 750;
}

.empty-state.compact {
  padding: 26px;
  border: 1px dashed #cfd8ea;
  border-radius: 16px;
  background: var(--surface-soft);
}

.empty-state.compact h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 850;
}

.empty-state.compact p {
  margin: 0;
  color: var(--text-muted);
}

.polivalence-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid #d8e3f5;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 12%, rgba(20, 184, 166, 0.22), transparent 28%),
    radial-gradient(circle at 76% 90%, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: var(--shadow-sm);
}

.polivalence-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.polivalence-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
}

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

.polivalence-kpi-grid-strong {
  grid-template-columns: repeat(auto-fit, minmax(166px, 1fr));
}

.polivalence-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.polivalence-matrix-panel {
  min-width: 0;
}

.polivalence-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #dfe7f4;
  border-radius: 16px;
  background: #ffffff;
  scrollbar-color: #8ca9d7 #edf3fb;
  scrollbar-width: thin;
}

.polivalence-matrix-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px 10px 8px 13px;
  border: 1px solid #dbe7f7;
  border-radius: 8px;
  background: #f7faff;
}

.polivalence-matrix-navigation > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.polivalence-matrix-navigation strong {
  color: var(--primary-dark);
  font-size: 0.75rem;
  white-space: nowrap;
}

.polivalence-matrix-navigation span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polivalence-scroll-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.polivalence-scroll-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid #b9cff0;
  border-radius: 7px;
  background: #ffffff;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.polivalence-scroll-button:hover,
.polivalence-scroll-button:focus-visible {
  border-color: var(--primary);
  background: #edf4ff;
  outline: none;
}

.polivalence-scroll-proxy {
  width: 100%;
  height: 14px;
  margin-bottom: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 7px;
  scrollbar-color: #6992d0 #edf3fb;
  scrollbar-width: thin;
}

.polivalence-scroll-proxy > div {
  height: 1px;
}

.polivalence-table {
  min-width: max(760px, 100%);
}

.polivalence-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  max-width: 152px;
  background: #f3f7fc;
  vertical-align: bottom;
  white-space: normal;
}

.polivalence-table thead th span,
.polivalence-table thead th small {
  display: block;
  min-width: 0;
}

.polivalence-table thead th span {
  color: var(--text-main);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.22;
}

.polivalence-table thead th small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.polivalence-table th:first-child,
.polivalence-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 220px;
  background: #ffffff;
  box-shadow: 10px 0 18px rgba(15, 42, 86, 0.05);
}

.polivalence-table thead th:first-child {
  z-index: 4;
  background: #f3f7fc;
}

.polivalence-table td {
  text-align: center;
}

.polivalence-table td:first-child {
  text-align: left;
}

.polivalence-person {
  display: grid;
  gap: 2px;
  color: var(--text-main);
  text-decoration: none;
}

.polivalence-person strong {
  font-size: 0.84rem;
  font-weight: 850;
}

.polivalence-person span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.polivalence-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.polivalence-level.level-0 {
  background: #f2f4f7;
  border-color: #e4e8f0;
  color: #7a8394;
}

.polivalence-level.level-1 {
  background: #fff5df;
  border-color: #ffe2a3;
  color: #b86b05;
}

.polivalence-level.level-2 {
  background: #e8f7ff;
  border-color: #b9e7ff;
  color: #0877a8;
}

.polivalence-level.level-3 {
  background: #e9f8f1;
  border-color: #bdebd4;
  color: #168257;
}

.polivalence-level.level-4 {
  background: #eaf1ff;
  border-color: #c9d9ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.polivalence-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 560px;
}

.polivalence-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.polivalence-legend .polivalence-level {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  font-size: 0.68rem;
}

.polivalence-side {
  min-width: 0;
}

.polivalence-history {
  display: grid;
  gap: 12px;
}

.polivalence-chart-grid,
.polivalence-analysis-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.polivalence-coverage-panel {
  background:
    radial-gradient(circle at 92% 10%, rgba(20, 184, 166, 0.10), transparent 24%),
    linear-gradient(180deg, #ffffff, #f9fbff);
}

.polivalence-department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.polivalence-department-chip {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #dfe7f4;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 42, 86, 0.045);
}

.polivalence-department-chip strong,
.polivalence-department-chip span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polivalence-department-chip strong {
  color: #0f2a56;
  font-size: 0.80rem;
  font-weight: 880;
}

.polivalence-department-chip span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 750;
}

.polivalence-chart-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.polivalence-analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.polivalence-chart-panel {
  min-width: 0;
  min-height: 292px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 6%, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff, #f9fbff);
}

.polivalence-chart-panel canvas {
  width: 100% !important;
  height: 205px !important;
}

.polivalence-score-cell {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 70px;
  padding: 8px;
  border: 1px solid #e2e9f5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.polivalence-score-cell.has-gap {
  background:
    linear-gradient(180deg, #fffaf0, #ffffff);
  border-color: #ffe0a8;
}

.polivalence-score-cell.is-ready {
  background:
    linear-gradient(180deg, #f0fff8, #ffffff);
  border-color: #bee9d5;
}

.polivalence-score-cell.is-muted {
  background: #f6f8fb;
  border-style: dashed;
  color: var(--text-muted);
}

.polivalence-score-cell small {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.polivalence-na {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eceff5;
  color: #8a94a6;
  font-weight: 900;
}

.score-bar {
  display: block;
  width: 48px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef8;
}

.score-bar::before {
  content: "";
  display: block;
  width: var(--score-width, 0%);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.polivalence-summary-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dfe7f4;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 850;
}

.polivalence-summary-cell.strong {
  background: var(--primary-soft);
  border-color: #c9d9ff;
  color: var(--primary-dark);
}

.polivalence-risk-list {
  display: grid;
  gap: 10px;
}

.polivalence-risk-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe7f4;
  border-radius: 15px;
  background: #fbfcff;
}

.polivalence-risk-item.is-critical {
  border-color: #ffd0d0;
  background:
    linear-gradient(90deg, var(--danger-soft), #ffffff 62%);
}

.critical-marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 5px var(--warning-soft);
}

.polivalence-risk-item.is-critical .critical-marker {
  background: var(--danger);
  box-shadow: 0 0 0 5px var(--danger-soft);
}

.polivalence-risk-item div {
  min-width: 0;
}

.polivalence-risk-item strong,
.polivalence-risk-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polivalence-risk-item strong {
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 850;
}

.polivalence-risk-item small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 700;
}

.polivalence-risk-item b {
  color: #0f2a56;
  font-size: 0.86rem;
  font-weight: 900;
}

.polivalence-evaluation-form {
  background:
    radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.10), transparent 26%),
    linear-gradient(180deg, #ffffff, #f9fbff);
}

.history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background: #fbfcff;
}

.history-item strong,
.history-item small {
  display: block;
}

.history-item strong {
  font-size: 0.82rem;
  font-weight: 850;
}

.history-item small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.history-item p {
  margin: 6px 0 0;
  color: var(--text-main);
  font-size: 0.78rem;
}

.dashboard-action-board > [class*="col-"],
.dashboard-chart-board > [class*="col-"] {
  min-width: 0;
}

.dashboard-action-board .table-panel {
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
    #ffffff;
}

.dashboard-chart-board .chart-panel {
  min-height: 330px;
  padding: 18px;
  border-radius: 17px;
}

.dashboard-chart-board .chart-panel canvas {
  height: 232px !important;
}

.dashboard-chart-board .chart-title h2 {
  font-size: 0.9rem;
}

.dashboard-chart-board .chart-title p {
  font-size: 0.72rem;
}

/* Premium yönetici deneyimi */
.dashboard-hero-premium {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) auto;
  align-items: stretch;
  min-height: 214px;
  isolation: isolate;
}

.dashboard-hero-premium::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.20), transparent 42%),
    linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.08) 52%, rgba(20, 184, 166, 0.10) 100%);
  pointer-events: none;
}

.dashboard-hero-premium .dashboard-hero-copy,
.dashboard-hero-premium .dashboard-hero-actions,
.dashboard-hero-visual {
  position: relative;
  z-index: 1;
}

.dashboard-hero-visual {
  display: grid;
  min-width: 0;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid rgba(201, 217, 255, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(239, 247, 255, 0.42)),
    #f8fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 44px rgba(15, 42, 86, 0.12);
  transform-style: preserve-3d;
}

.dashboard-hero-visual canvas {
  width: 100%;
  height: 100%;
  min-height: 176px;
  display: block;
}

.scene-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(207, 224, 255, 0.74);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(15, 42, 86, 0.08);
}

.scene-caption strong,
.scene-caption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-caption strong {
  color: #0f2a56;
  font-size: 0.74rem;
  font-weight: 900;
}

.scene-caption span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 760;
}

.dashboard-top-strip {
  perspective: 1200px;
}

.executive-kpi {
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
  animation: premiumCardIn 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc((var(--card-index, 0)) * 28ms);
}

.executive-kpi:nth-child(1) { --card-index: 1; }
.executive-kpi:nth-child(2) { --card-index: 2; }
.executive-kpi:nth-child(3) { --card-index: 3; }
.executive-kpi:nth-child(4) { --card-index: 4; }
.executive-kpi:nth-child(5) { --card-index: 5; }
.executive-kpi:nth-child(6) { --card-index: 6; }
.executive-kpi:nth-child(7) { --card-index: 7; }
.executive-kpi:nth-child(8) { --card-index: 8; }
.executive-kpi:nth-child(9) { --card-index: 9; }
.executive-kpi:nth-child(10) { --card-index: 10; }
.executive-kpi:nth-child(11) { --card-index: 11; }
.executive-kpi:nth-child(12) { --card-index: 12; }
.executive-kpi:nth-child(13) { --card-index: 13; }

.executive-kpi:hover {
  transform: translateY(-3px) rotateX(1.2deg);
  border-color: #c5d8f6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94)),
    #ffffff;
  box-shadow: 0 18px 38px rgba(15, 42, 86, 0.13);
}

.executive-kpi .metric-icon,
.chart-title .metric-icon,
.polivalence-level,
.polivalence-score-cell {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.executive-kpi:hover .metric-icon,
.chart-feature:hover .chart-title .metric-icon {
  transform: translateY(-1px) scale(1.04);
  filter: saturate(1.08);
}

.executive-main-chart,
.executive-performance-panel,
.chart-feature,
.insight-panel,
.polivalence-chart-panel,
.polivalence-matrix-panel,
.polivalence-coverage-panel {
  position: relative;
  overflow: hidden;
}

.executive-main-chart::before,
.executive-performance-panel::before,
.chart-feature::before,
.insight-panel::before,
.polivalence-chart-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--warning));
  opacity: 0.82;
}

.chart-feature {
  transition: transform 210ms ease, box-shadow 210ms ease, border-color 210ms ease;
}

.chart-feature:hover {
  transform: translateY(-3px);
  border-color: #c9dbf6;
  box-shadow: 0 20px 44px rgba(15, 42, 86, 0.12);
}

.chart-feature canvas,
.executive-main-chart canvas,
.polivalence-chart-panel canvas {
  filter: drop-shadow(0 12px 16px rgba(15, 42, 86, 0.06)) saturate(1.04);
}

.performance-row {
  transition: transform 180ms ease, color 180ms ease;
}

.performance-row:hover {
  transform: translateX(3px);
}

.performance-row i {
  overflow: hidden;
}

.performance-row i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-140%);
  animation: barGlint 2600ms ease-in-out infinite;
}

.stack-list-item {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stack-list-item:hover {
  transform: translateX(3px);
  border-color: #c9dbf6;
  box-shadow: 0 10px 24px rgba(15, 42, 86, 0.08);
}

.polivalence-score-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 42, 86, 0.10);
}

.polivalence-table-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(15, 42, 86, 0.08);
}

.polivalence-department-chip {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.polivalence-department-chip:hover {
  transform: translateY(-2px);
  border-color: #c9dbf6;
  box-shadow: 0 14px 28px rgba(15, 42, 86, 0.08);
}

@keyframes premiumCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) rotateX(3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes barGlint {
  0%, 38% { transform: translateX(-140%); }
  68%, 100% { transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
  .executive-kpi,
  .performance-row i::after {
    animation: none !important;
  }

  .executive-kpi,
  .chart-feature,
  .stack-list-item,
  .polivalence-score-cell,
  .polivalence-department-chip {
    transition: none !important;
  }
}

@media (max-width: 1199.98px) {
  .dashboard-hero-premium {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-visual {
    order: 2;
  }

  .dashboard-hero-actions {
    order: 3;
    justify-content: flex-start;
  }

  .executive-kpi-strip {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  }

  .executive-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .polivalence-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .polivalence-workspace {
    grid-template-columns: 1fr;
  }

  .polivalence-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .polivalence-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 104px;
  }

  .admin-wordmark {
    width: 84px;
    min-width: 84px;
    height: 38px;
    padding: 0 8px;
    font-size: 0.80rem;
  }

  .brand-wordmark-header {
    min-width: 104px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .brand-wordmark-dashboard {
    min-width: 132px;
    height: 52px;
    padding: 0 14px;
    font-size: 1.08rem;
  }

  .brand-wordmark-hero {
    min-width: 178px;
    height: 70px;
    padding: 0 20px;
    font-size: 1.42rem;
  }

  .brand-wordmark-hero .brand-wordmark-symbol {
    width: 32px;
    height: 32px;
  }

  .dashboard-logo {
    width: 132px;
  }

  .executive-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }

  .executive-kpi {
    padding: 12px;
  }

  .executive-main-chart {
    min-height: 340px;
    padding: 15px;
  }

  .executive-main-chart canvas {
    height: 238px !important;
  }

  .executive-panel-title {
    display: grid;
  }

  .polivalence-hero {
    align-items: stretch;
    padding: 18px;
  }

  .polivalence-kpi-grid {
    grid-template-columns: 1fr;
  }

  .polivalence-legend {
    justify-content: flex-start;
  }

  .polivalence-chart-grid {
    grid-template-columns: 1fr;
  }

  .polivalence-chart-panel {
    min-height: 270px;
  }

  .polivalence-chart-panel canvas {
    height: 184px !important;
  }

  .polivalence-table th:first-child,
  .polivalence-table td:first-child {
    min-width: 178px;
  }

  .polivalence-table,
  .polivalence-table thead,
  .polivalence-table tbody {
    display: table;
  }

  .polivalence-table tr {
    display: table-row;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .polivalence-table th,
  .polivalence-table td,
  .polivalence-table tbody td,
  .polivalence-table tbody td:first-child,
  .polivalence-table tbody td:last-child {
    display: table-cell;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f7;
  }

  .polivalence-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .polivalence-table td::before {
    content: none;
  }
}

/* Premium dashboard kompozisyonu */
.dashboard-container {
  max-width: 1320px;
}

.dashboard-page {
  padding-top: 18px;
}

.dashboard-command-center {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(191, 211, 244, 0.82);
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 30%, rgba(56, 189, 248, 0.40), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(34, 160, 107, 0.20), transparent 24%),
    linear-gradient(135deg, #f9fcff 0%, #eaf4ff 48%, #dff3ff 100%);
  box-shadow:
    0 24px 58px rgba(15, 42, 86, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  isolation: isolate;
}

.dashboard-command-center::before,
.dashboard-command-center::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.dashboard-command-center::before {
  inset: -18% -10% auto auto;
  width: 520px;
  height: 360px;
  border-radius: 48%;
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.20), transparent 62%),
    radial-gradient(circle at 68% 42%, rgba(20, 184, 166, 0.18), transparent 50%);
  filter: blur(4px);
  animation: commandGlow 8s ease-in-out infinite alternate;
}

.dashboard-command-center::after {
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.70), transparent 38%),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.035) 0 1px, transparent 1px 78px);
  opacity: 0.74;
  mask-image: linear-gradient(90deg, #000 0%, #000 52%, transparent 100%);
}

.dashboard-command-center > * {
  position: relative;
  z-index: 1;
}

.dashboard-command-center .dashboard-hero {
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 20px;
  min-height: 286px;
  padding: 14px 14px 16px 18px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.dashboard-command-center .dashboard-hero::before,
.dashboard-command-center .dashboard-hero-premium::after {
  display: none;
}

.dashboard-command-center .dashboard-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 540px;
}

.dashboard-command-center .brand-wordmark-dashboard {
  width: max-content;
  height: 52px;
  min-width: 136px;
  margin-bottom: 14px;
  padding: 0 16px;
  border-color: rgba(255, 210, 210, 0.92);
  box-shadow: 0 18px 40px rgba(227, 6, 19, 0.10), 0 14px 28px rgba(15, 42, 86, 0.08);
}

.dashboard-command-center .dashboard-hero h1 {
  max-width: 520px;
  color: #0b2a55;
  font-size: clamp(1.42rem, 2.15vw, 2.08rem);
  letter-spacing: 0;
}

.dashboard-command-center .dashboard-context {
  width: max-content;
  max-width: 100%;
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.dashboard-command-center .dashboard-hero-copy p:last-child {
  max-width: 490px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.dashboard-command-center .dashboard-hero-actions {
  justify-content: flex-start;
  align-self: auto;
  margin-top: 18px;
}

.dashboard-command-center .dashboard-hero-actions .btn {
  min-height: 38px;
  padding: 0.42rem 0.72rem;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(15, 42, 86, 0.06);
}

.dashboard-hero-visual-ambient {
  min-height: 276px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 52% 46%, rgba(255, 255, 255, 0.18), transparent 23%),
    radial-gradient(circle at 62% 52%, rgba(56, 189, 248, 0.28), transparent 39%),
    linear-gradient(135deg, rgba(11, 42, 85, 0.02), rgba(37, 99, 235, 0.08));
  box-shadow: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
}

.dashboard-hero-visual-ambient::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 54% 46%, rgba(255, 255, 255, 0.20), transparent 18%),
    radial-gradient(circle at 50% 55%, rgba(37, 99, 235, 0.24), transparent 42%);
  filter: blur(8px);
  opacity: 0.95;
}

.dashboard-hero-visual-ambient::after {
  content: "";
  position: absolute;
  inset: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  opacity: 0.30;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, transparent 100%);
}

.dashboard-hero-visual-ambient canvas {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 30px rgba(15, 42, 86, 0.18)) saturate(1.12);
}

.dashboard-hero-visual-ambient .scene-caption {
  left: auto;
  right: 22px;
  bottom: 18px;
  width: min(330px, calc(100% - 44px));
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(10, 42, 88, 0.62);
  box-shadow: 0 18px 36px rgba(15, 42, 86, 0.18);
}

.dashboard-hero-visual-ambient .scene-caption strong,
.dashboard-hero-visual-ambient .scene-caption span {
  flex: 0 1 auto;
}

.dashboard-hero-visual-ambient .scene-caption strong {
  color: #ffffff;
}

.dashboard-hero-visual-ambient .scene-caption span {
  color: rgba(237, 247, 255, 0.82);
}

.dashboard-command-center .executive-kpi-strip {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin-top: 8px;
  padding: 10px;
  border-color: rgba(201, 219, 246, 0.76);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 32px rgba(15, 42, 86, 0.07);
  backdrop-filter: blur(14px);
}

.dashboard-command-center .executive-kpi {
  min-height: 68px;
  padding: 10px 11px 10px 12px;
  border-color: rgba(217, 229, 246, 0.90);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.76)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(15, 42, 86, 0.06);
}

.dashboard-command-center .executive-kpi::before {
  top: 12px;
  bottom: 12px;
  width: 3px;
}

.dashboard-command-center .executive-kpi .metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.dashboard-command-center .executive-kpi span,
.dashboard-command-center .executive-kpi em {
  font-size: 0.64rem;
  line-height: 1.2;
}

.dashboard-command-center .executive-kpi strong {
  font-size: 1.08rem;
}

.dashboard-page .filter-panel,
.dashboard-page .table-panel {
  border-color: rgba(214, 228, 247, 0.92);
  border-radius: 20px;
}

.dashboard-page .filter-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)),
    #ffffff;
}

.dashboard-action-board {
  align-items: stretch;
}

.dashboard-action-board .table-panel {
  min-height: 100%;
}

.dashboard-action-board .panel-heading h2,
.dashboard-chart-board .chart-title h2 {
  font-size: 0.88rem;
}

.dashboard-action-board .panel-heading p,
.dashboard-chart-board .chart-title p {
  font-size: 0.72rem;
}

.executive-main-chart,
.executive-performance-panel,
.chart-feature,
.insight-panel {
  border-radius: 22px;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.executive-main-chart:hover,
.executive-performance-panel:hover,
.chart-feature:hover,
.insight-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 209, 244, 0.96);
  box-shadow: 0 24px 52px rgba(15, 42, 86, 0.12);
}

.executive-main-chart {
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 16% 100%, rgba(20, 184, 166, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96));
}

.executive-performance-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 149, 24, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96));
}

.chart-feature {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96));
}

.chart-feature.chart-danger {
  background:
    radial-gradient(circle at 100% 0%, rgba(220, 90, 90, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 249, 249, 0.96));
}

.empty-chart {
  display: none;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgba(174, 194, 226, 0.76);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.07), transparent 34%),
    linear-gradient(180deg, #fbfdff, #f4f8ff);
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  font-weight: 780;
}

.chart-panel canvas[style*="display: none"] + .empty-chart,
.executive-main-chart canvas[style*="display: none"] + .empty-chart {
  display: grid !important;
}

.admin-sidebar {
  background:
    radial-gradient(circle at 24% 0%, rgba(56, 189, 248, 0.16), transparent 24%),
    linear-gradient(180deg, #0f2a56 0%, #173f7b 48%, #143466 100%);
  box-shadow: 16px 0 44px rgba(13, 34, 70, 0.14);
}

.admin-topbar {
  min-height: 62px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
}

.admin-nav a {
  min-height: 40px;
}

.nav-icon,
.metric-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.table-panel,
.form-card,
.login-panel,
.portal-card,
.status-panel {
  transition:
    transform 190ms ease,
    box-shadow 190ms ease,
    border-color 190ms ease;
}

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

@keyframes commandGlow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.78; }
  to { transform: translate3d(-18px, 12px, 0) scale(1.04); opacity: 1; }
}

@media (min-width: 1200px) {
  .dashboard-action-board > .col-xl-4 {
    width: 25%;
    flex: 0 0 auto;
  }
}

@media (max-width: 1199.98px) {
  .dashboard-command-center .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-visual-ambient {
    min-height: 260px;
    mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
  }
}

@media (max-width: 767.98px) {
  .dashboard-page {
    padding-top: 12px;
  }

  .dashboard-command-center {
    padding: 12px;
    border-radius: 22px;
  }

  .dashboard-command-center .dashboard-hero {
    min-height: 0;
    padding: 10px;
  }

  .dashboard-command-center .dashboard-hero h1 {
    font-size: 1.52rem;
  }

  .dashboard-command-center .dashboard-hero-actions .btn {
    flex: 1 1 130px;
  }

  .dashboard-hero-visual-ambient {
    min-height: 212px;
    border-radius: 20px;
  }

  .dashboard-hero-visual-ambient .scene-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .dashboard-command-center .executive-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .dashboard-command-center .executive-kpi {
    min-height: 72px;
  }
}

/* Polivalans yönetici raporu ve Excel içe aktarım */
.polivalence-import-result {
  display: grid;
  gap: 4px;
  border-radius: 18px;
  border-width: 1px;
  box-shadow: var(--shadow-sm);
}

.polivalence-import-result strong {
  font-weight: 900;
}

.polivalence-import-result span,
.polivalence-import-result small {
  color: inherit;
  font-weight: 700;
}

.polivalence-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr) minmax(260px, 0.75fr);
  gap: 14px;
}

.polivalence-guide-card {
  min-height: 100%;
  border-radius: 20px;
}

.polivalence-report-list,
.polivalence-scale-list {
  display: grid;
  gap: 10px;
}

.polivalence-report-item,
.polivalence-scale-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e1e9f5;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(20, 184, 166, 0.04)),
    #ffffff;
  color: var(--text-main);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.polivalence-scale-list div {
  grid-template-columns: 36px minmax(0, 1fr);
}

.polivalence-report-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 14px 30px rgba(15, 42, 86, 0.10);
}

.polivalence-report-item strong,
.polivalence-scale-list strong {
  display: block;
  overflow: hidden;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polivalence-report-item small {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polivalence-report-item b {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.polivalence-import-form .form-control {
  min-height: 46px;
  font-size: 0.82rem;
}

.polivalence-chart-grid-simple {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.polivalence-page .polivalence-chart-panel {
  min-height: 300px;
}

.polivalence-page .polivalence-chart-panel canvas {
  min-height: 210px;
}

.polivalence-risk-item {
  color: var(--text-main);
  text-decoration: none;
}

.polivalence-print-summary {
  display: none;
}

@media (max-width: 1399.98px) {
  .polivalence-chart-grid-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .polivalence-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .polivalence-chart-grid-simple {
    grid-template-columns: 1fr;
  }

  .polivalence-report-item,
  .polivalence-scale-list div {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .polivalence-report-item b {
    grid-column: 2;
  }

  .polivalence-page .polivalence-chart-panel {
    min-height: 280px;
  }
}

@media print {
  body {
    background: #ffffff !important;
  }

  .admin-shell,
  .admin-main,
  .admin-content,
  .admin-page-section,
  .polivalence-page,
  .polivalence-page .container-fluid {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .admin-sidebar,
  .admin-topbar,
  .polivalence-command,
  .polivalence-kpi-grid,
  .polivalence-overview-grid,
  .polivalence-chart-grid,
  .polivalence-analysis-grid,
  .polivalence-filter,
  .polivalence-workspace,
  .no-print {
    display: none !important;
  }

  .polivalence-print-summary {
    display: block !important;
    padding: 18mm 14mm;
    color: #111827;
    font-family: Arial, sans-serif;
  }

  .polivalence-print-summary h1 {
    margin: 0 0 6mm;
    font-size: 20pt;
    font-weight: 800;
  }

  .polivalence-print-summary h2 {
    margin: 8mm 0 4mm;
    font-size: 13pt;
    font-weight: 800;
  }

  .polivalence-print-summary p {
    margin: 0 0 6mm;
    color: #4b5563;
  }

  .print-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4mm;
    margin-bottom: 8mm;
  }

  .print-kpi-row span {
    padding: 4mm;
    border: 1px solid #111827;
    border-radius: 3mm;
    font-size: 10pt;
  }

  .polivalence-print-summary table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
  }

  .polivalence-print-summary th,
  .polivalence-print-summary td {
    padding: 3mm;
    border: 1px solid #111827;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .dashboard-command-center .executive-kpi-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-command-center::before {
    animation: none !important;
  }
}

/* Yönetici dashboard - yüksek kontrast premium sahne */
.dashboard-neo {
  padding: 18px;
  border-color: rgba(125, 178, 255, 0.26);
  background:
    radial-gradient(circle at 78% 24%, rgba(56, 189, 248, 0.44), transparent 28%),
    radial-gradient(circle at 52% 84%, rgba(20, 184, 166, 0.20), transparent 24%),
    linear-gradient(135deg, #07162e 0%, #0c2b59 42%, #0e4b86 100%);
  color: #ffffff;
  box-shadow:
    0 34px 78px rgba(10, 33, 72, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.dashboard-neo::before {
  inset: -28% -16% auto auto;
  width: 680px;
  height: 520px;
  background:
    radial-gradient(circle at 48% 46%, rgba(125, 211, 252, 0.34), transparent 54%),
    radial-gradient(circle at 66% 40%, rgba(37, 99, 235, 0.30), transparent 52%);
  filter: blur(12px);
  mix-blend-mode: screen;
}

.dashboard-neo::after {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.040) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 74px);
  opacity: 0.78;
  mask-image: linear-gradient(90deg, #000 0%, #000 64%, transparent 100%);
}

.dashboard-neo .dashboard-hero {
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1.28fr);
  min-height: 390px;
  padding: 20px 20px 18px 22px;
}

.dashboard-neo .dashboard-hero-copy {
  max-width: 560px;
}

.dashboard-neo .brand-wordmark-dashboard {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 248, 0.88));
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.20),
    0 0 0 1px rgba(255, 255, 255, 0.22);
}

.dashboard-neo .eyebrow {
  color: #8fd5ff !important;
}

.dashboard-neo .dashboard-hero h1 {
  color: #ffffff;
  font-size: clamp(1.72rem, 2.55vw, 2.58rem);
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.dashboard-neo .dashboard-context {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #dff3ff;
  backdrop-filter: blur(12px);
}

.dashboard-neo .dashboard-hero-copy p:last-child {
  max-width: 520px;
  color: rgba(236, 246, 255, 0.82);
  font-size: 0.92rem;
}

.dashboard-pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.dashboard-pulse-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.075));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.dashboard-pulse-card::before {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #38bdf8, #14b8a6);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.dashboard-pulse-card.warning::before {
  background: linear-gradient(90deg, #f59e0b, #fde68a);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.38);
}

.dashboard-pulse-card.danger::before {
  background: linear-gradient(90deg, #ef4444, #fb7185);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.38);
}

.dashboard-pulse-card b,
.dashboard-pulse-card small {
  display: block;
  min-width: 0;
}

.dashboard-pulse-card b {
  color: #ffffff;
  font-size: 1.36rem;
  font-weight: 940;
  line-height: 1;
}

.dashboard-pulse-card small {
  margin-top: 6px;
  color: rgba(234, 246, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.25;
}

.dashboard-neo .dashboard-hero-actions {
  margin-top: 20px;
}

.dashboard-neo .dashboard-hero-actions .btn {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.13);
}

.dashboard-neo .dashboard-hero-actions .btn:hover,
.dashboard-neo .dashboard-hero-actions .btn:focus {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.dashboard-neo .dashboard-hero-visual-ambient {
  min-height: 368px;
  margin: -10px -8px -6px 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 58% 52%, rgba(255, 255, 255, 0.22), transparent 22%),
    radial-gradient(circle at 58% 52%, rgba(56, 189, 248, 0.34), transparent 42%),
    radial-gradient(circle at 82% 22%, rgba(20, 184, 166, 0.20), transparent 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 94%, transparent 100%);
}

.dashboard-neo .dashboard-hero-visual-ambient::before {
  inset: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 56% 48%, rgba(255, 255, 255, 0.20), transparent 18%),
    radial-gradient(circle at 54% 54%, rgba(125, 211, 252, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%);
  filter: blur(10px);
}

.dashboard-neo .dashboard-hero-visual-ambient::after {
  inset: 28px 30px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.52;
}

.dashboard-neo .dashboard-hero-visual-ambient canvas {
  filter:
    drop-shadow(0 38px 42px rgba(0, 0, 0, 0.26))
    drop-shadow(0 0 30px rgba(56, 189, 248, 0.14))
    saturate(1.18);
}

.dashboard-neo .scene-caption {
  right: 34px;
  bottom: 26px;
  width: min(360px, calc(100% - 68px));
  padding: 10px 12px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 31, 68, 0.74), rgba(8, 31, 68, 0.56));
}

.dashboard-neo .executive-kpi-strip {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  margin-top: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 18px 46px rgba(0, 0, 0, 0.14);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dashboard-neo .executive-kpi-strip::-webkit-scrollbar {
  display: none;
}

.dashboard-neo .executive-kpi {
  flex: 0 0 150px;
  min-height: 74px;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.155), rgba(255, 255, 255, 0.075));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 30px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(16px);
}

.dashboard-neo .executive-kpi:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.10));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 22px 42px rgba(0, 0, 0, 0.18);
}

.dashboard-neo .executive-kpi span,
.dashboard-neo .executive-kpi em {
  color: rgba(232, 244, 255, 0.72);
}

.dashboard-neo .executive-kpi strong {
  color: #ffffff;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.20);
}

.dashboard-neo .executive-kpi .metric-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #dff3ff;
}

.dashboard-neo .executive-kpi.metric-danger .metric-icon {
  background: rgba(255, 240, 240, 0.14);
  color: #fecaca;
}

.dashboard-neo .executive-kpi.metric-warning .metric-icon {
  background: rgba(255, 245, 223, 0.14);
  color: #fde68a;
}

.dashboard-neo .executive-kpi.metric-success .metric-icon,
.dashboard-neo .executive-kpi.metric-teal .metric-icon {
  background: rgba(230, 250, 247, 0.14);
  color: #99f6e4;
}

.dashboard-page .executive-main-chart {
  min-height: 440px;
}

.dashboard-page .executive-main-chart canvas {
  height: 330px !important;
}

.dashboard-page .executive-dashboard-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.88fr);
}

.dashboard-page .chart-feature {
  min-height: 346px;
}

.dashboard-page .chart-feature canvas {
  height: 222px !important;
}

.dashboard-page .table-panel {
  box-shadow:
    0 18px 44px rgba(15, 42, 86, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@media (max-width: 1199.98px) {
  .dashboard-neo .dashboard-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dashboard-neo .dashboard-hero-visual-ambient {
    min-height: 252px;
    margin: 2px 0 0;
  }

  .dashboard-page .executive-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .dashboard-neo {
    padding: 12px;
    border-radius: 24px;
  }

  .dashboard-neo .dashboard-hero {
    gap: 12px;
    padding: 10px;
  }

  .dashboard-neo .dashboard-hero h1 {
    font-size: 1.52rem;
  }

  .dashboard-pulse-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
  }

  .dashboard-pulse-card {
    padding: 10px 9px;
    border-radius: 14px;
  }

  .dashboard-pulse-card b {
    font-size: 1.04rem;
  }

  .dashboard-pulse-card small {
    font-size: 0.58rem;
  }

  .dashboard-neo .dashboard-hero-visual-ambient {
    min-height: 190px;
  }

  .dashboard-neo .executive-kpi-strip {
    display: flex;
  }

  .dashboard-neo .executive-kpi {
    flex-basis: 156px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .dashboard-neo .dashboard-hero {
    grid-template-columns: minmax(270px, 0.72fr) minmax(330px, 1.28fr);
    min-height: 332px;
  }

  .dashboard-neo .dashboard-hero-visual-ambient {
    min-height: 312px;
  }

  .dashboard-neo .dashboard-hero h1 {
    font-size: clamp(1.58rem, 3vw, 2.12rem);
  }

  .dashboard-pulse-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Dashboard son polish: logo, KPI okunabilirliği ve daha premium ışık hissi */
@keyframes dashboardAuraDrift {
  0%, 100% {
    background-position: 0% 50%, 100% 20%, 0 0;
  }

  50% {
    background-position: 100% 42%, 18% 72%, 0 0;
  }
}

.dashboard-neo {
  isolation: isolate;
  background-size: 160% 160%, 150% 150%, 100% 100%;
  animation: dashboardAuraDrift 16s ease-in-out infinite;
}

.dashboard-neo .dashboard-hero {
  margin-bottom: 12px;
}

.dashboard-neo .brand-logo-frame-dashboard {
  transform: translateZ(0);
}

.dashboard-neo .executive-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 9px;
  overflow: visible;
  padding: 11px;
}

.dashboard-neo .executive-kpi {
  flex: none;
  min-width: 0;
  min-height: 80px;
  padding: 10px 11px 10px 13px;
  gap: 8px;
  align-items: center;
  border-radius: 17px;
}

.dashboard-neo .executive-kpi::before {
  top: 13px;
  bottom: 13px;
  width: 3px;
}

.dashboard-neo .executive-kpi .metric-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 12px;
}

.dashboard-neo .executive-kpi div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dashboard-neo .executive-kpi span,
.dashboard-neo .executive-kpi em {
  overflow: visible;
  color: rgba(237, 247, 255, 0.82);
  font-size: 0.59rem;
  line-height: 1.12;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: normal;
}

.dashboard-neo .executive-kpi strong {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1;
}

.dashboard-neo .dashboard-hero-actions .btn {
  font-weight: 850;
}

@media (max-width: 767.98px) {
  .brand-logo-frame-header {
    width: 112px;
    height: 38px;
    padding: 5px 8px;
  }

  .brand-logo-frame-hero {
    width: min(206px, 70vw);
    height: 92px;
    padding: 11px 14px;
  }

  .brand-logo-frame-dashboard {
    width: 138px;
    height: 62px;
    padding: 8px 11px;
  }

  .dashboard-neo .executive-kpi-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 10px;
  }

  .dashboard-neo .executive-kpi {
    min-height: 84px;
    padding: 11px 10px 11px 12px;
  }

  .dashboard-neo .executive-kpi .metric-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .dashboard-neo .executive-kpi span,
  .dashboard-neo .executive-kpi em {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-neo {
    animation: none;
  }
}

/* Polivalans sade ve anlaşılır kullanım */
.polivalence-page .container-fluid {
  max-width: 1500px;
}

.polivalence-command {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #d8e6f7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.24), transparent 30%),
    radial-gradient(circle at 58% 86%, rgba(20, 184, 166, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f5faff 100%);
  box-shadow:
    0 18px 46px rgba(15, 42, 86, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.polivalence-command-copy h1 {
  margin: 0 0 8px;
  color: #0f2a56;
  font-size: clamp(1.58rem, 2.2vw, 2.28rem);
  font-weight: 950;
  letter-spacing: 0;
}

.polivalence-command-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.polivalence-flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.polivalence-flow-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d8e6f7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #365276;
  font-size: 0.74rem;
  font-weight: 820;
}

.polivalence-flow-row b {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
}

.polivalence-action-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 15px;
  border: 1px solid #dfe7f4;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.86)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 42, 86, 0.07);
}

.polivalence-action-summary.tone-danger {
  border-color: #ffc7c7;
  background: linear-gradient(180deg, #fff7f7, #ffffff);
}

.polivalence-action-summary.tone-warning {
  border-color: #ffe0a8;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.polivalence-action-summary.tone-success {
  border-color: #bee9d5;
  background: linear-gradient(180deg, #f0fff8, #ffffff);
}

.polivalence-action-summary.tone-info {
  border-color: #b9e7ff;
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
}

.polivalence-action-summary strong,
.polivalence-action-summary p {
  display: block;
  min-width: 0;
}

.polivalence-action-summary strong {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 920;
}

.polivalence-action-summary p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.42;
}

.polivalence-command-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 142px;
}

.polivalence-command-actions .btn {
  justify-content: center;
  font-weight: 850;
}

.polivalence-kpi-simple {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.polivalence-kpi-simple .metric-box {
  min-height: 82px;
  padding: 14px;
  border-radius: 18px;
}

.polivalence-filter {
  padding: 16px;
}

.polivalence-filter-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6edf7;
}

.polivalence-filter-hint strong {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.polivalence-filter-hint span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.polivalence-chart-grid-simple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.polivalence-analysis-simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.polivalence-analysis-simple .table-panel,
.polivalence-chart-grid-simple .table-panel {
  border-radius: 18px;
}

.polivalence-workspace-simple {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.polivalence-matrix-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.polivalence-matrix-toolbar h2 {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 900;
}

.polivalence-matrix-toolbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

button.polivalence-score-cell,
button.polivalence-risk-item {
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

button.polivalence-score-cell {
  width: 100%;
}

.polivalence-score-cell {
  min-width: 62px;
  border-radius: 13px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.polivalence-score-cell.is-selected {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    0 14px 28px rgba(15, 42, 86, 0.10);
}

button.polivalence-risk-item {
  width: 100%;
}

.polivalence-risk-item {
  border-radius: 14px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

button.polivalence-risk-item:hover,
button.polivalence-risk-item:focus-visible {
  transform: translateY(-1px);
  border-color: #c9dbf6;
  box-shadow: 0 12px 24px rgba(15, 42, 86, 0.10);
  outline: none;
}

.polivalence-evaluation-card {
  padding: 18px;
  border-radius: 20px;
}

.polivalence-level-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.level-choice {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  min-height: 74px;
  padding: 9px 6px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background: #fbfcff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.level-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.level-choice span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #eef4ff;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 920;
}

.level-choice small {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 780;
  line-height: 1.15;
  text-align: center;
}

.level-choice:hover,
.level-choice.is-selected {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 42, 86, 0.09);
}

.level-choice.level-0 span { background: #f2f4f7; color: #667085; }
.level-choice.level-1 span { background: #fff5df; color: #b86b05; }
.level-choice.level-2 span { background: #e8f7ff; color: #0877a8; }
.level-choice.level-3 span { background: #e9f8f1; color: #168257; }
.level-choice.level-4 span { background: #eaf1ff; color: #1d4ed8; }

@media (max-width: 1199.98px) {
  .polivalence-command,
  .polivalence-workspace-simple {
    grid-template-columns: 1fr;
  }

  .polivalence-command-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .polivalence-command-actions .btn {
    min-width: 130px;
  }

  .polivalence-chart-grid-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .polivalence-command {
    padding: 14px;
    border-radius: 20px;
  }

  .polivalence-flow-row span {
    flex: 1 1 100%;
  }

  .polivalence-kpi-simple,
  .polivalence-chart-grid-simple,
  .polivalence-analysis-simple {
    grid-template-columns: 1fr;
  }

  .polivalence-matrix-toolbar {
    display: grid;
  }

  .polivalence-matrix-navigation > div:first-child span {
    display: none;
  }

  .polivalence-legend {
    justify-content: flex-start;
  }

  .polivalence-level-picker {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .level-choice {
    min-width: 64px;
  }
}

/* Training center components intentionally override the shared card defaults. */
.learning-entry-shell .learning-identity-card,
.learning-viewer-page .learning-viewer-shell,
.training-complete-shell .training-complete-card {
  border: 0;
  border-radius: 18px;
}

.learning-entry-shell .learning-identity-card {
  box-shadow: none;
}

.training-report-kpi strong,
.training-course-card h2,
.training-participant-card strong {
  overflow-wrap: anywhere;
}

.portal-learning-band,
.portal-feedback-band {
  padding: 1rem 0 3rem;
}

.portal-feedback-band {
  padding-top: 0;
}

.portal-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-section-heading h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.portal-section-heading p {
  margin: .25rem 0 0;
  color: var(--text-muted);
}

.portal-section-heading > span {
  flex: 0 0 auto;
  padding: .42rem .75rem;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eaf1ff;
  font-size: .76rem;
  font-weight: 800;
}

.portal-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.portal-learning-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 28px;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #dce6f5;
  border-radius: 16px;
  color: var(--text-main);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.portal-learning-card:hover {
  transform: translateY(-2px);
  border-color: #93b4ef;
  box-shadow: 0 14px 28px rgba(24, 60, 120, .1);
}

.portal-learning-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
  box-shadow: 0 8px 18px rgba(37,99,235,.2);
}

.portal-learning-card.is-feedback .portal-learning-icon {
  background: linear-gradient(145deg, #14b8a6, #22a06b);
}

.portal-learning-card span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: .15rem;
}

.portal-learning-card small,
.portal-learning-card em {
  color: var(--text-muted);
  font-size: .72rem;
  font-style: normal;
}

.portal-learning-card strong {
  overflow-wrap: anywhere;
  font-size: .95rem;
}

.portal-learning-card > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #2563eb;
  background: #eef5ff;
}

.training-question-editor {
  padding: 1.1rem;
  border: 1px solid #dce6f5;
  border-radius: 18px;
  background: #f8fbff;
}

.training-question-editor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.training-question-editor-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.training-question-editor-heading p {
  margin: .25rem 0 0;
  color: var(--text-muted);
  font-size: .82rem;
}

.training-question-import {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(420px, 1.35fr);
  align-items: center;
  gap: .8rem 1rem;
  padding: .9rem;
  border: 1px solid #cfe0f8;
  border-radius: 15px;
  background: linear-gradient(135deg, #eef6ff 0%, #f7fbff 56%, #edfdf9 100%);
}

.training-question-import > div:first-child {
  display: grid;
  gap: .2rem;
}

.training-question-import strong {
  color: #12346b;
  font-size: .82rem;
}

.training-question-import span {
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.training-question-import-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: .55rem;
  min-width: 0;
}

.training-question-import-actions .form-control,
.training-question-import-actions .btn {
  min-height: 42px;
  font-size: .75rem;
}

.training-question-import-status {
  grid-column: 1 / -1;
  min-height: 1rem;
  margin: 0;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
}

.training-question-import-status.is-success { color: var(--success); }
.training-question-import-status.is-error { color: var(--danger); }

.training-question-editor-card {
  position: relative;
  margin-top: .8rem;
  padding: 1rem;
  border: 1px solid #e1e8f3;
  border-radius: 15px;
  background: #fff;
}

.training-question-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}

.training-question-number > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #fff;
  background: #2563eb;
  font-size: .78rem;
  font-weight: 900;
}

.training-quiz-page {
  background: var(--app-bg);
}

.training-quiz-shell {
  max-width: 920px;
  margin: 0 auto;
}

.training-quiz-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(125deg, #17366d, #2563eb 72%, #0ea5e9);
  box-shadow: 0 16px 32px rgba(20,55,110,.16);
}

.training-quiz-hero .card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255,255,255,.16);
  font-weight: 900;
}

.training-quiz-hero h1 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.training-quiz-hero p:last-child {
  margin: .3rem 0 0;
  color: #dbeafe;
  font-size: .8rem;
}

.training-quiz-question {
  margin-bottom: .8rem;
  padding: 1rem;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.training-quiz-question legend {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .8rem;
  color: var(--text-main);
  font-size: .94rem;
  font-weight: 800;
}

.training-quiz-question legend span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #1d4ed8;
  background: #eaf1ff;
  font-size: .72rem;
}

.training-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.training-quiz-options input {
  position: absolute;
  opacity: 0;
}

.training-quiz-options label > span {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .65rem .75rem;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #fbfcff;
  cursor: pointer;
}

.training-quiz-options b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eaf1ff;
}

.training-quiz-options input:checked + span {
  border-color: #2563eb;
  background: #eef5ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.training-quiz-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  background: #fff;
}

.training-quiz-submit > div {
  display: grid;
}

.training-quiz-submit span {
  color: var(--text-muted);
  font-size: .72rem;
}

.training-result-summary {
  display: grid;
  gap: .15rem;
  width: min(100%, 360px);
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 15px;
  color: #136443;
  background: var(--success-soft);
}

.training-result-summary.is-review {
  color: #9a5805;
  background: var(--warning-soft);
}

.training-result-summary strong {
  font-size: 1.65rem;
}

.quiz-score {
  display: inline-flex;
  padding: .25rem .5rem;
  border-radius: 9px;
  color: #168257;
  background: var(--success-soft);
}

.quiz-score.is-failed {
  color: #b42318;
  background: var(--danger-soft);
}

.quiz-answer-details summary {
  margin-top: .4rem;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.quiz-answer-details > div {
  display: grid;
  gap: .45rem;
  min-width: 300px;
  margin-top: .5rem;
}

.quiz-answer-details article {
  display: grid;
  gap: .2rem;
  padding: .6rem;
  border-left: 3px solid var(--success);
  border-radius: 8px;
  background: var(--success-soft);
  white-space: normal;
}

.quiz-answer-details article.is-wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.quiz-answer-details article strong,
.quiz-answer-details article span,
.quiz-answer-details article small {
  font-size: .68rem;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .portal-learning-grid,
  .training-quiz-options {
    grid-template-columns: 1fr;
  }

  .portal-section-heading,
  .training-question-editor-heading,
  .training-quiz-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-learning-card {
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    padding: .85rem;
  }

  .portal-learning-icon {
    width: 44px;
    height: 44px;
  }

  .training-quiz-hero {
    align-items: flex-start;
  }

  .training-quiz-submit .btn {
    width: 100%;
  }

  .quiz-answer-details > div {
    min-width: 0;
  }

  .training-question-import,
  .training-question-import-actions {
    grid-template-columns: 1fr;
  }

  .training-question-import-actions .btn {
    width: 100%;
  }
}

/* Public mobile polish: keep the header and long survey labels inside the viewport. */
@media (max-width: 575.98px) {
  .public-topbar .container {
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .public-topbar .brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
  }

  .public-topbar .brand-lockup > span:last-child {
    display: none;
  }

  .brand-logo-frame-header {
    width: 108px;
    height: 38px;
    padding: 4px 7px;
  }

  .public-topbar .btn {
    flex: 0 0 auto;
    min-width: 0;
    padding-inline: 10px;
    font-size: .78rem;
  }

  .brand-logo-frame-hero {
    width: min(210px, 70vw);
    height: 92px;
  }

  .portal-hero h1,
  .hero-copy,
  .portal-card,
  .portal-learning-card,
  .survey-rev04-intro,
  .survey-department-options span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .survey-rev04-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .anonymous-badge {
    align-self: flex-start;
    white-space: normal;
  }
}

/* 2026 kurumsal arayuz sistemi: tum sayfalar icin tek nihai tasarim katmani. */
html { background: var(--app-bg); }

body {
  color: var(--text-main);
  background: var(--app-bg);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: appPageIn 220ms ease-out both;
}

body.public-body,
body.admin-body,
body.login-body {
  background-color: var(--app-bg);
}

@keyframes appPageIn {
  from { opacity: 0.82; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

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

::selection { color: #fff; background: var(--primary); }

a,
button,
input,
select,
textarea { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(100% - 32px, 1180px);
  max-width: 1180px;
}

.admin-page-section > .container,
.dashboard-container {
  width: 100%;
  max-width: 1440px;
}

.eyebrow,
.section-kicker {
  color: var(--primary-dark) !important;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0 !important;
}

h1, h2, h3, h4, h5, h6, .card-title {
  color: var(--text-main);
  letter-spacing: 0;
}

.btn {
  min-height: 38px;
  padding: 0.45rem 0.82rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 720;
  box-shadow: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-app,
.btn-primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(36, 99, 235, 0.18);
}

.btn-app:hover,
.btn-app:focus,
.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  box-shadow: 0 9px 20px rgba(24, 73, 185, 0.2);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary-dark);
  --bs-btn-border-color: #a8c2f5;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  background: rgba(255, 255, 255, 0.82);
}

.btn-outline-secondary { background: #fff; }

.form-label {
  margin-bottom: 0.42rem;
  color: #344054;
  font-size: 0.76rem;
  font-weight: 720;
}

.form-control,
.form-select {
  min-height: 44px;
  padding: 0.58rem 0.72rem;
  border-color: #d6deea;
  border-radius: 12px;
  color: var(--text-main);
  background: #fbfcfe;
  font-size: 0.84rem;
  box-shadow: inset 0 1px 1px rgba(24, 43, 72, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-control:hover,
.form-select:hover { border-color: #bdc9da; background: #fff; }

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.11);
}

textarea.form-control { min-height: 92px; }
.form-check-input:checked { border-color: var(--primary); background-color: var(--primary); }

.alert {
  border-width: 1px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.table-panel,
.form-card,
.login-panel,
.status-panel,
.success-card,
.section-card,
.metric-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.table-panel,
.form-card { padding: 20px; background: #fff; }

.table-panel:hover,
.form-card:hover,
.login-panel:hover,
.status-panel:hover {
  border-color: #d7dfeb;
  box-shadow: var(--shadow-sm);
  transform: none;
}

.page-title-row,
.admin-page-section > .container > .d-flex:first-child,
.admin-page-section > .d-flex:first-child {
  align-items: flex-end;
  margin-bottom: 16px;
}

.page-title-row h1,
.admin-page-section h1,
.form-intro h1,
.login-panel h1 {
  font-size: clamp(1.24rem, 1.7vw, 1.62rem);
  font-weight: 780;
  line-height: 1.2;
}

.page-title-row p,
.form-intro p,
.panel-heading p,
.section-heading p {
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.panel-heading h2,
.section-heading h2,
.table-panel h2,
.table-panel h2.h5,
.chart-panel h2 {
  font-size: 0.94rem;
  font-weight: 760;
}

.section-heading {
  padding: 13px 14px;
  border: 0;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface-soft);
}

.form-card .row {
  padding: 14px;
  border-color: #e5eaf1;
  border-radius: 8px;
  background: #fff;
}

.modern-table,
.table {
  margin-bottom: 0;
  color: var(--text-main);
  font-size: 0.78rem;
}

.modern-table thead th,
.table thead th {
  padding: 0.74rem 0.7rem;
  border-bottom: 1px solid #dfe5ee;
  color: #68758a;
  background: #f7f9fc;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

.modern-table tbody td,
.table tbody td {
  padding: 0.72rem 0.7rem;
  border-color: #edf0f5;
  vertical-align: middle;
}

.modern-table tbody tr,
.table tbody tr { transition: background-color 140ms ease; }
.modern-table tbody tr:hover,
.table tbody tr:hover { background: #f8faff; }

/* Public shell */
.public-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(214, 222, 234, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(24, 43, 72, 0.035);
  backdrop-filter: blur(14px);
}

.public-topbar .container { min-height: 66px; }
.brand-lockup { gap: 10px; }

.brand-logo-frame-header {
  width: 98px;
  height: 38px;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.brand-logo-frame-header img,
.brand-logo-frame-login img { object-fit: contain; }

.public-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.public-brand-copy strong { font-size: 0.86rem; font-weight: 760; }
.public-brand-copy small { color: var(--text-muted); font-size: 0.67rem; }

.portal-hero {
  padding: 42px 0 38px;
  border-bottom: 1px solid var(--border);
  background: #eef3f9;
}

.portal-hero::after { display: none; }

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
}

.portal-hero-copy { min-width: 0; }

.portal-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-hero-kicker span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.portal-hero h1 {
  max-width: 720px;
  font-size: clamp(1.72rem, 3.1vw, 2.58rem);
  font-weight: 790;
  line-height: 1.1;
}

.hero-copy {
  max-width: 620px;
  margin-top: 12px;
  color: #58677e;
  font-size: 0.93rem;
}

.portal-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 20px;
}

.portal-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #526078;
  font-size: 0.74rem;
  font-weight: 650;
}

.portal-trust-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px var(--secondary-soft);
}

.hero-summary {
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(24, 43, 72, 0.07);
  animation: cardRise 280ms 80ms ease-out both;
}

.hero-summary-icon {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--success);
  background: var(--success-soft);
}

.hero-summary-icon::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translate(-50%, -65%) rotate(-45deg);
}

.hero-summary small,
.hero-summary strong,
.hero-summary p { display: block; }
.hero-summary small { color: var(--text-muted); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; }
.hero-summary strong { margin: 2px 0 3px; font-size: 0.9rem; }
.hero-summary p { margin: 0; font-size: 0.75rem; line-height: 1.45; }

.portal-actions { padding: 32px 0 24px; }
.portal-section-heading { align-items: flex-end; margin-bottom: 15px; }
.portal-section-heading h2 { font-size: 1.26rem; font-weight: 760; }
.portal-section-heading p { font-size: 0.78rem; }

.portal-section-heading > span {
  padding: 0.38rem 0.62rem;
  border: 1px solid #cfddf7;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #f4f7fd;
  font-size: 0.67rem;
}

.portal-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.portal-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.portal-action-card {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: 14px;
  min-height: 168px;
  padding: 18px;
}

.portal-action-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  height: auto;
  margin: 0;
  background: var(--primary);
  content: "";
}

.portal-action-card.action-teal::before { background: var(--secondary); }
.portal-action-card.action-cyan::before { background: var(--accent); }
.portal-action-card.action-coral::before { background: var(--danger); }

.portal-action-card:hover {
  border-color: #c9d4e3;
  box-shadow: 0 14px 28px rgba(24, 43, 72, 0.09);
  transform: translateY(-2px);
}

.portal-action-card .card-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: none;
}

.portal-action-card.action-teal .card-icon { color: var(--secondary); background: var(--secondary-soft); }
.portal-action-card.action-cyan .card-icon { color: var(--accent); background: var(--accent-soft); }
.portal-action-card.action-coral .card-icon { color: var(--danger); background: var(--danger-soft); }
.portal-action-card .card-icon svg { width: 22px; height: 22px; }

.portal-card-body { display: grid; gap: 5px; min-width: 0; }
.portal-action-card .card-title { overflow-wrap: anywhere; font-size: 0.9rem; font-weight: 760; }
.portal-action-card .card-text { color: var(--text-muted); font-size: 0.76rem; line-height: 1.5; }

.portal-card-link {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 760;
}

.portal-card-link b { font-size: 1rem; font-weight: 500; transition: transform 160ms ease; }
.portal-card:hover .portal-card-link b { transform: translateX(3px); }

.portal-learning-band,
.portal-feedback-band { padding: 18px 0 28px; }
.portal-feedback-band { padding-top: 0; }
.portal-learning-grid { gap: 12px; }

.portal-learning-card {
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  padding: 14px;
  border-color: var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.portal-learning-icon { width: 42px; height: 42px; border-radius: 8px; background: var(--primary); box-shadow: none; }
.portal-learning-card.is-feedback .portal-learning-icon { background: var(--secondary); }
.portal-learning-card > b { border-radius: 7px; }
.public-footer { padding: 22px 0; background: #eef3f9; }

/* Admin shell */
.admin-layout { grid-template-columns: 238px minmax(0, 1fr); }

.admin-sidebar {
  padding: 16px 12px;
  background: linear-gradient(180deg, #10294f 0%, #153967 55%, #12335d 100%);
  box-shadow: 8px 0 24px rgba(15, 37, 70, 0.12);
}

.admin-brand {
  display: grid;
  gap: 8px;
  margin: 0 4px 20px;
  padding: 2px 5px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.admin-brand-wordmark { display: flex; align-items: center; gap: 8px; color: #fff; }
.admin-brand-wordmark b { font-size: 1.03rem; font-weight: 850; }

.admin-brand-symbol,
.dashboard-brand-mark { position: relative; display: block; width: 24px; height: 21px; }

.admin-brand-symbol i,
.dashboard-brand-mark i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #ef3f47;
  transform: rotate(12deg);
}

.admin-brand-symbol i:nth-child(1),
.dashboard-brand-mark i:nth-child(1) { left: 0; top: 6px; }
.admin-brand-symbol i:nth-child(2),
.dashboard-brand-mark i:nth-child(2) { left: 9px; top: 0; }
.admin-brand-symbol i:nth-child(3),
.dashboard-brand-mark i:nth-child(3) { left: 11px; top: 11px; background: #3aa7c8; }

.admin-brand-copy { display: grid; gap: 1px; padding-left: 32px; }
.admin-brand-copy strong { font-size: 0.77rem; font-weight: 730; }
.admin-brand-copy small { color: #aebfda; font-size: 0.63rem; }

.admin-nav { gap: 15px; }
.admin-nav-group { gap: 3px; }
.admin-nav-title { padding: 0 9px 4px; color: #8fa7c9; font-size: 0.59rem; font-weight: 800; }

.admin-nav a {
  min-height: 36px;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 7px;
  color: #e5edf8;
  font-size: 0.73rem;
  font-weight: 650;
}

.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: none; transform: none; }
.admin-nav a.active { color: #123564; background: #fff; box-shadow: 0 7px 16px rgba(4, 20, 45, 0.15); }

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #d9e7fb;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.admin-nav a.active .nav-icon { color: var(--primary); background: var(--primary-soft); }

.admin-topbar {
  min-height: 62px;
  padding: 9px 20px;
  border-bottom-color: #e2e7ef;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(24, 43, 72, 0.035);
}

.admin-topbar-title { display: grid; gap: 1px; min-width: 0; }
.admin-topbar-title > div { overflow: hidden; font-size: 0.85rem; font-weight: 730; text-overflow: ellipsis; white-space: nowrap; }
.admin-topbar-title small { color: var(--text-muted); font-size: 0.63rem; }

.admin-user-chip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-user-chip > span { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--primary-dark); background: var(--primary-soft); font-size: 0.75rem; font-weight: 800; }
.admin-user-chip > div { display: grid; max-width: 180px; }
.admin-user-chip strong,
.admin-user-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-chip strong { font-size: 0.72rem; }
.admin-user-chip small { color: var(--text-muted); font-size: 0.61rem; }

.admin-main { padding: 0 20px 28px; }
.admin-page-section { padding: 20px 0; }
.admin-menu-button { border-radius: 8px; }
.admin-menu-button span { display: block; width: 16px; height: 2px; margin: 2px auto; border-radius: 2px; background: #44546b; }

/* Dashboard */
.dashboard-page { padding-top: 16px; }

.dashboard-command-center {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e0ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(24, 43, 72, 0.09);
}

.dashboard-command-center::before,
.dashboard-command-center::after { display: none; }

.dashboard-command-center .dashboard-hero {
  grid-template-columns: minmax(390px, 0.9fr) minmax(420px, 1.1fr);
  min-height: 238px;
  padding: 26px 28px;
  border: 0;
  border-bottom: 1px solid #dce4ef;
  border-radius: 0;
  background: #102f59;
}

.dashboard-command-center .dashboard-hero-copy { max-width: 590px; }

.dashboard-brand-line { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #fff; }
.dashboard-brand-line strong { font-size: 0.88rem; font-weight: 850; }
.dashboard-brand-line em { padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, 0.25); color: #a9bdd8; font-size: 0.69rem; font-style: normal; }
.dashboard-command-center .dashboard-hero .eyebrow { color: #8fc4ff !important; }

.dashboard-command-center .dashboard-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 770;
}

.dashboard-command-center .dashboard-hero-copy > p:last-of-type { max-width: 520px; color: #c4d1e2; font-size: 0.82rem; }
.dashboard-pulse-strip { gap: 8px; margin-top: 16px; }

.dashboard-pulse-card {
  min-width: 112px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  backdrop-filter: none;
}

.dashboard-pulse-card b { color: #fff; font-size: 1rem; }
.dashboard-pulse-card small { color: #afbdd0; font-size: 0.61rem; }
.dashboard-pulse-card.warning { border-left: 3px solid #f2b84b; }
.dashboard-pulse-card.danger { border-left: 3px solid #ef767e; }
.dashboard-command-center .dashboard-hero-actions { gap: 7px; margin-top: 16px; }

.dashboard-command-center .dashboard-hero-actions .btn {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.3);
  color: #edf5ff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  font-size: 0.7rem;
}

.dashboard-command-center .dashboard-hero-actions .btn:hover { border-color: #fff; color: #123564; background: #fff; }

.dashboard-hero-visual-ambient {
  min-height: 190px;
  border-radius: 8px;
  background: #173e6e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  mask-image: none;
}

.dashboard-hero-visual-ambient::before,
.dashboard-hero-visual-ambient::after { display: none; }
.dashboard-hero-visual-ambient canvas { filter: saturate(0.82) brightness(1.08); }

.dashboard-hero-visual-ambient .scene-caption {
  right: 14px;
  bottom: 13px;
  left: 14px;
  width: auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(8, 30, 57, 0.72);
  box-shadow: none;
}

.dashboard-command-center .executive-kpi-strip,
.dashboard-secondary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.dashboard-command-center .executive-kpi,
.dashboard-secondary-strip .executive-kpi {
  min-height: 76px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid #e7ebf1;
  border-bottom: 1px solid #e7ebf1;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.dashboard-command-center .executive-kpi:nth-child(4n),
.dashboard-secondary-strip .executive-kpi:nth-child(4n) { border-right: 0; }

.executive-kpi::before,
.dashboard-command-center .executive-kpi::before { top: 14px; bottom: 14px; width: 2px; border-radius: 2px; }

.executive-kpi:hover,
.dashboard-command-center .executive-kpi:hover { background: #f9fbfd; box-shadow: none; transform: none; }

.dashboard-command-center .executive-kpi .metric-icon,
.dashboard-secondary-strip .executive-kpi .metric-icon { width: 34px; height: 34px; border-radius: 8px; }

.dashboard-command-center .executive-kpi.metric-indigo .metric-icon,
.dashboard-secondary-strip .executive-kpi.metric-indigo .metric-icon { color: var(--primary); background: var(--primary-soft); }
.dashboard-command-center .executive-kpi.metric-teal .metric-icon,
.dashboard-secondary-strip .executive-kpi.metric-teal .metric-icon { color: var(--secondary); background: var(--secondary-soft); }
.dashboard-command-center .executive-kpi.metric-purple .metric-icon,
.dashboard-secondary-strip .executive-kpi.metric-purple .metric-icon { color: var(--accent); background: var(--accent-soft); }
.dashboard-command-center .executive-kpi.metric-warning .metric-icon,
.dashboard-secondary-strip .executive-kpi.metric-warning .metric-icon { color: var(--warning); background: var(--warning-soft); }
.dashboard-command-center .executive-kpi.metric-success .metric-icon,
.dashboard-secondary-strip .executive-kpi.metric-success .metric-icon { color: var(--success); background: var(--success-soft); }
.dashboard-command-center .executive-kpi.metric-danger .metric-icon,
.dashboard-secondary-strip .executive-kpi.metric-danger .metric-icon { color: var(--danger); background: var(--danger-soft); }

.executive-kpi span,
.executive-kpi em,
.dashboard-command-center .executive-kpi span,
.dashboard-command-center .executive-kpi em { font-size: 0.62rem; line-height: 1.2; }

.dashboard-command-center .executive-kpi span,
.dashboard-secondary-strip .executive-kpi span { color: #5d6b80; }

.dashboard-command-center .executive-kpi em,
.dashboard-secondary-strip .executive-kpi em { color: #8793a5; }

.executive-kpi strong,
.dashboard-command-center .executive-kpi strong { margin: 2px 0; color: #18345c; font-size: 1.04rem; }

.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 2px 10px;
}

.dashboard-section-heading h2 { margin: 2px 0 0; color: #203149; font-size: 1rem; font-weight: 760; }
.dashboard-section-heading p { margin: 0; color: var(--text-muted); font-size: 0.72rem; }

.dashboard-secondary-strip {
  overflow: hidden;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.dashboard-secondary-strip .executive-kpi:nth-child(4n) { border-right: 1px solid #e7ebf1; }
.dashboard-secondary-strip .executive-kpi:nth-child(3n) { border-right: 0; }

.dashboard-page .filter-panel,
.dashboard-page .table-panel,
.executive-main-chart,
.executive-performance-panel,
.chart-feature,
.insight-panel {
  border-color: var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dashboard-page .filter-panel { background: #fff; }

.executive-dashboard-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 14px;
}

.executive-main-chart { min-height: 390px; padding: 19px; }
.executive-main-chart canvas { height: 292px !important; }
.executive-panel-title h2 { color: #203149; font-size: 1rem; font-weight: 760; }
.executive-panel-title p,
.performance-row span { font-size: 0.71rem; }
.performance-row i { height: 4px; border-radius: 2px; }

.action-panel { min-height: 218px; padding: 16px; }
.stack-list { gap: 7px; }
.stack-list-item { padding: 10px; border-radius: 7px; background: #f7f9fc; }
.stack-list-item:hover { background: #f0f5fd; }
.stack-list-danger { background: var(--danger-soft); }
.dashboard-chart-board > div { min-width: 0; }

.chart-panel { min-height: 320px; padding: 17px; }
.chart-panel canvas { height: 230px !important; filter: saturate(0.9); }
.chart-title { align-items: center; }
.chart-title .metric-icon { width: 34px; height: 34px; border-radius: 8px; }
.empty-chart { min-height: 190px; border-radius: 7px; background: #f8fafc; }

.email-status-strip {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border-radius: 7px;
}

.email-status-strip span { border: 0; border-right: 1px solid #e4e9f0; border-radius: 0; background: #f8fafc; }

/* Form, egitim, rapor ve polivalans ekranlari */
.form-page { padding: 26px 0 38px; }

.form-intro {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.form-intro::before,
.form-intro::after { display: none; }

.feedback-type-grid span,
.survey-department-options span,
.role-select-card span,
.training-content-mode-card span,
.learning-content-option span { border-radius: 8px; }

.survey-progress-wrap,
.workflow-details,
.workflow-block,
.training-question-editor,
.training-question-editor-card,
.training-question-import,
.training-quiz-question,
.training-quiz-submit,
.learning-entry-shell,
.learning-viewer-stage,
.learning-completion-bar,
.learning-external-card,
.unavailable-card,
.qr-portal-card,
.qr-print-poster { border-radius: 8px; }

.training-question-editor,
.training-question-import { background: #f7f9fc; }
.training-question-editor-card { background: #fff; }
.learning-entry-shell { border-color: var(--border); box-shadow: var(--shadow-md); }
.learning-entry-visual,
.training-quiz-hero { background: #12345f; }
.training-quiz-hero { border-radius: 8px; box-shadow: var(--shadow-md); }
.training-quiz-question,
.training-quiz-submit { border-color: var(--border); box-shadow: var(--shadow-sm); }

.polivalence-hero,
.employee-directory-hero,
.access-management-hero { border-radius: 8px; }

.polivalence-table-shell,
.polivalence-summary-card,
.polivalence-chart-card,
.employee-kpi-card,
.role-card,
.competency-card { border-radius: 8px; box-shadow: var(--shadow-sm); }

.login-stage { min-height: 100vh; background: #eef3f9; }

.login-panel {
  width: min(100% - 32px, 430px);
  padding: 26px;
  border-top: 3px solid var(--primary);
  box-shadow: 0 20px 48px rgba(24, 43, 72, 0.12);
}

.brand-logo-frame-login { width: 112px; height: 48px; padding: 5px 8px; border-radius: 7px; box-shadow: none; }

@media (max-width: 1199.98px) {
  .dashboard-command-center .dashboard-hero { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr); }
  .dashboard-command-center .executive-kpi-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .executive-dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr); }
}

@media (max-width: 991.98px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { width: min(280px, 86vw); }
  .admin-menu-button { display: grid; }
  .admin-user-chip > div { display: none; }
  .dashboard-command-center .dashboard-hero,
  .executive-dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-hero-visual-ambient { min-height: 210px; }
  .dashboard-secondary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  body { font-size: 0.84rem; }
  .container { width: min(100% - 24px, 1180px); }
  .admin-main { padding: 0 12px 24px; }
  .admin-topbar { padding: 8px 12px; }
  .admin-topbar-title small,
  .admin-user-chip { display: none; }
  .hero-grid,
  .portal-card-grid,
  .portal-learning-grid { grid-template-columns: 1fr; }
  .portal-hero { padding: 30px 0 26px; }
  .portal-hero h1 { font-size: 1.65rem; }
  .portal-trust-row { margin-top: 16px; }
  .portal-actions { padding-top: 24px; }
  .portal-section-heading,
  .dashboard-section-heading,
  .page-title-row,
  .admin-page-section > .container > .d-flex:first-child,
  .admin-page-section > .d-flex:first-child { align-items: flex-start; flex-direction: column; }
  .dashboard-command-center .dashboard-hero { min-height: auto; padding: 20px; }
  .dashboard-command-center .executive-kpi-strip,
  .dashboard-secondary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-command-center .executive-kpi:nth-child(4n),
  .dashboard-secondary-strip .executive-kpi:nth-child(3n) { border-right: 1px solid #e7ebf1; }
  .dashboard-command-center .executive-kpi:nth-child(2n),
  .dashboard-secondary-strip .executive-kpi:nth-child(2n) { border-right: 0; }
  .dashboard-command-center .dashboard-hero-actions .btn { flex: 1 1 calc(50% - 7px); }
  .dashboard-hero-visual-ambient { min-height: 180px; }
  .table-panel,
  .form-card { padding: 15px; }
  .form-card .row { padding: 10px; }
  .table-responsive { margin-inline: -15px; padding-inline: 15px; }
  .training-question-import,
  .training-question-import-actions,
  .training-quiz-options { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .public-topbar .container { min-height: 58px; }
  .brand-logo-frame-header { width: 82px; height: 32px; }
  .public-topbar .btn { min-height: 34px; padding-inline: 9px; font-size: 0.7rem; }
  .portal-hero h1 { font-size: 1.48rem; }
  .portal-action-card { min-height: 150px; padding: 15px; }
  .dashboard-command-center .dashboard-hero-actions .btn { flex-basis: calc(50% - 7px); }
  .dashboard-command-center .executive-kpi-strip,
  .dashboard-secondary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-command-center .executive-kpi,
  .dashboard-secondary-strip .executive-kpi { border-right: 0 !important; }
  .dashboard-pulse-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-pulse-card { min-width: 0; }
  .dashboard-pulse-card small { white-space: normal; }
  .executive-panel-title { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
.anonymous-complaint-note {
  align-items: center;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  min-height: 74px;
  padding: 12px 16px;
}

.anonymous-complaint-note strong,
.anonymous-complaint-note span {
  display: block;
  width: 100%;
}

.anonymous-complaint-note span {
  color: #7f1d1d;
  font-size: 0.875rem;
  margin-top: 3px;
}
.survey-response-list { display: grid; gap: 12px; }
.survey-response-card { overflow: hidden; border: 1px solid #dbe5f2; border-radius: 8px; background: #fff; }
.survey-response-card summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: #102a56; cursor: pointer; }
.survey-response-card[open] summary { border-bottom: 1px solid #e5edf7; background: #f7faff; }
.survey-response-person { display: grid; gap: 3px; }
.survey-response-person small { color: #647087; font-size: .72rem; font-weight: 600; }
.survey-response-answers { display: grid; padding: 4px 18px; }
.survey-response-answer { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf2f8; }
.survey-response-answer:last-child { border-bottom: 0; }
.survey-response-answer p { margin: 0 0 5px; color: #53647f; }
.survey-response-answer strong { color: #132b50; }
.survey-response-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #eaf2ff; color: #1e5fd8; font-weight: 800; }
@media (max-width: 575.98px) {
  .survey-response-card summary { align-items: flex-start; flex-direction: column; padding: 14px; }
  .survey-response-answers { padding: 2px 14px; }
}
