.card,
.list-group {
    margin-bottom: .5rem;
}

.mt-m3 {
    margin-top: -1rem;
}

.table-compact > :not(caption) > * > * {
    padding: 1px 2px !important;
}

.header-menu .container-fluid {
    height: 56px;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    align-items: stretch;
}

.header-menu .navbar-brand,
.header-menu .navbar-brand:hover {
    margin: 0 !important;
    padding: 0 18px !important;
    height: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
    color: #fff !important;
    text-decoration: none !important;
}

.header-menu .navbar-brand small {
    margin-left: 5px;
    font-size: 13px;
    line-height: 1;
    font-weight: bold;
    color: #fff !important;
}

.header-menu .navbar-nav {
    height: 56px;
    min-height: 56px;
    align-items: stretch;
}

.header-menu .navbar-nav .nav-item {
    height: 56px;
    display: flex;
    align-items: stretch;
}

.header-menu .navbar-nav .nav-link {
    height: 56px;
    min-height: 56px;
    padding: 0 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: bold;
    font-size: 13px;
    line-height: 1;
    color: #fff !important;
    text-decoration: none !important;
}

.header-menu .navbar-nav .nav-link:hover,
.header-menu .navbar-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(0, 0, 0, .08) !important;
}

.header-menu .navbar-nav .nav-link.show {
    color: #fff !important;
    background: rgba(0, 0, 0, .08) !important;
}

.header-menu .navbar-toggler {
    margin: 0 12px 0 auto;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    align-self: center;
}

.header-menu .navbar-toggler:focus {
    box-shadow: none;
}

.header-menu .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.header-menu .form-search-header {
    width: min(220px, 22vw);
    min-width: 150px;
    max-width: 240px;
    height: 56px;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    display: flex;
    flex: 0 1 220px;
}

.form-search-header input[type="text"]::placeholder {
    color: #fff !important;
    opacity: .95;
}

.ic_search_header {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    z-index: 2;
    color: rgba(255, 255, 255, .85);
    font-size: 20px;
    line-height: 20px;
}

.form-search-header button {
    position: absolute;
    top: 0;
    right: 0;
    width: 58px;
    height: 56px;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, .08) !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: bold;
    line-height: 56px;
    text-align: center;
    box-shadow: none !important;
}

.form-search-header button:hover,
.form-search-header button:focus {
    background: rgba(0, 0, 0, .15) !important;
    color: #fff !important;
}

.header-menu .dropdown {
    position: relative;
}

.header-menu .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.header-menu .navbar-nav .dropdown-toggle.show::after {
    transform: none;
}

.header-menu .report-menu {
    min-width: 245px;
}

.header-menu .report-menu > .dropdown-submenu {
    position: relative;
}

.header-menu .report-menu > .dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: -4px;
    left: 100%;
    margin-top: 0 !important;
    margin-left: 0 !important;
    min-width: 245px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: -4px;
    left: 100%;
    margin-top: 0;
    margin-left: 0;
    min-width: 220px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-toggle {
    position: relative;
    padding-right: 28px !important;
}

.dropdown-submenu > .dropdown-toggle::after {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    margin: -5px 0 0 0;
    content: "";
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #777;
    transform: none !important;
}

.dropdown-submenu:hover > .dropdown-toggle::after,
.dropdown-submenu > .dropdown-toggle:focus::after {
    border-left-color: #1f3a5f;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 6px 0 6px 6px;
}

.header-menu #notif_dropdown > .nav-link,
.header-menu .nav-icon-link {
    min-width: 42px;
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: 16px;
}

.header-menu #notif_dropdown .fa-bell,
.header-menu .nav-icon-link .fa-circle-user {
    font-size: 17px;
}

.header-menu .notification-menu li {
    font-size: 12px;
}

.header-menu .notification-loading {
    padding: 15px;
    color: #777;
}

.user-profile {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    min-height: 100px;
}

.user-photo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.user-photo-default {
    width: 48px;
    height: 48px;
    color: #ccc;
    font-size: 42px;
    line-height: 48px;
    text-align: center;
}

.user-profile-info {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
}

.user-profile-info small {
    display: block;
    margin-bottom: 2px;
    color: #777;
    font-size: 10px;
}

.user-profile-info strong {
    display: block;
    color: #222;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}

.user-profile-links {
    margin-top: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.user-profile-links a {
    color: #3498db !important;
    text-decoration: underline;
}

.user-profile-links span {
    margin: 0 5px;
    color: #777;
}

body {
    margin: 0;
    font-size: 13px;
    font-family: Calibri, Helvetica, sans-serif;
    background: #f5f7fa;
}

a {
    color: #3498db;
}

a.label,
.table-title a {
    text-decoration: none !important;
}

.navbar {
    margin-bottom: 0 !important;
}

.shadow {
    box-shadow: rgba(100, 100, 111, .2) 0 7px 29px 0;
}

.no-padding {
    padding: 0 !important;
}

.strong {
    font-weight: bold;
}

.small {
    font-size: 10px;
}

.text-white {
    color: #fff !important;
}

.text-dark {
    color: #222 !important;
}

.bg-default {
    background: #eaeaea;
}

b,
strong {
    font-weight: bold !important;
}

.page-title,
.title-page {
    font-size: 24px;
    font-weight: bold;
}

.page-title small,
.title-page small {
    font-size: 12px;
}

.table-head-none-border td {
    border: 0 !important;
}

.table-title,
.table-striped > tbody > tr.table-title > * {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    font-weight: bold;
    font-size: 13px;
}

.table-title td a {
    color: #fff !important;
}

.table > tbody > tr > td {
    font-size: 12px;
}

.table.small > tbody > tr > td {
    font-size: 11px;
}

.table-sm td {
    font-size: 13px !important;
}

table td {
    position: relative;
}

table.truncate {
    table-layout: fixed;
}

table.truncate td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate2 {
    position: absolute;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="phone"],
textarea,
select,
input.date {
    background-color: #fff;
    border: solid 1px #e1e1e1;
    font-size: 12px;
    color: #000;
    border-radius: 0;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 4px;
    padding-right: 4px;
}

input.input-sm,
select.input-sm {
    height: 32px;
}

input[readonly],
textarea[readonly] {
    background-color: #eee;
}

input[type="text"]:read-only,
textarea:read-only {
    background: #eee;
    color: #666;
}

option {
    color: #000;
}

option:disabled {
    color: #ccc;
}

.fieldError {
    background-color: rgba(211, 0, 0, .1) !important;
}

.btn-disabled {
    color: rgba(100, 100, 100, 1);
    background-color: rgba(150, 150, 150, .4);
    border-color: rgba(150, 150, 150, 1);
}

.list-group-item-title {
    text-transform: uppercase;
}

.list-group-hover a.list-group-item:hover {
    color: #06c;
}

.nav-tabs li {
    list-style: none;
}

.nav-tabs li.active {
    font-weight: bold;
    margin-bottom: -1px;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
}

.nav-tabs li a {
    display: block;
    padding: .5rem 1rem;
    color: #777;
    text-decoration: none;
}

.nav-tabs li.active a {
    color: #375b7f !important;
    background: #fff;
    border: 1px solid #dee2e6;
    border-bottom-color: #fff;
    font-weight: bold;
}

.nav-tabs-styling li.active a,
.nav-tabs-styling .nav-link.active {
    background: #eee !important;
    font-weight: bold;
}

.nav-tabs-styling > li a,
.nav-tabs-styling .nav-link {
    color: #999;
}

.popover {
    z-index: 9999;
}

.jf_link_dynamic {
    margin: 0;
    padding: 0;
    background: #fff;
    font-size: 11px;
    width: 120px;
}

.jf_link_dynamic li {
    padding: 2px;
    border-bottom: 1px solid #eee;
    list-style: none;
}

.openaccordion,
.openallaccordion,
.closeallaccordion {
    cursor: pointer;
}

.accordion {
    display: none;
}

/* =========================================================
   LODS - PRICELIST & AUTOCOMPLETE
   Bootstrap 5 / LODS UI
   ========================================================= */
/* =========================================================
   PRICELIST CONTAINER
   ========================================================= */
/* =========================================================
   LODS - PRICELIST CONTAINER
   ========================================================= */
.PricelistContainer {
    position: absolute;
    width: 500px;
    max-width: calc(100vw - 30px);
    z-index: 99999;
    left: 0;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, .12),
        0 2px 6px rgba(15, 23, 42, .06);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* =========================================================
   PRICELIST SCROLLBAR
   ========================================================= */
.PricelistContainer::-webkit-scrollbar {
    width: 6px;
}

.PricelistContainer::-webkit-scrollbar-track {
    background: transparent;
}

.PricelistContainer::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.PricelistContainer::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================================
   PRICELIST LIST
   ========================================================= */
.PricelistContainer .pricelist_data {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =========================================================
   PRICELIST ITEM
   ========================================================= */
.PricelistContainer .pricelist_data li {
    position: relative;
    margin: 0;
    padding: 9px 12px;
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    transition:
        background-color .15s ease,
        padding-left .15s ease;
}

/* Remove border last item */
.PricelistContainer .pricelist_data li:last-child {
    border-bottom: 0;
}

/* =========================================================
   ZEBRA ROW
   ========================================================= */
.PricelistContainer
.pricelist_data
li:nth-child(odd):not(.pricelist_category) {
    background: #f8fafc;
}

/* =========================================================
   HOVER ITEM
   ========================================================= */
.PricelistContainer
.pricelist_data
li:not(.pricelist_category):hover {
    background: #eef5ff !important;
    color: #0b5ed7;
    padding-left: 16px;
}

/* =========================================================
   PRICELIST DESCRIPTION
   ========================================================= */
.pricelist_desc {
    display: inline-block;
    width: 85%;
    vertical-align: top;
    text-align: left;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================
   PRICELIST ACTION
   ========================================================= */
.pricelist_action {
    display: inline-block;
    width: 15%;
    text-align: right;
    vertical-align: top;
}

/* =========================================================
   PRICELIST ITEM BUTTON
   ========================================================= */
.PricelistContainer
.pricelist_data
li
a.pricelist_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    background: #f1f5f9;
    border: 1px solid #dbe2ea;
    border-radius: 50%;
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    transition:
        all .15s ease;
}

/* Button hover */
.PricelistContainer
.pricelist_data
li
a.pricelist_item:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 3px 8px rgba(11, 94, 215, 0.25);
}

/* Button focus */
.PricelistContainer
.pricelist_data
li
a.pricelist_item:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(11, 94, 215, 0.15);
}

/* =========================================================
   PRICELIST CATEGORY
   ========================================================= */
.PricelistContainer
.pricelist_data
.pricelist_category {
    background: #0b3a66 !important;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .2px;
    padding: 8px 12px;
    border-bottom: 0;
}

/* Category hover jangan berubah */
.PricelistContainer
.pricelist_data
.pricelist_category:hover {
    background: #0b3a66 !important;
    color: #ffffff;
    padding-left: 12px;
}

/* =========================================================
   PRICELIST NAVIGATION
   ========================================================= */
.PricelistContainer .pricelist_item_nav {
    padding: 7px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}

/* =========================================================
   INPUTAN
   ========================================================= */
#inputan {
    width: 300px;
    height: 36px;
    padding: 7px 11px;
    background: #ffffff;
    border: 1px solid #ced6e0;
    border-radius: 6px;
    color: #334155;
    font-size: 13px;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

#inputan:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* =========================================================
   AUTOCOMPLETE / HASIL
   ========================================================= */
#hasil,
.purposehasil {
    position: absolute;
    z-index: 99999;
    width: 100%;
    max-height: 260px;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 2px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 0 0 8px 8px;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.06);
    font: 13px Arial, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* =========================================================
   HASIL HIDDEN
   ========================================================= */
#hasil {
    display: none;
}

/* =========================================================
   HASIL SCROLLBAR
   ========================================================= */
#hasil::-webkit-scrollbar,
.purposehasil::-webkit-scrollbar {
    width: 6px;
}

#hasil::-webkit-scrollbar-track,
.purposehasil::-webkit-scrollbar-track {
    background: transparent;
}

#hasil::-webkit-scrollbar-thumb,
.purposehasil::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#hasil::-webkit-scrollbar-thumb:hover,
.purposehasil::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================================
   HASIL LINK
   ========================================================= */
#hasil a,
.purposehasil a {
    display: block;
    margin: 0;
    padding: 8px 12px;
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    transition:
        background-color .15s ease,
        color .15s ease,
        padding-left .15s ease;
}

/* Last item */
#hasil a:last-child,
.purposehasil a:last-child {
    border-bottom: 0;
    border-radius: 0 0 8px 8px;
}

/* =========================================================
   HASIL ZEBRA
   ========================================================= */
#hasil a:nth-child(even),
.purposehasil a:nth-child(even) {
    background: #f8fafc;
}

/* =========================================================
   HASIL HOVER
   ========================================================= */
#hasil a:hover,
.purposehasil a:hover {
    background: #eef5ff;
    color: #0b5ed7 !important;
    padding-left: 16px;
    text-decoration: none;
}

/* =========================================================
   HASIL ACTIVE / SELECTED
   ========================================================= */
#hasil a:active,
.purposehasil a:active {
    background: #dbeafe;
    color: #0b5ed7 !important;
}

/* =========================================================
   HIGHLIGHT TEXT
   ========================================================= */
#hasil a b,
.purposehasil a b {
    color: #0b5ed7;
    font-weight: 600;
}

/* =========================================================
   DISABLED / EMPTY RESULT
   ========================================================= */
#hasil .disabled,
.purposehasil .disabled {
    color: #94a3b8;
    cursor: default;
    background: #f8fafc;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 576px) {
    .PricelistContainer {
        width: 100%;
        max-width: calc(100vw - 30px);
    }
    
    #inputan {
        width: 100%;
    }
    
    #hasil,
        .purposehasil {
        width: 100%;
    }
    
    .pricelist_desc {
        width: 80%;
    }
    
    .pricelist_action {
        width: 20%;
    }
}

#ac {
    position: relative;
}

.up,
.amount,
.gtotal {
    text-align: right;
}

.qty {
    text-align: center;
}

.dyn-acc {
    background: #a6926b;
    padding: 2px;
}

.area_balance {
    padding: 1px 2px;
}

.wrapcounterArea {
    position: relative;
}

.counterArea {
    position: absolute;
    background: #fff;
    color: #36f;
    border: 1px solid #36f;
    border-radius: 5px;
    font-size: 11px;
    padding: 0 15px;
}

.footer {

    height: 50px;
    line-height: 50px;
    margin-top: 100px;
}

.pdate,
.pdatetime {
    position: relative;
    color: #666;
    background:  url(../../images/calendar.ico) no-repeat 97% !important;
    cursor: pointer;
    min-width: 85px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s,
        color 5000s ease-in-out 0s;
}

.nav-link:focus {
    background: none !important;
}

.tr_highlight td {
    background: #fce5a7 !important;
    color: #664200 !important;
    font-weight: bold;
}

.pagination .page-link {
    color: var(--bs-body-font-family);
    background-color: #fff;
    border: 1px solid #dfe5ec;
    font-family: var(--bs-body-font-family);
    font-size: 11px;
    font-weight: 500;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-link:hover {
    color: var(--bs-primary);
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    z-index: 2;
}

.pagination .page-link:focus {
    color: var(--bs-primary);
    background-color: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .10);
    z-index: 3;
}

.pagination .page-item.active .page-link {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.pagination .page-item.disabled .page-link {
    color: #b4bdc9;
    background-color: #f8fafc;
    border-color: #e8edf2;
}

.lods-pagination {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.lods-pagination .pagination {
    margin: 0 !important;
    padding: 0;
    align-items: center;
}

.lods-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 28px;
    line-height: 1;
}

.lods-pagination .page-item:first-child .page-link,
.lods-pagination .page-item:last-child .page-link {
    min-width: 32px;
}

html,
body {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
}

button,
input,
optgroup,
select,
textarea,
.form-control,
.form-select {
    font-family: var(--bs-body-font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--bs-body-font-family);
    color: var(--bs-body-color);
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 21px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 13px;
}

small,
.small {
    font-size: 11px;
}

label,
.form-label {
    font-size: 12px;
}

.form-text {
    font-size: 11px;
}

.form-control,
.form-select {
    border-radius: 0;
    font-size: 12px;
    line-height: 1.4;
    min-height: 34px;
}

.form-control-sm,
.form-select-sm {
    height: 32px;
    font-size: 11px;
    min-height: 32px;
}

textarea.form-control {
    padding: inherit !important;
    font-size: inherit !important;
    line-height: 1.4;
}

.btn {
    text-transform: none !important;
    font-family: var(--bs-body-font-family);
    font-size: 12px;
    line-height: 1.4;
}

.btn-sm {
    font-size: 11px;
}

.table {
    font-family: var(--bs-body-font-family);
    font-size: 12px;
    line-height: 1.35;
}

.table > :not(caption) > * > * {
    padding: 6px 8px;
}

.table-title,
.table-title-secondary {
    line-height: 1.3;
}

.table-title {
    font-size: 12px;
}

.table-title-secondary {
    background: #eaeaea !important;
    color: #333;
    font-weight: bold;
    vertical-align: middle !important;
    font-size: 11px;
}

.card,
.card-header,
.card-body,
.card-footer {
    font-size: 12px;
}

.alert {
    font-size: 12px;
}

.popover,
.popover-header,
.popover-body {
    font-family: var(--bs-body-font-family);
}

.popover-header,
.popover-body {
    font-size: 12px;
}

.select2-container,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple,
.select2-results,
.select2-search__field {
    font-family: var(--bs-body-font-family) !important;
    font-size: 12px !important;
}

.select2-container .select2-selection--single {
    min-height: 34px;
}

.select2-container .select2-selection--multiple {
    min-height: 34px;
}

.form-search-header input[type="text"] {
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 70px 0 50px;
    background: rgba(0, 0, 0, .18) !important;
    border: 0 !important;
    border-bottom: 2px solid #f00 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    line-height: 56px;
    font-weight: bold;
    color: rgba(255, 255, 255, .95);
    font-family: var(--bs-body-font-family);
}

.jf_link_dynamic,
.PricelistContainer,
#hasil,
.purposehasil {
    font-family: var(--bs-body-font-family);
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus
.select2-selection--multiple,
.select2-container--default.select2-container--open
.select2-selection--single {
    box-shadow: 0 0 0 2px rgba(55, 91, 127, .10) !important;
}

.input-sm {
    font-size: 11px;
}

.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

@media print {
    a[href]:after {
        content: none !important;
    }
}

@media (max-width: 991.98px) {
    .header-menu {
        height: auto;
        min-height: 56px;
    }
    
    .header-menu .container-fluid {
        height: auto;
        min-height: 56px;
    }
    
    .header-menu .navbar-nav {
        height: auto;
        min-height: 0;
    }
    
    .header-menu .navbar-nav .nav-item {
        height: auto;
        min-height: 0;
        display: block;
    }
    
    .header-menu .navbar-nav .nav-link {
        height: auto;
        min-height: 42px;
        justify-content: flex-start;
        padding: 10px 15px !important;
    }
    
    .header-menu .form-search-header {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 46px;
        flex: 0 0 100%;
        margin: 10px 0 !important;
    }
    
    .form-search-header input[type="text"] {
        width: 100%;
        height: 46px;
        line-height: 46px;
        padding-left: 45px;
    }
    
    .form-search-header button {
        height: 46px;
        line-height: 46px;
    }
    
    .ic_search_header {
        top: 50%;
    }
    
    .header-menu .user-menu {
        width: 280px;
        min-width: 280px;
        max-width: calc(100vw - 20px);
    }
    
    .dropdown-submenu > .dropdown-menu,
        .header-menu .report-menu > .dropdown-submenu > .dropdown-menu {
        position: static;
        min-width: 0;
        width: auto;
        margin-left: 15px !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: none;
    }
    
    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu > .dropdown-toggle::after {
        right: 15px;
    }
    
    .header-menu .notification-menu,
    .header-menu .user-menu {
        max-width: calc(100vw - 20px);
    }
    
    .header-menu #notif_badge {
        top: 3px;
        right: calc(50% - 16px);
    }
    
    .header-menu .user-profile {
        padding: 14px;
    }
    
    .header-menu .mega-dropdown {
        position: relative;
    }
    
    .header-menu .mega-dropdown > .mega-menu {
        position: static;
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .header-menu .mega-menu-column:last-child {
        border-bottom: 0;
    }
    
    .header-menu .mega-menu-column:first-child,
        .header-menu .mega-menu-column:last-child {
        padding-left: 0;
        padding-right: 0;
    }
    
    .header-menu .mega-menu-heading {
        padding-top: 4px;
    }
    
    .header-menu > .container-fluid {
        flex-wrap: wrap;
    }
    
    .header-menu .navbar-collapse {
        height: auto;
        min-height: 0;
        flex-basis: 100%;
        padding-top: 8px;
    }
    
    .header-menu .user-account-toggle {
        max-width: min(240px, 65vw);
    }
    
    .header-menu .header-actions {
        width: 100%;
        justify-content: flex-end;
        padding: 8px 0 4px;
        border-top: 1px solid rgba(255,255,255,.15);
        flex-wrap: wrap;
        align-items: center;
    }
    
    .header-menu .header-search-inline {
        order: 0;
    }
    
    .header-menu .header-actions > ul {
        order: 0;
    }
    
    .header-search-panel {
        top: auto;
        position: relative;
        box-shadow: none;
    }
    
    .header-menu .mega-menu,
        .header-menu .mega-menu-wide,
        .header-menu .mega-menu-jobfile,
        .header-menu .mega-menu-module,
        .header-menu .mega-menu-reports {
        width: 100%;
        max-width: 100%;
    }
    
    .header-menu .mega-menu-inner {
        display: block;
        padding: 8px 12px 12px;
    }
    
    .header-menu .mega-menu-column {
        padding: 8px 0;
        border-right: 0;
        border-bottom: 1px solid #edf0f3;
    }
    
    .header-menu .main-navbar-nav {
        gap: 0;
        align-items: stretch;
    }
    
    .header-menu .main-navbar-nav > .nav-item > .nav-link {
        padding-left: 12px !important;
        padding-right: 12px !important;
        min-height: 40px;
    }
}

@media (max-width: 575.98px) {
    html,
        body {
        font-size: 12px;
    }
    
    .table {
        font-size: 11px;
    }
    
    .form-control,
        .form-select,
        .btn {
        font-size: 12px;
    }
    
    .header-menu .navbar-brand {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 21px;
    }
    
    .header-menu .navbar-brand small {
        font-size: 11px;
    }
    
    .header-menu .notification-menu,
    .header-menu .user-menu {
        width: 320px;
        max-width: calc(100vw - 20px);
        min-width: 0;
    }
    
    .header-menu .notification-menu {
        right: 5px;
    }
    
    .header-menu .user-menu {
        right: 5px;
    }
    
    .header-menu .user-account-name {
        max-width: 125px;
    }
    
    .header-menu #notif_dropdown > .notification-menu,
        .header-menu #notif_list.notification-menu {
        width: min(360px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        right: -48px !important;
    }
}

.header-menu .dropdown-menu {
    margin-top: 0 !important;
    min-width: 190px;
    border-radius: 0 0 6px 6px;
    background: #fff;
    font-size: 13px;
    padding: 5px 0;
    border: 1px solid rgba(0, 0, 0, .10);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.header-menu .dropdown-item {
    min-height: 32px;
    font-size: 13px !important;
    line-height: 1.45;
    padding: 7px 14px;
    color: #333 !important;
    font-weight: 400;
    white-space: nowrap;
}

.header-menu .dropdown-item:hover,
.header-menu .dropdown-item:focus {
    background: #f2f4f7 !important;
    background-color: #f2f5f8 !important;
    color: #1f456f !important;
}

.header-menu .dropdown-item:active {
    background-color: #e9eef4 !important;
    color: #1f456f !important;
}

.header-menu .dropdown-submenu > .dropdown-menu {
    min-width: 220px;
    padding: 5px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.header-menu .dropdown-submenu > .dropdown-toggle {
    padding-right: 28px;
    position: relative;
}

.header-menu .dropdown-submenu > .dropdown-toggle::after {
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -4px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #777;
}

.header-menu .dropdown-submenu:hover > .dropdown-toggle::after {
    border-left-color: #1f456f;
}

.header-menu #notif_dropdown > .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

.header-menu #notif_dropdown .fa-bell {
    font-size: 16px;
    line-height: 1;
}

.header-menu .notification-menu::-webkit-scrollbar {
    width: 6px;
}

.header-menu .notification-menu::-webkit-scrollbar-track {
    background: transparent;
}

.header-menu .notification-menu::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #cbd5e1;
}

.header-menu .notification-menu > li {
    margin: 0;
    list-style: none;
}

.header-menu .notification-menu .notification-loading,
.header-menu .notification-menu .notification-empty {
    padding: 16px;
    color: #777;
    background: #fff;
    text-align: center;
    font-size: 12px;
}

.header-menu .notification-empty-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-menu .notification-item {
    border-bottom: 1px solid #edf0f3;
}

.header-menu .notification-link {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px !important;
    color: #30445b !important;
    text-decoration: none !important;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
}

.header-menu .notification-link:hover,
.header-menu .notification-unread .notification-link {
    background: #f5f8fc !important;
}

.header-menu .notification-icon {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    padding-top: 2px;
    font-size: 14px;
}

.header-menu .notification-content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.header-menu .notification-title {
    display: block;
    margin: 0 0 3px;
    color: #1f3a5f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.header-menu .notification-message {
    display: block;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.header-menu .notification-time {
    display: block;
    margin-top: 5px;
    color: #8a94a0;
    font-size: 10px;
    line-height: 1.3;
}

.header-menu .notification-time i {
    margin-right: 3px;
}

.header-menu .notification-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 0;
    border-top: 1px solid #e5e8ec;
    background: #f7f8fa;
}

.header-menu .notification-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    color: #1f456f !important;
    background: #f7f8fa;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

.header-menu .notification-footer a:hover {
    background: #eef2f6 !important;
}

.header-menu .user-profile {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #fff;
}

.header-menu .user-photo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #d9dee5;
    background: #f1f3f5;
}

.header-menu .user-photo-default {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2f6;
    color: #7a8794;
    font-size: 35px;
}

.header-menu .user-profile-info {
    min-width: 0;
    padding-left: 12px;
    line-height: 1.35;
}

.header-menu .user-profile-info > small {
    display: block;
    margin-bottom: 3px;
    color: #8a94a0;
    font-size: 11px !important;
    font-weight: 400;
    line-height: 1.3;
}

.header-menu .user-profile-info > strong {
    display: block;
    color: #263746;
    font-size: 14px;
    font-weight: 600 !important;
    line-height: 1.35;
    word-break: break-word;
}

.header-menu .user-profile-links {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #edf0f3;
    white-space: nowrap;
}

.header-menu .user-profile-links a {
    color: #1f5f96 !important;
    font-size: 12px;
    text-decoration: none !important;
    transition: color .15s ease;
}

.header-menu .user-profile-links a:hover {
    color: #143f68 !important;
    text-decoration: underline !important;
}

.header-menu .user-profile-links span {
    margin: 0 8px;
    color: #c2c8ce;
    font-size: 11px;
}

.header-menu .nav-icon-link {
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.header-menu .nav-icon-link > i {
    font-size: 16px;
}

.header-menu .nav-icon-link::after {
    margin-left: 5px;
    border-top-color: rgba(255, 255, 255, .75);
}

.header-menu .navbar-nav .dropdown-toggle::after {
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    margin-left: 5px;
    vertical-align: middle;
    border-top-color: rgba(255, 255, 255, .75);
}

.header-menu .navbar-nav .dropdown-menu {
    margin-top: 0;
}

.header-menu .navbar-nav .dropdown-menu-end {
    right: 0;
    left: auto;
}

.header-menu .mega-menu-column {
    min-width: 0;
    padding: 0 18px;
    border-right: 1px solid #edf0f3;
}

.header-menu .mega-menu-column:first-child {
    padding-left: 4px;
}

.header-menu .mega-menu-column:last-child {
    padding-right: 4px;
    border-right: 0;
}

.header-menu .mega-menu-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0 4px 8px;
    border-bottom: 1px solid #edf0f3;
    color: #1f456f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.3;
}

.header-menu .mega-menu-heading i {
    width: 17px;
    text-align: center;
    font-size: 13px;
}

.header-menu .mega-menu-heading-spaced {
    margin-top: 20px;
}

.header-menu .mega-menu-item {
    display: block;
    margin: 1px 0;
    padding: 8px 10px;
    border-radius: 5px;
    color: #34404b !important;
    text-decoration: none;
    line-height: 1.25;
    transition: background-color .15s ease, color .15s ease;
}

.header-menu .mega-menu-item span {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.header-menu .mega-menu-item small {
    display: block;
    margin-top: 2px;
    color: #8a94a0;
    font-size: 10px;
    font-weight: 400;
}

.header-menu .mega-menu-item:hover,
.header-menu .mega-menu-item:focus {
    background: #f4f7fa;
    color: #1f456f !important;
}

.header-menu .mega-menu-item:hover small,
.header-menu .mega-menu-item:focus small {
    color: #657383;
}

.header-menu .mega-menu-item-highlight {
    background: #f4f7fa;
}

.header-menu .mega-menu-item-highlight:hover {
    background: #eaf0f6;
}

.header-menu .main-navbar-nav > .mega-dropdown > .nav-link {
    white-space: nowrap;
}

.header-menu .main-navbar-nav > .mega-dropdown > .nav-link i {
    margin-right: 4px;
    font-size: 12px;
    opacity: .9;
}

.header-menu .main-navbar-nav > .nav-item > .nav-link i {
    margin-right: 4px;
}

.header-menu .mega-menu-workspace {
    left: 0;
}

.header-menu .mega-menu-reports,
.header-menu .mega-menu-master,
.header-menu .mega-menu-filing,
.header-menu .mega-menu-admin {
    left: 0;
}

.header-menu .mega-dropdown.show > .nav-link {
    background: rgba(0,0,0,.10);
}

@media (min-width: 992px) {
    .header-menu .mega-dropdown > .mega-menu {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .header-menu {
        min-height: 64px;
        padding: 5px 0;
    }
    
    .header-menu > .container-fluid {
        flex-wrap: nowrap;
        gap: 8px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .header-menu .navbar-brand {
        min-width: auto;
        margin-right: 10px;
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }
    
    .header-menu .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        min-width: 0;
    }
    
    .header-menu .main-navbar-nav {
        flex-wrap: nowrap;
        gap: 1px;
        min-width: 0;
    }
    
    .header-menu .main-navbar-nav > .nav-item > .nav-link {
        min-height: 38px;
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 11px;
    }
    
    .header-menu .header-search-inline {
        height: 38px;
        padding: 0 10px;
        gap: 7px;
    }
    
    .header-menu .header-action-button {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 8px;
    }
    
    .header-menu .user-account-toggle {
        min-height: 38px;
        max-width: 175px;
        gap: 7px;
        padding: 3px 8px 3px 4px;
        border-radius: 8px;
    }
    
    .header-menu .user-account-avatar {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }
    
    .header-menu .user-account-name {
        max-width: 112px;
        font-size: 11px;
    }
    
    .header-menu .user-account-caption {
        font-size: 9px;
    }
    
    .header-menu .header-actions {
        flex-wrap: nowrap;
        gap: 7px;
        margin-left: auto;
        padding: 0;
        border: 0;
        flex: 0 0 auto;
        min-width: 0;
    }
}

/* Notification dropdown: anchor to bell and prevent full-width stretching */
/* ============================================================
   TEMPLATE HEADER STYLES (moved from template_header.php)
   Layout and component sizing for the LODS header/search/menus.
   ============================================================ */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .header-menu .main-navbar-nav {
        gap: 2px;
    }
    
    .header-menu .main-navbar-nav > .nav-item > .nav-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 12px;
    }
    
    .header-menu .navbar-brand {
        min-width: 100px;
        margin-right: 6px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* LODS navbar alignment and account controls */
.header-menu {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 60px;
    height: 56px;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1050;
    padding-top: 6px;
    padding-bottom: 6px;
}

.header-menu > .container-fluid {
    gap: 12px;
}

.header-menu .navbar-collapse {
    height: 56px;
    min-height: 56px;
    align-items: center;
    min-width: 0;
}

.header-menu .main-navbar-nav > .nav-item > .nav-link:hover,
.header-menu .main-navbar-nav > .nav-item > .nav-link:focus,
.header-menu .main-navbar-nav > .nav-item.show > .nav-link {
    background: rgba(255,255,255,.12);
}

.header-menu .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.header-menu .header-action-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    color: #fff;
    background: rgba(9,25,46,.42);
    text-decoration: none;
    line-height: 1;
}

/* The bell is centered independently of Bootstrap's dropdown caret. */
.header-menu #notif_dropdown > .header-action-button > .fa-bell {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 1;
    transform: translateY(0);
}

.header-menu #notif_dropdown > .header-action-button.dropdown-toggle::after {
    position: absolute;
    top: 50%;
    right: 5px;
    margin: 0;
    transform: translateY(-50%);
}

.header-menu .header-action-button:hover,
.header-menu .header-action-button:focus,
.header-menu .header-action-button[aria-expanded="true"] {
    color: #fff;
    background: rgba(9,25,46,.62);
    border-color: rgba(255,255,255,.45);
}

.header-menu #notif_badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 16px;
    padding: 3px 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid var(--bs-primary);
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.header-menu .user-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    max-width: 220px;
    padding: 4px 10px 4px 5px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 9px;
    color: #fff;
    background: rgba(9,25,46,.48);
    text-decoration: none;
}

.header-menu .user-account-toggle:hover,
.header-menu .user-account-toggle:focus,
.header-menu .user-account-toggle[aria-expanded="true"] {
    color: #fff;
    border-color: rgba(255,255,255,.65);
    background: rgba(9,25,46,.62);
}

.header-menu .user-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(9,25,46,.62);
    font-size: 20px;
}

.header-menu .user-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-menu .user-account-name {
    display: block;
    max-width: 145px;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-menu .user-account-caption {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    line-height: 1.2;
    text-align: left;
}

.header-menu .user-menu {
    max-width: 300px;
    width: 285px;
    min-width: 230px;
    margin-top: 8px !important;
    padding: 8px;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,.16);
    overflow: hidden;
}

.header-menu .user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.header-menu .user-menu .dropdown-item i {
    width: 16px;
    color: #64748b;
    text-align: center;
}

.header-menu .user-menu .dropdown-item.text-danger i {
    color: inherit;
}

.header-menu .notification-menu {
    display: block;
    width: 360px;
    min-width: 320px;
    max-width: calc(100vw - 20px);
    max-height: min(420px, calc(100vh - 90px));
    margin-top: 8px !important;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,.16);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Always-visible navbar search */
.header-menu .header-search-inline {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 8px;
    background: rgba(9,25,46,.48);
    color: rgba(255,255,255,.88);
}

.header-menu .header-search-inline:focus-within {
    border-color: rgba(255,255,255,.72);
    background: rgba(9,25,46,.68);
    box-shadow: 0 0 0 2px rgba(255,255,255,.08);
}

.header-menu .header-search-inline > i {
    font-size: 14px;
}

.header-menu .header-search-inline input {
    height: 100%;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12px;
}

.header-menu .header-search-inline input::placeholder {
    color: rgba(255,255,255,.68);
    opacity: 1;
}

@media (max-width: 1199.98px) {
}

/* Final desktop navbar sizing overrides */
/* Final navbar balance: compact desktop controls and a single-line header */
@media (min-width: 1200px) {
    .header-menu .main-navbar-nav > .nav-item > .nav-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 11.5px;
    }
    
    .header-menu .user-account-toggle {
        max-width: 190px;
    }
    
    .header-menu .user-account-name {
        max-width: 125px;
    }
}

/* Navbar action alignment: retain original control dimensions. */
.header-menu .header-actions,
.header-menu .header-actions > ul,
.header-menu .header-actions > ul > li,
.header-menu .header-action-button {
    align-items: center;
}

.header-menu .header-actions > ul,
.header-menu .header-actions > ul > li {
    display: flex;
}

.header-menu .header-action-button > i,
.header-menu .header-action-button > .fa,
.header-menu .header-action-button > svg {
    display: block;
    line-height: 1;
    vertical-align: middle;
}

/* Keep the control interiors darker than the surrounding navbar */
.header-menu .header-search-inline,
.header-menu .header-action-button,
.header-menu .user-account-toggle {
    background: rgba(7, 22, 42, .48);
}

.header-menu .header-search-inline:focus-within,
.header-menu .header-action-button:hover,
.header-menu .header-action-button:focus,
.header-menu .header-action-button[aria-expanded="true"],
.header-menu .user-account-toggle:hover,
.header-menu .user-account-toggle:focus,
.header-menu .user-account-toggle[aria-expanded="true"] {
    background: rgba(7, 22, 42, .68);
}

/* Notification dropdown: anchor to bell and prevent full-width stretching */
.header-menu #notif_dropdown {
    position: relative !important;
}

.header-menu #notif_dropdown > .notification-menu,
.header-menu #notif_list.notification-menu {
    position: absolute !important;
    inset: auto 0 auto auto !important;
    top: 100% !important;
    width: 360px !important;
    min-width: 320px !important;
    max-width: min(360px, calc(100vw - 24px)) !important;
    max-height: min(420px, calc(100vh - 90px)) !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    display: none;
    z-index: 1080 !important;
    box-sizing: border-box !important;
}

.header-menu #notif_dropdown > .notification-menu.show,
.header-menu #notif_list.notification-menu.show {
    display: block !important;
}

/* ============================================================
   TEMPLATE HEADER INLINE CSS (MIGRATED)
   Moved from template_header.php; retained as baseline styling.
   Theme files loaded after this file override colors only.
   ============================================================ */
.header-menu .navbar-brand {
    min-width: 116px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;


    padding-top: 8px;
    padding-bottom: 8px;
}

.header-menu .main-navbar-nav {
    gap: 3px;
    align-items: center;
    flex-wrap: wrap;
}

.header-menu .main-navbar-nav > .nav-item > .nav-link {
    white-space: nowrap;
    padding-left: 12px !important;
    padding-right: 12px !important;
    display: flex;
    align-items: center;
    min-height: 42px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .015em;
}

.header-menu .header-search-toggle {
    width: 44px;
    min-width: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.header-menu .header-search-toggle:hover,
.header-menu .header-search-toggle:focus,
.header-menu .header-search-toggle.active {
    background: rgba(0,0,0,.10);
    color: #fff;
    outline: none;
}

.header-search-panel {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1060;
    display: none;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #dfe4ea;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.header-search-panel.show {
    display: block;
}

.header-search-panel .search-inner {
    max-width: 760px;
    margin: 0 auto;
}

.header-search-panel .search-box {
    display: flex;
    align-items: center;
    height: 42px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.header-search-panel .search-icon {
    width: 44px;
    text-align: center;
    color: #6c7783;
}

.header-search-panel input {
    flex: 1;
    height: 40px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 13px;
    background: #fff !important;
    color: #222 !important;
}

.header-search-panel button {
    height: 42px;
    padding: 0 18px;
    border: 0;
    background: var(--bs-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.header-menu .mega-dropdown {
    position: relative;
}

.header-menu .mega-dropdown > .mega-menu {
    width: min(1120px, calc(100vw - 30px));
    min-width: 0;
    margin-top: 0;
    padding: 0;
    border: 1px solid #d9dee5;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
    overflow: hidden;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
}

.header-menu .mega-menu {
    width: fit-content !important;
    max-width: calc(100vw - 30px) !important;
    padding: 16px 18px;
}

.header-menu .mega-menu-inner {
    display: grid;
    grid-template-columns: max-content;
    gap: 0;
    padding: 18px;
    width: max-content;
    max-width: 100%;
}

.header-menu .mega-menu-cols-1 {
    width: fit-content !important;
    min-width: 0 !important;
    max-width: min(376px, calc(100vw - 30px)) !important;
}

.header-menu .mega-menu-cols-1 .mega-menu-inner {
    grid-template-columns: max-content;
    width: max-content;
    max-width: 100%;
}

.header-menu .mega-menu-cols-2 {
    width: min(716px, calc(100vw - 30px));
}

.header-menu .mega-menu-cols-2 .mega-menu-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.header-menu .mega-menu-cols-3 {
    width: min(1056px, calc(100vw - 30px));
}

.header-menu .mega-menu-cols-3 .mega-menu-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.header-menu .mega-menu-cols-4 {
    width: min(1080px, calc(100vw - 30px));
}

.header-menu .mega-menu-cols-4 .mega-menu-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.header-menu .mega-menu-reports .mega-menu-inner {
    grid-template-columns: 1fr;
}

.header-menu .mega-menu-reports .mega-menu-reports-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
}

.header-menu .mega-menu .mega-menu-item {
    position: relative;
}

.header-menu .mega-menu .mega-menu-item i.menu-item-icon {

    width: 18px;
    margin-right: 5px;
    color: #527395;
}

.header-menu .mega-menu .mega-menu-item span {
    display: inline;
}

.header-menu .mega-menu .mega-menu-item small {
    margin-left: 23px;
}

.header-menu .mega-menu .mega-menu-heading {
    white-space: nowrap;
}

.header-menu .mega-menu-reports .mega-menu-reports-column {
    padding-right: 18px;
}

.header-menu .mega-menu-reports .mega-menu-reports-column + .mega-menu-reports-column {
    padding-left: 18px;
    border-left: 1px solid #e7ebf0;
}

.header-menu .nav-current {
    background: rgba(0,0,0,.10) !important;
}

/* Canonical desktop navbar search sizing: one fixed-width control, no flex expansion. */
/* Canonical navbar search sizing: single source of truth. */
.header-menu .header-actions > form.header-search-inline {
    box-sizing: border-box;
    width: clamp(220px, 22vw, 330px);
    min-width: 220px;
    max-width: 330px;
    flex: 0 1 330px;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .header-menu .header-search-inline {
        width: 250px;
        min-width: 220px;
        max-width: 250px;
        flex: 0 1 250px;
    }
}

@media (max-width: 991.98px) {
    .header-menu .header-search-inline {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 1 1 100%;
    }
}


/* =========================================================
   LODS NAVBAR — refined alignment based on supplied screenshot
   Layout only. Theme colors remain in theme.css/theme_dark.css.
   ========================================================= */
.header-menu {
    box-sizing: border-box;
    height: 80px !important;
    min-height: 80px !important;
    padding: 0 !important;
}

.header-menu > .container-fluid {
    box-sizing: border-box;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-menu .navbar-brand {
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex: 0 0 auto;
    margin: 0 16px 0 0;
    padding: 0;
    line-height: 1;
}

.header-menu .navbar-collapse {
    height: 100% !important;
    min-height: 0 !important;
    align-items: center;
}

.header-menu .main-navbar-nav {
    display: flex;
    align-items: center;
    align-self: center;
    height: 100%;
    gap: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.header-menu .main-navbar-nav > .nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-menu .main-navbar-nav > .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 10px !important;
    font-size: 14px !important;
    line-height: 1.2;
    white-space: nowrap;
}

.header-menu .header-actions {
    display: flex;
    align-items: center !important;
    align-self: center;
    height: 52px;
    min-height: 52px;
    gap: 8px;
    margin: 0 0 0 auto !important;
}

.header-menu .header-actions > form.header-search-inline {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    align-self: center;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    width: clamp(240px, 22vw, 360px);
    min-width: 220px;
    max-width: 360px;
    flex: 0 1 360px;
}

.header-menu .header-search-inline > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}

.header-menu .header-search-inline input {
    box-sizing: border-box;
    height: 100% !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.2;
}

.header-menu #notif_dropdown,
.header-menu .header-actions > ul,
.header-menu .header-actions > ul > li {
    display: flex;
    align-items: center !important;
    align-self: center;
    height: 52px;
    min-height: 52px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.header-menu .header-action-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    align-self: center;
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.header-menu .user-account-toggle {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center !important;
    align-self: center;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 4px 10px 4px 5px !important;
    gap: 8px;
    line-height: 1.1;
}

.header-menu .user-account-avatar {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 40px;
}

.header-menu .user-account-name {
    font-size: 13px !important;
    line-height: 1.2 !important;
}

.header-menu .user-account-caption {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.header-menu .header-action-button > i,
.header-menu .header-action-button > .fa,
.header-menu .header-action-button > svg {
    display: block;
    margin: 0;
    line-height: 1;
}

/* Tablet: preserve alignment while allowing the search to contract. */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .header-menu .main-navbar-nav > .nav-item > .nav-link {
        padding-left: 7px !important;
        padding-right: 7px !important;
        font-size: 12px !important;
    }

    .header-menu .header-actions > form.header-search-inline {
        width: 230px;
        min-width: 190px;
        max-width: 230px;
        flex-basis: 230px;
    }

    .header-menu .user-account-toggle {
        max-width: 190px;
    }
}

@media (max-width: 991.98px) {
    .header-menu {
        height: auto !important;
        min-height: 64px !important;
    }

    .header-menu > .container-fluid {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .header-menu .navbar-collapse {
        height: auto !important;
        min-height: 0 !important;
    }

    .header-menu .header-actions {
        width: 100%;
        height: auto;
        min-height: 52px;
        flex-wrap: wrap;
        margin-left: 0 !important;
    }

    .header-menu .header-actions > form.header-search-inline {
        flex: 1 1 220px;
        width: auto;
        min-width: 0;
        max-width: none;
    }
}


/* =========================================================
   LODS COMPACT DENSITY — layout and typography only
   Reduce navbar height and restore compact content typography.
   ========================================================= */
html,
body {
    font-size: 12px !important;
    line-height: 1.4;
}

body {
    font-size: 12px !important;
}

h1 { font-size: 22px !important; }
h2 { font-size: 19px !important; }
h3 { font-size: 17px !important; }
h4 { font-size: 15px !important; }
h5 { font-size: 13px !important; }
h6 { font-size: 12px !important; }

p,
li,
label,
.form-label,
.form-text,
.form-control,
.form-select,
.input-group-text,
.btn,
.dropdown-menu,
.dropdown-item,
.list-group-item,
.card-body,
.modal-body,
.alert,
.breadcrumb,
.pagination,
.table,
.table td,
.table th {
    font-size: 12px;
}

.table td,
.table th {
    padding-top: 5px;
    padding-bottom: 5px;
}

.btn,
.form-control,
.form-select,
.input-group-text {
    line-height: 1.35;
}

.header-menu {
    height: 64px !important;
    min-height: 64px !important;
}

.header-menu > .container-fluid {
    min-height: 64px !important;
}

.header-menu .navbar-brand {
    font-size: 22px !important;
}

.header-menu .main-navbar-nav > .nav-item > .nav-link {
    min-height: 36px;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 12px !important;
}

.header-menu .header-actions {
    height: 42px;
    min-height: 42px;
    gap: 6px;
}

.header-menu .header-actions > form.header-search-inline {
    height: 42px !important;
    min-height: 42px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
}

.header-menu .header-search-inline input {
    font-size: 12px !important;
}

.header-menu #notif_dropdown,
.header-menu .header-actions > ul,
.header-menu .header-actions > ul > li {
    height: 42px;
    min-height: 42px;
}

.header-menu .header-action-button {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
}

.header-menu .user-account-toggle {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 3px 8px 3px 4px !important;
    gap: 6px;
}

.header-menu .user-account-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-basis: 32px;
}

.header-menu .user-account-name {
    font-size: 11px !important;
}

.header-menu .user-account-caption {
    font-size: 10px !important;
}

@media (max-width: 991.98px) {
    .header-menu {
        height: auto !important;
        min-height: 56px !important;
    }

    .header-menu > .container-fluid {
        min-height: 56px !important;
    }
}


/* =========================================================
   FINAL TYPOGRAPHY STANDARD
   - Body and table text: Calibri, 13px.
   - Headings retain Bootstrap's default font family.
   - Text weight is capped at 600; icon fonts keep their own settings.
   ========================================================= */

:root {
    --lods-font-size: 13px;
    --lods-font-family: Calibri, Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--lods-font-family) !important;
    font-size: var(--lods-font-size) !important;
    line-height: 1.4;
}

/* Normalize common page text and controls without changing heading sizes. */
body p,
body li,
body label,
body .form-label,
body .form-text,
body .text-muted,
body .form-control,
body .form-select,
body .input-group-text,
body .btn,
body .dropdown-menu,
body .dropdown-item,
body .list-group-item,
body .card-body,
body .modal-body,
body .alert,
body .breadcrumb,
body .pagination,
body .page-link {
    font-family: var(--lods-font-family) !important;
    font-size: var(--lods-font-size) !important;
    font-weight: 400;
    line-height: 1.4;
}

/* Tables use one consistent font size throughout the table structure. */
body table,
body table thead,
body table tbody,
body table tfoot,
body table tr,
body table th,
body table td,
body table caption,
body table th *,
body table td * {
    font-family: var(--lods-font-family) !important;
    font-size: var(--lods-font-size) !important;
    font-weight: 400;
    line-height: 1.35;
}

body .table {
    --bs-table-font-size: var(--lods-font-size);
    font-size: var(--lods-font-size) !important;
}

/* Bootstrap heading font family and scale remain intact. */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .h1,
body .h2,
body .h3,
body .h4,
body .h5,
body .h6 {
    font-family: var(--bs-font-sans-serif) !important;
    font-weight: 600 !important;
}

/* Semibold is the maximum weight for emphasized text. */
body strong,
body b,
body .fw-semibold,
body .fw-bold,
body .fw-bolder,
body .font-weight-bold,
body .badge,
body .label,
body .status-badge,
body table strong,
body table b,
body table .fw-semibold,
body table .fw-bold,
body table .fw-bolder,
body table .font-weight-bold {
    font-weight: 600 !important;
}

/* Preserve icon fonts and glyph weights; icons are not text boldness. */
body .fa,
body [class^="fa-"],
body [class*=" fa-"],
body .fas,
body .far,
body .fal,
body .fab,
body .fa-solid,
body .fa-regular,
body .fa-brands,
body .glyphicon,
body [class^="glyphicon-"],
body [class*=" glyphicon-"] {
    font-family: FontAwesome, "Font Awesome 5 Free", "Font Awesome 5 Brands", "Glyphicons Halflings" !important;
}

body .fas,
body .fa-solid,
body [class^="fa-solid"],
body [class*=" fa-solid"] {
    font-weight: 900 !important;
}

body .far,
body .fa-regular,
body [class^="fa-regular"],
body [class*=" fa-regular"],
body .fab,
body .fa-brands,
body [class^="fa-brands"],
body [class*=" fa-brands"] {
    font-weight: 400 !important;
}

/* DataTables sorting pseudo-icons retain the correct icon font. */
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after,
table.dataTable thead td.sorting::before,
table.dataTable thead td.sorting::after,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead td.sorting_asc::before,
table.dataTable thead td.sorting_asc::after,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_desc::after,
table.dataTable thead td.sorting_desc::before,
table.dataTable thead td.sorting_desc::after,
table.dataTable thead th.sorting_asc_disabled::before,
table.dataTable thead th.sorting_asc_disabled::after,
table.dataTable thead td.sorting_asc_disabled::before,
table.dataTable thead td.sorting_asc_disabled::after,
table.dataTable thead th.sorting_desc_disabled::before,
table.dataTable thead th.sorting_desc_disabled::after,
table.dataTable thead td.sorting_desc_disabled::before,
table.dataTable thead td.sorting_desc_disabled::after {
    font-family: "Font Awesome 6 Free", FontAwesome, sans-serif !important;
    font-weight: 900 !important;
}


/* =========================================================
   FINAL NAVBAR TUNING
   - Slightly shorter navbar (60px).
   - More breathing room between menu items.
   - Hover/active background stays at about 80% navbar height.
   ========================================================= */
.header-menu {
    height: 60px !important;
    min-height: 60px !important;
}

.header-menu > .container-fluid {
    min-height: 60px !important;
}

.header-menu .navbar-collapse,
.header-menu .main-navbar-nav {
    height: 100%;
    align-items: center;
}

.header-menu .main-navbar-nav {
    gap: 5px;
}

.header-menu .main-navbar-nav > .nav-item {
    height: 100%;
    align-items: center;
}

.header-menu .main-navbar-nav > .nav-item > .nav-link {
    min-height: 48px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-radius: 5px;
}

@media (max-width: 991.98px) {
    .header-menu {
        height: auto !important;
        min-height: 56px !important;
    }

    .header-menu > .container-fluid {
        min-height: 56px !important;
    }

    .header-menu .main-navbar-nav {
        gap: 4px;
    }

    .header-menu .main-navbar-nav > .nav-item > .nav-link {
        min-height: 44px;
    }
}


/* ============================================================
   LODS UI CONSISTENCY PATCH
   Buttons and pagination sizing only. Load after Bootstrap.
   ============================================================ */
.btn,
button.btn,
input[type="button"].btn,
input[type="submit"].btn,
input[type="reset"].btn {
    font-size: 12px;
    line-height: 1.25;
    padding: 5px 10px;
}

.btn-sm,
.btn-group-sm > .btn,
.btn-group-sm > button.btn {
    font-size: 11px;
    line-height: 1.25;
    padding: 4px 8px;
}

.btn-lg,
.btn-group-lg > .btn {
    font-size: 13px;
    line-height: 1.25;
    padding: 7px 12px;
}

.btn .fa,
.btn [class^="fa-"],
.btn [class*=" fa-"] {
    font-size: 1em;
    line-height: 1;
    vertical-align: -0.02em;
}

.pagination,
.pagination .page-link,
.lods-pagination .page-link {
    font-size: 11px;
    line-height: 1;
}

.pagination {
    gap: 0;
    margin-bottom: 0;
}

.pagination .page-link,
.lods-pagination .page-link {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link,
.lods-pagination .page-item:first-child .page-link,
.lods-pagination .page-item:last-child .page-link {
    min-width: 30px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dt-container .dt-paging .dt-paging-button {
    font-size: 11px !important;
    line-height: 1.1 !important;
    padding: 4px 8px !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dt-container .dt-info,
.dt-container .dt-length,
.dt-container .dt-search {
    font-size: 11px;
}
