:root {
    --sidebar-width: 217px;
    --header-height: 50px;
    --border-light-color: rgb(233 239 244);
}

/* html,body {
    height:100%;
} */
body{
  font-size: medium; /*.875rem;*/
  font-family: "Roboto", "Open Sans", -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";
}

a {
    text-decoration: none;
}

.checkbox-big {
  top: .8rem;
  width: 1.55rem !important;
  height: 1.55rem !important;    
}

.d-none {
    display: none !important;
}

/* .form-control, .form-control-sm, .btn, .alert, .list-group, .bootstrap-tagsinput, .badge, .tag {
    border-radius: 0;
} */

.badge {
    /* font-size: 100%!important; */
    font-weight: normal;
}

.bootstrap-tagsinput {
    min-width: fit-content;
}

.bootstrap-tagsinput input{             
    width: 100% !important;  
    max-width: 100% !important;  
}

.border-light {
    border-color:  var(--border-light-color) !important;
}

.fa-1_5x {
    font-size: 1.5em;
}

.input-chevron-parent {
    flex: 1 0 auto;
    position: relative;
}

.input-chevron {
    position: absolute;
    top: 9px;
    left: auto;
    bottom: auto;
    right: 10px;
    font-size: 8.5pt;
}

.input-logical-value {
    position: absolute;
    left: 15px;
    right: auto;
    bottom: auto;
    top: 8px;
    font-size: 8.5pt;
}

.select2-selection {
    border-radius: 0!important;
    height: calc(1.5em + .75rem + 2px)!important;
    border: 1px solid #ced4da!important;
}
.select2-container .select2-selection {
    border-radius: var(--bs-border-radius) !important;
}
.select2-container .select2-selection__rendered,
.select2-container .select2-selection__arrow {
    /* margin-top: 4px; */
    padding-top: 3px;
    margin-top: -1px;
}
.select2-selection__rendered {
    z-index: 1000 !important;
    position: relative;
}

table.sticky-header > thead, table.sticky-header > thead th {
    position: sticky; 
    position: -webkit-sticky;
    top: 0; 
    z-index: 10;
}

html[data-theme="dark"] .bg-light {
    background-color: #181818 !important;
}
html[data-theme="dark"] .sidebar .nav-link:not(.active) {
    color: white !important;
}

.bg-subtle {
    background-color: rgba(0, 0, 0, .04);
}
td.bg-subtle:hover {
    background-color: rgba(0, 0, 0, .1);
}

@media (max-width: 575px) {
    body, div, a, table, thead, tbody, td, th, label, span, select, input, input[type=number], ul, li, ol, .form-control, .form-control-sm, .input-group, .input-group-sm, .input-group-append, .input-group-text, .fa, .btn{
        font-size: 0.55rem !important; /*small; /*.875rem;*/
    }
    
    .select2-selection {
        font-size: small;
    }
    
    .dropdown-item {
        font-size: medium;
    }
        
    .h2, h2 {
        font-size: large;
    }    

    .standarddiv {
        border:1px solid #CCC;
        padding:10px 15px;
        margin-top: 2px;
        border-radius:5px;
        background:#FFF;
    }

    .action-icon {
        font-size: 16px;
    }
}

main  {
    margin-top: 0;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px 10px;
    min-height: calc(100vh - var(--header-height) - 1px);
    background: #f8fafc;
}

.main-content.full-width,
#toggleSidebar.full-width {
    margin-left: 0px !important;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

.hidden {
    visibility: hidden;
    display: none;
}

.pointer {
    cursor: pointer;
}

.strong {
    font-weight: bold;
}

.customerImageList {
    height: 65px !important;
    width: 65px !important;
}

@media (max-width: 575px) {
    .card-columns {
        column-count: 1
    }
}

@media (min-width: 576px) {
    .card-columns {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .card-columns {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .card-columns {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .card-columns {
        column-count: 5;
    }
}

.upper-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/*
 * Sidebar
 */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    z-index: 1030;
}

#top-bar {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

/* Sidebar Base Styles */
.sidebar2 {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
    z-index: 1020;
    transition: transform 0.3s ease-in-out;
}

/* Main Content */
.main-content {
    margin-top: var(--header-height);
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 10px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0 20px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
}

.sidebar-menu-item {
    padding: 0;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-menu-link.disabled {
    user-select: none;
    cursor: default;
}

.sidebar-menu-link:not(.disabled):hover {
    background: #f3f4f6;
    color: #1f2937;
}

.sidebar-menu-link.active,
.sidebar-submenu-link.active {
    background: #e0e7ff;
    color: #3b82f6;
    font-weight: 500;
}

.sidebar-menu-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

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

.sidebar-submenu-link {
    display: block;
    padding: 6px 20px 6px 50px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.sidebar-submenu-link.locked {
    padding-left: 2.2em !important;
}

.sidebar-submenu-link:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.sidebar-submenu-link:not(.locked)::before {
    content: "➢";
    position: absolute;
    left: 30px;
}

/* Toggle Button */
#toggleSidebar {
    position: fixed;
    bottom: 5px;
    left: calc(var(--sidebar-width) - 40px);
    z-index: 1025;
    transition: all 0.3s ease-in-out;
}

/* Overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ========================================
    RESPONSIVE BREAKPOINTS (Bootstrap 5.3)
    ======================================== */

/* XL screens and up (≥1200px) - Sidebar always visible */
@media (min-width: 1200px) {
    .sidebar2 {
        transform: translateX(0);
    }

    .main-content {
        margin-left: var(--sidebar-width);
    }

    #toggleSidebar {
        left: calc(var(--sidebar-width) - 40px);
    }
    #toggleSidebar:not(.sidebar-open) {
        left: 1em;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* LG screens (992px to 1199px) - Sidebar always visible */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .sidebar2 {
        transform: translateX(0);
    }

    .main-content {
        margin-left: var(--sidebar-width);
    }

    #toggleSidebar {
        left: calc(var(--sidebar-width) - 40px);
    }
    #toggleSidebar:not(.sidebar-open) {
        left: 1em;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* MD screens (768px to 991px) - Sidebar hidden by default */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar2 {
        transform: translateX(-100%);
    }

    .sidebar2.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    #toggleSidebar {
        top: 0px;
        left: 15px;
        font-size: 18pt;
    }

    .navbar-brand {
        margin-left: 30px;
    }

    /* #toggleSidebar.sidebar-open {
        left: calc(var(--sidebar-width) + 20px);
    } */
}

/* SM screens (576px to 767px) - Sidebar hidden, reduced width */
@media (min-width: 576px) and (max-width: 767.98px) {
    .sidebar2 {
        width: 280px;
        transform: translateX(-100%);
    }

    .sidebar2.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    #toggleSidebar {
        top: 0px;
        left: 15px;
        font-size: 18pt;
    }

    .navbar-brand {
        margin-left: 30px;
    }

    /* #toggleSidebar.sidebar-open {
        left: calc(280px + 20px);
    } */

    .sidebar-menu-link,
    .sidebar-submenu-link {
        font-size: 13px;
    }
}

/* XS screens (<576px) - Sidebar hidden, full width */
@media (max-width: 575.98px) {
    .sidebar2 {
        width: 85%;
        max-width: 300px;
        transform: translateX(-100%);
    }

    .sidebar2.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 10px;
    }

    #toggleSidebar {
        top: 0px;
        left: 15px;
        font-size: 18pt !important;
    }

    .navbar-brand {
        margin-left: 30px;
    }

    /* #toggleSidebar.sidebar-open {
        left: calc(85% - 20px);
    } */

    .sidebar-section-title {
        font-size: 10px;
    }

    .sidebar-menu-link {
        font-size: 13px;
        padding: 7px 15px;
    }

    .sidebar-submenu-link {
        font-size: 12px;
        padding-left: 40px;
    }

    .sidebar-submenu-link::before {
        left: 25px;
    }
}

/* Hide sidebar when d-none class is added */
.sidebar2.d-none {
    transform: translateX(-100%) !important;
}

/*
 * Extra table colors
 */
.table-comment,
.table-comment > th,
.table-comment > td {
  background-color:  #ebf5fb;
}

.table-comment th,
.table-comment td,
.table-comment thead th,
.table-comment tbody + tbody {
  border-color:  #d6eaf8 ;
}

.table-hover .table-comment:hover {
  background-color:  #d4e6f1 ;
}

.table-hover .table-comment:hover > td,
.table-hover .table-comment:hover > th {
  background-color:  #d4e6f1 ;
}








.table {
  border-collapse: separate; /* required for border-radius */
  border-spacing: 0;
  margin-bottom: 0 !important;
  
  --bs-border-color: var(--product-table-header-border-color) !important;
  --bs-table-hover-bg: rgb(207, 244, 252, 0.25);
}

.table .filter_tags {
  --bs-border-color: #dee2e6 !important;
}
.table .select2-selection {
    border: 1px solid var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius)!important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

.table thead {
    font-size: 0.85rem; 
    line-height: 1.3;
}

.table thead th{
    padding: 10px 25px !important;
} 
.table tbody td {
    padding: 15px 15px !important;
    text-wrap-mode: nowrap;
} 
.table thead th {
    text-align: center;
    vertical-align: middle;
    background-color: var(--product-table-header-background-color);
    border-bottom: 0; 
}

.table thead th.sortable {
    cursor: pointer;
}
.table thead th.sortable::after {
    position: absolute;
    content: ' ↑↓';
    color: var(--bs-gray-500, lightgray);
    right: 0.5em;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 5px;
}

.table thead tr.filter-row td {
    border: 0;
    background-color: var(--product-table-header-background-color);
    border-top: none !important;
    border-bottom: 1px solid var(--product-table-header-border-color);
    vertical-align: top;
}