/* Bilesen katalogu: tum sayfalarda ortak */

/* Ikon */
.ico-svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.c-ico { width: 18px; height: 18px; flex-shrink: 0; }

/* Buton */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--n100);
  color: var(--n800);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn .ico-svg { width: 18px; height: 18px; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary, .btn-red { background: var(--red); color: #fff; }
.btn-primary:hover, .btn-red:hover { background: var(--red-hover); }
.btn-secondary, .btn-navy { background: var(--navy); color: #fff; }
.btn-secondary:hover, .btn-navy:hover { background: #142a49; }
.btn-outline, .btn-line { background: #fff; border-color: var(--n200); color: var(--n800); }
.btn-outline:hover, .btn-line:hover { background: var(--n50); border-color: var(--n300); }
.btn-quiet { background: transparent; color: var(--n700); }
.btn-quiet:hover { background: var(--n100); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #5f130f; }
.btn-danger-outline { background: #fff; border-color: var(--bad-line); color: var(--bad); }
.btn-danger-outline:hover { background: var(--bad-bg); }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon, .ico {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--n200);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--n700);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-icon:hover, .ico:hover { border-color: var(--red); color: var(--red); background: #fff; }
.btn-icon:focus-visible, .ico:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-icon.danger:hover, .ico.danger:hover, .btn-icon.btn-danger-outline:hover { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-outline.is-loading::after, .btn-line.is-loading::after, .btn-quiet.is-loading::after { border-color: var(--n300); border-top-color: var(--n700); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form */
.field { display: grid; gap: 6px; margin-bottom: 14px; align-content: start; }
.field label, .field-label {
  color: var(--n700);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
}
.field label em { font-style: normal; font-weight: 400; color: var(--n500); font-size: 12px; }
.field label .req, .req { color: var(--red); margin-left: 2px; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea,
.filters input, .filters select,
.input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--n200);
  background-color: #fff;
  border-radius: var(--r-md);
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus,
.filters input:focus, .filters select:focus, .input:focus {
  border-color: var(--red);
  box-shadow: var(--ring);
}
.field input:disabled, .field select:disabled, .field textarea:disabled { background-color: var(--n50); color: var(--n500); }
.field input[type="file"] { font-size: 13px; }
select, .field select, .filters select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366707a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 12.5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input, input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.check input { margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.hint-box {
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  border-left: 3px solid var(--navy);
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--info);
  margin-bottom: 14px;
}
.consent-box { background: var(--n50); border: 1px solid var(--n200); border-radius: var(--r-md); padding: 14px; margin: 12px 0; }
.consent-title { font-weight: 700; color: var(--n800); font-size: 13px; margin-bottom: 10px; }

/* Dosya */
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1.5px dashed var(--n300);
  border-radius: var(--r-md);
  background: var(--n50);
  color: var(--n600);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--red); background: #fff; }
.dropzone:focus-within { box-shadow: var(--ring); }
.dropzone.is-dragover { border-color: var(--red); background: var(--red-soft); }
.dropzone > .ico-svg { width: 28px; height: 28px; color: var(--n400); }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.dropzone-text strong { color: var(--n800); font-size: 14px; }
.dropzone-name { overflow-wrap: anywhere; }
.dropzone-prev { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--n200); background: #fff; }
.img-preview {
  aspect-ratio: 16 / 11;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--n100);
  margin: 8px 0 10px;
  max-width: 420px;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.img-preview-logo { aspect-ratio: 1; width: 96px; background: #fff; border: 1px solid var(--n200); }
.img-preview-logo img { object-fit: contain; padding: 8px; }
.doc-preview { max-width: 420px; border-radius: var(--r-sm); border: 1px solid var(--n200); }

/* Kart */
.panel {
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-1);
}
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-h h2, .panel-h h3 { font-size: 16px; font-weight: 800; }
.panel-foot { margin: 20px -24px -24px; padding: 14px 24px; border-top: 1px solid var(--n200); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; gap: 8px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--n100); padding-bottom: 8px; }
.kv span { color: var(--n500); }
.kv strong { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.note-list { display: grid; gap: 8px; }
.note { background: var(--n50); border: 1px solid var(--n100); border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--n200); display: grid; gap: 14px; }
.timeline > * { position: relative; }
.timeline > *::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--n300); }

/* Tablo */
.table-wrap {
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--n100); text-align: left; vertical-align: middle; }
th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--n500); background: var(--n50); white-space: nowrap; }
th a.sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
th a.sort:hover { color: var(--red); }
tbody tr:hover td { background: var(--n50); }
tbody tr:last-child td { border-bottom: 0; }
td small { color: var(--n500); font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; display: inline; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.filters input, .filters select { width: auto; min-height: 40px; }
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--n200); border-radius: var(--r-lg);
  padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--sh-1);
}
.filter-bar .field { margin: 0; }
.filter-bar input:not([type="checkbox"]), .filter-bar select {
  width: auto; min-height: 40px; border: 1px solid var(--n200); border-radius: var(--r-md);
  padding: 8px 12px; background-color: #fff; outline: none;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--red); box-shadow: var(--ring); }
.filter-bar .grow { flex: 1 1 220px; }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.pager-i {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 36px; height: 36px; padding: 0 10px;
  background: #fff; border: 1px solid var(--n200); border-radius: var(--r-md);
  font-weight: 700; font-size: 13px; color: var(--n700);
}
a.pager-i:hover { border-color: var(--red); color: var(--red); }
.pager-i.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.pager-i.is-off { opacity: .45; pointer-events: none; }
.pager-gap { padding: 0 4px; color: var(--n500); }

/* Rozet */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 22px; padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; line-height: 1.3;
  white-space: nowrap;
  background: var(--n100); color: var(--n600);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.mute { background: var(--n100); color: var(--n600); }

/* Uyari */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--n200);
  border-left-width: 3px;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}
.alert > .ico-svg { margin-top: 2px; }
.alert a { text-decoration: underline; font-weight: 700; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); border-left-color: var(--ok); }
.alert-bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); border-left-color: var(--bad); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); border-left-color: #c2410c; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); border-left-color: var(--navy); }
.success-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--ok-bg); color: var(--ok);
  border: 1px solid var(--ok-line); border-left: 3px solid var(--ok);
  padding: 20px 22px; border-radius: var(--r-lg);
  font-weight: 700; line-height: 1.45; margin-bottom: 20px;
}

/* Sayfa basligi, kirinti, sekme, adim */
.page-head, .admin-h {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h1, .admin-h h1 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; }
.page-head p, .admin-h p { margin-top: 4px; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-h > div:last-child:not(:first-child) { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--n500); list-style: none; margin: 0; padding: 0; }
.crumb a:hover { color: var(--red); }
.crumb [aria-current], .crumb .is-current { color: var(--n800); }
.crumb .ico-svg { width: 14px; height: 14px; color: var(--n400); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--n200); margin-bottom: 20px; }
.tabs a {
  padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--n500);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--n800); }
.tabs a.is-on, .tabs a[aria-current] { color: var(--red); border-bottom-color: var(--red); }
.stepper { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: st; }
.stepper li {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--n500);
  counter-increment: st;
}
.stepper li::before {
  content: counter(st);
  display: grid; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--n100); color: var(--n600); border: 1px solid var(--n200);
}
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--n200); margin: 0 8px; min-width: 12px; }
.stepper li.is-on, .stepper li.is-done { color: var(--n800); }
.stepper li.is-on::before { background: var(--red); border-color: var(--red); color: #fff; }
.stepper li.is-done::before { background: var(--ok); border-color: var(--ok); color: #fff; }
.save-bar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin: 20px 0 0; padding: 12px 16px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--n200); border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.save-bar .grow { margin-left: auto; color: var(--n500); font-size: 12.5px; }

/* Istatistik, gorev, ilerleme */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat, .stat-card {
  background: #fff; border: 1px solid var(--n200); border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: var(--sh-1);
}
.stat b, .stat-card b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.2; }
.stat span, .stat-card span { color: var(--n500); font-size: 13px; font-weight: 600; }
.stat-card { display: flex; gap: 14px; align-items: center; }
.stat-ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--red-soft); color: var(--red);
}
.stat-ico.navy { background: var(--navy-soft); color: var(--navy); }
.stat-ico.ok { background: var(--ok-bg); color: var(--ok); }
.stat-ico.warn { background: var(--warn-bg); color: var(--warn); }
.stat-body { min-width: 0; }
.stat-body b { display: block; }
.stat-body small { display: block; color: var(--n500); font-size: 12px; }
a.stat-card:hover { border-color: var(--n300); box-shadow: var(--sh-2); }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.task {
  display: block; background: #fff; border: 1px solid var(--n200); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--sh-1);
}
.task:hover { box-shadow: var(--sh-2); border-color: var(--n300); }
.task em { font-style: normal; font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--red); }
.task strong { display: block; margin: 4px 0; }
.task span { color: var(--n500); font-size: 13px; }
.bar { display: block; height: 6px; background: var(--n100); border-radius: var(--r-pill); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--red); border-radius: inherit; }

/* Bos durum */
.empty, .empty-state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 48px 24px;
  background: #fff; border: 1px dashed var(--n300); border-radius: var(--r-lg);
  color: var(--n500);
}
.empty-state > .ico-svg { width: 48px; height: 48px; color: var(--n300); }
.empty-state h2, .empty-state h3 { font-size: 16px; font-weight: 800; color: var(--n800); }
.empty-state p { max-width: 46ch; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.empty-state .btn-row { justify-content: center; margin-top: 4px; }

/* Anahtar */
.switch-form { margin: 0; }
.switch {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--n600);
  padding: 0;
}
.switch:focus-visible { outline: none; }
.switch:focus-visible .switch-ui { box-shadow: var(--ring); }
.switch-ui { width: 44px; height: 24px; border-radius: var(--r-pill); background: var(--n300); position: relative; transition: background .2s ease; flex-shrink: 0; }
.switch-ui::after {
  content: ""; width: 18px; height: 18px; background: #fff; border-radius: 50%;
  position: absolute; top: 3px; left: 3px; transition: left .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch.is-on .switch-ui { background: var(--ok); }
.switch.is-on .switch-ui::after { left: 23px; }
.switch.is-on .switch-lab { color: var(--ok); }

/* Liste satirlari */
.sortable { display: grid; gap: 10px; }
.sort-item {
  background: #fff; border: 1px solid var(--n200); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.sort-item b { flex: 1; }
.sort-item .course-row { flex: 1; min-width: 220px; }
.course-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; }
.course-row img, .course-manage > img { width: 72px; height: 54px; object-fit: cover; object-position: center; border-radius: var(--r-sm); background: var(--n100); flex-shrink: 0; }
.course-manage { align-items: flex-start; }
.course-manage-main { flex: 1; min-width: 220px; }
.date-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.date-inline input[type="date"], .date-inline input[type="text"] { border: 1px solid var(--n200); border-radius: var(--r-md); padding: 6px 10px; min-height: 36px; background: #fff; }
.date-inline input[type="text"] { min-width: 180px; flex: 1; }
.form-field-card { flex-direction: column; align-items: stretch; gap: 8px; }
.form-field-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-field-label { flex: 1; min-width: 160px; border: 1px solid var(--n200); border-radius: var(--r-md); padding: 8px 10px; font-weight: 700; }
.form-field-type { color: var(--n500); font-weight: 600; }
.form-field-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-field-extra input { border: 1px solid var(--n200); border-radius: var(--r-md); padding: 8px 10px; background: #fff; }

/* Yonetim kartlari */
.cms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cms-card {
  background: #fff; border: 1px solid var(--n200); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  padding: 18px 16px 16px; min-height: 148px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cms-card:hover { border-color: var(--n300); box-shadow: var(--sh-2); }
.cms-card em { font-style: normal; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.cms-card strong { font-size: 17px; letter-spacing: -.02em; }
.cms-card span { color: var(--n500); font-size: 13.5px; line-height: 1.45; }
.cms-where { background: var(--n50); border: 1px solid var(--n200); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; color: var(--n600); margin-bottom: 14px; }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.role-card { background: #fff; border: 1px solid var(--n200); border-radius: var(--r-lg); padding: 14px; }
.role-card b { display: block; margin-bottom: 6px; }
.role-card span { color: var(--n500); font-size: 13.5px; line-height: 1.45; }
.receipt-desk { display: grid; gap: 16px; }
.receipt-card { display: grid; grid-template-columns: 300px 1fr; gap: 18px; background: #fff; border: 1px solid var(--n200); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 16px; }
.receipt-card img, .receipt-card iframe { width: 100%; max-height: 320px; object-fit: contain; background: var(--n100); border-radius: var(--r-md); }

/* Akordeon */
.acc { display: grid; gap: 10px; }
.acc details { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--n200); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; color: var(--ink); font-weight: 700; padding: 16px 18px;
}
.acc summary:hover { background: var(--n50); }
.acc summary span { display: inline-flex; align-items: center; gap: 10px; }
.acc summary .c-ico:last-child { color: var(--red); transition: transform .2s ease; }
.acc details[open] summary .c-ico:last-child { transform: rotate(45deg); }
.acc summary::-webkit-details-marker { display: none; }
.acc details[open] { border-color: var(--red-tint); }
.acc .acc-body { padding: 0 18px 18px 48px; white-space: pre-wrap; color: var(--n700); line-height: 1.65; }

/* Icerik tipografisi (cms_html) */
.prose { background: #fff; border: 1px solid var(--n200); padding: 32px; border-radius: var(--r-lg); max-width: 80ch; }
.prose > :first-child { margin-top: 0; }
.prose p { font-size: var(--fs-md); line-height: 1.7; color: var(--n800); max-width: 76ch; }
.prose p + p { margin-top: 12px; }
.prose h2 { margin: 32px 0 10px; font-size: var(--fs-xl); }
.prose h3 { margin: 24px 0 8px; font-size: var(--fs-lg); }
.prose h4 { margin: 20px 0 6px; font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .06em; }
.prose ul, .prose ol { padding-left: 20px; margin: 12px 0; color: var(--n800); line-height: 1.7; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--red-hover); }

/* Onay diyalogu */
.dlg {
  border: 0; padding: 0; border-radius: var(--r-lg);
  width: min(440px, calc(100% - 32px));
  box-shadow: var(--sh-3); color: var(--ink);
}
.dlg::backdrop { background: rgba(28, 33, 38, .5); }
.dlg-body { padding: 24px 24px 8px; }
.dlg-body h2 { font-size: var(--fs-lg); margin-bottom: 8px; }
.dlg-body p { color: var(--n600); }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 24px 24px; flex-wrap: wrap; }

/* Sifre goster/gizle */
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 48px !important; }
.pass-wrap .btn-icon { position: absolute; right: 3px; top: 3px; width: 36px; height: 36px; border: 0; background: transparent; }

@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .task-grid, .receipt-card { grid-template-columns: 1fr; }
  .cms-grid, .role-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .panel { padding: 16px; }
  .panel-foot { margin: 16px -16px -16px; padding: 12px 16px; }
  .prose { padding: 20px; }
  .filters input, .filters select { width: 100%; }
  .filter-bar > * { flex: 1 1 100%; }
  .filter-bar input:not([type="checkbox"]), .filter-bar select { width: 100%; }
  .date-inline input[type="text"], .date-inline input[type="date"] { width: 100%; min-width: 0; }
  .form-field-extra { grid-template-columns: 1fr; }
  .table-wrap {
    background:
      linear-gradient(270deg, rgba(28, 33, 38, .14), rgba(28, 33, 38, 0)) right center / 10px 100% no-repeat scroll,
      #fff;
  }
  table { min-width: 620px; }
  table.table-card { min-width: 0; }
  .table-card thead { display: none; }
  .table-card, .table-card tbody, .table-card tr, .table-card td { display: block; width: 100%; }
  .table-card tr { border-bottom: 1px solid var(--n200); padding: 10px 14px; }
  .table-card td { border: 0; padding: 4px 0; }
  .table-card td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--n500); font-weight: 700; }
  .table-card tbody tr:hover td { background: transparent; }
  .stepper li span { display: none; }
  .dlg-foot .btn { flex: 1; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}
.pager-prev { transform: rotate(180deg); }
.bar > i.w-0 { width: 0%; }
.bar > i.w-5 { width: 5%; }
.bar > i.w-10 { width: 10%; }
.bar > i.w-15 { width: 15%; }
.bar > i.w-20 { width: 20%; }
.bar > i.w-25 { width: 25%; }
.bar > i.w-30 { width: 30%; }
.bar > i.w-35 { width: 35%; }
.bar > i.w-40 { width: 40%; }
.bar > i.w-45 { width: 45%; }
.bar > i.w-50 { width: 50%; }
.bar > i.w-55 { width: 55%; }
.bar > i.w-60 { width: 60%; }
.bar > i.w-65 { width: 65%; }
.bar > i.w-70 { width: 70%; }
.bar > i.w-75 { width: 75%; }
.bar > i.w-80 { width: 80%; }
.bar > i.w-85 { width: 85%; }
.bar > i.w-90 { width: 90%; }
.bar > i.w-95 { width: 95%; }
.bar > i.w-100 { width: 100%; }
.stat-body { display: block; }
