/* ================================================================
   CIR-AMS Theme  —  Civil & Identity Registry
   Built on Tabler UI (Bootstrap 5)
   ================================================================ */

:root {
  --cir-teal:       #00879E;
  --cir-teal-dark:  #006878;
  --cir-teal-light: #e0f5f8;
  --cir-navy:       #1C3A5A;
  --cir-navy-dark:  #12263d;
  --cir-gold:       #F5A623;
  --cir-gold-light: #fef3dc;
  --cir-sidebar-bg: #1C3A5A;
  --cir-sidebar-w:  260px;
}

/* ── Sidebar ─────────────────────────────────────────── */
.navbar-vertical {
  width: var(--cir-sidebar-w) !important;
  background: var(--cir-sidebar-bg) !important;
  border-right: none !important;
  box-shadow: 4px 0 16px rgba(0,0,0,.2);
}

.navbar-vertical .navbar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: block;
}

.cir-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none !important;
}

.cir-brand-logo {
  width: 40px;
  height: 40px;
  background: var(--cir-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.5px;
}

.cir-brand-image {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}

.cir-brand-text {
  line-height: 1.1;
}

.cir-brand-title {
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cir-brand-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.5);
}

/* Sidebar nav */
.navbar-vertical .navbar-nav > .nav-item > .nav-link {
  color: rgba(255,255,255,.72) !important;
  padding: .5rem 1.5rem !important;
  border-radius: 0;
  font-size: .82rem;
  font-weight: 500;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.navbar-vertical .navbar-nav > .nav-item > .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  padding-left: 1.75rem !important;
}

.navbar-vertical .navbar-nav > .nav-item > .nav-link.active {
  color: #fff !important;
  background: var(--cir-teal) !important;
  border-left: 3px solid var(--cir-gold);
}

.navbar-vertical .nav-link .nav-link-icon {
  color: inherit;
  opacity: .7;
  width: 1.1rem;
  flex-shrink: 0;
}

.navbar-vertical .nav-link.active .nav-link-icon {
  opacity: 1;
}

/* Section headers in sidebar */
.navbar-vertical .navbar-nav .nav-item.nav-header {
  padding: 1.25rem 1.5rem .35rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  cursor: default;
}

/* Sub-nav (dropdown) */
.navbar-vertical .navbar-nav > .nav-item > .collapse .nav-link {
  color: rgba(255,255,255,.6) !important;
  padding-left: 3rem !important;
  font-size: .8rem;
}

.navbar-vertical .navbar-nav > .nav-item > .collapse .nav-link:hover,
.navbar-vertical .navbar-nav > .nav-item > .collapse .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.06) !important;
}

.navbar-vertical .navbar-nav > .nav-item > .nav-link[data-bs-toggle="collapse"]::after {
  margin-left: auto;
  content: "";
  width: .5rem;
  height: .5rem;
  border-right: 1.5px solid rgba(255,255,255,.4);
  border-bottom: 1.5px solid rgba(255,255,255,.4);
  transform: rotate(-45deg);
  transition: transform .2s;
  flex-shrink: 0;
}

.navbar-vertical .navbar-nav > .nav-item > .nav-link[data-bs-toggle="collapse"][aria-expanded="true"]::after {
  transform: rotate(45deg);
}

/* ── Top Navbar ──────────────────────────────────────── */
.navbar-expand-md.navbar-light.d-print-none {
  background: #fff !important;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

/* ── Main Content ────────────────────────────────────── */
.page-wrapper {
  margin-left: var(--cir-sidebar-w) !important;
}

/* ── Page Header ─────────────────────────────────────── */
.page-header {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1.5rem;
}

.page-header .page-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cir-navy);
}

/* ── Stat Cards ──────────────────────────────────────── */
.cir-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s;
  height: 100%;
}

.cir-stat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.cir-stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.cir-stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cir-navy);
  line-height: 1;
}

.cir-stat-card .stat-label {
  font-size: .78rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cir-stat-card .stat-change {
  font-size: .75rem;
  margin-top: .5rem;
}

/* Icon variants */
.icon-teal    { background: var(--cir-teal-light); color: var(--cir-teal); }
.icon-navy    { background: rgba(28,58,90,.1);      color: var(--cir-navy); }
.icon-gold    { background: var(--cir-gold-light);  color: var(--cir-gold); }
.icon-green   { background: #d1fae5;                color: #059669; }
.icon-red     { background: #fee2e2;                color: #dc2626; }
.icon-blue    { background: #dbeafe;                color: #2563eb; }
.icon-purple  { background: #ede9fe;                color: #7c3aed; }
.icon-orange  { background: #ffedd5;                color: #ea580c; }

/* ── Table ───────────────────────────────────────────── */
.cir-table {
  font-size: .83rem;
}

.cir-table thead th {
  background: #f8f9fa;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
  padding: .6rem .9rem;
}

.cir-table tbody tr {
  transition: background .12s;
}

.cir-table tbody tr:hover {
  background: #f0f9fb;
}

.cir-table tbody td {
  padding: .6rem .9rem;
  vertical-align: middle;
  border-color: #f0f0f0;
}

.cir-table a {
  color: var(--cir-navy);
  font-weight: 500;
  text-decoration: none;
}

.cir-table a:hover {
  color: var(--cir-teal);
}

/* ── Badges ──────────────────────────────────────────── */
.badge-state {
  font-size: .7rem;
  padding: .25rem .55rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ── Priority dots ───────────────────────────────────── */
.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: .35rem;
  flex-shrink: 0;
}

/* ── Forms ───────────────────────────────────────────── */
.form-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.form-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cir-teal);
  border-bottom: 2px solid var(--cir-teal-light);
  padding-bottom: .5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: .35rem;
}

/* ── Asset detail tabs ───────────────────────────────── */
.nav-tabs .nav-link {
  font-size: .82rem;
  font-weight: 500;
  color: #6c757d;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .6rem 1rem;
}

.nav-tabs .nav-link.active {
  color: var(--cir-teal);
  border-bottom-color: var(--cir-teal);
  background: none;
}

/* ── Login page ──────────────────────────────────────── */
.cir-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cir-navy-dark) 0%, var(--cir-navy) 50%, var(--cir-teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cir-login-card {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.cir-login-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--cir-teal), var(--cir-teal-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
}

.cir-login-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cir-navy);
  margin-bottom: .25rem;
}

.cir-login-sub {
  text-align: center;
  font-size: .82rem;
  color: #6c757d;
  margin-bottom: 1.75rem;
}

.btn-cir {
  background: var(--cir-teal);
  border-color: var(--cir-teal);
  color: #fff;
  font-weight: 600;
}

.btn-cir:hover {
  background: var(--cir-teal-dark);
  border-color: var(--cir-teal-dark);
  color: #fff;
}

/* ── Alerts ──────────────────────────────────────────── */
.alert {
  font-size: .85rem;
  border-radius: 8px;
}

/* ── Pagination ──────────────────────────────────────── */
.pagination .page-link {
  font-size: .8rem;
  color: var(--cir-teal);
}

.pagination .page-item.active .page-link {
  background: var(--cir-teal);
  border-color: var(--cir-teal);
}

/* ── Ticket thread ───────────────────────────────────── */
.followup-thread { display: flex; flex-direction: column; gap: 1rem; }

.followup-item {
  display: flex;
  gap: .9rem;
}

.followup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cir-teal-light);
  color: var(--cir-teal);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.followup-bubble {
  flex: 1;
  background: #f8f9fa;
  border-radius: 0 10px 10px 10px;
  padding: .9rem 1.1rem;
  font-size: .85rem;
  border: 1px solid #e9ecef;
}

.followup-bubble.is-private {
  background: #fff8e1;
  border-color: #ffe082;
}

.followup-meta {
  font-size: .75rem;
  color: #6c757d;
  margin-bottom: .4rem;
}

.followup-meta strong { color: var(--cir-navy); }

/* ── Misc ────────────────────────────────────────────── */
.text-teal { color: var(--cir-teal) !important; }
.text-navy { color: var(--cir-navy) !important; }
.bg-teal   { background: var(--cir-teal) !important; }
.bg-navy   { background: var(--cir-navy) !important; }

.card {
  border-radius: 10px;
  border-color: #e9ecef;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  font-size: .82rem;
  font-weight: 600;
  color: var(--cir-navy);
  padding: .9rem 1.25rem;
}

/* Overdue badge flash */
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.badge-overdue { animation: pulse-red 2s infinite; }

/* Responsive */
@media (max-width: 768px) {
  .navbar-vertical { display: none; }
  .page-wrapper { margin-left: 0 !important; }
}

/* ── SLA Status Badges ────────────────────────────── */
.sla-ok      { background: #dcfce7; color: #166534; }
.sla-warning { background: #fef9c3; color: #854d0e; }
.sla-breached{ background: #fee2e2; color: #991b1b; }
.sla-met     { background: #dbeafe; color: #1e40af; }
.sla-none    { background: #f1f5f9; color: #64748b; }

/* ── Collapsible Sidebar Sections ────────────────── */
.nav-section-toggle {
  display: flex;
  align-items: center;
}
.nav-section-toggle .nav-link-arrow {
  transition: transform .2s ease;
  opacity: .5;
  font-size: .75rem;
}
.nav-section-toggle[aria-expanded="true"] .nav-link-arrow {
  transform: rotate(180deg);
  opacity: .9;
}
.nav-section-toggle[aria-expanded="true"] {
  color: #00879E !important;
}
.nav-section-toggle[aria-expanded="true"] .nav-link-icon i {
  color: #00879E !important;
}
/* Sub-nav items */
#sidebar-nav .nav-sm .nav-link {
  font-size: .8rem;
  padding: .3rem .6rem;
  border-radius: 6px;
  color: #6c8ebf;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .15s, color .15s;
}
#sidebar-nav .nav-sm .nav-link .nav-link-icon {
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
  font-size: .85rem;
  opacity: .7;
}
#sidebar-nav .nav-sm .nav-link:hover,
#sidebar-nav .nav-sm .nav-link.active {
  background: rgba(0,135,158,.12);
  color: #00879E;
}
#sidebar-nav .nav-sm .nav-link.active .nav-link-icon {
  opacity: 1;
  color: #00879E;
}
/* Collapse animation */
#sidebar-nav .collapse {
  transition: none;
}

/* ── CAM Design Language (from cam_theme.css) ─────────────────── */
:root {
  --cam-green:       #2E6B42;
  --cam-green-bg:    #EBF4EE;
  --cam-blue:        #3A5F8A;
  --cam-blue-bg:     #EBF0F8;
  --cam-amber:       #8F4E10;
  --cam-amber-bg:    #FAF0E6;
  --cam-red:         #9B1C1C;
  --cam-red-bg:      #FEF2F2;
  --cam-grey:        #4B5563;
  --cam-grey-bg:     #F3F4F6;
  --cam-border:      #E5E7EB;
  --cam-surface-alt: #F9FAFB;
}
/* Badges — thick border + light fill */
.cam-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .6rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  border: 1.5px solid currentColor;
  letter-spacing: .03em;
  white-space: nowrap;
}
.cam-badge-green  { color: var(--cam-green);  background: var(--cam-green-bg); }
.cam-badge-blue   { color: var(--cam-blue);   background: var(--cam-blue-bg);  }
.cam-badge-amber  { color: var(--cam-amber);  background: var(--cam-amber-bg); }
.cam-badge-red    { color: var(--cam-red);    background: var(--cam-red-bg);   }
.cam-badge-grey   { color: var(--cam-grey);   background: var(--cam-grey-bg);  }
/* CAM Buttons */
.btn-cam-success { background: var(--cam-green-bg); color: var(--cam-green); border: 1.5px solid var(--cam-green); font-size: .8rem; font-weight: 600; border-radius: 6px; padding: .3rem .75rem; }
.btn-cam-primary { background: var(--cam-blue-bg);  color: var(--cam-blue);  border: 1.5px solid var(--cam-blue);  font-size: .8rem; font-weight: 600; border-radius: 6px; padding: .3rem .75rem; }
.btn-cam-danger  { background: var(--cam-red-bg);   color: var(--cam-red);   border: 1.5px solid var(--cam-red);   font-size: .8rem; font-weight: 600; border-radius: 6px; padding: .3rem .75rem; }
.btn-cam-amber   { background: var(--cam-amber-bg); color: var(--cam-amber); border: 1.5px solid var(--cam-amber); font-size: .8rem; font-weight: 600; border-radius: 6px; padding: .3rem .75rem; }
.btn-cam-grey  { background: var(--cam-grey-bg);  color: var(--cam-grey);  border: 1.5px solid var(--cam-grey);  font-size: .8rem; font-weight: 600; border-radius: 6px; padding: .3rem .75rem; }
.btn-cam-success:hover, .btn-cam-primary:hover, .btn-cam-danger:hover, .btn-cam-amber:hover, .btn-cam-grey:hover { filter: brightness(.93); }
/* CAM Cards */
.cam-card {
  background: #fff;
  border: 1px solid var(--cam-border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.cam-card-header {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cam-grey);
  border-bottom: 1px solid var(--cam-border);
  padding-bottom: .6rem;
  margin-bottom: .85rem;
}
/* Lock icon indicator */
.lock-indicator { color: var(--cam-amber); font-size: .8rem; }
.locked-row { background: #fef9f0 !important; }

/* ── Pagination ─────────────────────────────────────────────── */
.cir-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .75rem;
  background: #F9FAFB;
  border-bottom: 0.5px solid #E5E7EB;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.cir-table-info { color: #6c757d; }
.cir-perpage-wrap { display: flex; align-items: center; gap: .35rem; }
.cir-perpage-btns { display: flex; gap: 2px; }
.cir-perpage-btn {
  padding: .2rem .5rem;
  border-radius: 5px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #6c757d;
  font-size: .74rem;
  text-decoration: none;
  transition: all .12s;
  font-weight: 500;
}
.cir-perpage-btn:hover { border-color: var(--cir-teal); color: var(--cir-teal); }
.cir-perpage-btn.active {
  background: var(--cir-teal);
  border-color: var(--cir-teal);
  color: #fff;
}

/* Pagination nav */
.cir-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  border-top: 0.5px solid #E5E7EB;
  background: #F9FAFB;
  flex-wrap: wrap;
  gap: .5rem;
}
.cir-page-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
}
.cir-page-item.disabled .cir-page-link {
  opacity: .4;
  pointer-events: none;
  cursor: default;
}
.cir-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 .4rem;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #1C3A5A;
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .12s;
}
.cir-page-link:hover:not(.cir-ellipsis) {
  border-color: var(--cir-teal);
  color: var(--cir-teal);
  background: #E0F5F8;
}
.cir-page-item.active .cir-page-link {
  background: var(--cir-teal);
  border-color: var(--cir-teal);
  color: #fff;
}
.cir-page-edge { color: #6c757d; }
.cir-ellipsis { border: none; background: transparent; cursor: default; }
.cir-page-info { font-size: .75rem; color: #6c757d; }

/* ── Sticky table headers — scroll within .cir-table-scroll ─── */
.cir-table-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 260px);
  border-radius: 0 0 8px 8px;
}

.cir-table-scroll thead th,
.cir-table-scroll thead td {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #F9FAFB;
  border-bottom: 2px solid #E5E7EB !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.cir-table-controls {
  background: #F9FAFB;
}

/* ================================================================
   CIR-AMS Responsive Layer — handles all breakpoints
   ================================================================ */
:root {
  --fs-xs:   clamp(.62rem,  1.2vw, .7rem);
  --fs-sm:   clamp(.72rem,  1.4vw, .82rem);
  --fs-base: clamp(.8rem,   1.6vw, .9rem);
  --fs-md:   clamp(.9rem,   1.8vw, 1rem);
  --fs-lg:   clamp(1rem,    2.2vw, 1.25rem);
  --fs-2xl:  clamp(1.3rem,  3.5vw, 1.9rem);
}
body { font-size: var(--fs-base); }
.cir-stat-card .stat-value { font-size: var(--fs-2xl); }
.cir-stat-card .stat-label { font-size: var(--fs-xs); }
.cir-stat-card .stat-icon  { width: clamp(36px,4vw,48px); height: clamp(36px,4vw,48px); }
.cir-table { font-size: var(--fs-sm); }
.cir-table thead th { font-size: var(--fs-xs); }
.form-label { font-size: var(--fs-sm); }
.form-control-sm,.form-select-sm { font-size: var(--fs-sm); }
.nav-tabs .nav-link { font-size: var(--fs-sm); padding: .5rem clamp(.5rem,1.5vw,1rem); }
@media (min-width: 992px) {
  .navbar-vertical { width: clamp(200px,18vw,280px) !important; }
  .page-wrapper    { margin-left: clamp(200px,18vw,280px) !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-vertical { width: 220px !important; }
  .page-wrapper    { margin-left: 220px !important; }
  .form-section .row > [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; }
  .nav-tabs { flex-wrap: nowrap; overflow-x: auto; }
}
@media (max-width: 767px) {
  .navbar-vertical {
    display: block !important;
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    z-index: 1045;
    width: 260px !important;
    transform: translateX(-100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .navbar-vertical.mobile-open { transform: translateX(0); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1044; }
  .sidebar-overlay.active { display: block; }
  .page-wrapper { margin-left: 0 !important; }
  .cir-mobile-toggle { display: flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: transparent; color: #6c757d; font-size: 1.2rem; cursor: pointer; border-radius: 6px; }
  .cir-mobile-toggle:hover { background: #f1f3f5; }
  .navbar-expand-md .container-xl { flex-wrap: nowrap; gap: .5rem; padding: .5rem .75rem; }
  #globalSearch { width: 140px !important; }
  #globalSearch:focus { width: 180px !important; }
  .form-section .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
  .cir-stat-card { padding: .75rem; }
  .cir-table-scroll { max-height: none; overflow-x: auto; }
  .cir-table { min-width: 600px; }
  .nav-tabs { flex-wrap: nowrap; overflow-x: auto; border-bottom: none; }
  .nav-tabs .nav-link { white-space: nowrap; font-size: .78rem; padding: .5rem .75rem; }
  .btn,.btn-cam-primary,.btn-cam-success,.btn-cam-danger,.btn-cam-amber { min-height: 38px; }
  .dropdown-menu { width: 100% !important; min-width: unset; }
  #notifDropdown { width: calc(100vw - 1.5rem) !important; }
  .cir-table .d-mobile-none { display: none !important; }
  .form-section { padding: 1rem; }
}
@media (max-width: 399px) {
  .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
  .cir-login-card { padding: 1.5rem 1rem; }
}
@media print {
  .navbar-vertical,.navbar-expand-md { display: none !important; }
  .page-wrapper { margin-left: 0 !important; }
  .cir-table-scroll { max-height: none; overflow: visible; }
  .tab-pane { display: block !important; opacity: 1 !important; }
}
@media (min-width: 1440px) {
  .container-xl { max-width: 1400px; }
}
@media (min-width: 2560px) {
  :root { --fs-base: 1rem; --fs-sm: .88rem; }
  .container-xl { max-width: 2000px; }
}

/* Force hamburger visible on mobile via CSS — JS as enhancement only */
@media (max-width: 767px) {
  #mobileSidebarToggle {
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 768px) {
  #mobileSidebarToggle { display: none !important; }
}

/* Sticky top navbar on mobile so hamburger always accessible */
@media (max-width: 767px) {
  header.navbar.navbar-expand-md {
    top: 0;
    z-index: 1040;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
  }
}

/* Force sidebar nav content visible when mobile drawer is open */
@media (max-width: 767px) {
  .navbar-vertical .collapse.navbar-collapse {
  }
  .navbar-vertical .navbar-collapse {
    overflow-y: auto;
    max-height: calc(100vh - 80px);
  }
}

/* ── Neon teal hover glow — applies to all cards system-wide ── */
.card,
.cam-card,
.cir-stat-card,
.exec-kpi {
}

.card:hover,
.cam-card:hover,
.cir-stat-card:hover,
.exec-kpi:hover {
  box-shadow:
    0 0 0 1.5px #00879E,
    0 0 12px rgba(0,135,158,.35),
    0 0 28px rgba(0,135,158,.18),
  z-index: 2;
  position: relative;
}

/* Stronger glow for asset type cards and stat cards */
#asset-cards-row .card:hover,
.cir-stat-card:hover {
  box-shadow:
    0 0 0 2px #00879E,
    0 0 16px rgba(0,135,158,.45),
    0 0 36px rgba(0,135,158,.22),
}




/* Neon teal hover glow - all cards system-wide */

/* Neon hover glow - theme-aware using CSS variables */
.card, .cam-card, .cir-stat-card, .exec-kpi {
  transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
}
.card:hover, .cam-card:hover, .cir-stat-card:hover, .exec-kpi:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cir-accent) 60%, transparent), 0 0 10px color-mix(in srgb, var(--cir-accent) 30%, transparent), 0 0 22px color-mix(in srgb, var(--cir-accent) 15%, transparent), 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--cir-accent) 55%, transparent);
  z-index: 2;
  position: relative;
}
#asset-cards-row .card:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cir-accent) 65%, transparent), 0 0 12px color-mix(in srgb, var(--cir-accent) 35%, transparent), 0 0 28px color-mix(in srgb, var(--cir-accent) 18%, transparent), 0 4px 14px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

#dynamicTable {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}
#dynamicTable th,
#dynamicTable td {
  text-align: left !important;
  vertical-align: middle !important;
  padding: .45rem .5rem !important;

}
#dynamicTable th:first-child,
#dynamicTable td:first-child {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  text-align: center !important;
  padding: .45rem .25rem !important;
}
#dynamicTable th a,
#dynamicTable th span {
  text-align: left;
}
