/* ── INTER FONT (local) ── */
@font-face { font-family: 'Inter'; src: url('/fonts/Inter/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter/Inter-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter/Inter-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
i[data-lucide] { display: inline-block; vertical-align: middle; }
.ico-sm i[data-lucide], .ico-sm { width: 14px; height: 14px; }
.ico-md i[data-lucide], .ico-md { width: 16px; height: 16px; }
.ico-lg i[data-lucide], .ico-lg { width: 18px; height: 18px; }

/* ── TOP NAV ── */
.topnav {
  background: #1a3352; color: #fff;
  display: flex; align-items: center; padding: 0 28px; height: 72px; gap: 4px;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.topnav .brand { font-weight: 800; font-size: 16px; letter-spacing: -.4px; margin-right: 24px; white-space: nowrap; text-decoration: none; color: #fff; display: flex; align-items: center; gap: 10px; }
.topnav .brand em { color: #60a5fa; font-style: normal; }
.brand-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  height: 62px; width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  flex-shrink: 0;
}
.brand-logo { height: 54px; width: auto; display: block; }
.brand-text { line-height: 1.15; }
.nbtn {
  background: none; border: none; color: #94a3b8; font: inherit; font-size: 12.5px;
  padding: 6px 13px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: .15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.nbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.nbtn.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.topnav .gap { flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); padding: 5px 14px; border-radius: 20px; font-size: 12.5px;
}
.ava { width: 28px; height: 28px; border-radius: 50%; background: #3b82f6;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; flex-shrink: 0; }

/* ── SHARED ── */
.wrap { padding: 28px 36px; max-width: 1440px; margin: 0 auto; }
.ptitle { font-size: 21px; font-weight: 700; color: #0f172a; margin-bottom: 3px; }
.psub   { font-size: 13px; color: #64748b; margin-bottom: 24px; }
.card   { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 22px; }
.ctitle { font-size: 10.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.divider { border: none; border-top: 1px solid #e2e8f0; margin: 18px 0; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: .15s; text-decoration: none; }
.btn:hover { filter: brightness(.92); }
.btn-navy   { background: #1a3352; color: #fff; }
.btn-green  { background: #16a34a; color: #fff; }
.btn-red    { background: #dc2626; color: #fff; }
.btn-ghost  { background: #fff; color: #475569; border: 1px solid #d1d5db; }
.btn-sm     { padding: 5px 12px; font-size: 12px; border-radius: 6px; }

/* ── BADGES ── */
.bdg { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; gap: 4px; }
.bdg-grey   { background: #f1f5f9; color: #475569; }
.bdg-blue   { background: #dbeafe; color: #1d4ed8; }
.bdg-amber  { background: #fef9c3; color: #854d0e; }
.bdg-green  { background: #dcfce7; color: #15803d; }
.bdg-red    { background: #fee2e2; color: #991b1b; }
.bdg-purple { background: #ede9fe; color: #5b21b6; }
.bdg-orange { background: #ffedd5; color: #9a3412; }
.bdg-slate  { background: #e2e8f0; color: #1a3352; }
.bdg-teal   { background: #ccfbf1; color: #0f5046; }

/* ── TABLES ── */
table { width: 100%; border-collapse: collapse; }
th { background: #f8fafc; color: #64748b; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px;
  border-bottom: 2px solid #e2e8f0; text-align: left; white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.tr-green  td { background: #f0fdf4; }
.tr-red    td { background: #fef2f2; }
.tr-amber  td { background: #fefce8; }
.tr-orange td { background: #fff7ed; }
.tg-row td { background: #f1f5f9 !important; font-weight: 700; font-size: 11px;
  color: #1a3352; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid #e2e8f0; padding: 7px 14px; }
.twrap { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; }

/* ── FORMS ── */
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px;
  font: inherit; font-size: 13px; color: #111827; outline: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.fg textarea { resize: vertical; min-height: 80px; }
.fhint { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.fwarn { font-size: 11px; color: #d97706; margin-top: 4px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .fw { grid-column: 1/-1; }
.fsect { grid-column: 1/-1; font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase;
  letter-spacing: .07em; padding: 16px 0 6px; border-top: 1px solid #f1f5f9; margin-top: 4px; }
.fsect:first-child { border-top: none; padding-top: 0; }

/* ── INFO ROWS ── */
.ir { display: flex; padding: 9px 0; border-bottom: 1px solid #f8fafc; }
.ir:last-child { border-bottom: none; }
.il { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase;
  letter-spacing: .05em; width: 160px; flex-shrink: 0; padding-top: 1px; }
.iv { font-size: 13px; color: #111827; flex: 1; }
.iv a { color: #2563eb; text-decoration: none; }
.iv a:hover { text-decoration: underline; }

/* ── BANNERS ── */
.banner-blue { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: #1d4ed8; margin-bottom: 16px; }
.banner-warn { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: #9a3412; }

/* ── DASHBOARD STATS ── */
.statrow { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 20px 22px; }
.stat .sl { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.stat .sv { font-size: 34px; font-weight: 800; color: #0f172a; line-height: 1; }
.stat .ss { font-size: 12px; color: #64748b; margin-top: 4px; }
.sv-green { color: #15803d !important; }
.sv-red   { color: #dc2626 !important; }
.sv-amber { color: #d97706 !important; }

/* ── FILTER BAR ── */
.fbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.ftabs { display: flex; gap: 3px; background: #f1f5f9; padding: 4px; border-radius: 9px; }
.ft { padding: 5px 13px; border-radius: 6px; font-size: 12px; font-weight: 500; color: #64748b;
  cursor: pointer; border: none; background: none; font-family: inherit; transition: .12s; }
.ft.on { background: #fff; color: #1a3352; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.search { padding: 7px 12px 7px 34px; border: 1px solid #d1d5db; border-radius: 8px;
  font: inherit; font-size: 13px; width: 210px; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 11px center; }

/* ── BREADCRUMB ── */
.breadc { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.breadc a { color: #2563eb; cursor: pointer; text-decoration: none; }
.breadc a:hover { text-decoration: underline; }

/* ── TASK DETAIL ── */
.thero { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; gap: 16px; }
.thero h1 { font-size: 23px; font-weight: 800; color: #0f172a; margin-bottom: 10px; line-height: 1.2; }
.dcols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── STEPPER ── */
.step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 34px;
  width: 2px; height: calc(100% - 12px); }
.step.done::after  { background: #86efac; }
.step.act::after   { background: #e5e7eb; }
.step.lock::after  { background: #e5e7eb; }
.sico { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.done .sico  { background: #dcfce7; color: #16a34a; border: 2px solid #86efac; }
.act  .sico  { background: #fef9c3; color: #d97706; border: 2px solid #fde047; }
.lock .sico  { background: #f1f5f9; color: #d1d5db; border: 2px solid #e5e7eb; }
.sbody { flex: 1; padding-top: 4px; }
.stitle { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.smeta  { font-size: 12px; color: #6b7280; line-height: 1.5; }

/* ── ADMIN LAYOUT ── */
.alayout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.aside { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 10px; position: sticky; top: 74px; }
.anav { padding: 9px 13px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #475569;
  cursor: pointer; transition: .12s; margin-bottom: 2px; display: flex; align-items: center; gap: 8px;
  text-decoration: none; }
.anav:hover { background: #f8fafc; }
.anav.on { background: #eff6ff; color: #1a3352; font-weight: 600; }

/* ── TOGGLE SWITCH ── */
.toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.tslider { position: absolute; inset: 0; background: #d1d5db; border-radius: 20px; cursor: pointer; transition: .2s; }
.tslider:before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle input:checked + .tslider { background: #1a3352; }
.toggle input:checked + .tslider:before { transform: translateX(16px); }
.toggle input:disabled + .tslider { opacity: .5; cursor: not-allowed; }

/* ── NOTIFICATION BELL ── */
.notif-wrap { position: relative; }
.notif-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: #94a3b8; padding: 6px 8px; border-radius: 8px; transition: .15s;
  display: flex; align-items: center; margin-right: 4px; text-decoration: none;
}
.notif-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.notif-count {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px;
  background: #ef4444; border-radius: 8px; border: 2px solid #1a3352;
  font-size: 9px; font-weight: 700; color: #fff; display: flex;
  align-items: center; justify-content: center; padding: 0 3px;
}

/* ── NOTIFICATION DROPDOWN ── */
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 360px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.16);
  border: 1px solid #e2e8f0; z-index: 999; overflow: hidden;
}
.nd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #f1f5f9;
}
.nd-title { font-size: 13px; font-weight: 700; color: #111827; }
.nd-list { max-height: 320px; overflow-y: auto; }
.nd-empty { padding: 32px 16px; text-align: center; font-size: 13px; color: #9ca3af; }
.nd-item {
  display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f8fafc;
  align-items: flex-start; transition: background .12s;
}
.nd-item:hover { background: #f8fafc; }
.nd-item.unread { background: #f0f4ff; border-left: 3px solid #1a3352; }
.nd-item.unread:hover { background: #e8eeff; }
.nd-ico {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: #dbeafe; color: #1d4ed8;
}
.nd-body { flex: 1; min-width: 0; }
.nd-item-title { font-size: 12px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.nd-item-msg   { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-item-time  { font-size: 10px; color: #9ca3af; margin-top: 2px; }
.nd-actions    { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.nd-foot {
  padding: 10px 16px; text-align: center; border-top: 1px solid #f1f5f9;
  font-size: 12px; font-weight: 600;
}
.nd-foot a { color: #1a3352; text-decoration: none; }
.nd-foot a:hover { text-decoration: underline; }

/* ── NOTIFICATIONS LIST (full page) ── */
.ni { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #f1f5f9;
  transition: background .12s; align-items: flex-start; }
.ni:hover { background: #f8fafc; }
.ni.unread { background: #f0f4ff; border-left: 3px solid #1a3352; }
.ni.unread:hover { background: #e8eeff; }
.ni-ico { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.ni-ico-overdue  { background: #fee2e2; color: #dc2626; }
.ni-ico-reminder { background: #fef9c3; color: #d97706; }
.ni-ico-complete { background: #dcfce7; color: #16a34a; }
.ni-ico-returned { background: #ffedd5; color: #ea580c; }
.ni-ico-info     { background: #dbeafe; color: #1d4ed8; }
.ni-body { flex: 1; }
.ni-title { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 3px; }
.ni-meta  { font-size: 12px; color: #6b7280; }
.ni-time  { font-size: 11px; color: #9ca3af; white-space: nowrap; margin-top: 2px; }
.ni-dot   { width: 8px; height: 8px; border-radius: 50%; background: #1a3352; flex-shrink: 0; margin-top: 6px; }

/* ── MODAL ── */
.mbg { min-height: calc(100vh - 54px); display: flex; align-items: center; justify-content: center;
  background: rgba(10,20,35,.55); backdrop-filter: blur(5px); }
.modal { background: #fff; border-radius: 14px; width: 540px; overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.mhead { padding: 22px 26px 18px; border-bottom: 1px solid #e2e8f0; }
.mhead h2 { font-size: 17px; font-weight: 700; }
.mhead p  { font-size: 12px; color: #6b7280; margin-top: 3px; }
.mbody { padding: 22px 26px; }
.mfoot { padding: 16px 26px; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; gap: 10px; }

/* ── LOGIN ── */
.login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #0c1e35 0%, #1a3352 55%, #1d4ed8 100%); }
.lcard { background: #fff; border-radius: 16px; width: 380px; padding: 44px 40px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
/* .llogo { text-align: center; margin-bottom: 30px; }
.llogo .lt { font-size: 26px; font-weight: 900; color: #1a3352; letter-spacing: -1px; }
.llogo .bar { width: 36px; height: 4px; background: #2563eb; border-radius: 2px; margin: 8px auto; }
.llogo .ls { font-size: 10px; color: #9ca3af; letter-spacing: .14em; text-transform: uppercase; } */
.lbtn { width: 100%; padding: 12px; background: #1a3352; color: #fff; border: none;
  border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.lbtn:hover { background: #1d4ed8; }

/* ── FLASH MESSAGES ── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .wrap { padding: 20px; }
  .statrow { grid-template-columns: repeat(2,1fr); }
  .dcols { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .fgrid .fw { grid-column: 1; }
  .fsect { grid-column: 1; }
  .alayout { grid-template-columns: 1fr; }
  .aside { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 768px) {
  .topnav { padding: 0 16px; gap: 2px; }
  .topnav .brand { font-size: 14px; margin-right: 12px; gap: 8px; }
  .brand-logo-wrap { height: 42px; padding: 3px 7px; }
  .brand-logo { height: 36px; }
  .nbtn { padding: 6px 8px; font-size: 11px; }
  .wrap { padding: 16px; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .twrap { overflow-x: auto; }
  .fbar { flex-direction: column; align-items: flex-start; }
  .ftabs { flex-wrap: wrap; }
  .search { width: 100%; }
  .thero { flex-direction: column; }
  .modal { width: calc(100vw - 32px); }
}
@media (max-width: 480px) {
  .statrow { grid-template-columns: 1fr; }
  .lcard { width: calc(100vw - 32px); padding: 32px 24px; }
}

/* ── FLATPICKR THEME OVERRIDE ── */
.flatpickr-calendar {
  font-family: 'Inter', sans-serif; font-size: 12px;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: 1px solid #e2e8f0; width: 260px !important;
}
.flatpickr-days, .dayContainer { width: 260px !important; min-width: 260px !important; max-width: 260px !important; }
.flatpickr-day { max-width: 34px; height: 32px; line-height: 32px; font-size: 12px; }
.flatpickr-months { padding: 4px 0; }
.flatpickr-months .flatpickr-month { height: 34px; }
.flatpickr-current-month {
  font-size: 13px; font-weight: 600; padding-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.flatpickr-current-month span.cur-month { font-size: 13px; font-weight: 600; color: #fff; }
.flatpickr-current-month .numInputWrapper { width: auto; overflow: visible; }
/* Hide only the up/down spinner arrows, NOT all spans (yearBtn is also a span) */
.numInputWrapper .arrowUp,
.numInputWrapper .arrowDown { display: none !important; }

/* Always-visible prev/next month arrows */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  opacity: 1 !important; visibility: visible !important;
  display: flex !important; align-items: center; justify-content: center;
  width: 28px; height: 34px; top: 0; padding: 0;
  position: absolute; background: none !important;
}
.flatpickr-months .flatpickr-prev-month { left: 0; }
.flatpickr-months .flatpickr-next-month { right: 0; }
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover { background: #f1f5f9 !important; border-radius: 5px; }

/* Year button in header */
.fp-year-btn {
  display: inline-block !important; visibility: visible !important;
  color: #000 !important; background: none !important;
  font-size: 13px !important; font-weight: 700 !important;
  cursor: pointer; border: none; padding: 0;
}
.fp-year-btn:hover { opacity: 0.7; }

/* Year grid popup */
.fp-year-popup {
  display: none; position: absolute; z-index: 9999;
  top: 38px; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 12px; width: 224px;
}
.fp-yp-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.fp-yp-range { font-size: 13px; font-weight: 700; color: #1a3352; }
.fp-yp-arrow {
  background: none; border: 1px solid #e2e8f0; border-radius: 6px;
  cursor: pointer; font-size: 18px; color: #1a3352;
  padding: 0 8px; line-height: 1.6; font-family: inherit;
}
.fp-yp-arrow:hover { background: #f1f5f9; }
.fp-yp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.fp-yp-year {
  border: none; border-radius: 6px; padding: 7px 0; cursor: pointer;
  font-size: 12px; font-family: inherit; font-weight: 500;
  background: transparent; color: #1a3352; width: 100%;
}
.fp-yp-year:hover { background: #eff6ff; }
.fp-yp-year.fp-yp-sel { background: #1a3352; color: #fff; font-weight: 700; }
.fp-yp-year.fp-yp-edge { color: #9ca3af; }
.flatpickr-weekdays { height: 28px; }
span.flatpickr-weekday { font-size: 11px; }
/* Sundays column heading (first column = Sun) */
.flatpickr-weekdays .flatpickr-weekday:first-child { color: #fca5a5; }
/* Disabled days (Sundays + holidays) */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover { color: #fca5a5 !important; background: #fff5f5 !important; cursor: not-allowed !important; text-decoration: line-through; }
/* Holiday days - amber tint */
.flatpickr-day.holiday-day.flatpickr-disabled { color: #d97706 !important; background: #fffbeb !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: #1a3352; border-color: #1a3352; color: #fff; }
.flatpickr-day:hover { background: #eff6ff; border-color: #eff6ff; color: #1a3352; }
.flatpickr-day.today { border-color: #1a3352; }
.flatpickr-day.today:hover { background: #1a3352; color: #fff; }
.flatpickr-weekdays, span.flatpickr-weekday { background: #f8fafc; }
.flatpickr-current-month span.cur-month { color: #000 !important; }
.flatpickr-input.active, .flatpickr-input:focus { border-color: #1a3352 !important; outline: none; box-shadow: 0 0 0 3px rgba(26,51,82,.1); }
/* Pagination */
.shfc-pagination { display:flex;gap:4px;flex-wrap:wrap;margin-top:16px;align-items:center; }
.pg-btn { padding:5px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:13px;text-decoration:none;color:#374151;background:#fff;display:inline-block;cursor:pointer; }
.pg-btn.pg-active { background:#1e3a5f;color:#fff;border-color:#1e3a5f;font-weight:600; }
.pg-btn.pg-disabled { color:#9ca3af;cursor:default;pointer-events:none; }
.pg-btn.pg-dots { border:none;background:none;padding:5px 6px;cursor:default; }
.pg-btn:not(.pg-active):not(.pg-disabled):not(.pg-dots):hover { background:#f8fafc; }

/* responsive — prevent overflow on small screens */
@media (max-width: 480px) {
  .flatpickr-calendar { width: calc(100vw - 32px) !important; }
  .flatpickr-days, .dayContainer { width: 100% !important; min-width: unset !important; max-width: unset !important; }
}
