/* Hastane / Doktor Yönetimi + Saha Ekibi — scoped black/gold (overrides global white table) */
.frt-page{
  --frt-bg:#0F1117;--frt-card:#171A22;--frt-border:#2A2F3A;--frt-gold:#D6B04D;
  --frt-muted:#9CA3AF;--frt-pos:#62D26F;--frt-neg:#E45D5D;
  color:#fff;padding:12px 22px;display:flex;flex-direction:column;gap:10px;min-height:0;flex:1 1 0%;
  color-scheme:dark;
}
.frt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.frt-title{margin:0;font-size:18px;font-weight:700;letter-spacing:.02em;color:#fff}
.frt-sub{margin:4px 0 0;font-size:12px;color:var(--frt-muted)}
.frt-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.frt-input{
  height:36px;min-width:160px;padding:0 10px;border-radius:8px;border:1px solid var(--frt-border);
  background:#0F1117 !important;color:#F3F4F6 !important;font:inherit;font-size:12px;color-scheme:dark;
}
.frt-input option{background:#171A22;color:#F3F4F6}
.frt-btn{
  height:36px;padding:0 12px;border-radius:8px;border:1px solid var(--frt-border);
  background:var(--frt-card);color:#F3F4F6;font:inherit;font-size:11px;cursor:pointer;
}
.frt-btn-primary{
  border:none;background:linear-gradient(135deg,#E8C96A,#D6B04D 55%,#B8922E);color:#1a1408;font-weight:700;
}
.frt-table-wrap{
  overflow:auto;border:1px solid var(--frt-border);border-radius:12px;
  background:var(--frt-card) !important;min-height:0;flex:1;
}
.frt-table{width:100%;border-collapse:collapse;background:transparent !important;color:#F3F4F6}
.frt-table th{
  position:sticky;top:0;z-index:1;background:#1c2030 !important;color:var(--frt-gold) !important;
  font-size:10px;text-align:left;padding:8px 10px;border-bottom:1px solid var(--frt-border);white-space:nowrap;
}
.frt-table td{
  padding:8px 10px;border-bottom:1px solid var(--frt-border);
  font-size:9.5px !important;color:#F3F4F6 !important;background:#171A22 !important;
}
.frt-table tbody tr:nth-child(even) td{background:#141820 !important}
.frt-table tbody tr:hover td{background:#1e2430 !important;color:#fff !important}
.frt-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:600}
.frt-badge.is-on{background:rgba(98,210,111,.22);color:#A7F3C0}
.frt-badge.is-off{background:rgba(228,93,93,.18);color:#FCA5A5}
.frt-actions{display:flex;flex-wrap:wrap;gap:4px}
.frt-empty{text-align:center;color:var(--frt-muted);padding:16px}
.frt-modal{display:flex;flex-direction:column;gap:10px;min-width:min(420px,90vw);color:#F3F4F6;color-scheme:dark}
.frt-cand-list{max-height:280px;overflow:auto;border:1px solid var(--frt-border);border-radius:8px;padding:8px;background:#0F1117}
.frt-check{display:flex;align-items:center;gap:8px;padding:6px 4px;font-size:12px;color:#fff}
.frt-check small{color:var(--frt-muted);margin-left:6px}
.frt-modal-actions{display:flex;justify-content:flex-end;gap:8px}

/* Hastane / Doktor Yönetimi */
.hd-page{
  --hd-bg:#0F1117;--hd-card:#171A22;--hd-border:#2A2F3A;--hd-gold:#D6B04D;
  --hd-muted:#9CA3AF;--hd-pos:#62D26F;--hd-neg:#E45D5D;
  color:#F3F4F6 !important;padding:12px 22px;display:flex;flex-direction:column;gap:10px;min-height:0;flex:1 1 0%;
  color-scheme:dark;background:transparent;
}
.hd-page *{box-sizing:border-box}
.hd-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.hd-title{margin:0;font-size:18px;font-weight:700;letter-spacing:.02em;color:#FFFFFF}
.hd-sub{margin:4px 0 0;font-size:12px;color:var(--hd-muted)}
.hd-tabs{display:flex;gap:6px}
.hd-tab{
  height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--hd-border);
  background:var(--hd-card);color:var(--hd-muted);font:inherit;font-size:12px;cursor:pointer;
}
.hd-tab.is-active{border-color:var(--hd-gold);color:#fff;box-shadow:inset 0 -2px 0 var(--hd-gold)}
.hd-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hd-input{
  height:36px;min-width:150px;padding:0 10px;border-radius:8px;border:1px solid var(--hd-border);
  background:#0F1117 !important;color:#F3F4F6 !important;font:inherit;font-size:12px;color-scheme:dark;
}
.hd-input:focus{outline:2px solid rgba(214,176,77,.55);outline-offset:1px}
.hd-input option,
.hd-form select option{
  background:#171A22 !important;color:#F3F4F6 !important;
}
.hd-input::placeholder{color:#9CA3AF;opacity:1}
.hd-btn{
  height:36px;padding:0 12px;border-radius:8px;border:1px solid var(--hd-border);
  background:#1c2030 !important;color:#F3F4F6 !important;font:inherit;font-size:11px;cursor:pointer;
}
.hd-btn:hover{border-color:rgba(214,176,77,.45);color:#fff !important}
.hd-btn-primary{
  border:none !important;background:linear-gradient(135deg,#E8C96A,#D6B04D 55%,#B8922E) !important;
  color:#1a1408 !important;font-weight:700;
}
.hd-btn.is-warn{border-color:rgba(228,93,93,.45);color:#FCA5A5 !important}
.hd-btn.is-ok{border-color:rgba(98,210,111,.45);color:#A7F3C0 !important}
.hd-table-wrap{
  overflow:auto;border:1px solid var(--hd-border);border-radius:12px;
  background:#171A22 !important;min-height:0;flex:1;
}
.hd-table{
  width:100%;border-collapse:collapse;background:transparent !important;color:#F3F4F6 !important;
}
.hd-table thead th{
  position:sticky;top:0;z-index:1;background:#1c2030 !important;color:var(--hd-gold) !important;
  font-size:10px !important;text-align:left;padding:8px 10px;border-bottom:1px solid var(--hd-border);
  text-transform:none;font-weight:700;
}
.hd-table tbody td{
  padding:8px 10px;border-bottom:1px solid #2A2F3A;
  font-size:9.5px !important;color:#F3F4F6 !important;background:#171A22 !important;
  opacity:1 !important;
}
.hd-table tbody tr:nth-child(even) td{background:#141820 !important}
.hd-table tbody tr:hover td{
  background:#222836 !important;color:#FFFFFF !important;
}
.hd-table tbody tr.is-selected td{
  background:rgba(214,176,77,.14) !important;box-shadow:inset 2px 0 0 var(--hd-gold);
}
.hd-badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:10px;font-weight:700}
.hd-badge.is-on{background:rgba(22,101,52,.55);color:#BBF7D0}
.hd-badge.is-off{background:rgba(127,29,29,.45);color:#FECACA}
.hd-actions{display:flex;flex-wrap:wrap;gap:4px}
.hd-empty{text-align:center;color:var(--hd-muted);padding:16px;background:transparent !important}
.hd-form{display:flex;flex-direction:column;gap:10px;min-width:min(400px,90vw);color-scheme:dark;color:#F3F4F6}
.hd-form label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--hd-muted);font-weight:600}
.hd-form input,.hd-form select,.hd-form textarea{
  height:36px;padding:0 10px;border-radius:8px;border:1px solid var(--hd-border);
  background:#0F1117 !important;color:#F3F4F6 !important;font:inherit;font-size:12px;color-scheme:dark;
}
.hd-form textarea{height:auto;min-height:72px;padding:8px 10px}
.hd-form input:focus,.hd-form select:focus,.hd-form textarea:focus{
  outline:2px solid rgba(214,176,77,.55);outline-offset:1px;
}
.hd-form-actions{display:flex;justify-content:flex-end;gap:8px}

/* Modal content when opened from HD page */
.modal-card:has(.hd-form),
.modal-card:has(.frt-modal){
  background:#171A22 !important;color:#F3F4F6 !important;border:1px solid #2A2F3A;
}
.modal-card:has(.hd-form) h2,
.modal-card:has(.frt-modal) h2{color:#D6B04D}
