/* POP UP! Creative Group — Monokrom Yönetim Paneli */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --card: #111111;
  --card-2: #161616;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #8a8a8a;
  --accent: #ffffff;
  --radius: 2px;
  --font: 'Outfit', ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input { font-family: inherit; }
ul { list-style: none; }
.kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted); }
.muted { color: var(--muted); }

/* Layout */
.app { display: flex; min-height: 100dvh; }

/* Sidebar */
.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: #050505;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.logo-wrap {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid #ffffffd0;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .brand { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.sidebar-nav { flex: 1; padding: 20px 12px; }
.nav-label { padding: 0 8px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  text-align: left;
}
.nav-item i { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item.active { background: rgba(255,255,255,0.06); color: #fff; border-color: var(--border); }
.nav-item:hover { background: #fff; color: #000; border-color: #fff; }
.nav-item:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }

/* Main */
.main { flex: 1; min-width: 0; overflow-x: hidden; display: flex; flex-direction: column; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #000;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: flex-start; gap: 12px; }
.topbar-left h1 { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.topbar-left .date { margin-top: 4px; font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.12s, color 0.12s, transform 0.1s;
}
.icon-btn:hover { background: #fff; color: #000; }
.icon-btn:active { transform: scale(0.93); }
.icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.icon-btn i { width: 16px; height: 16px; }
.notification-btn .dot {
  position: absolute; top: 7px; right: 7px;
  width: 6px; height: 6px; background: #fff; border-radius: 999px;
}

.search {
  position: relative;
}
.search i {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted);
  pointer-events: none;
}
.search input {
  height: 36px;
  width: 224px;
  padding: 0 12px 0 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  outline: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: #fff; }

.avatar {
  width: 36px; height: 36px;
  background: #fff; color: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}

.menu-btn { display: none; }

/* Content */
.content { padding: 24px; display: flex; flex-direction: column; gap: 24px; }

/* KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.kpi-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  color: #000;
}
.kpi-card:hover {
  border-color: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kpi-value { font-size: 28px; font-weight: 700; margin-top: 12px; letter-spacing: -0.02em; color: #000; }
.kpi-icon {
  width: 36px; height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  background: #f5f5f5;
  display: inline-flex; align-items: center; justify-content: center;
  color: #000;
}
.kpi-icon i { width: 16px; height: 16px; }
.kpi-trend {
  display: flex; align-items: center; gap: 4px;
  margin-top: 16px; font-size: 12px;
}
.kpi-trend i { width: 14px; height: 14px; }
.kpi-trend.up { color: #000; }
.kpi-trend.up span:first-of-type { font-weight: 600; }
.kpi-trend.down i, .kpi-trend.down span:first-of-type { color: var(--muted); }

/* Panels & charts */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.panel {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 20px;
  color: #000;
  transition: box-shadow 0.18s;
}
.panel:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.panel-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.panel-header h2 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #000;
}
.chart-wide { grid-column: span 1; }
.chart-box { position: relative; height: 240px; }

/* FullCalendar overrides */
#calendar { background: #fff; color: #000; }
.fc { --fc-border-color: #e0e0e0; --fc-page-bg-color: #fff; --fc-neutral-bg-color: #f5f5f5; --fc-today-bg-color: #f0f0f0; --fc-event-bg-color: #000; --fc-event-border-color: #000; --fc-event-text-color: #fff; color: #000; background: #fff; }
.fc .fc-toolbar-title { color: #000; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.fc .fc-button { background: #fff; border: 1px solid #e0e0e0; color: #000; border-radius: 2px; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; padding: 0.35rem 0.7rem; box-shadow: none; }
.fc .fc-button:hover, .fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { background: #000; color: #fff; border-color: #000; }
.fc .fc-button-primary:focus { box-shadow: none; }
.fc-theme-standard td, .fc-theme-standard th, .fc-theme-standard .fc-scrollgrid { border-color: #e0e0e0; }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { color: #333; text-decoration: none; padding: 6px; font-size: 0.75rem; letter-spacing: 0.05em; }
.fc .fc-daygrid-day.fc-day-today { background: #f0f0f0; }
.fc-event { border-radius: 2px !important; padding: 2px 4px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; }

/* Mobile sidebar */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 40;
}
.sheet-overlay.open { display: block; }
.sidebar-mobile {
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  display: none;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}
.sidebar-mobile.open { transform: translateX(0); }
.sidebar-mobile .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sidebar-mobile .sidebar-header,
.sidebar-mobile .sidebar-footer { flex-shrink: 0; }

body.no-scroll {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .charts-grid { grid-template-columns: 1fr 1fr; }
  .chart-wide { grid-column: span 2; }
}

/* ── Tablet ≤ 1024px — kompakt KPI/genel ─────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .kpi-card { padding: 16px; }
  .kpi-value { font-size: 24px; }
  .panel { padding: 16px; }
  .content { padding: 18px; gap: 18px; }
  .topbar-left h1 { font-size: 18px; }
  .panel-header { flex-wrap: wrap; gap: 8px; }
  .revision-actions { flex-wrap: wrap; gap: 6px; }
  /* Prevent horizontal overflow */
  .panel, .data-table, .table-responsive { max-width: 100%; }
  .table-responsive { overflow-x: auto; }
}

/* ── Tablet + Mobil ≤ 768px ───────────────────────── */
@media (max-width: 768px) {
  /* Sidebar */
  #sidebar-desktop { display: none; }
  .sidebar-mobile { display: flex; }
  .menu-btn { display: inline-flex; }

  /* KPI / Charts */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-wide { grid-column: span 1; }
  .chart-box { height: 180px; }

  /* Topbar — align hamburger, title, bell, avatar on same horizontal line */
  .topbar {
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: nowrap;
    max-width: 100vw;
    min-width: 0;
  }
  /* Notif panel — escape topbar, full width on phone */
  .notif-panel {
    position: fixed !important;
    top: 64px;
    right: 8px;
    left: 8px;
    width: auto !important;
    max-width: none;
    z-index: 10000;
    max-height: 70vh;
    overflow-y: auto;
  }
  .topbar-left {
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 100px);
  }
  .topbar-left > div {
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    max-width: 100%;
  }
  .topbar-right { gap: 8px; align-items: center; flex-shrink: 0; }
  .topbar-left .kicker,
  .topbar-left h1,
  .topbar-left .date {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  .topbar-left h1 { font-size: 16px; }
  .topbar-left .kicker { font-size: 9px; }
  .topbar-left .date { font-size: 10px; margin-top: 2px; }
  .search input { width: 130px; }
  .panel-header { flex-wrap: wrap; gap: 8px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .am-popup { max-width: 100% !important; margin: 8px !important; }

  /* ── Mobile Card Table System ──────────────────────
     Base stiller bu media query'den SONRA tanımlandığı
     için !important zorunludur.                      */
  .table-responsive { overflow-x: hidden !important; }
  .data-table {
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed;
  }
  .data-table thead { display: none !important; }
  .data-table colgroup { display: none; }

  /* Her satır = Kart */
  .data-table tbody tr {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
  }
  .data-table tbody tr:hover { background: #fff !important; }

  /* Tüm td'ler varsayılan olarak etiket | değer satırı */
  .data-table tbody td {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #000;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .data-table tbody td:last-child { border-bottom: none !important; }

  /* Etiket — data-label pseudo-element */
  .data-table tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #999;
    font-weight: 700;
    flex: 0 0 72px;
    line-height: 1.3;
    align-self: center;
  }
  /* Değer kısmı sağa hizalı */
  .data-table tbody td[data-label] > * { text-align: right; }

  /* ── Kart Başlığı (td.td-card-header) ─────────── */
  .data-table tbody td.td-card-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f8f8;
    border-bottom: 1px solid #e8e8e8 !important;
    font-size: 12px;
    gap: 8px;
  }
  .data-table tbody td.td-card-header::before { display: none !important; }

  /* ── Ana İçerik (td.td-card-title) ─────────────── */
  .data-table tbody td.td-card-title {
    display: block !important;
    padding: 10px 14px 8px;
  }
  .data-table tbody td.td-card-title::before { display: none !important; }
  /* Başlık içindeki metinlerin taşmamasını sağla */
  .data-table tbody td.td-card-title * {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* ── Aksiyon Butonları (td.td-actions) ──────────── */
  .data-table tbody td.td-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
    padding: 10px 14px;
    background: #fafafa;
    border-top: 1px solid #ebebeb !important;
    border-bottom: none !important;
  }
  .data-table tbody td.td-actions::before { display: none !important; }
  /* Her buton tam genişlik */
  .data-table tbody td.td-actions .btn,
  .data-table tbody td.td-actions form,
  .data-table tbody td.td-actions form .btn {
    width: 100% !important;
    justify-content: center;
    box-sizing: border-box;
  }
  /* form display:inline override */
  .data-table tbody td.td-actions form { display: block !important; }

  /* Revize / Uyarı kartlar */
  .revision-card { padding: 10px 12px; }
  .revision-actions { flex-wrap: wrap; gap: 6px; }
}

/* ── Küçük Telefon ≤ 480px ────────────────────────── */
@media (max-width: 480px) {
  .topbar { padding: 10px 12px; flex-wrap: nowrap; gap: 8px; }
  .topbar-right { width: auto; justify-content: flex-end; }
  .topbar-left .date { display: none; }
  .topbar-left .kicker { font-size: 8.5px; }
  .topbar-left h1 { font-size: 14px; }
  .content { padding: 12px; gap: 14px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 12px; aspect-ratio: 1 / 1; }
  .kpi-value { font-size: 20px; margin-top: 6px; }
  .kpi-label { font-size: 11px; }
  .search { display: none; }
  .topbar-left h1 { font-size: 15px; }
  .panel { padding: 12px; }

  /* Kartlarda etiket genişliği biraz daralır */
  .data-table tbody td[data-label]::before { flex: 0 0 64px; }
}

/* ── Global horizontal-overflow guard ─────────────── */
@media (max-width: 1024px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .app { max-width: 100vw; overflow-x: hidden; }
  .main { max-width: 100%; min-width: 0; }
  .content { max-width: 100%; min-width: 0; overflow-x: hidden; }
  .panel { max-width: 100%; min-width: 0; overflow-x: hidden; }
  .revision-card { max-width: 100%; }
  .revision-actions .btn { white-space: nowrap; }
  /* Inputs and selects fit container */
  .form-input, input, select, textarea { max-width: 100%; box-sizing: border-box; }
  /* Tables — horizontal scroll allowed only inside table-responsive */
  .table-responsive { max-width: 100%; }
  /* Images cap to container */
  img, video { max-width: 100%; height: auto; }
  /* Form grids stack */
  .form-grid-2 { grid-template-columns: 1fr !important; }
}

/* Mobile/tablet — kare içerik kutuları (KPI) */
@media (max-width: 768px) {
  .kpi-card { aspect-ratio: 1 / 1; padding: 14px; }
  .kpi-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kpi-value { margin-top: auto; font-size: 22px; }
}

/* ── Table Responsive Wrapper ─────────────────────── */
/* NOT: Bu stiller mobil media query'lerinden önce gelmelidir */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* ── Data Table ───────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; box-sizing: border-box; }
.data-table thead tr { border-bottom: 2px solid #000; }
.data-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid #e8e8e8; transition: background 0.1s; }
.data-table tbody tr:hover { background: #fafafa; }
.data-table tbody td { padding: 12px 14px; color: #000; vertical-align: middle; }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: var(--radius); cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.1s, opacity 0.1s;
  border: 1px solid transparent;
}
.btn i { width: 14px; height: 14px; }
.btn:active { transform: translateY(1px); opacity: 0.88; }
.btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.btn-primary { background: #000; color: #fff; border-color: #000; }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-outline { background: #fff; color: #000; border-color: #000; }
.btn-outline:hover { background: #000; color: #fff; }
.btn-danger { background: #fff; color: #c00; border-color: #fcc; }
.btn-danger:hover { background: #c00; color: #fff; border-color: #c00; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 10px; }

/* ── Badges ───────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 8px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: 2px; border: 1px solid;
}
.badge-admin   { background: #000; color: #fff; border-color: #000; }
.badge-patron  { background: #f5f5f5; color: #000; border-color: #ccc; }
.badge-calisan { background: #f0f0f0; color: #555; border-color: #ddd; }

/* ── Form Fields ──────────────────────────────────── */
.form-grid { display: grid; gap: 18px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: #555; font-weight: 600; }
.form-input {
  height: 40px; padding: 0 12px;
  background: #f5f5f5; border: 1px solid #e0e0e0;
  border-radius: var(--radius); color: #000;
  font-size: 13px; font-family: inherit; outline: none;
  width: 100%; max-width: 100%; box-sizing: border-box;
  transition: border-color 0.12s, background 0.12s;
}
.form-input:focus { border-color: #000; background: #fff; }
.form-input:focus-visible { outline: 2px solid #000; outline-offset: 1px; }
select.form-input { height: 40px; }
textarea.form-input { height: auto; padding: 10px 12px; resize: vertical; }
input[type="date"].form-input,
input[type="time"].form-input,
input[type="datetime-local"].form-input {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  min-height: 40px;
  line-height: 40px;
  -webkit-min-logical-width: 100%;
  font-variant-numeric: tabular-nums;
}
input[type="date"].form-input::-webkit-date-and-time-value,
input[type="time"].form-input::-webkit-date-and-time-value,
input[type="datetime-local"].form-input::-webkit-date-and-time-value {
  text-align: left;
}
.form-hint { font-size: 11px; color: #8a8a8a; }
.form-error { font-size: 11px; color: #c00; }

/* ── Alert banners ────────────────────────────────── */
.alert { padding: 10px 16px; border-radius: var(--radius); font-size: 12px; margin-bottom: 16px; }
.alert-success { background: #f0fff4; border: 1px solid #6fcf97; color: #1a7c3e; }
.alert-error   { background: #fff0f0; border: 1px solid #fcc;    color: #c00; }

/* ── Company logo thumb ───────────────────────────── */
.logo-thumb {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid #e0e0e0; object-fit: cover; background: #f5f5f5;
}
.logo-thumb-placeholder {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid #e0e0e0; background: #f0f0f0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #888; letter-spacing: 0.05em;
}
@media (max-width: 768px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ── Content type badges ──────────────────────────── */
.badge-image { background: #000; color: #fff; border-color: #000; }
.badge-video { background: #555; color: #fff; border-color: #555; }
.badge-text  { background: #f0f0f0; color: #555; border-color: #ddd; }

/* ── FullCalendar overrides ───────────────────────── */
.fc .fc-toolbar-title { font-size: 15px; font-weight: 700; color: #000; }
.fc .fc-button {
  background: #fff !important; color: #000 !important;
  border: 1px solid #e0e0e0 !important; font-size: 11px !important;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px !important; font-family: inherit !important;
}
.fc .fc-button:hover { background: #000 !important; color: #fff !important; border-color: #000 !important; }
.fc .fc-button-active, .fc .fc-button-primary:not(:disabled).fc-button-active {
  background: #000 !important; color: #fff !important; border-color: #000 !important;
}
.fc .fc-daygrid-day-number { color: #000; font-size: 12px; }
.fc .fc-col-header-cell-cushion { color: #555; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.fc .fc-event { border-radius: 3px; font-size: 11px; padding: 1px 4px; cursor: pointer; }
.fc td, .fc th { border-color: #e8e8e8 !important; }

/* ── Revision / Warning cards ────────────────────── */
.revision-card {
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fff;
  transition: opacity 0.2s;
}
.revision-card.revision-resolved { opacity: 0.5; }
.revision-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.revision-message { font-size: 13px; color: #000; margin: 0 0 10px; line-height: 1.5; }
.revision-actions { display: flex; gap: 6px; align-items: center; }

/* ── Importance dots ─────────────────────────────── */
.importance-dots { display: flex; gap: 4px; align-items: center; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e0e0e0; border: 1px solid #ccc;
}
.dot-filled { background: #000; border-color: #000; }

/* ── Importance picker (1–5 buttons) ─────────────── */
.importance-picker { display: flex; gap: 4px; }
.imp-btn {
  width: 32px; height: 32px;
  border: 1px solid #e0e0e0; border-radius: var(--radius);
  background: #f5f5f5; color: #555;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background 0.1s, color 0.1s;
}
.imp-btn.imp-active { background: #000; color: #fff; border-color: #000; }
.imp-btn:hover:not(.imp-active) { background: #e0e0e0; }

/* ── Status badges ───────────────────────────────── */
.badge-resolved { background: #f0fff4; color: #1a7c3e; border-color: #6fcf97; }
.badge-pending  { background: #fff8e1; color: #b45309; border-color: #f59e0b; }

/* ── Resolved row dimming ────────────────────────── */
.row-resolved { opacity: 0.55; }

/* ── Revision category picker ────────────────────── */
.cat-btn {
  padding: 6px 10px; border: 1px solid #e0e0e0; border-radius: var(--radius);
  background: #f5f5f5; color: #555; font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background 0.1s, color 0.1s, border-color 0.1s;
  text-align: center;
}
.cat-btn.cat-active {
  background: var(--cat-color, #6b7280);
  color: #fff;
  border-color: var(--cat-color, #6b7280);
}
.cat-btn:hover:not(.cat-active) { background: #e8e8e8; }

/* ── Notification badge ──────────────────────────── */
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* ── Notification Panel ──────────────────────────── */
.notif-panel {
  display: none;
  position: absolute; right: 0; top: 44px;
  width: 320px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 9999;
}
.notif-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-panel-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #000;
}
.notif-clear-btn {
  font-size: 10px; color: #8a8a8a;
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 2px 4px;
  transition: color 0.12s;
}
.notif-clear-btn:hover { color: #000; }
.notif-list {
  list-style: none; margin: 0; padding: 0;
  max-height: 320px; overflow-y: auto;
}
.notif-empty {
  padding: 24px 16px;
  color: #8a8a8a; font-size: 12px; text-align: center;
}

/* ── SweetAlert2 custom theme (POP UP! monokrom) ── */
.am-popup {
  border-radius: 8px !important;
  padding: 28px 24px 20px !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.18) !important;
  border: 1px solid #e0e0e0 !important;
  max-width: 400px !important;
}
.am-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #000 !important;
  padding: 0 0 8px !important;
  letter-spacing: .01em !important;
}
.am-text {
  font-size: 13px !important;
  color: #555 !important;
  line-height: 1.6 !important;
}
.am-actions { gap: 8px !important; margin-top: 20px !important; }
.am-btn {
  padding: 8px 18px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  letter-spacing: .03em !important;
  transition: opacity .15s !important;
}
.am-btn:hover { opacity: .85 !important; }
.am-btn-confirm { background: #000 !important; color: #fff !important; }
.am-btn-danger  { background: #ef4444 !important; color: #fff !important; }
.am-btn-cancel  { background: #f0f0f0 !important; color: #333 !important; }

/* ── Mobile Bottom Navigation ────────────────────────
   Floating pill-style nav — only visible on mobile.
   Modeled after iOS-style segmented control. */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(17, 17, 17, .95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .2);
  gap: 2px;
  max-width: calc(100% - 24px);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 11px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, .6);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .01em;
  min-width: 0;
  transition: background .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item i,
.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.bottom-nav-item.active {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.bottom-nav-item:hover { color: #fff; }
.bottom-nav-item span {
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  font-size: 9.5px;
  display: block;
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  /* Push content above nav so it doesn't get hidden */
  .main { padding-bottom: 80px; }
}

/* Hide bottom-nav when mobile sidebar is open */
.sheet-overlay.open ~ .bottom-nav,
.sidebar-mobile.open ~ .bottom-nav { display: none !important; }

/* Smaller padding to fit 4 items + nowrap labels */
@media (max-width: 480px) {
  .bottom-nav { padding: 5px 6px; gap: 0; }
  .bottom-nav-item { padding: 7px 9px; min-width: 0; }
  .bottom-nav-item span { font-size: 9px; }
  .bottom-nav-item i, .bottom-nav-item svg { width: 18px; height: 18px; }
}

/* ── Content list media thumbnail ─────────────────── */
.content-list-table .td-thumb {
  width: 80px;
  padding: 8px 10px;
  vertical-align: middle;
}
.content-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg,#f5f5f5,#ececec);
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-thumb img,
.content-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.content-thumb-tag {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.75);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.content-thumb-tag svg { width: 10px; height: 10px; }
.content-thumb-empty {
  color: #b5b5b5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.content-thumb-empty svg { width: 22px; height: 22px; }

/* Tablet — slightly smaller */
@media (max-width: 1024px) and (min-width: 769px) {
  .content-list-table .td-thumb { width: 72px; }
  .content-thumb { width: 56px; height: 56px; }
}

/* Mobile card — full-width banner thumb */
@media (max-width: 768px) {
  .data-table tbody td.td-thumb {
    display: block !important;
    padding: 0 !important;
    background: #000;
  }
  .data-table tbody td.td-thumb::before { display: none !important; }
  .content-list-table .td-thumb { width: 100%; }
  .data-table tbody td.td-thumb .content-thumb {
    width: 100%;
    height: 180px;
    border-radius: 0;
    border: none;
    background: #111;
  }
  .data-table tbody td.td-thumb .content-thumb img,
  .data-table tbody td.td-thumb .content-thumb video {
    object-fit: cover;
  }
  .data-table tbody td.td-thumb .content-thumb-tag {
    right: 10px;
    bottom: 10px;
    width: 26px;
    height: 26px;
  }
  .data-table tbody td.td-thumb .content-thumb-tag svg { width: 14px; height: 14px; }
}
@media (max-width: 480px) {
  .data-table tbody td.td-thumb .content-thumb { height: 150px; }
}
