.select2-container .select2-selection--single{
    height: 38px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
        line-height: 38px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
        height: 38px !important;
}

.quantityInput{
    width: 50px !important;
    padding: 6px 3px;
    text-align: center;
    border: 1px solid #cfb1b1;
    outline: 0;
    margin-right: 1px;
    }

.dropdown-list.show { display: block; }
.dropdown-item { padding: 0.5rem 0.75rem; cursor: pointer;  }
.dropdown-item:hover { background-color: #f8f9fa; }
.dropdown-item.no-results { color: #6c757d; cursor: default; }

.search-dropdown { position: relative; }
.search-input { width:100%; padding:0.375rem 0.75rem; border:1px solid #dee2e6; border-radius:0.375rem; font-size:1rem; }
.dropdown-list { position:absolute; top:100%; left:0; right:0; max-height:200px; overflow-y:auto; background:white; border:1px solid #dee2e6; border-radius:0.375rem; margin-top: 2px; z-index:1000; display:none; box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15); }
.dropdown-list.show { display:block; }
.dropdown-item { padding:0.5rem 0.75rem; cursor:pointer; border-bottom: 1px solid #f8f9fa; }
.dropdown-item:hover { background:#f8f9fa; }
.dropdown-item.no-results { color:#6c757d; cursor:default; }

body { padding: 1.5rem; background: #f8f9fa; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.btn-group-top { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; }
.img-thumb { width:88px; height:66px; object-fit:cover; border-radius:6px; border:1px solid #e6e6e6; }
.small-muted { font-size:.85rem; color:#6c757d; }
table td, table th { vertical-align: middle; }
.placeholder-img { width:88px; height:66px; display:inline-flex; align-items:center; justify-content:center; background:#e9ecef; color:#6c757d; border-radius:6px; font-size:.8rem; }
.filter-row { display:flex; gap:0.5rem; align-items:end; flex-wrap:wrap; margin-bottom:0.01rem; }
.filter-row .form-select, .filter-row .form-control { min-width:160px; }

    .thumb {
        width: 88px;
        height: 66px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        border: 1px solid #e6e6e6;
    }
    .thumb:hover {
        opacity: 0.8;
    }

.img-thumb:hover {
    transform: scale(3);
    z-index: 10;
}

.toggle-after-sidebar {
margin-left: 35px; /* adjust as needed */
}

.navbar-brand {
    color: #D9D9D9;
    width: 300px;
    text-align: center;
    text-decoration: none;
    padding: 8px;
    display: inline-block;
    font-weight: normal;
    font-size: 13px;
}

.navbar-brand.active {
    background-color: black;
    color: #ffffff;
    font-weight: normal;
    font-size: 17px;
}

.navbar-brand.hover {
    background-color: grey;
    color: white;
    font-weight: bold;
}

.no-border {
    border: none;
}

.alert-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.alert-sm h6 {
    margin: 0;
    line-height: 1.2;
    font-size: 0.9rem; /* optional */
}

/* Optional: slightly smaller close button area */
.alert-sm .btn-close {
    padding: 0.25rem;
}

/* Invoice Viewing with table */

    @page {
        size: A4;
        margin: 10mm;
    }

    @media print {
        body {
            margin: 0;
        }
    }

    .a4-container {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    body {
        font-family: "Segoe UI", Tahoma, Arial, sans-serif;
        background: #f4f4f4;
        margin: 0;
        padding: 20px;
    }

    .invoice-wrapper {
        max-width: 900px;
        margin: auto;
        background: #fff;
        padding: 30px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    /* Header Images */
    .header-images {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .image-row {
         display: flex;
         justify-content: space-between;
         margin-top: 10mm;
    }

    .image-box {
        width: 100%;
        height: 80mm; /* adjust for your design */
        border: 1px solid #000;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .img-box:hover {
        transform: scale(2);
        z-index: 10;
    }

    .image-box img {
        max-width: 100%;
        max-height: 100%;
    }

    .title {
        text-align: center;
        font-size: 26px;
        font-weight: bold;
        margin: 20px 0;
    }

    /* Company & Invoice Info */
    .info-section {
        display: flex;
        justify-content: space-between;
        margin-bottom: 25px;
    }

    .info-box {
        width: 48%;
        font-size: 14px;
    }

    .info-box h4 {
        margin-bottom: 8px;
        font-size: 15px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 5px;
    }

    /* Table */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        font-size: 14px;
    }

    table thead {
        background: #f0f0f0;
    }

    table th, table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }

    table th {
        text-align: center;
    }

    tbody tr:nth-child(odd)  { background-color: #fff; }
    tbody tr:nth-child(even) { background-color: #f9f9f9; }

    .text-right {
        text-align: right;
    }

    /* Totals */
    .totals {
        width: 40%;
        margin-left: auto;
        margin-top: 20px;
        font-size: 14px;
    }

    .totals table {
        border: none;
    }

/* Section title styling (consistent with other asset stylesheet) */
.section-title{
    font-weight:600;
    font-size:18px;
    border-bottom:2px solid #e9ecef;
    padding-bottom:6px;
    margin-bottom:20px;
    margin-top:25px;
    color:#0d6efd;
}

    .totals td {
        border: none;
        padding: 6px 8px;
    }

    .totals tr:last-child td {
        font-weight: bold;
        border-top: 1px solid #000;
    }

    /* Footer */
    .footer {
        margin-top: 40px;
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }

    .signature {
        text-align: center;
        margin-top: 50px;
    }

    .signature span {
        display: block;
        border-top: 1px solid #000;
        width: 200px;
        margin: auto;
        padding-top: 5px;
    }

    .table tbody tr td {
        height: 30px;          /* target height */
        padding-top: 2px;      /* tweak as needed */
        padding-bottom: 2px;
        line-height: 1.2;      /* keep text compact */
    }

    .btn-mini {
        --bs-btn-padding-y: 0.15rem;
        --bs-btn-padding-x: 0.25rem;
    }

    .table.table-bordered {
        border: 0.1px solid #f3f3f3;
        border-collapse: separate; /* important */
        border-spacing: 0;

        border-radius: 8px;        /* adjust radius */
        overflow: hidden;          /* helps in some browsers */
    }

    .dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #fff;
}

.dropdown-menu-dark .dropdown-submenu:hover > a:after {
    border-left-color: #dee2e6;
}