/* ============================================================
   CMC CRM — Premium theme
   Deep navy + champagne gold, Plus Jakarta Sans / Cormorant
   ============================================================ */
:root {
  --navy-950: #0a1020;
  --navy-900: #0d1526;
  --navy-800: #14203a;
  --navy-700: #1c2c4f;
  --ink: #16233d;
  --gold: #c9a253;
  --gold-light: #e6c880;
  --gold-soft: rgba(201, 162, 83, .12);
  --bg: #eef1f7;
  --card: #ffffff;
  --line: #e6eaf2;
  --muted: #8b96ab;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .05), 0 4px 16px rgba(13, 21, 38, .06);
  --shadow-md: 0 4px 10px rgba(13, 21, 38, .07), 0 12px 32px rgba(13, 21, 38, .10);
  --grad-gold: linear-gradient(135deg, #dcb96d 0%, #c9a253 45%, #a87f35 100%);
  --grad-navy: linear-gradient(160deg, #101b33 0%, #0d1526 55%, #0a1020 100%);
}

* { -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 162, 83, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(28, 44, 79, .08), transparent 60%),
    var(--bg);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
::selection { background: var(--gold-soft); }

/* Custom scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c6cddb; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #a9b3c6; }

.cmc-layout { display: flex; min-height: 100vh; }

/* ================= Sidebar ================= */
.cmc-sidebar {
  width: 264px; flex-shrink: 0; color: #aab7cf;
  background: var(--grad-navy);
  border-right: 1px solid rgba(255, 255, 255, .04);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.cmc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-color: transparent; }

.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; position: relative; }
.brand::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 83, .45), transparent);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-gold); color: #1a1206;
  font-weight: 800; font-size: 1rem; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(201, 162, 83, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.brand-name {
  color: #f5f0e6; font-weight: 600; font-size: 1.02rem; line-height: 1.15;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; letter-spacing: .3px;
}
.brand-sub { font-size: .62rem; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }

.cmc-nav { padding: 14px 14px 20px; flex: 1; }
.nav-section {
  font-size: .62rem; text-transform: uppercase; letter-spacing: 2px;
  color: #5b6a85; margin: 20px 12px 8px; font-weight: 700;
}
.cmc-nav .nav-link {
  color: #aab7cf; border-radius: 10px; padding: 9px 14px; font-size: .875rem; font-weight: 500;
  display: flex; align-items: center; gap: 12px; margin-bottom: 2px;
  position: relative; transition: all .18s ease;
}
.cmc-nav .nav-link i { width: 18px; text-align: center; font-size: 1rem; opacity: .8; transition: all .18s ease; }
.cmc-nav .nav-link:hover { background: rgba(255, 255, 255, .05); color: #fff; transform: translateX(2px); }
.cmc-nav .nav-link:hover i { opacity: 1; color: var(--gold-light); }
.cmc-nav .nav-link.active {
  background: linear-gradient(90deg, rgba(201, 162, 83, .16), rgba(201, 162, 83, .04));
  color: #f2e7cf; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 83, .25);
}
.cmc-nav .nav-link.active::before {
  content: ""; position: absolute; left: -14px; top: 20%; bottom: 20%; width: 3px;
  border-radius: 3px; background: var(--grad-gold);
}
.cmc-nav .nav-link.active i { color: var(--gold); opacity: 1; }

.sidebar-foot {
  padding: 14px 20px; color: #5b6a85; font-size: .72rem;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.sidebar-foot a { color: #8fa0bd !important; text-decoration: none; }
.sidebar-foot a:hover { color: var(--gold-light) !important; }

/* ================= Main / Topbar ================= */
.cmc-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cmc-topbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex; align-items: center;
  position: sticky; top: 0; z-index: 100;
}
.page-title {
  font-size: 1.28rem; font-weight: 700; margin: 0; color: var(--navy-900);
  letter-spacing: -.02em;
}
.page-title::after {
  content: ""; display: block; width: 34px; height: 3px; margin-top: 4px;
  border-radius: 3px; background: var(--grad-gold);
}
.cmc-topbar .btn-light {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); transition: all .18s ease;
}
.cmc-topbar .btn-light:hover { border-color: #d5dbe8; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.cmc-content { padding: 28px; flex: 1; }
.cmc-footer { padding: 14px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

/* ================= Cards ================= */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.card-header {
  background: transparent; border-bottom: 1px solid var(--line);
  font-weight: 700; color: var(--navy-900); font-size: .95rem;
  padding: 14px 20px; letter-spacing: -.01em;
  border-radius: var(--radius) var(--radius) 0 0 !important;
}

.metric-card { position: relative; overflow: hidden; border: 1px solid var(--line); }
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.metric-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-gold); opacity: 0;
  transition: opacity .25s ease;
}
.metric-card:hover::before { opacity: 1; }
.metric-card .icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.metric-value {
  font-size: 1.55rem; font-weight: 800; color: var(--navy-900);
  letter-spacing: -.03em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--muted); font-weight: 700; margin-top: 2px;
}

/* ================= Avatars ================= */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13, 21, 38, .22), inset 0 1px 0 rgba(255, 255, 255, .25);
  border: 2px solid rgba(255, 255, 255, .85);
}

/* ================= Tables ================= */
.table { --bs-table-hover-bg: #f7f9fd; margin-bottom: 0; }
.table thead th {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); font-weight: 700;
  background: #fafbfe; border-bottom: 1px solid var(--line) !important;
  padding: 12px 16px;
}
.table td { vertical-align: middle; font-size: .875rem; padding: 12px 16px; border-color: #f0f3f9; }
.table tbody tr { transition: background .12s ease; }
.table-danger td { background: #fdf1f2 !important; }
.table-warning td { background: #fdf8ec !important; }

/* ================= Badges & buttons ================= */
.badge {
  font-weight: 600; letter-spacing: .2px; padding: .38em .7em;
  border-radius: 20rem; font-size: .7rem;
}
.badge.text-bg-light { background: #f2f5fa !important; color: #5a677e !important; border-color: var(--line) !important; }

.btn { border-radius: 11px; font-weight: 600; letter-spacing: .1px; transition: all .18s ease; }
.btn-primary {
  background: linear-gradient(150deg, #24365c, #16233d);
  border: 1px solid #16233d;
  box-shadow: 0 3px 10px rgba(22, 35, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-primary:hover {
  background: linear-gradient(150deg, #2b4271, #1b2c4c);
  border-color: #1b2c4c; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 35, 61, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-gold {
  background: var(--grad-gold); color: #241804; border: none;
  box-shadow: 0 4px 14px rgba(201, 162, 83, .38), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { color: #241804; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(201, 162, 83, .48); }
.btn-sm { border-radius: 9px; }
.btn-outline-secondary, .btn-outline-primary, .btn-outline-success { border-width: 1.5px; }

/* ================= Forms ================= */
.form-control, .form-select {
  border-radius: 11px; border-color: #dde3ee; padding: .5rem .85rem;
  transition: all .18s ease; font-size: .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 .22rem rgba(201, 162, 83, .18);
}
.form-label { color: #5a677e; font-weight: 600; }
.input-group-text { border-radius: 11px 0 0 11px; background: #f7f9fd; border-color: #dde3ee; color: var(--muted); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-switch .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(201, 162, 83, .18); }

/* ================= Dropdowns / modals / tabs ================= */
.dropdown-menu {
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px;
  animation: ddIn .16s ease;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-item { border-radius: 9px; padding: 8px 12px; font-size: .875rem; }
.dropdown-item:hover { background: #f4f6fb; }
.dropdown-item.active { background: var(--gold-soft); color: var(--navy-900); }
.dropdown-header { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--muted); }

.modal-content { border: none; border-radius: 20px; box-shadow: 0 24px 70px rgba(10, 16, 32, .35); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 24px; }
.modal-title { font-weight: 700; letter-spacing: -.01em; color: var(--navy-900); }
.modal-body { padding: 22px 24px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 24px; }
.modal-backdrop.show { opacity: .55; backdrop-filter: blur(2px); }

.nav-tabs { border-bottom: 1px solid var(--line); gap: 4px; }
.nav-tabs .nav-link {
  border: none; border-radius: 10px 10px 0 0; color: var(--muted); font-weight: 600; font-size: .875rem;
  padding: 10px 18px;
}
.nav-tabs .nav-link:hover { color: var(--navy-900); background: #f4f6fb; }
.nav-tabs .nav-link.active {
  color: var(--navy-900); background: transparent;
  box-shadow: inset 0 -3px 0 var(--gold);
}

.alert { border-radius: 14px; border: 1px solid var(--line); }
.alert-danger { background: #fdf1f2; border-color: #f5d4d8; color: #8c2f3b; }
.alert-success { background: #eefaf3; border-color: #cfeeda; color: #1d6b41; }
.alert-light { background: #fff; }

/* ================= Kanban ================= */
.kanban { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; }
.kanban-col {
  background: linear-gradient(180deg, #f2f4fa, #eceff6);
  border: 1px solid var(--line);
  border-radius: 16px; min-width: 252px; width: 252px; flex-shrink: 0;
}
.kanban-col-head {
  padding: 12px 14px; font-weight: 700; font-size: .8rem; color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center;
  text-transform: uppercase; letter-spacing: 1px;
}
.kanban-col-head .badge { background: #fff !important; color: var(--muted) !important; border: 1px solid var(--line); }
.kanban-card {
  background: #fff; border-radius: 13px; padding: 12px 14px; margin: 0 10px 10px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}
.kanban-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(201, 162, 83, .45); }
.kanban-card .name { font-weight: 700; font-size: .88rem; letter-spacing: -.01em; }

/* ================= Login ================= */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(201, 162, 83, .14), transparent 55%),
    radial-gradient(700px 500px at 10% 90%, rgba(63, 96, 160, .18), transparent 55%),
    var(--grad-navy);
  position: relative; overflow: hidden;
}
.login-page::before, .login-page::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgba(201, 162, 83, .14);
}
.login-page::before { width: 620px; height: 620px; top: -220px; right: -160px; }
.login-page::after { width: 900px; height: 900px; top: -340px; right: -280px; }

.login-card {
  max-width: 440px; width: 100%; border-radius: 24px; border: none;
  box-shadow: 0 30px 80px rgba(4, 8, 18, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: cardIn .5s cubic-bezier(.22, .8, .3, 1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.login-title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: .02em; }

.user-pick {
  cursor: pointer; border: 1.5px solid var(--line); border-radius: 14px;
  transition: all .18s ease; background: #fff;
}
.user-pick:hover { border-color: #cfd7e6; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.user-pick.selected {
  border-color: var(--gold);
  background: linear-gradient(160deg, #fdfaf2, #fbf4e4);
  box-shadow: 0 4px 14px rgba(201, 162, 83, .22);
}

/* ================= Misc ================= */
.text-gold { color: var(--gold) !important; }
a { color: #2b4271; }
a:hover { color: var(--gold); }
.card .border-bottom { border-color: #f0f3f9 !important; }

/* Page fade-in */
.cmc-content > * { animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================= Responsive columns ================
   No inner y-scroll: tables shed low-priority columns as the
   viewport narrows (xl <1400, lg <1200, md <992); below 768px
   the mobile card view takes over entirely.
   If a table still overflows, first column stays pinned. */
.table-desktop { overflow-x: auto; position: relative; }
.table-desktop th:first-child,
.table-desktop td:first-child {
  position: sticky; left: 0; z-index: 3;
  background: #fff;
}
.table-desktop thead th:first-child { background: #fafbfe; }
.table-desktop tbody tr:hover td:first-child { background: #f7f9fd; }
.table-desktop tr.table-danger td:first-child { background: #fdf1f2 !important; }
.table-desktop tr.table-warning td:first-child { background: #fdf8ec !important; }

/* Per-table column priorities (nth-child = column index) */
@media (max-width: 1399.98px) {
  .t-contacts th:nth-child(6), .t-contacts td:nth-child(6),
  .t-contacts th:nth-child(10), .t-contacts td:nth-child(10),
  .t-meetings th:nth-child(7), .t-meetings td:nth-child(7),
  .t-documents th:nth-child(6), .t-documents td:nth-child(6),
  .t-invoices th:nth-child(5), .t-invoices td:nth-child(5),
  .t-procurement th:nth-child(7), .t-procurement td:nth-child(7),
  .t-compliance th:nth-child(1), .t-compliance td:nth-child(1),
  .t-notes th:nth-child(1), .t-notes td:nth-child(1),
  .t-audit th:nth-child(1), .t-audit td:nth-child(1),
  .t-billing th:nth-child(4), .t-billing td:nth-child(4) { display: none; }
}
@media (max-width: 1199.98px) {
  .t-contacts th:nth-child(3), .t-contacts td:nth-child(3),
  .t-contacts th:nth-child(5), .t-contacts td:nth-child(5),
  .t-tasks th:nth-child(5), .t-tasks td:nth-child(5),
  .t-meetings th:nth-child(1), .t-meetings td:nth-child(1),
  .t-meetings th:nth-child(5), .t-meetings td:nth-child(5),
  .t-documents th:nth-child(4), .t-documents td:nth-child(4),
  .t-documents th:nth-child(5), .t-documents td:nth-child(5),
  .t-invoices th:nth-child(3), .t-invoices td:nth-child(3),
  .t-invoices th:nth-child(6), .t-invoices td:nth-child(6),
  .t-procurement th:nth-child(4), .t-procurement td:nth-child(4),
  .t-procurement th:nth-child(5), .t-procurement td:nth-child(5),
  .t-compliance th:nth-child(3), .t-compliance td:nth-child(3),
  .t-compliance th:nth-child(7), .t-compliance td:nth-child(7),
  .t-notes th:nth-child(5), .t-notes td:nth-child(5),
  .t-notes th:nth-child(7), .t-notes td:nth-child(7),
  .t-audit th:nth-child(5), .t-audit td:nth-child(5),
  .t-billing th:nth-child(3), .t-billing td:nth-child(3) { display: none; }
}
@media (max-width: 991.98px) {
  .t-contacts th:nth-child(4), .t-contacts td:nth-child(4),
  .t-contacts th:nth-child(8), .t-contacts td:nth-child(8),
  .t-contacts th:nth-child(9), .t-contacts td:nth-child(9),
  .t-tasks th:nth-child(3), .t-tasks td:nth-child(3),
  .t-tasks th:nth-child(6), .t-tasks td:nth-child(6),
  .t-meetings th:nth-child(4), .t-meetings td:nth-child(4),
  .t-meetings th:nth-child(6), .t-meetings td:nth-child(6),
  .t-documents th:nth-child(2), .t-documents td:nth-child(2),
  .t-invoices th:nth-child(4), .t-invoices td:nth-child(4),
  .t-procurement th:nth-child(2), .t-procurement td:nth-child(2),
  .t-compliance th:nth-child(4), .t-compliance td:nth-child(4),
  .t-compliance th:nth-child(6), .t-compliance td:nth-child(6),
  .t-notes th:nth-child(3), .t-notes td:nth-child(3),
  .t-notes th:nth-child(4), .t-notes td:nth-child(4),
  .t-audit th:nth-child(3), .t-audit td:nth-child(3),
  .t-audit th:nth-child(4), .t-audit td:nth-child(4),
  .t-billing th:nth-child(6), .t-billing td:nth-child(6) { display: none; }
}

/* ================= Toasts ================= */
.cmc-toasts {
  position: fixed; top: 74px; right: 20px; z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.cmc-toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow-md);
  font-size: .85rem; font-weight: 500; color: var(--ink);
  opacity: 0; transform: translateX(24px);
  transition: opacity .3s ease, transform .3s ease;
  border-left: 4px solid var(--gold);
}
.cmc-toast.show { opacity: 1; transform: none; }
.cmc-toast i { font-size: 1.05rem; margin-top: 1px; }
.cmc-toast-msg { flex: 1; }
.cmc-toast-close {
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; line-height: 1; padding: 0 2px; cursor: pointer;
}
.cmc-toast-close:hover { color: var(--ink); }
.cmc-toast-success { border-left-color: #198754; }
.cmc-toast-success i { color: #198754; }
.cmc-toast-error { border-left-color: #dc3545; }
.cmc-toast-error i { color: #dc3545; }
.cmc-toast-info { border-left-color: #0d6efd; }
.cmc-toast-info i { color: #0d6efd; }
.cmc-toast-warning { border-left-color: #fd7e14; }
.cmc-toast-warning i { color: #fd7e14; }

/* ================= Pagination ================= */
.cmc-pager {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 10px;
}
.pagination { margin: 0; }
.pagination .page-link {
  border-radius: 9px; margin: 0 2px; border-color: var(--line);
  color: var(--ink); font-size: .8rem; font-weight: 600;
  min-width: 32px; text-align: center;
}
.pagination .page-link:hover { background: #f4f6fb; color: var(--navy-900); }
.pagination .page-item.active .page-link {
  background: var(--grad-gold); border-color: var(--gold);
  color: #241804; box-shadow: 0 2px 8px rgba(201, 162, 83, .35);
}
.pagination .page-item.disabled .page-link { color: #c2cad8; background: transparent; }

/* ================= Mobile card list (HRMS-style) ================= */
.mobile-card-list { display: none; }
.mobile-card {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; margin-bottom: 12px; background: var(--card);
  box-shadow: var(--shadow-sm);
}
.mobile-card-header { display: flex; align-items: center; gap: 11px; }
.mobile-card-title { flex: 1; min-width: 0; }
.mobile-card-name {
  font-weight: 700; font-size: .92rem; line-height: 1.25; color: var(--navy-900);
  letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-card-sub { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-card-badges { margin-left: auto; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.mobile-card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f3f9;
}
.mobile-card-grid .label {
  display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); font-weight: 700;
}
.mobile-card-grid .value { display: block; font-size: .82rem; word-break: break-word; color: var(--ink); }
.mobile-card-actions {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f3f9;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.mobile-card-actions .btn { flex: 1; min-width: 100px; }

@media (max-width: 767.98px) {
  .table-desktop { display: none !important; }
  .mobile-card-list { display: block; padding: 14px; }
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
  .cmc-sidebar { position: fixed; left: -280px; z-index: 1050; transition: left .25s ease; height: 100vh; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .cmc-sidebar.open { left: 0; }
  .cmc-content { padding: 18px; }
}
