/* ============================================================================
   Warehouse mockups — Color Admin (Apple) approximation on top of Bootstrap 5
   Static look-and-feel only. No runtime logic.
   Authority for colors/chrome: docs/screens/  |  Structure: docs/mockups/warehouse/
   ========================================================================== */

:root {
  --ca-dark:        #2d353c;   /* sidebar / panel header / dark buttons */
  --ca-dark-2:      #242b30;   /* sidebar darker */
  --ca-dark-3:      #1a2229;   /* sidebar profile / hover */
  --ca-teal:        #00acac;   /* info / warehouse chips / NEW / eye / Export CSV */
  --ca-teal-d:      #008a8a;
  --ca-green:       #00a65a;   /* success / DONE / CLOSED / Packed / active / Distance */
  --ca-green-d:     #008a4b;
  --ca-amber:       #f59c1a;   /* warning / Clear / Cancel / In Store sale */
  --ca-amber-d:     #d98404;
  --ca-red:         #ff5b57;   /* danger / Delete / incomplete */
  --ca-red-d:       #e23c38;
  --ca-blue:        #348fe2;   /* primary */
  --ca-grey:        #b6c2c9;   /* default/secondary label */
  --ca-grey-d:      #929ba1;
  --ca-page-bg:     #e9edf0;   /* content background */
  --ca-body-text:   #2d353c;
  --ca-muted:       #707b81;
  --ca-border:      #e2e7eb;
  --ca-code:        #e83e8c;   /* pink code text */
  --ca-code-bg:     #fce8f1;   /* pink code background */

  --ca-header-h:    54px;
  --ca-sidebar-w:   250px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Roboto', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--ca-page-bg);
  color: var(--ca-body-text);
  font-size: 13px;
  margin: 0;
}

a { color: var(--ca-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- App shell */
.app { min-height: 100vh; }

.app-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ca-header-h);
  background: #fff; border-bottom: 2px solid #d94d4d;
  display: flex; align-items: center; z-index: 1030;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.app-header .navbar-header {
  width: var(--ca-sidebar-w); display: flex; align-items: center;
  padding: 0 16px; height: 100%;
}
.app-header .navbar-brand {
  color: var(--ca-dark); font-size: 18px; font-weight: 300;
  display: flex; align-items: center; gap: 6px; text-decoration: none;
}
.app-header .navbar-brand b { font-weight: 700; }
.app-header .navbar-brand .navbar-logo { color: var(--ca-teal); font-size: 20px; }
.app-header .navbar-nav {
  margin-left: auto; display: flex; flex-direction: row; align-items: center; gap: 22px;
  padding: 0 24px 0 0; margin-bottom: 0; list-style: none; height: 100%;
}
.app-header .navbar-item {
  display: flex; align-items: center; gap: 8px; color: var(--ca-muted);
  font-size: 13px; line-height: 1; height: 100%;
}
.app-header .icon-wrap { position: relative; display: inline-flex; align-items: center; }
.app-header .icon-wrap > .fa { font-size: 18px; color: #8a949b; }
.app-header .icon-badge {
  position: absolute; top: -8px; right: -10px; background: var(--ca-red); color: #fff;
  border-radius: 9px; font-size: 9px; min-width: 15px; height: 15px; padding: 0 3px;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.app-header .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ca-red); display: inline-block; flex: 0 0 auto; }
.app-header .navbar-user { gap: 10px; }
.app-header .navbar-user-name { color: #5a666e; white-space: nowrap; }
.app-header .navbar-user img,
.app-header .navbar-user .avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: var(--ca-dark); display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; overflow: hidden;
}

/* header user dropdown */
.app-header .has-dropdown { position: relative; height: 100%; }
.app-header .navbar-user-link {
  display: flex; align-items: center; gap: 10px; height: 100%;
  color: #5a666e; text-decoration: none; cursor: pointer;
}
.app-header .navbar-user-link:hover { text-decoration: none; color: var(--ca-dark); }
.app-header .navbar-caret { font-size: 10px; color: #aab3b9; }
.navbar-dropdown {
  position: absolute; top: calc(100% - 4px); right: 0; min-width: 184px; background: #fff;
  border: 1px solid var(--ca-border); border-radius: 5px; box-shadow: 0 8px 24px rgba(0,0,0,.16);
  padding: 6px 0; display: none; z-index: 1050;
}
.has-dropdown.open .navbar-dropdown { display: block; }
.navbar-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px;
  color: var(--ca-body-text); text-decoration: none; white-space: nowrap;
}
.navbar-dropdown-item:hover { background: #f2f6f9; color: var(--ca-body-text); text-decoration: none; }
.navbar-dropdown-item i { width: 16px; text-align: center; color: var(--ca-muted); }
.navbar-dropdown-divider { height: 1px; background: var(--ca-border); margin: 5px 0; }

/* notifications dropdown */
.app-header .navbar-notify-link { display: inline-flex; align-items: center; height: 100%; cursor: pointer; color: inherit; text-decoration: none; }
.app-header .navbar-notify-link:hover { text-decoration: none; }
.navbar-dropdown-notify { width: 340px; min-width: 340px; padding: 0; }
.navbar-dropdown-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--ca-border); font-weight: 600; font-size: 13px; color: var(--ca-body-text); }
.notify-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.notify-list li { border-bottom: 1px solid #f0f3f5; }
.notify-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; text-decoration: none; color: var(--ca-body-text); }
.notify-item:hover { background: #f2f6f9; text-decoration: none; color: var(--ca-body-text); }
.notify-ic { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.notify-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.notify-text { font-size: 12.5px; }
.notify-time { font-size: 11px; color: var(--ca-muted); }
.notify-list li.unread { background: #f4fafa; }
.navbar-dropdown-foot { display: block; text-align: center; padding: 10px; font-size: 12px; font-weight: 600; color: var(--ca-blue); border-top: 1px solid var(--ca-border); background: #fbfcfd; border-radius: 0 0 5px 5px; }
.navbar-dropdown-foot:hover { background: #f2f6f9; text-decoration: none; }

/* ---------------------------------------------------------------- Sidebar */
.app-sidebar {
  position: fixed; top: var(--ca-header-h); bottom: 0; left: 0; width: var(--ca-sidebar-w);
  background: var(--ca-dark); overflow-y: auto; z-index: 1020;
}
.app-sidebar::-webkit-scrollbar { width: 8px; }
.app-sidebar::-webkit-scrollbar-thumb { background: #4a555e; border-radius: 4px; }

.menu { padding: 10px 0 40px; }
.menu-header {
  color: #6d7983; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  padding: 14px 20px 6px; font-weight: 600;
}
.menu-item > .menu-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 20px;
  color: #a8b3ba; text-decoration: none; font-size: 13px; cursor: pointer;
  border-left: 3px solid transparent;
}
.menu-item > .menu-link:hover { color: #fff; background: var(--ca-dark-2); text-decoration: none; }
.menu-badge {
  margin-left: auto; background: var(--ca-red); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.menu-item.active > .menu-link {
  color: #fff; background: var(--ca-dark-3); border-left-color: var(--ca-teal);
}
.menu-item.has-sub.active > .menu-link { background: var(--ca-dark-2); border-left-color: transparent; }
.menu-icon { width: 18px; text-align: center; color: #859097; }
.menu-item.active > .menu-link .menu-icon { color: var(--ca-teal); }
.menu-icon .material-icons { font-size: 18px; vertical-align: middle; }
.menu-caret { margin-left: auto; transition: transform .2s; font-size: 10px; }
.menu-item.has-sub.active > .menu-link .menu-caret { transform: rotate(90deg); }
.menu-submenu { display: none; background: var(--ca-dark-2); padding: 4px 0; }
.menu-item.has-sub.active > .menu-submenu { display: block; }
.menu-submenu .menu-link {
  display: block; padding: 8px 20px 8px 50px; color: #97a2a9; font-size: 13px;
  border-left: 3px solid transparent; text-decoration: none;
}
.menu-submenu .menu-link:hover { color: #fff; text-decoration: none; }
.menu-submenu .menu-item.active > .menu-link { color: #fff; border-left-color: var(--ca-teal); background: var(--ca-dark-3); }

/* ---------------------------------------------------------------- Content */
.app-content {
  margin-left: var(--ca-sidebar-w); padding: calc(var(--ca-header-h) + 24px) 24px 24px;
  min-height: 100vh;
}
.page-header {
  font-size: 26px; font-weight: 300; margin: 0 0 20px; color: var(--ca-dark);
}
.page-header small { font-size: 14px; color: var(--ca-muted); font-weight: 300; }

.breadcrumb {
  background: transparent; padding: 0; margin: 0 0 4px; font-size: 12px;
  display: flex; gap: 6px; list-style: none; justify-content: flex-end;
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "/"; color: #b3bcc2; padding-right: 6px; }
.breadcrumb .breadcrumb-item { color: var(--ca-muted); }
.breadcrumb a { color: var(--ca-muted); }
.float-xl-end { float: none; }

/* ---------------------------------------------------------------- Panel */
.panel { background: #fff; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.panel-inverse > .panel-heading { background: var(--ca-dark); color: #fff; }
.panel-heading {
  display: flex; align-items: center; padding: 10px 15px; border-radius: 4px 4px 0 0;
}
.panel-title { font-size: 13px; font-weight: 600; margin: 0; }
.panel-title .font-weight-light { font-weight: 300; opacity: .8; }
.panel-heading-btn { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-heading-btn .btn-icon {
  width: 22px; height: 22px; border-radius: 50%; border: 0; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px; color: #fff; cursor: pointer;
}
.btn-icon.btn-add { background: var(--ca-green); }
.btn-icon.btn-close-panel { background: var(--ca-red); }
.panel-body { padding: 15px; }
.panel-body.p-0 { padding: 0; }
.panel-footer { padding: 10px 15px; border-top: 1px solid var(--ca-border); background: #fbfcfd; }

/* ---------------------------------------------------------------- Tables */
.table { color: var(--ca-body-text); margin-bottom: 0; }
.table > thead > tr > th {
  border-bottom: 2px solid var(--ca-border); font-weight: 600; padding: 12px 10px;
  white-space: nowrap;
}
.table > tbody > tr > td { padding: 12px 10px; vertical-align: middle; border-top: 1px solid #f0f3f5; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: #fafbfc; }
.table-hover > tbody > tr:hover > * { background: #f2f6f9; }
.table-condensed > thead > tr > th, .table-condensed > tbody > tr > td { padding: 6px 8px; }
.table-valign-middle td, .table-valign-middle th { vertical-align: middle; }
.table-borderless td, .table-borderless th { border: 0 !important; }
.table-active > * { background: #eceff1 !important; }
th.actions, td.actions { text-align: right; white-space: nowrap; }
th.check, td.check { width: 34px; text-align: center; }
td.location-removed { color: var(--ca-muted); text-decoration: line-through; }

/* row tints (deliveries / collections / inventory) */
.tr-warning, .tr-warning > * { background: #fdf6dd !important; }
.bg-yellow-100, .bg-yellow-100 > * { background: #fdf6dd !important; }
.bg-orange-100, .bg-orange-100 > * { background: #ffe9d6 !important; }
.bg-grey-100,   .bg-grey-100 > *   { background: #f3f5f6 !important; }
.row-done,  .row-done > *  { background: #dff3e6 !important; }
.row-new,   .row-new > *   { background: #f3f5f6 !important; }

.table-responsive { overflow-x: auto; }

/* ---------------------------------------------------------------- Labels / badges */
.label, .badge {
  display: inline-block; padding: 3px 7px; font-size: 11px; font-weight: 600;
  line-height: 1; border-radius: 3px; color: #fff; white-space: nowrap;
}
.label-info, .badge-info { background: var(--ca-teal); }
.label-success, .badge-success { background: var(--ca-green); }
.label-warning { background: var(--ca-amber); }
.label-yellow { background: #ffd900; color: #6b5900; }
.label-danger, .badge-danger { background: var(--ca-red); }
.label-primary { background: var(--ca-blue); }
.label-default, .label-secondary { background: var(--ca-grey); color: #fff; }
.badge-pill { border-radius: 10px; padding-left: 8px; padding-right: 8px; }

/* light timestamp pill */
.badge-time {
  background: #eef1f3; color: #5a666e; font-weight: 500; padding: 4px 8px;
  border-radius: 3px; display: inline-block; white-space: nowrap; font-size: 11px;
}
.badge-time i { margin-right: 3px; opacity: .7; }

/* ---------------------------------------------------------------- Code chips (pink) */
code, .code {
  color: var(--ca-code); background: var(--ca-code-bg); padding: 2px 5px;
  border-radius: 3px; font-size: 11px; font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2; color: #fff; text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: .92; color: #fff; }
.btn-sm { padding: 5px 9px; font-size: 12px; }
.btn-xs { padding: 3px 7px; font-size: 11px; }
.btn-group { display: inline-flex; }
/* Unified row-action button size (racks-style) across the whole app.
   Action icons always live in a .btn-group, so sizing them here overrides
   any per-page .btn-xs / .btn-sm / .btn-group-xs variants. */
.btn-group .btn { border-radius: 0; padding: 6px 11px; font-size: 13px; }
.btn-group .btn:first-child { border-radius: 4px 0 0 4px; }
.btn-group .btn:last-child { border-radius: 0 4px 4px 0; }
.btn-group-xs .btn, .btn-group-sm .btn { padding: 6px 11px; font-size: 13px; }

.btn-dark { background: var(--ca-dark); }
.btn-dark:hover { background: #1f262b; color:#fff; }
.btn-primary { background: var(--ca-dark); }       /* app uses dark for primary actions */
.btn-primary:hover { background: #1f262b; color:#fff; }
.btn-info { background: var(--ca-teal); }
.btn-success { background: var(--ca-green); }
.btn-warning { background: var(--ca-amber); }
.btn-danger { background: var(--ca-red); }
.btn-white { background: #fff; color: var(--ca-dark); border-color: #d6dde1; }
.btn-white:hover { background: #f3f5f6; color: var(--ca-dark); }
.btn-default { background: #fff; color: var(--ca-dark); border: 1px solid #d6dde1; }
.btn-default:hover { background: #f3f5f6; color: var(--ca-dark); }
.btn-outline-info { background: #fff; color: var(--ca-teal); border: 1px solid var(--ca-teal); }
.btn-outline-info:hover { background: var(--ca-teal); color: #fff; }

/* ---------------------------------------------------------------- Forms */
label { font-weight: 600; font-size: 13px; margin-bottom: 5px; display: inline-block; }
.form-control, .form-select {
  width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid #d6dde1;
  border-radius: 4px; background: #fff; color: var(--ca-body-text);
}
.form-control::placeholder { color: #9aa5ab; }
.form-control:focus, .form-select:focus { outline: none; border-color: var(--ca-teal); box-shadow: 0 0 0 2px rgba(0,172,172,.12); }
.input-group { display: flex; }
.input-group .form-control { border-radius: 4px 0 0 4px; }
.input-group .btn { border-radius: 0 4px 4px 0; }
.input-group-text { display: inline-flex; align-items: center; padding: 0 10px; background: #f3f5f6; border: 1px solid #d6dde1; }
.form-check { display: inline-flex; align-items: center; gap: 6px; }
.form-check-input { width: 15px; height: 15px; accent-color: var(--ca-blue); }
.date-input { position: relative; }
.date-input .input-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ca-muted); pointer-events: none; }

/* select2-like appearance for filter selects (static) */
.select2-mock {
  width: 100%; padding: 8px 10px; border: 1px solid #d6dde1; border-radius: 4px;
  background: #fff; color: var(--ca-muted); display: flex; align-items: center; justify-content: space-between;
}
.select2-mock::after { content: "\25BC"; font-size: 9px; color: #aab3b9; }

/* ---------------------------------------------------------------- Switcher */
.switcher {
  width: 42px; height: 22px; border-radius: 12px; background: #cfd6da; position: relative;
  display: inline-block; cursor: pointer; transition: background .2s; vertical-align: middle;
}
.switcher::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: left .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.switcher.on { background: var(--ca-green); }
.switcher.on::after { left: 22px; }

/* ---------------------------------------------------------------- Empty states */
.text-warning { color: var(--ca-amber) !important; }
.text-muted { color: var(--ca-muted) !important; }
.text-danger { color: var(--ca-red) !important; }
.text-success { color: var(--ca-green) !important; }
.empty-state { text-align: center; padding: 40px 15px; color: var(--ca-muted); }
.empty-state h5 { margin: 0 0 6px; color: var(--ca-dark); }

/* ---------------------------------------------------------------- Tabs */
.nav-tabs { display: flex; gap: 2px; background: var(--ca-dark); border-radius: 4px 4px 0 0; padding: 0; list-style: none; margin: 0; border: 0; }
.nav-tabs .nav-item { }
.nav-tabs .nav-link {
  display: block; padding: 11px 18px; color: #c0c8cd; border: 0; background: transparent;
  font-size: 13px; cursor: pointer; border-radius: 0;
}
.nav-tabs .nav-link.active { background: #fff; color: var(--ca-dark); font-weight: 600; border-radius: 4px 4px 0 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-content-box { background: #fff; padding: 20px; border-radius: 0 0 4px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin-bottom: 20px; }

/* ---------------------------------------------------------------- Pagination */
.pagination { display: flex; gap: 3px; list-style: none; padding: 0; margin: 0; justify-content: flex-end; }
.pagination .page-item .page-link {
  display: block; padding: 6px 11px; border: 1px solid var(--ca-border); color: var(--ca-dark);
  border-radius: 3px; font-size: 12px; background: #fff; cursor: pointer;
}
.pagination .page-item.active .page-link { background: var(--ca-dark); color: #fff; border-color: var(--ca-dark); }
.pagination .page-item.disabled .page-link { color: #b3bcc2; }
.page-counter { color: var(--ca-muted); font-size: 12px; }

/* ---------------------------------------------------------------- Modal (static) */
.modal-backdrop-static {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1040;
  display: none; align-items: flex-start; justify-content: center; padding-top: 60px;
}
.modal-card { background: #fff; border-radius: 5px; width: 600px; max-width: 92%; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.modal-card.modal-xl { width: 1000px; }
.modal-card .modal-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--ca-border); }
.modal-card .modal-head h5 { margin: 0; font-size: 16px; font-weight: 500; }
.modal-card .modal-head .modal-x { margin-left: auto; cursor: pointer; color: var(--ca-muted); font-size: 18px; background: none; border: 0; }
.modal-card .modal-body { padding: 20px; }
.modal-card .modal-foot { padding: 12px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--ca-border); }

/* ---------------------------------------------------------------- Footer */
.app-footer {
  margin-left: var(--ca-sidebar-w); padding: 14px 24px; color: var(--ca-muted);
  font-size: 12px; display: flex; justify-content: space-between; border-top: 1px solid #dde3e7;
}

/* ---------------------------------------------------------------- Misc helpers */
.lock-icon { color: var(--ca-muted); margin-right: 4px; }
.flag-row { margin-top: 4px; display: flex; gap: 5px; flex-wrap: wrap; }
.text-nowrap { white-space: nowrap; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.fw-bold, .font-weight-bold { font-weight: 700; }
.d-block { display: block; }
.grouped-locations { list-style: none; padding-left: 12px; margin: 2px 0 0; }
.grouped-locations li { font-size: 12px; color: var(--ca-muted); }
.wrapped-locations { font-size: 12px; }
.inspection-products { list-style: none; padding: 0; margin: 0; }
.inspection-products li { padding: 1px 0; font-size: 12px; }
.action-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.filter-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.external-icon { color: var(--ca-blue); margin-right: 4px; font-size: 11px; }

/* qty bubble (deliveries) */
.qty-bubble {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  background: var(--ca-teal); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; padding: 0 5px; margin-right: 5px;
}

/* nested package sub-table wrapper (collections) */
.subtable { margin: 0; border: 1px solid var(--ca-border); }
.subtable th { background: #fff; }

/* ---------------------------------------------------------------- Login page */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2d353c 0%, #1a2229 100%); padding: 20px;
}
.login-card {
  background: #fff; border-radius: 8px; width: 390px; max-width: 100%; padding: 34px 32px;
  box-shadow: 0 14px 46px rgba(0,0,0,.35);
}
.login-brand { text-align: center; margin-bottom: 6px; }
.login-brand .navbar-logo { color: var(--ca-teal); font-size: 32px; }
.login-brand h1 { font-size: 22px; font-weight: 300; margin: 10px 0 0; color: var(--ca-dark); }
.login-brand h1 b { font-weight: 700; }
.login-sub { text-align: center; color: var(--ca-muted); margin: 6px 0 24px; font-size: 13px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .form-group label { font-size: 12px; color: var(--ca-muted); }
.login-card .btn-block { width: 100%; padding: 11px; font-size: 14px; margin-top: 6px; }
.login-options { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin: 4px 0 8px; }
.login-options a { color: var(--ca-blue); }
.login-foot { text-align: center; margin-top: 20px; color: var(--ca-muted); font-size: 12px; }

/* ---------------------------------------------------------------- Toasts (noty-style) */
#toast-container {
  position: fixed; top: calc(var(--ca-header-h) + 12px); right: 16px; z-index: 1080;
  display: flex; flex-direction: column; gap: 8px; max-width: 340px;
}
.toast-msg {
  min-width: 230px; padding: 12px 14px; border-radius: 5px; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.22); font-size: 13px; display: flex; align-items: center;
  gap: 10px; animation: toastIn .18s ease-out; transition: opacity .3s, transform .3s;
}
.toast-msg.success { background: var(--ca-green); }
.toast-msg.warning { background: var(--ca-amber); }
.toast-msg.info    { background: var(--ca-teal); }
.toast-msg.danger  { background: var(--ca-red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 991px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .2s; }
  .app-sidebar.show { transform: translateX(0); }
  .app-content, .app-footer { margin-left: 0; }
  .app-header .navbar-header { width: auto; }
}
