@import 'tailwindcss' source(none);
@import '../../../../vendor/filament/filament/resources/css/index.css';

@source '../../../../app/Filament/**/*.php';
@source '../../../../resources/views/filament/**/*.blade.php';

@variant dark (&:where(.dark, .dark *));

/*
 * ============================================================
 * POS Kasir - Admin Theme
 * Design: Modern Professional + Blue & White Palette
 * Strategy: UNLAYERED CSS (wins over Filament's @layer rules)
 * ============================================================
 */

@theme inline {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco,
        Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* ==========================================================
   LOGIN PAGE OVERRIDE - Force Blue & White Theme
   ========================================================== */

/* Force Blue Gradient Background - Target body directly */
body {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 25%, #BFDBFE 50%, #93C5FD 75%, #60A5FA 100%) !important;
    min-height: 100vh !important;
}

html {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 25%, #BFDBFE 50%, #93C5FD 75%, #60A5FA 100%) !important;
}

/* Override dark theme */
html.dark,
body.dark,
.dark {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 25%, #BFDBFE 50%, #93C5FD 75%, #60A5FA 100%) !important;
}

.fi-simple-page {
    background: transparent !important;
}

/* Decorative Elements */
.fi-simple-page::before {
    content: '';
    position: fixed;
    top: 25%;
    left: 25%;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%) !important;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.fi-simple-page::after {
    content: '';
    position: fixed;
    bottom: 25%;
    right: 25%;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: radial-gradient(circle, #60A5FA 0%, transparent 70%) !important;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Login Card - Force White */
.fi-simple-main {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(219, 234, 254, 0.8) !important;
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(96, 165, 250, 0.1) !important;
    border-radius: 1rem !important;
    max-width: 28rem !important;
    padding: 2rem !important;
}

/* Login Mobile Responsive */
@media (max-width: 640px) {
    .fi-simple-page {
        padding: 1.5rem 1rem !important;
        align-items: flex-start !important;
        padding-top: 2.5rem !important;
    }
    .fi-simple-page::before,
    .fi-simple-page::after {
        display: none !important;
    }
    .fi-simple-main {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1.5rem 1.25rem !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15) !important;
    }
    .fi-simple-header .fi-logo,
    .fi-simple-header > div:first-child {
        width: 3.25rem !important;
        height: 3.25rem !important;
        border-radius: 0.75rem !important;
        margin: 0 auto 0.75rem !important;
    }
    .fi-simple-page .fi-header-heading,
    .fi-simple-header h1 {
        font-size: 1.25rem !important;
    }
    .fi-simple-page .fi-header-subheading,
    .fi-simple-header p {
        font-size: 0.75rem !important;
    }
}

/* Logo */
.fi-simple-header .fi-logo,
.fi-simple-header > div:first-child {
    width: 4rem !important;
    height: 4rem !important;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%) !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem !important;
}

.fi-simple-header svg {
    width: 2rem !important;
    height: 2rem !important;
    color: white !important;
    stroke: white !important;
}

/* Heading & Subheading */
.fi-simple-heading,
.fi-simple-header h1 {
    color: #1E3A8A !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem !important;
}

.fi-simple-subheading,
.fi-simple-header p {
    color: #2563EB !important;
    font-size: 0.75rem !important;
    margin-bottom: 2rem !important;
}

/* Form Container */
.fi-simple-page form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

/* Field Wrapper */
.fi-simple-page .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

/* Labels */
.fi-simple-page label,
.fi-simple-page .fi-fo-field-wrp-label label {
    color: #1D4ED8 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.375rem !important;
    display: block !important;
}

/* Inputs */
.fi-simple-page input[type="email"],
.fi-simple-page input[type="password"],
.fi-simple-page input[type="text"],
.fi-simple-page .fi-input {
    background: #FFFFFF !important;
    border: 1.5px solid #DBEAFE !important;
    border-radius: 0.75rem !important;
    color: #1E3A8A !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s !important;
    width: 100% !important;
}

.fi-simple-page input::placeholder {
    color: #93C5FD !important;
}

.fi-simple-page input:focus,
.fi-simple-page .fi-input:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

/* Input Wrapper */
.fi-simple-page .fi-input-wrp {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0.75rem !important;
}

.fi-simple-page .fi-input-wrp:focus-within {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Password Eye Icon */
.fi-simple-page .fi-input-wrp button {
    color: #60A5FA !important;
    transition: color 0.2s !important;
}

.fi-simple-page .fi-input-wrp button:hover {
    color: #3B82F6 !important;
}

/* Checkbox - Restored "Remember me" checkbox visibility */
.fi-simple-page .fi-checkbox-wrp,
.fi-simple-page input[type="checkbox"] {
    display: inline-block !important;
}

/* Links - "Hubungi admin" style */
.fi-simple-page a {
    color: #3B82F6 !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    display: block !important;
    text-align: center !important;
    margin-top: 1rem !important;
}

.fi-simple-page a:hover {
    color: #2563EB !important;
    text-decoration: underline !important;
}

/* Button */
.fi-simple-page button[type="submit"] {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
    color: white !important;
    border-radius: 0.75rem !important;
}

.fi-simple-page button[type="submit"]:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
}

/* Checkbox */
.fi-simple-page input[type="checkbox"] {
    border: 1.5px solid #DBEAFE !important;
    background: #FFFFFF !important;
}

.fi-simple-page input[type="checkbox"]:checked {
    background-color: #3B82F6 !important;
    border-color: #3B82F6 !important;
}


/* ==========================================================
   1. BASE
   ========================================================== */

.fi-body {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 25%, #BFDBFE 50%, #93C5FD 75%, #60A5FA 100%) !important;
}
.dark .fi-body {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 25%, #BFDBFE 50%, #93C5FD 75%, #60A5FA 100%) !important;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #60A5FA; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3B82F6; }

*:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Remove browser autofill/autocomplete yellow background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1E3A8A !important;
}

/* Kill ALL yellow/amber outlines on inputs globally */
input:focus,
input:focus-visible,
input[type="search"]:focus,
input[type="search"]:focus-visible,
.fi-input:focus,
.fi-input:focus-visible,
.fi-ta-ctn input:focus,
.fi-ta-ctn input:focus-visible {
    outline: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    border-color: #DBEAFE !important;
}

/* Override Filament input wrapper focus ring */
.fi-input-wrp:focus-within {
    --tw-ring-color: transparent !important;
    --tw-ring-shadow: none !important;
    border-color: #3B82F6 !important;
    outline: none !important;
    box-shadow: none !important;
}

.fi-input-wrp {
    --tw-ring-color: transparent !important;
    --tw-ring-shadow: none !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
    background-color: #FFFFFF !important;
}


/* ==========================================================
   2. LAYOUT
   ========================================================== */

/* Hide Filament's default hamburger (we have our own in navbar) */
.fi-layout-sidebar-toggle-btn-ctn {
    display: none;
}

/* Main content area: tighter padding, full width */
.fi-main {
    padding-top: 0;
    padding-inline: 1rem;
}
@media (max-width: 1023px) {
    .fi-main.fi-main-responsive {
        padding: 0.375rem 0.625rem 0.5rem !important;
    }
    .fi-main-ctn.fi-main-ctn-responsive {
        gap: 0 !important;
        padding-top: 0 !important;
    }
    .fi-page {
        gap: 0.25rem !important;
    }
    .fi-page-header-main-ctn.fi-page-header-main-ctn-responsive {
        gap: 0.25rem !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    .fi-page-content {
        gap: 0.5rem !important;
    }
    header.fi-header {
        padding: 0.125rem 0 !important;
        margin: 0 !important;
        gap: 0.25rem !important;
    }
    nav.fi-content-navbar {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}
@media (min-width: 1024px) {
    .fi-main {
        padding-inline: 1.25rem;
    }
}
@media (min-width: 64rem) {
    .fi-main {
        padding-inline: 1.5rem;
    }
}
@media (max-width: 767px) {
    main.fi-main,
    main.fi-main.fi-width-full,
    .fi-main-ctn main.fi-main {
        padding-top: 0.5rem !important;
        padding-left: 0.625rem !important;
        padding-right: 0.625rem !important;
        padding-bottom: 0.625rem !important;
    }
    .fi-page,
    div.fi-page {
        gap: 0.375rem !important;
    }
    .fi-page-header-main-ctn,
    div.fi-page-header-main-ctn {
        gap: 0.25rem !important;
    }
    .fi-page-content,
    div.fi-page-content {
        gap: 0.5rem !important;
    }
    header.fi-header,
    .fi-header {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        min-height: unset !important;
    }
}
@media (min-width: 48rem) {
    .fi-main {
        padding-inline: 1.25rem;
    }
}
@media (min-width: 64rem) {
    .fi-main {
        padding-inline: 1.5rem;
    }
}


/* ==========================================================
   3. CONTENT NAVBAR (glass-card, sticky)
   ========================================================== */

.fi-content-navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(249, 250, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(219, 234, 254, 0.5);
}
.dark .fi-content-navbar {
    background: rgba(17, 24, 39, 0.85);
    border-bottom-color: rgba(59, 130, 246, 0.1);
}

.fi-content-navbar-icon-btn {
    color: #1E40AF;
    background: transparent;
}
.fi-content-navbar-icon-btn:hover {
    background: rgba(219, 234, 254, 0.6);
    color: #1E3A8A;
}
.dark .fi-content-navbar-icon-btn {
    color: #93C5FD;
}
.dark .fi-content-navbar-icon-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

.fi-content-navbar-user-btn {
    background: transparent;
}
.fi-content-navbar-user-btn:hover {
    background: rgba(219, 234, 254, 0.5);
}
.dark .fi-content-navbar-user-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

.fi-content-navbar-dropdown {
    background: white;
    border: 1px solid #DBEAFE;
    box-shadow: 0 12px 28px -8px rgba(30, 64, 175, 0.15);
}
.dark .fi-content-navbar-dropdown {
    background: #1F2937;
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.5);
}

.fi-content-navbar-dropdown-item:hover {
    background: rgba(219, 234, 254, 0.5);
}
.dark .fi-content-navbar-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
}


/* ==========================================================
   4. SIDEBAR
   ========================================================== */

.fi-sidebar,
.fi-sidebar.fi-main-sidebar,
aside.fi-sidebar {
    background: linear-gradient(180deg, var(--sidebar-bg-from, #1E40AF) 0%, var(--sidebar-bg-to, #1E3A8A) 100%) !important;
    background-color: var(--sidebar-bg-to, #1E3A8A) !important;
    border-right: 1px solid rgba(59, 130, 246, 0.1);
}

/* Nav area: scrollable, inherits dark bg from parent */
.fi-sidebar-nav {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure ALL child containers inside sidebar are transparent */
.fi-sidebar > *,
.fi-sidebar > div,
.fi-sidebar-nav-groups,
.fi-sidebar-footer,
.fi-sidebar-header,
.fi-sidebar-header-ctn,
.fi-sidebar .fi-sidebar-footer,
.fi-sidebar .fi-sidebar-header,
.fi-sidebar-group,
.fi-sidebar-group-items,
.fi-sidebar-item {
    background: transparent !important;
    background-color: transparent !important;
}

/* Hide Filament's empty white header box */
.fi-sidebar-header,
[class*="sidebar-header-ctn"] {
    display: none;
}

/* Nav area: compact padding */
.fi-sidebar-nav {
    padding: 0.25rem 0.625rem 1rem;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

/* Nav groups */
.fi-sidebar-group {
    gap: 0.125rem;
}

.fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.625rem;
    flex: 1;
}

/* Group btn row: flex, label left, chevron right */
.fi-sidebar-group-btn {
    align-items: center;
    width: 100%;
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background 150ms ease;
}
.fi-sidebar-group-btn[style*="display: none"] {
    display: none !important;
}

/* Group collapse/expand button icon */
.fi-sidebar-group-btn .fi-icon,
.fi-sidebar-group-dropdown-trigger-btn .fi-icon {
    color: rgba(255, 255, 255, 0.7);
}
.fi-sidebar-group-btn:hover,
.fi-sidebar-group-dropdown-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.fi-sidebar-group.fi-active > .fi-sidebar-group-btn .fi-icon {
    color: var(--sidebar-accent, #60A5FA);
}

/* Group collapse button - FORCE VISIBLE */
.fi-sidebar-group-collapse-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    border-radius: 0.375rem !important;
    margin-left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 0 !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 200ms ease, background 150ms ease;
}
.fi-sidebar-group-collapse-btn .fi-icon,
.fi-sidebar-group-collapse-btn svg {
    color: rgba(255, 255, 255, 0.9) !important;
    width: 0.875rem !important;
    height: 0.875rem !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.fi-sidebar-group-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}
.fi-sidebar-group-collapse-btn:hover .fi-icon,
.fi-sidebar-group-collapse-btn:hover svg {
    color: rgba(255, 255, 255, 1) !important;
}
.fi-sidebar-group.fi-collapsed .fi-sidebar-group-collapse-btn .fi-icon,
.fi-sidebar-group.fi-collapsed .fi-sidebar-group-collapse-btn svg {
    transform: rotate(180deg);
}

/* Group label text — ensure all groups have white color */
.fi-sidebar-group > button > span,
.fi-sidebar-group-btn > span,
.fi-sidebar-group-label,
.fi-sidebar nav li > div > button > span {
    color: rgba(255, 255, 255, 0.85);
}

/* Nav items */
.fi-sidebar-item-btn {
    border-radius: 0.5rem;
    padding: 0.4rem 0.625rem;
    transition: background-color 150ms ease, color 150ms ease;
}

/* Icon color — force on ALL sidebar items including nested */
.fi-sidebar-item-btn > .fi-icon,
.fi-sidebar-item-btn .fi-icon,
.fi-sidebar .fi-sidebar-item .fi-icon {
    color: rgba(255, 255, 255, 0.85);
    width: 1.125rem;
    height: 1.125rem;
}

/* Label color — force on ALL sidebar items including nested */
.fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item .fi-sidebar-item-label,
.fi-sidebar-item-btn > span,
.fi-sidebar-item-btn .fi-sidebar-item-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Hover */
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:focus-visible {
    background: rgba(255, 255, 255, 0.04) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}
/* Sidebar hover icon - change from amber to blue */
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover > .fi-icon,
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover .fi-icon {
    color: var(--sidebar-accent, #60A5FA);
}
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover .fi-sidebar-item-label,
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover > span {
    color: #F5F5F4;
}

/* Active */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: color-mix(in srgb, var(--sidebar-accent, #60A5FA) 8%, transparent) !important;
    background-color: color-mix(in srgb, var(--sidebar-accent, #60A5FA) 8%, transparent) !important;
    box-shadow: inset 3px 0 0 var(--sidebar-accent, #60A5FA);
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-icon {
    color: var(--sidebar-accent, #60A5FA);
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > span {
    color: #FFFFFF;
    font-weight: 600;
}

/* Nav badge (order count) */
.fi-sidebar-item-badge {
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
}

/* ---- Force sidebar text/icon visibility on ALL items ---- */
/* This ensures items in every group (including last group) are visible */
.fi-sidebar-nav .fi-sidebar-item a,
.fi-sidebar-nav .fi-sidebar-item button {
    color: rgba(255, 255, 255, 0.95);
}
.fi-sidebar-nav .fi-sidebar-item a svg,
.fi-sidebar-nav .fi-sidebar-item button svg {
    color: rgba(255, 255, 255, 0.85);
}
.fi-sidebar-nav .fi-sidebar-item.fi-active a,
.fi-sidebar-nav .fi-sidebar-item.fi-active button {
    color: #FFFFFF;
}
.fi-sidebar-nav .fi-sidebar-item.fi-active a svg,
.fi-sidebar-nav .fi-sidebar-item.fi-active button svg {
    color: var(--sidebar-accent, #60A5FA);
}

/* Sidebar footer */
.fi-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Mobile overlay */
.fi-sidebar-close-overlay {
    background-color: rgba(15, 10, 5, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* ==========================================================
   5. CARDS & SECTIONS
   ========================================================== */

.fi-section:not(.fi-section-not-contained):not(.fi-aside) {
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.05);
    --tw-ring-color: #E5E7EB;
    --tw-ring-shadow: 0 0 0 1px #E5E7EB;
}
.dark .fi-section:not(.fi-section-not-contained):not(.fi-aside) {
    --tw-ring-color: rgba(229, 231, 235, 0.08);
    --tw-ring-shadow: 0 0 0 1px rgba(229, 231, 235, 0.08);
}

.fi-section-header {
    background-color: rgba(249, 250, 251, 0.6);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}
.dark .fi-section-header {
    background-color: rgba(30, 64, 175, 0.1);
    border-bottom-color: rgba(229, 231, 235, 0.06);
}

.fi-section-header-heading {
    color: #111827;
    font-weight: 700;
}
.fi-section-header-description {
    color: #6B7280;
}


/* ==========================================================
   6. TABLES
   ========================================================== */

.fi-ta-ctn {
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.08), 0 1px 2px rgba(30, 58, 138, 0.06);
    overflow: hidden;
    background: white;
    border: 1px solid rgba(219, 234, 254, 0.6);
}
.dark .fi-ta-ctn {
    background: rgba(30, 58, 138, 0.05);
    border-color: rgba(219, 234, 254, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.fi-ta-header-cell {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: #1E40AF;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.dark .fi-ta-header-cell {
    color: #93C5FD;
}

.fi-ta-table > thead > tr {
    background: linear-gradient(to bottom, rgba(239, 246, 255, 0.8), rgba(239, 246, 255, 0.4));
    border-bottom: 2px solid rgba(59, 130, 246, 0.15);
}
.dark .fi-ta-table > thead > tr {
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.2), rgba(30, 58, 138, 0.1));
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

.fi-ta-table > tbody {
    --tw-divide-color: rgba(219, 234, 254, 0.4);
}
.dark .fi-ta-table > tbody {
    --tw-divide-color: rgba(219, 234, 254, 0.08);
}

.fi-ta-row {
    transition: background-color 120ms ease;
}
.fi-ta-row:hover,
.fi-ta-row.fi-clickable:hover {
    background-color: rgba(239, 246, 255, 0.3);
}
.dark .fi-ta-row:hover,
.dark .fi-ta-row.fi-clickable:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.fi-ta-col { color: #1E3A8A; }
.dark .fi-ta-col { color: #DBEAFE; }

.fi-ta-ctn .fi-ta-header .fi-ta-header-heading {
    color: #1E40AF;
    font-weight: 700;
    font-size: 1.125rem;
}

.fi-ta-ctn .fi-ta-header-toolbar { 
    border-color: rgba(219, 234, 254, 0.3);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.dark .fi-ta-ctn .fi-ta-header-toolbar { 
    border-color: rgba(219, 234, 254, 0.08); 
}

.fi-ta-table > tfoot { background-color: rgba(239, 246, 255, 0.3); }
.fi-ta-ctn .fi-pagination { border-color: rgba(219, 234, 254, 0.5); }

/* Empty state */
.fi-ta-empty-state-heading { color: #1E40AF; font-weight: 600; }
.fi-ta-empty-state-description { color: #2563EB; }
.fi-ta-empty-state .fi-icon { color: #60A5FA; }

/* Table search input styling - FORCE OVERRIDE v2 */
.fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp,
.fi-ta-header .fi-ta-search-field .fi-input-wrp {
    border-radius: 0.5rem !important;
    background-color: white !important;
    border: 1px solid #DBEAFE !important;
    box-shadow: 0 1px 2px rgba(30, 58, 138, 0.05) !important;
    transition: all 150ms ease !important;
    max-width: 14rem !important;
    min-height: 2.25rem !important;
    height: 2.25rem !important;
    width: 14rem !important;
}
.fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp:focus-within,
.fi-ta-header .fi-ta-search-field .fi-input-wrp:focus-within {
    background-color: white !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}
.fi-ta-header-toolbar .fi-ta-search-field .fi-input,
.fi-ta-header .fi-ta-search-field .fi-input {
    color: #1E40AF !important;
    font-size: 0.875rem !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    height: 100% !important;
}
.fi-ta-header-toolbar .fi-ta-search-field .fi-input::placeholder,
.fi-ta-header .fi-ta-search-field .fi-input::placeholder {
    color: #93C5FD !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
}

/* Search icon color and size */
.fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp svg,
.fi-ta-header .fi-ta-search-field .fi-input-wrp svg {
    color: #60A5FA !important;
    width: 1rem !important;
    height: 1rem !important;
}
.fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp:focus-within svg,
.fi-ta-header .fi-ta-search-field .fi-input-wrp:focus-within svg {
    color: #3B82F6 !important;
}

/* Icon wrapper padding */
.fi-ta-header-toolbar .fi-ta-search-field .fi-input-wrp > div:first-child,
.fi-ta-header .fi-ta-search-field .fi-input-wrp > div:first-child {
    padding-left: 0.75rem !important;
}


/* ==========================================================
   7. STATS WIDGETS  (match frontend StatCard exactly)
   ========================================================== */

/* ---- card shell ---- */
.fi-wi-stats-overview-stat {
    border-radius: 1rem;                          /* rounded-2xl */
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.06),
                0 1px 2px rgba(30, 64, 175, 0.04);
    --tw-ring-shadow: 0 0 #0000;
    --tw-ring-color: transparent;
    overflow: hidden;
    position: relative;
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.fi-wi-stats-overview-stat:hover {
    box-shadow: 0 10px 25px -5px rgba(30, 64, 175, 0.08),
                0 4px 10px -5px rgba(30, 64, 175, 0.04);
    transform: translateY(-1px);
}
.dark .fi-wi-stats-overview-stat {
    border-color: rgba(229, 231, 235, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.dark .fi-wi-stats-overview-stat:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* ---- top accent bar (h-1 = 4px, like frontend) ---- */
.fi-wi-stats-overview-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    /* default: blue gradient (from-blue-500 to-blue-400) */
    background: linear-gradient(90deg, #2563EB, #60A5FA);
}
/* success = green (from-emerald-400 to-emerald-300) */
.fi-wi-stats-overview-stat.fi-color-success::before {
    background: linear-gradient(90deg, #34D399, #6EE7B7);
}
/* danger = red */
.fi-wi-stats-overview-stat.fi-color-danger::before {
    background: linear-gradient(90deg, #F87171, #FCA5A5);
}
/* warning = amber */
.fi-wi-stats-overview-stat.fi-color-warning::before {
    background: linear-gradient(90deg, #FBBF24, #FCD34D);
}
/* info = blue (from-sky-400 to-sky-300) */
.fi-wi-stats-overview-stat.fi-color-info::before {
    background: linear-gradient(90deg, #38BDF8, #7DD3FC);
}

/* ---- label ---- */
.fi-wi-stats-overview-stat-label {
    color: #6B7280;
    font-size: 0.8125rem;                         /* ~text-sm */
    font-weight: 500;
}
.dark .fi-wi-stats-overview-stat-label {
    color: #9CA3AF;
}

/* ---- value ---- */
.fi-wi-stats-overview-stat-value {
    color: #111827;
    font-weight: 700;
}
.dark .fi-wi-stats-overview-stat-value {
    color: #F9FAFB;
}

/* ---- description ---- */
.fi-wi-stats-overview-stat-description {
    font-size: 0.6875rem;                         /* ~text-[11px] */
    font-weight: 500;
    color: #2563EB;
}
.dark .fi-wi-stats-overview-stat-description {
    color: #60A5FA;
}

/* ---- sparkline chart (keep subtle) ---- */
.fi-wi-stats-overview-stat-chart-bg-color {
    color: rgba(239, 246, 255, 0.5);
}
.fi-wi-stats-overview-stat-chart-border-color {
    color: #2563EB;
}
.dark .fi-wi-stats-overview-stat-chart-bg-color {
    color: rgba(30, 64, 175, 0.2);
}
.dark .fi-wi-stats-overview-stat-chart-border-color {
    color: #60A5FA;
}


/* ==========================================================
   8. FORM INPUTS
   ========================================================== */

.fi-input-wrp {
    border-radius: 0.5rem;
    background-color: rgba(239, 246, 255, 0.4);
    transition: all 150ms ease;
    --tw-ring-color: rgba(219, 234, 254, 0.8);
    --tw-ring-shadow: 0 0 0 1px rgba(219, 234, 254, 0.8);
}
.fi-input-wrp:not(.fi-disabled):focus-within {
    --tw-ring-color: #3B82F6;
    --tw-ring-shadow: 0 0 0 2px #3B82F6;
    background-color: white;
}
.dark .fi-input-wrp {
    --tw-ring-color: rgba(59, 130, 246, 0.2);
    background-color: rgba(239, 246, 255, 0.05);
}
.dark .fi-input-wrp:not(.fi-disabled):focus-within {
    --tw-ring-color: #60A5FA;
    --tw-ring-shadow: 0 0 0 2px #60A5FA;
}

.fi-select-input { color: #1E3A8A; }
.dark .fi-select-input { color: #DBEAFE; }

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #1E40AF;
    border-color: #1E40AF;
}
.dark input[type="checkbox"]:checked,
.dark input[type="radio"]:checked {
    background-color: #60A5FA;
    border-color: #60A5FA;
}

.fi-fo-repeater-item { border-radius: 0.625rem; border-color: #DBEAFE; }
.dark .fi-fo-repeater-item { border-color: rgba(219, 234, 254, 0.1); }
.fi-fo-repeater-item-header { background-color: rgba(239, 246, 255, 0.3); }
.dark .fi-fo-repeater-item-header { background-color: rgba(30, 58, 138, 0.15); }


/* ==========================================================
   9. BADGES
   ========================================================== */

.fi-badge {
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.675rem;
}


/* ==========================================================
   10. BUTTONS
   ========================================================== */

.fi-btn {
    border-radius: 0.625rem;
    font-weight: 600;
    transition: all 120ms ease;
}
.fi-btn:active {
    transform: scale(0.98);
}

.fi-icon-btn {
    border-radius: 0.625rem;
    transition: all 120ms ease;
}


/* ==========================================================
   11. LOGIN PAGE - BLUE & WHITE THEME
   ========================================================== */

.fi-simple-layout {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 25%, #BFDBFE 50%, #93C5FD 75%, #60A5FA 100%) !important;
    min-height: 100dvh;
}
.dark .fi-simple-layout {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 25%, #BFDBFE 50%, #93C5FD 75%, #60A5FA 100%) !important;
}

.fi-simple-main {
    border-radius: 1rem;
    border: 1px solid rgba(219, 234, 254, 0.8);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(96, 165, 250, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    --tw-ring-shadow: none;
}
.dark .fi-simple-main {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(219, 234, 254, 0.8);
}

.fi-simple-layout .fi-simple-header-heading { color: #1E3A8A; font-weight: 700; }
.fi-simple-layout .fi-simple-header-subheading { color: #2563EB; }


/* ==========================================================
   12. MODALS & DROPDOWNS
   ========================================================== */

.fi-modal-window {
    border-radius: 0.875rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 20px 40px -12px rgba(30, 64, 175, 0.14);
    --tw-ring-shadow: 0 0 #0000;
    --tw-ring-color: transparent;
}
.dark .fi-modal-window {
    border-color: rgba(229, 231, 235, 0.08);
}

.fi-dropdown-panel {
    border-radius: 0.625rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 8px 20px -4px rgba(30, 64, 175, 0.1);
}
.dark .fi-dropdown-panel {
    border-color: rgba(229, 231, 235, 0.08);
}

.fi-dropdown-list-item-btn { border-radius: 0.375rem; }
.fi-dropdown-list-item-btn:hover { background-color: rgba(239, 246, 255, 0.45); }
.dark .fi-dropdown-list-item-btn:hover { background-color: rgba(96, 165, 250, 0.06); }

/* ============================================================
   DASHBOARD — Desktop Default Styles (no inline styles in blade)
   ============================================================ */

/* Greeting header */
.dashboard-greeting {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
    border-radius: 0.875rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.dashboard-greeting-decor-1 {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.08);
}
.dashboard-greeting-decor-2 {
    position: absolute;
    bottom: -2rem;
    left: 40%;
    width: 10rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.06);
}
.dashboard-greeting-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.dashboard-greeting-title-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.375rem;
}
.dashboard-greeting-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-greeting-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #93C5FD;
}
.dashboard-greeting-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.dashboard-greeting-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.8125rem;
    margin: 0;
}
.dashboard-greeting-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 0.625rem;
    padding: 0.5rem 0.875rem;
    flex-shrink: 0;
}
.dashboard-greeting-date svg {
    width: 1rem;
    height: 1rem;
    color: #93C5FD;
}
.dashboard-greeting-date span {
    color: rgba(255,255,255,0.85);
    font-size: 0.8125rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Quick actions grid */
.dashboard-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.dashboard-quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    box-shadow: 0 1px 3px rgba(30,64,175,0.04);
    cursor: pointer;
}
.dashboard-quick-action:hover {
    border-color: #60A5FA;
    box-shadow: 0 2px 8px rgba(96,165,250,0.12);
}
.dashboard-quick-action-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dashboard-quick-action-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}
.dashboard-quick-action-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.dashboard-quick-action-desc {
    font-size: 0.6875rem;
    color: #6B7280;
    margin: 0;
}

/* Summary cards grid */
.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.dashboard-summary-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(30,64,175,0.04);
}
.dashboard-summary-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.dashboard-summary-card-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-summary-card-icon svg {
    width: 0.875rem;
    height: 0.875rem;
}
.dashboard-summary-card-label {
    font-size: 0.6875rem;
    color: #6B7280;
    font-weight: 500;
}
.dashboard-summary-card-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.dashboard-summary-card-value--truncate {
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-summary-card-hint {
    font-size: 0.625rem;
    color: #A8A29E;
    margin: 0.25rem 0 0;
}
.dashboard-summary-card-payment-row {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    flex-wrap: wrap;
}

/* ---- Nest Hub / Tablet (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    /* Stats widgets: compact for tablet/Nest Hub */
    .fi-wi-stats-overview-stat {
        padding: 0.625rem 0.75rem;
    }
    .fi-wi-stats-overview-stat-label {
        font-size: 0.625rem;
    }
    .fi-wi-stats-overview-stat-value {
        font-size: 0.875rem;
        line-height: 1.2;
    }
    .fi-wi-stats-overview-stat-description {
        font-size: 0.5625rem;
    }
    .fi-wi-stats-overview-stat-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .fi-wi-stats-overview-stat-chart {
        height: 2rem;
    }

    /* Dashboard greeting: compact */
    .dashboard-greeting {
        padding: 1.125rem 1.5rem;
        margin-bottom: 1rem;
    }
    .dashboard-greeting-title {
        font-size: 1.0625rem;
    }
    .dashboard-greeting-subtitle {
        font-size: 0.75rem;
    }
    .dashboard-greeting-date span {
        font-size: 0.75rem;
    }

    /* Quick actions: compact */
    .dashboard-quick-action {
        padding: 0.625rem 0.875rem;
        gap: 0.5rem;
    }
    .dashboard-quick-action-icon {
        width: 1.875rem;
        height: 1.875rem;
    }
    .dashboard-quick-action-icon svg {
        width: 1rem;
        height: 1rem;
    }
    .dashboard-quick-action-title {
        font-size: 0.75rem;
    }
    .dashboard-quick-action-desc {
        font-size: 0.625rem;
    }
    .dashboard-quick-actions-grid {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Summary cards: compact */
    .dashboard-summary-card {
        padding: 0.75rem 1rem;
    }
    .dashboard-summary-card-label {
        font-size: 0.625rem;
    }
    .dashboard-summary-card-value {
        font-size: 0.875rem;
    }
    .dashboard-summary-card-hint {
        font-size: 0.5625rem;
    }
    .dashboard-summary-card-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .dashboard-summary-card-icon svg {
        width: 0.75rem;
        height: 0.75rem;
    }
    .dashboard-summary-grid {
        gap: 0.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    /* Section headers */
    .fi-section-header-heading {
        font-size: 0.875rem;
    }
    .fi-section-header-description {
        font-size: 0.75rem;
    }

    /* Page heading */
    .fi-header-heading {
        font-size: 1.0625rem;
    }
}

/* ---- Mobile: Modal full-width + table improvements ---- */
@media (max-width: 639px) {
    /* Modal: near full-width on mobile */
    .fi-modal-window {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }

    /* Modal footer: stack buttons vertically on very small screens */
    .fi-modal-footer-actions {
        flex-wrap: wrap;
    }
    .fi-modal-footer-actions .fi-btn {
        min-height: 2.5rem;
        font-size: 0.8125rem;
    }

    /* Table cells: tighter padding on mobile */
    .fi-ta-header-cell {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.625rem;
    }
    .fi-ta-col {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.8125rem;
    }

    /* Table action buttons: bigger touch targets */
    .fi-ta-row .fi-icon-btn {
        min-width: 2.25rem;
        min-height: 2.25rem;
    }

    /* Pagination: compact on mobile */
    .fi-pagination {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Stats widgets: compact on mobile */
    .fi-wi-stats-overview-stat {
        padding: 0.5rem 0.625rem;
    }
    .fi-wi-stats-overview-stat-label {
        font-size: 0.5625rem;
    }
    .fi-wi-stats-overview-stat-value {
        font-size: 0.8125rem;
        line-height: 1.2;
    }
    .fi-wi-stats-overview-stat-description {
        font-size: 0.5rem;
    }
    .fi-wi-stats-overview-stat-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    .fi-wi-stats-overview-stat-chart {
        height: 1.5rem;
    }

    /* Section headers: compact */
    .fi-section-header-heading {
        font-size: 0.8125rem;
    }
    .fi-section-header-description {
        font-size: 0.6875rem;
    }

    /* Page heading: smaller on mobile */
    .fi-header-heading {
        font-size: 1rem;
    }

    /* Cards in page content: tighter */
    .fi-section {
        border-radius: 0.75rem;
    }
    .fi-section-content {
        padding: 0.75rem;
    }

    /* Dashboard greeting header */
    .dashboard-greeting {
        padding: 1rem 1.25rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
    .dashboard-greeting-title {
        font-size: 1rem;
    }
    .dashboard-greeting-subtitle {
        font-size: 0.6875rem;
    }
    .dashboard-greeting-date {
        display: none;
    }

    /* Dashboard quick action cards */
    .dashboard-quick-action {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }
    .dashboard-quick-action-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    .dashboard-quick-action-icon svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    .dashboard-quick-action-title {
        font-size: 0.6875rem;
    }
    .dashboard-quick-action-desc {
        font-size: 0.5625rem;
    }

    /* Dashboard summary cards */
    .dashboard-summary-card {
        padding: 0.75rem 1rem;
    }
    .dashboard-summary-card-label {
        font-size: 0.5625rem;
    }
    .dashboard-summary-card-value {
        font-size: 0.9375rem;
    }
    .dashboard-summary-card-hint {
        font-size: 0.5625rem;
    }
    .dashboard-summary-card-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .dashboard-summary-card-icon svg {
        width: 0.75rem;
        height: 0.75rem;
    }

    /* Quick actions grid: 2 cols on mobile */
    .dashboard-quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Summary cards grid */
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* ---- Recipe toggle + expand ---- */

/* Row needs relative for expand panel */
.fi-ta-row:has(.recipe-toggle-col) {
    position: relative;
}

.recipe-toggle-col {
    position: static;
    overflow: visible;
}

/* Arrow button */
.recipe-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: background 150ms ease;
}
.recipe-arrow-btn:hover:not(:disabled) {
    background: rgba(239, 246, 255, 0.5);
}
.recipe-arrow-btn:disabled {
    opacity: 0.25;
    cursor: default;
}
.dark .recipe-arrow-btn:hover:not(:disabled) {
    background: rgba(96, 165, 250, 0.08);
}

.recipe-arrow-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #1E40AF;
    transition: transform 150ms ease;
    flex-shrink: 0;
}
.recipe-arrow-icon.is-open {
    transform: rotate(180deg);
}
.dark .recipe-arrow-icon {
    color: #93C5FD;
}

/* Expand panel no longer used — injected as <tr> via Alpine.js */

/* Each ingredient line — full width */
.recipe-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.25);
}
.recipe-line:last-child {
    border-bottom: none;
}
.dark .recipe-line {
    border-bottom-color: rgba(229, 231, 235, 0.04);
}

.recipe-line-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #2563EB;
    flex-shrink: 0;
}
.dark .recipe-line-dot {
    background: #60A5FA;
}

.recipe-line-name {
    font-weight: 600;
    color: #111827;
}
.dark .recipe-line-name {
    color: #F9FAFB;
}

.recipe-line-sep {
    color: #9CA3AF;
    font-size: 0.75rem;
}

.recipe-line-qty {
    color: #1E40AF;
    font-weight: 500;
}
.dark .recipe-line-qty {
    color: #93C5FD;
}

.recipe-line-note {
    color: #6B7280;
    font-size: 0.75rem;
    font-style: italic;
}
.dark .recipe-line-note {
    color: rgba(156, 163, 175, 0.5);
}

/* Modal footer: buttons right-aligned, Simpan paling kanan */
.fi-modal-footer-actions {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    width: 100%;
    gap: 0.5rem;
}


/* ==========================================================
   13. MISC: breadcrumbs, notifications, pagination, tabs, page header
   ========================================================== */

.fi-breadcrumbs { font-size: 0.8rem; display: flex !important; }
.fi-breadcrumbs-item-label { color: #6B7280; }

.fi-no { border-radius: 0.625rem; }

/* ---- Pagination (match frontend /history) ---- */

/* Container bar */
.fi-pagination {
    background: rgba(239, 246, 255, 0.3);
    padding: 0.75rem 1rem;
    align-items: center;
}
.dark .fi-pagination {
    background: rgba(30, 64, 175, 0.1);
}

/* Info text "Menampilkan X dari Y" */
.fi-pagination-overview {
    color: #6B7280;
    font-size: 0.8125rem;
}
.dark .fi-pagination-overview {
    color: #9CA3AF;
}

/* Page number list — strip the box, make individual pills */
.fi-pagination-items {
    --tw-ring-shadow: 0 0 #0000;
    --tw-ring-color: transparent;
    --tw-shadow: 0 0 #0000;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    gap: 0.25rem;
}

/* Each page item — kill borders, make standalone pill */
.fi-pagination-item {
    border: none;
    border-left: none;
    border-right: none;
    border-inline-start-width: 0;
    border-inline-end-width: 0;
}

/* Page button — rounded circle */
.fi-pagination-item .fi-pagination-item-btn {
    border-radius: 9999px;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 120ms ease;
    background: transparent;
}
.fi-pagination-item .fi-pagination-item-btn:hover {
    background: rgba(239, 246, 255, 0.6);
}
.dark .fi-pagination-item .fi-pagination-item-btn:hover {
    background: rgba(96, 165, 250, 0.08);
}

/* First/last item btn — also round (override Filament's rounded-s-lg / rounded-e-lg) */
.fi-pagination-item:first-of-type .fi-pagination-item-btn,
.fi-pagination-item:last-of-type .fi-pagination-item-btn {
    border-radius: 9999px;
}

/* Page number label */
.fi-pagination-item .fi-pagination-item-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1E40AF;
    padding: 0;
}
.dark .fi-pagination-item .fi-pagination-item-label {
    color: #93C5FD;
}

/* Active page — filled circle like frontend */
.fi-pagination-item.fi-active .fi-pagination-item-btn {
    background: #2563EB;
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.15);
}
.fi-pagination-item.fi-active .fi-pagination-item-btn:hover {
    background: #2563EB;
}
.fi-pagination-item.fi-active .fi-pagination-item-label {
    color: #FFFFFF;
}
.dark .fi-pagination-item.fi-active .fi-pagination-item-btn {
    background: #60A5FA;
}
.dark .fi-pagination-item.fi-active .fi-pagination-item-label {
    color: #1E3A8A;
}

/* Disabled (ellipsis) */
.fi-pagination-item.fi-disabled .fi-pagination-item-label {
    color: #9CA3AF;
    font-size: 0.75rem;
}

/* Prev/Next arrow icons inside pagination items */
.fi-pagination-item .fi-pagination-item-btn .fi-icon {
    color: #1E40AF;
    width: 1rem;
    height: 1rem;
}
.dark .fi-pagination-item .fi-pagination-item-btn .fi-icon {
    color: #93C5FD;
}

/* Prev/Next text buttons (mobile) — rounded pill style */
.fi-pagination-previous-btn,
.fi-pagination-next-btn {
    border-radius: 9999px;
    font-size: 0.8125rem;
}

/* Records per page select */
.fi-pagination-records-per-page-select-ctn {
    font-size: 0.8125rem;
    color: #6B7280;
}
.dark .fi-pagination-records-per-page-select-ctn {
    color: #9CA3AF;
}

.fi-tabs-tab { border-radius: 0.625rem; transition: all 120ms ease; }
.fi-tabs-tab.fi-active { box-shadow: 0 1px 3px rgba(30, 64, 175, 0.06); }

.fi-header-heading { color: #111827; font-weight: 700; }
.fi-header-subheading { color: #6B7280; }

.fi-wi { border-radius: 0.875rem; overflow: hidden; }


/* ==========================================================
   14. EDIT / CREATE PAGE — RESPONSIVE POLISH
   ========================================================== */

/* ---- Page header: tighter spacing, aligned ---- */
.fi-header {
    gap: 0.75rem;
}

/* Desktop: header row — title left, actions right */
@media (min-width: 768px) {
    .fi-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

/* Page title */
.fi-header-heading {
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
@media (max-width: 639px) {
    .fi-header-heading {
        font-size: 1.0625rem;
    }
}

/* Breadcrumbs: clean, compact */
.fi-breadcrumbs {
    margin-bottom: 0.125rem;
}
.fi-breadcrumbs-item-label {
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 150ms ease;
}
.fi-breadcrumbs-item-label:hover {
    color: #2563EB;
}
.fi-breadcrumbs-item-separator .fi-icon {
    color: #9CA3AF;
    width: 0.75rem;
    height: 0.75rem;
}
.dark .fi-breadcrumbs-item-label {
    color: #9CA3AF;
}
.dark .fi-breadcrumbs-item-label:hover {
    color: #60A5FA;
}
.dark .fi-breadcrumbs-item-separator .fi-icon {
    color: rgba(156, 163, 175, 0.4);
}

/* ---- Header actions (Cancel button) ---- */
.fi-header-actions-ctn {
    flex-shrink: 0;
}
.fi-header-actions-ctn .fi-btn {
    font-size: 0.8125rem;
    min-height: 2.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Mobile: cancel button compact, right-aligned */
@media (max-width: 639px) {
    .fi-header-actions-ctn .fi-btn {
        font-size: 0.75rem;
        min-height: 2rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ---- Form: constrain width on desktop for readability ---- */
.fi-resource-edit-record-page .fi-sc-form,
.fi-resource-create-record-page .fi-sc-form {
    max-width: 42rem;
}

/* ---- Section: refined header ---- */
.fi-section-header {
    padding: 0.875rem 1.25rem;
    gap: 0.625rem;
}
@media (max-width: 639px) {
    .fi-section-header {
        padding: 0.75rem 1rem;
    }
}

/* Section icon */
.fi-section-header > .fi-icon {
    color: #2563EB;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}
.dark .fi-section-header > .fi-icon {
    color: #60A5FA;
}

/* Section heading */
.fi-section-header-heading {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Section description */
.fi-section-header-description {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-top: 0.0625rem;
}

/* Section content: comfortable padding */
.fi-section-content {
    padding: 1.25rem;
}
@media (max-width: 639px) {
    .fi-section-content {
        padding: 1rem;
    }
}

/* ---- Form field labels ---- */
.fi-fo-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
}
.dark .fi-fo-field-label {
    color: #DBEAFE;
}

/* Required asterisk */
.fi-fo-field-label-required-mark {
    color: #2563EB;
    margin-left: 0.125rem;
}

/* Helper text */
.fi-fo-field-helper-text {
    font-size: 0.6875rem;
    color: #6B7280;
    margin-top: 0.25rem;
    line-height: 1.4;
}
.dark .fi-fo-field-helper-text {
    color: #9CA3AF;
}

/* ---- Field spacing inside sections ---- */
.fi-section-content .fi-sc {
    gap: 1rem;
}
@media (max-width: 639px) {
    .fi-section-content .fi-sc {
        gap: 0.875rem;
    }
}

/* ---- Input fields: blue theme ---- */
.fi-input {
    font-size: 0.875rem;
    color: #1E3A8A;
}
.fi-input::placeholder {
    color: #93C5FD;
    font-weight: 400;
}
.dark .fi-input {
    color: #DBEAFE;
}
.dark .fi-input::placeholder {
    color: rgba(147, 197, 253, 0.4);
}

/* Textarea */
textarea.fi-input {
    line-height: 1.6;
}

/* ---- Toggle: blue style ---- */
.fi-toggle-on {
    background-color: #1E40AF;
}
.fi-toggle-on:hover {
    background-color: #2563EB;
}
.dark .fi-toggle-on {
    background-color: #60A5FA;
}
.dark .fi-toggle-on:hover {
    background-color: #93C5FD;
}

/* Toggle label inline */
.fi-fo-field:has(.fi-toggle) .fi-fo-field-label {
    cursor: pointer;
}

/* ---- Form actions (Save button area) ---- */
.fi-sc-actions {
    padding-top: 0.25rem;
}

/* Save button: blue primary */
.fi-resource-edit-record-page .fi-sc-form .fi-ac-btn-action,
.fi-resource-create-record-page .fi-sc-form .fi-ac-btn-action {
    min-height: 2.5rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.625rem;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.1);
    letter-spacing: 0.01em;
}
.fi-resource-edit-record-page .fi-sc-form .fi-ac-btn-action:hover,
.fi-resource-create-record-page .fi-sc-form .fi-ac-btn-action:hover {
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.14);
    transform: translateY(-1px);
}
.fi-resource-edit-record-page .fi-sc-form .fi-ac-btn-action:active,
.fi-resource-create-record-page .fi-sc-form .fi-ac-btn-action:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile: full-width save button */
@media (max-width: 639px) {
    .fi-resource-edit-record-page .fi-sc-form .fi-ac-btn-action,
    .fi-resource-create-record-page .fi-sc-form .fi-ac-btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* ---- Sticky form actions on mobile ---- */
@media (max-width: 639px) {
    .fi-resource-edit-record-page .fi-sc-actions,
    .fi-resource-create-record-page .fi-sc-actions {
        position: sticky;
        bottom: 0;
        z-index: 10;
        background: rgba(249, 250, 251, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0.75rem 0;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-top: 1px solid rgba(229, 231, 235, 0.5);
    }
    .dark .fi-resource-edit-record-page .fi-sc-actions,
    .dark .fi-resource-create-record-page .fi-sc-actions {
        background: rgba(17, 24, 39, 0.95);
        border-top-color: rgba(229, 231, 235, 0.06);
    }
}

/* ---- Page content spacing ---- */
.fi-page-content {
    gap: 1.25rem;
}
@media (max-width: 639px) {
    .fi-page-content {
        gap: 1rem;
    }
    /* Tighter main padding on mobile */
    .fi-main-ctn {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ---- Form gap between sections ---- */
.fi-resource-edit-record-page .fi-sc-form > .fi-sc,
.fi-resource-create-record-page .fi-sc-form > .fi-sc {
    gap: 1.25rem;
}

/* ---- Outlined button (Cancel) blue style ---- */
.fi-btn.fi-btn-outlined.fi-color-gray {
    border-color: #E5E7EB;
    color: #1E40AF;
}
.fi-btn.fi-btn-outlined.fi-color-gray:hover {
    background: rgba(239, 246, 255, 0.35);
    border-color: #93C5FD;
}
.dark .fi-btn.fi-btn-outlined.fi-color-gray {
    border-color: rgba(229, 231, 235, 0.12);
    color: #93C5FD;
}
.dark .fi-btn.fi-btn-outlined.fi-color-gray:hover {
    background: rgba(96, 165, 250, 0.06);
    border-color: rgba(96, 165, 250, 0.2);
}


/* ==========================================================
   15. TRANSITIONS & REDUCED MOTION
   ========================================================== */

button, a, input, select, textarea {
    transition: all 150ms ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================
   16. REPORT PAGES (Pemakaian Bahan & Stok Harian)
   ========================================================== */

/* ---- Filter Bar ---- */
.report-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.05);
}
.dark .report-filter-bar {
    background: #1C1917;
    border-color: rgba(229, 231, 235, 0.08);
}

.report-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dark .report-filter-label {
    color: #9CA3AF;
}

.report-filter-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-family: 'Inter', sans-serif;
    color: #111827;
    background: rgba(239, 246, 255, 0.1);
    transition: all 150ms ease;
    min-width: 10rem;
}
.report-filter-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background: white;
}
.dark .report-filter-input {
    background: rgba(239, 246, 255, 0.04);
    border-color: rgba(229, 231, 235, 0.12);
    color: #F9FAFB;
}
.dark .report-filter-input:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.15);
}

.report-filter-info {
    display: flex;
    align-items: center;
    padding-bottom: 0.375rem;
}

.report-filter-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1E40AF;
    background: rgba(239, 246, 255, 0.6);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.dark .report-filter-badge {
    color: #93C5FD;
    background: rgba(96, 165, 250, 0.1);
}

/* ---- Report Card ---- */
.report-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.05);
    overflow: hidden;
}
.dark .report-card {
    background: #1C1917;
    border-color: rgba(229, 231, 235, 0.08);
}

.report-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(249, 250, 251, 0.5);
    border-bottom: 1px solid rgba(229, 231, 235, 0.4);
}
.dark .report-card-header {
    background: rgba(30, 64, 175, 0.1);
    border-bottom-color: rgba(229, 231, 235, 0.06);
}

.report-card-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: rgba(37, 99, 235, 0.1);
    flex-shrink: 0;
}

.report-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.dark .report-card-title {
    color: #F9FAFB;
}

.report-card-subtitle {
    font-size: 0.75rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}
.dark .report-card-subtitle {
    color: #9CA3AF;
}

/* ---- Report Table ---- */
.report-table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #93C5FD transparent;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.report-table thead th {
    padding: 0.625rem 0.75rem;
    font-size: 0.675rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6B7280;
    background: rgba(249, 250, 251, 0.4);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    white-space: nowrap;
    text-align: left;
}
.dark .report-table thead th {
    color: #93C5FD;
    background: rgba(30, 64, 175, 0.1);
    border-bottom-color: rgba(229, 231, 235, 0.06);
}

.report-table tbody tr {
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    transition: background 120ms ease;
}
.report-table tbody tr:last-child {
    border-bottom: none;
}
.report-table tbody tr:hover {
    background: rgba(239, 246, 255, 0.15);
}
.dark .report-table tbody tr {
    border-bottom-color: rgba(229, 231, 235, 0.04);
}
.dark .report-table tbody tr:hover {
    background: rgba(96, 165, 250, 0.03);
}

.report-table tbody td {
    padding: 0.5rem 0.75rem;
    color: #111827;
    vertical-align: middle;
}
.dark .report-table tbody td {
    color: #F9FAFB;
}

.report-td-num {
    color: #A8A29E;
    font-size: 0.75rem;
    font-weight: 500;
}

.report-td-name {
    font-weight: 600;
    color: #111827;
}
.dark .report-td-name {
    color: #F9FAFB;
}

.report-td-unit {
    color: #6B7280;
    font-size: 0.75rem;
}
.dark .report-td-unit {
    color: #9CA3AF;
}

.report-td-qty {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.report-td-date {
    font-weight: 600;
    color: #1E40AF;
    white-space: nowrap;
    font-size: 0.8125rem;
}
.dark .report-td-date {
    color: #93C5FD;
}

/* ---- Badges & Status ---- */
.report-usage-badge {
    font-weight: 700;
    color: #DC2626;
    font-variant-numeric: tabular-nums;
}
.dark .report-usage-badge {
    color: #FCA5A5;
}

.report-count-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #1E40AF;
    background: rgba(239, 246, 255, 0.6);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}
.dark .report-count-badge {
    color: #93C5FD;
    background: rgba(96, 165, 250, 0.1);
}

.report-stock-ok {
    font-weight: 600;
    color: #059669;
    font-variant-numeric: tabular-nums;
}
.dark .report-stock-ok {
    color: #6EE7B7;
}

.report-stock-low {
    font-weight: 700;
    color: #DC2626;
    font-variant-numeric: tabular-nums;
}
.dark .report-stock-low {
    color: #FCA5A5;
}

.report-status-ok {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}
.dark .report-status-ok {
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.15);
}

.report-status-low {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #DC2626;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}
.dark .report-status-low {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.15);
}

/* ---- Matrix Table (Stok Harian) ---- */
.report-table-matrix {
    table-layout: auto;
}

.report-th-sticky,
.report-td-sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    background: white;
}
.dark .report-th-sticky,
.dark .report-td-sticky {
    background: #1C1917;
}

.report-th-sticky {
    background: rgba(249, 250, 251, 0.6);
    min-width: 8rem;
}
.dark .report-th-sticky {
    background: rgba(30, 64, 175, 0.15);
}

.report-cell-active {
    background: rgba(239, 246, 255, 0.12);
}
.dark .report-cell-active {
    background: rgba(96, 165, 250, 0.04);
}

.report-cell-dot {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #2563EB;
    margin-left: 0.25rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.dark .report-cell-dot {
    background: #60A5FA;
}

/* ---- Empty State ---- */
.report-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.05);
    text-align: center;
}
.dark .report-empty {
    background: #1C1917;
    border-color: rgba(229, 231, 235, 0.08);
}

.report-empty-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1E40AF;
    margin: 0 0 0.25rem;
}
.dark .report-empty-title {
    color: #93C5FD;
}

.report-empty-subtitle {
    font-size: 0.8125rem;
    color: #2563EB;
    margin: 0;
}
.dark .report-empty-subtitle {
    color: #60A5FA;
}

/* ---- Legend ---- */
.report-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: #6B7280;
}
.dark .report-legend {
    color: #9CA3AF;
}

.report-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ---- Stock In/Out/Adj Values ---- */
.report-val-in {
    font-weight: 700;
    color: #059669;
    font-variant-numeric: tabular-nums;
}
.dark .report-val-in {
    color: #6EE7B7;
}

.report-val-out {
    font-weight: 700;
    color: #DC2626;
    font-variant-numeric: tabular-nums;
}
.dark .report-val-out {
    color: #FCA5A5;
}

.report-val-adj {
    font-weight: 600;
    color: #D97706;
    font-variant-numeric: tabular-nums;
}
.dark .report-val-adj {
    color: #FBBF24;
}

.report-val-zero {
    color: #D6D3D1;
    font-size: 0.75rem;
}
.dark .report-val-zero {
    color: #57534E;
}

/* ---- Stock Before / After ---- */
.report-td-stock-before {
    color: #78716C;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.dark .report-td-stock-before {
    color: #A8A29E;
}

.report-td-stock-after {
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}
.dark .report-td-stock-after {
    color: #F9FAFB;
}

/* ---- Diff indicator (selisih) ---- */
.report-diff {
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.report-diff-up {
    color: #059669;
}
.dark .report-diff-up {
    color: #6EE7B7;
}

.report-diff-down {
    color: #DC2626;
}
.dark .report-diff-down {
    color: #FCA5A5;
}

/* ---- Summary Pills (header badges) ---- */
.report-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
}

.report-summary-pill-in {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}
.dark .report-summary-pill-in {
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.15);
}

.report-summary-pill-out {
    color: #DC2626;
    background: rgba(239, 68, 68, 0.1);
}
.dark .report-summary-pill-out {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.15);
}

/* ---- Responsive ---- */
@media (max-width: 639px) {
    .report-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .report-filter-input {
        min-width: auto;
        width: 100%;
    }
    .report-card-header {
        padding: 0.75rem 1rem;
    }
    .report-table thead th,
    .report-table tbody td {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    .report-summary-pill {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
}

/* ============================================================
   ORDER DETAIL MODAL — Mobile Responsive
   ============================================================ */
@media (max-width: 639px) {
    /* Info grid: stack to 1 column */
    .order-detail-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        font-size: 0.8125rem;
    }
    .order-detail-label {
        font-size: 0.6875rem;
    }
    .order-detail-value {
        font-size: 0.8125rem;
    }

    /* Hide desktop table, show mobile cards */
    .order-detail-items-table {
        display: none;
    }
    .order-detail-items-mobile {
        display: flex;
    }

    /* Payment summary: compact */
    .order-detail-payment-summary {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    /* Cost summary: compact */
    .order-detail-cost-summary {
        padding: 10px 12px;
    }
    .order-detail-cost-breakdown {
        font-size: 0.6875rem;
    }

    /* Alert boxes: compact */
    .order-detail-alert-box {
        padding: 10px 12px;
    }

    /* Notes: compact */
    .order-detail-notes {
        padding: 8px 12px;
    }

    /* Section title */
    .order-detail-section-title {
        font-size: 0.75rem;
    }

    /* Overall gap */
    .order-detail-wrap {
        gap: 12px;
    }
}



/* Search field container */
.fi-ta-search-field {
    position: relative !important;
    margin-bottom: 1rem !important;
}

/* Search input styling */
.fi-ta-search-field input[type="search"],
.fi-ta-search input[type="search"] {
    width: 100% !important;
    height: 2.5rem !important;
    padding: 0.5rem 1rem 0.5rem 2.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    border-radius: 0.75rem !important;
    border: none !important;
    background-color: #ffffff !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: none !important;
    outline: none !important;
}

.fi-ta-search-field input[type="search"]:hover,
.fi-ta-search input[type="search"]:hover {
    border-color: transparent !important;
}

.fi-ta-search-field input[type="search"]:focus,
.fi-ta-search input[type="search"]:focus {
    outline: none !important;
    border-color: #DBEAFE !important;
    box-shadow: none !important;
}

.fi-ta-search-field input[type="search"]::placeholder,
.fi-ta-search input[type="search"]::placeholder {
    color: #9ca3af !important;
}

/* Search icon positioning */
.fi-ta-search-field svg,
.fi-ta-search svg {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1rem !important;
    height: 1rem !important;
    color: #9ca3af !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.fi-ta-search-field:focus-within svg,
.fi-ta-search:focus-within svg {
    color: #60A5FA !important;
}

/* Dark mode support */
.dark .fi-ta-search-field input[type="search"],
.dark .fi-ta-search input[type="search"] {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #f9fafb !important;
}

.dark .fi-ta-search-field input[type="search"]:hover,
.dark .fi-ta-search input[type="search"]:hover {
    border-color: #4b5563 !important;
}

.dark .fi-ta-search-field input[type="search"]:focus,
.dark .fi-ta-search input[type="search"]:focus {
    border-color: #374151 !important;
    box-shadow: none !important;
}





/* Widget header container - make it flex row */


/* Title on the left */


/* Search on the right */


/* Responsive: stack on mobile */
@media (max-width: 640px) {
    
    
    
}



/* Main widget container */


/* Header wrapper - force flex row layout */


/* Title container */


/* Title text */


/* Search container - move to header row */


/* If search is in content, move it up */


/* Adjust content padding if search is absolute */


/* Responsive: stack on small screens */
@media (max-width: 640px) {
    
    
    
}



/* Header flex container after JS manipulation */


/* Search when moved to header */


/* Hide original search position */




/* Widget section - use grid layout */


/* Header area - grid with 2 columns */


/* Heading stays in first column */


/* Search moves to second column */


/* Content area */


/* If search is in content, move it to header row */


/* Responsive */
@media (max-width: 640px) {
    
    
    
}



/* Target the entire widget section content */


/* Create a flex row for header + search */


/* Header in the row */


/* Search in the row */


/* Table content */


/* Alternative: if search is sibling of header */






/* Responsive */
@media (max-width: 768px) {
    
    
    
}



/* Widget container */


/* Header styling */




/* Add icon before heading */


/* Search box styling - modern and clean */










/* Search icon */




/* Table styling */










/* Badge styling */


/* Dark mode support */
.dark 

.dark 

.dark 

.dark 

.dark 

.dark 

.dark 



/* Add subtle animation to search box */


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search box container positioning */


/* Make search box full width on mobile, right-aligned on desktop */
@media (min-width: 768px) {
    
}

/* Add subtle pulse animation to warning icon in table */


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Improve badge contrast */








/* Add loading state for search */


/* Improve table cell alignment */


/* Add subtle border to widget */


.dark 



/* Hide default Filament table search since we have custom one in header */


/* Ensure custom header search is visible */




/* Target widget section and force grid layout */


/* Header row with grid */


/* Heading in first column */


/* Search in second column */


/* If they're siblings, use flexbox */






/* Dark mode */
.dark 

/* ============================================================
   LOW STOCK ALERT - CLEAN LAYOUT WITH FULL WIDTH SEARCH
   ============================================================ */

/* Widget styling */
.fi-wi-low-stock-alert .fi-section {
    border-radius: 1rem !important;
}

/* Header with icon */
.fi-wi-low-stock-alert .fi-section-header {
    padding-bottom: 0.75rem !important;
    margin-bottom: 0 !important;
}

.fi-wi-low-stock-alert .fi-section-header-heading {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

/* Search box - FULL WIDTH */
.fi-wi-low-stock-alert .fi-ta-search {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.25rem !important;
}

.fi-wi-low-stock-alert .fi-ta-search input[type="search"] {
    width: 100% !important;
    height: 2.75rem !important;
    padding: 0.625rem 1rem 0.625rem 2.75rem !important;
    font-size: 0.9375rem !important;
    border-radius: 0.875rem !important;
    border: 2px solid #e5e7eb !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

.fi-wi-low-stock-alert .fi-ta-search input[type="search"]:hover {
    border-color: #d1d5db !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08) !important;
}

.fi-wi-low-stock-alert .fi-ta-search input[type="search"]:focus {
    outline: none !important;
    border-color: #DBEAFE !important;
    box-shadow: none !important;
}

.fi-wi-low-stock-alert .fi-ta-search input[type="search"]::placeholder {
    color: #9ca3af !important;
}

/* Search icon */
.fi-wi-low-stock-alert .fi-ta-search svg {
    position: absolute !important;
    left: 0.875rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: #9ca3af !important;
    pointer-events: none !important;
    transition: color 0.2s ease !important;
}

.fi-wi-low-stock-alert .fi-ta-search:focus-within svg {
    color: #60A5FA !important;
}

/* Table styling */
.fi-wi-low-stock-alert .fi-ta-header-cell {
    background: #f9fafb !important;
    font-weight: 600 !important;
    font-size: 0.6875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #6b7280 !important;
}

.fi-wi-low-stock-alert .fi-ta-row:hover {
    background: #EFF6FF !important;
}

/* Dark mode */
.dark .fi-wi-low-stock-alert .fi-section-header-heading {
    color: #f9fafb !important;
}

.dark .fi-wi-low-stock-alert .fi-ta-search input[type="search"] {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #f9fafb !important;
}

.dark .fi-wi-low-stock-alert .fi-ta-search input[type="search"]:hover {
    border-color: #4b5563 !important;
}

.dark .fi-wi-low-stock-alert .fi-ta-search input[type="search"]:focus {
    border-color: #374151 !important;
}

.dark .fi-wi-low-stock-alert .fi-ta-header-cell {
    background: #1f2937 !important;
}

.dark .fi-wi-low-stock-alert .fi-ta-row:hover {
    background: #374151 !important;
}

/* ============================================================
   LOW STOCK ALERT - FORCE FULL WIDTH SEARCH (AGGRESSIVE)
   ============================================================ */

/* Force search container to full width */
.fi-wi-low-stock-alert .fi-ta-search,
.fi-wi-low-stock-alert .fi-ta-search-field,
.fi-wi-low-stock-alert .fi-section-content > div:has(.fi-ta-search) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
}

/* Force input to full width */
.fi-wi-low-stock-alert .fi-ta-search input,
.fi-wi-low-stock-alert .fi-ta-search input[type="search"] {
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove any flex constraints */
.fi-wi-low-stock-alert .fi-section-content {
    display: block !important;
}

.fi-wi-low-stock-alert .fi-section-content > * {
    width: 100% !important;
}

/* ============================================================
   MOBILE RESPONSIVE - BREAKPOINTS
   ============================================================
   - sm: <= 640px (phones)
   - md: <= 768px (small tablets)
   - lg: <= 1024px (tablets/small laptops)
   ============================================================ */

/* ============================================================
   MOBILE: DASHBOARD KPI CARDS - STACK VERTICAL
   ============================================================ */
@media (max-width: 768px) {
    /* Stats overview widgets - stack cards */
    .fi-wi-stats-overview-stats,
    .fi-wi-stats-overview .fi-wi-stats-overview-stats {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .fi-wi-stats-overview-stat {
        width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Widget grid - single column */
    .fi-widgets,
    .fi-page .fi-widgets {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .fi-widgets > * {
        grid-column: span 1 !important;
    }
}

/* ============================================================
   MOBILE: TABLE HORIZONTAL SCROLL
   ============================================================ */
@media (max-width: 768px) {
    /* Table container - horizontal scroll */
    .fi-ta,
    .fi-section-content:has(.fi-ta) {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .fi-ta-content {
        overflow-x: auto !important;
        min-width: 100% !important;
    }

    .fi-ta table {
        min-width: 600px !important;
    }

    /* Hide less important columns on mobile */
    .fi-ta-header-cell.fi-hidden-mobile,
    .fi-ta-cell.fi-hidden-mobile {
        display: none !important;
    }

    /* Compact table cells */
    .fi-ta-cell,
    .fi-ta-header-cell {
        padding: 0.5rem 0.625rem !important;
        font-size: 0.8125rem !important;
    }

    /* Table actions - compact */
    .fi-ta-actions {
        gap: 0.25rem !important;
    }
}

/* ============================================================
   MOBILE: FORM FIELDS FULL-WIDTH
   ============================================================ */
@media (max-width: 768px) {
    /* Form grid - single column */
    .fi-fo-component-ctn,
    .fi-fo .fi-fo-component-ctn {
        grid-template-columns: 1fr !important;
    }

    .fi-fo-component-ctn > * {
        grid-column: span 1 !important;
    }

    /* Form field wrappers */
    .fi-fo-field-wrp {
        width: 100% !important;
    }

    /* Fieldset grid */
    .fi-fo-fieldset .fi-fo-component-ctn {
        grid-template-columns: 1fr !important;
    }

    /* Section content */
    .fi-section-content .fi-fo-component-ctn {
        grid-template-columns: 1fr !important;
    }

    /* Inline fields - stack */
    .fi-fo-component-ctn[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   MOBILE: MODAL FULL-SCREEN
   ============================================================ */
@media (max-width: 768px) {
    /* Modal container - fit content, max full screen */
    .fi-modal-window,
    .fi-modal .fi-modal-window {
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: unset !important;
        max-height: 85vh !important;
        margin: 0 !important;
        border-radius: 1.25rem 1.25rem 0 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        box-shadow: 0 -10px 25px rgba(9, 30, 66, 0.15) !important;
    }

    /* Modal content - scrollable */
    .fi-modal-content {
        max-height: calc(85vh - 9rem) !important;
        overflow-y: auto !important;
        padding-bottom: 2rem !important;
    }

    /* Modal header - sticky */
    .fi-modal-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: white !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    /* Modal footer - sticky bottom with iOS safe area support */
    .fi-modal-footer,
    .fi-modal-footer-actions {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 10 !important;
        background: white !important;
        border-top: 1px solid #e5e7eb !important;
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom)) !important;
    }

    /* Action modal buttons - full width */
    .fi-modal-footer .fi-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ============================================================
   MOBILE: FONT SIZE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    /* Base font size reduction */
    .fi-body {
        font-size: 0.875rem !important;
    }

    /* Page heading */
    .fi-header-heading {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }

    /* Subheading */
    .fi-header-subheading {
        font-size: 0.8125rem !important;
    }

    /* Section headings */
    .fi-section-header-heading {
        font-size: 1rem !important;
    }

    /* Navigation items */
    .fi-sidebar-item-label {
        font-size: 0.8125rem !important;
    }

    /* Breadcrumbs */
    .fi-breadcrumbs {
        font-size: 0.75rem !important;
    }

    /* Badge text */
    .fi-badge {
        font-size: 0.6875rem !important;
        padding: 0.125rem 0.5rem !important;
    }
}

/* ============================================================
   MOBILE: SPACING REDUCTION
   ============================================================ */
@media (max-width: 768px) {
    /* Main content padding */
    .fi-page,
    .fi-main-ctn {
        padding: 0.25rem !important;
    }

    /* Section padding */
    .fi-section-content {
        padding: 0.75rem !important;
    }

    .fi-section-header {
        padding: 0.75rem !important;
    }

    /* Card/widget padding */
    .fi-wi-stats-overview-stat {
        padding: 0.75rem !important;
    }

    /* Header spacing */
    .fi-header {
        padding: 0.25rem 0 !important;
        gap: 0.25rem !important;
    }

    /* Actions spacing */
    .fi-header-actions {
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
    }

    /* Tabs compact */
    .fi-tabs {
        gap: 0 !important;
        overflow-x: auto !important;
    }

    .fi-tabs-item {
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap !important;
    }
}

/* ============================================================
   MOBILE: SIDEBAR OVERLAY (SMALL SCREENS)
   ============================================================ */
@media (max-width: 768px) {
    /* Sidebar - full overlay on mobile */
    .fi-sidebar {
        z-index: 50 !important;
    }

    /* Main content - no margin when sidebar hidden */
    .fi-main-ctn {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* ============================================================
   MOBILE: BUTTONS & ACTIONS
   ============================================================ */
@media (max-width: 640px) {
    /* Action buttons - compact */
    .fi-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }

    /* Icon buttons - smaller */
    .fi-icon-btn {
        width: 2rem !important;
        height: 2rem !important;
    }

    .fi-icon-btn svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    /* Header actions - stack on very small screens */
    .fi-header-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .fi-header-actions .fi-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ============================================================
   MOBILE: PAGINATION
   ============================================================ */
@media (max-width: 640px) {
    /* Pagination - compact */
    .fi-ta-pagination {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }

    .fi-ta-pagination-records {
        font-size: 0.75rem !important;
    }

    /* Per-page selector */
    .fi-ta-page-count-select {
        font-size: 0.75rem !important;
    }
}

/* ============================================================
   MOBILE: NOTIFICATIONS
   ============================================================ */
@media (max-width: 640px) {
    /* Notifications - full width on mobile */
    .fi-notification {
        width: calc(100vw - 1.5rem) !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   MOBILE: ORDER DETAIL PAGE (CUSTOM)
   ============================================================ */
@media (max-width: 768px) {
    /* Order detail grid - stack */
    .order-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* Order detail header info */
    .order-detail-header {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Order summary cards */
    .order-summary-cards {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .order-summary-cards {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   TABLET: ADJUSTMENTS (768px - 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Stats - 2 columns on tablet */
    .fi-wi-stats-overview-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Subheading */
    .fi-header-subheading {
        font-size: 0.8125rem !important;
    }

    /* Section headings */
    .fi-section-header-heading {
        font-size: 1rem !important;
    }

    /* Navigation items */
    .fi-sidebar-item-label {
        font-size: 0.8125rem !important;
    }

    /* Breadcrumbs */
    .fi-breadcrumbs {
        font-size: 0.75rem !important;
    }

    /* Badge text */
    .fi-badge {
        font-size: 0.6875rem !important;
        padding: 0.125rem 0.5rem !important;
    }
}

/* ============================================================
   MOBILE: SPACING REDUCTION
   ============================================================ */
@media (max-width: 768px) {
    /* Main content padding */
    .fi-page,
    .fi-main-ctn {
        padding: 0.25rem !important;
    }

    /* Section padding */
    .fi-section-content {
        padding: 0.75rem !important;
    }

    .fi-section-header {
        padding: 0.75rem !important;
    }

    /* Card/widget padding */
    .fi-wi-stats-overview-stat {
        padding: 0.75rem !important;
    }

    /* Header spacing */
    .fi-header {
        padding: 0.25rem 0 !important;
        gap: 0.25rem !important;
    }

    /* Actions spacing */
    .fi-header-actions {
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
    }

    /* Tabs compact */
    .fi-tabs {
        gap: 0 !important;
        overflow-x: auto !important;
    }

    .fi-tabs-item {
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap !important;
    }
}

/* ============================================================
   MOBILE: SIDEBAR OVERLAY (SMALL SCREENS)
   ============================================================ */
@media (max-width: 768px) {
    /* Sidebar - full overlay on mobile */
    .fi-sidebar {
        z-index: 50 !important;
    }

    /* Main content - no margin when sidebar hidden */
    .fi-main-ctn {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* ============================================================
   MOBILE: BUTTONS & ACTIONS
   ============================================================ */
@media (max-width: 640px) {
    /* Action buttons - compact */
    .fi-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }

    /* Icon buttons - smaller */
    .fi-icon-btn {
        width: 2rem !important;
        height: 2rem !important;
    }

    .fi-icon-btn svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    /* Header actions - stack on very small screens */
    .fi-header-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .fi-header-actions .fi-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ============================================================
   MOBILE: PAGINATION
   ============================================================ */
@media (max-width: 640px) {
    /* Pagination - compact */
    .fi-ta-pagination {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }

    .fi-ta-pagination-records {
        font-size: 0.75rem !important;
    }

    /* Per-page selector */
    .fi-ta-page-count-select {
        font-size: 0.75rem !important;
    }
}

/* ============================================================
   MOBILE: NOTIFICATIONS
   ============================================================ */
@media (max-width: 640px) {
    /* Notifications - full width on mobile */
    .fi-notification {
        width: calc(100vw - 1.5rem) !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   MOBILE: ORDER DETAIL PAGE (CUSTOM)
   ============================================================ */
@media (max-width: 768px) {
    /* Order detail grid - stack */
    .order-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* Order detail header info */
    .order-detail-header {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Order summary cards */
    .order-summary-cards {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .order-summary-cards {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   TABLET: ADJUSTMENTS (768px - 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Stats - 2 columns on tablet */
    .fi-wi-stats-overview-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Widgets - 2 columns */
    .fi-widgets {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Form - 2 columns max */
    .fi-fo-component-ctn {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================================
   TRIAL BANNER
   ============================================================ */
.trial-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 9999;
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
    border-bottom: 1px solid transparent;
}

.trial-banner.banner-warning {
    background-color: #FFF9E6 !important;
    border-bottom: 1px solid #FDE68A !important;
}

.trial-banner.banner-danger {
    background-color: #FEF2F2 !important;
    border-bottom: 1px solid #FCA5A5 !important;
}

.trial-banner-text {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.trial-banner-text.banner-warning-text {
    color: #92400E !important;
}

.trial-banner-text.banner-danger-text {
    color: #991B1B !important;
}

.trial-banner-btn {
    background-color: #FFFFFF !important;
    color: #3b82f6 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    font-family: 'Inter', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.trial-banner-btn:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #2563eb !important;
}

@media (max-width: 480px) {
    .trial-banner {
        padding: 0 0.75rem !important;
    }
    .trial-banner-text {
        font-size: 0.75rem !important;
    }
    .trial-banner-btn {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.6875rem !important;
    }
}

/* Push down layout when trial banner is active */
body.has-trial-banner {
    padding-top: 40px !important;
}

body.has-trial-banner .fi-sidebar {
    top: 40px !important;
    height: calc(100vh - 40px) !important;
}

body.has-trial-banner .fi-content-navbar {
    top: 40px !important;
}

body.has-trial-banner .fi-sidebar-close-overlay {
    top: 40px !important;
}

body.has-trial-banner .fi-no {
    top: 56px !important;
    z-index: 100000 !important;
}
