/* ================================================================
   İpek Savunma Personel Portal — Tek Stylesheet (mobile-first)
   ================================================================ */

:root {
  --p-primary: #0d6efd;
  --p-primary-dark: #0b5ed7;
  --p-success: #198754;
  --p-warning: #ffc107;
  --p-danger: #dc3545;
  --p-info: #0dcaf0;
  --p-bg: #f4f6f9;
  --p-surface: #ffffff;
  --p-border: #e5e7eb;
  --p-text: #111827;
  --p-text-soft: #6b7280;
  --p-navbar-h: 64px;
  --p-sidebar-w: 260px;
  --p-tabbar-h: 64px;
  --p-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --p-shadow: 0 4px 12px rgba(0,0,0,.08);
  --p-radius: .75rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body.portal-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--p-bg);
  color: var(--p-text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ================= NAVBAR ================= */
.portal-navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  height: var(--p-navbar-h);
  padding: 0 16px;
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
}
.portal-hamburger {
  background: none; border: 0; padding: 8px 12px;
  font-size: 20px; color: var(--p-text);
}
.portal-logo img { height: 48px; width: auto; display: block; }

.portal-navbar-right { display: flex; align-items: center; gap: 8px; }

/* Bildirim çanı */
.portal-bildirim-wrap, .portal-profil-wrap { position: relative; }
.portal-bildirim-btn, .portal-profil-btn {
  background: none; border: 0; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; color: var(--p-text); cursor: pointer;
  border-radius: 8px; position: relative;
}
.portal-bildirim-btn:hover, .portal-profil-btn:hover { background: var(--p-bg); }
.portal-badge {
  position: absolute; top: 2px; right: 4px;
  background: var(--p-danger); color: #fff;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.portal-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--p-primary), #6610f2);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.portal-profil-ad { font-weight: 600; font-size: 14px; }

/* Dropdown */
.portal-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 340px; max-width: 95vw;
  background: var(--p-surface);
  border: 1px solid var(--p-border); border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  display: none; z-index: 150;
  max-height: 80vh; overflow-y: auto;
}
.portal-dropdown.acik { display: block; }
.portal-dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--p-border); display: flex; justify-content: space-between; align-items: center; }
.portal-dropdown-body { }
.portal-dropdown-footer { padding: 10px 16px; text-align: center; border-top: 1px solid var(--p-border); }
.portal-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--p-text); text-decoration: none; }
.portal-dropdown-item:hover { background: var(--p-bg); }
.portal-dropdown-divider { height: 1px; background: var(--p-border); margin: 4px 0; }

.portal-bildirim-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-bottom: 1px solid var(--p-border);
  color: inherit; text-decoration: none;
}
.portal-bildirim-item:hover { background: var(--p-bg); }
.portal-bildirim-item.yeni { background: #f0f7ff; }
.portal-bildirim-item.yeni .portal-bildirim-title::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  background: var(--p-primary); border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.portal-bildirim-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.portal-bildirim-title { font-weight: 600; font-size: 14px; }
.portal-bildirim-msg   { font-size: 13px; color: var(--p-text-soft); margin-top: 2px; }
.portal-bildirim-zaman { font-size: 12px; color: var(--p-text-soft); margin-top: 4px; }

/* ================= SIDEBAR ================= */
.portal-sidebar {
  position: fixed; top: var(--p-navbar-h); left: 0;
  width: var(--p-sidebar-w); height: calc(100vh - var(--p-navbar-h));
  background: var(--p-surface);
  border-right: 1px solid var(--p-border);
  overflow-y: auto;
  display: flex; flex-direction: column;
  transition: transform .25s ease;
  z-index: 90;
}
.portal-sidebar-user { display: flex; gap: 10px; align-items: center; padding: 16px; border-bottom: 1px solid var(--p-border); }
.portal-avatar-lg {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p-primary), #6610f2);
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.portal-sidebar-name { font-weight: 600; font-size: 14px; }
.portal-sidebar-sub { font-size: 12px; color: var(--p-text-soft); }
.portal-sidebar-nav { flex: 1; padding: 8px 0; }
.portal-sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  color: var(--p-text); text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 14px; font-weight: 500;
  position: relative;
}
.portal-sidebar-link:hover { background: var(--p-bg); color: var(--p-primary); }
.portal-sidebar-link.aktif { background: #eff6ff; color: var(--p-primary); border-left-color: var(--p-primary); }
.portal-sidebar-link i { width: 20px; text-align: center; }
.portal-sidebar-badge { margin-left: auto; background: var(--p-danger); color: #fff; border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.portal-sidebar-foot { border-top: 1px solid var(--p-border); padding: 8px 0; }

.portal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}

/* Mobile: sidebar gizli, overlay */
@media (max-width: 991.98px) {
  .portal-sidebar { transform: translateX(-100%); top: 0; height: 100vh; z-index: 110; }
  body.sidebar-open .portal-sidebar { transform: translateX(0); box-shadow: var(--p-shadow); }
  body.sidebar-open .portal-overlay { opacity: 1; pointer-events: auto; }
}

/* ================= MAIN ================= */
.portal-main { margin-left: 0; padding-top: 0; padding-bottom: calc(var(--p-tabbar-h) + 16px); min-height: calc(100vh - var(--p-navbar-h)); }
@media (min-width: 992px) {
  .portal-main { margin-left: var(--p-sidebar-w); padding-bottom: 16px; }
}
.portal-container { max-width: 1400px; padding: 16px; margin: 0 auto; }

/* ================= ALT TAB BAR (Mobile) ================= */
.portal-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--p-tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--p-surface); border-top: 1px solid var(--p-border);
  display: flex; z-index: 100; box-shadow: 0 -2px 8px rgba(0,0,0,.04);
}
.portal-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--p-text-soft); font-size: 11px; gap: 2px;
  transition: color .15s;
}
.portal-tabbar a i { font-size: 20px; }
.portal-tabbar a.aktif { color: var(--p-primary); }
.portal-tabbar a.aktif i { transform: scale(1.08); }

/* ================= CARD / BOX ================= */
.p-card {
  background: var(--p-surface); border: 1px solid var(--p-border);
  border-radius: var(--p-radius); padding: 16px; margin-bottom: 16px;
  box-shadow: var(--p-shadow-sm);
}
.p-card h5, .p-card h6 { margin-top: 0; }

.p-metric {
  background: var(--p-surface); border-radius: var(--p-radius);
  padding: 16px; border: 1px solid var(--p-border);
  display: flex; gap: 12px; align-items: center;
}
.p-metric-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.p-metric-value { font-size: 24px; font-weight: 700; line-height: 1; }
.p-metric-label { font-size: 13px; color: var(--p-text-soft); margin-top: 4px; }

/* Grid shortcuts */
.p-grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.p-grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.p-grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 576px) {
  .p-grid-2 { grid-template-columns: 1fr 1fr; }
  .p-grid-3 { grid-template-columns: 1fr 1fr; }
  .p-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media (min-width: 992px) {
  .p-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Buttons */
.p-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; font-weight: 500;
  text-decoration: none; font-size: 14px;
  transition: transform .1s, background .15s;
}
.p-btn:hover { transform: translateY(-1px); }
.p-btn-primary { background: var(--p-primary); color: #fff; }
.p-btn-primary:hover { background: var(--p-primary-dark); color: #fff; }
.p-btn-success { background: var(--p-success); color: #fff; }
.p-btn-danger { background: var(--p-danger); color: #fff; }
.p-btn-outline { background: transparent; border-color: var(--p-border); color: var(--p-text); }
.p-btn-outline:hover { background: var(--p-bg); color: var(--p-text); }
.p-btn-block { display: flex; width: 100%; justify-content: center; }

/* Body scroll lock — sidebar/modal açıkken arka plan kaymasın (özellikle iOS) */
body.p-no-scroll { position: fixed; width: 100%; overflow: hidden; left: 0; right: 0; }

/* Tıklanabilir kart hover efekti — pointer/hover olan cihazlarda; touch'ta sönük */
@media (hover: hover) and (pointer: fine) {
  .p-card-hover { transition: transform .15s, box-shadow .15s; }
  .p-card-hover:hover, .p-card-hover:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }
}

/* Badges */
.p-badge {
  display: inline-block; padding: 3px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 600;
}
.p-badge-success { background: #d1e7dd; color: #0a3622; }
.p-badge-warning { background: #fff3cd; color: #664d03; }
.p-badge-danger  { background: #f8d7da; color: #58151c; }
.p-badge-info    { background: #cfe2ff; color: #031633; }
.p-badge-secondary { background: #e9ecef; color: #343a40; }

/* Forms */
.p-form-label { font-weight: 600; font-size: 13px; margin-bottom: 4px; display: block; }
.p-form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--p-border);
  border-radius: 8px; font-size: 14px; background: #fff;
}
.p-form-control:focus { outline: 0; border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(13,110,253,.1); }

/* Tables */
.p-table { width: 100%; border-collapse: collapse; background: var(--p-surface); border-radius: var(--p-radius); overflow: hidden; }
.p-table th { background: var(--p-bg); font-weight: 600; font-size: 12px; padding: 10px 12px; text-align: left; color: var(--p-text-soft); text-transform: uppercase; letter-spacing: .5px; }
.p-table td { padding: 12px; border-top: 1px solid var(--p-border); font-size: 14px; }
.p-table tr:hover { background: #fafafa; }

/* Colors */
.bg-primary { background: var(--p-primary) !important; color: #fff; }
.bg-success { background: var(--p-success) !important; color: #fff; }
.bg-warning { background: var(--p-warning) !important; color: #212529; }
.bg-danger  { background: var(--p-danger) !important; color: #fff; }
.bg-info    { background: var(--p-info) !important; color: #212529; }
.bg-purple  { background: #6f42c1 !important; color: #fff; }
.bg-teal    { background: #20c997 !important; color: #fff; }
.bg-indigo  { background: #6610f2 !important; color: #fff; }

/* Utility */
.text-muted { color: var(--p-text-soft) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-grow-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.small { font-size: 12px; }
.p-4 { padding: 24px; }

/* ================= LOGIN EKRANI ================= */
.portal-login-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  padding: 16px;
}
.portal-login-card {
  background: #fff; border-radius: 16px;
  padding: 32px; max-width: 420px; width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.portal-login-logo { text-align: center; margin-bottom: 24px; }
.portal-login-logo img { max-height: 60px; }
.portal-login-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--p-bg); padding: 4px; border-radius: 10px; }
.portal-login-tabs button {
  flex: 1; padding: 8px 12px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--p-text-soft);
}
.portal-login-tabs button.aktif { background: #fff; color: var(--p-primary); box-shadow: var(--p-shadow-sm); }

/* ============================================================
   MOBILE-FIRST AGRESİF ÖZELLEŞTİRME
   Hedef: 320px (iPhone SE) → 1024px (tablet)
   ============================================================ */

/* Tüm gövdede hiç yatay scroll olmasın */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ================= BREAK-POINT ADJUSTMENTS ================= */

/* Tablet ve altı (992px) */
@media (max-width: 991.98px) {
  .portal-container { padding: 12px; }
  .p-card { padding: 14px; border-radius: 10px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 14px; }
}

/* Mobile (768px altı) */
@media (max-width: 767.98px) {
  /* Navbar: hamburger sol, logo absolute merkez, ikonlar sağ */
  .portal-navbar { padding: 0 8px; position: sticky; }
  .portal-navbar > .d-flex { gap: 0; }
  .portal-logo {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
  .portal-logo img {
    height: 56px; max-height: calc(var(--p-navbar-h) - 8px);
    width: auto; display: block;
  }
  .portal-navbar-right { gap: 0; }
  .portal-bildirim-btn, .portal-profil-btn { padding: 8px; }
  .portal-avatar { width: 28px; height: 28px; font-size: 11px; }
  .portal-profil-ad { display: none !important; }

  /* Dropdown tam genişlik */
  .portal-dropdown {
    position: fixed !important;
    top: var(--p-navbar-h) !important;
    right: 0 !important; left: 0 !important;
    min-width: 0 !important; max-width: 100vw !important;
    border-radius: 0 !important;
    max-height: calc(100vh - var(--p-navbar-h));
  }

  /* Başlıklar küçültme */
  h1 { font-size: 20px; } h2 { font-size: 18px; }
  h3 { font-size: 17px; } h4 { font-size: 16px; }
  h5 { font-size: 15px; } h6 { font-size: 13px; }

  /* Kart içi boşluklar */
  .p-card { padding: 12px; margin-bottom: 12px; }
  .portal-container { padding: 10px; }

  /* METRIK KARTLARI — daha sıkı */
  .p-metric { padding: 10px; gap: 8px; }
  .p-metric-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 8px; }
  .p-metric-value { font-size: 18px !important; }
  .p-metric-label { font-size: 11px; line-height: 1.2; }

  /* GRID: 4'lü grid → 2 sütun, 3'lü → 2 sütun, 2'li → 2 sütun */
  .p-grid-4, .p-grid-3, .p-grid-2 { gap: 8px; grid-template-columns: 1fr 1fr; }

  /* Buton daralt */
  .p-btn { padding: 8px 12px; font-size: 13px; gap: 6px; }
  .p-btn i { font-size: 12px; }

  /* TABLO → MOBİL KART LAYOUT (data-label ile) */
  .p-table { display: block; background: transparent; box-shadow: none; }
  .p-table thead { display: none; } /* thead gizle */
  .p-table tbody { display: block; }
  .p-table tr {
    display: block;
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 10px;
  }
  .p-table tr:hover { background: var(--p-surface); }
  .p-table td {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 5px 0; border: 0; font-size: 13px;
    gap: 8px;
  }
  .p-table td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--p-text-soft);
    font-size: 11px; text-transform: uppercase; letter-spacing: .3px;
    flex-shrink: 0; min-width: 90px;
  }
  .p-table td:empty, .p-table td:only-child { display: none; }
  /* İlk hücre (ID/ad) büyük gösterim */
  .p-table td:first-child { border-top: 0; font-weight: 600; font-size: 14px; }
  .p-table td:first-child::before { display: none; }

  /* Horizontal scroll istenirse: opt-in */
  .p-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .p-table-scroll .p-table { display: table; }
  .p-table-scroll .p-table thead { display: table-header-group; }
  .p-table-scroll .p-table tbody { display: table-row-group; }
  .p-table-scroll .p-table tr { display: table-row; padding: 0; margin: 0; border: 0; }
  .p-table-scroll .p-table td { display: table-cell; padding: 8px; font-size: 12px; white-space: nowrap; }
  .p-table-scroll .p-table td::before { display: none; }

  /* FORM alanları daralt — font-size 16px iOS Safari otomatik-zoom'unu önler */
  .p-form-control,
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="password"], input[type="number"], input[type="search"],
  input[type="date"], input[type="time"], input[type="datetime-local"],
  textarea, select { font-size: 16px; }
  .p-form-control { padding: 10px; }
  .p-form-label { font-size: 12px; }

  /* LOGIN EKRANI */
  .portal-login-card { padding: 24px 18px; border-radius: 12px; }
  .portal-login-tabs { font-size: 12px; }

  /* BADGE'leri küçült */
  .p-badge { font-size: 11px; padding: 2px 8px; }

  /* Profil/izin/bordro header'da geri + başlık dikey */
  .d-flex.justify-content-between.align-items-center.mt-2 { flex-direction: column; align-items: flex-start !important; gap: 8px; }
}

/* Çok küçük ekran (360px ve altı — SE, eski Android) */
@media (max-width: 380px) {
  /* 4 sütun → 2 sütun yerine metric kartları daha kompakt */
  .p-metric { padding: 8px; gap: 6px; }
  .p-metric-icon { width: 32px; height: 32px; font-size: 14px; }
  .p-metric-value { font-size: 16px !important; }
  .p-metric-label { font-size: 10px; }

  /* Container'ı alabildiğine daralt */
  .portal-container { padding: 8px; }
  .p-card { padding: 10px; }

  /* Buton tek satır — ikon sadece */
  .p-btn { padding: 7px 10px; font-size: 12px; }

  /* Table cells data-label min 70px */
  .p-table td::before { min-width: 70px; font-size: 10px; }
}

/* PUANTAJ TAKVİM: mobilde küçült */
@media (max-width: 767.98px) {
  .pu-takvim { gap: 2px; }
  .pu-gun { padding: 4px 2px; font-size: 10px; border-radius: 4px; }
  .pu-gun-num { font-size: 12px; }
  .pu-gun-bil { font-size: 9px; }
}

/* ANASAYFA 14g bar grafik */
@media (max-width: 767.98px) {
  .portal-body [style*="align-items:flex-end"][style*="height:180px"] {
    height: 120px !important;
  }
  .portal-body [style*="align-items:flex-end"] > div > div[style*="font-size:10px"] {
    font-size: 9px !important;
  }
}

/* MODAL (genel) — mobilde tam genişlik */
@media (max-width: 767.98px) {
  .modal-dialog { margin: 0 !important; max-width: 100% !important; }
  .modal-content { border-radius: 0 !important; min-height: 100vh; }
}

/* TABS (profil, izin) — kaydırılabilir */
.portal-login-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.portal-login-tabs button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* FORM grid */
@media (max-width: 767.98px) {
  .p-grid-4 > div > label,
  .p-grid-3 > div > label,
  .p-grid-2 > div > label { font-size: 12px; }
  /* Form'larda 4-col grid tek sütun */
  form.p-grid-4, form .p-grid-4 { grid-template-columns: 1fr; }
}

/* SIDEBAR tek-kart (tablet) */
@media (max-width: 991.98px) {
  .portal-sidebar-link { padding: 13px 16px; font-size: 14px; }
  .portal-sidebar-user { padding: 14px; }
  .portal-avatar-lg { width: 42px; height: 42px; font-size: 16px; }
  .portal-sidebar-name { font-size: 13px; }
  .portal-sidebar-sub { font-size: 11px; }
}

/* Bildirim dropdown item */
@media (max-width: 767.98px) {
  .portal-bildirim-item { padding: 12px 14px; }
  .portal-bildirim-title { font-size: 13px; }
  .portal-bildirim-msg { font-size: 12px; line-height: 1.3; }
  .portal-bildirim-icon { width: 32px; height: 32px; font-size: 14px; }
}

/* Tarih kısa gösterimi (ör. "20.04.2026" yerine "20/04" — ekstra class ile) */
.p-date-short .tam { display: inline; }
.p-date-short .kisa { display: none; }
@media (max-width: 480px) {
  .p-date-short .tam { display: none; }
  .p-date-short .kisa { display: inline; }
}

/* Scrollbar stili — mobilde daha ince */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* Click/hover animasyonlarını mobilde kapat */
@media (hover: none) {
  .p-btn:hover { transform: none; }
  .vk-card:hover { transform: none; box-shadow: var(--p-shadow-sm); }
}

/* ============================================================
   P-TABLE-KV (Key-Value) — mobilde de tablo olarak kalır
   Kullanım: <table class="p-table p-table-kv"> — 2 sütunlu
   ============================================================ */
@media (max-width: 767.98px) {
  .p-table-kv { display: table; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 8px; overflow: hidden; }
  .p-table-kv tbody { display: table-row-group; }
  .p-table-kv tr { display: table-row; padding: 0; margin: 0; border: 0; background: transparent; }
  .p-table-kv tr:nth-child(even) { background: var(--p-bg); }
  .p-table-kv tr:hover { background: var(--p-bg); }
  .p-table-kv th { display: table-cell; padding: 8px 10px; font-size: 12px; background: transparent; text-transform: none; color: var(--p-text); font-weight: 500; text-align: left; }
  .p-table-kv td { display: table-cell; padding: 8px 10px; font-size: 13px; border: 0; text-align: right; font-weight: 600; }
  .p-table-kv td::before { display: none; }
}

/* ============================================================
   D-NONE / D-BLOCK responsif yardımcılar
   ============================================================ */
.d-none { display: none !important; }
.d-block { display: block !important; }
@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-flex { display: flex !important; }
}
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-inline { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-flex { display: flex !important; }
  .d-md-table-cell { display: table-cell !important; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-flex { display: flex !important; }
}

/* Mobilde sadece tabbar gösterilsin */
@media (min-width: 992px) {
  .portal-tabbar { display: none !important; }
}
