/* ==========================================================================
   Optimized & Consolidated Custom CSS Framework
   ========================================================================== */

:root {
    --admin-primary: #4f46e5;
    --admin-primary-hover: #4338ca;
    --admin-primary-light: rgba(79, 70, 229, 0.1);
    --admin-secondary: #64748b;
    --admin-success: #10b981;
    --admin-info: #06b6d4;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-dark: #0f172a;
    --admin-bg: #f8fafc;
    --sidebar-width: 250px;
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--admin-bg);
    color: #1e293b;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: var(--admin-primary);
    text-decoration: none;
}

a:hover {
    color: var(--admin-primary-hover);
}

img {
    max-width: 100%;
}

img:not([height]) {
    height: auto;
}

.min-height-300 {
    min-height: 280px !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.end-0 {
    right: 0 !important;
}

.start-100 {
    left: 100% !important;
}

.translate-middle {
    transform: translate(-50%, -50%) !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

h1, .h1 {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2, .h2 {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
}

h3, .h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

h4, .h4 {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.35;
}

h5, .h5 {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

h6, .h6 {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.text-xs {
    font-size: clamp(0.75rem, 1vw, 0.8rem) !important;
}

.text-sm {
    font-size: clamp(0.85rem, 1.2vw, 0.94rem) !important;
}

.text-md {
    font-size: clamp(0.93rem, 1.4vw, 1.05rem) !important;
}

.text-lg {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important;
}

.text-xl {
    font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-lowercase {
    text-transform: lowercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-bold, .font-weight-bold {
    font-weight: 600 !important;
}

.fw-bolder, .font-weight-bolder {
    font-weight: 700 !important;
}

.text-primary {
    color: var(--admin-primary) !important;
}

.text-secondary {
    color: var(--admin-secondary) !important;
}

.text-success {
    color: var(--admin-success) !important;
}

.text-info {
    color: var(--admin-info) !important;
}

.text-warning {
    color: var(--admin-warning) !important;
}

.text-danger {
    color: var(--admin-danger) !important;
}

.text-dark {
    color: var(--admin-dark) !important;
}

.text-muted {
    color: #64748b !important;
}

.text-white {
    color: #ffffff !important;
}

.bg-primary {
    background-color: var(--admin-primary) !important;
    color: #fff;
}

.bg-secondary {
    background-color: var(--admin-secondary) !important;
    color: #fff;
}

.bg-success {
    background-color: var(--admin-success) !important;
    color: #fff;
}

.bg-info {
    background-color: var(--admin-info) !important;
    color: #fff;
}

.bg-warning {
    background-color: var(--admin-warning) !important;
    color: #fff;
}

.bg-danger {
    background-color: var(--admin-danger) !important;
    color: #fff;
}

.bg-dark {
    background-color: var(--admin-dark) !important;
    color: #fff;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.bg-transparent {
    background-color: transparent !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: #fff;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #6366f1 100%) !important;
    color: #fff;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%) !important;
    color: #fff;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #fff;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
    color: #fff;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: #fff;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: #fff;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #fff;
}

.container, .container-fluid {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.row > [class^="col-"], .row > [class*=" col-"] {
    flex: 0 0 auto !important;
}

.col {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-1 {
    width: 8.33333333%;
}

.col-2 {
    width: 16.66666667%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33333333%;
}

.col-5 {
    width: 41.66666667%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33333333%;
}

.col-8 {
    width: 66.66666667%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33333333%;
}

.col-11 {
    width: 91.66666667%;
}

.col-12 {
    width: 100%;
}

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

.d-inline-flex {
    display: inline-flex !important;
}

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

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

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

.d-inline-block {
    display: inline-block !important;
}

.flex-row {
    flex-direction: row !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.flex-grow-0 {
    flex-grow: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 2rem !important;
}

.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.m-auto {
    margin: auto !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.me-auto {
    margin-right: auto !important;
}

.my-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.px-1 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.badge {
    display: inline-block;
    padding: 0.45em 0.8em;
    font-size: 0.76em;
    font-weight: 700;
    border-radius: 0.4rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge-pill, .rounded-pill {
    border-radius: 50rem !important;
}

.badge-sm {
    padding: 0.3em 0.5em;
    font-size: 0.65em;
}

.badge-lg {
    padding: 0.6em 0.9em;
    font-size: 0.82em;
}

.badge-primary {
    background-color: var(--admin-primary) !important;
    color: #ffffff;
}

.badge-secondary {
    background-color: var(--admin-secondary) !important;
    color: #ffffff;
}

.badge-success {
    background-color: var(--admin-success) !important;
    color: #ffffff;
}

.badge-danger {
    background-color: var(--admin-danger) !important;
    color: #ffffff;
}

.badge-warning {
    background-color: var(--admin-warning) !important;
    color: #ffffff;
}

.badge-info {
    background-color: var(--admin-info) !important;
    color: #ffffff;
}

.badge-dark {
    background-color: var(--admin-dark) !important;
    color: #ffffff;
}

.badge-soft-primary {
    background-color: rgba(79, 70, 229, 0.12) !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
}

.badge-soft-secondary {
    background-color: rgba(100, 116, 139, 0.12) !important;
    color: #64748b !important;
    border: 1px solid rgba(100, 116, 139, 0.25) !important;
}

.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.badge-soft-info {
    background-color: rgba(6, 182, 212, 0.12) !important;
    color: #06b6d4 !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
}

.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .card-hover:hover {
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.card .card-header {
    background-color: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

.card .card-body {
    flex: 1 1 auto;
    padding: 1.25rem 1.5rem;
}

.card .card-footer {
    background-color: transparent;
    border-top: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

.card-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #0f172a;
}

.card-subtitle {
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.85rem;
}

.card-text {
    margin-bottom: 1rem;
    color: #1e293b;
}

.card-img, .card-img-top {
    width: 100%;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card-img-bottom {
    width: 100%;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.card-plain {
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.card-stats .numbers .card-category {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
}

.card-stats .numbers .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #0f172a;
}

.card-primary {
    background-color: var(--admin-primary) !important;
    color: #fff;
}

.card-secondary {
    background-color: var(--admin-secondary) !important;
    color: #fff;
}

.card-success {
    background-color: var(--admin-success) !important;
    color: #fff;
}

.card-danger {
    background-color: var(--admin-danger) !important;
    color: #fff;
}

.card-group, .card-deck {
    display: flex;
    flex-direction: column;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: #334155;
    vertical-align: middle;
    border-collapse: collapse;
}

.table thead th {
    padding: 0.85rem 1rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    text-align: left !important;
}

.table tbody td {
    padding: 0.88rem 1rem;
    font-size: 0.88rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover, .table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 250, 252, 0.7);
}

.table-bordered {
    border: 1px solid #e2e8f0;
}

.table-bordered th, .table-bordered td {
    border: 1px solid #e2e8f0;
}

.table-borderless th, .table-borderless td {
    border: 0 !important;
}

.table-sm th, .table-sm td {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.82rem !important;
}

.table-align-items-center td, .table-align-items-center th {
    vertical-align: middle !important;
}

.align-middle {
    vertical-align: middle !important;
}

.thead-light th {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

.thead-dark th {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

.table-active {
    background-color: rgba(79, 70, 229, 0.08) !important;
}

.table-primary {
    background-color: rgba(79, 70, 229, 0.1) !important;
}

.table-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.table-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.table-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.table-info {
    background-color: rgba(6, 182, 212, 0.1) !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1060;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative;
    width: 92%;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-sm {
    max-width: 300px !important;
}

.modal-lg {
    max-width: 800px !important;
}

.modal-xl {
    max-width: 1140px !important;
}

/* Fullscreen Modals */
.modal-dialog.modal-fullscreen {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-dialog.modal-fullscreen .modal-content {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.modal-dialog.modal-fullscreen .modal-body {
    overflow-y: auto !important;
}

/* Responsive Fullscreen Modals */
@media (max-width: 575.98px) {
    .modal-dialog.modal-fullscreen-sm-down {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
    }
    .modal-dialog.modal-fullscreen-sm-down .modal-content {
        height: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    .modal-dialog.modal-fullscreen-sm-down .modal-body {
        overflow-y: auto !important;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modal-fullscreen-md-down {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
    }
    .modal-dialog.modal-fullscreen-md-down .modal-content {
        height: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    .modal-dialog.modal-fullscreen-md-down .modal-body {
        overflow-y: auto !important;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-fullscreen-lg-down {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
    }
    .modal-dialog.modal-fullscreen-lg-down .modal-content {
        height: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    .modal-dialog.modal-fullscreen-lg-down .modal-body {
        overflow-y: auto !important;
    }
}

@media (max-width: 1199.98px) {
    .modal-dialog.modal-fullscreen-xl-down {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
    }
    .modal-dialog.modal-fullscreen-xl-down .modal-content {
        height: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    .modal-dialog.modal-fullscreen-xl-down .modal-body {
        overflow-y: auto !important;
    }
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

/* Close button styling */
.btn-close {
    display: inline-block !important;
    visibility: visible !important;
    box-sizing: content-box;
    width: 0.8em;
    height: 0.8em;
    padding: 0.25em 0.25em;
    color: #64748b;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.75 !important;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Tab Content Visibility Fixes */
.tab-content > .tab-pane {
    display: none !important;
}

.tab-content > .tab-pane.active {
    display: block !important;
}

.tab-content > .tab-pane.show {
    opacity: 1 !important;
}

.btn-close:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.btn-close:focus {
    outline: 0;
    box-shadow: none;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    gap: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    height: 38px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
    transform: translateY(-1px) !important;
}

.btn:active {
    transform: translateY(1px) scale(0.98) !important;
}

.btn-primary {
    background-color: var(--admin-primary);
    border-color: var(--admin-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--admin-primary-hover);
    border-color: var(--admin-primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}

.btn-secondary {
    background-color: var(--admin-secondary);
    border-color: var(--admin-secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #475569 !important;
    border-color: #475569 !important;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.25) !important;
}

.btn-success {
    background-color: var(--admin-success);
    border-color: var(--admin-success);
    color: #ffffff;
}

.btn-success:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

.btn-danger {
    background-color: var(--admin-danger);
    border-color: var(--admin-danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}

.btn-warning {
    background-color: var(--admin-warning);
    border-color: var(--admin-warning);
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

.btn-info {
    background-color: var(--admin-info);
    border-color: var(--admin-info);
    color: #ffffff;
}

.btn-info:hover {
    background-color: #0891b2 !important;
    border-color: #0891b2 !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25) !important;
}

.btn-dark {
    background-color: var(--admin-dark);
    border-color: var(--admin-dark);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #020617 !important;
    border-color: #020617 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

.btn-light {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.btn-light:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.btn-link {
    background: transparent;
    border: 0;
    color: var(--admin-primary);
}

.btn-outline-primary {
    color: var(--admin-primary);
    border-color: var(--admin-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--admin-primary);
    color: #ffffff;
}

.btn-outline-secondary {
    color: var(--admin-secondary);
    border-color: var(--admin-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--admin-secondary);
    color: #ffffff;
}

.btn-outline-danger {
    color: var(--admin-danger);
    border-color: var(--admin-danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--admin-danger);
    color: #ffffff;
}

/* Prevent anchor buttons from inheriting link hover colors */
a.btn:hover, a.btn:active, a.btn:focus {
    color: #ffffff !important;
}

a.btn-light:hover, a.btn-light:active, a.btn-light:focus {
    color: #0f172a !important;
}

.btn-sm {
    padding: 0.25rem 0.65rem;
    font-size: 0.76rem;
    border-radius: 0.375rem;
    height: 32px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.btn-lg {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0.6rem;
    height: 48px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.4em;
    vertical-align: 0.2em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    list-style: none;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.4rem 1rem;
    color: #1e293b;
    font-size: 0.875rem;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--admin-primary);
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-item {
    width: auto;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.nav-link:hover {
    color: var(--admin-primary);
}

.nav-link.active {
    color: var(--admin-primary);
    font-weight: 700;
}

.nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: var(--admin-primary);
    color: #ffffff !important;
}

.nav-tabs {
    border-bottom: 1px solid #e2e8f0;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--admin-primary);
    background-color: #fff;
    border-color: #e2e8f0 #e2e8f0 #fff;
}

.sidenav {
    position: fixed;
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: 250px;
    height: calc(100vh - 2rem);
    z-index: 1050;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidenav .sidenav-header {
    height: 65px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.sidenav .navbar-brand-img {
    max-height: 2.2rem;
    transition: transform 0.2s ease;
}

.sidebar-search-box {
    padding: 0.45rem 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background-color: #ffffff !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}

.sidebar-search-input {
    width: 100%;
    border-radius: 0.5rem !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.8rem !important;
    padding: 0.4rem 0.75rem 0.4rem 2.2rem !important;
    outline: none;
}

.sidebar-search-icon {
    position: absolute;
    left: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    font-size: 0.75rem;
    color: #94a3b8;
}

.transition-chevron {
    transition: transform 0.2s ease !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    background: transparent !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    opacity: 0.8 !important;
    display: inline-block !important;
    box-shadow: none !important;
}

.sidenav .nav-link[aria-expanded="true"] .transition-chevron {
    transform: rotate(90deg) !important;
}

.sidenav .nav-link[aria-expanded="false"] .transition-chevron {
    transform: rotate(0deg) !important;
}

.sidenav .navbar-collapse {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0.2rem 0 0.5rem 0 !important;
}

.sidenav .collapse:not(#sidenav-collapse-main) {
    display: none;
}

.sidenav .collapse:not(#sidenav-collapse-main).show {
    display: block !important;
}

.sidenav .navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.sidenav .nav-item {
    width: 100%;
}

.sidenav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.9rem;
    margin: 0.15rem 0.75rem;
    border-radius: 0.5rem;
    color: #334155;
    font-weight: 600;
    font-size: clamp(0.82rem, 0.95vw, 0.875rem);
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    position: relative;
}

.sidenav .nav-link>i:not(.transition-chevron) {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.15s ease;
}

.sidenav .nav-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    transform: translateX(3px);
}

.sidenav .nav-link:hover>i:not(.transition-chevron) {
    background-color: #ffffff;
    color: var(--admin-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidenav .nav-link.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: var(--admin-primary);
    font-weight: 700;
}

.sidenav .nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background-color: var(--admin-primary);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.sidenav .nav-link.active > i:not(.transition-chevron) {
    background-color: var(--admin-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.sidenav .nav-link.active .transition-chevron {
    color: var(--admin-primary) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sidenav .collapse .nav-link {
    margin-left: 1.5rem;
    padding: 0.4rem 0.8rem;
    font-size: clamp(0.8rem, 0.9vw, 0.84rem);
    color: #334155;
}

.navbar-main {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    position: relative;
    z-index: 1020;
}

.navbar-main .text-white, .navbar-main .nav-link.text-white, .navbar-main .btn-link.text-white, .navbar-main i.text-white, .navbar-main .breadcrumb-item.text-white, .navbar-main .breadcrumb-item.text-white a {
    color: #ffffff !important;
    opacity: 1 !important;
}

.navbar-main .breadcrumb-item a.opacity-7, .navbar-main .breadcrumb-item a.opacity-5 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-main .btn-link:hover, .navbar-main .nav-link:hover {
    opacity: 0.85;
}

.breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.8rem !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/" !important;
    padding-right: 0.4rem !important;
    padding-left: 0.4rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-nav, .navbar-nav li, .navbar-nav .nav-item, .breadcrumb, .breadcrumb li, .breadcrumb-item {
    list-style: none !important;
    list-style-type: none !important;
}

.navbar-nav li::before, .navbar-nav li::after, .nav-item::before, .nav-item::after {
    content: none !important;
}

.btn-sidebar-toggle {
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 0.5rem !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
}

.btn-nav-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.5rem !important;
    width: 38px !important;
    height: 38px !important;
}

.nav-breadcrumb-title {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
}

.badge-nav-notification {
    font-size: 0.65rem !important;
    padding: 0.25em 0.45em !important;
}

.dropdown-notification-menu {
    display: none;
    min-width: 320px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.notification-unread {
    background-color: #f8f9fa !important;
    border-radius: 6px !important;
    border-left: 3px solid #4f46e5 !important;
}

.notification-read {
    opacity: 0.65 !important;
}

.icon-shape {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    text-align: center !important;
}

.icon-shape i {
    font-size: 1.2rem !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.carousel-caption-glass {
    position: absolute !important;
    bottom: 1.25rem !important;
    left: 1.25rem !important;
    max-width: 82% !important;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    text-align: left !important;
    z-index: 10 !important;
}

.card-carousel {
    height: 340px !important;
    max-height: 340px !important;
    position: relative;
    border-radius: 1rem !important;
    overflow: hidden !important;
}

.card-carousel .carousel, .card-carousel .carousel-inner, .card-carousel .carousel-item {
    height: 340px !important;
    max-height: 340px !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
}

.card-carousel .carousel-item {
    background-size: cover !important;
    background-position: center !important;
    transition: opacity 0.4s ease-in-out !important;
}

.carousel-control-prev, .carousel-control-next {
    width: 10% !important;
    z-index: 20 !important;
}

.form-group {
    margin-bottom: 1rem !important;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.3rem !important;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
}

.row.g-3, .row.gy-3 {
    --bs-gutter-y: 1.15rem !important;
}

.row.g-4, .row.gy-4 {
    --bs-gutter-y: 1.3rem !important;
}

.form-control, .form-select, textarea.form-control {
    display: block;
    width: 100%;
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem;
    color: #1e293b;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-control:not(textarea), .form-select {
    height: 38px !important;
    box-sizing: border-box !important;
}

.form-control-sm:not(textarea), .form-select-sm {
    height: 31px !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    box-sizing: border-box !important;
}

.form-control-lg:not(textarea), .form-select-lg {
    height: 48px !important;
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
    box-sizing: border-box !important;
}

textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.form-control:focus, .form-select:focus, textarea.form-control:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background-color: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.form-control:disabled, .form-control[readonly], .form-select:disabled {
    background-color: #f1f5f9;
    opacity: 0.7;
    cursor: not-allowed;
}

.form-control-sm, .form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 0.375rem;
}

.form-control-lg, .form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.6rem;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

.form-text {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #475569;
}

.invalid-feedback {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--admin-danger);
}

.is-invalid {
    border-color: var(--admin-danger) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.is-invalid~.invalid-feedback {
    display: block;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.5rem;
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.form-check-inline {
    display: inline-flex;
    margin-right: 1rem;
}

.form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #cbd5e1;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.form-check-input[type="checkbox"], input[type="checkbox"].form-check-input {
    border-radius: 0.3em;
}

.form-check-input[type="radio"], input[type="radio"].form-check-input {
    border-radius: 50%;
}

.form-check-input:checked {
    background-color: var(--admin-primary) !important;
    border-color: var(--admin-primary) !important;
}

.form-check-input[type="checkbox"]:checked, input[type="checkbox"].form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input[type="radio"]:checked, input[type="radio"].form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='3.5' fill='%23ffffff'/%3e%3c/svg%3e") !important;
}

.form-check-input:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.form-check-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
}

.form-switch .form-check-input, .form-check-input[role="switch"], .form-check-input.form-switch, .form-check-input.status-toggle, .form-check-input.stock-toggle, input[type="checkbox"][role="switch"], input[type="checkbox"].form-switch, input[type="checkbox"].status-toggle, input[type="checkbox"].stock-toggle {
    position: relative !important;
    width: 2.6rem !important;
    height: 1.4rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #cbd5e1 !important;
    border-radius: 2rem !important;
    border: 1px solid #94a3b8 !important;
    cursor: pointer !important;
    outline: none !important;
    background-image: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.form-switch .form-check-input::after, .form-check-input[role="switch"]::after, .form-check-input.form-switch::after, .form-check-input.status-toggle::after, .form-check-input.stock-toggle::after, input[type="checkbox"][role="switch"]::after, input[type="checkbox"].form-switch::after, input[type="checkbox"].status-toggle::after, input[type="checkbox"].stock-toggle::after {
    content: '' !important;
    position: absolute !important;
    top: 1px !important;
    left: 1px !important;
    width: 1.15rem !important;
    height: 1.15rem !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-switch .form-check-input,
.form-switch .form-check-input:checked,
.form-switch input[type="checkbox"].form-check-input,
.form-switch input[type="checkbox"].form-check-input:checked,
.form-check-input[role="switch"],
.form-check-input[role="switch"]:checked,
.form-check-input.form-switch,
.form-check-input.form-switch:checked,
.form-check-input.status-toggle,
.form-check-input.status-toggle:checked,
.form-check-input.stock-toggle,
.form-check-input.stock-toggle:checked,
input[type="checkbox"][role="switch"],
input[type="checkbox"][role="switch"]:checked,
input[type="checkbox"].form-switch,
input[type="checkbox"].form-switch:checked,
input[type="checkbox"].status-toggle,
input[type="checkbox"].status-toggle:checked,
input[type="checkbox"].stock-toggle,
input[type="checkbox"].stock-toggle:checked {
    background-image: none !important;
}

.form-switch .form-check-input:checked,
.form-switch input[type="checkbox"].form-check-input:checked,
.form-check-input[role="switch"]:checked,
.form-check-input.form-switch:checked,
.form-check-input.status-toggle:checked,
.form-check-input.stock-toggle:checked,
input[type="checkbox"][role="switch"]:checked,
input[type="checkbox"].form-switch:checked,
input[type="checkbox"].status-toggle:checked,
input[type="checkbox"].stock-toggle:checked {
    background-color: var(--admin-primary) !important;
    border-color: var(--admin-primary) !important;
    background-image: none !important;
}

.form-switch .form-check-input:checked::after, .form-check-input[role="switch"]:checked::after, .form-check-input.form-switch:checked::after, .form-check-input.status-toggle:checked::after, .form-check-input.stock-toggle:checked::after, input[type="checkbox"][role="switch"]:checked::after, input[type="checkbox"].form-switch:checked::after, input[type="checkbox"].status-toggle:checked::after, input[type="checkbox"].stock-toggle:checked::after {
    transform: translateX(1.15rem) !important;
    background-color: #ffffff !important;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    border-radius: 0.5rem;
}

.input-group>.form-control, .input-group>.form-select, .input-group>.input-group-text, .input-group>.btn {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group>.input-group-text, .input-group>.btn {
    flex: 0 0 auto;
    width: auto;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
}

.input-group> :not(:first-child):not(.dropdown-menu) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

.input-group> :not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.accordion-item {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.accordion-item:last-child {
    border-bottom: 0;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #fff;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease;
}

.accordion-button:hover {
    background-color: #f8fafc;
}

.accordion-body {
    padding: 1.25rem;
    font-size: 0.85rem;
    color: #334155;
}

.progress {
    display: flex;
    height: 0.6rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: #e2e8f0;
    border-radius: 0.5rem;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: var(--admin-primary);
    transition: width 0.6s ease;
}

.spinner-border {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: -0.125em;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.toast {
    width: 350px;
    max-width: 100%;
    font-size: 0.875rem;
    pointer-events: auto;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #0f172a;
    font-weight: 600;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.toast-body {
    padding: 0.9rem 1rem;
    color: #1e293b;
    font-size: 0.88rem;
}

.alert {
    position: relative;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1rem;
    border: 0;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

.pagination {
    display: flex !important;
    padding-left: 0 !important;
    list-style: none !important;
    gap: 0.35rem !important;
    margin-bottom: 0 !important;
}

nav[role="navigation"], nav:has(.pagination), .pagination-container, .pagination-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem 1.5rem !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    margin-top: 0.5rem !important;
    clear: both !important;
}

.card-footer nav[role="navigation"], .card-footer nav:has(.pagination), .card-footer .pagination-container, .card-footer .pagination-wrapper {
    border-top: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.card-footer:has(.pagination) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem 1.5rem !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

.pagination-info, nav p.text-muted, nav .small.text-muted, nav div:first-child:has(p) {
    margin-right: auto !important;
    margin-left: 0 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.pagination-info span, nav p.text-muted span, nav .small.text-muted span {
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0.25rem !important;
}

.pagination-controls, nav ul.pagination, .pagination {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.page-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.2rem !important;
    height: 2.2rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.page-link:hover {
    color: var(--admin-primary) !important;
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.page-item.active .page-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--admin-primary) 0%, #4338ca 100%) !important;
    border-color: var(--admin-primary) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
}

.page-item.active .page-link:hover {
    transform: none !important;
}

.page-item.disabled .page-link {
    color: #94a3b8 !important;
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

td:has(.btn) {
    white-space: normal !important;
}

td:has(.update-delivery-btn) {
    min-width: 260px !important;
}

td:has(.btn) br {
    display: none !important;
}

td:has(.btn) .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 2px !important;
    vertical-align: middle !important;
}

.update-delivery-btn[data-type="delhivery"] {
    color: #ea580c !important;
    border-color: #ea580c !important;
}

.update-delivery-btn[data-type="delhivery"]:hover {
    color: #fff !important;
    background-color: #ea580c !important;
}

.update-delivery-btn[data-type="ekart"] {
    color: #1e40af !important;
    border-color: #1e40af !important;
}

.update-delivery-btn[data-type="ekart"]:hover {
    color: #fff !important;
    background-color: #1e40af !important;
}

.update-delivery-btn[data-type="icarry"] {
    color: #7e22ce !important;
    border-color: #7e22ce !important;
}

.update-delivery-btn[data-type="icarry"]:hover {
    color: #fff !important;
    background-color: #7e22ce !important;
}

.update-delivery-btn[data-type="velocity"] {
    color: #0284c7 !important;
    border-color: #0284c7 !important;
}

.update-delivery-btn[data-type="velocity"]:hover {
    color: #fff !important;
    background-color: #0284c7 !important;
}

.update-delivery-btn[data-type="shipway"] {
    color: #0d9488 !important;
    border-color: #0d9488 !important;
}

.update-delivery-btn[data-type="shipway"]:hover {
    color: #fff !important;
    background-color: #0d9488 !important;
}

.update-delivery-btn[data-type="self"] {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.update-delivery-btn[data-type="self"]:hover {
    color: #fff !important;
    background-color: #dc2626 !important;
}

.update-delivery-btn[data-type="meesho"] {
    color: #db2777 !important;
    border-color: #db2777 !important;
}

.update-delivery-btn[data-type="meesho"]:hover {
    color: #fff !important;
    background-color: #db2777 !important;
}

.update-delivery-btn[data-type="shiprocket"] {
    color: #6d28d9 !important;
    border-color: #6d28d9 !important;
}

.update-delivery-btn[data-type="shiprocket"]:hover {
    color: #fff !important;
    background-color: #6d28d9 !important;
}

.update-delivery-btn[data-type="nimbuspost"] {
    color: #f97316 !important;
    border-color: #f97316 !important;
}

.update-delivery-btn[data-type="nimbuspost"]:hover {
    color: #fff !important;
    background-color: #f97316 !important;
}

.update-delivery-btn[data-type="indiapost"] {
    color: #b91c1c !important;
    border-color: #b91c1c !important;
}

.update-delivery-btn[data-type="indiapost"]:hover {
    color: #fff !important;
    background-color: #b91c1c !important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.custom-multiselect-container {
    position: relative;
    width: 100%;
}

.custom-multiselect-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 0.8rem !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    cursor: pointer;
    user-select: none;
    font-size: 0.85rem !important;
    color: #334155 !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

.custom-multiselect-trigger:focus, .custom-multiselect-container.is-open .custom-multiselect-trigger {
    border-color: var(--admin-primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
    background-color: #ffffff !important;
    outline: none !important;
}

.custom-multiselect-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem !important;
    width: calc(100% - 24px) !important;
}

.custom-multiselect-placeholder {
    color: #94a3b8 !important;
    user-select: none;
}

.custom-multiselect-tag {
    display: inline-flex !important;
    align-items: center !important;
    background-color: var(--admin-primary) !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    padding: 0.15rem 0.45rem !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    transition: background-color 0.15s ease !important;
}

.custom-multiselect-tag:hover {
    background-color: #4338ca !important;
}

.custom-multiselect-tag-remove {
    margin-left: 0.35rem !important;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.custom-multiselect-tag-remove:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

.custom-multiselect-arrow {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    transition: transform 0.2s ease !important;
}

.custom-multiselect-container.is-open .custom-multiselect-arrow {
    transform: rotate(180deg) !important;
    color: var(--admin-primary) !important;
}

.custom-multiselect-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0.25rem !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12) !important;
    z-index: 1000 !important;
    overflow: hidden !important;
    padding: 0.35rem !important;
    box-sizing: border-box !important;
}

.custom-multiselect-search-wrap {
    position: relative !important;
    margin-bottom: 0.35rem !important;
}

.custom-multiselect-search-icon {
    position: absolute !important;
    left: 0.65rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
}

.custom-multiselect-search {
    width: 100% !important;
    border-radius: 0.375rem !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    padding: 0.35rem 0.5rem 0.35rem 1.75rem !important;
    font-size: 0.8rem !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
}

.custom-multiselect-search:focus {
    border-color: var(--admin-primary) !important;
    background-color: #ffffff !important;
}

.custom-multiselect-options {
    max-height: 200px !important;
    overflow-y: auto !important;
}

.custom-multiselect-option {
    padding: 0.45rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.825rem !important;
    color: #334155 !important;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.custom-multiselect-option:hover {
    background-color: rgba(79, 70, 229, 0.06) !important;
    color: var(--admin-primary) !important;
}

.custom-multiselect-option.is-selected {
    background-color: rgba(79, 70, 229, 0.08) !important;
    color: var(--admin-primary) !important;
    font-weight: 600 !important;
}

.custom-multiselect-option::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--admin-primary);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.custom-multiselect-option.is-selected::after {
    visibility: visible;
    opacity: 1;
}

.custom-multiselect-no-results {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    text-align: center !important;
}

.custom-image-box {
    position: relative;
    width: 100%;
    min-height: 120px;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    margin-top: 0.25rem;
}

.custom-image-box:hover, .custom-image-box.is-dragover {
    border-color: var(--admin-primary);
    background-color: rgba(79, 70, 229, 0.03);
}

.custom-image-box-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    user-select: none;
    width: 100%;
    height: 100%;
}

.custom-image-box-icon {
    font-size: 1.75rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    transition: color 0.15s ease;
}

.custom-image-box:hover .custom-image-box-icon {
    color: var(--admin-primary);
}

.custom-image-box-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.custom-image-box-preview {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
}

.custom-image-box-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
}

.custom-image-box-remove-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.95);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, background-color 0.15s ease;
    z-index: 10;
}

.custom-image-box-remove-btn:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.custom-image-box-remove-btn i {
    font-size: 0.78rem;
}

@media (min-width: 576px) {
    .col-sm-1 {
        width: 8.33333333%;
    }
    .col-sm-2 {
        width: 16.66666667%;
    }
    .col-sm-3 {
        width: 25%;
    }
    .col-sm-4 {
        width: 33.33333333%;
    }
    .col-sm-5 {
        width: 41.66666667%;
    }
    .col-sm-6 {
        width: 50%;
    }
    .col-sm-7 {
        width: 58.33333333%;
    }
    .col-sm-8 {
        width: 66.66666667%;
    }
    .col-sm-9 {
        width: 75%;
    }
    .col-sm-10 {
        width: 83.33333333%;
    }
    .col-sm-11 {
        width: 91.66666667%;
    }
    .col-sm-12 {
        width: 100%;
    }
    .d-sm-none {
        display: none !important;
    }
    .d-sm-block {
        display: block !important;
    }
    .d-sm-flex {
        display: flex !important;
    }
    .card-group, .card-deck {
        flex-flow: row wrap;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .col-md-1 {
        width: 8.33333333%;
    }
    .col-md-2 {
        width: 16.66666667%;
    }
    .col-md-3 {
        width: 25%;
    }
    .col-md-4 {
        width: 33.33333333%;
    }
    .col-md-5 {
        width: 41.66666667%;
    }
    .col-md-6 {
        width: 50%;
    }
    .col-md-7 {
        width: 58.33333333%;
    }
    .col-md-8 {
        width: 66.66666667%;
    }
    .col-md-9 {
        width: 75%;
    }
    .col-md-10 {
        width: 83.33333333%;
    }
    .col-md-11 {
        width: 91.66666667%;
    }
    .col-md-12 {
        width: 100%;
    }
    .d-md-none {
        display: none !important;
    }
    .d-md-block {
        display: block !important;
    }
    .d-md-flex {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .col-lg-1 {
        width: 8.33333333%;
    }
    .col-lg-2 {
        width: 16.66666667%;
    }
    .col-lg-3 {
        width: 25%;
    }
    .col-lg-4 {
        width: 33.33333333%;
    }
    .col-lg-5 {
        width: 41.66666667%;
    }
    .col-lg-6 {
        width: 50%;
    }
    .col-lg-7 {
        width: 58.33333333%;
    }
    .col-lg-8 {
        width: 66.66666667%;
    }
    .col-lg-9 {
        width: 75%;
    }
    .col-lg-10 {
        width: 83.33333333%;
    }
    .col-lg-11 {
        width: 91.66666667%;
    }
    .col-lg-12 {
        width: 100%;
    }
    .d-lg-none {
        display: none !important;
    }
    .d-lg-block {
        display: block !important;
    }
    .d-lg-flex {
        display: flex !important;
    }
}

@media (min-width: 1200px) {
    .col-xl-1 {
        width: 8.33333333%;
    }
    .col-xl-2 {
        width: 16.66666667%;
    }
    .col-xl-3 {
        width: 25%;
    }
    .col-xl-4 {
        width: 33.33333333%;
    }
    .col-xl-5 {
        width: 41.66666667%;
    }
    .col-xl-6 {
        width: 50%;
    }
    .col-xl-7 {
        width: 58.33333333%;
    }
    .col-xl-8 {
        width: 66.66666667%;
    }
    .col-xl-9 {
        width: 75%;
    }
    .col-xl-10 {
        width: 83.33333333%;
    }
    .col-xl-11 {
        width: 91.66666667%;
    }
    .col-xl-12 {
        width: 100%;
    }
    .d-xl-none {
        display: none !important;
    }
    .d-xl-block {
        display: block !important;
    }
    .d-xl-flex {
        display: flex !important;
    }
    .sidenav {
        width: 250px !important;
        transform: translateX(0) !important;
        transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .main-content {
        margin-left: 275px !important;
        width: calc(100% - 275px) !important;
        transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    body.g-sidenav-hidden .sidenav {
        width: 76px !important;
        transform: translateX(0) !important;
        overflow: hidden !important;
        cursor: pointer !important;
    }
    body.g-sidenav-hidden .sidenav:hover {
        width: 250px !important;
        overflow-y: auto !important;
        box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15) !important;
    }
    body.g-sidenav-hidden .main-content {
        margin-left: 95px !important;
        width: calc(100% - 95px) !important;
    }
    body.g-sidenav-hidden .sidenav:not(:hover) .navbar-brand span, body.g-sidenav-hidden .sidenav:not(:hover) .nav-link-text, body.g-sidenav-hidden .sidenav:not(:hover) .sidebar-search-box, body.g-sidenav-hidden .sidenav:not(:hover) .transition-chevron, body.g-sidenav-hidden .sidenav:not(:hover) .nav-link .transition-chevron, body.g-sidenav-hidden .sidenav:not(:hover) .nav-link i.transition-chevron, body.g-sidenav-hidden .sidenav:not(:hover) .collapse:not(#sidenav-collapse-main) {
        display: none !important;
    }
    body.g-sidenav-hidden .sidenav:hover .navbar-brand span, body.g-sidenav-hidden .sidenav:hover .nav-link-text, body.g-sidenav-hidden .sidenav:hover .sidebar-search-box, body.g-sidenav-hidden .sidenav:hover .transition-chevron {
        display: inline-block !important;
    }
    body.g-sidenav-hidden .sidenav:hover .collapse:not(#sidenav-collapse-main).show {
        display: block !important;
    }
    body.g-sidenav-hidden .sidenav:not(:hover) .navbar-brand {
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    body.g-sidenav-hidden .sidenav:not(:hover) .navbar-brand img {
        margin: 0 auto !important;
    }
    body.g-sidenav-hidden .sidenav:not(:hover) .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.6rem 0 !important;
        margin: 0.2rem 0.4rem !important;
    }
    body.g-sidenav-hidden .sidenav:not(:hover) .nav-link.active::before {
        left: -0.4rem !important;
    }
    body.g-sidenav-hidden .sidenav:not(:hover) .nav-link > i:not(.transition-chevron) {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 auto !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.g-sidenav-hidden .sidenav:not(:hover) .sidenav-header {
        padding: 0.75rem 0.25rem !important;
        justify-content: center !important;
    }
    .sidenav .collapse .nav {
        margin-left: 1.75rem !important;
        padding-left: 0.5rem !important;
        border-left: 1px dashed #e2e8f0 !important;
        flex-direction: column !important;
    }
    .sidenav .collapse .nav .nav-item {
        width: 100% !important;
        margin-bottom: 0.15rem !important;
    }
    .sidenav .collapse .nav .nav-link {
        font-size: clamp(0.8rem, 0.9vw, 0.84rem) !important;
        font-weight: 500 !important;
        padding: 0.4rem 0.75rem !important;
        color: #334155 !important;
        border-radius: 0.375rem !important;
        transition: all 0.15s ease !important;
        display: flex !important;
        align-items: center !important;
    }
    .sidenav .collapse .nav .nav-link:hover {
        color: var(--admin-primary) !important;
        background-color: #f8fafc !important;
    }
    .sidenav .collapse .nav .nav-link.active {
        color: var(--admin-primary) !important;
        font-weight: 600 !important;
        background-color: rgba(79, 70, 229, 0.08) !important;
    }
}

@media (max-width: 1199.98px) {
    .sidenav {
        top: 0;
        bottom: 0;
        left: 0;
        height: 100vh;
        border-radius: 0;
        transform: translateX(-105%);
        z-index: 1050;
    }
    body.g-sidenav-pinned .sidenav, .sidenav.g-sidenav-pinned {
        transform: translateX(0) !important;
    }
    .sidenav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1040;
        backdrop-filter: blur(3px);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   SECTION 18: VERTICAL ORDER ID STYLING
   ========================================================================== */
.order-id-vertical {
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin: 0.5rem auto 0 auto !important;
    display: block !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-align: center !important;
    transition: color 0.15s ease !important;
}

.order-id-vertical:hover {
    color: var(--admin-primary) !important;
}

td:has(.order-id-vertical) {
    text-align: center !important;
    vertical-align: middle !important;
}

td:has(.order-id-vertical) .order-checkbox {
    margin: 0 auto !important;
    display: block !important;
}

/* ==========================================================================
   SECTION 19: SMOOTH ELASTIC MODAL OPEN ANIMATIONS
   ========================================================================== */
.modal.fade .modal-dialog {
    transform: scale(0.9) !important;
    opacity: 0 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease !important;
}

.modal.show .modal-dialog {
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* Fullscreen modal transition slide up */
.modal.fade .modal-dialog.modal-fullscreen {
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.modal.show .modal-dialog.modal-fullscreen {
    transform: translateY(0) !important;
}

/* ==========================================================================
   SECTION 20: PREMIUM TIMELINE TRACKING MODAL STYLING
   ========================================================================== */
.tracking-timeline {
    position: relative;
    padding-left: 2.25rem;
    margin: 1.5rem 0;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 10px;
    width: 2px;
    background: #e2e8f0;
}

.tracking-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.tracking-item:last-child {
    margin-bottom: 0;
}

.tracking-icon {
    position: absolute;
    left: -31px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
    z-index: 2;
    transition: all 0.25s ease;
}

.tracking-item.active .tracking-icon {
    background: var(--admin-success) !important;
    box-shadow: 0 0 0 1px var(--admin-success), 0 0 8px var(--admin-success) !important;
}

.tracking-item.active .tracking-content {
    border-left: 4px solid var(--admin-success) !important;
}

.tracking-content {
    background: #ffffff;
    border-radius: 0.75rem !important;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 1.15rem 1.4rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tracking-content:hover {
    transform: translateX(3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.tracking-status {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.tracking-location {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.tracking-date {
    font-size: 0.75rem;
    color: #475569;
}

/* ── Customer / Review Page Utilities ─────────────────────────────────── */
.badge-soft-primary { background: rgba(79,70,229,.1) !important; color: var(--admin-primary) !important; }
.badge-soft-success { background: rgba(16,185,129,.1) !important; color: #059669 !important; }
.badge-soft-warning { background: rgba(245,158,11,.1) !important; color: #d97706 !important; }
.badge-soft-danger  { background: rgba(239,68,68,.1)  !important; color: #dc2626 !important; }
.badge-soft-info    { background: rgba(6,182,212,.1)  !important; color: #0891b2 !important; }

.sidebar-customer-item { border-left: 3px solid transparent; transition: background .15s ease, border-color .15s ease; }
.sidebar-customer-item:hover { background: rgba(0,0,0,.025); }

.form-select-sm { font-size: .82rem !important; padding: .3rem .65rem !important; height: 32px !important; line-height: 1 !important; box-sizing: border-box !important; }

.spinner-border { display: inline-block; border: 0.2em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spinner-border .75s linear infinite; }
@keyframes spinner-border { to { transform: rotate(360deg); } }

.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }

/* Fix card header rounded corners when card overflow is visible */
.card > .card-header {
    border-top-left-radius: inherit !important;
    border-top-right-radius: inherit !important;
}

/* ── Redesigned Shared Sidebar & Panel Theme System ── */
.sidebar-theme-sales {
    --theme-color: var(--admin-primary);
    --theme-color-end: #6366f1;
    --theme-bg-soft: rgba(79,70,229,.1);
}
.sidebar-theme-review {
    --theme-color: #6366f1;
    --theme-color-end: #8b5cf6;
    --theme-bg-soft: rgba(99,102,241,.1);
}
.sidebar-theme-ghee {
    --theme-color: #f59e0b;
    --theme-color-end: #d97706;
    --theme-bg-soft: rgba(245,158,11,.12);
}
.sidebar-theme-laddu {
    --theme-color: #ec4899;
    --theme-color-end: #be185d;
    --theme-bg-soft: rgba(236,72,153,.1);
}

.attendance-strip {
    border-left: 4px solid var(--theme-color) !important;
}
.attendance-title {
    color: var(--theme-color) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}
.attendance-badge {
    background: var(--theme-bg-soft) !important;
    color: var(--theme-color) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: .35em .85em !important;
}
.attendance-count {
    background: var(--theme-color) !important;
    color: #fff !important;
    border-radius: 50rem !important;
    padding: 0.1em 0.55em !important;
}
.sidebar-card {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 180px) !important;
    min-height: 300px !important;
}
.sidebar-header {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color-end)) !important;
    padding: 1rem !important;
    flex-shrink: 0 !important;
}
.sidebar-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}
.sidebar-count-badge {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    font-size: 0.78rem !important;
}
.sidebar-list {
    overflow-y: auto !important;
    flex: 1 1 0 !important;
}
.sidebar-item-active {
    background: var(--theme-bg-soft) !important;
    border-left: 3px solid var(--theme-color) !important;
}

/* Clean preview images on edit pages - borderless with rounded corners and subtle shadow */
.preview-image-clean {
    border: none !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04) !important;
    background: transparent !important;
    padding: 0 !important;
}

/* ==========================================================================
   Complaints & Enquiry Module & Support Chat Desk Framework
   ========================================================================== */
.complaint-card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03) !important;
    background: #ffffff !important;
    transition: all 0.25s ease !important;
}

.kpi-card {
    border: none !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    padding: 16px 20px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.kpi-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07) !important;
}

.stat-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
}

.info-tile {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0 !important;
    transition: border-color 0.2s ease !important;
}
.info-tile:hover {
    border-color: #cbd5e1 !important;
}

.issue-product-card {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
}
.issue-product-card:hover {
    border-color: #4f46e5 !important;
    background: #f8fafc !important;
}
.issue-product-card.selected {
    border-color: #4f46e5 !important;
    background: rgba(79, 70, 229, 0.05) !important;
    box-shadow: 0 0 0 1px #4f46e5 !important;
}

.complaint-text-box {
    background: #f8fafc !important;
    border-left: 4px solid #4f46e5 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}

.img-gallery-thumb {
    width: 84px !important;
    height: 84px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.img-gallery-thumb:hover {
    transform: scale(1.06) !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.2) !important;
}

/* Support Chat Desk Styling */
.chat-container {
    display: flex !important;
    flex-direction: column !important;
    height: 580px !important;
}

.chat-box {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 20px !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
}
.chat-box::-webkit-scrollbar {
    width: 6px;
}
.chat-box::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.chat-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.chat-bubble-admin {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border-radius: 18px 18px 4px 18px !important;
    padding: 12px 18px !important;
    max-width: 82% !important;
    display: inline-block !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.18) !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}

.chat-bubble-user {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px 18px 18px 4px !important;
    padding: 12px 18px !important;
    max-width: 82% !important;
    display: inline-block !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}

.chat-time {
    font-size: 0.72rem !important;
    margin-top: 4px !important;
    opacity: 0.85 !important;
    font-weight: 500 !important;
}

/* Integrated Input Group for Chat */
.chat-input-group {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.chat-input-group:focus-within {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

.chat-input-field {
    flex: 1 1 auto !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 12px 18px !important;
    font-size: 0.92rem !important;
    background: transparent !important;
    color: #0f172a !important;
    height: 48px !important;
}
.chat-input-field:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.chat-send-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 0 24px !important;
    height: 48px !important;
    border-radius: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    flex-shrink: 0 !important;
}
.chat-send-btn:hover {
    opacity: 0.92 !important;
    color: #ffffff !important;
}

.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
}

.complaints-table th, .enquiry-table th {
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
}
.complaints-table td, .enquiry-table td {
    padding: 14px 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}


