/* ============================================================
   HTOS · Component Library
   Reusable UI primitives — relies on tokens from styles.css
   Buttons · Badges · Forms · Tabs · Table · Drawer · Modal ·
   Toast · Tooltip · Menu · Breadcrumb · Pagination · Timeline ·
   Alert · Skeleton · Empty state · Avatar · Segmented
   ============================================================ */

/* hidden attribute her zaman gizlesin — .alert/.field gibi display tanımlı
   sınıflar tarayıcının [hidden]{display:none} kuralını ezdiği için gerekli. */
[hidden] { display: none !important; }

/* ---------- Section scaffolding (reference page) ---------- */
.section { margin-bottom: 30px; }
.section__title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.section__title .ti { color: var(--brand); font-size: 19px; }
.section__hint { color: var(--text-3); font-size: 13px; margin-bottom: 14px; }
.demo {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.demo--col { flex-direction: column; align-items: stretch; }
.demo--grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .demo--grid { grid-template-columns: repeat(2, 1fr); } }
.demo__label { width: 100%; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }

/* color swatches */
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
@media (min-width: 600px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.swatch { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.swatch__chip { height: 56px; }
.swatch__name { padding: 8px 10px 3px; font-size: 12.5px; font-weight: 600; }
.swatch__var { padding: 0 10px 9px; font-size: 11px; color: var(--text-3); font-family: ui-monospace, Menlo, monospace; }
.sw-brand { background: var(--brand); } .sw-good { background: var(--good); } .sw-warn { background: var(--warn); }
.sw-danger { background: var(--danger); } .sw-info { background: var(--info); } .sw-neutral { background: var(--neutral); }
.sw-bg { background: var(--bg); } .sw-surface2 { background: var(--surface-2); }

/* typography spec rows */
.type-row { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.type-row:first-child { border-top: none; }
.type-spec { font-size: 11.5px; color: var(--text-3); font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
.t-display-xl { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.t-display { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.t-h2 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.t-body { font-size: 14px; }
.t-small { font-size: 12.5px; color: var(--text-2); }
.t-caption { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 600; }

/* anchored sub-nav for reference page */
.refnav { position: sticky; top: calc(var(--topbar-h) + 8px); display: none; }
@media (min-width: 1100px) { .refnav { display: block; } .reflayout { display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: start; } }
.refnav__list { display: flex; flex-direction: column; gap: 2px; }
.refnav__link { padding: 6px 10px; border-radius: var(--r-sm); font-size: 12.5px; color: var(--text-3); }
.refnav__link:hover { background: var(--surface-2); color: var(--text); }

/* ============================================================
   BUTTONS  (extends .btn from styles.css)
   ============================================================ */
.btn--secondary { background: var(--brand-soft); color: var(--brand); }
.btn--secondary:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand)); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; box-shadow: var(--shadow-sm); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.btn--subtle { background: transparent; color: var(--text-2); }
.btn--subtle:hover { background: var(--surface-2); color: var(--text); }
.btn--success { background: var(--good); color: #fff; }
.btn--success:hover { background: color-mix(in srgb, var(--good) 85%, #000); }

.btn--sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn--sm .ti { font-size: 15px; }
.btn--lg { height: 46px; padding: 0 20px; font-size: 14.5px; }
.btn--block { width: 100%; justify-content: center; }
.btn--icon { width: 40px; padding: 0; justify-content: center; }
.btn--icon.btn--sm { width: 32px; }

.btn:disabled, .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  color: #fff; animation: spin 0.6s linear infinite;
}
.btn--ghost.is-loading::after, .btn--subtle.is-loading::after { color: var(--text-2); }
@keyframes spin { to { transform: rotate(360deg); } }

.btngroup { display: inline-flex; }
.btngroup .btn { border-radius: 0; border: 1px solid var(--border); margin-left: -1px; }
.btngroup .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; }
.btngroup .btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: var(--neutral-soft); color: var(--text-2);
  white-space: nowrap; line-height: 1.4;
}
.badge .ti { font-size: 13px; }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--good { background: var(--good-soft); color: var(--good); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--orange { background: rgba(234, 88, 12, 0.14); color: #ea580c; }
.badge--neutral { background: var(--neutral-soft); color: var(--text-2); }
.badge--outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.badge--solid { background: var(--brand); color: #fff; }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--count { min-width: 20px; height: 20px; padding: 0 6px; justify-content: center; }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 13px; flex-shrink: 0;
  overflow: hidden;
}
.avatar--sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.avatar--lg { width: 48px; height: 48px; font-size: 16px; border-radius: 13px; }
.avatar--good { background: var(--good-soft); color: var(--good); }
.avatar--warn { background: var(--warn-soft); color: var(--warn); }
.avatar--danger { background: var(--danger-soft); color: var(--danger); }
.avatar-group { display: inline-flex; }
.avatar-group .avatar { border: 2px solid var(--surface); margin-left: -10px; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field__label .req { color: var(--danger); }
.field__hint { font-size: 12px; color: var(--text-3); }
.field__hint--err { color: var(--danger); font-weight: 600; }
.field__hint--ok { color: var(--good); font-weight: 600; }
.field__error { font-size: 12px; color: var(--danger); display: inline-flex; align-items: center; gap: 4px; }

.input, .textarea, .select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.textarea { height: auto; min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field.is-error .input, .field.is-error .textarea, .field.is-error .select {
  border-color: var(--danger);
}
.field.is-error .input:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.input:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .ti { position: absolute; left: 12px; color: var(--text-3); font-size: 18px; pointer-events: none; }
.input-group .input { padding-left: 38px; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 40px; height: 23px; border-radius: 999px;
  background: var(--border-strong); position: relative; transition: background var(--ease); flex-shrink: 0;
}
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform var(--ease);
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(17px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--brand-soft); }

/* Checkbox & radio */
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }

/* Segmented control */
.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); gap: 2px; }
.segmented__btn {
  padding: 6px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  transition: background var(--ease), color var(--ease);
}
.segmented__btn:hover { color: var(--text); }
.segmented__btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; padding: 11px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab .ti { font-size: 17px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand); }
.tab.is-active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.tab__count { font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--neutral-soft); color: var(--text-2); }
.tabpanel { padding-top: 18px; }
.tabpanel[hidden] { display: none; }

/* ============================================================
   TABLE (full-featured, extends styles.css .table)
   ============================================================ */
.datatable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.datatable th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-3); font-weight: 600; padding: 10px 12px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
  position: sticky; top: 0;
}
.datatable th:first-child { border-radius: var(--r-sm) 0 0 0; }
.datatable th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.datatable td { padding: 12px; border-bottom: 1px solid var(--border); }
.datatable tbody tr { transition: background var(--ease); }
.datatable tbody tr:hover td { background: var(--surface-2); }
.datatable tbody tr.is-selected td { background: var(--brand-soft); }
.datatable--striped tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

/* Tablo içi tam genişlik alt-satır (kredi ödeme süre uyarısı) */
.datatable tbody tr.subrow td { padding: 0; }
.datatable tbody tr.subrow:hover td { background: transparent; }
.subrow__inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 14px;
  background: var(--warn-soft); border-left: 3px solid var(--warn);
  font-size: 12px;
}
.subrow.is-overdue .subrow__inner { background: var(--danger-soft); border-left-color: var(--danger); }
.subrow__inner > .ti { color: var(--warn); font-size: 15px; }
.subrow.is-overdue .subrow__inner > .ti { color: var(--danger); }
.subrow__lead { font-weight: 600; color: var(--text); }
.subrow__date { color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.subrow__spacer { flex: 1 1 auto; }

/* Risk Analizi paneli */
.riskscore { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.riskscore__num { display: flex; align-items: baseline; gap: 2px; min-width: 90px; }
.riskscore__val { font-size: 34px; font-weight: 800; line-height: 1; }
.riskscore__max { font-size: 14px; color: var(--text-3); font-weight: 600; }
.riskscore__bar { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.riskscore__fill { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; transition: width var(--ease); background: var(--text-3); }
.riskscore__fill--low { background: var(--info); }
.riskscore__fill--medium { background: var(--warn); }
.riskscore__fill--high { background: #ea580c; }
.riskscore__fill--critical { background: var(--danger); }

.riskfactors { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.riskfactor { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--surface-2); border-radius: var(--r-sm); }
.riskfactor__pts { flex-shrink: 0; min-width: 38px; text-align: center; font-weight: 700; font-size: 12px; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 2px 8px; }
.riskfactor__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.riskfactor__label { font-weight: 600; font-size: 13px; }
.riskfactor__detail { font-size: 12px; color: var(--text-3); }
/* Dashboard mini-istatistik ızgarası (Para İadeleri özeti) */
.ministat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ministat { display: flex; flex-direction: column; gap: 3px; padding: 12px 13px; background: var(--surface-2); border-radius: var(--r-sm); transition: background var(--ease); }
a.ministat:hover { background: var(--brand-soft); }
.ministat__label { font-size: 11.5px; color: var(--text-3); }
.ministat__value { font-size: 20px; font-weight: 700; color: var(--text); }

/* Kayıt işlemleri (düzenle / sil) + düzenleme geçmişi */
.log-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.iconbtn--sm { width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: 14px; }
.iconbtn--sm:hover { background: var(--surface-2); color: var(--text); }
.iconbtn--danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.edit-log { margin-top: 4px; font-size: 11.5px; }
.edit-log summary { cursor: pointer; color: var(--text-3); user-select: none; display: inline-flex; align-items: center; gap: 4px; }
.edit-log summary:hover { color: var(--brand); }
.edit-log__row { margin: 5px 0 0 14px; padding-left: 8px; border-left: 2px solid var(--border); }
.edit-log__meta { color: var(--text-3); }
.edit-log__old { display: block; color: var(--text-2); font-style: italic; margin-top: 2px; }

/* Geri arama sonucu — seçim kartları */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-cards--5 { grid-template-columns: repeat(5, 1fr); }
.radio-card { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); transition: border-color var(--ease), background var(--ease); }
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* Arama denemeleri (detay — ulaşıldı/ulaşılamadı + not) */
.attempt-list { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 7px; }
.attempt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; font-size: 12px; }
.attempt__meta { color: var(--text-3); }
.attempt__note { color: var(--text-2); font-style: italic; flex-basis: 100%; }

/* SLA aşan satır + nokta vurguları */
.datatable tbody tr.row--danger td { background: var(--danger-soft); }
.feed__dot.dot--warn { background: var(--warn); }
.feed__dot.dot--danger { background: var(--danger); }

/* Tasarım sistemine uygun dosya seçici (varsayılan Browse butonu yerine) */
.fileinput { display: flex; align-items: center; gap: 10px; padding: 5px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color var(--ease); }
.fileinput:hover { border-color: var(--border-strong); }
.fileinput input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.fileinput__btn { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 8px 14px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background var(--ease), color var(--ease); }
.fileinput:hover .fileinput__btn { background: var(--brand-soft); color: var(--brand); }
.fileinput__text { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* "veya" ayıracı (dosya yükleme ↔ kamera) */
.or-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.or-sep span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

/* Belge Yükle — webcam alanı + çekilen fotoğraflar */
.camera-area { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px; background: var(--surface-2); }
.camera-area__status { font-size: 12.5px; color: var(--text-2); padding: 8px 4px; margin: 0; }
.camera-area__video { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: #000; object-fit: cover; display: block; }
.camera-area__bar { display: flex; gap: 8px; margin-top: 8px; }
/* Kamera hazır olana kadar video+butonlar gizli, sadece durum yazısı görünür */
.camera-area:not(.is-ready) .camera-area__video,
.camera-area:not(.is-ready) .camera-area__bar { display: none; }
.camera-area.is-ready .camera-area__status { display: none; }
.camshots { display: flex; flex-wrap: wrap; gap: 8px; }
.camshots:not(:empty) { margin-top: 10px; }
.camshot { position: relative; width: 74px; height: 74px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); }
.camshot img { width: 100%; height: 100%; object-fit: cover; }
.camshot__x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; }

.dup-row { margin: 5px 0; font-size: 13px; line-height: 1.5; }
.dup-row a { color: var(--brand); }
.riskfloor { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--warn); }
.riskfloor .ti { font-size: 16px; }
.cell-strong { font-weight: 600; }
.cell-muted { color: var(--text-3); }
.cell-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Sortable column headers (Data Table) */
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; white-space: nowrap; }
.th-sort .ti { font-size: 14px; opacity: 0.45; }
.th-sort:hover { color: var(--text); }
.th-sort.is-active { color: var(--brand); }
.th-sort.is-active .ti { opacity: 1; color: var(--brand); }

/* ============================================================
   ALERT / CALLOUT
   ============================================================ */
.alert {
  display: flex; gap: 11px; padding: 13px 15px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); align-items: flex-start;
}
.alert .ti { font-size: 19px; flex-shrink: 0; margin-top: 1px; }
.alert__title { font-weight: 700; color: var(--text); margin-bottom: 2px; }
.alert--info { background: var(--info-soft); border-color: transparent; color: var(--text); }
.alert--info .ti { color: var(--info); }
.alert--good { background: var(--good-soft); border-color: transparent; }
.alert--good .ti { color: var(--good); }
.alert--warn { background: var(--warn-soft); border-color: transparent; }
.alert--warn .ti { color: var(--warn); }
.alert--danger { background: var(--danger-soft); border-color: transparent; }
.alert--danger .ti { color: var(--danger); }

/* ============================================================
   DROPDOWN MENU
   ============================================================ */
.dropdown { position: relative; display: inline-block; }
.menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
  min-width: 200px; padding: 6px;
  background: var(--elevated); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-4px) scale(0.98); pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}
.dropdown.is-open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--text-2);
  text-align: left;
}
.menu__item .ti { font-size: 17px; }
.menu__item:hover { background: var(--surface-2); color: var(--text); }
.menu__item--danger { color: var(--danger); }
.menu__item--danger:hover { background: var(--danger-soft); }
.menu__sep { height: 1px; background: var(--border); margin: 5px 0; }
.menu__label { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); padding: 6px 10px 4px; }
.menu--up { top: auto; bottom: calc(100% + 6px); }
.menu__userhead { display: flex; align-items: center; gap: 10px; padding: 6px 8px 8px; }
.menu__userwho { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.menu__username { font-weight: 600; font-size: 13px; }
.menu__userrole { font-size: 11px; color: var(--text-3); }

/* Profil sayfası */
.profile-hero { display: flex; align-items: center; gap: 20px; padding: 22px; flex-wrap: wrap; }
.profile-hero__avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 26px; flex-shrink: 0; }
.profile-hero__main { flex: 1; min-width: 200px; }
.profile-hero__name { font-size: 20px; font-weight: 700; }
.profile-hero__mail { color: var(--text-3); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; }
.profile-hero__roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.profile-hero__meta { min-width: 220px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 759px) { .profile-grid { grid-template-columns: 1fr; } .profile-hero { padding: 18px; } }

/* ============================================================
   TOOLTIP (CSS-only, data-tooltip)
   ============================================================ */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #11141b; color: #fff; font-size: 11.5px; font-weight: 500; white-space: nowrap;
  padding: 5px 9px; border-radius: 7px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity var(--ease), transform var(--ease); z-index: 70;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { font-size: 14px; opacity: 0.6; }
.breadcrumb__current { color: var(--text); font-weight: 600; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination__btn {
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 600; display: inline-grid; place-items: center;
}
.pagination__btn:hover { border-color: var(--border-strong); color: var(--text); }
.pagination__btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination__btn:disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty { text-align: center; padding: 44px 20px; }
.empty__icon {
  width: 56px; height: 56px; border-radius: 16px; display: inline-grid; place-items: center;
  background: var(--surface-2); color: var(--text-3); font-size: 26px; margin-bottom: 14px;
}
.empty__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.empty__text { color: var(--text-3); font-size: 13px; max-width: 320px; margin: 0 auto 16px; }

/* ============================================================
   SKELETON
   ============================================================ */
.skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 50%, var(--border)) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton--text { height: 12px; margin: 6px 0; }
.skeleton--line-60 { width: 60%; }
.skeleton--line-40 { width: 40%; }
.skeleton--circle { width: 40px; height: 40px; border-radius: 50%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ============================================================
   TIMELINE (case stage timeline)
   ============================================================ */
.timeline { position: relative; padding-left: 4px; }
.timeline__item { position: relative; display: flex; gap: 13px; padding-bottom: 18px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__rail { display: flex; flex-direction: column; align-items: center; }
.timeline__node {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; flex-shrink: 0; border: 2px solid var(--border); background: var(--surface); color: var(--text-3);
}
.timeline__line { width: 2px; flex: 1; background: var(--border); margin: 4px 0; min-height: 14px; }
.timeline__item:last-child .timeline__line { display: none; }
.timeline__item.is-done .timeline__node { background: var(--good); border-color: var(--good); color: #fff; }
.timeline__item.is-current .timeline__node { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline__item.is-breach .timeline__node { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 0 0 4px var(--danger-soft); }
.timeline__body { padding-top: 2px; min-width: 0; }
.timeline__title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline__meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============================================================
   DRAWER  (slide-in panel from right)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(8, 11, 18, 0.5);
  opacity: 0; visibility: hidden; transition: opacity var(--ease), visibility var(--ease);
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(440px, 94vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform var(--ease);
}
/* shadow only when open — otherwise off-canvas drawers (stacked on pages
   with many drawers, e.g. settings) bleed their blur back into the viewport */
.drawer.is-open { transform: none; box-shadow: var(--shadow-lg); }
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; flex: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   MODAL / DIALOG
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px;
  background: rgba(8, 11, 18, 0.55);
  opacity: 0; visibility: hidden; transition: opacity var(--ease), visibility var(--ease);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  width: min(480px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(8px) scale(0.98); transition: transform var(--ease);
}
.modal-overlay.is-open .modal { transform: none; }
.modal__head { padding: 20px 22px 0; display: flex; gap: 12px; align-items: flex-start; }
.modal__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 21px; background: var(--danger-soft); color: var(--danger); }
.modal__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.modal__body { padding: 8px 22px 20px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.modal__foot { padding: 0 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   TOAST  (default on every page via ui.js)
   ============================================================ */
.toast-region {
  position: fixed; z-index: 120; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
@media (min-width: 1024px) {
  .toast-region { left: auto; right: 24px; bottom: 24px; width: 380px; }
}
.toast {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 14px; border-radius: var(--r-md);
  background: var(--elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateY(12px); opacity: 0;
  transition: transform var(--ease), opacity var(--ease);
}
.toast.is-in { transform: none; opacity: 1; }
.toast.is-out { transform: translateY(8px); opacity: 0; }
.toast__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.toast__icon--info { background: var(--info-soft); color: var(--info); }
.toast__icon--good { background: var(--good-soft); color: var(--good); }
.toast__icon--warn { background: var(--warn-soft); color: var(--warn); }
.toast__icon--danger { background: var(--danger-soft); color: var(--danger); }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-weight: 600; font-size: 13.5px; }
.toast__msg { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.toast__close { color: var(--text-3); font-size: 17px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; flex-shrink: 0; }
.toast__close:hover { background: var(--surface-2); color: var(--text); }
.toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brand); width: 100%; transform-origin: left; }
.toast__bar--info { background: var(--info); }
.toast__bar--good { background: var(--good); }
.toast__bar--warn { background: var(--warn); }
.toast__bar--danger { background: var(--danger); }
.toast__bar.is-run { animation: toastbar linear forwards; }
@keyframes toastbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ============================================================
   UTILITIES
   ============================================================ */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); border: none; margin: 4px 0; }
.muted { color: var(--text-3); }
.kbd {
  font-family: var(--font-sans); font-size: 11px; color: var(--text-2);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px;
}
.code-chip { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; color: var(--text-2); }

.u-full { width: 100%; }
.u-flex1 { flex: 1; min-width: 0; }
.u-pad { padding: 16px; }
.u-pad-sm { padding: 4px 10px; }
.u-mt { margin-top: 16px; }

/* ============================================================
   PAGE PATTERN · WORKFLOW (list + stage editor)
   ============================================================ */
.wfrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.wfrow:first-child { border-top: none; }
.wfrow__name { font-weight: 600; font-size: 14px; }
.wfrow__meta { display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.wfrow__meta span { display: inline-flex; align-items: center; gap: 5px; }
.wfrow__spacer { flex: 1; }

.stageeditor { display: flex; flex-direction: column; gap: 8px; }
.stagerow { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.stagerow__handle { color: var(--text-3); cursor: grab; font-size: 18px; flex-shrink: 0; }
.stagerow__num { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text-2); flex-shrink: 0; }
.stagerow__name { font-weight: 600; font-size: 13.5px; flex: 1; min-width: 90px; }
.stagerow__meta { font-size: 12px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.stagerow__actions { display: flex; gap: 4px; flex-shrink: 0; }
.stagerow--empty { justify-content: center; color: var(--text-3); }

/* ============================================================
   PAGE PATTERN · AUDIT (code/diff block)
   ============================================================ */
.codeblock { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
.diff-old { color: var(--danger); }
.diff-new { color: var(--good); }

/* ============================================================
   PAGE PATTERN · SETTINGS (label/control rows)
   ============================================================ */
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.setrow:first-child { border-top: none; }
.setrow__label { font-weight: 600; font-size: 13.5px; }
.setrow__desc { font-size: 12.5px; color: var(--text-3); margin-top: 2px; max-width: 460px; }
.setrow__control { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .toast, .drawer, .modal, .menu, .overlay, .modal-overlay { transition: none !important; }
  .skeleton, .toast__bar { animation: none !important; }
}

/* ============================================================
   PAGE PATTERN · CASE DETAIL
   ============================================================ */
.casehead { padding: 18px; }
.casehead__top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.casehead__id { display: flex; gap: 13px; align-items: center; }
.casehead__name { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.casehead__title { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.casehead__actions { display: flex; gap: 8px; align-items: center; }
.casehead__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.metaitem { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.metaitem .ti { font-size: 16px; color: var(--text-3); }
.metaitem--warn { color: var(--warn); }
.metaitem--warn .ti { color: var(--warn); }

.casegap { align-items: center; }
.casegap .btn { margin-left: auto; flex-shrink: 0; }

.casegrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 980px) { .casegrid { grid-template-columns: 320px 1fr; align-items: start; } }
.casecol { padding: 16px; }

.activestage { padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.activestage__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.activestage__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.activestage__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }
.activestage__sla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; padding: 14px; background: var(--surface-2); border-radius: var(--r-md); }
@media (min-width: 560px) { .activestage__sla { grid-template-columns: repeat(4, 1fr); } }
.slastat { display: flex; flex-direction: column; gap: 3px; }
.slastat__k { font-size: 11px; color: var(--text-3); }
.slastat__v { font-size: 14px; font-weight: 700; }
.slastat__v--danger { color: var(--danger); }
.activestage__check { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.reqitem { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.reqitem .ti { font-size: 17px; }
.reqitem--done { color: var(--good); }
.activestage__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.feed { display: flex; flex-direction: column; }
.feed__item { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border); }
.feed__item:first-child { border-top: none; }
.feed__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 4px var(--brand-soft); }
.feed__t { font-size: 13.5px; font-weight: 500; }
.feed__m { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ============================================================
   PAGE PATTERN · LIST TOOLBAR & FILTERS (cases/tasks/appts)
   ============================================================ */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* grouped section heading + hint, treated as one block in .content flow */
.section-head { display: flex; flex-direction: column; gap: 4px; }
.section-head .section__title { margin: 0; }
.section-head .section__hint { margin: 0; }
.toolbar .search-inline {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px;
  height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-3);
}
.toolbar .search-inline input { border: none; background: none; outline: none; flex: 1; font-size: 13px; color: var(--text); }
.filter {
  height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.filter .ti { font-size: 16px; color: var(--text-3); }
.filter:hover { border-color: var(--border-strong); color: var(--text); }

/* Inline filter selects inside a toolbar: compact + same height as search/filter
   (otherwise .select's width:100% makes them stack full-width). */
.toolbar .select {
  width: auto;
  min-width: 160px;
  height: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.toolbar .btn { height: 40px; }
/* Fancy-select toolbar içinde native .select gibi kompakt dursun (width:100% ile satır satır olmasın) */
.toolbar .fsel { width: auto; min-width: 160px; }
.toolbar .fsel .fsel__btn { height: 40px; font-size: 13px; color: var(--text-2); }

.tablecard { padding: 0; overflow: hidden; }
.tablecard .tablewrap { margin: 0; }
.tablefoot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--border); }
.tablefoot__info { font-size: 12.5px; color: var(--text-3); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 30px 20px; text-align: center;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-2);
  color: var(--text-2);
}
.dropzone .ti { font-size: 30px; color: var(--text-3); margin-bottom: 4px; }
.dropzone strong { color: var(--brand); }

.section__title--mt { margin-top: 24px; }

/* Approval card (appointment cancellation queue) */
.approval { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.approval__head { display: flex; align-items: center; gap: 11px; }
.approval__name { font-weight: 600; font-size: 13.5px; }
.approval__meta { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.approval__head .badge { margin-left: auto; }
.approval__reason, .approval__repl { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.approval__reason .ti, .approval__repl .ti { font-size: 16px; color: var(--text-3); }
.approval__repl--ok { color: var(--good); }
.approval__repl--ok .ti { color: var(--good); }
.approval__repl--no { color: var(--danger); }
.approval__repl--no .ti { color: var(--danger); }
.approval__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }

/* ============================================================
   DRAWER FORM FIX
   A <form> wrapping .drawer__body + .drawer__foot must itself be a
   flex column so the body scrolls and the panel doesn't overflow
   (caused a stray shadow/strip on the right edge).
   ============================================================ */
.drawer > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* ============================================================
   SHARED ACTION / LAYOUT UTILITIES
   (absorb common inline-style patterns — keep markup CSS-free)
   ============================================================ */
.actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.linkrow { color: var(--brand); font-weight: 500; }
.linkrow:hover { text-decoration: underline; }
.u-mb { margin-bottom: 16px; }
.u-center { text-align: center; }
.u-danger { color: var(--danger); }
.u-good { color: var(--good); }
.u-warn { color: var(--warn); }
/* Drawer form çok sütunlu alan ızgarası (dar ekranda tek sütuna iner) */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: start; }
/* Modern özel açılır liste (fancy-select.js) — native <select> yerine */
.fsel { position: relative; width: 100%; }
.fsel > select.select { display: none; }
.fsel__btn {
  width: 100%; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
  color: var(--text); font-size: 13.5px; cursor: pointer; text-align: left;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.fsel__btn:hover { border-color: color-mix(in srgb, var(--border) 40%, var(--brand)); }
.fsel.is-open .fsel__btn, .fsel__btn:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.fsel__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel__val.is-placeholder { color: var(--text-3); }
.fsel__chev { color: var(--text-3); font-size: 18px; flex-shrink: 0; transition: transform var(--ease); }
.fsel.is-open .fsel__chev { transform: rotate(180deg); }
.fsel__panel {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg, 0 12px 32px -8px rgba(2, 6, 23, .22)); overflow: hidden;
  display: flex; flex-direction: column; max-height: 320px;
}
.fsel__search { padding: 8px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.fsel__search .input { height: 36px; }
.fsel__list { overflow-y: auto; padding: 6px; }
.fsel__group { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px 4px; }
.fsel__opt {
  padding: 9px 10px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--text); cursor: pointer;
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.fsel__opt:hover, .fsel__opt.is-active { background: var(--surface-2); }
.fsel__opt.is-selected { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.fsel__opt__check { margin-left: auto; font-size: 16px; opacity: 0; }
.fsel__opt.is-selected .fsel__opt__check { opacity: 1; }
.fsel__empty { padding: 14px 10px; text-align: center; color: var(--text-3); font-size: 13px; }

/* Ayarlar — dinamik liste satır düzenleme */
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; align-items: center; gap: 8px; }
.opt-row__edit { display: flex; align-items: center; gap: 8px; flex: 1; margin: 0; }
.opt-row__edit .input { flex: 1; min-width: 0; }
.opt-row__sort { width: 62px; flex: none; text-align: center; }
.opt-add { display: flex; gap: 8px; margin-top: 6px; }
.opt-add .input { flex: 1; }
.cell-actions { white-space: nowrap; }

/* Uzun geri-arama notu — tıklayınca tümü açılır (native details + satır kırpma) */
.cell-note { max-width: 360px; }
.note-x__text { cursor: pointer; list-style: none; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-x__text::-webkit-details-marker { display: none; }
.note-x__text::marker { content: ""; }
.note-x__text:hover { color: var(--brand); }
.note-x[open] .note-x__text { -webkit-line-clamp: unset; display: block; overflow: visible; }
.text-primary { color: var(--brand); font-weight: 500; }
.text-primary:hover { text-decoration: underline; }

/* form-group: same contract as .field (bare <label> + control) */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group > label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }

/* permission group inside role drawer */
.permgroup { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--border); }
.permgroup:first-of-type { border-top: none; padding-top: 6px; }
.permgroup__title { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.permgroup__list { display: flex; flex-direction: column; gap: 10px; }
.permgroup__label { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.permgroup__label .code-chip { align-self: flex-start; font-size: 11px; }

.u-hidden { display: none !important; }
.u-mb-sm { margin-bottom: 8px; }
.infobox { background: var(--surface-2); padding: 14px; border-radius: var(--r-md); }

/* Key-value list (stacked label/value rows) — detail summaries */
.kvlist { display: flex; flex-direction: column; margin: 16px 0; padding: 4px 14px; background: var(--surface-2); border-radius: var(--r-md); }
.kvlist__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.kvlist__row:first-child { border-top: none; }
.kvlist__k { font-size: 12.5px; color: var(--text-3); flex-shrink: 0; }
.kvlist__v { font-size: 14px; font-weight: 600; text-align: right; word-break: break-word; }

/* Başvuru kanalı kartları (Şikayetvar / CİMER / THH / Mahkeme …) */
.channels { display: flex; flex-direction: column; gap: 10px; }
.channel-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 15px; background: var(--surface); }
.channel-card--overdue { border-color: var(--danger); background: var(--danger-soft); }
.channel-card--due_soon { border-color: var(--warn); }
.channel-card__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.channel-card__name { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.channel-card__name .ti { font-size: 17px; color: var(--text-3); }
.channel-card__head .badge { margin-left: auto; }
.channel-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.channel-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.channel-card__meta .ti { font-size: 15px; color: var(--text-3); }
.channel-card__meta a { color: var(--brand); }
.channel-card__desc { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.channel-card__sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.kv-chip { font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; color: var(--text-2); }
.kv-chip__k { color: var(--text-3); }

/* Dinamik kanal alan grupları (drawer içinde) */
.chf[hidden] { display: none; }
.chf .section__hint { margin-top: 14px; }

/* Kanal dağılımı kartları (tıklanınca o kanalı filtreler) */
.chan-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .chan-cards { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .chan-cards { grid-template-columns: repeat(7, 1fr); } }
.chan-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--ease); }
.chan-card:hover { border-color: var(--border-strong); }
.chan-card.is-active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.chan-card__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 17px; }
.chan-card__count { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1; }
.chan-card__label { font-size: 11.5px; color: var(--text-3); }
.chan-card__alert { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--warn); }
.chan-card__alert .ti { font-size: 13px; }
.chan-card__alert.is-overdue { color: var(--danger); }

/* Belge / ek dosya ızgarası */
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.attach { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.attach__thumb { height: 108px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.attach__thumb img { width: 100%; height: 100%; object-fit: cover; }
.attach__thumb .ti { font-size: 38px; }
.attach__body { padding: 9px 11px; flex: 1; }
.attach__name { font-size: 12.5px; font-weight: 600; color: var(--text); word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.attach__name:hover { color: var(--brand); }
.attach__meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.attach__foot { display: flex; justify-content: flex-end; padding: 0 8px 8px; }
.infobox__title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.text-sm { font-size: 12.5px; }
.cell-note { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.diff-line { font-size: 12.5px; margin-bottom: 2px; }
.diff-removed { text-decoration: line-through; color: var(--text-3); }
.is-pulsing { animation: htos-pulse 2s infinite; }
@keyframes htos-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-soft); }
  50% { box-shadow: 0 0 0 6px var(--brand-soft); }
}
.modal--lg { max-width: 600px; }
.modal__body--scroll { max-height: 60vh; overflow-y: auto; }
.list__row--danger { background: var(--danger-soft); }
[data-nav] { cursor: pointer; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; justify-content: center; }

/* ============================================================
   PAGE PATTERN · APPOINTMENTS (toolbar, filters, calendar)
   ============================================================ */
body[data-page="appts"] .content,
body[data-page="cases"] .content,
body[data-page="apptreq"] .content,
body[data-page="patients"] .content,
body[data-page="refunds"] .content { max-width: 100%; }
/* Randevu Talepleri — 6 KPI kartı masaüstünde tek satır */
@media (min-width: 1024px) {
  body[data-page="apptreq"] .grid--kpi { grid-template-columns: repeat(6, 1fr); }
}
/* Detay sayfaları (casehead içeren) liste gibi full-bleed olmasın → normal okunur genişlik */
body[data-page="refunds"] .content:has(.casehead),
body[data-page="refunds"] .content:has(.agenda) { max-width: 1320px; }

/* Duruşma / deadline ajandası */
.agenda { display: flex; flex-direction: column; }
.agenda__row { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-top: 1px solid var(--border); color: inherit; border-radius: var(--r-sm); }
.agenda__row:first-child { border-top: none; }
.agenda__row:hover { background: var(--surface-2); }
.agenda__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; }
.agenda__action { flex-shrink: 0; }
.agenda__date { width: 104px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 9px 6px; background: var(--surface-2); border-radius: var(--r-sm); }
.agenda__date strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.agenda__date span { font-size: 11px; color: var(--text-3); text-transform: capitalize; }
.agenda__countdown { font-size: 10.5px; font-weight: 700; color: var(--text-3); margin-top: 3px; text-transform: none; }
.agenda__countdown.is-soon { color: var(--warn); }
.agenda__countdown.is-overdue { color: var(--danger); }
.agenda__row--overdue .agenda__date { background: var(--danger-soft); }
.agenda__row--overdue .agenda__date strong { color: var(--danger); }
.agenda__body { flex: 1; min-width: 0; }
.agenda__title { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.agenda__title .ti { color: var(--text-3); font-size: 16px; }
.agenda__meta { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.agenda__chev { color: var(--text-3); flex-shrink: 0; }

/* Rapor dağılım çubukları */
.report-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .report-cols { grid-template-columns: repeat(2, 1fr); } }
.distrow { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.distrow__label { width: 160px; flex-shrink: 0; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.distrow__bar { flex: 1; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.distrow__fill { display: block; height: 100%; width: var(--w); min-width: 2px; background: var(--brand); border-radius: 999px; }
.distrow__fill--good { background: var(--good); }
.distrow__fill--warn { background: var(--warn); }
.distrow__fill--danger { background: var(--danger); }
.distrow__val { width: 44px; text-align: right; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.kpi__unit { font-size: 16px; font-weight: 600; color: var(--text-3); }

/* Resmi cevap süresi uyarı bandı — çok belirgin */
.sla-warn { border-left: 4px solid var(--danger); }
.sla-warn .alert__title { font-size: 14.5px; }
.sla-warn > .ti { border-radius: 50%; animation: htos-pulse-danger 1.6s infinite; }
@keyframes htos-pulse-danger {
  0%, 100% { box-shadow: 0 0 0 0 var(--danger-soft); }
  50% { box-shadow: 0 0 0 7px var(--danger-soft); }
}
/* Rapor sayfası full-width (liste gibi) — kısıt yok */

/* Dağılım satırında para değeri (geniş val) + alt sayaç */
.distrow__count { color: var(--text-3); font-weight: 400; }
.distrow--money .distrow__val { width: auto; min-width: 96px; font-size: 12.5px; }
.distrow--sep { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }

/* Filtre çubuğunda tarih alanı (etiket + input) */
.datefield { display: inline-flex; flex-direction: column; gap: 3px; }
.datefield > span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-3); }
.datefield .input { padding-top: 7px; padding-bottom: 7px; }

/* Aylık trend — dikey bar grafiği */
.barchart { display: flex; align-items: flex-end; gap: 7px; height: 190px; padding-top: 14px; }
.barchart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.barchart__bar { width: 100%; max-width: 42px; height: var(--h, 0%); min-height: 3px; background: var(--brand); border-radius: 6px 6px 0 0; transition: height var(--ease); }
.barchart__col:hover .barchart__bar { background: var(--brand-strong, var(--brand)); }
.barchart__val { font-size: 11px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.barchart__label { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.appt-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.appt-toolbar .select { min-width: 150px; }
.daterange { display: none; gap: 8px; align-items: center; flex-wrap: wrap; }
.daterange.is-open { display: flex; }
.daterange .input { max-width: 140px; }
.daterange__sep { color: var(--text-3); }
.appt-calendar { padding: 18px; }
.appt-empty { text-align: center; padding: 44px 16px; color: var(--text-3); }
.appt-empty .ti { font-size: 44px; opacity: 0.5; display: block; margin-bottom: 12px; }

/* ============================================================
   PAGE PATTERN · LOGIN (standalone, no app shell)
   ============================================================ */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { background: var(--surface); padding: 40px; border-radius: var(--r-xl); border: 1px solid var(--border); width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-head { text-align: center; margin-bottom: 32px; }
.login-head__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--brand-soft); color: var(--brand); border-radius: var(--r-md); margin-bottom: 16px; font-size: 28px; }
.login-head__title { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--text); margin: 0 0 8px; letter-spacing: -0.02em; }
.login-head__sub { color: var(--text-2); margin: 0; font-size: 14px; }
.login-form .field { margin-bottom: 20px; }
.login-form .alert { margin-bottom: 20px; }
.login-form .btn { width: 100%; justify-content: center; height: 44px; font-size: 14.5px; margin-top: 10px; }
@media (max-width: 480px) { .login-card { padding: 28px 22px; } }

/* ============================================================
   RESPONSIVE TABLES → STACKED CARDS ON MOBILE
   No horizontal scroll: each row becomes a card, each cell a
   label/value line via data-label. Applies under 760px.
   ============================================================ */
@media (max-width: 759px) {
  .tablewrap { overflow-x: visible; margin: 0; }
  .datatable, .table { min-width: 0; font-size: 13px; }

  .datatable thead, .table thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .datatable, .datatable tbody, .datatable tr, .datatable td,
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }

  .datatable tr, .table tr {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 4px 2px; margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }
  .datatable tr:last-child, .table tr:last-child { margin-bottom: 0; }

  .datatable td, .table td {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 9px 13px; border-bottom: 1px solid var(--border);
    text-align: right; white-space: normal; min-width: 0;
  }
  .datatable tr td:last-child, .table tr td:last-child { border-bottom: none; }

  .datatable td::before, .table td::before {
    content: attr(data-label); flex-shrink: 0; text-align: left;
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-3);
  }
  /* cells with no data-label (e.g. action button cells) span full width */
  .datatable td:not([data-label]), .table td:not([data-label]) { justify-content: flex-end; }
  .datatable td:not([data-label])::before, .table td:not([data-label])::before { content: none; }
  .datatable td .actions, .table td .actions { justify-content: flex-end; }

  /* tablecard wraps its own padding away on mobile */
  .tablecard { padding: 10px; background: transparent; border: none; box-shadow: none; }

  /* kredi alt-satırı: üstteki dosya kartına yapışık şerit */
  .datatable tbody tr.subrow {
    margin-top: -11px; border-top: none; border-radius: 0 0 var(--r-md) var(--r-md);
    padding: 0; overflow: hidden;
  }
  .datatable tbody tr.subrow td { padding: 0; border-bottom: none; }
}

/* ---- Sonuçlandırma detayı kartı ---- */
.resolution { border-left: 3px solid var(--good); }
.reslist { display: grid; gap: 2px; margin-top: 12px; }
.resitem {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.resitem:last-child { border-bottom: none; }
.resitem__k { color: var(--text-3); font-size: 13px; flex-shrink: 0; }
.resitem__v { font-weight: 600; text-align: right; }

/* ---- Geri arama SMS bildirim alıcıları ---- */
.notify-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.notify-col { padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.report-preview { padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rpcell { padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 2px; }
.rpcell__n { font-size: 19px; font-weight: 700; color: var(--text); }
.rpcell__l { font-size: 12px; color: var(--text-3); }
.bizhours { font-size: 13px; color: var(--text-2); text-align: right; }

/* ── Hızlı Düzenleme (toplu inline) ───────────────────────────────── */
.datatable--qedit td { vertical-align: top; }
.qedit-field { min-width: 170px; }
.qedit-field[data-missing="1"] { border-color: var(--warn); background: var(--warn-soft); }
.qedit-hint { display: block; margin-top: 3px; font-size: 11px; color: var(--text-3); }
.qedit-reason { margin-top: 6px; }
.qedit-reason__input { min-width: 170px; font-size: 12.5px; }

/* ── Odontogram (AlpiOS Faz 1B — Medica portu) ────────────────────── */
.odonto { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.odonto__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.odonto__legend { display: flex; gap: 5px; flex-wrap: wrap; }
.leg-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--text-2); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.leg-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.leg-dot--healthy { background: var(--good); }
.leg-dot--implant { background: var(--brand); }
.leg-dot--crown { background: var(--warn); }
.leg-dot--decay { background: var(--danger); }
.leg-dot--extraction { background: var(--text-3); }
.odonto__chart { padding: 16px; overflow-x: auto; }
.jaw-title { text-align: center; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; margin: 4px 0 6px; }
.jaw-row { display: flex; align-items: flex-end; gap: 2px; justify-content: center; min-width: 640px; }
.jaw-row--low { align-items: flex-start; }
.jaw-mid { display: flex; align-items: center; justify-content: center; margin: 6px 0; min-width: 640px; }
.jaw-mid__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.jaw-mid__label { padding: 0 12px; font-size: 9px; color: var(--text-3); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0; }
.tooth { display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; padding: 2px; border-radius: 8px; transition: background var(--ease); }
.tooth:hover { background: var(--brand-soft); }
.tooth.selected { background: var(--brand-soft); outline: 2px solid var(--brand); outline-offset: 1px; }
.tooth-num { font-size: 9.5px; color: var(--text-3); font-weight: 600; line-height: 1.2; }
.tooth-svg { width: 32px; height: 50px; display: flex; align-items: center; justify-content: center; transition: transform var(--ease); }
.tooth:hover .tooth-svg { transform: scale(1.08); }
.tooth-svg svg { width: 100%; height: 100%; }
.tooth[data-s="implant"] .tooth-num { color: var(--brand); font-weight: 700; }
.tooth[data-s="crown"] .tooth-num { color: var(--warn); font-weight: 700; }
.tooth[data-s="decay"] .tooth-num { color: var(--danger); font-weight: 700; }
.tooth[data-s="extraction"] { opacity: .45; }
.tooth[data-s="extraction"] .tooth-num { text-decoration: line-through; }
.tooth-panel { padding: 14px 16px; background: var(--surface-2); border-top: 1px solid var(--border); }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tp-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tp-num { background: var(--brand); color: #fff; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.tp-card { padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.tp-card__label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.tp-card__val { font-size: 13px; font-weight: 600; margin-top: 2px; }
.tp-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tp-actions .select { width: auto; min-width: 130px; }

/* ── Geri arama: hasta arama sonuçları ────────────────────────────── */
.cbsearch__results { margin-top: 6px; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.cbsearch__result { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 9px 12px; background: var(--surface); border: 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--ease); }
.cbsearch__result:last-child { border-bottom: 0; }
.cbsearch__result:hover { background: var(--brand-soft); }
.cbsearch__meta { font-size: 12px; color: var(--text-3); }
.cbsearch__empty { padding: 10px 12px; font-size: 13px; color: var(--text-3); }
.cb-sub { margin-top: 4px; }
.datatable--qedit tr.is-saving { opacity: .55; }
.datatable--qedit tr.is-saving .qedit-field { cursor: progress; }
.qedit-flash { animation: qeditFlash 1s ease; }
@keyframes qeditFlash {
  0%   { background: var(--good-soft); }
  100% { background: transparent; }
}
