/* ============================================================================
   shared.css — Gentelella foundation for the WA Manager UI (feature/gentelella-ui)

   Classic Colorlib Gentelella look (tag 1.4.0), dependency-free re-implementation:
   no webfonts, no icon fonts, no external URLs. Values follow
   docs/ui-gentelella-spec.md. Logic-hook class names shared with ui/shared.js
   (.toast, .modal-overlay/.modal/.modal-close, .form-group, .status, .hidden)
   are kept and restyled.

   Sections: 1 tokens · 2 base · 3 layout · 4 components · 5 responsive.
   Page-specific rules stay in each HTML file (loaded after this one) and should
   reuse the :root tokens. Copy-paste markup patterns: docs/ui-gentelella-snippets.md
   ========================================================================== */

/* ── 1. TOKENS ───────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* core palette */
  --g-dark: #2A3F54;                 /* sidebar, body bg, nav_title */
  --g-dark-active-1: #334556;        /* active menu item gradient start */
  --g-dark-active-2: #2C4257;        /* active menu item gradient end */
  --g-dark-footer-btn: #172D44;      /* .sidebar-footer a bg */
  --g-dark-footer-btn-h: #425567;    /* .sidebar-footer a:hover bg */
  --g-dark-tree: #425668;            /* child-menu bullets / tree line */
  --g-dark-flyout: #3E5367;          /* nav-sm child-menu flyout bg */
  --g-page: #F7F7F7;                 /* .right_col bg */
  --g-topbar: #EDEDED;               /* .nav_menu bg */
  --g-topbar-border: #D9DEE4;        /* nav_menu border, dividers, tile divider */
  --g-panel-border: #E6E9ED;         /* x_panel border, x_title underline */
  --g-panel-hover: #F5F7FA;          /* panel_toolbox hover */
  --g-hover-soft: #F2F5F7;           /* soft hover bg / code bg */

  /* text */
  --g-text: #73879C;                 /* body text, headings */
  --g-link: #5A738E;                 /* links, labels, form label text */
  --g-menu-text: #E7E7E7;            /* sidebar top-level links */
  --g-submenu-text: rgba(255, 255, 255, .75); /* child_menu links */
  --g-menu-hover-text: #F2F5F7;      /* sidebar link hover */
  --g-title-light: #ECF0F1;          /* site_title, profile h2, jambo thead */
  --g-topnav-text: #515356;          /* top bar links, hamburger */
  --g-user-profile: #5E6974;         /* a.user-profile text */
  --g-muted: #AAB2BD;                /* hints, small subtitles, select arrow */
  --g-chevron: #C4CFDA;              /* sidebar chevron */
  --g-toolbox-icon: #C5C7CB;         /* panel_toolbox icons, modal-close */
  --g-x-title-span: #BDBDBD;         /* .x_title span */
  --g-dark-text: #34495E;            /* dark accent text / code */

  /* accents */
  --g-green: #1ABB9C;                /* primary accent (active border, labels) */
  --g-green-btn: #26B99A;            /* btn-success bg */
  --g-green-btn-h: #169F85;          /* btn-success border + hover */
  --g-blue: #3498DB;
  --g-purple: #9B59B6;
  --g-orange: #F39C12;
  --g-red: #E74C3C;
  --g-aero: #9CC2CB;
  --g-blue-sky: #50C1CF;
  --g-input-focus: #CCD0D7;          /* form-control:focus border */

  /* misc */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: color .15s, background .15s, border-color .15s, opacity .15s;
}

/* ── 2. BASE ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

body {
  color: var(--g-text);
  background: var(--g-dark); /* visible at page edges; .right_col paints #F7F7F7 on top */
  font-family: "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif;
  font-size: 13px;
  line-height: 1.471;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

a { color: var(--g-link); text-decoration: none; }
a:hover, a:focus { text-decoration: none; }

h1, h2, h3 { margin-top: 10px; margin-bottom: 10px; font-weight: 400; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 16px; font-weight: 500; }

::selection { background: var(--g-green); color: #fff; }
:focus-visible { outline: 2px solid var(--g-green); outline-offset: 2px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.clearfix { clear: both; }

code {
  font-family: var(--mono); background: var(--g-hover-soft);
  border: 1px solid var(--g-panel-border); padding: 1px 4px;
  font-size: 12px; color: var(--g-dark-text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (pointer: coarse) {
  .btn, .btn-add, .form-control { min-height: 40px; }
  .btn-sm { min-height: 36px; }
}

/* ── 3. LAYOUT ───────────────────────────────────────────────────────────── */

/* 3.1 shell: body.nav-md (default) / body.nav-sm (collapsed) */
.container.body { width: 100%; padding: 0; }

.left_col {
  position: fixed; top: 0; left: 0; height: 100%;
  display: flex; background: var(--g-dark); z-index: 1;
}
.nav-md .container.body .left_col { width: 230px; }
.nav-sm .container.body .left_col { width: 70px; z-index: 9999; }

.scroll-view {
  width: 100%; height: 100%; overflow-y: auto;
  padding-bottom: 52px; /* keep the last menu items clear of .sidebar-footer */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.scroll-view::-webkit-scrollbar { width: 6px; }
.scroll-view::-webkit-scrollbar-track { background: transparent; }
.scroll-view::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 3px; }

/* 3.2 brand */
.nav_title { width: 230px; height: 57px; background: var(--g-dark); }
.site_title {
  display: block; height: 55px; margin: 0; padding-left: 10px;
  font-size: 22px; font-weight: 400; line-height: 59px;
  color: var(--g-title-light);
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.site_title svg {
  width: 18px; height: 18px; vertical-align: -5px;
  border: 1px solid #EAEAEA; padding: 5px 6px; border-radius: 50%;
}

/* 3.3 profile block (hidden in nav-sm) */
.profile::after, .sidebar-footer::after { content: ""; display: table; clear: both; }
.profile_pic { width: 35%; float: left; }
.profile_img {
  width: 70%; margin: 20px 0 0 15%; padding: 4px;
  background: #fff; border: 1px solid rgba(52, 73, 94, .44); border-radius: 50%;
}
.profile_info { width: 65%; float: left; padding: 25px 10px 10px; }
.profile_info span { display: block; font-size: 13px; line-height: 30px; color: #BAB8B8; }
.profile_info h2 { margin: 0; font-size: 14px; font-weight: 300; color: var(--g-title-light); }

/* 3.4 menu sections + side menu */
.menu_section { margin-bottom: 35px; }
.menu_section h3 {
  margin: 0; padding-left: 15px;
  color: #fff; font-size: 11px; font-weight: bold; letter-spacing: .5px;
  text-transform: uppercase; text-shadow: 1px 1px #000;
}
.menu_section > ul { margin-top: 10px; }

.nav { list-style: none; margin: 0; padding: 0; }

.nav.side-menu > li { position: relative; display: block; cursor: pointer; }
.nav.side-menu > li > a {
  display: block; position: relative; padding: 13px 15px 12px; margin-bottom: 6px;
  color: var(--g-menu-text); font-weight: 500;
}
.nav.side-menu > li > a:hover { color: var(--g-menu-hover-text); background: transparent; }

/* 18px svg icon inside a 26px inline slot */
.nav.side-menu > li > a > svg {
  width: 18px; height: 18px; margin-right: 8px;
  vertical-align: -3px; color: inherit;
}
.nav.side-menu > li > a > svg.chevron {
  float: right; width: 10px; height: 10px; margin: 5px 10px 0 0;
  color: var(--g-chevron);
}

.nav.side-menu > li.current-page,
.nav.side-menu > li.active { border-right: 5px solid var(--g-green); }
.nav li.current-page { background: rgba(255, 255, 255, .05); }
.nav.side-menu > li.active > a {
  color: var(--g-menu-text);
  text-shadow: rgba(0, 0, 0, .25) 0 -1px 0;
  background: linear-gradient(var(--g-dark-active-1), var(--g-dark-active-2)), var(--g-dark);
  box-shadow: rgba(0, 0, 0, .25) 0 1px 0, inset rgba(255, 255, 255, .16) 0 1px 0;
}

/* child menu (accordion; opened by gentelella.js via li.active) */
.nav.child_menu { display: none; }
.nav.side-menu > li.active > ul.child_menu { display: block; }
.nav.child_menu li { position: relative; padding-left: 36px; }
.nav.child_menu li:hover, .nav.child_menu li.active { background-color: rgba(255, 255, 255, .06); }
.nav.child_menu > li > a {
  display: block; padding: 9px;
  color: var(--g-submenu-text); font-size: 12px; font-weight: 500;
}
.nav-md ul.nav.child_menu li::before {
  content: ""; position: absolute; z-index: 1;
  width: 8px; height: 8px; left: 23px; margin-top: 15px;
  background: var(--g-dark-tree); border-radius: 50%;
}
.nav-md ul.nav.child_menu li::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 27px;
  border-left: 1px solid var(--g-dark-tree);
}

/* 3.5 bottom icon strip */
.sidebar-footer {
  position: fixed; bottom: 0; left: 0; width: 230px; padding: 5px 0 0;
  display: block; clear: both; background: var(--g-dark); z-index: 999;
}
.sidebar-footer a {
  display: block; float: left; width: 25%; padding: 7px 0 3px;
  text-align: center; background: var(--g-dark-footer-btn); cursor: pointer;
}
.sidebar-footer a:hover { background: var(--g-dark-footer-btn-h); }
.sidebar-footer svg { width: 17px; height: 17px; color: var(--g-menu-text); }

/* 3.6 collapsed sidebar (body.nav-sm, 70px, icons only) */
.nav-sm .nav_title { width: 70px; }
.nav-sm .site_title span { display: none; }
.nav-sm .nav.side-menu > li > a { text-align: center; font-weight: 400; font-size: 10px; padding: 10px 5px; }
.nav-sm .nav.side-menu > li > a > svg { display: block; width: 25px; height: 25px; margin: 0 auto 5px; }
.nav-sm .nav.side-menu > li > a > svg.chevron { display: none; }
.nav.side-menu > li.active-sm { border-right: 5px solid var(--g-green); }
.nav-sm > .nav.side-menu > li.active-sm > a { color: var(--g-green); }
.nav-sm .nav.side-menu > li.active > a {
  color: var(--g-green); text-shadow: none; background: transparent; box-shadow: none;
}
.nav-sm .nav.side-menu > li.active > a > svg:not(.chevron) { color: var(--g-green); }
.nav-sm ul.nav.child_menu {
  position: absolute; top: 0; left: 100%; width: 210px;
  background: var(--g-dark-flyout); z-index: 4000;
}
.nav-sm ul.nav.child_menu li { padding: 0 10px; }
.nav-sm ul.nav.child_menu li::before, .nav-sm ul.nav.child_menu li::after { display: none; }
.nav-sm .profile { display: none; }
.nav-sm .menu_section { margin: 0; }
.nav-sm .menu_section h3 { display: none; }
.nav-sm .sidebar-footer { visibility: hidden; }
.nav-sm footer { margin-left: 70px; }

/* 3.7 top bar */
.top_nav { display: block; margin-left: 230px; }
.nav-sm .top_nav { margin-left: 70px; }
.nav_menu {
  position: relative; width: 100%; min-height: 57px;
  background: var(--g-topbar); border-bottom: 1px solid var(--g-topbar-border);
  margin-bottom: 10px;
}
.nav_menu::after { content: ""; display: table; clear: both; }
.nav.toggle { width: 70px; padding-top: 16px; float: left; }
#menu_toggle { display: block; padding: 15px 15px 0; cursor: pointer; color: var(--g-topnav-text); }
#menu_toggle svg { width: 26px; height: 26px; }

.top_nav .navbar-right {
  float: right; margin: 0; padding: 0; list-style: none;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 56px;
}
.top_nav .navbar-right li { display: inline-block; }
.top_nav .navbar-right .btn { margin: 0; }
.nav.navbar-nav > li > a {
  display: block; padding: 13px 14px; line-height: 30px;
  color: var(--g-topnav-text); font-weight: 500;
}
.top_nav .navbar-nav > li > a:hover,
.top_nav .navbar-nav > li > a:focus,
.top_nav .navbar-nav > li.open > a { background: var(--g-topbar-border); }
a.user-profile {
  display: flex; align-items: center; gap: 10px; padding: 10px 15px;
  color: var(--g-user-profile);
}
.user-profile img { width: 29px; height: 29px; border-radius: 50%; }
a.info-number { position: relative; }
.info-number .label { position: absolute; top: 4px; right: 2px; }

/* 3.8 content column + page title */
.right_col {
  background: var(--g-page);
  padding: 10px 20px calc(20px + var(--safe-bottom));
  margin-left: 230px;
  min-height: calc(100vh - 57px);
}
.nav-sm .right_col { margin-left: 70px; }
.page-title {
  width: 100%; padding: 10px 0; margin-bottom: 10px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px;
}
.title_left { min-width: 0; }
.title_left h3 { margin: 9px 0; font-size: 18px; font-weight: 400; color: var(--g-text); }
.title_left h3 small { font-size: 65%; color: var(--g-muted); font-weight: 400; }
.title_right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* 3.9 footer */
footer {
  display: block; background: #fff; padding: 15px 20px;
  border-top: 1px solid var(--g-panel-border);
  color: var(--g-text); font-size: 12px;
}
@media (min-width: 992px) { footer { margin-left: 230px; } }

/* ── 4. COMPONENTS ───────────────────────────────────────────────────────── */

/* 4.1 panels */
.x_panel {
  position: relative; width: 100%; margin-bottom: 10px; padding: 10px 17px;
  background: #fff; border: 1px solid var(--g-panel-border);
  transition: all .2s ease; /* no radius, no shadow — classic Gentelella */
}
.x_title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 2px solid var(--g-panel-border); padding: 1px 5px 6px; margin-bottom: 10px;
}
.x_title h2 {
  flex: 0 1 auto; min-width: 0; margin: 5px 0 6px;
  font-size: 18px; font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.x_title h2 small { margin-left: 10px; font-size: 65%; color: var(--g-muted); font-weight: 400; }
.x_title span { color: var(--g-x-title-span); }
.panel_toolbox { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.panel_toolbox > li > a, a.panel_tool {
  display: block; padding: 5px; color: var(--g-toolbox-icon); font-size: 14px; line-height: 1;
  transition: var(--transition);
}
.panel_toolbox > li > a:hover, a.panel_tool:hover { background: var(--g-panel-hover); color: var(--g-text); }
.x_content { width: 100%; margin-top: 5px; padding: 0 5px 6px; }
.x_content h4 { font-size: 16px; font-weight: 500; }
.ln_solid { border-top: 1px solid #e5e5e5; height: 1px; margin: 20px 0; }

/* 4.2 dashboard stat tiles */
.tile_count { margin: 20px 0; display: flex; flex-wrap: wrap; }
.tile_count .tile_stats_count {
  flex: 1 1 160px; min-width: 0; position: relative;
  border-bottom: 1px solid var(--g-topbar-border);
  padding: 0 10px 0 20px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile_count .tile_stats_count::before {
  content: ""; position: absolute; left: 0; height: 65px; margin-top: 10px;
  border-left: 2px solid #ADB2B5;
}
@media (min-width: 768px) {
  .tile_count .tile_stats_count .count { font-size: 40px; }
  .tile_count .tile_stats_count span { font-size: 13px; }
}
@media (min-width: 992px) {
  .tile_count .tile_stats_count { border-bottom: 0; padding-bottom: 10px; }
  .tile_count .tile_stats_count:first-child::before { border-left: 0; }
}
@media (min-width: 992px) and (max-width: 1100px) {
  .tile_count .tile_stats_count .count { font-size: 30px; }
}
.tile_count .tile_stats_count .count {
  font-size: 30px; line-height: 47px; font-weight: 600; color: var(--g-text); white-space: nowrap;
}
.tile_count .tile_stats_count span { font-size: 12px; display: block; color: var(--g-muted); }
.count.green { color: var(--g-green); }
.count.red { color: var(--g-red); }
.count.blue { color: var(--g-blue); }
.count.purple { color: var(--g-purple); }
.count.orange { color: var(--g-orange); }
.count.aero { color: var(--g-aero); }
.count.dark { color: var(--g-dark-text); }

/* 4.3 buttons (BS3 base + Gentelella accents) */
.btn {
  display: inline-block; margin: 0 5px 5px 0; padding: 6px 12px;
  font-size: 13px; font-weight: 400; line-height: 1.42857143;
  color: var(--g-text); text-align: center; vertical-align: middle;
  cursor: pointer; user-select: none;
  background-image: none; background-color: transparent;
  border: 1px solid transparent; border-radius: 3px;
  transition: var(--transition);
}
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn-success { background-color: var(--g-green-btn); border-color: var(--g-green-btn-h); color: #fff; }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active {
  background-color: var(--g-green-btn-h); border-color: var(--g-green-btn-h); color: #fff;
}
.btn-primary { background-color: #337AB7; border-color: #2E6DA4; color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
  background-color: #286090; border-color: #204D74; color: #fff;
}
.btn-danger { background-color: var(--g-red); border-color: var(--g-red); color: #fff; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active {
  background-color: #D62C1A; border-color: #D62C1A; color: #fff;
}
.btn-warning { background-color: var(--g-orange); border-color: #E67E22; color: #fff; }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active {
  background-color: #E67E22; border-color: #E67E22; color: #fff;
}
.btn-dark { background-color: #4B5F71; border-color: #364B5F; color: #E9EDEF; }
.btn-dark:hover, .btn-dark:focus, .btn-dark:active, .btn-dark.active {
  background-color: #394D5F; border-color: #394D5F; color: #fff;
}
.btn-default { background-color: #fff; border-color: #ccc; color: var(--g-link); }
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active {
  background-color: #E6E9ED; border-color: #ADADAD; color: var(--g-text);
}
.btn-sm { padding: 3px 8px; font-size: 12px; line-height: 1.5; }
.btn-lg { padding: 10px 16px; font-size: 15px; line-height: 1.4; }
.btn-round { border-radius: 30px; }
.btn.btn-flex { display: flex; flex: 1; }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 50%;
  background-color: var(--g-green-btn); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; transition: var(--transition);
}
.btn-add:hover, .btn-add:focus { background-color: var(--g-green-btn-h); color: #fff; }
a.btn-success, a.btn-primary, a.btn-warning, a.btn-danger, a.btn-dark { color: #fff; }

/* 4.4 labels / status badges (logic aliases for pages: label-ok/warn/bad/info) */
.label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; font-size: 10px; font-weight: 700; line-height: 1;
  color: #fff; border: 1px solid transparent; border-radius: 3px;
  white-space: nowrap; vertical-align: middle;
}
.bg-green, .label-ok { background-color: var(--g-green); border-color: var(--g-green); color: #fff; }
.bg-red, .label-bad { background-color: var(--g-red); border-color: var(--g-red); color: #fff; }
.bg-blue, .label-info { background-color: var(--g-blue); border-color: var(--g-blue); color: #fff; }
.bg-orange, .label-warn { background-color: var(--g-orange); border-color: var(--g-orange); color: #fff; }
.bg-purple { background-color: var(--g-purple); border-color: var(--g-purple); color: #fff; }
.bg-blue-sky { background-color: var(--g-blue-sky); border-color: var(--g-blue-sky); color: #fff; }
.bg-dark { background-color: var(--g-dark-text); border-color: var(--g-dark-text); color: #fff; }
.bg-gray { background-color: var(--g-topbar); border-color: var(--g-topbar-border); color: var(--g-link); }

/* 4.5 forms */
.form-group { margin-bottom: 10px; }
label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--g-link); font-size: 12px; }
.form-control {
  display: block; width: 100%; height: 34px; padding: 6px 12px;
  font-size: 13px; line-height: 1.42857143; color: #555;
  background-color: #fff; background-image: none;
  border: 1px solid #ccc; border-radius: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  transition: border-color .15s ease-in-out;
}
.form-control:focus { border-color: var(--g-input-focus); box-shadow: none; outline: none; }
.form-control::placeholder { color: var(--g-muted); }
.form-control:disabled { background-color: var(--g-hover-soft); cursor: not-allowed; }
textarea.form-control { height: auto; min-height: 64px; resize: vertical; }
select.form-control {
  -webkit-appearance: none; appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23AAB2BD'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.form-hint { margin-top: 5px; color: var(--g-muted); font-size: 11px; }
.form-check {
  display: flex; align-items: center; gap: 8px; margin-bottom: 0;
  color: var(--g-link); font-size: 12px; font-weight: 400;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--g-green); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.required { color: var(--g-red); }

/* 4.6 tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 8px; line-height: 1.42857143; vertical-align: top;
  border-top: 1px solid #e1e1e1; text-align: left;
}
.table thead th {
  border-top: 0; border-bottom: 2px solid var(--g-panel-border);
  font-weight: 600; color: var(--g-link);
}
.table-responsive { overflow-x: auto; }
table.jambo_table { border: 1px solid rgba(221, 221, 221, .78); }
table.jambo_table thead { background: rgba(52, 73, 94, .94); color: var(--g-title-light); }
table.jambo_table thead th { color: var(--g-title-light); border-bottom: 0; }
table.jambo_table tbody tr:hover td {
  background: rgba(38, 185, 154, .07);
  border-top: 1px solid rgba(38, 185, 154, .11);
  border-bottom: 1px solid rgba(38, 185, 154, .11);
}
table.jambo_table tbody tr.selected { background: rgba(38, 185, 154, .16); }
table.jambo_table tbody tr.selected td {
  border-top: 1px solid rgba(38, 185, 154, .4);
  border-bottom: 1px solid rgba(38, 185, 154, .4);
}

/* 4.7 progress bars */
.progress { height: 10px; background: var(--g-topbar); border-radius: 0; overflow: hidden; }
.progress-bar { float: left; height: 100%; background-color: var(--g-green-btn); transition: width .3s; }
.progress-bar-success { background-color: var(--g-green-btn); }
.progress-bar-info { background-color: var(--g-blue); }
.progress-bar-warning { background-color: var(--g-orange); }
.progress-bar-danger { background-color: var(--g-red); }
.progress-bar-dark { background-color: var(--g-dark-text); }

/* 4.8 tabs */
.tabs { display: flex; border-bottom: 2px solid var(--g-panel-border); overflow-x: auto; }
.tab {
  padding: 10px 16px; font-size: 13px; color: var(--g-link);
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; white-space: nowrap; transition: var(--transition);
}
.tab:hover { color: var(--g-text); }
.tab.active { color: var(--g-green); border-bottom-color: var(--g-green); }

/* 4.9 logic hooks shared with ui/shared.js */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%); z-index: 400;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 20px; border-radius: 3px;
  font-size: 13px; font-weight: 500; color: #E9EDEF; text-align: center;
  overflow-wrap: anywhere;
}
.toast-success { background: rgba(38, 185, 154, .88); }
.toast-error { background: rgba(231, 76, 60, .88); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: none; padding: 20px; overflow: auto;
  background: rgba(42, 63, 84, .55);
}
.modal-overlay.active { display: block; }
.modal {
  position: relative; width: 100%; max-width: 560px; margin: 40px auto; padding: 0;
  background: #fff; border: 1px solid var(--g-topbar-border);
}
.modal .x_title { margin: 0; padding: 10px 17px; border-bottom: 2px solid var(--g-panel-border); }
.modal .x_content { padding: 15px 17px; }
.modal-close {
  position: absolute; top: 8px; right: 10px; padding: 4px;
  border: 0; background: none; color: var(--g-toolbox-icon);
  font-size: 18px; line-height: 1; cursor: pointer; transition: var(--transition);
}
.modal-close:hover { color: var(--g-link); }

.status { min-height: 18px; color: var(--g-link); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.link { color: var(--g-link); font-size: 12px; }
.link:hover { text-decoration: underline; }
.empty {
  padding: 18px; border: 1px dashed var(--g-topbar-border); border-radius: 3px;
  background: #F9F9F9; color: var(--g-muted); text-align: center; font-size: 12px;
}
.rows { display: grid; gap: 10px; }

/* ── 5. RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 599px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .left_col { display: none; }
  .sidebar-footer { display: none; }
  .top_nav, .right_col, footer { margin-left: 0; width: 100%; }
  .nav-sm .container.body .right_col, .nav-sm .main_container .top_nav, .nav-sm footer { margin-left: 0; }
  .right_col { padding: 10px 10px calc(60px + var(--safe-bottom)); }
  .page-title { flex-direction: column; align-items: stretch; }
}
