:root {
    --brand-red: #E53935;
    --brand-red-dark: #D32F2F;
    --brand-red-darker: #C62828;
    --brand-red-light: #FFEBEE;
    --off-white: #F5F5F5;
    --border-gray: #E2E2E2;
    --brand-dark: #212121;
    --brand-dark-light: #2E2E2E;
    --brand-green: #43A047;
    --brand-green-light: #E8F5E9;
    --brand-orange: #FB8C00;
    --brand-orange-light: #FFF3E0;
    --brand-blue: #1E88E5;
    --brand-blue-light: #E3F2FD;
    --brand-purple: #8E24AA;
    --brand-purple-light: #F3E5F5;
}

body {
    overflow-x: hidden;
}

/* Bootstrap 5 dropped `.form-group` entirely (BS3/4 concept, replaced by
   margin utilities like `.mb-3`). The CRUD scaffolding across ~26 view
   templates still wraps every field in `.form-group` for spacing, so this
   restores that spacing rather than touching every template. */
.form-group {
    margin-bottom: 1rem;
}

#wrapper {
    padding-left: 0;
    padding-top: 50px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#wrapper.toggled {
    padding-left: 250px;
}

#sidebar-wrapper {
    z-index: 1000;
    position: fixed;
    left: 250px;
    width: 36px;
    height: 100%;
    margin-left: -250px;
    overflow-y: auto;
    background: var(--brand-dark);
    border-right: none;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#wrapper.toggled div#sidebar-wrapper:hover {
    margin-left: -250px;
}

#sidebar-wrapper:hover {
    width: 250px;
}

#sidebar-wrapper a {
    color: #cfcfcf;
    text-decoration: none;
}

#sidebar-wrapper a:hover {
    color: #ffffff;
    text-decoration: none;
    background: var(--brand-red);
}

/* Bootstrap's .nav is display:flex by default (built for horizontal tab
   bars); left as-is, the top-level items only wrap in a narrow rail by
   accident of flex-wrap, and each <li>/<a> shrinks to its own content width
   instead of filling the rail — so the hover/active highlight only ever
   covered the text, not the row. Force it back to a plain block list. */
#sidebar-wrapper #main-menu {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar-wrapper #main-menu > li {
    display: block;
    width: 100%;
}

#sidebar-wrapper #main-menu > li > a,
#sidebar-wrapper #main-menu > li > a.dropdown-toggle {
    display: block;
    width: 100%;
    padding: 10px 8px;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Highlight the toggle while its flyout submenu is open (Bootstrap adds
   .show to the <li class="dropdown"> wrapper, not to the toggle itself). */
#sidebar-wrapper #main-menu > li.dropdown.show > a.dropdown-toggle {
    color: #ffffff;
    background: rgba(229, 57, 53, .25);
}

/* Every level of submenu (second, third, ...) now opens as its own flyout
   (Bootstrap .dropdown-menu, white popup) instead of expanding inline in
   the dark sidebar or nesting inside its parent's popup, so they all share
   this same light-on-white palette rather than the sidebar's light-on-dark
   one, and all look the same regardless of nesting depth. */
#sidebar-wrapper .dropdown-menu {
    min-width: 220px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
}

#sidebar-wrapper .dropdown-menu a {
    display: block;
    width: 100%;
    color: #333333;
    padding: 8px 20px;
    white-space: nowrap;
    box-sizing: border-box;
}

#sidebar-wrapper .dropdown-menu a:hover {
    color: var(--brand-red);
    background: var(--brand-red-light);
}

/* Highlight a nested toggle (e.g. a "Система" row that itself opens a
   third-level flyout) the same way as the top-level one while it's open. */
#sidebar-wrapper .dropdown-menu > li.dropdown.show > a.dropdown-toggle {
    color: var(--brand-red);
    background: var(--brand-red-light);
}

#wrapper.toggled #sidebar-wrapper {
    width: 250px;
}

#page-content-wrapper {
    width: 100%;
    position: absolute;
    padding: 15px 0 15px 36px;
}

#wrapper.toggled #page-content-wrapper {
    position: absolute;
    margin-right: -250px;
}


/* Sidebar Styles */

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 250px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav li {
    text-indent: 20px;
    line-height: 40px;
}

.sidebar-nav li a {
    display: block;
    text-decoration: none;
    color: #555555;
}

.sidebar-nav li a:hover {
    text-decoration: none;
    color: var(--brand-red);
    background: var(--brand-red-light);
}

.sidebar-nav li a:active, .sidebar-nav li a:focus {
    text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
    height: 65px;
    font-size: 18px;
    line-height: 60px;
}

.sidebar-nav > .sidebar-brand a {
    color: #555555;
}

.sidebar-nav > .sidebar-brand a:hover {
    color: var(--brand-red);
    background: none;
}

@media (min-width: 768px) {
    #wrapper {
        padding-left: 0;
    }

    #wrapper.toggled {
        padding-left: 250px;
    }

    #sidebar-wrapper {
        width: 38px;
    }

    #wrapper.toggled #sidebar-wrapper {
        width: 250px;
    }

    #page-content-wrapper {
        position: relative;
    }

    #wrapper.toggled #page-content-wrapper {
        position: relative;
        margin-right: 0;
    }
}

@media (max-width: 575.98px) {
    #sidebar-wrapper {
        width: 0px;
    }

    #page-content-wrapper {
        width: 100%;
        position: absolute;
        padding: 15px 0 15px 0px;
    }

}

#page-inner {
    width: 100%;
    margin: 10px 20px 10px 0px;
    background-color: #fff !important;
    padding: 10px;
    #min-height: 600px;
}

.page-head-line {
    font-size: 30px;
    text-transform: uppercase;
    color: #000;
    font-weight: 800;
    padding-bottom: 20px;
    border-bottom: 2px solid #d2d2d2;
    margin-bottom: 30px;
}

.progress {
    height: 5px;
}

.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
    color: #A3A3A3 !important;
}


/*==============================================
    MENU STYLES    
 =============================================*/


.header-right {
    color: #ffffff;
    padding: 15px 50px 5px 50px;
    float: right;
    font-size: 16px;
}

.user-img-div {
    min-height: 130px;
    padding: 20px;
    background-color: var(--off-white);
    text-align: center;
}

.user-img-div img {
    height: 130px;
    border: 5px solid #E53935;
}


.active-menu {
    background-color: #fff !important;
    border-left: 5px solid #E53935;
}

.active-menu-top {
    background-color: var(--brand-red) !important;
}

.arrow {
    float: right;
}

.fa.arrow:before {
    content: "\f104";
}

.active > a > .fa.arrow:before {
    content: "\f107";
}


.nav-second-level li,
.nav-third-level li {
    border-bottom: none !important;
}

.nav-second-level li a {
    padding-left: 37px;
}

.nav-third-level li a {
    padding-left: 55px;
}

.sidebar-collapse, .sidebar-collapse .nav {
    background: none;
}

.sidebar-collapse .nav {
    padding: 0;
}

.sidebar-collapse .nav > li > a {
    color: #000;
    background: var(--off-white);
    text-shadow: none;
    border-bottom: 1px solid var(--border-gray);
}

.sidebar-collapse > .nav > li > a {
    padding: 15px 10px;
}

.sidebar-collapse .nav > li > a:hover,
.sidebar-collapse .nav > li > a:focus {
    background: var(--brand-red-light);
    outline: 0;
}


.nav-second-level > li:last-child > a:after,
.nav-third-level > li:last-child > a:after {
    height: 50%;
}

.nav-third-level > li > a:after,
.nav-third-level > li > a:before {
    left: 40px;
}

.navbar-cls-top {
    background: var(--brand-red);
    border-bottom: 1px solid var(--brand-red-darker);
    /* This navbar's height comes entirely from its own <table>'s cell
       padding (~50-52px, matching #wrapper/#sidebar-wrapper/#page-content-wrapper's
       hardcoded 50px top offset below) — zero out Bootstrap's own .navbar
       vertical padding so it doesn't stack on top and inflate the height,
       which pushed the navbar over the sidebar's first menu item. */
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-logo-badge {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: .375rem;
}

.nav > li > a > i {
    margin-right: 10px;
}

/*==============================================
    NOTIFICATION  STYLES    
 =============================================*/
.notifications-wrapper {
    margin-left: 3px;
}

.notifications-wrapper .nav {
    background-color: #D2d2d2;
}

.notifications-wrapper li {
    display: inline-block;
}


.notifications-wrapper li a {
    padding: 25px;
    min-height: 50px;
}


.notifications-wrapper .dropdown-tasks {
    width: 250px;
    min-width: 0;
}


.notifications-wrapper .dropdown-menu li {
    display: block;
}

.notifications-wrapper .dropdown-menu li a {
    padding: 3px 20px;
    min-height: 0;
}

.notifications-wrapper .nav > li > a {
    background-color: #E2E2E2;
    color: #000;
}

.notifications-wrapper .nav > li > a:hover, .nav > li > a:focus {
    text-decoration: none;
    background-color: #FFF !important;
    color: #000 !important;

}

.notifications-wrapper .dropdown-menu {
    margin: 0px;
    border-radius: 0px !important;
    -moz-border-radius: 0px !important;
    -webkit-border-radius: 0px !important;
}

/*==============================================
    FOOTER  STYLES    
 =============================================*/
footer {
    background-color: var(--off-white);
    border-top: 2px solid var(--brand-red);
    padding: 20px 50px;
    color: #333333;
    font-size: 12px;
}

footer a {
    color: #333333;
}

footer a:hover, footer a:focus {
    color: var(--brand-red);
    text-decoration: none;
}

/*===============================================================================================
    DASHBOARD STYLES
 ===============================================================================================*/

.dash-logo {
    margin-top: 10px;
}

.dash-subtitle {
    color: #777;
    margin-bottom: 30px;
}

.dash-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #777;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-gray);
}

.dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    min-height: 110px;
    padding: 20px 10px;
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: .75rem;
    text-decoration: none;
    color: #333;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dash-tile:hover {
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    border-color: var(--brand-red);
}

.dash-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-red-light);
    color: var(--brand-red);
    font-size: 20px;
}

.dash-tile-label {
    font-size: 13px;
    text-align: center;
}

.current-notices ul {
    padding-left: 20px;
    list-style: decimal-leading-zero;
    line-height: 30px;
}

/*==============================================
    MEDIA QUERIES     
  =============================================*/

@media (min-width: 768px) {
    .navbar {
        border-radius: 0px;
    }
}

@media (min-width: 280px) and (max-width: 767px ) {
    #menuClose {
        visibility: hidden;
    }
}

.card-title {
    color: #333;
    font-size: 16px;
    text-align: center;
}

.card-text {
    color: #84919B;
    font-size: 12px;
    text-align: center;
}

#menu-toggle {
    display: block;
    padding: 12px;
    color: #ffffff;
    width: 38px;
    height: 50px;
}

#menu-toggle a {
    color: #ffffff;
}

a.btn-top {
    display: block;
    float: left;
    padding: 12px;
    color: #ffffff;
}

a.top-btn-right {
    display: block;
    float: right;
    padding: 12px;
    color: #ffffff;
}

a.btn-top:hover,
a.top-btn-right:hover,
#menu-toggle:hover {
    color: #ffffff;
    opacity: .85;
}

/*Login style*/

#col22 {
    background-image: url(../images/image_login.jpg);
    position: fixed;
    display: block;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;

}

.form11 {
    margin-top: 10vw;
    padding: 20px 40px;
    width: 500px;
}

.navButton {
    display: inline-block;
    margin: 40px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    border-radius: 50%;
    background-color: #fff;

    box-shadow: 0 0 20px rgba(0, 0, 0, 1),
    inset 0 2px 0 rgba(255, 255, 255, .6),
    0 2px 0 rgba(0, 0, 0, .1),
    inset 0 0 20px rgba(0, 0, 0, .1);
}

.navButton:hover {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, .2),
    0 2px 0 rgba(255, 255, 255, .4),
    inset 0 2px 0 rgba(0, 0, 0, .1);
}

#btn111 {
    position: relative;
    top: 370px;
    right: 105px;
    font-size: 65px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}


#btn111:hover {
    color: #808080;
}

@media (max-width: 576px) {

    .form11 {
        position: relative;
        top: 0;
        left: 0;
        transform: translate(0, 0);
        padding: 10px;
        margin-top: 20px;
    }

    #col22 {
        display: none;

    }

    .navButton {
        display: none;
    }

    #btn111 {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    #col22 {
        display: none;

    }

    .navButton {
        display: none;
    }

    #btn111 {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #col22 {
        display: none;

    }


    .navButton {
        display: none;
    }

    #btn111 {
        display: none;
    }
}

.footer {
    padding: 20px;
    color: #000000;
    font-size: 12px;
    position: fixed;
    width: 100%;
    height: auto;
    background-color: #f8f8f8;
    bottom: -10px;
    z-index: 111;
}

#version {
    position: absolute;
    bottom: 15px;
    left: 70px;
}

#copy {
    position: absolute;
    bottom: 15px;
    right: 45%;
}

/* Dropdown */

.dropdown-lang {
    display: inline-block;
    position: relative;
    margin-top: 12px;
    margin-right: 10px;
    float: right;
}

.dd-input {
    display: none;
}

.dd-button {
    color: #ffffff;
    font-weight: 500;
}

.dd-menu {
    position: absolute;
    top: 100%;
    right: 0;
    border: 1px solid #ccc;
    /*border-radius: 4px;*/
    padding: 0;
    margin: 2px 0 0 0;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    list-style-type: none;
}

.dd-input + .dd-menu {
    display: none;
}

.dd-input:checked + .dd-menu {
    display: block;
}

.dd-menu li {
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
}

.dd-menu li:hover {
    background-color: #f6f6f6;
}

.dd-menu li a {
    display: block;
    margin: -10px -20px;
    padding: 10px 20px;
}


.dd-menu li.divider {
    padding: 0;
    border-bottom: 1px solid #cccccc;
}

@media (min-width: 575.98px) {
    .news-widget {
        height: 89vh;
        overflow-y: scroll;
        overflow-x: hidden;
    }
}

@media (max-width: 575.98px) {
    .m-none {
        display: none !important;
    }

    .m-xs-1 {
        margin: .25rem;
    }

    .m-xs-2 {
        margin: .5rem;
    }

    .m-xs-3 {
        margin: 1rem;
    }

    .m-xs-4 {
        margin: 1.5rem;
    }

    .m-xs-5 {
        margin: 3rem;
    }

    .mt-xs-1 {
        margin-top: .25rem;
    }

    .mt-xs-2 {
        margin-top: .5rem;
    }

    .mt-xs-3 {
        margin-top: 1rem;
    }

    .mt-xs-4 {
        margin-top: 1.5rem;
    }

    .mt-xs-5 {
        margin-top: 3rem;
    }

    .mb-xs-1 {
        margin-bottom: .25rem;
    }

    .mb-xs-2 {
        margin-bottom: .5rem;
    }

    .mb-xs-3 {
        margin-bottom: 1rem;
    }

    .mb-xs-4 {
        margin-bottom: 1.5rem;
    }

    .mb-xs-5 {
        margin-bottom: 3rem;
    }

    .ml-xs-1 {
        margin-left: .25rem;
    }

    .ml-xs-2 {
        margin-left: .5rem;
    }

    .ml-xs-3 {
        margin-left: 1rem;
    }

    .ml-xs-4 {
        margin-left: 1.5rem;
    }

    .ml-xs-5 {
        margin-left: 3rem;
    }

    .mr-xs-1 {
        margin-right: .25rem;
    }

    .mr-xs-2 {
        margin-right: .5rem;
    }

    .mr-xs-3 {
        margin-right: 1rem;
    }

    .mr-xs-4 {
        margin-right: 1.5rem;
    }

    .mr-xs-5 {
        margin-right: 3rem;
    }

    .p-xs-1 {
        padding: .25rem;
    }

    .p-xs-2 {
        padding: .5rem;
    }

    .p-xs-3 {
        padding: 1rem;
    }

    .p-xs-4 {
        padding: 1.5rem;
    }

    .p-xs-5 {
        padding: 3rem;
    }

    .pt-xs-1 {
        padding-top: .25rem;
    }

    .pt-xs-2 {
        padding-top: .5rem;
    }

    .pt-xs-3 {
        padding-top: 1rem;
    }

    .pt-xs-4 {
        padding-top: 1.5rem;
    }

    .pt-xs-5 {
        padding-top: 3rem;
    }

    .pb-xs-1 {
        padding-bottom: .25rem;
    }

    .pb-xs-2 {
        padding-bottom: .5rem;
    }

    .pb-xs-3 {
        padding-bottom: 1rem;
    }

    .pb-xs-4 {
        padding-bottom: 1.5rem;
    }

    .pb-xs-5 {
        padding-bottom: 3rem;
    }

    .pl-xs-1 {
        padding-left: .25rem;
    }

    .pl-xs-2 {
        padding-left: .5rem;
    }

    .pl-xs-3 {
        padding-left: 1rem;
    }

    .pl-xs-4 {
        padding-left: 1.5rem;
    }

    .pl-xs-5 {
        padding-left: 3rem;
    }

    .pr-xs-1 {
        padding-right: .25rem;
    }

    .pr-xs-2 {
        padding-right: .5rem;
    }

    .pr-xs-3 {
        padding-right: 1rem;
    }

    .pr-xs-4 {
        padding-right: 1.5rem;
    }

    .pr-xs-5 {
        padding-right: 3rem;
    }
}

@media (max-width: 575.98px){
    .m-none{
        display: none;
    }

    .w-xs-100{
        width: 100%;
    }

    .w-xs-80{
        width: 80%;
    }

    .m-0{
        margin: 0;
    }
}

@media (min-width: 575.98px){
    .pc-none{
        display: none;
    }
}

@media (min-width: 575.98px) and (max-width: 1400px){
    #kassa .kassa-btn-modal{
        font-size: 14pt;
        margin-top: 3px;
        margin-left: 3px;
    }

    .kassa-td-text{
        font-size: 12pt !important;
    }

    .input-lg{
        height: 30px!important;
    }

    .input-lg::placeholder{
        font-size: 10pt!important;
    }

    .kassa-btn-cat-add .btn{
        font-size: 10pt!important;
    }

    .kassa-btn-otch .btn-sm{
        font-size: 8pt!important;
    }

    #kassa .chosen-container-single .chosen-single{
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
    }

    #kassa .chosen-container-single .chosen-single div b{
        margin-top: 2px;
    }

    .kassa-table-result .btn-success, .kassa-table-result .btn-primary{
        font-size: 18pt !important;
    }

    .kassa-table-result .btn-danger{
        font-size: 14pt !important;
    }

    #kassa:not(.kassabuy) #selected_goods_container,
    #kassa:not(.kassabuy) #journal_container{
        min-height: 280px;
        overflow-y: scroll;
        border-bottom: 1px solid #ccc;
    }

    #kassa.kassabuy #selected_goods_container,
    #kassa.kassabuy #journal_container{
        min-height: 335px;
        overflow-y: scroll;
        border-bottom: 1px solid #ccc;
    }

}

@media (min-width: 1400px){
    #kassa .kassa-btn-modal{
        font-size: 20pt;
        margin-top: 3px;
    }

    #kassa .chosen-container-single .chosen-single{
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
    }

    #kassa .chosen-container-single .chosen-single div b{
        margin-top: 10px;
    }

    .kassa-table-result .btn-success, .kassa-table-result .btn-primary{
        font-size: 30pt;
    }

    .kassa-table-result .btn-danger{
        font-size: 20pt;
    }

    #kassa:not(.kassabuy) #selected_goods_container,
    #kassa:not(.kassabuy) #journal_container{
        min-height: 380px;
        overflow-y: scroll;
        border-bottom: 1px solid #ccc;
    }

    #kassa.kassabuy #selected_goods_container,
    #kassa.kassabuy #journal_container{
        min-height: 440px;
        overflow-y: scroll;
        border-bottom: 1px solid #ccc;
    }

}



.kassa-btn-cat-add .btn{
    font-size: 16pt;
}

.kassa-td-text{
    font-size: 20pt;
    padding: 10pt;
}

.w-100{
    width: 100%;
}

.w-80{
    width: 80%;
}


.d-flex{
    display: flex;
}

.justify-content-between{
    justify-content: space-between;
}

.justify-content-around{
    justify-content: space-around;
}

.justify-content-center{
    justify-content: center;
}

.align-items-center{
    align-items: center;
}

.align-items-end{
    align-items: flex-end;
}

#kassa .buttons-kassa .btn-sm{
    text-decoration: none;
    cursor: pointer;
}

#kassa .btn-sm{
    text-decoration: none;
    cursor: pointer;
}

#kassa .table .btn-sm{
    border: none;
}

#kassa td{
    vertical-align: middle;
}

#kassa .buttons-kassa .kassa-btn-otch,
#kassa .kassa-btn-cat-add {
    background: var(--off-white);
    border: 1px solid var(--border-gray);
    border-radius: .5rem;
    padding: 10px;
    width: 100%;
}

.kassa-total-card {
    border-color: var(--border-gray);
}

.kassa-total-card .kassa-table-result {
    margin-bottom: 0;
}

.kassa-total-card .kassa-table-result td {
    border-top: none;
    border-bottom: 1px solid var(--border-gray);
    padding: 10px 4px;
}

.kassa-total-card .kassa-table-result tr:last-child td {
    border-bottom: none;
}

.kassa-pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    font-size: .5em;
    vertical-align: middle;
    margin-right: 4px;
}

.kassa-pay-icon-cash {
    background: var(--brand-green-light);
    color: var(--brand-green);
}

.kassa-pay-icon-card {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.kassa-pay-icon-mobile {
    background: var(--brand-purple-light);
    color: var(--brand-purple);
}

/* Card-like framing for CRUD form/show tab content (nav-tabs + tab-content),
   without touching the tab markup itself. */
.nav-tabs.bar_tabs {
    border-bottom-color: var(--border-gray);
}

.nav-tabs.bar_tabs .nav-link,
.nav-tabs.bar_tabs > li > a {
    border-radius: .5rem .5rem 0 0;
}

#myTabContent.tab-content {
    background: #fff;
    border: 1px solid var(--border-gray);
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    padding: 1.25rem;
}

/* Soft pill-style status badges (pale tint + colored text) per design
   reference, instead of Bootstrap's solid-fill .text-bg-*. */
.badge {
    font-weight: 600;
    padding: .4em .75em;
}

.badge.text-bg-success {
    background-color: var(--brand-green-light) !important;
    color: var(--brand-green) !important;
}

.badge.text-bg-danger {
    background-color: var(--brand-red-light) !important;
    color: var(--brand-red-dark) !important;
}

.badge.text-bg-warning {
    background-color: var(--brand-orange-light) !important;
    color: #B26A00 !important;
}

.badge.text-bg-secondary {
    background-color: #EEEEEE !important;
    color: #616161 !important;
}

.badge.text-bg-primary {
    background-color: var(--brand-red-light) !important;
    color: var(--brand-red) !important;
}

.badge.text-bg-info {
    background-color: var(--brand-blue-light) !important;
    color: var(--brand-blue) !important;
}
