
 body {
    background: #f8f8f8 !important;
}

.page-title-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 12px 0;
    text-align: center; /* center text */
}

/* ===== Select2 compact select ===== */
.select2-container .select2-selection--single {
    height: 31px !important;
    min-height: 31px !important;
    padding: 0.15rem 0.5rem !important;
    font-size: 0.725rem !important;
}

.select2-container .select2-selection__rendered {
    line-height: 28px !important;
}

.select2-container .select2-selection__arrow {
    height: 29px !important;
}

/* ===== COMPACT DROPDOWN OPTIONS (THIS FIXES YOUR ISSUE) ===== */
.select2-dropdown {
    font-size: 0.725rem !important;
}

.select2-results__option {
    padding: 4px 8px !important;
    min-height: auto !important;
}

.select2-search--dropdown .select2-search__field {
    padding: 4px 6px !important;
    font-size: 0.725rem !important;
}

.form-group {
        margin-bottom: 1rem; /* Reduce bottom margin of form groups */
    }

select.form-control:not([size]):not([multiple]) {
    height: calc(1.8125rem + 2px) !important; /* your desired height */
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    font-size: 0.8rem; /* smaller font */
}

.form-control, .input-group-text, .custom-select, .custom-file-label {
    background-color: #f5f5f5 !important;
}

.col_bg_gray{
    background-color: #f5f5f5 !important;
}

thead th {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Printables */

.printableform {
    font-family: DejaVu Sans, sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Container */
.printableform .container {
    padding: 20px 30px;

}

/* Header */
.printableform .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #046635; /* divider */
}

.printableform .header img {
    max-height: 60px;
    padding-bottom: 10px;
}

.printableform .header .invoice-info {
    text-align: right;
}

/* Section */
.printableform .section {
    background: #f6f9fc;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    border: 1.5px solid #046635; /* section border */
    border-radius: 4px;
}

.printableform .section strong {
    font-size: 14px;
}

/* Table */
.printableform table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #046635; /* outer border */
}

.printableform table th {
    background: #eef1f5;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    border: 1.5px solid #046635; /* table header border */
}

.printableform table td {
    padding: 8px;
    border: 1.5px solid #046635; /* cell borders */
}

/* Info Table */
.printableform .tableinfo {
    border-collapse: unset;
    border: none;
}

.printableform .tableinfo td {
    border: none;
    padding: 0;
}

/* Summary */
.printableform .summary {
    width: 100%;
    margin-top: 10px;
    border: 2px solid #046635; /* summary box border */
}

.printableform .summary td {
    padding: 8px;
    border: 1px solid #046635;
}

.printableform .summary .label {
    text-align: right;
    font-weight: bold;
}

.printableform .summary .value {
    text-align: right;
    color: #2c3e50;
}

/* Total */
.printableform .total {
    background: #046635;
    color: white;
    font-weight: bold;
    padding: 10px;
    text-align: right;
    border: 2px solid #046635;
}

/* Payment Details */
.printableform .payment-details {
    margin-top: 20px;
    font-size: 12px;
    border-top: 1.5px dashed #046635;
    padding-top: 10px;
}

.printableform .payment-details strong {
    color: #046635;
}

/* Signature */
.printableform .signature {
    margin-top: 50px;
    font-size: 12px;
    border-top: 1.5px dashed #046635;
    padding-top: 15px;
}

.printableform .signature strong {
    color: #046635;
}

/* Notes */
.printableform .notes {
    margin-top: 20px;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}


.main-footer{
        margin-top: 0px !important;
}





/* Content Centering */



/* Title */

.topic-card {
  position: relative;
  overflow: hidden;
}

.card-caption {
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.card-caption small {
  color: #555;
}

.card-home-content {
  position: relative !important;
  height: 100% !important;
}

.topic-card-title {
  position: absolute !important;
  bottom: 10px !important;     /* distance from bottom edge */
  left: 0;
  right: 0;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-align: center !important;
  line-height: 1.3 !important;
  z-index: 8;
}

.card-icon-bg {
  position: absolute;
  inset: 0;                /* fill the entire card */
  background-size: cover;  /* ensures it covers fully */
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;              /* stays behind content */
  transition: transform 0.3s ease;
  border-radius: inherit;
}

/* Overlay Effect */
.topic-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(255, 255, 255, 0.9); /* semi-opaque overlay */
  color: #3b3b3b; /* text color */
  font-size: 12px;
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
  font-size: 1.2rem;
  border-radius: inherit; /* match card rounding */
  z-index: 10;
}

.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}


/* Hover State */
.topic-card:hover .card-overlay {
  opacity: 1;
}

.topic-card:hover .card-icon {
  transform: scale(1.05);
}

/*accordion menu*/
.accordion-item-header {
    cursor: pointer;
}

.accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease; /* Smooth animation */
    padding-left: 55px; /* indent */
}

.accordion-body.show {
    max-height: 500px; /* enough space for forms */
}

.accordion-body a {
    display: flex;
    align-items: center;
    padding: 6px 0;
    text-decoration: none;
    color: #34395e;
    font-size: 14px;
}


.accordion-body a:hover {
    color: #6777ef;
}

.accordion-body img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.accordion-item-header {
    cursor: pointer;
}

.form-control-wrap {
    white-space: normal;     
    word-break: break-word;  
    line-height: 1.4;
    height: auto;            
    min-height: 32px;        
}

/* Responsive */
@media (max-width: 768px) {
  .card-icon {
    width: 60px;
  }
  .card-home-content {
    min-height: 150px;
  }

  .card-icon-bg {
    width: 100%;
    height: 100%;
  }

}

.approval-qr-table {
    width: 50%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}

/* Table borders */
.approval-qr-table td {
    border: 1px solid #000;
    padding: 8px;
    vertical-align: middle;
}

/* Left / Right column sizing */
.approval-left {
    width: 70%;
}

.approval-right {
    width: 30%;
    text-align: center;
    vertical-align: middle;
}

/* Title styling */
.approval-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 6px;
}

/* Meta spacing */
.approval-meta div {
    margin-bottom: 4px;
}

/* QR IMAGE — PRINT ACCURATE */
.approval-qr-img {
    width: 1in;
    height: 1in;
    max-width: 1in;
    max-height: 1in;
    display: block;
    margin: 0 auto;
}

/* Label BELOW the QR */
.qr-label {
    font-size: 10px;
    margin-top: 4px;
    text-align: center;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: absolute !important;
    right: 10px;
    left: auto;
  }
}

@media (max-width: 768px) {

  .main-sidebar {
    position: fixed;
    left: -260px;
    width: 260px;
    height: 100%;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  body.sidebar-show .main-sidebar {
    left: 0;
  }

  .sidebar-menu .nav-link {
    padding: 12px 18px;
    font-size: 15px;
  }
}


.user-layout-no-sidebar .main-content {
  margin-left: 0 !important;
  
}

.user-layout-no-sidebar .main-content > .w-100 {
  margin-left: auto;
  margin-right: auto;
}


body.user-no-sidebar .main-wrapper .main-content {
  padding-top: 10px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
}

/* Let Stisla section control width */
body.user-no-sidebar .section {
  padding-left: 30px;
  padding-right: 30px;
}

/* Match section-header width naturally */
body.user-no-sidebar .section-header {
  margin-left: 0;
  margin-right: 0;
}


/* Ensure navbar always stays on top */
.main-navbar {
  position: sticky;      /* keeps it at top when scrolling */
  top: 0;
  z-index: 1050;         /* higher than content & sidebar */
}

/* Fix background layer ordering */
.navbar-bg {
  z-index: 1040;
}

/* Ensure dropdowns appear above navbar */  
.main-navbar .dropdown-menu {
  z-index: 1060;
}


.icon-32 {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    flex-shrink: 0;
}


#supplierTable {
    font-size: 12px;
}

#supplierTable td,
#supplierTable th {
    padding: 4px 6px !important;
    vertical-align: middle;
}

/* prevent huge address rows */
#supplierTable td:nth-child(4) {
    max-width: 350px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* supplier modal normal */


#supplierModal {
    z-index: 1050;
}

/* dark focus overlay */
.modal-overlay-focus {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1055;
}

.modal-inner-overlay {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:1051;
}

/* ADD SUPPLIER MODAL ALWAYS ON TOP */
#addSupplierModal {
    z-index: 1060;
}

#addSupplierModal .modal-dialog {
    z-index: 1061;
}


.liq-compact {
    font-size: 12px;
}

/* inputs */
.liq-compact .form-control,
.liq-compact .form-select {
    height: 26px;
    padding: 2px 6px;
    font-size: 12px;
}

/* select arrow alignment fix */
.liq-compact select.form-control {
    padding-right: 20px;
}

/* description row tighter */
.liq-compact .liq-desc-row input {
    height: 24px;
}

/* buttons */
.liq-compact .btn {
    padding: 2px 8px;
    font-size: 12px;
}

/* remove button center */
.liq-compact .remove-row {
    line-height: 1;
}

/* totals text */
.liq-compact #liqTotal {
    font-size: 13px;
    font-weight: 600;
}

/* =====================================
   FORCE SMALL SELECT (BOOTSTRAP OVERRIDE)
===================================== */

.liq-compact select.form-control,
.liq-compact select.form-control-sm,
.liq-compact select.form-select {

    height: 22px !important;
    min-height: 22px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 4px !important;
    padding-right: 18px !important;

    font-size: 11px !important;
    line-height: 1 !important;

    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

/* remove bootstrap extra spacing */
.liq-compact .form-control-sm {
    border-radius: 3px;
}

/* dropdown arrow alignment */
.liq-compact select {
    background-position: right 4px center !important;
    background-size: 10px !important;
}

/* full width section */
.section_liq_wide .container,
.section_liq_wide .container-fluid {
    max-width: 100%;
}

/* horizontal label layout */
.liq-label {
    width: 110px;
    min-width: 110px;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.liq-item .form-control {
    flex: 1;
}

.supplier-compact .form-label {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.supplier-compact .form-control {
    font-size: 0.80rem;
    padding-top: 2px;
    padding-bottom: 2px;
    height: 28px;
}

.liq-header{
    background:#f1f3f5;
    padding:6px 10px;
    border-radius:6px;
    margin-bottom:6px;
    cursor:pointer;
    font-size:13px;
   position: relative;
}

.liq-header .remove-main-row {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.liq-body {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.liq-item.collapsed .liq-body {
    max-height: 0;
}

.liq-item.collapsed .liq-header{
    display:block !important;
}


.reimb-header{
    background:#f1f3f5;
    padding:6px 10px;
    border-radius:6px;
    margin-bottom:6px;
    cursor:pointer;
    font-size:13px;
   position: relative;
}

.reimb-header .remove-main-row {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.reimb-body {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.reimb-item.collapsed .reimb-body {
    max-height: 0;
}

.reimb-item.collapsed .reimb-header{
    display:block !important;
}

.ca-header{
    background:#f1f3f5;
    padding:6px 10px;
    border-radius:6px;
    margin-bottom:6px;
    cursor:pointer;
    font-size:13px;
}

.ca-body {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.ca-item.collapsed .ca-body {
    max-height: 0;
}

.ca-item.collapsed .ca-header{
    display:block !important;
}

.is-invalid {
    border: 2px solid #dc3545 !important;
}


.authority-deduct {
    text-align: center;
}



.authority-deduct p {
    font-style: italic;
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
}

.with-separator {
    border-bottom: 3px solid #9e9e9e;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.supplier-wrapper.d-none {
    display: none !important;
}

.category-nav {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    position: relative; /* default behavior */
    z-index: 99999;
}

.category-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.category-menu > li {
    position: relative;
}

.category-menu > li > a {
    display: block;
    padding: 5px 18px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.category-menu > li:hover {
    background: #f5f5f5;
}

/* SUBMENU */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    display: none;
}

.menu-item:hover .submenu {
    display: block;
}

/* SUB CATEGORY */
.sub-item {
    position: relative;
}

.sub-item > a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

/* THIRD LEVEL */
.sub-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    display: none;
}

.sub-item:hover .sub-submenu {
    display: block;
}

.travel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
}

/* Compact DataTables */
table.dataTable {
    font-size: 12px;
}

table.dataTable thead th,
table.dataTable tbody td {
    padding: 4px 6px !important;
    vertical-align: middle !important;
}

/* Compact buttons */
table.dataTable .btn {
    padding: 0.15rem 0.4rem;
    font-size: 11px;
}

/* Compact badges */
table.dataTable .badge {
    font-size: 11px;
    padding: 0.35em 0.5em;
}

/* Compact filter and length controls */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    padding: 0.2rem 0.4rem;
    font-size: 12px;
}

/* Compact pagination */
.dataTables_wrapper .paginate_button {
    padding: 0.2rem 0.5rem !important;
    font-size: 12px;
}

/* Reduce row height */
table.dataTable tbody tr {
    height: 32px;
}