/**
 * Calzi Total ERP Solutions - Modern Enterprise Design System
 * Unified theme stylesheet for CodeIgniter ERP
 * Palette: Brand Orange (#ea580c / #f97316), Slate Neutral (#0f172a, #334155, #64748b), Modern Light Canvas (#f8fafc)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root,
[data-bs-theme="light"],
body {
    /* Brand Orange & Gradients */
    --calzi-orange: #ea580c;
    --calzi-orange-hover: #c2410c;
    --calzi-orange-active: #9a3412;
    --calzi-orange-light: #fff7ed;
    --calzi-orange-subtle: #ffedd5;
    --calzi-orange-border: #fed7aa;
    --calzi-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --calzi-shadow-orange: 0 4px 14px rgba(234, 88, 12, 0.25);

    /* Bootstrap & Metronic Overrides */
    --bs-primary: #ea580c !important;
    --bs-primary-rgb: 234, 88, 12 !important;
    --bs-primary-hover: #c2410c !important;
    --bs-primary-active: #9a3412 !important;
    --bs-primary-bg-subtle: #fff7ed !important;
    --bs-primary-border-subtle: #fed7aa !important;
    --bs-primary-text-emphasis: #9a3412 !important;

    --bs-link-color: #ea580c !important;
    --bs-link-hover-color: #c2410c !important;
    --bs-link-color-rgb: 234, 88, 12 !important;

    /* Modern SaaS Neutral Canvas */
    --bs-body-bg: #f8fafc !important;
    --bs-body-color: #1e293b !important;
    --bs-body-font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    --bs-heading-color: #0f172a !important;
    --bs-border-color: #e2e8f0 !important;

    /* Focus Ring */
    --bs-focus-ring-color: rgba(234, 88, 12, 0.25) !important;
}

/* Base Body & Layout Styles (Matching Login Page Warm Pattern) */
body {
    font-family: var(--bs-body-font-family);
    background-color: #fbf6f0 !important;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(254, 215, 170, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(253, 186, 116, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(254, 243, 199, 0.25) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
    color: #1e293b !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-wrapper {
    min-height: calc(100vh - 62px);
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
}

.app-main {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100%;
}

/* ==========================================================================
   1. Typography & Headings
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', var(--bs-body-font-family);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.text-primary,
a.text-primary,
.text-hover-primary:hover {
    color: #ea580c !important;
}

/* ==========================================================================
   2. Buttons & CTAs
   ========================================================================== */
.btn-primary {
    background: var(--calzi-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    box-shadow: var(--calzi-shadow-orange) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35) !important;
}

.btn-light-primary {
    background-color: var(--calzi-orange-light) !important;
    color: var(--calzi-orange) !important;
    border: 1px solid var(--calzi-orange-border) !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.btn-light-primary:hover {
    background-color: #ffedd5 !important;
    color: var(--calzi-orange-hover) !important;
    border-color: #fdba74 !important;
}

.btn-active-light-primary:hover {
    background-color: var(--calzi-orange-light) !important;
    color: var(--calzi-orange) !important;
}

.btn-check:checked + .btn.btn-active-primary,
.btn.btn-active-primary.active {
    background: var(--calzi-gradient) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   3. Header & Navigation Bar (Preserving Original Header Theme Color)
   ========================================================================== */
#kt_app_header {
    height: 58px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.25s ease;
}

/* Retain original branch/theme background on container */
#kt_app_header_container {
    height: 100%;
}

/* Logo scaling in header */
#kt_app_header a img,
.app-header-logo img {
    height: 36px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    transition: transform 0.2s ease;
}

#kt_app_header a img:hover {
    transform: scale(1.03);
}

/* Top level header menu bar items (white text on original theme blue header) */
#kt_app_header_menu > .menu-item > .menu-link {
    font-weight: 600;
    font-size: 13.5px;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 8px 14px !important;
    transition: all 0.2s ease;
}

#kt_app_header_menu > .menu-item > .menu-link:hover,
#kt_app_header_menu > .menu-item.here > .menu-link,
#kt_app_header_menu > .menu-item.show > .menu-link,
#kt_app_header_menu > .menu-item.active > .menu-link {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

#kt_app_header_menu > .menu-item > .menu-link .menu-title,
#kt_app_header_menu > .menu-item > .menu-link .menu-title a {
    color: #ffffff !important;
}

/* ==========================================================================
   Dropdown Submenus (Crisp White Card with Dark Charcoal Text & Calzi Orange Hover)
   ========================================================================== */
.menu-sub,
.menu-sub-dropdown,
.menu-sub-lg-dropdown,
#kt_app_header_menu .menu-sub,
#kt_app_header_menu .menu-sub-dropdown,
#kt_app_header_menu .menu-sub-lg-dropdown,
.nav-submenu-dropdown {
    background-color: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 14px 40px -4px rgba(15, 23, 42, 0.14) !important;
    padding: 8px 6px !important;
    z-index: 1050;
}

/* Submenu links */
.menu-sub .menu-item > .menu-link,
.menu-sub-dropdown .menu-item > .menu-link,
.menu-sub .menu-link,
#kt_app_header_menu .menu-sub .menu-item > .menu-link,
#kt_app_header_menu .menu-sub .menu-link,
#kt_app_header_menu .menu-sub-lg-dropdown .menu-link,
.nav-submenu-dropdown .menu-link {
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    border-radius: 10px !important;
    padding: 9px 14px !important;
    margin: 2px 0 !important;
    background-color: transparent !important;
    transition: all 0.18s ease !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

/* Submenu titles */
.menu-sub .menu-item > .menu-link .menu-title,
.menu-sub .menu-item > .menu-link .menu-title a,
.menu-sub-dropdown .menu-item > .menu-link .menu-title,
.menu-sub .menu-link .menu-title,
.menu-sub .menu-title,
#kt_app_header_menu .menu-sub .menu-item > .menu-link .menu-title,
#kt_app_header_menu .menu-sub .menu-item > .menu-link .menu-title a,
#kt_app_header_menu .menu-sub .menu-link .menu-title,
#kt_app_header_menu .menu-sub .menu-title,
#kt_app_header_menu .menu-sub-lg-dropdown .menu-title,
.nav-submenu-dropdown .menu-title {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    transition: color 0.18s ease !important;
}

/* Submenu icons */
.menu-sub .menu-item > .menu-link .menu-icon,
.menu-sub .menu-item > .menu-link .menu-icon i,
.menu-sub .menu-link .menu-icon i,
.menu-sub .menu-icon i,
.menu-sub-dropdown .menu-item > .menu-link .menu-icon i,
#kt_app_header_menu .menu-sub .menu-item > .menu-link .menu-icon i,
#kt_app_header_menu .menu-sub .menu-icon i,
#kt_app_header_menu .menu-sub-lg-dropdown .menu-icon i,
.nav-submenu-dropdown .menu-icon i {
    color: #ea580c !important;
    font-size: 15px !important;
    width: 22px !important;
    margin-right: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.18s ease !important;
}

/* Submenu hover state (Calzi Brand Orange Accent) */
.menu-sub .menu-item > .menu-link:hover,
.menu-sub .menu-item.hover > .menu-link,
.menu-sub .menu-item .menu-link.active,
.menu-sub .menu-link:hover,
.menu-sub-dropdown .menu-item > .menu-link:hover,
#kt_app_header_menu .menu-sub .menu-item > .menu-link:hover,
#kt_app_header_menu .menu-sub .menu-item.hover > .menu-link,
#kt_app_header_menu .menu-sub .menu-item .menu-link.active,
#kt_app_header_menu .menu-sub .menu-link:hover,
#kt_app_header_menu .menu-sub-lg-dropdown .menu-link:hover,
.nav-submenu-dropdown .menu-link:hover {
    background-color: #fff7ed !important;
    color: #ea580c !important;
}

.menu-sub .menu-item > .menu-link:hover .menu-title,
.menu-sub .menu-item.hover > .menu-link .menu-title,
.menu-sub .menu-item .menu-link.active .menu-title,
.menu-sub .menu-link:hover .menu-title,
.menu-sub-dropdown .menu-item > .menu-link:hover .menu-title,
#kt_app_header_menu .menu-sub .menu-item > .menu-link:hover .menu-title,
#kt_app_header_menu .menu-sub .menu-item.hover > .menu-link .menu-title,
#kt_app_header_menu .menu-sub .menu-item .menu-link.active .menu-title,
#kt_app_header_menu .menu-sub .menu-link:hover .menu-title,
#kt_app_header_menu .menu-sub-lg-dropdown .menu-link:hover .menu-title,
.nav-submenu-dropdown .menu-link:hover .menu-title {
    color: #ea580c !important;
}

.menu-sub .menu-item > .menu-link:hover .menu-icon i,
.menu-sub .menu-item.hover > .menu-link .menu-icon i,
.menu-sub .menu-item .menu-link.active .menu-icon i,
.menu-sub .menu-link:hover .menu-icon i,
.menu-sub-dropdown .menu-item > .menu-link:hover .menu-icon i,
#kt_app_header_menu .menu-sub .menu-item > .menu-link:hover .menu-icon i,
#kt_app_header_menu .menu-sub .menu-item.hover > .menu-link .menu-icon i,
#kt_app_header_menu .menu-sub .menu-item .menu-link.active .menu-icon i,
#kt_app_header_menu .menu-sub .menu-link:hover .menu-icon i,
#kt_app_header_menu .menu-sub-lg-dropdown .menu-link:hover .menu-icon i,
.nav-submenu-dropdown .menu-link:hover .menu-icon i {
    color: #c2410c !important;
    transform: scale(1.1);
}

/* ==========================================================================
   4. Sidebar & Quick Navigation
   ========================================================================== */
#kt_app_sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 8px rgba(15, 23, 42, 0.02) !important;
}

.app-navbar .btn-icon {
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.app-navbar .btn-icon:hover {
    background-color: var(--calzi-orange-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.18) !important;
}

/* Active menu pill */
.menu-state-primary .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active) .menu-title,
.menu-state-primary .menu-item .menu-link.active .menu-title {
    color: var(--calzi-orange) !important;
}

.menu-state-primary .menu-item .menu-link.active {
    background-color: var(--calzi-orange-light) !important;
    border-left: 3px solid var(--calzi-orange);
}

/* ==========================================================================
   5. Cards & Widgets
   ========================================================================== */
.card {
    background-color: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card.card-flush {
    border-radius: 16px !important;
}

.card:hover {
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03) !important;
}

.card-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.75rem !important;
}

.card-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.card-body {
    padding: 1.5rem 1.75rem !important;
}

/* Metric / KPI Number Styling */
.fs-2hx, .fs-3hx, .fs-4hx {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #0f172a !important;
}

/* ==========================================================================
   6. DataTables & Tables
   ========================================================================== */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
}

.table tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    color: #334155 !important;
    font-size: 13.5px !important;
}

.table-hover tbody tr:hover td {
    background-color: #fafaf9 !important;
}

/* DataTable Pagination */
.page-item.active .page-link {
    background: var(--calzi-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3) !important;
}

.page-link {
    border-radius: 8px !important;
    margin: 0 3px !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   7. Form Controls & Inputs
   ========================================================================== */
.form-control,
.form-select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0.65rem 0.95rem !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #ea580c !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16) !important;
    outline: none !important;
}

.form-label {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 13.5px !important;
    margin-bottom: 0.4rem !important;
}

/* ==========================================================================
   8. Badges & Status Indicators
   ========================================================================== */
.badge {
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-size: 11.5px !important;
}

.badge-light-primary {
    background-color: var(--calzi-orange-light) !important;
    color: var(--calzi-orange) !important;
}

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

.badge-light-success {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
}

.badge-light-danger {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.badge-light-warning {
    background-color: #fffbeb !important;
    color: #d97706 !important;
}

.badge-light-info {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

/* ==========================================================================
   9. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 991.98px) {
    #kt_app_header {
        height: 58px !important;
    }

    #kt_app_header a img,
    .app-header-logo img {
        height: 32px !important;
    }

    .card {
        border-radius: 14px !important;
    }

    .card-header {
        padding: 1rem 1.25rem !important;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    /* Prevent mobile input zooming on iOS */
    .form-control,
    .form-select {
        font-size: 16px !important;
    }

    /* Ensure touch targets */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   10. Calzi Modern Shimmer & Skeleton Loading System (All Pages)
   ========================================================================== */

@keyframes calziShimmerSweep {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes calziTopProgressSweep {
    0% {
        left: -40%;
        width: 40%;
    }
    50% {
        left: 25%;
        width: 60%;
    }
    100% {
        left: 100%;
        width: 40%;
    }
}

@keyframes calziSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes calziPulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Base Shimmer Element */
.calzi-shimmer-box,
.calzi-shimmer {
    background: linear-gradient(
        90deg,
        #f1f5f9 0%,
        #e2e8f0 30%,
        #ffffff 50%,
        #e2e8f0 70%,
        #f1f5f9 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: calziShimmerSweep 1.5s infinite linear !important;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Fullscreen Initial Page Shimmer Screen */
#calzi-global-shimmer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #fbf6f0;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(254, 215, 170, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(253, 186, 116, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(254, 243, 199, 0.25) 0%, transparent 60%);
    background-attachment: fixed;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
}

#calzi-global-shimmer.calzi-shimmer-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Top Progress Bar on Page Navigation / Link Clicks */
#calzi-nav-shimmer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(234, 88, 12, 0.12);
    z-index: 2147483647;
    overflow: hidden;
    display: none;
}

#calzi-nav-shimmer-bar.active {
    display: block !important;
}

#calzi-nav-shimmer-bar::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #ea580c, #f97316, #fbbf24, #ea580c);
    border-radius: 3px;
    animation: calziTopProgressSweep 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Shimmer Header Component */
.calzi-shimmer-header {
    height: 58px;
    background: #0076c6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.calzi-shimmer-header .calzi-shimmer-box {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.25) 30%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.25) 70%,
        rgba(255, 255, 255, 0.12) 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: calziShimmerSweep 1.5s infinite linear !important;
}

/* Shimmer Body Layout */
.calzi-shimmer-body {
    flex: 1;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* Sub-header / Breadcrumbs */
.calzi-shimmer-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

/* Stats / KPI Grid (4 Cards) */
.calzi-shimmer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    flex-shrink: 0;
}

.calzi-shimmer-stat-card {
    background: #ffffff;
    border: 1px solid #ede4dc;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.025);
}

.calzi-shimmer-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Main Content Card (Table / Workspace) */
.calzi-shimmer-main-card {
    background: #ffffff;
    border: 1px solid #ede4dc;
    border-radius: 18px;
    padding: 20px 24px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.calzi-shimmer-table-header {
    height: 42px;
    background: #f8f6f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.calzi-shimmer-table-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* Brand Floating Loader Badge */
.calzi-shimmer-brand-pill {
    position: fixed;
    bottom: 22px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 88, 12, 0.25);
    border-radius: 50px;
    padding: 7px 16px 7px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.15);
    z-index: 2147483647;
}

.calzi-shimmer-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(234, 88, 12, 0.2);
    border-top-color: #ea580c;
    border-radius: 50%;
    animation: calziSpin 0.75s linear infinite;
}

/* Reusable Utility Classes for Dynamic In-Page Skeletons */
.skeleton-text {
    height: 14px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 22px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-btn {
    height: 38px;
    border-radius: 10px;
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid #ede4dc;
    border-radius: 16px;
    padding: 18px;
}

/* Responsive Rules for Small Devices */
@media (max-width: 991px) {
    .calzi-shimmer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calzi-shimmer-header {
        padding: 0 16px;
    }
    .calzi-shimmer-body {
        padding: 14px 16px 18px;
    }
}

@media (max-width: 575px) {
    .calzi-shimmer-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Never show in print preview or thermal receipts */
@media print {
    #calzi-global-shimmer,
    #calzi-nav-shimmer-bar,
    .calzi-shimmer-brand-pill {
        display: none !important;
    }
}
