/* ==========================================================
   Office Manager — Stylesheet
   Practical + premium: navy base, gold accents, clean tables.
   ========================================================== */

:root {
  --navy-900: #0F1A2E;
  --navy-800: #1A2744;
  --navy-700: #253557;
  --navy-600: #344668;
  --navy-400: #5C6F93;
  --navy-200: #B4BFD3;
  --navy-50:  #F2F4F9;

  --gold:      #C9A961;
  --gold-lt:   #E3C98A;
  --gold-dk:   #9E832F;

  --bg:        #F7F8FB;
  --surface:   #FFFFFF;
  --border:    #E3E7EF;
  --border-strong: #C9D0DE;

  --text:      #1A2744;
  --text-muted:#5C6F93;
  --text-light:#8A98B3;

  --success:   #10B981;
  --warning:   #F59E0B;
  --danger:    #EF4444;
  --info:      #3B82F6;

  --radius:    8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15,26,46,0.06);
  --shadow:    0 2px 8px rgba(15,26,46,0.08);
  --shadow-lg: 0 8px 24px rgba(15,26,46,0.12);

  --sidebar-w: 220px;
  --header-h:  56px;

  --font: 'Rubik', 'Segoe UI', 'Assistant', Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  /* Respect iPhone notch / home indicator */
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}
input, select, textarea, button {
  font-size: 16px;              /* ≥16px on iOS prevents auto-zoom on focus */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 8px;
}
/* Restore native rendering for checkboxes / radios / file pickers — the
   blanket `appearance: none` above would otherwise make them invisible. */
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="color"],
input[type="range"] {
  -webkit-appearance: auto;
  appearance: auto;
  border-radius: 0;
}
input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--navy-800);
}
@media (min-width: 769px) {
  input, select, textarea, button { font-size: 14px; }
}
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-dk); }

/* ---------- Screens ---------- */
.screen { display: none; }

/* =========================================================
   LOGIN
   ========================================================= */
#screen-login.active {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at top, rgba(201,169,97,0.08), transparent 50%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}
.login-logo {
  text-align: center;
  margin-bottom: 24px;
}
.login-logo h1 {
  font-size: 22px;
  color: var(--navy-800);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.login-logo .tag {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}
.login-card h2 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
}
.login-card .hint {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

/* =========================================================
   APP LAYOUT (sidebar + header + main)
   ========================================================= */
#screen-app.active {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
}

/* ---------- Sidebar ---------- */
.sidebar {
  grid-area: sidebar;
  background: var(--navy-800);
  color: #FFF;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.sidebar-brand h1 {
  font-size: 13px;
  font-weight: 600;
  color: #FFF;
  line-height: 1.3;
}
.sidebar-brand .tag {
  font-size: 12px;
  color: var(--gold-lt);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  text-align: start;
  color: var(--navy-200);
  font-size: 14px;
  font-weight: 400;
  border-right: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sidebar-nav button:hover {
  background: var(--navy-700);
  color: #FFF;
}
.sidebar-nav button.active {
  background: var(--navy-700);
  color: #FFF;
  border-right-color: var(--gold);
  font-weight: 500;
}
.sidebar-nav .nav-icon {
  font-size: 16px;
  width: 18px;
  text-align: center;
  opacity: 0.85;
}
.sidebar-nav button[hidden] { display: none; }
.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: var(--navy-400);
}

/* ---------- Header ---------- */
.header {
  grid-area: header;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.header-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-800);
}
.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.header-user .user-role {
  background: var(--navy-50);
  color: var(--navy-700);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.btn-signout {
  color: var(--text-muted);
  font-size: 13px;
}
.btn-signout:hover { color: var(--danger); }

/* ---------- Main ---------- */
.main {
  grid-area: main;
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h));
}
.page { display: none; }
.page.active { display: block; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-800);
}
.page-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================
   FORMS
   ========================================================= */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.input, .select, .textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.10);
}
.textarea { min-height: 80px; resize: vertical; }
.select { cursor: pointer; background-image: none; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.05s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy-800);
  color: #FFF;
}
.btn-primary:hover { background: var(--navy-700); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-lt); }
.btn-secondary {
  background: var(--surface);
  color: var(--navy-800);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--navy-50); }
.btn-danger {
  background: var(--danger);
  color: #FFF;
}
.btn-danger:hover { background: #dc2626; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--navy-50); color: var(--navy-800); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-icon {
  padding: 6px 8px;
  color: var(--text-muted);
  border-radius: var(--radius);
}
.btn-icon:hover { background: var(--navy-50); color: var(--navy-800); }
.btn[disabled], .btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}

/* =========================================================
   TABLES
   ========================================================= */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table thead th {
  background: var(--navy-50);
  text-align: start;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-700);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #FBFCFD; }
.table .actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.table .muted { color: var(--text-muted); }
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .big {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.4;
}

/* =========================================================
   BADGES
   ========================================================= */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid transparent;
}
.badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   CARDS / STATS
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  opacity: 0.7;
}
.stat-card .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.stat-card .value {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-800);
  margin-top: 4px;
  line-height: 1.1;
}
.stat-card .sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 12px;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,26,46,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-800);
}
.modal-body { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}
.btn-close-modal {
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
}
.btn-close-modal:hover { background: var(--navy-50); color: var(--navy-800); }

/* =========================================================
   SEARCH + FILTERS
   ========================================================= */
.search-input {
  min-width: 240px;
}
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.filter-bar .select { min-width: 160px; }

/* =========================================================
   TOAST
   ========================================================= */
.om-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: var(--navy-800);
  color: #FFF;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2000;
  pointer-events: none;
}
.om-toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.om-toast--success { background: var(--success); }
.om-toast--error   { background: var(--danger); }
.om-toast--warning { background: var(--warning); color: var(--navy-900); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --header-h: 52px;
  }
  #screen-app.active {
    grid-template-columns: 1fr;
    grid-template-rows: var(--header-h) auto 1fr;
    grid-template-areas:
      "header"
      "sidebar"
      "main";
  }
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    position: sticky;
    top: var(--header-h);
    z-index: 10;
  }
  .sidebar::-webkit-scrollbar { height: 3px; }
  .sidebar-brand { display: none; }
  .sidebar-nav { display: flex; padding: 0; }
  .sidebar-nav button {
    padding: 14px 16px;                /* taller for touch (≥44px) */
    min-height: 44px;
    white-space: nowrap;
    border-right: none;
    border-bottom: 3px solid transparent;
  }
  .sidebar-nav button.active {
    border-right-color: transparent;
    border-bottom-color: var(--gold);
  }
  .sidebar-footer { display: none; }
  .header { padding: 0 14px; }
  .header-title { font-size: 15px; }
  .header-user { font-size: 12px; gap: 8px; }
  .header-user span:first-child { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .main { padding: 14px; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-toolbar { flex-direction: column; align-items: stretch; }
  .page-toolbar .select,
  .page-toolbar .input { width: 100%; min-width: 0; }
  .search-input { min-width: 0; width: 100%; }

  .btn { min-height: 44px; padding: 10px 16px; }           /* touch targets */
  .btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13px; }
  .btn-icon { min-width: 40px; min-height: 40px; }

  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 600px; }                             /* scrollable on narrow screens */

  /* Calendar — compact on mobile */
  .cal-grid { grid-auto-rows: minmax(72px, auto); }
  .cal-cell { padding: 4px 5px; min-height: 72px; }
  .cal-greg { font-size: 12px; }
  .cal-heb { font-size: 9px; }
  .cal-holiday { font-size: 9px; padding: 0 4px; }
  .cal-meeting { font-size: 9px; padding: 1px 4px; }
  .cal-weekdays > div { padding: 6px 4px; font-size: 11px; }

  /* Modal — full screen on mobile */
  .modal-overlay { padding: 0; }
  .modal {
    max-width: none;
    max-height: none;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .modal-body { flex: 1; overflow-y: auto; }

  /* Stat cards — smaller */
  .stat-card .value { font-size: 22px; }
  .stats-grid { gap: 10px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .main { padding: 10px; }
  .page-header h2 { font-size: 17px; }
  .cal-cell { padding: 3px 4px; min-height: 60px; }
  .cal-meeting { display: none; }            /* too cramped — use dots */
  .cal-cell.has-holiday::after,
  .cal-cell .cal-meeting-indicator { display: inline-block; }
}

/* =========================================================
   CALENDAR (Meetings page)
   ========================================================= */
.cal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cal-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.cal-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-800);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--navy-50);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.cal-weekdays > div {
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-700);
  border-left: 1px solid var(--border);
}
.cal-weekdays > div:first-child { border-left: none; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(100px, auto);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.cal-cell {
  padding: 6px 8px;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  min-height: 100px;
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.cal-cell:hover { background: #FBFCFD; }
.cal-cell.is-out { background: #F9FAFC; color: var(--text-light); }
.cal-cell.is-today { background: rgba(201, 169, 97, 0.08); }
.cal-cell.is-shabbat { background: rgba(26, 39, 68, 0.03); }
.cal-cell.has-holiday .cal-greg { color: var(--gold-dk); }
.cal-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.cal-greg {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
}
.cal-cell.is-today .cal-greg {
  background: var(--gold);
  color: var(--navy-900);
  padding: 0 6px;
  border-radius: 10px;
  font-weight: 700;
}
.cal-heb {
  font-size: 11px;
  color: var(--text-muted);
}
.cal-holiday {
  font-size: 11px;
  color: var(--gold-dk);
  font-weight: 500;
  background: rgba(201, 169, 97, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-meeting {
  font-size: 11px;
  background: var(--navy-800);
  color: #FFF;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-meeting:hover { background: var(--navy-700); }
.cal-meeting-time {
  opacity: 0.75;
  font-size: 10px;
  margin-left: 3px;
}
.cal-more {
  font-size: 10px;
  color: var(--text-muted);
  padding-right: 4px;
}

/* =========================================================
   TENDERS BOARD (Kanban)
   ========================================================= */
.tenders-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .tenders-board { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .tenders-board { grid-template-columns: 1fr; }
}
.tenders-col {
  background: var(--navy-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tenders-col-head {
  padding: 10px 14px;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.tenders-col-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.tenders-card {
  background: var(--surface);
  padding: 10px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.05s;
}
.tenders-card:hover { box-shadow: var(--shadow); }
.tenders-card:active { transform: translateY(1px); }
.tenders-card-title { font-weight: 500; color: var(--navy-800); margin-bottom: 2px; }

/* =========================================================
   EXPIRY CLASSES (licenses)
   ========================================================= */
.expiry-soon {
  color: var(--warning);
  font-weight: 500;
}
.expiry-overdue {
  color: var(--danger);
  font-weight: 600;
}

/* =========================================================
   QUOTES — dynamic form rows
   ========================================================= */
.qf-dyn-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.qf-dyn-row .input { min-width: 0; }
.qf-dyn-row input[type="checkbox"] { width: 18px; height: 18px; }

/* =========================================================
   NOTIFICATIONS BELL
   ========================================================= */
.bell-badge {
  position: absolute;
  top: -2px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.bell-panel {
  position: absolute;
  top: calc(var(--header-h) - 4px);
  left: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: 520px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.bell-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy-50);
  flex-shrink: 0;
}
.bell-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.bell-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.bell-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bell-item:hover { background: var(--navy-50); }
.bell-item.unread { background: rgba(59, 130, 246, 0.06); border-right: 3px solid var(--info); }
.bell-item-title { font-weight: 500; font-size: 13px; color: var(--navy-800); }
.bell-item-body  { font-size: 12px; color: var(--text-muted); margin-top: 2px; word-wrap: break-word; }
.bell-item-time  { font-size: 10px; color: var(--text-light); margin-top: 4px; }
.bell-item-mark:hover { background: var(--success) !important; color: #fff !important; }


/* ============================================================
   Print styles — used by reports/monthly export
   ============================================================ */
@media print {
  .sidebar, .header, .no-print-controls,
  #notif-bell, .modal-backdrop, .toast {
    display: none !important;
  }
  .main, body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #e5e7eb !important; page-break-inside: avoid; }
  .stat-card { border: 1px solid #e5e7eb !important; }
  h2, h3 { page-break-after: avoid; }
  .table { font-size: 11pt; }
  @page { margin: 1cm; }
}
