/* ============================================================================
 * HAK NAV V4930 — SEÇİLEN YERİ KAYDET SAĞ TIK, NOT DÜZENLEME (EKLE/ÇIKAR),
 * UÇAK BİLETİ TARZI AÇILIR-KAPANIR TARİH SEÇİCİ, TAM EKRAN / SAYFA ÜSTÜ MODU,
 * VOYAGE PLAN 20->21+ DİNAMİK SAYAÇ VE CEP TELEFONU UYUMLU TÜM SİTE AJANDASI
 * ============================================================================ */

select#hakAuthRoleSelect,
select#hakAuthRoleSelect option,
.hak-auth-modal select,
.hak-auth-modal select option {
  background-color: #0b192e !important;
  color: #f8fafc !important;
}

.hak-esma-ar, .arabic-text, [dir="rtl"] {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Segoe UI Historic', serif;
}

/* Quick Non-Blocking Toast (when saving selected text without hiding the page!) */
#hakQuickSaveToastV4930 {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483647;
  background: linear-gradient(135deg, #065f46, #047857);
  color: #ecfdf5;
  border: 1.5px solid #fde047;
  border-radius: 12px;
  padding: 10px 16px;
  font: 800 12.5px 'Inter', system-ui, sans-serif;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
}
#hakQuickSaveToastV4930.hak-hidden {
  display: none !important;
}

/* Module-Isolated Right-Click Context Menu */
#hakUniversalCtxMenuV4900 {
  position: fixed;
  z-index: 2147483640;
  min-width: 290px;
  max-width: min(375px, 94vw);
  max-height: 86dvh;
  overflow-y: auto;
  background: rgba(5, 15, 31, 0.985);
  border: 1.5px solid rgba(251, 191, 36, 0.85);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
#hakUniversalCtxMenuV4900.hak-hidden {
  display: none !important;
}
.hak-uctx-header {
  font-size: 11px;
  font-weight: 900;
  color: #fcd34d;
  padding: 5px 8px 7px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hak-uctx-sel-preview {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 9px;
  padding: 6px 9px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #a7f3d0;
  line-height: 1.35;
}
.hak-uctx-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(51, 65, 85, 0.85);
  background: #0c1e3a;
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.hak-uctx-btn:hover {
  background: #16325c;
  border-color: #38bdf8;
  color: #ffffff;
}
.hak-uctx-btn-selection {
  background: linear-gradient(135deg, #059669, #047857) !important;
  border-color: #6ee7b7 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}
.hak-uctx-btn-notepad-bottom,
.hak-injected-bottom-notepad-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  text-align: left !important;
  padding: 10px 11px !important;
  margin-top: 8px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #04101f !important;
  border: 1.5px solid #fef08a !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35) !important;
}

/* Agenda & Notepad Backdrop: supports BOTH Full-Screen (100vw x 100dvh) AND Floating Window (see page behind!) */
#hakNotepadAgendaModalV4900 {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483645 !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  color: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(2, 8, 20, 0.45) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
#hakNotepadAgendaModalV4900.is-windowed-mode {
  pointer-events: none !important;
  background: transparent !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding: 14px !important;
}
#hakNotepadAgendaModalV4900.is-windowed-mode .hak-fs-dialog {
  pointer-events: auto !important;
  width: min(860px, 95vw) !important;
  height: min(84dvh, 760px) !important;
  border: 2px solid #fbbf24 !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92) !important;
}
#hakNotepadAgendaModalV4900.hak-hidden,
#hakActiveAlarmOverlayV4900.hak-hidden,
#hakSsoQuickModalV4900.hak-hidden {
  display: none !important;
}

#hakActiveAlarmOverlayV4900,
#hakSsoQuickModalV4900 {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.hak-fs-dialog {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(circle at 15% 0%, #091d3a 0%, #030b18 82%);
}
.hak-fs-topbar {
  padding: 9px 14px;
  background: linear-gradient(90deg, #071933, #051124);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.42);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.hak-fs-mob-tabs {
  display: none;
  background: #051225;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 6px 8px;
  gap: 6px;
  flex-shrink: 0;
}
.hak-fs-mob-tab-btn {
  flex: 1;
  padding: 9px 6px;
  border-radius: 9px;
  border: 1px solid rgba(71, 85, 105, 0.7);
  background: #0b1d38;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}
.hak-fs-mob-tab-btn.is-active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #04101f;
  border-color: #fef08a;
  font-weight: 900;
}

/* 2-Column Clean Layout (NO bulky right-side calendar column taking up space!) */
.hak-fs-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  overflow: hidden;
}
.hak-fs-col {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.hak-fs-col-sidebar {
  background: rgba(5, 16, 33, 0.95);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}
.hak-fs-col-main {
  background: rgba(7, 21, 42, 0.78);
}

.hak-cat-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 10px;
  margin-bottom: 5px;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.75);
  background: #0a1a33;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.hak-cat-item.is-active {
  background: linear-gradient(135deg, #065f46, #047857);
  border-color: #6ee7b7;
  color: #ffffff;
}
.hak-subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(71, 85, 105, 0.85);
  background: #09182f;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.hak-subcat-chip.is-active {
  background: #f59e0b;
  color: #04101f;
  border-color: #fef08a;
  font-weight: 900;
}
.hak-subcat-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: inherit;
  font-size: 9.5px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
}

/* Flight-Booking Style Compact Dropdown Datepicker (Uçak Bileti Alırkenki Gibi Açılır-Kapanır Takvim!) */
.hak-flight-dp-wrap {
  position: relative;
  display: inline-block;
}
.hak-flight-dp-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: #061529;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.hak-flight-dp-trigger:hover {
  border-color: #fbbf24;
  background: #0b213f;
}
.hak-flight-dp-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2147483646;
  width: 286px;
  max-width: 90vw;
  background: #061326;
  border: 1.5px solid #fbbf24;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.92);
}
.hak-flight-dp-popover.align-right {
  left: auto;
  right: 0;
}
.hak-flight-dp-popover.hak-hidden {
  display: none !important;
}

.hak-np-card {
  background: rgba(10, 24, 46, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 13px;
  padding: 12px;
  margin-bottom: 11px;
}
.hak-np-input, .hak-np-textarea, .hak-np-select {
  width: 100%;
  background: #040d1c;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13px;
  box-sizing: border-box;
}
.hak-np-select option {
  background: #07152b;
  color: #f8fafc;
}
.hak-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 6px;
}
.hak-cal-day {
  padding: 6px 2px;
  text-align: center;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  background: #09172e;
  color: #cbd5e1;
  border: 1px solid transparent;
  cursor: pointer;
}
.hak-cal-day:hover {
  border-color: #38bdf8;
  color: #ffffff;
}
.hak-cal-day.is-selected {
  background: #f59e0b !important;
  color: #04101f !important;
  font-weight: 900;
}
.hak-cal-day.has-records::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #10b981;
  margin: 1px auto 0;
}
.hak-alarm-ring-box {
  width: min(490px, 95vw);
  background: linear-gradient(160deg, #091b36 0%, #040b18 100%);
  border: 2.5px solid #fbbf24;
  border-radius: 20px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 0 55px rgba(245, 158, 11, 0.55);
}

#hakMobileFloatingAgendaBtnV4920 {
  position: fixed;
  right: 12px;
  bottom: 14px;
  z-index: 2147483630;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1.5px solid #fef08a;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #04101f;
  font: 900 12px 'Inter', system-ui, sans-serif;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  display: none;
}

@media (max-width: 900px) {
  #hakMobileFloatingAgendaBtnV4920 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  #hakNotepadAgendaModalV4900.is-windowed-mode {
    padding: 0 !important;
  }
  #hakNotepadAgendaModalV4900.is-windowed-mode .hak-fs-dialog {
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
  }
  .hak-fs-mob-tabs {
    display: flex;
  }
  .hak-fs-grid {
    display: block;
    height: calc(100dvh - 110px);
    overflow-y: auto;
  }
  .hak-fs-col {
    height: auto;
    min-height: 100%;
    border: 0 !important;
    padding: 10px 12px 70px;
  }
  .hak-fs-col.mob-hidden {
    display: none !important;
  }
  #hakGlobalTopShellV4577, .topbar, .ak-wrap, #app {
    max-width: 100vw !important;
  }
}
