/* GENEL */

:root {
  --mobile-nav-offset: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #eef2f7;
}

nav {
  background: #1f2937;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

nav button {
  background: #374151;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-right: 0;
  border-radius: 6px;
  cursor: pointer;
}

nav button:hover {
  background: #4b5563;
}

.navLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.navMenuGroup {
  position: relative;
}

.navMenuBtn {
  background: #374151;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.navMenuBtn:hover {
  background: #4b5563;
}

.navDropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  padding: 6px;
  z-index: 9999;
}

.navDropdown.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navDropdown button {
  width: 100%;
  text-align: left;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
}

.navDropdown button:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  transform: none;
}

.navRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.mobileBottomNav {
  display: none;
}

.mobileBottomSheetBackdrop,
.mobileBottomSheet {
  display: none;
}

#notlarPage {
  position: relative;
  min-height: calc(100vh - 120px);
}

#notlarListe {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.notlarKart {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.notlarKartUst {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.notlarKartBaslik {
  margin-top: 4px;
  font-size: 14px;
  color: #1f2937;
}

.notlarKartMeta {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.notlarKartActions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.notlarKartActions button {
  min-height: 34px;
  padding: 6px 10px;
}

#notEditorPage {
  max-width: 760px;
  margin: 0 auto;
}

.notEditorPersonelKart {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #eff6ff;
}

.notEditorPersonelKart.active {
  display: block;
}

.notEditorPersonelKart b {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.notEditorPersonelKart span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #475569;
}

.notEditorForm {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.notEditorAlan {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notEditorAlan label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.notEditorAlan input,
.notEditorAlan select,
.notEditorAlan textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  font-size: 14px;
  padding: 9px 10px;
}

.notEditorAlan textarea {
  min-height: 110px;
  resize: vertical;
}

.notSureGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#notKaydetBtn {
  min-height: 40px;
}

#yeniNotFab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
  z-index: 940;
}

#yeniNotFab:hover {
  background: #1d4ed8;
  transform: none;
}

#notTipiSheetBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .38);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: -1;
  pointer-events: none;
}

#notTipiSheetBackdrop.active {
  opacity: 1;
  visibility: visible;
  z-index: 1200;
  pointer-events: auto;
}

#notTipiSheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -10px 26px rgba(15, 23, 42, .22);
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .22s ease;
  z-index: -1;
  visibility: hidden;
  pointer-events: none;
}

#notTipiSheet.active {
  transform: translateY(0);
  z-index: 1201;
  visibility: visible;
  pointer-events: auto;
}

#notTipiSheet .sheetHandle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 2px auto 8px;
}

#notTipiSheet h3 {
  margin: 2px 0 10px;
  font-size: 16px;
  color: #0f172a;
}

.notTipiSecenek {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  background: #f8fafc;
  margin-bottom: 8px;
  text-align: left;
  color: #0f172a;
}

.notTipiSecenek:last-child {
  margin-bottom: 0;
}

.notTipiSecenek:hover {
  background: #f1f5f9;
  transform: none;
}

.notTipiIcon {
  font-size: 18px;
  line-height: 1.1;
  flex-shrink: 0;
  margin-top: 1px;
}

.notTipiMetin {
  min-width: 0;
}

.notTipiBaslik {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.notTipiAlt {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.25;
}

.globalSearchWrap {
  position: relative;
}

#globalSearchInput {
  width: 280px;
  max-width: 48vw;
  height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: #111827;
  color: #f9fafb;
  font-size: 13px;
}

#globalSearchInput::placeholder {
  color: #9ca3af;
}

#globalSearchInput:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

#globalSearchResults {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 420px;
  max-width: min(88vw, 420px);
  max-height: 360px;
  overflow: auto;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  display: none;
  z-index: 9999;
}

.globalSearchItem {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.globalSearchItem:last-child {
  border-bottom: none;
}

.globalSearchItem:hover {
  background: #f8fafc;
}

.globalSearchMeta {
  margin-top: 3px;
  font-size: 12px;
  color: #475569;
}

.globalSearchEmpty {
  padding: 10px 12px;
  font-size: 13px;
  color: #6b7280;
}

.aramaRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.aramaRowInfo {
  min-width: 0;
  flex: 1;
}

.aramaRowMeta {
  color: #475569;
  font-size: 12px;
  margin-top: 2px;
}

.aramaQuickActions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

#aramaSecimBar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 0 10px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #eff6ff;
}

#aramaSecimBar.active {
  display: flex;
}

#aramaSecimBar .secimText {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.miniCard.seciliPersonel {
  border: 2px solid #2563eb;
  background: #eff6ff;
}

.iconActionBtn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0;
}

.iconActionBtn:hover {
  background: #e2e8f0;
  transform: none;
}

button {
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  background: #3b82f6;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}


section {
  display: none;
  padding: 25px;
  max-width: 100%;
}

.active {
  display: block;
}

h2 {
  margin-top: 0;
}


.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.inputGroup label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.inputGroup input:not(.tarih) {
  width: 100%;
}

.formGrid {
  display: grid;
  grid-template-columns: 170px minmax(220px, 1fr) 170px minmax(220px, 1fr);
  gap: 10px 16px;
  align-items: center;
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e9f2;
}

.inputGroup {
  display: contents;
}

.inputGroup label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.inputGroup input,
.inputGroup select,
textarea {
  height: 30px;
  padding: 6px 9px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #d7dce5;
  background: #f9fbfd;
  transition: all .15s ease;
}

.inputGroup input:focus,
.inputGroup select:focus,
textarea:focus {
  outline: none;
  border: 1px solid #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* küçük tarih kutuları */
.tarih {
  width: 95px;
  text-align: center;
  letter-spacing: 1px;
}

.tarih {
  width: 105px;
  text-align: center;
  letter-spacing: 1px;
  font-weight: 600;
}

/* not alanları tam genişlik */
textarea {
  grid-column: 1 / -1;
  height: 60px;
}

.planlamaPanel {
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.planlamaPanel select {
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}


/* ---------- TABLET ---------- */
@media (max-width: 900px) {
  .formGrid {
    grid-template-columns: 140px 1fr 140px 1fr;
  }

  #kayit .formGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #kayit .kayitSectionTitle,
  #kayit .kayitSubTitle {
    grid-column: 1 / -1;
  }

  #kayit .inputGroup input,
  #kayit .inputGroup select,
  #kayit textarea {
    height: 40px;
  }

  #kayit textarea {
    height: 96px;
  }

  #kayit .tarih {
    width: 100%;
  }

  #kayit .kanGrubuRow {
    grid-template-columns: 1fr;
  }

  .navLeft {
    width: 100%;
    gap: 8px;
  }

  .navMenuGroup {
    flex: 1 1 0;
    min-width: 120px;
  }

  .navMenuBtn {
    width: 100%;
    text-align: center;
  }

  .navDropdown {
    left: 0;
    right: 0;
    min-width: unset;
  }

  #topluIslem {
    padding: 14px;
  }

  .topluGrid {
    grid-template-columns: 1fr;
  }

  .topluAlanDate {
    display: none;
  }

  .topluMobileDate {
    display: flex;
  }

  .topluTetkikSecim {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .topluTetkikSecim label {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: flex-start;
    white-space: normal;
  }

  .topluPanel {
    padding: 12px;
  }

  #topluPersonelListe {
    gap: 6px;
  }

  .topluPersonelSatir {
    padding: 10px 12px;
    min-height: 64px;
    border-radius: 12px;
  }

  .topluPersonelSatir input {
    display: none;
  }

  .topluMeta {
    margin-top: 2px;
  }

  .topluSecimBar {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #eef2f7;
    padding: 6px 0;
    margin-bottom: 8px;
  }

  .topluSecimButonlar button {
    min-height: 36px;
    padding: 8px 10px;
  }

  .topluExportBar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #topluExcelIndirBtn {
    width: 100%;
    min-height: 38px;
  }

  .topluSticky {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 8px;
    border: 1px solid #dbe4f0;
    box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.08);
  }

  .topluStickyGrid {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 8px;
  }

  .topluSticky .topluAlan {
    gap: 4px;
  }

  .topluSticky .topluAlan label {
    font-size: 11px;
  }

  #topluTarihInputMobile {
    height: 36px;
    width: 100%;
  }

  #firmaRaporu {
    padding: 14px;
  }

  .firmaRaporOzet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .firmaRaporKart {
    padding: 8px 10px;
  }

  .firmaRaporKartValue {
    font-size: 18px;
  }

  #excelImport {
    padding: 14px;
  }

  .excelMapGrid {
    grid-template-columns: 1fr;
  }

  .excelInputRow {
    flex-direction: column;
    align-items: stretch;
  }

  .excelInputRow button {
    width: 100%;
  }

  #dashboard #sayaclar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    align-items: center;
  }

  #dashboard #sayaclar .sayac {
    min-width: 0;
    height: 36px;
    padding: 3px 8px;
    border-radius: 999px;
    gap: 6px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  #dashboard #sayaclar .sayacLabel {
    font-size: 9px;
    line-height: 1;
    letter-spacing: .1px;
    text-transform: uppercase;
  }

  #dashboard #sayaclar .sayacValue {
    font-size: 15px;
    line-height: 1;
  }

  #detayModal {
    overflow-x: hidden;
    padding: 10px;
    box-sizing: border-box;
  }

  #detayModalBody {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
    padding: 14px !important;
  }

  #detayIcerik {
    overflow-x: hidden;
    word-break: break-word;
  }

  .detayBulk {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .detayBulkDate {
    width: 120px !important;
    height: 30px;
    max-width: 100%;
  }

  .detayBulkChecks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 6px 8px;
    margin-top: 0;
  }

  .detayBulkChecks label {
    min-height: 34px;
    padding: 5px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 12px;
    line-height: 1.2;
  }

  .detayBulkApplyBtn {
    width: 100%;
    margin-top: 2px;
  }

  .detayActions {
    flex-direction: column;
    gap: 8px;
  }

  .detayActions button {
    width: 100%;
  }

  #kayit .dogumWrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #kayit #dogum {
    width: 100%;
  }

  #kayit .yasRow {
    justify-content: flex-start;
  }
}

/* ---------- TELEFON ---------- */
@media (max-width: 600px) {

  .formGrid {
    grid-template-columns: 1fr;
  }

  .inputGroup {
    display: block;
  }

  .inputGroup label {
    margin-top: 8px;
    display: block;
  }

  .inputGroup input,
  .inputGroup select {
    width: 100%;
  }

  .tarih {
    width: 140px;
  }

  textarea {
    grid-column: auto;
  }

  .navRight {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .navMenuBtn {
    padding: 8px 10px;
    font-size: 12px;
  }

  #globalSearchInput {
    width: 62vw;
    max-width: 62vw;
  }

  #globalSearchResults {
    right: auto;
    left: 0;
    width: min(92vw, 420px);
  }

  .aramaRow {
    align-items: flex-start;
  }

  .aramaQuickActions {
    gap: 4px;
  }

  .iconActionBtn {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  #kayit {
    padding: 20px;
  }

  #kayit .formGrid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
  }

  #kayit .kayitSectionTitle {
    margin-top: 6px;
    font-size: 11px;
    padding: 7px 10px;
  }

  #kayit .kayitSubTitle {
    margin-top: 4px;
    font-size: 10px;
  }

  #kayit .inputGroup {
    padding: 9px 10px;
    border-radius: 10px;
  }

  #kayit .inputGroup input,
  #kayit .inputGroup select,
  #kayit textarea {
    height: 34px;
  }

  #kayit textarea {
    height: 84px;
  }

  #kayit .kayitActions {
    justify-content: stretch;
  }

  #kayit .kayitActions button {
    width: 100%;
  }

  .topluTetkikSecim {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #dashboard #sayaclar {
    gap: 4px;
  }

  #dashboard #sayaclar .sayac {
    height: 34px;
    padding: 2px 6px;
    border-radius: 999px;
    gap: 4px;
  }

  #dashboard #sayaclar .sayacLabel {
    font-size: 8px;
  }

  #dashboard #sayaclar .sayacValue {
    font-size: 14px;
  }

  .firmaRaporOzet {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .firmaRaporKart {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .firmaRaporKartValue {
    font-size: 17px;
  }

  .excelMiniTable {
    font-size: 11px;
  }
}

#dashboard #sayaclar .sayac {
  padding: 14px 18px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.15;
  height: auto;
  min-height: 0;
  align-self: flex-start;
}

#dashboard #sayaclar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

#dashboard #sayaclar .sayacLabel {
  font-size: 12px;
  letter-spacing: .2px;
  opacity: .95;
}

#dashboard #sayaclar .sayacValue {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* DASHBOARD SAYACLAR - MOBIL BADGE STRIP (desktop degismez) */
@media (max-width: 900px) {
  #dashboard #sayaclar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
  }

  #dashboard #sayaclar .sayac {
    flex: 1 1 0;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  #dashboard #sayaclar .sayacLabel {
    font-size: 9px !important;
    line-height: 1 !important;
    margin: 0 !important;
    opacity: .95;
  }

  #dashboard #sayaclar .sayacValue {
    font-size: 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }
}

@media (max-width: 600px) {
  #dashboard #sayaclar {
    gap: 5px !important;
  }

  #dashboard #sayaclar .sayac {
    padding: 3px 7px !important;
    gap: 3px !important;
  }

  #dashboard #sayaclar .sayacLabel {
    font-size: 8px !important;
  }

  #dashboard #sayaclar .sayacValue {
    font-size: 13px !important;
  }
}

.kirmizi {
  background: #dc2626;
}

.sari {
  background: #f59e0b;
}

.mavi {
  background: #2563eb;
}

.kontrolKart {
  padding: 8px 12px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
  font-size: 13px;
}

.kontrolAd {
  font-weight: 600;
  font-size: 13px;
}

.kontrolBelgeler {
  font-size: 12px;
  color: #b91c1c;
}

.kontrolBelgeler span {
  background: #fee2e2;
  padding: 3px 7px;
  border-radius: 6px;
  margin-right: 4px;
  display: inline-block;
}

#dashboardAksiyonContainer {
  margin-bottom: 10px;
}

.dashboardAksiyonList {
  display: grid;
  gap: 8px;
}

.dashboardAksiyonCard {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.dashboardAksiyonUst {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dashboardAksiyonBaslik {
  margin-top: 3px;
  font-size: 13px;
  color: #334155;
}

.dashboardAksiyonActions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.dashboardAksiyonActions button {
  min-height: 34px;
  padding: 6px 10px;
}

.kritikKart {
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.kritikAcil {
  background: #fee2e2;
}

.kritikBugun {
  background: #ffedd5;
}

.kritikYaklasan {
  background: #fef9c3;
}

.periyodikExpired {
  background: #fee2e2 !important;
  border-left: 4px solid #dc2626;
}

.periyodik30 {
  background: #ffedd5 !important;
  border-left: 4px solid #f97316;
}

.periyodik90 {
  background: #fef9c3 !important;
  border-left: 4px solid #eab308;
}

.periyodikBadge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.periyodikBadgeExpired {
  background: #fee2e2;
  color: #b91c1c;
}

.periyodikBadge30 {
  background: #ffedd5;
  color: #c2410c;
}

.periyodikBadge90 {
  background: #fef9c3;
  color: #a16207;
}

.detayPeriyodik {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
}

.detayBulk {
  margin-top: 8px;
}

.detayBulk b {
  display: block;
  margin-bottom: 8px;
}

.detayBulkDate {
  width: 120px;
  height: 32px;
}

.detayBulkChecks {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.detayBulkChecks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detayBulkApplyBtn {
  margin-top: 10px;
}

.detayActions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.dogumWrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.yasRow {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* TOPLU ISLEM */
#topluIslem {
  padding: 24px;
}

.topluPanel {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  padding: 14px;
  margin-bottom: 12px;
}

.topluGrid {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  align-items: end;
}

.topluAlan {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.topluAlan label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.topluAlan select,
.topluAlan input {
  height: 34px;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.topluTetkikSecim {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}

.topluTetkikSecim label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.topluInfo {
  margin: 8px 0 10px;
  font-size: 13px;
  color: #475569;
}

.topluSecimBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.topluSecimButonlar {
  display: flex;
  gap: 8px;
}

.topluSecimButonlar button {
  padding: 6px 10px;
  border-radius: 8px;
  background: #334155;
  font-size: 12px;
}

.topluSeciliSayi {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.topluExportBar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}

.topluExportBar .topluAlan {
  flex: 1;
}

#topluExcelIndirBtn {
  height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  background: #0f766e;
}

#topluExcelIndirBtn:hover {
  background: #0d9488;
}

#topluPersonelListe {
  display: grid;
  gap: 8px;
  padding-bottom: 120px;
}

.topluPersonelSatir {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  cursor: pointer;
}

.topluPersonelSatir input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.topluPersonelSatir.secili {
  border-color: #60a5fa;
  background: #eff6ff;
}

.topluPersonelBilgi {
  min-width: 0;
}

.topluAd {
  font-weight: 700;
  color: #0f172a;
}

.topluMeta {
  font-size: 12px;
  color: #64748b;
}

.topluSticky {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(238, 242, 247, 0.7), #eef2f7 45%);
}

.topluSheetBackdrop,
.topluSheetHandle,
.topluSelectionFloat {
  display: none;
}

.topluStickyGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.topluMobileDate {
  display: none;
}

.topluSticky button {
  width: 100%;
  height: 40px;
  border-radius: 10px;
}

/* FIRMA RAPORU */
#firmaRaporu {
  padding: 24px;
}

.firmaRaporPanel {
  background: white;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.firmaRaporPanel label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.firmaRaporPanel select {
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 7px 9px;
}

.firmaRaporOzet {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.firmaRaporKart {
  border-radius: 10px;
  padding: 10px 12px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.firmaRaporKartLabel {
  font-size: 11px;
  opacity: .95;
}

.firmaRaporKartValue {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.firmaRaporToplam {
  background: #2563eb;
}

.firmaRaporGecmis {
  background: #dc2626;
}

.firmaRapor30 {
  background: #f97316;
}

.firmaRapor90 {
  background: #eab308;
  color: #1f2937;
}

.firmaRaporGuncel {
  background: #16a34a;
}

#firmaRaporListe {
  display: grid;
  gap: 8px;
}

.firmaRaporSatir {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.firmaRaporAd {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
}

.firmaRaporEtiketler {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.firmaEtiket {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.firmaEtiketEksik {
  background: #dbeafe;
  color: #1d4ed8;
}

.firmaEtiketGecmis {
  background: #fee2e2;
  color: #b91c1c;
}

/* EXCEL ICE AKTAR */
#excelImport {
  padding: 24px;
}

.excelPanel {
  background: white;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.excelPanel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.excelInputRow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.excelMapGrid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 10px;
  align-items: center;
}

.excelMapGrid label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.excelMapGrid select {
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 7px 9px;
}

.excelMiniTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.excelMiniTable th,
.excelMiniTable td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: left;
}

.excelMiniTable th {
  background: #f8fafc;
  font-weight: 700;
}

.excelProgressBar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 8px;
}

.excelProgressFill {
  height: 100%;
  width: 0%;
  background: #2563eb;
  transition: width .2s linear;
}

.excelStatus {
  font-size: 12px;
  color: #334155;
  margin-top: 6px;
}

.excelErrorList {
  margin-top: 8px;
  font-size: 12px;
  color: #b91c1c;
  max-height: 160px;
  overflow: auto;
}

@media (max-width:700px) {
  body.topluSheetLock {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }

  #topluIslem .topluPanel .topluAlanDate {
    display: none !important;
  }

  #topluIslem .topluPanel #topluTetkikSecim {
    display: none;
  }

  #topluIslem .topluSticky #topluTetkikSecim {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #topluIslem .topluSticky #topluTetkikSecim label {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #topluIslem .topluSheetBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: -1;
    pointer-events: none;
  }

  #topluIslem .topluSheetBackdrop.active {
    opacity: 1;
    visibility: visible;
    z-index: 998;
    pointer-events: auto;
  }

  #topluIslem .topluSelectionFloat {
    display: block;
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translate(-50%, 16px);
    border: none;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, .26);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  #topluIslem .topluSelectionFloat.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  #topluIslem .topluPersonelSatir {
    min-height: 64px;
  }

  #topluIslem .topluPersonelSatir input[type="checkbox"] {
    display: block;
    width: 18px;
    height: 18px;
    opacity: .6;
    pointer-events: none;
  }

  #topluIslem .topluSticky {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, .15);
    border-radius: 16px 16px 0 0;
    z-index: 999;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform .28s ease;
    height: 35vh;
    min-height: 260px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    z-index: -1;
    pointer-events: none;
  }

  #topluIslem .topluSticky.active {
    transform: translateY(0);
    visibility: visible;
    z-index: 999;
    pointer-events: auto;
  }

  #topluIslem .topluSticky.expanded {
    height: 80vh;
  }

  #topluIslem .topluSheetHandle {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 22px;
    margin: -4px 0 6px;
    touch-action: none;
  }

  #topluIslem .topluSheetHandle span {
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    display: block;
  }

  #topluIslem .topluStickyGrid {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: auto;
    min-height: 0;
    padding-right: 2px;
  }

  #topluIslem .topluMobileDate {
    display: flex;
  }

  #topluIslem #topluPersonelListe {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  #topluIslem.topluMobilSheetAcik #topluPersonelListe {
    padding-bottom: calc(40vh + env(safe-area-inset-bottom));
  }

  #topluIslem.topluMobilSheetExpanded #topluPersonelListe {
    padding-bottom: calc(84vh + env(safe-area-inset-bottom));
  }

  #firmaRaporu #firmaRaporOzet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    overflow: hidden;
  }

  #firmaRaporu .firmaRaporKart {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    border-radius: 999px;
    padding: 4px 8px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    white-space: nowrap;
  }

  #firmaRaporu .firmaRaporKartLabel {
    font-size: 10px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #firmaRaporu .firmaRaporKartValue {
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    flex-shrink: 0;
  }
}

/* KAYIT SAYFASI - GORSEL IYILESTIRME */
#kayit {
  padding: 28px;
}

#kayit h2 {
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 24px;
  letter-spacing: .2px;
}

#kayit .formGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #dbe4f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

#kayit .kayitSectionTitle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 2px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: .5px;
}

#kayit .kayitSubTitle {
  grid-column: 1 / -1;
  margin: 2px 0 -2px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .35px;
}

#kayit .inputGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  min-width: 0;
}

#kayit .inputGroup.tam {
  grid-column: 1 / -1;
}

#kayit .inputGroup label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .35px;
  color: #64748b;
  text-transform: uppercase;
}

#kayit .inputGroup input,
#kayit .inputGroup select,
#kayit textarea {
  height: 36px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
  color: #0f172a;
  width: 100%;
  box-sizing: border-box;
}

#kayit textarea {
  height: 86px;
  resize: vertical;
}

#kayit .inputGroup input:focus,
#kayit .inputGroup select:focus,
#kayit textarea:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

#kayit .kayitActions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

#kayit .kayitActions button {
  min-width: 140px;
  height: 38px;
  border-radius: 10px;
}

#kayit .kanGrubuRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* TOPLU İŞLEM – MOBİL/TABLET düzeltme (CSS override) */
@media (max-width: 900px) {
  #topluIslem .topluTetkikSecim {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #topluIslem .topluTetkikSecim label {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }

  .dashboardAksiyonActions {
    flex-wrap: wrap;
  }

  .dashboardAksiyonActions button {
    flex: 1 1 140px;
  }
}

@media (max-width: 600px) {
  #topluIslem .topluTetkikSecim {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  :root {
    --mobile-nav-offset: calc(84px + env(safe-area-inset-bottom));
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  section {
    padding-bottom: calc(25px + var(--mobile-nav-offset));
    position: relative;
    z-index: 1;
  }

  section,
  section>*,
  .topluPanel,
  .firmaRaporPanel,
  .excelPanel,
  .planlamaPanel,
  .topluPersonelSatir,
  .firmaRaporSatir,
  .excelInputRow,
  .excelMapGrid {
    min-width: 0;
    max-width: 100%;
  }

  section input,
  section select,
  section textarea,
  section button {
    max-width: 100%;
  }

  .topluInfo,
  .topluMeta,
  .topluAd,
  .firmaRaporAd,
  .firmaRaporEtiketler,
  .excelStatus,
  .excelErrorList,
  .globalSearchMeta,
  #aktifFabrikaYazi {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  nav {
    padding: 10px 12px;
    min-height: 52px;
  }

  nav .navLeft {
    display: none !important;
  }

  nav .globalSearchWrap {
    display: none !important;
  }

  nav .navRight {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    min-height: 30px;
  }

  #aktifFabrikaYazi {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 92vw;
    text-align: center;
  }

  .mobileBottomNav {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe4f0;
    border-radius: 16px 16px 14px 14px;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
    z-index: 996;
    backdrop-filter: blur(6px);
    pointer-events: none;
  }

  .mobileBottomNav button {
    min-height: 56px;
    border-radius: 12px;
    background: transparent;
    color: #334155;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    border: 1px solid transparent;
    transform: none !important;
    pointer-events: auto;
  }

  .mobileBottomNav button .mbIcon {
    font-size: 16px;
    line-height: 1;
  }

  .mobileBottomNav button.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
  }

  .mobileBottomNav button:active {
    opacity: .85;
  }

  .mobileBottomSheetBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .18);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
    z-index: -1;
    display: block;
    pointer-events: none;
  }

  .mobileBottomSheetBackdrop.active {
    opacity: 1;
    visibility: visible;
    z-index: 995;
    pointer-events: auto;
  }

  .mobileBottomSheet {
    position: fixed;
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: min(280px, calc(100vw - 20px));
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .2);
    padding: 6px;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
    display: block;
    pointer-events: none;
  }

  .mobileBottomSheet.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 997;
    pointer-events: auto;
  }

  .mobileBottomSheet button {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 12px;
    transform: none !important;
  }

  .mobileBottomSheet button:hover {
    background: #f8fafc;
    color: #0f172a;
  }

  #yeniNotFab {
    right: 14px;
    bottom: calc(var(--mobile-nav-offset) + 14px);
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  #notTipiSheet {
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  }

  .notSureGrid {
    grid-template-columns: 1fr;
  }

  .notlarKartActions {
    flex-wrap: wrap;
  }

  body {
    padding-bottom: var(--mobile-nav-offset);
  }
}



/* ====================================================
   KARANLIK TEMA (DARK MODE) - SLATE/NAVY PALETİ
   ==================================================== */

/* Switch Slider Animasyonu (Ayarlar Menüsü) */
#temaSwitch:checked+#temaSlider {
  background-color: #3b82f6;
}

#temaSwitch:checked+#temaSlider:before {
  transform: translateX(24px);
}

#temaSlider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Karanlık Kök Renk Değişimleri (Overrides) */
html.dark-theme body {
  background-color: #0f172a;
  /* Slate 900 */
  color: #f1f5f9;
  /* Slate 100 */
}

/* Menü Alanı */
html.dark-theme nav {
  background-color: #020617;
  /* Slate 950 */
  border-bottom: 1px solid #1e293b;
}

html.dark-theme .navMenuBtn,
html.dark-theme nav button {
  background: #1e293b;
  color: #f8fafc;
}

html.dark-theme .navMenuBtn:hover,
html.dark-theme nav button:hover {
  background: #334155;
}

html.dark-theme .navDropdown {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

html.dark-theme .navDropdown button {
  background: transparent;
  color: #f1f5f9;
}

html.dark-theme .navDropdown button:hover {
  background: #334155;
}

/* Modallar & Paneller */
html.dark-theme .notlarKart,
html.dark-theme .formGrid,
html.dark-theme .topluPanel,
html.dark-theme .sureKart,
html.dark-theme #aramaSecimBar,
html.dark-theme .dashboardAksiyonCard,
html.dark-theme .kontrolKart,
html.dark-theme .firmaRaporKart,
html.dark-theme .topluPersonelSatir,
html.dark-theme .topluSticky,
html.dark-theme .planlamaPanel,
html.dark-theme .topluTetkikSecim label,
html.dark-theme .topluSecimBar,
html.dark-theme .topluExportBar,
html.dark-theme .firmaRaporPanel,
html.dark-theme .ozetKart {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* Tüm Section'ların Arkaplanları Karanlık Modda Transparan/Slate Olur */
html.dark-theme section {
  background-color: transparent !important;
}

html.dark-theme .notlarKartUst,
html.dark-theme .notlarKartBaslik,
html.dark-theme #aramaSecimBar .secimText,
html.dark-theme .dashboardAksiyonUst,
html.dark-theme .kontrolAd,
html.dark-theme .firmaRaporAd,
html.dark-theme .topluSeciliSayi,
html.dark-theme .topluPersonelSatir b,
html.dark-theme .topluAd,
html.dark-theme .kayitSectionTitle,
html.dark-theme .kayitSubTitle {
  color: #f8fafc !important;
}

html.dark-theme .notlarKartMeta,
html.dark-theme .inputGroup label,
html.dark-theme .topluMeta,
html.dark-theme .dashboardAksiyonBaslik,
html.dark-theme .topluAlan label,
html.dark-theme .topluInfo,
html.dark-theme .kontrolBelgeler {
  color: #94a3b8;
}

/* Kritik Dashboard Kartları (Pastel Kırmızı ve Sarı) */
html.dark-theme .kritikKart,
html.dark-theme .kontrolBelgeler span {
  color: #f1f5f9;
}

html.dark-theme .kritikAcil,
html.dark-theme .kontrolBelgeler span {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

html.dark-theme .kritikBugun {
  background: rgba(249, 115, 22, 0.2);
  color: #fed7aa;
}

html.dark-theme .kritikYaklasan {
  background: rgba(234, 179, 8, 0.2);
  color: #fef08a;
}

html.dark-theme .periyodikExpired {
  background-color: rgba(239, 68, 68, 0.2) !important;
  color: #fecaca !important;
  border-color: #ef4444 !important;
}

html.dark-theme .periyodik30 {
  background-color: rgba(249, 115, 22, 0.2) !important;
  color: #fed7aa !important;
  border-color: #f97316 !important;
}

html.dark-theme .periyodik90 {
  background-color: rgba(234, 179, 8, 0.2) !important;
  color: #fef08a !important;
  border-color: #eab308 !important;
}

html.dark-theme .firmaRaporSatir {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

html.dark-theme .excelMiniTable th {
  background: #334155;
  color: #f8fafc;
  border-color: #475569;
}

html.dark-theme .excelMiniTable td {
  border-color: #475569;
}

/* Arka planı beyaz tanımlanan Modal (Ayarlar, Silme) İçerikleri İçin Inline Style Ezici */
html.dark-theme [style*="background:white"],
html.dark-theme [style*="background: white"] {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

html.dark-theme [style*="color:#1e293b"],
html.dark-theme [style*="color:#334155"] {
  color: #f8fafc !important;
}

html.dark-theme hr,
html.dark-theme [style*="border-bottom:1px solid #e2e8f0"] {
  border-color: #334155 !important;
}

/* Form Inputları ve Textarealar */
html.dark-theme input:not([type="checkbox"]),
html.dark-theme select,
html.dark-theme textarea {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html.dark-theme input:focus,
html.dark-theme select:focus,
html.dark-theme textarea:focus {
  border-color: #3b82f6;
  background-color: #020617;
}

/* Üst Arama Kutusu (Global Search) ziyaret */
html.dark-theme #globalSearchResults {
  background: #1e293b;
  border-color: #334155;
}

html.dark-theme .globalSearchItem:hover {
  background: #334155;
}

html.dark-theme .globalSearchItem {
  border-bottom-color: #334155;
}

/* Mobil Alt Bar */
html.dark-theme .mobileBottomNav {
  background-color: #1e293b;
  border-top-color: #334155;
}

html.dark-theme .mobileBottomBtn {
  color: #94a3b8;
}

html.dark-theme .mobileBottomBtn.activeBtn {
  color: #60a5fa;
}

/* Mobil Sheet, Tablolar ve Butonlar */
html.dark-theme #mobileBottomSheet,
html.dark-theme #notTipiSheet {
  background: #1e293b;
  border-top: 1px solid #334155;
}

html.dark-theme .mobileBottomSheetBtn,
html.dark-theme .notTipiSecenek {
  color: #e2e8f0;
  border-color: #334155;
  background: #0f172a;
}

html.dark-theme .mobileBottomSheetBtn:hover,
html.dark-theme .notTipiSecenek:hover {
  background: #334155;
}

/* Uyarı Renkleri (Sarı / Kırmızı - Pastel) */
html.dark-theme .bg-yellow-50 {
  background-color: rgba(234, 179, 8, 0.15) !important;
  color: #fef08a !important;
  border-color: rgba(234, 179, 8, 0.3) !important;
}

html.dark-theme .bg-red-50 {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #fecaca !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Ayarlar Özel Switch Arkaplanı */
html.dark-theme [style*="background:#f8fafc"] {
  background: #0f172a !important;
  border-color: #334155 !important;
}