/* ─────────────────────────────────────────────────────────────
   Inventory Management System — Military Admin Theme
   Font: Barlow Condensed (headings) + Barlow (body)
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --olive:        #3d4a2d;
  --olive-dark:   #2a3320;
  --olive-light:  #4e5f38;
  --khaki:        #8a9060;
  --khaki-light:  #b8bc8a;
  --sand:         #d4c9a8;
  --sand-light:   #f0ebe0;
  --cream:        #faf8f3;
  --rust:         #a0522d;
  --rust-light:   #c8714a;
  --steel:        #4a5568;
  --steel-light:  #718096;
  --white:        #ffffff;
  --danger:       #c0392b;
  --success:      #2e7d32;
  --warning:      #b7860d;
  --info:         #1565c0;

  --sidebar-w:    250px;
  --header-h:     60px;
  --radius:       4px;
  --radius-lg:    8px;
  --shadow:       0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg:    0 4px 20px rgba(0,0,0,0.18);

  --font-head:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: #2d3748;
  background: var(--sand-light);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--sand-light); }
::-webkit-scrollbar-thumb { background: var(--khaki); border-radius: 3px; }

/* ─────────────────────────────────────
   LAYOUT
───────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ─────────────────────────────────────
   SIDEBAR
───────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--olive-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--rust);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}

.sidebar-brand .brand-icon svg { width: 20px; height: 20px; fill: white; }

.sidebar-brand h1 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sand);
  line-height: 1.2;
}

.sidebar-brand p {
  font-size: 11px;
  color: var(--khaki-light);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }

.nav-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--khaki);
  padding: 14px 20px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; transition: opacity 0.2s; }
.nav-link span { transition: color 0.2s; }

.nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--sand);
  border-left-color: var(--khaki-light);
}

.nav-link:hover svg { opacity: 1; }

.nav-link.active {
  background: rgba(160,82,45,0.25);
  color: var(--sand);
  border-left-color: var(--rust-light);
}

.nav-link.active svg { opacity: 1; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer .admin-info {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}

.admin-avatar {
  width: 34px; height: 34px;
  background: var(--olive-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--sand);
  flex-shrink: 0;
}

.admin-meta { flex: 1; min-width: 0; }
.admin-meta strong { display: block; font-size: 13px; color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-meta small  { font-size: 11px; color: var(--khaki-light); }

.btn-logout {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--radius);
  color: #e57373;
  font-size: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover { background: rgba(192,57,43,0.3); color: #ff8a80; }
.btn-logout svg { width: 14px; height: 14px; }

/* ─────────────────────────────────────
   MAIN CONTENT
───────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─────────────────────────────────────
   TOPBAR
───────────────────────────────────── */
.topbar {
  height: var(--header-h);
  background: white;
  border-bottom: 2px solid var(--olive-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.page-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--olive-dark);
}

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--steel-light);
}

.breadcrumb-sep { opacity: 0.4; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-badge {
  background: var(--olive);
  color: var(--sand-light);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

/* ─────────────────────────────────────
   PAGE BODY
───────────────────────────────────── */
.page-body {
  padding: 28px;
  flex: 1;
}

/* ─────────────────────────────────────
   ALERTS
───────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-left: 4px solid transparent;
}

.alert-success { background: #e8f5e9; color: var(--success); border-color: var(--success); }
.alert-error   { background: #ffebee; color: var(--danger);  border-color: var(--danger); }
.alert-warning { background: #fff8e1; color: var(--warning); border-color: var(--warning); }

.alert svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─────────────────────────────────────
   STAT CARDS
───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.stat-card.olive::before  { background: var(--olive); }
.stat-card.rust::before   { background: var(--rust); }
.stat-card.khaki::before  { background: var(--khaki); }
.stat-card.steel::before  { background: var(--steel); }

.stat-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

.stat-icon.olive  { background: rgba(61,74,45,0.1); }
.stat-icon.rust   { background: rgba(160,82,45,0.1); }
.stat-icon.khaki  { background: rgba(138,144,96,0.1); }
.stat-icon.steel  { background: rgba(74,85,104,0.1); }

.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.olive  svg { stroke: var(--olive); }
.stat-icon.rust   svg { stroke: var(--rust); }
.stat-icon.khaki  svg { stroke: var(--khaki); }
.stat-icon.steel  svg { stroke: var(--steel); }

.stat-value {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--steel-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─────────────────────────────────────
   CARDS
───────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sand-light);
  background: var(--cream);
}

.card-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--olive-dark);
  display: flex; align-items: center; gap: 8px;
}

.card-title svg { width: 16px; height: 16px; stroke: var(--rust); }

.card-body { padding: 20px; }

/* ─────────────────────────────────────
   BUTTONS
───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-primary {
  background: var(--olive);
  color: white;
  border-color: var(--olive);
}
.btn-primary:hover { background: var(--olive-dark); border-color: var(--olive-dark); }

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-danger:hover { background: #922b21; }

.btn-outline {
  background: transparent;
  color: var(--olive);
  border-color: var(--olive);
}
.btn-outline:hover { background: var(--olive); color: white; }

.btn-sm { padding: 5px 10px; font-size: 11px; }

.btn-ghost {
  background: transparent;
  color: var(--steel);
  border-color: rgba(0,0,0,0.15);
}
.btn-ghost:hover { background: var(--sand-light); color: var(--olive-dark); }

.btn-qr {
  background: var(--olive-light);
  color: white;
  border-color: var(--olive-light);
}
.btn-qr:hover { background: var(--olive-dark); }

/* ─────────────────────────────────────
   TABLE
───────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel-light);
  padding: 10px 16px;
  border-bottom: 2px solid var(--sand-light);
  text-align: left;
  white-space: nowrap;
  background: var(--cream);
}

tbody tr {
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(61,74,45,0.03); }

tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: #2d3748;
  vertical-align: middle;
}

/* ─────────────────────────────────────
   BADGES
───────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-rack      { background: rgba(61,74,45,0.12);  color: var(--olive-dark); }
.badge-box       { background: rgba(160,82,45,0.12); color: var(--rust); }
.badge-closet    { background: rgba(21,101,192,0.1); color: var(--info); }
.badge-container { background: rgba(74,85,104,0.12); color: var(--steel); }
.badge-default   { background: var(--sand-light); color: var(--steel); }
.badge.d-flex { display: inline-flex !important; }

/* ─────────────────────────────────────
   FORMS
───────────────────────────────────── */
.form-grid { display: grid; gap: 20px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--steel);
}

label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  color: #2d3748;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(61,74,45,0.1);
}

select.form-control { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23718096'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

textarea.form-control { resize: vertical; min-height: 90px; }

.form-hint { font-size: 11px; color: var(--steel-light); }
.form-error { font-size: 11px; color: var(--danger); }

.errors-box {
  background: #ffebee;
  border: 1px solid rgba(192,57,43,0.2);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.errors-box ul { list-style: none; padding: 0; }
.errors-box ul li { font-size: 13px; color: var(--danger); padding: 2px 0; }
.errors-box ul li::before { content: '— '; }

/* ─────────────────────────────────────
   SEARCH BAR
───────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap svg {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  stroke: var(--steel-light);
  pointer-events: none;
}

.search-input-wrap input {
  padding-left: 34px;
}

/* ─────────────────────────────────────
   UNIT CARDS (grid view)
───────────────────────────────────── */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.unit-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.unit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.unit-card-header {
  background: var(--olive-dark);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unit-card-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}

.unit-card-icon svg { width: 22px; height: 22px; stroke: var(--sand); }

.unit-card-type {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--khaki-light);
  background: rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: 2px;
}

.unit-card-body { padding: 16px; }

.unit-card-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 4px;
}

.unit-card-location {
  font-size: 12px;
  color: var(--steel-light);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 12px;
}

.unit-card-location svg { width: 12px; height: 12px; stroke: var(--steel-light); }

.unit-card-count {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--rust);
  display: flex; align-items: baseline; gap: 4px;
}

.unit-card-count span { font-size: 12px; color: var(--steel-light); font-family: var(--font-body); font-weight: 400; }

.unit-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--sand-light);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────
   QR PREVIEW
───────────────────────────────────── */
.qr-preview {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-preview img {
  width: 60px; height: 60px;
  border: 2px solid var(--sand-light);
  border-radius: var(--radius);
}

.qr-preview span {
  font-size: 10px;
  color: var(--steel-light);
  font-family: var(--font-head);
  letter-spacing: 0.5px;
}

/* ─────────────────────────────────────
   PUBLIC VIEW
───────────────────────────────────── */
.public-page {
  min-height: 100vh;
  background: var(--sand-light);
  padding: 0;
}

.public-header {
  background: var(--olive-dark);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.public-header .header-icon {
  width: 48px; height: 48px;
  background: var(--rust);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}

.public-header .header-icon svg { width: 24px; height: 24px; stroke: white; }

.public-header h1 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.public-header p { font-size: 13px; color: var(--khaki-light); margin-top: 2px; }

.public-body { padding: 24px; max-width: 900px; margin: 0 auto; }

.public-unit-info {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.public-unit-info .unit-detail { flex: 1; }
.public-unit-info h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--olive-dark); }
.public-unit-info .meta { font-size: 13px; color: var(--steel-light); margin-top: 4px; }

.items-count-pill {
  background: var(--olive-dark);
  color: var(--sand);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─────────────────────────────────────
   ITEM IMAGE
───────────────────────────────────── */
.item-img {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--sand-light);
}

.item-img-placeholder {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--sand-light);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
}

.item-img-placeholder svg { width: 18px; height: 18px; stroke: var(--steel-light); }

/* ─────────────────────────────────────
   EMPTY STATE
───────────────────────────────────── */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--steel-light);
}

.empty-state svg { width: 48px; height: 48px; stroke: var(--khaki-light); margin: 0 auto 12px; }
.empty-state h3 { font-family: var(--font-head); font-size: 18px; color: var(--steel); margin-bottom: 4px; }
.empty-state p  { font-size: 13px; }

/* ─────────────────────────────────────
   LOGIN PAGE
───────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--olive-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
}

.login-box {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.login-header {
  background: var(--olive-dark);
  padding: 32px;
  text-align: center;
  border-bottom: 4px solid var(--rust);
}

.login-header .logo-mark {
  width: 60px; height: 60px;
  background: var(--rust);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.login-header .logo-mark svg { width: 30px; height: 30px; stroke: white; }

.login-header h1 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sand);
}

.login-header p { font-size: 12px; color: var(--khaki-light); margin-top: 4px; letter-spacing: 0.5px; }

.login-body { padding: 32px; }

/* ─────────────────────────────────────
   UTILITY
───────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.mb-16        { margin-bottom: 16px; }
.mb-20        { margin-bottom: 20px; }
.mb-24        { margin-bottom: 24px; }
.text-muted   { color: var(--steel-light); }
.text-sm      { font-size: 12px; }
.fw-bold      { font-weight: 600; }
.mt-auto      { margin-top: auto; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .units-grid { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
}

/* Inventory tables */
.ims-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.ims-table {
  min-width: 780px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.ims-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e8ef;
  background: #f8fafc;
  color: #566274;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ims-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f5;
  color: #273142;
  font-size: 13px;
}

.ims-table tbody tr:last-child td {
  border-bottom: 0;
}

.ims-table tbody tr:hover {
  background: #fbfcf7;
}

.ims-table .cell-title {
  color: #1a2035;
  font-weight: 700;
}

.ims-table .cell-subtitle {
  margin-top: 3px;
  color: #718096;
  font-size: 12px;
  line-height: 1.35;
}

.ims-table .metric-value {
  color: var(--olive);
  font-size: 17px;
  font-weight: 700;
}

.ims-table .metric-value.is-low {
  color: var(--danger);
}

.ims-table .table-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.ims-table .table-actions .btn {
  width: 32px;
  height: 32px;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
}

.item-thumb,
.item-thumb-placeholder,
.qr-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid #e5e8ef;
  object-fit: cover;
}

.item-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7fb;
  color: #9aa3b2;
}

.qr-thumb {
  padding: 3px;
  background: #fff;
  cursor: pointer;
}

.empty-state i {
  display: block;
  color: var(--khaki-light);
  font-size: 48px;
  margin: 0 auto 12px;
}

@media (max-width: 768px) {
  .ims-table {
    min-width: 680px;
  }

  .ims-table thead th,
  .ims-table tbody td {
    padding: 12px;
  }
}

/* Tabler dark alignment */
:root {
  --ims-bg: #0b1220;
  --ims-surface: #151f2e;
  --ims-surface-soft: #1b2638;
  --ims-border: #263346;
  --ims-text: #f4f7fb;
  --ims-muted: #9aa7ba;
  --ims-blue: #1d8cf8;
  --ims-green: #2fb344;
  --ims-red: #d63939;
  --ims-yellow: #f59f00;
  --font-head: 'Plus Jakarta Sans', var(--tblr-font-sans-serif), sans-serif;
  --font-body: 'Plus Jakarta Sans', var(--tblr-font-sans-serif), sans-serif;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: none;
  --shadow-lg: 0 18px 50px rgba(0,0,0,.28);
}

body.ims-tabler-dark {
  background: var(--ims-bg);
  color: var(--ims-text);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.ims-tabler-dark .wrapper,
.ims-tabler-dark .page-wrapper,
.ims-tabler-dark .page-body,
.ims-tabler-dark .footer {
  background: var(--ims-bg);
}

.ims-tabler-dark .container-xl {
  max-width: 1520px;
}

.ims-sidebar.navbar {
  width: 272px;
  background: #0f1726 !important;
  border-right: 1px solid #202b3d;
}

.navbar-vertical.ims-sidebar {
  width: 272px !important;
}

.ims-sidebar .navbar-brand {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  margin: 0;
  gap: 10px;
}

.ims-brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f8fafc;
}

.ims-brand-icon .ti {
  color: #0f1726 !important;
}

.ims-brand-name {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.ims-brand-sub {
  color: var(--ims-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-top: 4px;
  text-transform: uppercase;
}

.ims-sidebar .nav-link {
  margin: 2px 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: #9aa7ba;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.ims-sidebar .nav-link:hover,
.ims-sidebar .nav-link.active {
  background: #172236;
  color: #f8fafc;
}

.ims-sidebar .nav-link-icon {
  color: currentColor;
  opacity: .85;
}

.ims-sidebar .nav-link-icon .ti {
  font-size: 20px;
}

.ims-sidebar-toggle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  padding: 0;
}

.ims-avatar,
.ims-avatar-sm {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ims-blue);
  color: #fff;
  font-weight: 700;
}

.ims-avatar-sm {
  width: 32px;
  height: 32px;
}

.page-wrapper {
  margin-left: 272px;
}

.navbar-vertical.ims-sidebar ~ .page-wrapper {
  margin-left: 272px !important;
}

body.ims-sidebar-collapsed .navbar-vertical.ims-sidebar {
  width: 76px !important;
}

body.ims-sidebar-collapsed .navbar-vertical.ims-sidebar ~ .page-wrapper {
  margin-left: 76px !important;
}

body.ims-sidebar-collapsed .ims-brand-name,
body.ims-sidebar-collapsed .ims-brand-sub,
body.ims-sidebar-collapsed .ims-sidebar .nav-link-title,
body.ims-sidebar-collapsed .ims-sidebar .nav-item .text-uppercase,
body.ims-sidebar-collapsed .ims-sidebar .flex-fill,
body.ims-sidebar-collapsed .ims-sidebar .ims-avatar {
  display: none !important;
}

body.ims-sidebar-collapsed .ims-sidebar .navbar-brand {
  justify-content: center;
  padding-inline: 10px;
}

body.ims-sidebar-collapsed .ims-sidebar .nav-link {
  justify-content: center;
  margin-inline: 10px;
  padding: 12px;
}

body.ims-sidebar-collapsed .ims-sidebar .nav-link-icon {
  margin: 0 !important;
}

body.ims-sidebar-collapsed .ims-sidebar .border-top {
  justify-content: center;
}

body.ims-sidebar-collapsed .ims-sidebar-toggle {
  position: absolute;
  left: 52px;
  top: 20px;
}

.page-header {
  padding: 28px 0 12px;
  background: transparent;
}

.page-pretitle {
  color: var(--ims-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-title {
  color: var(--ims-text);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.page-body {
  padding: 16px 0 28px;
}

.card {
  background: var(--ims-surface);
  border: 1px solid var(--ims-border);
  border-radius: 8px;
  box-shadow: none;
}

.card-header {
  min-height: 56px;
  padding: 16px 24px;
  background: transparent;
  border-bottom: 1px solid var(--ims-border);
}

.card-title {
  color: var(--ims-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.card-body {
  padding: 24px;
}

.text-muted,
.ims-unit-loc,
.ims-stat-label,
.form-hint,
.footer {
  color: var(--ims-muted) !important;
}

.btn {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.btn-primary {
  background: var(--ims-blue);
  border-color: var(--ims-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #1677d2;
  border-color: #1677d2;
}

.btn-outline-secondary,
.btn-ghost-light {
  color: #c7d0df;
  border-color: #344258;
  background: transparent;
}

.btn-outline-secondary:hover,
.btn-ghost-light:hover {
  color: #fff;
  background: #202c3f;
  border-color: #3c4b62;
}

.btn-outline-danger {
  color: #ff8787;
  border-color: rgba(214,57,57,.42);
}

.btn-outline-danger:hover {
  background: rgba(214,57,57,.15);
  border-color: rgba(214,57,57,.6);
}

.btn-outline-success {
  color: #69db7c;
  border-color: rgba(47,179,68,.42);
}

.btn-outline-success:hover {
  background: rgba(47,179,68,.14);
  border-color: rgba(47,179,68,.6);
}

.form-label,
label {
  color: #c7d0df;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.form-control,
.form-select,
.input-group-text {
  background-color: #111a29;
  border-color: #2a374b;
  color: var(--ims-text);
  font-family: var(--font-body);
}

.form-control:focus,
.form-select:focus {
  background-color: #111a29;
  border-color: var(--ims-blue);
  color: var(--ims-text);
  box-shadow: 0 0 0 .25rem rgba(29,140,248,.18);
}

.form-control::placeholder {
  color: #69778c;
}

.badge {
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.bg-secondary {
  background-color: #25334a !important;
  color: #d7deea !important;
}

.bg-blue-lt {
  background: rgba(29,140,248,.16) !important;
  color: #74c0fc !important;
}

.bg-green-lt,
.badge-rack {
  background: rgba(47,179,68,.16) !important;
  color: #69db7c !important;
}

.bg-yellow-lt,
.badge-box {
  background: rgba(245,159,0,.16) !important;
  color: #ffd43b !important;
}

.badge-closet {
  background: rgba(29,140,248,.16) !important;
  color: #74c0fc !important;
}

.badge-container {
  background: rgba(116,103,239,.18) !important;
  color: #b197fc !important;
}

.ims-stat-card {
  min-height: 156px;
}

.ims-stat-card .card-body {
  padding: 22px 24px;
}

.ims-stat-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.ims-stat-icon .ti {
  font-size: 22px;
}

.ims-stat-val {
  color: var(--ims-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
}

.ims-unit-card {
  overflow: hidden;
}

.ims-unit-card-top {
  background: var(--ims-surface) !important;
  padding: 20px;
}

.ims-unit-name {
  color: var(--ims-text);
  font-size: 16px;
  font-weight: 700;
}

.ims-unit-count {
  color: var(--ims-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.ims-unit-count span {
  color: var(--ims-muted);
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
}

.ims-unit-card-footer {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: #121c2b;
  border-top: 1px solid var(--ims-border);
}

.ims-table-wrap {
  background: transparent;
}

.ims-table {
  color: var(--ims-text);
}

.ims-table thead th {
  background: #111a29;
  border-bottom: 1px solid var(--ims-border);
  color: var(--ims-muted);
  font-family: var(--font-body);
  letter-spacing: .06em;
}

.ims-table tbody td {
  border-bottom: 1px solid var(--ims-border);
  color: #dce3ee;
}

.ims-table tbody tr:hover {
  background: #172236;
}

.ims-table .cell-title {
  color: var(--ims-text);
}

.ims-table .cell-subtitle {
  color: var(--ims-muted);
}

.ims-table .metric-value {
  color: #69db7c;
}

.ims-table .metric-value.is-low {
  color: #ff8787;
}

.item-thumb,
.item-thumb-placeholder,
.qr-thumb {
  border-color: var(--ims-border);
  background: #111a29;
}

.item-thumb-placeholder,
.empty-state i {
  color: var(--ims-muted);
}

.empty-state {
  color: var(--ims-muted);
}

.empty-state h4,
.empty-state h3 {
  color: var(--ims-text);
  font-family: var(--font-body);
  font-weight: 700;
}

.modal-content {
  background: var(--ims-surface);
  border: 1px solid var(--ims-border);
  color: var(--ims-text);
}

.modal-header {
  background: var(--ims-surface);
  color: var(--ims-text);
}

.modal-title {
  color: var(--ims-text);
}

.modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
  opacity: .75;
}

.modal-header,
.modal-footer {
  border-color: var(--ims-border);
}

.modal-body #qrModalImg {
  display: block;
  margin-inline: auto;
  max-width: min(220px, 100%);
  width: 220px;
  height: 220px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  border-color: var(--ims-border) !important;
}

.footer-transparent {
  border-top: 1px solid var(--ims-border);
}

@media (max-width: 991.98px) {
  .navbar-vertical.ims-sidebar,
  body.ims-sidebar-collapsed .navbar-vertical.ims-sidebar {
    width: 100% !important;
  }

  .navbar-vertical.ims-sidebar ~ .page-wrapper,
  body.ims-sidebar-collapsed .navbar-vertical.ims-sidebar ~ .page-wrapper {
    margin-left: 0 !important;
  }
}

/* Login */
.ims-login-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(29,140,248,.22), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(47,179,68,.14), transparent 24%),
    var(--ims-bg);
  color: var(--ims-text);
  font-family: var(--font-body);
}

.ims-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.ims-login-card {
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid var(--ims-border);
  border-radius: 10px;
  background: var(--ims-surface);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.ims-login-header {
  padding: 34px 34px 24px;
  text-align: center;
  border-bottom: 1px solid var(--ims-border);
  background: linear-gradient(180deg, #182337 0%, #151f2e 100%);
}

.ims-login-logo {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f1726;
}

.ims-login-logo .ti {
  font-size: 28px;
}

.ims-login-header h1 {
  margin: 0;
  color: var(--ims-text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.ims-login-header p {
  margin: 8px 0 0;
  color: var(--ims-muted);
  font-size: 14px;
}

.ims-login-body {
  padding: 30px 34px 34px;
}

.ims-login-body .input-group {
  min-height: 46px;
}

.ims-login-body .input-group-text,
.ims-login-body .form-control,
.ims-login-body .btn {
  min-height: 46px;
}

.ims-login-body code {
  color: #d7deea;
  background: #111a29;
  border: 1px solid var(--ims-border);
  border-radius: 4px;
  padding: 2px 6px;
}

@media (max-width: 520px) {
  .ims-login-header,
  .ims-login-body {
    padding-inline: 22px;
  }
}

/* Light Tabler theme override */
:root {
  --ims-bg: #f4f6fb;
  --ims-surface: #ffffff;
  --ims-surface-soft: #f8fafc;
  --ims-border: #dce3ee;
  --ims-text: #182235;
  --ims-muted: #667085;
  --ims-blue: #206bc4;
  --ims-green: #2fb344;
  --ims-red: #d63939;
  --ims-yellow: #f59f00;
}

body.ims-tabler-light,
body.ims-login-shell {
  background: var(--ims-bg);
  color: var(--ims-text);
  font-family: var(--font-body);
}

.ims-tabler-light .wrapper,
.ims-tabler-light .page-wrapper,
.ims-tabler-light .page-body,
.ims-tabler-light .footer {
  background: var(--ims-bg);
}

.ims-sidebar.navbar,
.navbar-vertical.ims-sidebar {
  background: #ffffff !important;
  border-right: 1px solid var(--ims-border);
  box-shadow: 0 1px 2px rgba(24,34,53,.04);
}

.ims-brand-icon {
  background: var(--ims-blue);
}

.ims-brand-icon .ti {
  color: #ffffff !important;
}

.ims-brand-name {
  color: var(--ims-text);
}

.ims-brand-sub,
.ims-sidebar .nav-item .text-uppercase {
  color: var(--ims-muted) !important;
}

.ims-sidebar .border-top .text-white {
  color: var(--ims-text) !important;
}

.ims-sidebar .border-top [style*="rgba(255,255,255"] {
  color: var(--ims-muted) !important;
}

.ims-sidebar .nav-link {
  color: #536176;
}

.ims-sidebar .nav-link:hover,
.ims-sidebar .nav-link.active {
  background: #eef5ff;
  color: var(--ims-blue);
}

.page-title,
.card-title,
.ims-stat-val,
.ims-unit-name,
.ims-unit-count,
.empty-state h3,
.empty-state h4 {
  color: var(--ims-text);
}

.card,
.ims-unit-card,
.modal-content {
  background: var(--ims-surface);
  border-color: var(--ims-border);
  color: var(--ims-text);
}

.card-header,
.modal-header {
  background: var(--ims-surface);
  border-color: var(--ims-border);
}

.modal-title {
  color: var(--ims-text);
}

.modal .btn-close {
  filter: none;
}

.ims-unit-card-top {
  background: var(--ims-surface) !important;
}

.ims-unit-card-footer {
  background: var(--ims-surface-soft);
  border-color: var(--ims-border);
}

.text-muted,
.ims-unit-loc,
.ims-stat-label,
.form-hint,
.footer,
.empty-state,
.item-thumb-placeholder {
  color: var(--ims-muted) !important;
}

.form-label,
label {
  color: #344054;
}

.form-control,
.form-select,
.input-group-text {
  background-color: #ffffff;
  border-color: #d0d7e2;
  color: var(--ims-text);
}

.form-control:focus,
.form-select:focus {
  background-color: #ffffff;
  border-color: var(--ims-blue);
  color: var(--ims-text);
  box-shadow: 0 0 0 .25rem rgba(32,107,196,.14);
}

.form-control::placeholder {
  color: #98a2b3;
}

.btn-outline-secondary,
.btn-ghost-light {
  color: #475467;
  border-color: #d0d7e2;
  background: #ffffff;
}

.btn-outline-secondary:hover,
.btn-ghost-light:hover {
  color: var(--ims-blue);
  background: #eef5ff;
  border-color: #b8c7dc;
}

.btn-outline-danger {
  color: var(--ims-red);
  border-color: rgba(214,57,57,.35);
}

.btn-outline-danger:hover {
  color: #ffffff;
  background: var(--ims-red);
  border-color: var(--ims-red);
}

.btn-outline-success {
  color: var(--ims-green);
  border-color: rgba(47,179,68,.35);
}

.btn-outline-success:hover {
  color: #ffffff;
  background: var(--ims-green);
  border-color: var(--ims-green);
}

.bg-secondary {
  background-color: #edf2f7 !important;
  color: #344054 !important;
}

.bg-blue-lt {
  background: #e8f2ff !important;
  color: var(--ims-blue) !important;
}

.bg-green-lt,
.badge-rack {
  background: #eaf7ed !important;
  color: #248c35 !important;
}

.bg-yellow-lt,
.badge-box {
  background: #fff4d6 !important;
  color: #996400 !important;
}

.badge-closet {
  background: #e8f2ff !important;
  color: var(--ims-blue) !important;
}

.badge-container {
  background: #f0edff !important;
  color: #5f3dc4 !important;
}

.ims-table {
  color: var(--ims-text);
}

.ims-table thead th {
  background: #f8fafc;
  border-bottom-color: var(--ims-border);
  color: #667085;
}

.ims-table tbody td {
  border-bottom-color: var(--ims-border);
  color: #344054;
}

.ims-table tbody tr:hover {
  background: #f8fbff;
}

.ims-table .cell-title {
  color: var(--ims-text);
}

.ims-table .cell-subtitle {
  color: var(--ims-muted);
}

.ims-table .metric-value {
  color: var(--ims-green);
}

.ims-table .metric-value.is-low {
  color: var(--ims-red);
}

.table-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.table-sort-link:hover {
  color: var(--ims-blue);
  text-decoration: none;
}

.table-sort-link .ti {
  font-size: 14px;
}

.item-thumb,
.item-thumb-placeholder,
.qr-thumb {
  background: #ffffff;
  border-color: var(--ims-border);
}

.modal-body #qrModalImg {
  border-color: var(--ims-border) !important;
}

.footer-transparent {
  border-color: var(--ims-border);
}

.ims-login-shell {
  background:
    radial-gradient(circle at 18% 18%, rgba(32,107,196,.12), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(47,179,68,.09), transparent 24%),
    var(--ims-bg);
}

.ims-login-card {
  background: #ffffff;
  border-color: var(--ims-border);
  box-shadow: 0 24px 70px rgba(24,34,53,.12);
}

.ims-login-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: var(--ims-border);
}

.ims-login-logo {
  background: var(--ims-blue);
  color: #ffffff;
}

.ims-login-header h1 {
  color: var(--ims-text);
}

.ims-login-header p {
  color: var(--ims-muted);
}

.ims-login-body code {
  color: #344054;
  background: #f8fafc;
  border-color: var(--ims-border);
}

/* Fixed app shell with scrollable content */
html,
body.ims-tabler-light {
  height: 100%;
  overflow: hidden;
}

body.ims-tabler-light .wrapper {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

body.ims-tabler-light .navbar-vertical.ims-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  overflow: hidden;
}

body.ims-tabler-light .navbar-vertical.ims-sidebar > .container-fluid {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.ims-tabler-light .navbar-vertical.ims-sidebar .container-fluid,
body.ims-tabler-light .navbar-vertical.ims-sidebar .navbar-collapse {
  min-height: 0;
}

body.ims-tabler-light .navbar-vertical.ims-sidebar .navbar-collapse {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.ims-tabler-light .navbar-vertical.ims-sidebar .navbar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 16px;
}

body.ims-tabler-light .navbar-vertical.ims-sidebar .navbar-collapse > .border-top {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 16px 12px !important;
}

body.ims-tabler-light .navbar-vertical.ims-sidebar .navbar-collapse > .border-top .flex-fill {
  display: block;
  min-width: 0;
}

body.ims-tabler-light .page-wrapper {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.ims-tabler-light .page-header {
  flex: 0 0 auto;
  margin: 0;
}

body.ims-tabler-light .page-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
}

body.ims-tabler-light .footer {
  flex: 0 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  margin: 0;
  background: var(--ims-bg);
}

body.ims-tabler-light .footer .container-xl {
  width: 100%;
}

@media (max-width: 991.98px) {
  html,
  body.ims-tabler-light {
    overflow: auto;
  }

  body.ims-tabler-light .wrapper,
  body.ims-tabler-light .page-wrapper {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  body.ims-tabler-light .navbar-vertical.ims-sidebar {
    position: relative;
    height: auto;
  }

  body.ims-tabler-light .page-body {
    overflow: visible;
  }
}
