/* AN EMPTY TOOLBAR SLOT IS NOT A ROW: `slot[name=tbar]{padding-bottom:.4rem}` gave the nav's unused tbar
   slot a 6.4px band, which pushed the table down — the first node (`Libra`) sat 6px below the top bar
   instead of flush with it (measured 2026-11-16: slot h=6.39, row1 y=6/h=56, header y=0/h=57; prod: y=0). */
slot[name=tbar]:empty, slot[name=title]:empty { padding-bottom: 0 !important; margin: 0 !important; }

/* nav td:hover {background-color: #3c4854 !important;color:#dfe4e8 !important;} */
tbody[data-xtype=nav] td {background-color: var(--libra-nav-bg, #32404e) ;color: var(--libra-nav-text, #dfe4e8) !important;}
tbody[data-xtype=nav] tr:hover td {background-color: var(--libra-nav-hover-bg, #3c4854) !important;}
[data-xtype=nav] tr[data-selected]:first-child  td{background-color: var(--libra-nav-first-bg, var(--libra-nav-active-bg, #35baf6)) !important;color: var(--libra-nav-active-text, #fff) !important;}
tbody[data-xtype=nav] tr[data-selected] td {background-color: var(--libra-nav-active-bg, #35baf6);color: var(--libra-nav-active-text, #fff) !important;}
.clps {table-layout: fixed;}
.clps .hide-on-collapse { display:none !important}
/* NOTE: the nav/tree rows live inside the component SHADOW root, where libra.css is @imported.
   Only PLAIN selectors (no [data-bs-theme] ancestor) reach them; per-theme colours travel via the
   --libra-* custom properties (they inherit across the shadow boundary). */
/* NO LINE UNDER THE FIRST NODE: `border-bottom:1px solid #32404e` is lighter than the row in the dark
   themes and reads as a white line under `Libra`. The first row is told apart by its own background. */
[data-xtype=nav]  :first-child td {background-color: var(--libra-nav-first-bg, var(--libra-nav-active-bg, #35baf6)) !important;border-bottom:0 !important}
/* tree/menuView rows: same surface as the nav rows (--libra-nav-bg); unset themes stay transparent */
tbody[data-xtype=tree] td {background-color: var(--libra-tree-bg, transparent) !important;}
/* selected tree/menuView node = the selected menuNav row (--libra-nav-active-bg) */
tbody[data-xtype=tree] tr[data-selected] td,
tbody[data-xtype=tree] tr[data-selected] {background-color: var(--libra-tree-active-bg, var(--libra-nav-active-bg, #35baf6)) !important; color: var(--libra-nav-active-text, #fff) !important;}
[data-bs-theme="cool-dark"] tbody[data-xtype=nav] td,
[data-bs-theme="warm-dark"] tbody[data-xtype=nav] td {background-color: var(--libra-nav-bg, #1a1d1f) ;color: var(--libra-nav-text, #e9ecef) !important;}
[data-bs-theme="cool-dark"] [data-xtype=nav] tr[data-selected]:first-child  td,
[data-bs-theme="cool-dark"] tbody[data-xtype=nav] tr[data-selected] td,
[data-bs-theme="cool-dark"] [data-xtype=nav] :first-child td,
[data-bs-theme="warm-dark"] [data-xtype=nav] tr[data-selected]:first-child  td,
[data-bs-theme="warm-dark"] tbody[data-xtype=nav] tr[data-selected] td,
[data-bs-theme="warm-dark"] [data-xtype=nav] :first-child td {background-color: var(--libra-nav-active-bg, #1a1d1f) !important;color: var(--libra-nav-active-text, #e9ecef) !important;}
[data-bs-theme="cool-dark"] [data-xtype=nav] :first-child td {background-color: var(--libra-nav-first-bg, #161719) !important;}
[data-bs-theme="warm-dark"] [data-xtype=nav] :first-child td {background-color: var(--libra-nav-first-bg, #151515) !important;}
[data-bs-theme="cool-dark"] [data-xtype=nav] tr[data-selected]:not(:first-child) td,
[data-bs-theme="cool-dark"] tbody[data-xtype=nav] tr[data-selected]:not(:first-child) td,
[data-bs-theme="warm-dark"] [data-xtype=nav] tr[data-selected]:not(:first-child) td,
[data-bs-theme="warm-dark"] tbody[data-xtype=nav] tr[data-selected]:not(:first-child) td {background-color: var(--libra-nav-active-bg, #1a1d1f) !important;}

/*********************** colour modes: cool-dark (existing blue-gray) + warm-dark (neutral gray) ***********************/
/* Bootstrap 5.3 ships variables only for `[data-bs-theme=dark]`. Our custom modes must carry the same
   variable set so every BS component (card, dropdown, modal, form, table) resolves on them.
   cool-dark = the previous "dark"; warm-dark = neutral grays (page #2c2c2c, panels/menu/header/card
   #272727, menuNav first node + menuView title #151515, nav text white, body text #9c9c9b). */
[data-bs-theme="cool-dark"], [data-bs-theme="warm-dark"] {
  color-scheme: dark;
  --bs-body-color:#dee2e6; --bs-body-color-rgb:222,226,230;
  --bs-body-bg:#212529; --bs-body-bg-rgb:33,37,41;
  --bs-emphasis-color:#fff; --bs-emphasis-color-rgb:255,255,255;
  --bs-secondary-color:rgba(222, 226, 230, 0.75); --bs-secondary-color-rgb:222,226,230;
  --bs-secondary-bg:#343a40; --bs-secondary-bg-rgb:52,58,64;
  --bs-tertiary-color:rgba(222, 226, 230, 0.5); --bs-tertiary-color-rgb:222,226,230;
  --bs-tertiary-bg:#2b3035; --bs-tertiary-bg-rgb:43,48,53;
  --bs-primary-text-emphasis:#6ea8fe; --bs-secondary-text-emphasis:#a7acb1;
  --bs-success-text-emphasis:#75b798; --bs-info-text-emphasis:#6edff6;
  --bs-warning-text-emphasis:#ffda6a; --bs-danger-text-emphasis:#ea868f;
  --bs-light-text-emphasis:#f8f9fa; --bs-dark-text-emphasis:#dee2e6;
  --bs-primary-bg-subtle:#031633; --bs-secondary-bg-subtle:#161719;
  --bs-success-bg-subtle:#051b11; --bs-info-bg-subtle:#032830;
  --bs-warning-bg-subtle:#332701; --bs-danger-bg-subtle:#2c0b0e;
  --bs-light-bg-subtle:#343a40; --bs-dark-bg-subtle:#1a1d20;
  --bs-primary-border-subtle:#084298; --bs-secondary-border-subtle:#41464b;
  --bs-success-border-subtle:#0f5132; --bs-info-border-subtle:#087990;
  --bs-warning-border-subtle:#997404; --bs-danger-border-subtle:#842029;
  --bs-light-border-subtle:#495057; --bs-dark-border-subtle:#343a40;
  --bs-heading-color:inherit;
  --bs-link-color:#6ea8fe; --bs-link-hover-color:#8bb9fe;
  --bs-link-color-rgb:110,168,254; --bs-link-hover-color-rgb:139,185,254;
  --bs-code-color:#e685b5; --bs-highlight-color:#dee2e6; --bs-highlight-bg:#664d03;
  --bs-border-color:#495057; --bs-border-color-translucent:rgba(255, 255, 255, 0.15);
  --bs-form-valid-color:#75b798; --bs-form-valid-border-color:#75b798;
  --bs-form-invalid-color:#ea868f; --bs-form-invalid-border-color:#ea868f;
}
[data-bs-theme="warm-dark"] {
  --bs-body-color:#9c9c9b; --bs-body-color-rgb:156,156,155;
  --bs-body-bg:#2c2c2c; --bs-body-bg-rgb:44,44,44;
  --bs-emphasis-color:#d4d4d3; --bs-emphasis-color-rgb:212,212,211;
  --bs-secondary-color:rgba(156, 156, 155, 0.75); --bs-secondary-color-rgb:156,156,155;
  --bs-secondary-bg:#272727; --bs-secondary-bg-rgb:39,39,39;
  --bs-tertiary-color:rgba(156, 156, 155, 0.5); --bs-tertiary-color-rgb:156,156,155;
  --bs-tertiary-bg:#272727; --bs-tertiary-bg-rgb:39,39,39;
  --bs-border-color:#3f3f3f; --bs-border-color-translucent:rgba(212, 212, 211, 0.15);
  --bs-link-color:#c8c8c7; --bs-link-hover-color:#e2e2e1;
  --bs-link-color-rgb:200,200,199; --bs-link-hover-color-rgb:226,226,225;
  --bs-highlight-color:#d4d4d3; --bs-highlight-bg:#4d4d4d;
}

.form-group{margin-bottom:1rem}
/* .lrow{
    display: flex;
    flex-wrap: wrap;
} */

[hidden]{
  display:none !important;
}
.hr{height:1px;border-top: 1px solid rgba(0,0,0,.125);}
.b{font-weight:bold}
.indent{margin:10px}
.indentV{margin:10px 0 10px 0}
.indentH{margin:0 10px 0 10px}
.fit{width:100%;height:100%}
.w100{width:100%}
.h100{height:100%}
.hView{height:calc(100% - 14px) !important}      /*14px*/
.hViewTab{height:100%}   /* tab item fills its carousel; real chrome height handled by the tab header layout */

.fa-xs:before {
    font-size: .75rem;
}

.treeTd{width:100%}
/* tree chevron (nodes with children): always points RIGHT, rotates DOWN when open; side via `treeChevronRight` */
.treeChevron{transition: transform .2s ease}
tr.treeExpanded .treeChevron{transform: rotate(90deg)} /* right -> down */
.treeTd > .treeChevron:first-child{margin-right:.4rem}
tr.treeChevronRight .treeChevron, tr.treeChevronRight .treeSpinner{margin-left:auto}
.treeIcon{margin-right:.5rem}
/* Bootstrap spinner-grow shown while lazy children load (treeBusy); hidden otherwise */
.treeTd .treeSpinner{display:none}
tr.treeBusy .treeChevron{display:none}
tr.treeBusy .treeSpinner{display:inline-block}
/* cell children are decorative: let clicks land on the TD so the row handler (expand / setView) runs */
.treeTd > *{pointer-events:none}
/* ...except the branch chevron: a distinct hit target so a chevron tap toggles expand/collapse while
   a label tap stays a TD row click (libraNav: label navigates the app, chevron expands sub-apps) */
.treeTd > .treeChevron{pointer-events:auto;cursor:pointer}
/* nav rail chevron (libraNav `_navFlyout`, rows that open a flyout): follows the label on the open
   rail; on the 50px COLLAPSED rail (`.clps`, table-layout fixed + overflow-x hidden) `margin-left:auto`
   pushed the 18px chevron to x 40.4..58.4 and the rail CUT it. Collapsed it is pinned 2.4px inside the
   rail at .65rem, i.e. right beside the icon (measured 37.2..47.6, 4.8px from the glyph). The <td>
   already carries position:relative from the component, so the pin stays inside its own row. */
.libra-nav-chev{margin-left:auto}
.clps td.treeTd > .libra-nav-chev,
.clps td.treeTd > .treeChevron{position:absolute;right:.15rem;top:50%;transform:translateY(-50%);margin:0;font-size:.65rem;line-height:1}


.table{ margin-bottom: 0;}

.btn{
    border-radius: 0;
/*     padding: 7px 7px 7px 7px; */
    border-width: 1px;
    border-style: solid;    
}

/* restore Bootstrap .btn-group corner rounding (the .btn override above flattens them).
   Use .btn-group > .btn (child combinator) so Bootstrap 5.3 corner-zeroing
   (.btn-group>.btn:nth-child(n+3){border-*-left-radius:0} etc, higher specificity)
   still flattens the middle/adjacent inner corners -> proper grouped pill look. */
.btn-group > .btn { border-radius: var(--bs-btn-border-radius, var(--bs-border-radius, 0.375rem)); }
/* round the reload button that sits beside the group (a direct child of the table host) */
libra-table > button.btn[slot=tbar] { border-radius: var(--bs-border-radius, 0.375rem); }

/* ONE pill for `.input-group.btn-group` (libraCombobox: field + clear / trigger / add).
   Two rules fought here: Bootstrap's input-group flattening deliberately EXCLUDES
   `:not(.dropdown-toggle)` (its menu opens under the button), and the `.btn-group > .btn` rule
   above re-rounds EVERY button — so a trigger in the middle of the group painted a rounded
   right edge. Corners are decided by POSITION only: flat inside, rounded on the first/last
   child, and the field uses the same radius as the buttons (4px vs 6px looked mismatched). */
.input-group.btn-group{ --libra-group-radius: var(--bs-border-radius, 0.375rem); flex-wrap: nowrap; }
.input-group.btn-group > *{ border-radius: 0; }
/* the field is matched by `libra-form input:not(...)` (0,2,1): name it explicitly so the group wins.
   THE LENS IS A `.input-group-text` (libra-search: `span.input-group-text` + field + clear) and it was
   the one first child left out, so the search box painted a square LEFT corner while its right one was
   round (owner, 2026-11-22). */
.input-group.btn-group > .form-control:first-child,
.input-group.btn-group > .input-group-text:first-child,
.input-group.btn-group > .btn:first-child{ border-top-left-radius: var(--libra-group-radius); border-bottom-left-radius: var(--libra-group-radius); }
.input-group.btn-group > .form-control:last-child,
.input-group.btn-group > .input-group-text:last-child,
.input-group.btn-group > .btn:last-child{ border-top-right-radius: var(--libra-group-radius); border-bottom-right-radius: var(--libra-group-radius); }

/* the STATUS badge (`Etc.template.statusBadge`, the status column of every table): a full-width
   button that keeps Bootstrap's radius — the `.btn` rule above flattens every button to 0, so the
   badge has to restore it explicitly. `w-100`/`d-inline-flex`/`gap-1` come from the template. */
/* Pill badges (PM and Dev home status strips) and muted captions.
   The badge markup carries `badge border` only; its colours come from these properties so the
   text never falls back to Bootstrap's `.badge { color: var(--bs-badge-color) }` = #fff on a
   transparent pill (= white on white). Declared as PLAIN selectors: the cards render outside the
   shadow roots, and a custom property inherits wherever the element lives. */
:root, [data-bs-theme] {
    --libra-pill-text: var(--bs-body-color);
    --libra-pill-bg: var(--bs-light, #f8f9fa);
    --libra-pill-border: var(--bs-border-color);
    --libra-muted-text: var(--bs-secondary-color, rgba(33, 37, 41, .75));
}
.badge.border { border-color: var(--libra-pill-border) !important; }

.libra-statusBadge{
    /* Bootstrap's button radius (`--bs-btn-border-radius` is 0.25rem in this theme, so the badge
       asks for the standard 0.375rem the btn-group already uses) */
    border-radius: var(--bs-border-radius, 0.375rem);
    font-weight: 500;
    white-space: nowrap;
}
.libra-statusBadge .libra-statusBadgeIcon{ font-size: .95em; line-height: 1; }

/* the PRIORITY badge (`Etc.template.priorityBadge`, the priority column of every table): the `.btn`
   rule above flattens EVERY button to 0, so the small icon button painted with square corners. Same
   restore as the status badge, same radius as Bootstrap's button — nothing else changes. */
.libra-priorityBadge{ border-radius: var(--bs-border-radius, 0.375rem); }

.btnBar{
    background-color: #f6f6f6;
    border-color: #e4e4e4;
}

*:focus {
    outline: none;
}
/* remove link hover underline */
/* text-decoration: none !important; */
a { text-decoration: none !important;}
/********* loader spinner begin *****************/
.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

*:not(:defined) { display: none;}
/********* loader spinner end *****************/

/*
body {
/* 	margin: 0; */
/* 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; */
/* 	font-size: 1rem; */
/* 	font-weight: 400; */
/* 	line-height: 1.5; */
/* 	color: #212529; */
/* 	text-align: left; */
/* 	background-color: #fff */


body {
    background-color: #f6f6f6 !important;
    color: var(--bs-body-color, #404040) !important;
/*      font-family: 'Roboto', sans-serif; */
/*          font-family: Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important; */
/*          height: 100%; */
         height: -moz-calc(100% + 2.0rem); /* Firefox */
        height: -webkit-calc(100% + 2.0rem); /* Chrome, Safari */
        height: calc(100% + 2.0rem); /* IE9+ and future browsers */

         /* height: -moz-calc(100% - 2rem); 
        height: -webkit-calc(100% - 2rem); 
        height: calc(100% - 2rem); IE9+ and future browsers */
}
html{
/*     height: calc(100%-40px); */
/*     height: 100%; */
    height: -moz-calc(100% - 2rem); /* Firefox */
    height: -webkit-calc(100% - 2rem); /* Chrome, Safari */
    height: calc(100% - 2rem); /* IE9+ and future browsers */
}
table{color: var(--bs-body-color) !important;}.view{
    height: -moz-calc(100% - 4rem)!important; /* Firefox */
    height: -webkit-calc(100% - 4rem)!important; /* Chrome, Safari */
    height: calc(100% - 4rem)!important; /* IE9+ and future browsers */
}

nav {
/*   width: 250px !important; */
  height:100% !important;
  min-height: 100% !important;
/*   padding:10px 10px 10px 10px !important; */
/*   color: #adb3b8 !important; */
}
.wmMenuView:empty{
/*     display:none !important */
    
}
.wmPocket:empty{display:none!important}
/*********************** panel splitters (WmOne) ***********************/
/* The grips are flex children of `wmMain` — between wmMenuView/wmView and between wmView/wmPocket —,
   not children of the panels (the tree slots only title/tbar, so a child of it never rendered). Their
   negative margin makes them sit inside the 7px gap the panels already have, so a grip costs no layout.
   INVISIBLE AT REST (owner, 2026-11-10: "the split is hide, when mouse over show it"): the 7px track is
   still there and still grabbable (cursor `col-resize`), the hairline appears only under the pointer, on
   keyboard focus, and while dragging. No `display`/`visibility` trick: that would kill the hit area. */
.wm-split{position:relative;background:transparent;outline:none}
.wm-split::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;margin-left:-.5px;
  background:var(--bs-border-color-translucent,rgba(128,128,128,.28));border-radius:2px;
  opacity:0;transition:opacity .12s ease,background-color .12s ease,width .12s ease,margin-left .12s ease}
.wm-split:hover::before,.wm-split:focus-visible::before,.wm-split.wm-split-drag::before{
  opacity:1;background:var(--libra-nav-active-bg,var(--bs-primary));width:2px;margin-left:-1px}
.wm-split:focus{outline:none}
/*********************** table filter panel rows (`Gui._tableFilters`) ***********************/
/* ONE line per column: the toggle/chip, the name, the rule and the value. The rows used to be two
   stacked lines each (~70px), so a 47-column table produced a 3200px block and the fields were never
   on screen (improvement 25: `i do not see the filters in tree`). */
.le-frow{display:flex;align-items:center;gap:.25rem;padding:.15rem .25rem !important;min-width:0}
.le-frow>div{display:flex;align-items:center;gap:.25rem;min-width:0}
.le-frow>div:first-child{flex:0 0 5.5rem;min-width:0}
.le-frow .le-name{flex:1 1 auto;min-width:0}
.le-frow .le-tog{flex:0 0 auto;padding:.1rem .3rem;font-size:.65rem;line-height:1.1}
.le-frow .le-rule{flex:0 0 3.6rem;width:3.6rem;padding-top:.1rem;padding-bottom:.1rem}
.le-frow .le-val{flex:1 1 3rem;min-width:0;padding-top:.1rem;padding-bottom:.1rem}
.le-frow .le-sw{flex:0 0 auto}
.le-frow .form-control-sm,.le-frow .form-select-sm{height:1.7rem;font-size:.75rem}
.icon{width:20px}
.cp{cursor:pointer;}
.w1{width:1rem}
tbody[data-xtype=tree] tr[data-loid]:hover{background-color: var(--libra-tree-hover-bg, var(--libra-nav-hover-bg, var(--bs-tertiary-bg)))}
tbody[data-xtype=tree] tr[data-loid]:hover td{background-color: var(--libra-tree-hover-bg, var(--libra-nav-hover-bg, var(--bs-tertiary-bg))) !important;}
tbody[data-xtype=table] tr[data-loid]:hover{background-color: var(--libra-tree-hover-bg, var(--libra-nav-hover-bg, var(--bs-tertiary-bg)))}
tbody[data-xtype=table] tr[data-loid]:hover td{background-color: var(--libra-tree-hover-bg, var(--libra-nav-hover-bg, var(--bs-tertiary-bg))) !important;}
/* libra-table[data-sorting] tr th:hover{background-color:#ddedff} */



.fa{font-family: Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;}
.fa:before{font-family: FontAwesome;}
.faTree:before{margin-right: 5px !important;color: var(--bs-secondary-color, #404040)}/*35baf6*/
.faTree{color: var(--bs-body-color, #404040)}
/* .faNav:before{font-size:24px;} */
.famr:before{margin-right:18px;display: inline-block;width:16px;text-align: center;}
/*.mr:before{
    padding-right:6px !important;
}*/
/*change from reboot bootstrap*/
/*nav td{
    color: #adb3b8 !important;
    padding: 1.25rem !important;
    }
nav td:hover {background-color: #3c4854;color:#dfe4e8 !important;}
.bg-primary{
    background-color: #35baf6 !important;
    color:#fff !important;
}
nav [data-selected]{
background-color: #475360 !important;
}*/

.libraShadow{
	 box-shadow: black 0px 0px 10px -6px !important; 
/*          box-shadow: 0 .2rem 0.5rem rgba(0,0,0,.15)!important; */

	/* box-shadow:#ddd 0px 0px 10px -6px !important; right: auto; left: 260px; top: 10px; */
	/* box-shadow: 0px 0px 15px 5px rgba(34,34,34,0.2); 
	box-shadow: 0px 0px 10px -10px rgba(34,34,34,0.2);*/
	/* box-shadow: 1px 1px 3px 2px rgba(0, 0, 0, 0.2); */
}

.panel{
    display:flex;
    flex-direction: column;

}
.bg-primary{
    background-color: #35baf6 !important;
    color:#fff !important;
}
/*********************** menu begin ***********************/
.menu li:hover > ul.dropdown-menu {
    display: block;
}
.dropdown-submenu {
    position:relative;
}
.dropdown-submenu>.dropdown-menu {
    top:0;
    left:100%;
    margin-top:-6px;
}

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
    text-decoration: underline;
    transform: rotate(-90deg);
} 
/*********************** menu end ***********************/


/*********************** bs sidebars begin  ***********************/

/* body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
} */

/* html {
  height: -webkit-fill-available;
} */

/* main {
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
} */

.dropdown-toggle { outline: 0; }

.btn-toggle {
  padding: .25rem .5rem;
  font-weight: 600;
  color: var(--bs-emphasis-color);
  background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
  background-color: var(--bs-tertiary-bg);
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

[data-bs-theme="cool-dark"] .btn-toggle::before,
[data-bs-theme="warm-dark"] .btn-toggle::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: var(--bs-tertiary-bg);
}

.scrollarea {
  overflow-y: auto;
}
/*********************** bs sidebars begin end ***********************/


/*********************** libra terminal begin ***********************/
/* A terminal view IS a wmView carousel item, so Bootstrap owns its display: `.carousel-item.active
   {display:block}` (two classes) beat `.terminal{display:flex}` (one) and the screen collapsed to
   its 120px content height instead of filling the view; an INACTIVE terminal kept `display:flex`
   and stayed painted over the next view. These two rules (2 and 3 classes) put both back. */
.carousel-item.terminal{ display:none; }
.carousel-item.terminal.active{ display:flex; }
.terminal{
    display:flex;
    flex-direction:column;
    /* 100%, not `calc(100% - 14px)`: the 14px gutter belongs to the wmView carousel (`.hView`),
       so subtracting it AGAIN left the terminal 28px short of the view and never "height 100%". */
    height:100% !important;
    background:#1e1e1e;
    color:#e6e6e6;
    border:1px solid #3a3a3a;
    border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,.4);
    overflow:hidden;
    font-family:'Ubuntu Mono','DejaVu Sans Mono',Menlo,Consolas,monospace;
    font-size:13px;
    line-height:1.45;
}
.terminal-titlebar{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    background:#2b2b2b;
    border-bottom:1px solid #3a3a3a;
    flex:0 0 auto;
    user-select:none;
}
.terminal-dots{ display:flex; gap:6px; }
.terminal-dots i{ width:12px; height:12px; border-radius:50%; display:inline-block; }
.terminal-red{ background:#ff5f56; }
.terminal-yellow{ background:#ffbd2e; }
.terminal-green{ background:#27c93f; }
.terminal-title{ color:#8a8a8a; font-size:12px; flex:1; text-align:center; }
.terminal-cmd{ color:#5a5a5a; font-size:11px; }
.terminal-screen{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:0;
    background:#0f0f0f;
}
.terminal-output{
    flex:1 1 auto;
    overflow-y:auto;
    padding:10px 12px;
    min-height:120px;
    max-height:calc(100% - 44px);
    white-space:pre-wrap;
    word-break:break-word;
}
.terminal-line{
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 12px;
    background:#0f0f0f;
    border-top:1px solid #262626;
    flex:0 0 auto;
}
.terminal-prompt{
    white-space:nowrap;
    font-weight:bold;
}
.terminal-user{ color:#27c93f; }
.terminal-host{ color:#4ea1ff; }
.terminal-path{ color:#e6a23c; }
.terminal-input{
    flex:1;
    background:transparent;
    border:0;
    outline:0;
    color:#e6e6e6;
    font-family:inherit;
    font-size:13px;
    caret-color:#27c93f;
}
.terminal-line-cmd{
    color:#e6e6e6;
    margin:2px 0;
}
.terminal-prompt-inline{ color:#27c93f; font-weight:bold; }
.terminal-cmd-name{ color:#4ea1ff; margin-right:6px; }
.terminal-text{ color:#e6e6e6; }
.terminal-error{ color:#ff5f56; }
.terminal-warn{ color:#ffbd2e; }
.terminal-debug{ color:#4ea1ff; }
.terminal-res{ color:#27c93f; }
/* A view opened from the prompt renders in ONE FIXED BOX per command (the terminal stacks them):
   the box owns the geometry, so a nested table/form (`h100`/`w100`) has a real height to fill and
   scrolls INSIDE the box instead of stretching the terminal. */
.terminal-view{
    /* a custom element is `display:inline` until told otherwise: without a real box the `height`
       computes and paints nothing (the view grew the pane instead of scrolling inside its box) */
    display:flex;
    flex-direction:column;
    flex:0 0 auto;
    width:100%;
    height:420px;
    max-height:60vh;
    overflow:auto;
    border-top:1px solid #262626;
    background:#161616;
}
.terminal-view > * { width:100%; height:100%; background:#161616 !important; }
/*********************** libra terminal end ***********************/

/*********************** libra form begin ***********************/
libra-form{
    display:block;
    width:100%;
    height:auto;
    overflow:visible;
}
libra-form form{
    display:flex;
    flex-direction:column;
    width:100%;
    margin:0;
    overflow:visible;
}
libra-form fieldset{
    display:flex;
    flex-direction:column;
    width:100%;
    margin:0;
    overflow:visible;
}
libra-form .form-group.row,
libra-form .form-group{
    flex-wrap:nowrap;
    width:100%;
    margin-right:0;
    margin-left:0;
    margin-bottom:1rem;
}
/* THE COMPOSER'S GRID WRAPPER (`compose`/`composeTabs` append a `.row` of `col-*` cells). Bootstrap's
   `.row` carries NEGATIVE horizontal margins (`-gutter/2`), which only make sense inside a padded
   `.container`. The form body and a tab pane have NO padding, so the wrapper was 2×gutter/2 wider than
   its parent and the pane (`overflow:auto`) painted a HORIZONTAL SCROLLBAR — the form scrolled sideways
   by 16px at `g-3`. The gutter lives on the CELLS (their own padding), so the negative margin goes.
   Kept OUT of the `.form-group` block above: `flex-wrap:nowrap` there would break the 2-column grid. */
libra-form .row{
    margin-right:0;
    margin-left:0;
}
libra-form .card-body{
    width:100%;
    height:auto;
    overflow:visible;
    padding:1.25rem;
}
libra-form .col-sm-10,
libra-form .col-sm-2,
libra-form .col-form-label{
    flex:1 1 auto;
    max-width:none;
}
/* ---- form composer (Etc.form): grid cells use Bootstrap cols; stacked/floating fields + sections ---- */
libra-form .libra-field-stack{
    flex-direction:column;
    align-items:stretch;
}
libra-form .libra-field-stack > .form-label{
    margin-bottom:.25rem;
    font-weight:500;
}
libra-form .libra-field-stack > .w-100{
    flex:1 1 100%;
    max-width:100%;
}
libra-form .libra-field-float{
    display:block;
}
libra-form .libra-field-float > .w-100,
libra-form .libra-field-float .form-floating{
    width:100%;
}
libra-form .libra-form-section{
    border:0;
    margin:0 0 1rem;
    padding:0;
    min-width:0;
}
libra-form .libra-form-legend{
    font-size:1rem;
    font-weight:600;
    margin:0 0 .5rem;
    padding:0;
}
libra-form input:not([type=checkbox]):not([type=radio]),
libra-form select,
libra-form textarea{
    background-color:#ffffff !important;
    color: var(--bs-body-color, #212529) !important;
    border:1px solid #ced4da !important;
    border-radius:4px;
    padding:.375rem .75rem;
    width:100%;
    box-sizing:border-box;
}
/* a check/radio is a BOX, not a field: `width:100%` turned every switch into a flat bar with no tick
   (Bootstrap's `.form-check-input` wants `1em`). Size and padding are Bootstrap's, untouched here. */
libra-form input[type=checkbox],
libra-form input[type=radio]{
    width:1em;
    height:1em;
    padding:0;
    box-sizing:content-box;
}
libra-form input:focus,
libra-form select:focus,
libra-form textarea:focus{
    border-color:#35baf6 !important;
    box-shadow:0 0 0 .2rem rgba(53,186,246,.25);
    outline:0;
}
libra-form input[disabled],
libra-form fieldset[disabled] input,
libra-form fieldset[disabled] select,
libra-form fieldset[disabled] textarea{
    background-color:#e9ecef !important;
    color: var(--bs-secondary-color, #495057) !important;
    opacity:1;
}
libra-form .flexbtns{
    display:flex;
    gap:.5rem;
    width:100%;
    margin-top:1rem;
}
/*********************** libra form end ***********************/

/*********************** dark theme overrides (data-bs-theme=cool-dark|warm-dark) ***********************/
[data-bs-theme="cool-dark"] body { background-color: #161719 !important; color: #e9ecef !important; }
[data-bs-theme="warm-dark"] body { background-color: #2c2c2c !important; color: #9c9c9b !important; }

/*********************** panel surfaces: a theme TOKEN (reaches shadow roots) ***********************/
/* BS components default their bg var to --bs-body-bg (page #2c2c2c). Panels must be #272727, but a
   `[data-bs-theme] .card` selector cannot cross the shadow boundary and BS declares the var ON the
   component, shadowing any root value. So set the var on the PLAIN component selector (libra.css is
   @imported into every shadow root) reading a custom property that DOES inherit per theme. */
.card          { --bs-card-bg: var(--libra-panel-bg, var(--bs-body-bg)); }
.list-group    { --bs-list-group-bg: var(--libra-panel-bg, var(--bs-body-bg)); }
/* selected list row (libraList adds `active`): the SAME surface as a selected nav/tree row
   (--libra-nav-active-bg), not Bootstrap's #0d6efd blue. Declared on the component selector so it
   reaches every shadow root that @imports libra.css. */
.list-group-item.active {
  --bs-list-group-active-bg: var(--libra-nav-active-bg, var(--bs-list-group-bg));
  --bs-list-group-active-border-color: var(--libra-nav-active-bg, var(--bs-list-group-border-color));
  --bs-list-group-active-color: var(--libra-nav-active-text, var(--bs-list-group-color));
}
.dropdown-menu { --bs-dropdown-bg: var(--libra-panel-bg, var(--bs-body-bg)); }
.modal-content { --bs-modal-bg: var(--libra-panel-bg, var(--bs-body-bg)); }
.offcanvas     { --bs-offcanvas-bg: var(--libra-panel-bg, var(--bs-body-bg)); }
.accordion     { --bs-accordion-bg: var(--libra-panel-bg, var(--bs-body-bg)); }
.card-header   { --bs-card-cap-bg: var(--libra-panel-bg, rgba(var(--bs-body-color-rgb), .03)); }
/* range slider rail must contrast with the panel bg (BS default = --bs-secondary-bg) */
.form-range::-webkit-slider-runnable-track { background-color: var(--libra-range-track, var(--bs-secondary-bg)); }
.form-range::-moz-range-track { background-color: var(--libra-range-track, var(--bs-secondary-bg)); }
[data-bs-theme="cool-dark"] .faTree,
[data-bs-theme="warm-dark"] .faTree { color: var(--bs-body-color); }
[data-bs-theme="cool-dark"] .faTree:before { color: #8a929b; }
[data-bs-theme="warm-dark"] .faTree:before { color: #8f8f8e; }
[data-bs-theme="cool-dark"] table,
[data-bs-theme="warm-dark"] table { color: var(--bs-body-color) !important; }
[data-bs-theme="cool-dark"] .btnBar { background-color: #212529 !important; }
[data-bs-theme="warm-dark"] .btnBar { background-color: #272727 !important; }
[data-bs-theme="cool-dark"] libra-form input,
[data-bs-theme="cool-dark"] libra-form select,
[data-bs-theme="cool-dark"] libra-form textarea { background-color: #212529 !important; color: #e9ecef !important; border-color: #495057 !important; }
[data-bs-theme="warm-dark"] libra-form input,
[data-bs-theme="warm-dark"] libra-form select,
[data-bs-theme="warm-dark"] libra-form textarea { background-color: #272727 !important; color: #9c9c9b !important; border-color: #3f3f3f !important; }

/*********************** libra table width/height fit (configurable via data-*) ***********************/
/* Fit-to-width (default): table fills its container, columns compress/truncate, never collapses to 0. */
.libra-table.fx-fit, libra-table.fx-fit { width:100%; min-width:0; }
libra-table.fx-fit > table { width:100%; table-layout:auto; }
/* Intrinsic width + horizontal scroll (opt-in via data-width="scroll"): keep natural column widths. */
libra-table.fx-scroll { width:100%; min-width:100px; overflow-x:auto; }
/* Records-only autoscroll: sticky header, tbody is the only vertical scroll region. */
libra-table.fx-fit, libra-table.fx-scroll, libra-table { display:flex; flex-direction:column; height:100%; min-height:0; }
libra-table.fx-fit > table, libra-table.fx-scroll > table, libra-table > table { display:flex; flex-direction:column; height:100%; min-height:0; margin-bottom:0; }
libra-table.fx-fit thead, libra-table.fx-scroll thead, libra-table thead { display:block; position:sticky; top:0; z-index:2; }
libra-table.fx-fit tbody, libra-table.fx-scroll tbody, libra-table tbody { display:block; overflow-y:auto; flex:1 1 auto; min-height:0; }
libra-table.fx-fit tbody tr, libra-table.fx-scroll tbody tr, libra-table tbody tr { height:auto; }
/* Keep the row height standard and allow horizontal scroll on the inner table when wide. */
libra-table.fx-scroll { overflow-x:auto; }

/*********************** narrow-viewport chrome collapse (table gets real width/height) ***********************/
@media (max-width: 575.98px) {
  /* collapse the fixed 200px sidebar + wmMenuView so the table fills the viewport width */
  #sidebarMenu, nav#sidebarMenu { display:none !important; }
  libra-carousel.wmMenuView, .wmMenuView, [ref="wmMenuView"] { flex: 0 0 0 !important; width:0 !important; min-width:0 !important; display:none !important; }
  .d-flex.flex-row.fit { flex-wrap:wrap; }
  /* give the main/table track a real width so the table doesn't collapse to 0 */
  .d-flex.flex-row.fit > div.fit, .d-flex.flex-row.fit > main.fx-responsive, .d-flex.flex-row.fit > libra-carousel.wmView, .d-flex.flex-row.fit > .wmView { flex:1 1 100% !important; min-width:0; width:100%; }
}

/*********************** libra-tab: flex column ONLY on the active tab ***********************/
/* Scope the flex/overflow to the ACTIVE carousel item. Bootstrap hides inactive items with
   .carousel-item{display:none} (+ .active{display:block}); applying display:flex to every libra-tab
   item kept the inactive (e.g. the table behind the form) visible, so table+form appeared side-by-side.
   Restricting to .active lets inactive tabs hide (one tab visible at a time -> carousel divides). */
libra-tab.carousel-item.active, libra-tab.carousel-item.active[role="listbox"] { display:flex !important; flex-direction:column; overflow:hidden !important; }
libra-tab.carousel-item.active > libra-container.nav-tabs, libra-tab.carousel-item.active > .nav-tabs { flex:0 0 auto; min-height:0; }
libra-tab.carousel-item.active > libra-table { flex:1 1 auto; min-height:0; overflow-y:auto; }

/*********************** libra-tab: passive header, pane colour, full height (improvement 38) ***********************/
/* A header and a pane of `<libra-tab>` are its LIGHT children, so the sheet that paints them is the one of the
   tree they live in (inside a form that is the form's shadow root, which imports this file too). These rules are
   PLAIN on purpose: the form's constructed sheet copies only `libra-form …` rules and DROPS the colour ones
   (`libraForm._styleSheet`), so a colour declared through `libra-form` would never arrive. */
/* PASSIVE = the look a passive header already had under the pointer (Bootstrap's
   `--bs-nav-tabs-link-hover-border-color` box); the POINTER then takes the menu row's own hover surface, so a
   header reacts like a menu node (`libra-tree`/`libra-table` rows use the same chain). Measured 2026-11-21:
   rest = transparent border + link blue, hover = #e9ecef/#e9ecef/#dee2e6 border, no background. */
libra-tab > libra-container.nav-tabs > .nav-item.nav-link:not(.active){
    border-color: var(--bs-nav-tabs-link-hover-border-color, #e9ecef #e9ecef #dee2e6);
    color: var(--bs-nav-link-hover-color, #0a58ca);
}
libra-tab > libra-container.nav-tabs > .nav-item.nav-link:not(.active):hover{
    background-color: var(--libra-tree-hover-bg, var(--libra-nav-hover-bg, var(--bs-tertiary-bg)));
}
/* NO LINE BETWEEN HEADERS AND PANE: the strip's hairline takes the ACTIVE header's own background, which is also
   the pane's background, so the two surfaces are one and the border disappears into them. */
libra-tab > libra-container.nav-tabs{ border-bottom-color: var(--bs-nav-tabs-link-active-bg, var(--bs-body-bg)) }
/* THE PANE IS A CARD WITH THE HEADER'S OWN BORDER (improvement 64): 1 px of the same colour a tab header is drawn
   with (`--bs-nav-tabs-border-color`, the passive header's bottom hairline), the two BOTTOM corners rounded with the
   header's own radius (`--bs-nav-tabs-border-radius`, 6 px), and NO top edge: the strip above is the top of the box
   (its own bottom hairline is painted in the pane's colour), so a body and its headers are one surface with one
   outline, never two lines one pixel apart.
   THE GAP BETWEEN THE HEADERS AND THE FIRST ELEMENT is the pane's own top padding — never a margin on the first
   child, which a `.row` cancels with its negative gutter (measured 2026-11-21: the first field row started 16 px
   ABOVE the pane's top edge, i.e. on the header hairline). */
libra-tab > libra-container.tabBody{
    background-color: var(--bs-nav-tabs-link-active-bg, var(--bs-body-bg));
    border: var(--bs-nav-tabs-border-width, 1px) solid var(--bs-nav-tabs-border-color, #dee2e6);
    border-top: 0;
    border-radius: 0 0 var(--bs-nav-tabs-border-radius, 0.375rem) var(--bs-nav-tabs-border-radius, 0.375rem);
    padding: 1.25rem;
}
/* THE TAB IS 100% OF THE VIEW IT IS MOUNTED IN (owner: "the height of tab must be 100% in wmView"). A form whose
   body is ONE tab (the composer's `composeTabs`) keeps its toolbar at its own height, the body takes the rest and
   the tab takes the body, so the pane scrolls inside the view: the dead space under the last field is gone.
   Measured 2026-11-21: tab 520 of 829 in the wmView, 309 px of empty card below it.
   NO ATTRIBUTE IN THESE SELECTORS: the block carried `libra-form[data-libra-xtype="form"] …` until 2026-11-21 and
   on the live form NONE of the chain took effect (body 20 px of padding, fieldset and tab at their content height,
   pane with no gutter); written bare, every one of them lands (`padding:0`, `flex:1`, the pane's 1.25rem). The
   attribute was only scoping, and the chain does that job by itself: the constructed sheet is adopted ONLY inside
   a form's own shadow roots, so `:host > form.card-body` can match nothing but that form. */
/* ONLY THE ACTIVE SLIDE. `active` is IN the selector on purpose: the host's display is decided at DOCUMENT level
   (`libra-form{display:block}` here, and Bootstrap's `.carousel-item.active{display:block}` at (0,2,0)), and a
   shadow tree's `:host` rule NEVER beats a document rule for the host — so the flex column must be written HERE,
   at (0,2,1), which is also what it takes to outrank Bootstrap's `.carousel-item.active`. Measured 2026-11-21:
   with `libra-form.carousel-item` (0,1,1) the form stayed `block`, the body never stretched and the tab ended
   285 px above the bottom of the wmView.
   Without the `:not(.active)` twin every form slide stays painted: measured 2026-11-21, after saving an account the
   add-form and the `libraList` of accounts were visible TOGETHER (the carousel had deselected the form — `active`
   gone — and its `display:flex` kept it on screen). */
libra-form.carousel-item:not(.active){ display:none }
libra-form.carousel-item.active{ display:flex; flex-direction:column }
libra-form > libra-container{ flex:0 0 auto }
libra-form > form.card-body{ flex:1 1 auto; min-height:0 }
/* the pane's own 1.25rem gutter replaces the card body's padding, so the strip starts where the view starts
   (7 px from wmMenuView, the distance menuNav keeps from menuApp) and the tab runs from the view's first pixel
   to its last: the FIELDS keep their inset because the pane carries it. */
libra-form > form.card-body:has(> fieldset > libra-tab){ padding:0 }
libra-form > form.card-body > fieldset{ flex:1 1 auto; min-height:0 }
libra-form > form.card-body > fieldset > libra-tab{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0 }
libra-form > form.card-body > fieldset > libra-tab > .nav-tabs{ flex:0 0 auto }
libra-form > form.card-body > fieldset > libra-tab > .tabBody{
    flex:1 1 auto; min-height:0; height:auto;
}

/*********************** libra-table host: hidden overflow (records scroll only) ***********************/
/* The <libra-table> host carries Bootstrap .overflow-auto{overflow:auto!important}; a bare "libra-table"
   selector loses the !important/specificity tie, so the host shows a phantom scrollbar. Force overflow
   hidden at the host (with enough specificity to beat Bootstrap) so ONLY the records (tbody) scroll. */
libra-table.fx-fit.carousel-item, libra-table.fx-scroll.carousel-item { overflow:hidden !important; }


/*********************** libra-table toolbar stays auto-width (not stretched by flex host) ***********************/
/* The <libra-table> host is a flex column (align-items:stretch), so the slotted toolbar container
   (libra-container[slot=tbar]) stretched to full width and its .btn-group buttons flex-grew to fill,
   producing oversized buttons. Reset it to auto width so buttons keep their compact size as before. */
libra-table.fx-fit.carousel-item > libra-container[slot=tbar],
libra-table.fx-scroll.carousel-item > libra-container[slot=tbar],
libra-container[slot=tbar] { align-self:flex-start !important; width:auto !important; flex:0 0 auto !important; min-width:0; }
libra-table.carousel-item:not(.active) { display:none !important; }
libra-table.carousel-item.active { display:flex !important; }
.libra-tooltip{ position:absolute; z-index:65000; padding:4px 8px; border-radius:4px; background:#212529; color:#f8f9fa; font-size:12px; white-space:nowrap; pointer-events:none; box-shadow:0 2px 8px rgba(0,0,0,.35) }

.libra-cardProduct .card{ transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease }
.libra-cardProduct .card:hover{ transform: translateY(-4px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.15) !important; border-color: var(--bs-primary) }
.libra-cardProduct .card-title.pricing-card-title{ font-size: 2.5rem }

.libra-cardProduct .btn{ border-radius: var(--bs-btn-border-radius, .375rem) }
