body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
    font-family: 'Open Sans', sans-serif;
}

.clear {
    clear:both;
}


/*
 */
.field-inline {
    padding: 25px 0 0 0;
}


.select2-selection__rendered {
    margin-top: 0 !important;
}






ul.sidebar-menu li.header {
    margin-top: 20px;
}
ul.sidebar-menu .menu-icon {
    display: none;
}

@media (min-width:768px){
    .sidebar-mini.sidebar-collapse .sidebar-menu .menu-icon {
        display: inline-block;
        width: 20px;
        height: 20px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        background: #eee;
        text-align: center;
        line-height: 20px;
        font-style: normal;
        font-weight: bold;
        margin-left: -3px;
        color: #666;
    }
}

.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>span:not(.pull-right),
.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>.treeview-menu {
    width: 250px;
    background: #fff;
}
.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>.pull-right-container {
    visibility: hidden;
}







.control-sidebar-bg, .control-sidebar {
    width: 350px;
    right: -350px;
}

.control-sidebar-light .nav-tabs.control-sidebar-tabs>li.active>a {
    background: #e8ecf4;
    color: #444;
    border-bottom: 1px solid #d2d6de;
}
.control-sidebar-light .nav-tabs.control-sidebar-tabs>li.active>a, .control-sidebar-light .nav-tabs.control-sidebar-tabs>li.active>a:hover, .control-sidebar-light .nav-tabs.control-sidebar-tabs>li.active>a:focus, .control-sidebar-light .nav-tabs.control-sidebar-tabs>li.active>a:active {
    background: #e8ecf4;
    color: #444;
}
.control-sidebar-menu li {
    padding: 5px 0;
}
.control-sidebar-menu .menu-info {
    position: relative;
}
.control-sidebar-menu .menu-info .detail-btn {
    position: absolute;
    top: 0;
    right: 0;
}

.control-sidebar-menu .menu-info>.control-sidebar-subheading {
    margin-bottom: 4px;
}



.table-responsive th, .table-responsive td {
    white-space:nowrap;
}
/* Backpack 4.1 (CoreUI) sidebar: the one-letter .menu-icon markers show only when the sidebar is minimized, as the
   AdminLTE sidebar did; the aside panel (activity logs) keeps its old look */
.sidebar .nav-link .menu-icon { display: none; }
.sidebar-minimized .sidebar .nav-link .menu-icon { display: inline-block; font-style: normal; font-weight: bold; }
.aside-menu .control-sidebar-heading { font-size: 14px; }
.aside-menu .list-group-item .menu-icon { float: left; margin-right: 8px; }

/* ---- Bootstrap 3 / AdminLTE class names the app's own views and field definitions still use (the theme is
   Bootstrap 4). Values are Bootstrap 3.3.7's and AdminLTE 2's. ---- */
@media print {
    .hidden-print { display: none !important; }
    .main-header, .main-sidebar, .main-footer, .aside-menu { display: none !important; }
    .content-wrapper { margin-left: 0 !important; margin-right: 0 !important; }
    body, .content-wrapper { background: #fff !important; }
}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    position: relative; width: 100%; padding-right: 15px; padding-left: 15px;
}
/* widest first, as Bootstrap 3 listed them: a field carrying two widths ("col-xs-4 col-xs-10") takes the narrower one, as in production */
.col-xs-12 { flex: 0 0 100%; max-width: 100%; }
.col-xs-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-xs-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-xs-9 { flex: 0 0 75%; max-width: 75%; }
.col-xs-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-xs-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-xs-6 { flex: 0 0 50%; max-width: 50%; }
.col-xs-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-xs-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-xs-3 { flex: 0 0 25%; max-width: 25%; }
.col-xs-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-xs-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.display-flex-wrap { display: flex; flex-wrap: wrap; }
.m-t-10 { margin-top: 10px; }
.btn-xs { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.btn-default { color: #333; background-color: #fff; border-color: #ccc; }
.btn-default:hover, .btn-default:focus, .btn-default.active { color: #333; background-color: #e6e6e6; border-color: #adadad; }
.label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; }
.label-default { background-color: #777; }
.label-primary { background-color: #337ab7; }
.label-success { background-color: #5cb85c; }
.label-info { background-color: #5bc0de; }
.label-warning { background-color: #f0ad4e; }
.label-danger { background-color: #d9534f; }
.help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; }
.has-error .help-block, .has-error .control-label, .has-error label { color: #a94442; }
.has-error .form-control { border-color: #a94442; }
.checkbox, .radio { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; }
.checkbox label, .radio label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: 400; cursor: pointer; }
.checkbox input[type="checkbox"], .radio input[type="radio"] { position: absolute; margin-left: -20px; margin-top: 4px; }
.caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.bg-gray { color: #000; background-color: #d2d6de !important; }
.bg-red { color: #fff !important; background-color: #dd4b39 !important; }
.text-red { color: #dd4b39 !important; }
@media (min-width: 768px) {
    .form-horizontal .control-label { padding-top: 7px; margin-bottom: 0; text-align: right; }
}
/* list tables as dense as the Backpack 3 lists (8px cells; the theme's 12px made the responsive table move columns
   into the row's detail view at window widths where they used to fit) */
table[id^="crudTable"].table > thead > tr > th, table[id^="crudTable"].table > tbody > tr > td, table[id^="crudTable"].table > tfoot > tr > th { padding: 8px; }
@media print { .breadcrumb { display: none !important; } }
/* page and list-card side padding as on the Backpack 3 pages (AdminLTE .content 15px, .box-body 10px) */
main.content-wrapper > .container-fluid { padding-left: 15px; padding-right: 15px; }
.card > .card-body.overflow-hidden { padding: 10px; }
/* list line buttons the size of Backpack 3's (btn-xs); the theme's larger ones widened the Actions column */
table[id^="crudTable"] td .btn.btn-sm { padding: 1px 5px; font-size: 12px; line-height: 1.5; }

/* ---- v12: header, sidebar user panel, page title and breadcrumb as production's AdminLTE pages (skin black-light) ---- */
.app-header.main-header { background: #fff !important; border-bottom: 1px solid #d2d6de !important; height: 51px !important; min-height: 51px !important; flex: 0 0 51px !important; padding: 0; flex-wrap: nowrap; }
.app-header.main-header .navbar-brand { display: block; position: static; top: auto; left: auto; margin: 0; width: 225px; height: 50px; padding: 0 15px; line-height: 50px; text-align: center; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 20px; font-weight: 300; color: #333 !important; opacity: 1; background: #fff; border-right: 1px solid #d2d6de; }
.app-header.main-header .navbar-brand b { font-weight: 400; }
.app-header.main-header .sidebar-toggler.d-md-down-none { width: 44px; height: 50px; margin: 0; padding: 0; border: 0; border-right: 1px solid #d2d6de; border-radius: 0; }
.app-header.main-header .sidebar-toggler .navbar-toggler-icon { width: 15px; height: 15px; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23333' stroke-width='4' stroke-linecap='butt' d='M3 7h24M3 15h24M3 23h24'/%3E%3C/svg%3E"); }
.app-header.main-header .navbar-nav.ml-auto { align-self: stretch; margin-right: 0; }
.app-header.main-header .navbar-nav.ml-auto > .nav-item { min-width: 0; margin: 0; text-align: left; }
.app-header.main-header .navbar-nav.ml-auto > .nav-item > .nav-link { display: block; height: 50px; padding: 15px; line-height: 20px; color: #333; border-left: 1px solid #d2d6de; }
.app-header.main-header .navbar-nav.ml-auto > .nav-item > .nav-link:hover { background: #f6f6f6; color: #333; }
.user-panel { display: none; } /* the menu items are also drawn on the dashboard; the panel belongs to the sidebar only */
.sidebar .nav > li.user-panel { display: flex; align-items: center; padding: 10px 0 20px; }
.sidebar .user-panel img { width: 45px; height: 45px; border-radius: 50%; }
.sidebar .user-panel .info { padding-left: 15px; line-height: 1; }
.sidebar .user-panel .info a { color: #444; }
main.content-wrapper > .content-header { position: relative; padding: 27px 15px 0; }
main.content-wrapper > .content-header > h1 { margin: 0; font-size: 32px; font-weight: 200; line-height: 1.1; color: #333; }
main.content-wrapper > .content-header > h1 small { font-size: 15px; font-weight: 300; color: #777; }
main.content-wrapper > .content-header > .breadcrumb { position: absolute; top: -3px; right: 10px; margin: 0; padding: 7px 5px; background: transparent; font-size: 12px; }
main.content-wrapper > .content-header > .breadcrumb a { color: #444; }
main.content-wrapper > .content-header > .breadcrumb > .breadcrumb-item + .breadcrumb-item { padding-left: 0; }
main.content-wrapper > .content-header > .breadcrumb > .breadcrumb-item + .breadcrumb-item::before { content: ">\00a0"; padding: 0 5px; color: #ccc; }
/* Bootstrap 3 rows were blocks: a <form> placed straight in a .row took the full width. In Bootstrap 4's flex row it shrinks
   to its content, so a wide table pushed the card (and its right-aligned buttons) past the screen (production plan page). */
.row > form:not([class*="col-"]) { flex: 0 0 100%; max-width: 100%; }

/* ---- look A (2026-11-21): production's AdminLTE "black-light" look, refined. Spec: docs/superpowers/specs/2026-11-21-erp-look-a-design.md
   Colours: primary #3c8dbc (hover/border #367fa9), links #2f78ad, page #ecf0f5, menu #f9fafc. Behaviour unchanged; print rules above untouched. ---- */
body.app, .app-body, main.content-wrapper { background: #ecf0f5; }
body.app { color: #333; }
a { color: #2f78ad; }
a:hover { color: #225d88; }
.text-primary { color: #2f78ad !important; }
.bg-primary, .badge-primary { background-color: #3c8dbc !important; color: #fff; }
.btn-primary { color: #fff; background-color: #3c8dbc; border-color: #367fa9; }
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle { color: #fff; background-color: #367fa9; border-color: #2e6d91; }
.btn-primary:focus, .btn-primary.focus, .btn-default:focus, .btn-secondary:focus { box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.3); }
.btn-outline-primary { color: #2f78ad; border-color: #3c8dbc; }
.btn-outline-primary:hover { color: #fff; background-color: #3c8dbc; border-color: #367fa9; }
.btn-link { color: #2f78ad; }
main.content-wrapper .btn { border-radius: 3px; font-size: 13px; font-weight: 600; }
.btn-secondary, .btn-default { color: #444; background-color: #fff; border-color: #cfd4da; }
.btn-secondary:hover, .btn-default:hover { color: #222; background-color: #f4f6f8; border-color: #b9c0c8; }
.page-link { color: #2f78ad; border-color: #d5dae0; }
.page-item.active .page-link { color: #fff; background-color: #3c8dbc; border-color: #3c8dbc; }
.dropdown-item.active, .dropdown-item:active { background-color: #3c8dbc; }
.nav-tabs .nav-link { color: #2f78ad; }
.nav-tabs .nav-link.active { color: #333; }
.custom-control-input:checked ~ .custom-control-label::before { background-color: #3c8dbc; border-color: #3c8dbc; }
.select2-container--bootstrap .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: #3c8dbc !important; color: #fff; }

/* menu */
.app-body > .sidebar.main-sidebar { background: #f9fafc !important; border-right: 1px solid #d2d6de; padding: 0; }
.sidebar .nav > li.user-panel { padding: 16px 15px; border-bottom: 1px solid #e8ebef; }
.sidebar .nav-title { padding: 14px 15px 6px; font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: #737a83; }
.sidebar .nav > .nav-item > .nav-link { padding: 9px 15px 9px 12px; border-left: 3px solid transparent; border-radius: 0; font-size: 13px; font-weight: 600; color: #444; background: transparent; }
.sidebar .nav-dropdown-items .nav-link { padding: 7px 15px 7px 30px; border-radius: 0; font-size: 13px; font-weight: 400; color: #555; background: transparent; }
.sidebar .nav-link:hover { color: #222 !important; background: #f0f3f6 !important; }
.sidebar .nav > .nav-item > .nav-link.active, .sidebar .nav > .nav-dropdown.open > .nav-link { color: #1f5f8b !important; background: #eef3f8 !important; border-left-color: #3c8dbc; }
.sidebar .nav-dropdown-items .nav-link.active { color: #1f5f8b !important; background: transparent !important; font-weight: 600; }
.sidebar .nav-dropdown.open { background: transparent; }

/* page title and breadcrumb */
main.content-wrapper > .content-header { padding: 20px 24px 0; }
main.content-wrapper > .content-header > h1 { font-size: 26px; font-weight: 300; color: #333; }
main.content-wrapper > .content-header > h1 small { font-size: 14px; font-weight: 400; color: #5f6670; }
main.content-wrapper > .content-header > .breadcrumb { top: 10px; right: 18px; color: #5f6670; }
main.content-wrapper > .content-header > .breadcrumb > .breadcrumb-item + .breadcrumb-item::before { content: "\203a"; padding: 0 6px; color: #9aa1a9; }
main.content-wrapper > .container-fluid { padding: 14px 24px 24px; }

/* cards */
main .card { background: #fff; border: 1px solid #dfe3e8; border-top: 3px solid #3c8dbc; border-radius: 4px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); }
main .card > .card-header, main .card > .box-header { padding: 12px 16px; background: #fff; border-bottom: 1px solid #eef0f3; }
main .card .card-title { margin: 0; font-size: 16px; font-weight: 600; color: #333; }

/* list filters: a grey band with a FILTERS label; a filter that holds a value turns blue (tx-filter-active, set in legacy_scripts) */
main .card-body > .navbar-filters.site-list-filters { margin: -10px -10px 10px !important; padding: 6px 16px !important; background: #f7f9fb; border-top: 1px solid #eceff3; border-bottom: 1px solid #eceff3; }
.site-list-filters > a.nav-item .la-filter::after { content: "FILTERS"; margin-left: 6px; font-family: "Open Sans", sans-serif; font-size: 12px; font-weight: 600; color: #5f6670; }
.site-list-filters .form-control-sm { height: 30px; font-size: 13px; border: 1px solid #d5dae0; border-radius: 3px; }
.site-list-filters .select2-container .select2-selection { min-height: 30px; border-color: #d5dae0; border-radius: 3px; }
.site-list-filters li.tx-filter-active .form-control, .site-list-filters li.tx-filter-active .select2-selection { color: #1f5f8b; background-color: #eef3f8 !important; border-color: #9cc3dd !important; }
.site-list-filters li.tx-filter-active .select2-selection__rendered { color: #1f5f8b !important; }

/* tables */
table.dataTable thead th, main .table > thead > tr > th { color: #333; font-weight: 600; background-color: #f4f6f8; border-bottom: 2px solid #dfe3e8 !important; }
main .table > tbody > tr > td { border-top: 1px solid #eef0f3; }
table.dataTable > tbody > tr:nth-of-type(even), main .table-striped > tbody > tr:nth-of-type(even) { background-color: #fafbfc; }
main .table-striped > tbody > tr:nth-of-type(odd) { background-color: #fff; }
table.dataTable td .btn.btn-link { padding: 2px 8px; font-size: 12px; font-weight: 400; color: #444; background: #fff; border: 1px solid #d5dae0; border-radius: 3px; }
table.dataTable td .btn.btn-link:hover { color: #222; background: #f4f6f8; text-decoration: none; }

/* forms */
main .form-control { border-color: #cfd4da; border-radius: 3px; }
main .form-control:focus { border-color: #3c8dbc; box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.2); }
main .select2-container .select2-selection { border-color: #cfd4da; border-radius: 3px; }
main .select2-container--focus .select2-selection, main .select2-container--open .select2-selection { border-color: #3c8dbc !important; }

/* look A, second pass (after the side-by-side screenshots) */
/* Bootstrap 3 floated every column, so the app's views put columns straight inside another column (detail pages:
   .col-md-12 > .col-md-3 ...) and they sat side by side; in Bootstrap 4 a column outside a .row stacks. Float them again. */
@media (min-width: 768px) {
    :where(main :not(.row):not(.form-row)) > [class*="col-sm-"], :where(main :not(.row):not(.form-row)) > [class*="col-md-"] { float: left; }
}
@media (min-width: 1200px) {
    :where(main :not(.row):not(.form-row)) > [class*="col-lg-"] { float: left; }
}
label { font-weight: 700; } /* Bootstrap 3 labels were bold; plain element selector so the app's own page styles (light form labels on the item form) still win */
.custom-control-label, .form-check-label, .checkbox label, .radio label { font-weight: 400; }
main .site-filter-date-range > .small { white-space: nowrap; }
table.dataTable td .btn.btn-link { padding: 1px 6px; line-height: 1.4; }
main .table-hover > tbody > tr:hover, table.dataTable.table-hover > tbody > tr:hover { background-color: #f0f4f8; }
/* card header: title on the left, its buttons on the same line at the right (Bootstrap 3 .box-header with a floated .box-tools) */
main .card > .card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
main .card > .card-header > .card-title, main .card > .card-header > h3 { flex: 1 1 auto; margin: 0; }
main .card > .card-header > .float-right, main .card > .card-header > .pull-right { margin-left: auto; float: none; }
/* table density as production (8 px cells, small buttons stay small) */
main .table > thead > tr > th, main .table > tbody > tr > td, main .table > tfoot > tr > td, main .table > tbody > tr > th { padding: 8px; }
main.content-wrapper .btn.btn-xs, main.content-wrapper .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; font-weight: 400; line-height: 1.5; }
main.content-wrapper .btn.btn-sm { font-size: 12px; }
/* DataTables gives its buttons btn-secondary; the app's own ones also carry btn-primary (QC report Print): primary wins */
.btn.btn-secondary.btn-primary { color: #fff; background-color: #3c8dbc; border-color: #367fa9; }
.btn.btn-secondary.btn-primary:hover { background-color: #367fa9; border-color: #2e6d91; }
/* fourth pass: Bootstrap 3's col-xs-* floated at every width (form fields three per row inside a plain .col-md-12) */
:where(main :not(.row):not(.form-row)) > [class*="col-xs-"] { float: left; }
/* list rows: Backpack 7 pads its first cell 20 px top and bottom (responsive control); production rows are 39 px */
body #crudTable_wrapper #crudTable:not(.has-hidden-columns) tr td:first-child, body #crudTable_wrapper #crudTable tr td:first-child, body #crudTable_wrapper table.dataTable tr td:first-child, table.dataTable > tbody > tr > td:first-child { padding-top: 8px !important; padding-bottom: 8px !important; }
main .table > tbody > tr > td, main .table > thead > tr > th { line-height: 20px; }
main .table td .btn { white-space: nowrap; }
main .table > tbody > tr > td { vertical-align: top; } /* production aligned cells at the top */
/* fifth pass (BOM page): AdminLTE box bodies were 10 px (the BOM tree panel is a narrow column); sub-menu items on one line; Bootstrap 3 input groups (an icon, a select2, a button) on one line */
main .card > .card-body { padding: 10px; }
.sidebar .nav-dropdown-items .nav-link { padding-left: 15px; }
.sidebar .nav-dropdown-items .nav-link .nav-icon { width: 18px; margin-right: 6px; } /* sub-menu labels fit on one line as in production (a forced one-line label widened the whole menu and hid its arrows) */
.input-group { flex-wrap: nowrap; }
.input-group > .select2-container { flex: 1 1 auto; width: 1% !important; }
.input-group > .input-group-btn { display: flex; }
.input-group > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.app-body > .sidebar .sidebar-nav, .app-body > .sidebar .sidebar-nav > .nav { width: 100%; } /* CoreUI fixed the menu list at 200 px inside the 225 px menu */
/* vertical form tabs (customer / vendor edit) as production's: plain list with separators, the current tab bold with a blue bar */
main .tab-container .nav-pills .nav-link { padding: 9px 14px 9px 13px; color: #444; background: transparent; border-radius: 0; border-left: 3px solid transparent; border-bottom: 1px solid #eef0f3; }
main .tab-container .nav-pills .nav-link:hover { color: #222; background: #f4f6f8; }
main .tab-container .nav-pills .nav-link.active, main .tab-container .nav-pills .show > .nav-link { color: #333; font-weight: 600; background: transparent; border-left-color: #3c8dbc; }
/* Bootstrap 3 rows were blocks: a .row straight inside a .row (the purchase order / receiving print views) took the full
   width. In Bootstrap 4's flex row it shrank to its content and the nested rows sat side by side. */
.row > .row { flex: 0 0 calc(100% + 30px); max-width: calc(100% + 30px); }

/* the column floats above carry only a class's weight (:where), so a page's own float (the purchase order's signature box: float right) still wins, as in Bootstrap 3 */
/* Bootstrap 3's .table-responsive only acted below 768 px; Bootstrap 4's turns a <table class="table-responsive"> into a block that shrinks to its content (print views' address tables) */
table.table.table-responsive { display: table; }
