.extra-small .dropdown-toggle {
    margin-top: 8px;
    font-size: 0.85rem; /* Adjust the font size as needed */
    padding: 0.25rem 0.5rem; /* Adjust padding as needed */
}

.extra-small .dropdown-menu {
    font-size: 0.85rem; /* Adjust the font size for dropdown items */
    padding: 0.25rem 0.5rem; /* Adjust padding for dropdown items */
}

.small-dialog-content {
    font-size: 0.85rem; /* Smaller font size for dialog content */
}

.small-dialog-buttons .btn {
    font-size: 0.75rem; /* Smaller font size for buttons */
    padding: 0.25rem 0.8rem; /* Smaller padding for buttons */
}
.rz-dropdown-items-wrapper {
    max-height: 450px !important; /* Adjust height as needed */
    overflow-y: auto;
}
/*---------*/
.dropdown-container {
    position: relative;
    width: 300px;
}
.custom-dropdown-height .rz-dropdown-items-wrapper {
    max-height: 400px !important;
}
.rz-menuitem, .rz-autocomplete-list-item, .rz-multiselect-item, .rz-autocomplete-items li, .rz-dropdown-items li, .rz-multiselect-items li, .rz-dropdown-item {
    padding: 0.15rem 1rem !important;
}

.custom-dropdown {
    position: relative;
}

.dropdown-toggle {
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    background-color: white;
    color: black;
}

    .dropdown-toggle:active {
        background-color: #f8f9fa;
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ced4da;
    background-color: white;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 0.375rem 0.75rem;
    cursor: pointer;
}

.dropdown-divider {
    padding: 0.0rem 0.1rem;
    background-color: #e9ecef;
    font-weight: bold;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.small-tabs .nav-link {
    padding: 0.25rem 0.5rem; /* Adjust padding for smaller tabs */
    font-size: 0.80rem; /* Adjust font size */
}
.fixed-size-img {
    height: 75px; /* Set your desired height */
    object-fit: contain; /* Ensure the image covers the entire area without distortion */
}

.qr-size-img {
    height: 95px; /* Set your desired height */
    object-fit: contain; /* Ensure the image covers the entire area without distortion */
}
.custom-callout-container {
    margin: 0; /* Remove all margins */
    padding: 0; /* Remove all paddings */
}

.small-dialog-content {
    font-size: 0.85rem; /* Smaller font size for dialog content */
}

.small-dialog-buttons .btn {
    font-size: 0.75rem; /* Smaller font size for buttons */
    padding: 0.25rem 0.8rem; /* Smaller padding for buttons */
}

.design-in-design-grid .rz-column-title,
.design-revision-grid .rz-column-title {
    white-space: nowrap !important;
    display: inline-block !important;
}

.design-in-design-grid th .column-header,
.design-revision-grid th .column-header {
    display: inline-block;
    width: 100%;
}


/* Header cells: never clip, never wrap */
.design-in-design-grid .rz-datatable-thead th,
.design-in-revision-grid .rz-datatable-thead th{
    white-space: nowrap !important;
    overflow: visible !important;
    padding: 4px 8px !important;
    vertical-align: middle !important;
}

.design-in-design-grid .rz-column-title,
.design-in-revision-grid .rz-column-title {
    white-space: nowrap !important;
    display: inline-block !important;
}

.design-in-design-grid th .column-header,
.design-in-revision-grid th .column-header {
    display: inline-block;
    width: 100%;
}
/* Column header text */
.design-in-design-grid .column-header,
.design-in-revision-grid .column-header {
    white-space: nowrap !important;
    display: block;
}

/* Data cells: never wrap, compact padding */
.design-in-design-grid .rz-data-row td,
.design-in-revision-grid .rz-data-row td {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 8px !important;
    font-size: 0.80rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0 !important;
    max-width: 200px;
}

/* Left status border on first cell of each row */
.design-in-design-grid .rz-data-row td:first-child,
.design-in-revision-grid .rz-data-row td:first-child {
    border-left: 5px solid #e8a0a0 !important;
}

.design-in-design-grid .rz-data-row.row-status-in-design td:first-child,
.design-in-revision-grid .rz-data-row.row-status-in-revision td:first-child {
    border-left: 5px solid #82c9a0 !important;
}

.design-in-design-grid .rz-data-row.row-status-on-hold td:first-child,
.design-in-revision-grid .rz-data-row.row-status-on-hold td:first-child {
    border-left: 5px solid #c0392b !important;
}

.design-in-design-grid .rz-data-row.row-status-additional-round td:first-child,
.design-in-revision-grid .rz-data-row.row-status-additional-round td:first-child {
    border-left: 5px solid #f0a500 !important;
}

/* Hover */
.design-in-design-grid .rz-data-row:hover td,
.design-in-revision-grid .rz-data-row:hover td {
    filter: brightness(0.96);
}

/* Group header row */
.design-in-design-grid .rz-group-header-row > td,
.design-in-revision-grid .rz-group-header-row > td {
    background-color: #eef2f7 !important;
    border-top: 2px solid #b8cfe8 !important;
    border-bottom: 1px solid #b8cfe8 !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
}


.group-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.group-header-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
}

.group-header-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    padding-right: 8px;
}
#content-to-export,
.container-lg,
.card,
.row {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

/* Target print media directly */
@media print {
    html, body {
        height: 100%;
        overflow: hidden !important;
    }

    .min-vh-100 {
        min-height: auto !important;
        height: 100% !important;
    }

    .card {
        margin-bottom: 0.25rem !important;
    }

   /* p, small, span {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    h1, h2, h5, .title {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }*/

    .sticky-note, .sticky-note2 {
        width: 100% !important;
        padding: 4px 8px !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
}

/* =========================================================
   Order ID Cell & Status/Flag Micro-Badges
   ========================================================= */
.order-id-cell {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1;
}

.order-id-link {
    cursor: pointer;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.order-id-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.order-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 0.7rem;
    line-height: 1;
    flex-shrink: 0;
}

.order-flag-rush {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.order-flag-xmas {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.order-flag-sample {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.order-flag-intl {
    background-color: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.order-type-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 5px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 4px;
    line-height: 1;
    text-transform: uppercase;
    flex-shrink: 0;
}

.order-type-rpr {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.order-type-rmk {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* =========================================================
   OrderList Professional Search Filters Panel
   ========================================================= */
.order-filter-panel {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
}

.order-filter-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.order-filter-panel .form-control-sm,
.order-filter-panel .form-select-sm {
    height: 32px;
    font-size: 0.8125rem;
    border-color: #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.order-filter-panel .form-control-sm:focus,
.order-filter-panel .form-select-sm:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.order-filter-panel .rz-dropdown {
    height: 32px !important;
    min-height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 8px !important;
}

.order-filter-panel .rz-dropdown .rz-dropdown-label {
    font-size: 0.8125rem !important;
    color: #1e293b !important;
    padding: 0 !important;
    line-height: 30px !important;
}

.order-filter-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.order-type-chip-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.order-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.order-type-chip:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
}

.order-filter-apply-btn {
    height: 32px;
    padding: 0 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   Order List Page Header & Table Loading Animation
   ========================================================= */
.order-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.order-table-wrapper {
    position: relative;
    overflow-x: auto;
    width: 100%;
    min-height: 360px;
    border-radius: 6px;
}

.order-table-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 6px;
}

.order-loading-spinner {
    width: 2.4rem;
    height: 2.4rem;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: orderSpin 0.75s linear infinite;
}

@keyframes orderSpin {
    to {
        transform: rotate(360deg);
    }
}