/* ========================================
   STANDALONE ADMIN TEMPLATE CSS - UPDATED
   Modern, premium admin dashboard styling
   All classes prefixed with 'admt-' to avoid conflicts
   FIXED: Proper centering for single and multiple cards
   ======================================== */

/* ========================================
   1. EASY COLOR CUSTOMIZATION
   Change these colors to match your brand
   ======================================== */
:root {
    /* PRIMARY BRAND COLORS - Change these to customize */
    --admt-primary-color: #4f46e5;          /* Main brand color (Indigo) */
    --admt-primary-hover: #4338ca;          /* Darker on hover */
    --admt-secondary-color: #06b6d4;        /* Accent color (Cyan) */
    --admt-success-color: #10b981;          /* Success/Green actions */
    --admt-warning-color: #f59e0b;          /* Warning/Orange alerts */
    --admt-danger-color: #ef4444;           /* Danger/Red urgent */
    --admt-info-color: #3b82f6;             /* Info/Blue */
    
    /* BUTTON PALETTE - Easy to change individual button colors */
    --admt-btn-settings: #6366f1;           /* Settings button */
    --admt-btn-statistics: #8b5cf6;         /* Statistics buttons */
    --admt-btn-suppliers: #ec4899;          /* Suppliers buttons */
    --admt-btn-inventory: #14b8a6;          /* Inventory buttons */
    --admt-btn-reports: #f97316;            /* Reports buttons */
    --admt-btn-management: #0ea5e9;         /* Management buttons */
    
    /* BACKGROUND COLORS */
    --admt-bg-main: #f8fafc;                /* Main page background */
    --admt-bg-card: #ffffff;                /* Card background */
    --admt-bg-section-header: linear-gradient(135deg, #4a69f5 0%, #7274fa 100%);  /* Section headers */
    
    /* TEXT COLORS */
    --admt-text-primary: #0f172a;           /* Main text */
    --admt-text-secondary: #64748b;         /* Secondary text */
    --admt-text-light: #94a3b8;             /* Light text */
    --admt-text-white: #ffffff;             /* White text */
    
    /* NEUTRAL COLORS */
    --admt-gray-50: #f9fafb;
    --admt-gray-100: #f3f4f6;
    --admt-gray-200: #e5e7eb;
    --admt-gray-300: #d1d5db;
    --admt-gray-400: #9ca3af;
    --admt-gray-500: #6b7280;
    --admt-gray-600: #4b5563;
    --admt-gray-700: #374151;
    --admt-gray-800: #1f2937;
    --admt-gray-900: #111827;
    
    /* SPACING SYSTEM */
    --admt-space-xs: 0.5rem;    /* 8px */
    --admt-space-sm: 0.75rem;   /* 12px */
    --admt-space-md: 1rem;      /* 16px */
    --admt-space-lg: 1.5rem;    /* 24px */
    --admt-space-xl: 2rem;      /* 32px */
    --admt-space-2xl: 3rem;     /* 48px */
    
    /* BORDER RADIUS */
    --admt-radius-sm: 0.375rem;   /* 6px */
    --admt-radius-md: 0.5rem;     /* 8px */
    --admt-radius-lg: 0.75rem;    /* 12px */
    --admt-radius-xl: 1rem;       /* 16px */
    --admt-radius-full: 9999px;   /* Fully rounded */
    
    /* SHADOWS */
    --admt-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --admt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --admt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --admt-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --admt-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* TRANSITIONS */
    --admt-transition-fast: 150ms ease-in-out;
    --admt-transition-base: 250ms ease-in-out;
    --admt-transition-slow: 350ms ease-in-out;
}

/* ========================================
   2. GLOBAL RESETS & BASE STYLES
   ======================================== */
.admt-dashboard-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ========================================
   3. MAIN DASHBOARD WRAPPER
   ======================================== */
.admt-dashboard-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--admt-space-xl);
    background: var(--admt-bg-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* ========================================
   4. ALERT COMPONENTS
   ======================================== */
.admt-alert {
    padding: var(--admt-space-lg);
    border-radius: var(--admt-radius-lg);
    margin-bottom: var(--admt-space-xl);
    border-left: 4px solid;
    box-shadow: var(--admt-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.admt-alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: var(--admt-warning-color);
    color: #92400e;
}

.admt-alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--admt-info-color);
    color: #1e40af;
}

.admt-alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--admt-space-md);
    width: 100%;
}

.admt-alert-content strong {
    font-weight: 700;
    font-size: 1.05rem;
}

.admt-alert-link {
    display: inline-flex;
    align-items: center;
    gap: var(--admt-space-xs);
    padding: var(--admt-space-sm) var(--admt-space-lg);
    background: var(--admt-warning-color);
    color: var(--admt-text-white);
    text-decoration: none;
    border-radius: var(--admt-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--admt-transition-base);
    box-shadow: var(--admt-shadow-sm);
}

.admt-alert-link:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--admt-shadow-lg);
}

/* ========================================
   5. SECTION CONTAINERS
   ======================================== */
.admt-section {
    background: var(--admt-bg-card);
    border-radius: var(--admt-radius-xl);
    margin-bottom: var(--admt-space-xl);
    box-shadow: var(--admt-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--admt-gray-200);
    transition: all var(--admt-transition-base);
}

.admt-section:hover {
    box-shadow: var(--admt-shadow-xl);
    transform: translateY(-2px);
}

/* ========================================
   6. SECTION TOGGLE HEADER (CENTERED)
   ======================================== */

/* Wrapper that holds the toggle button + pin button side-by-side */
.admt-section-header {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.admt-section-toggle {
    flex: 1;
    min-width: 0;
    padding: var(--admt-space-md) var(--admt-space-xl);
    background: #ffffff;
    border: none;
    border-left: 4px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background var(--admt-transition-base);
}

.admt-section-toggle:hover {
    background: #f8fafc;
}

.admt-section-toggle:active {
    transform: scale(0.98);
}

/* Pin / lock button — appears on right of every section header */
.admt-pin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3rem;
    background: #ffffff;
    border: none;
    border-left: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.35;
    transition: opacity var(--admt-transition-base), background var(--admt-transition-base);
    color: #64748b;
    line-height: 1;
}

.admt-pin-btn:hover {
    opacity: 0.8;
    background: #f1f5f9;
}

.admt-pin-btn.admt-pinned {
    opacity: 1;
    background: #eff6ff;
    color: var(--admt-primary-color);
}

.admt-pin-btn[title] {
    position: relative;
}

.admt-section-title {
    font-size: 0.925rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #1e293b;
    text-align: center;
    text-shadow: none;
    flex: 1;
}

.admt-chevron {
    width: 18px;
    height: 18px;
    transition: transform var(--admt-transition-base);
    stroke: #94a3b8;
    position: absolute;
    right: var(--admt-space-lg);
    filter: none;
}

/* ========================================
   7. COLLAPSIBLE CONTENT AREA
   ======================================== */
.admt-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--admt-transition-slow) cubic-bezier(0.4, 0, 0.2, 1),
                padding var(--admt-transition-base);
    padding: 0;
}

.admt-section-content.admt-section-active {
    max-height: 3000px;
    padding: var(--admt-space-2xl) var(--admt-space-xl);
}

/* ========================================
   8. CENTERED GRID SYSTEM (FIXED FOR SINGLE & MULTIPLE CARDS)
   ======================================== */
.admt-grid-container {
    display: flex;
    justify-content: center;  /* Centers the grid horizontally */
    width: 100%;
}

.admt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: var(--admt-space-lg);
    width: 100%;
    max-width: 1200px;
    justify-content: center;  /* ✅ Centers cards when fewer than full row */
    justify-items: center;    /* ✅ Centers each card in its cell */
}

/* ========================================
   9. CARD COMPONENTS (MODERN DESIGN)
   ======================================== */
.admt-card {
    background: var(--admt-bg-card);
    border: 1px solid var(--admt-gray-200);
    border-radius: var(--admt-radius-lg);
    box-shadow: var(--admt-shadow-md);
    transition: all var(--admt-transition-base);
    overflow: hidden;
    width: 100%;
    max-width: 320px;  /* ✅ Consistent card width */
    position: relative;
}

.admt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--admt-primary-color), var(--admt-secondary-color));
    opacity: 0;
    transition: opacity var(--admt-transition-base);
}

.admt-card:hover::before {
    opacity: 1;
}

.admt-card:hover {
    box-shadow: var(--admt-shadow-xl);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--admt-primary-color);
}

.admt-card-single {
    background: var(--admt-bg-card);
    border: 1px solid var(--admt-gray-200);
    border-radius: var(--admt-radius-lg);
    box-shadow: var(--admt-shadow-md);
    margin-bottom: var(--admt-space-xl);
    padding: var(--admt-space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.admt-card-content {
    padding: var(--admt-space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--admt-space-md);
    align-items: center;  /* CENTERS CONTENT */
    justify-content: center;  /* CENTERS CONTENT */
    text-align: center;  /* CENTERS TEXT */
}

/* ========================================
   10. STATISTICS DISPLAY
   ======================================== */
.admt-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--admt-text-primary);
    margin: 0 0 var(--admt-space-sm) 0;
    background: linear-gradient(135deg, var(--admt-primary-color), var(--admt-secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.admt-stat-highlight {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.admt-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admt-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--admt-space-sm);
}

/* ========================================
   11. MODERN BUTTON STYLES
   ======================================== */
.admt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--admt-space-xs);
    padding: var(--admt-space-md) var(--admt-space-xl);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--admt-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--admt-transition-base);
    box-shadow: var(--admt-shadow-md);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.admt-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.admt-btn:hover::before {
    width: 300px;
    height: 300px;
}

.admt-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--admt-shadow-xl);
}

.admt-btn:active {
    transform: translateY(0);
}

/* Lock anchor-button text to white regardless of inherited link styles */
a.admt-btn:link,
a.admt-btn:visited { text-decoration: none; color: var(--admt-text-white); }

/* Button Color Variants */
.admt-btn-settings {
    background: linear-gradient(135deg, var(--admt-btn-settings), #4f46e5);
    color: var(--admt-text-white);
}

.admt-btn-statistics {
    background: linear-gradient(135deg, var(--admt-btn-statistics), #7c3aed);
    color: var(--admt-text-white);
}

.admt-btn-suppliers {
    background: linear-gradient(135deg, var(--admt-btn-suppliers), #db2777);
    color: var(--admt-text-white);
}

.admt-btn-inventory {
    background: linear-gradient(135deg, var(--admt-btn-inventory), #0d9488);
    color: var(--admt-text-white);
}

.admt-btn-reports {
    background: linear-gradient(135deg, var(--admt-btn-reports), #ea580c);
    color: var(--admt-text-white);
}

.admt-btn-management {
    background: linear-gradient(135deg, var(--admt-btn-management), #0284c7);
    color: var(--admt-text-white);
}

.admt-btn-primary {
    background: linear-gradient(135deg, var(--admt-primary-color), var(--admt-primary-hover));
    color: var(--admt-text-white);
}

.admt-btn-warning {
    background: linear-gradient(135deg, var(--admt-warning-color), #d97706);
    color: var(--admt-text-white);
}

.admt-btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: var(--admt-text-white);
}

/* ========================================
   12. RESPONSIVE DESIGN
   ======================================== */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .admt-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    }
}

/* Large Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .admt-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .admt-dashboard-wrapper {
        padding: var(--admt-space-lg);
    }
    
    .admt-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .admt-dashboard-wrapper {
        padding: var(--admt-space-md);
    }
    
    .admt-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
        gap: var(--admt-space-md);
    }
    
    .admt-section-title {
        font-size: 1.1rem;
    }
    
    .admt-stat-number {
        font-size: 2rem;
    }
    
    .admt-section-content.admt-section-active {
        padding: var(--admt-space-xl) var(--admt-space-md);
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .admt-dashboard-wrapper {
        padding: var(--admt-space-sm);
    }
    
    .admt-grid {
        grid-template-columns: 1fr;
        gap: var(--admt-space-md);
    }
    
    .admt-card {
        max-width: 100%;
    }
    
    .admt-section-toggle {
        padding: var(--admt-space-md);
    }
    
    .admt-section-title {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .admt-chevron {
        width: 24px;
        height: 24px;
        right: var(--admt-space-md);
    }
    
    .admt-section-content.admt-section-active {
        padding: var(--admt-space-lg) var(--admt-space-sm);
    }
    
    .admt-card-content {
        padding: var(--admt-space-lg);
    }
    
    .admt-stat-number {
        font-size: 1.75rem;
    }
    
    .admt-btn {
        padding: var(--admt-space-sm) var(--admt-space-lg);
        font-size: 0.875rem;
        min-width: 160px;
    }
}

/* Small Mobile (below 576px) */
@media (max-width: 575px) {
    .admt-dashboard-wrapper {
        padding: var(--admt-space-xs);
    }

    .admt-section-title {
        font-size: 0.95rem;
    }

    .admt-stat-number {
        font-size: 1.5rem;
    }

    .admt-btn {
        width: 100%;
        min-width: auto;
    }

    .admt-alert-content {
        flex-direction: column;
    }

    .admt-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--admt-space-lg);
    }
    .admt-dashboard-title  { font-size: 1.35rem; }
    .admt-dashboard-date   { align-self: flex-start; }
    .admt-page-header      { flex-direction: column; align-items: flex-start; }

    /* Stat & nav card responsive */
    .admt-grid--stats { grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
    .admt-grid--tiles { grid-template-columns: repeat(3, 1fr); justify-content: stretch; }

    .admt-stat-icon-badge { width: 44px; height: 44px; font-size: 1.25rem; }
    .admt-stat-value      { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .admt-grid--stats { grid-template-columns: 1fr; justify-content: stretch; }
    .admt-grid--tiles { grid-template-columns: repeat(2, 1fr); justify-content: stretch; }

    .admt-nav-card { min-height: 82px; padding: 1rem 0.5rem 0.9rem; }
    .admt-nav-icon { font-size: 1.4rem; }
    .admt-nav-label { font-size: 0.75rem; }
}

/* ========================================
   13. ACCESSIBILITY & FOCUS STATES
   ======================================== */
.admt-section-toggle:focus,
.admt-btn:focus {
    outline: 3px solid var(--admt-primary-color);
    outline-offset: 2px;
}

.admt-btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3);
}

/* ========================================
   14. PRINT STYLES
   ======================================== */
@media print {
    .admt-dashboard-wrapper {
        background: white;
        padding: 0;
    }
    
    .admt-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .admt-section-toggle {
        display: none;
    }
    
    .admt-section-content {
        max-height: none !important;
        padding: var(--admt-space-md) !important;
    }
    
    .admt-card {
        box-shadow: none;
        border: 1px solid var(--admt-gray-300);
    }
}

/* ========================================
   15. SECTION ACCENT COLOURS
   Each section type gets its own header gradient
   ======================================== */
.admt-toggle--superadmin { border-left-color: #1e293b; }
.admt-toggle--stats      { border-left-color: #0891b2; }
.admt-toggle--suppliers  { border-left-color: #db2777; }
.admt-toggle--inventory  { border-left-color: #059669; }
.admt-toggle--core       { border-left-color: #4f46e5; }
.admt-toggle--extended   { border-left-color: #7c3aed; }
.admt-toggle--future     { border-left-color: #94a3b8; }

/* Tint the section title with the accent color for extra polish */
.admt-toggle--superadmin .admt-section-title { color: #1e293b; }
.admt-toggle--stats      .admt-section-title { color: #0891b2; }
.admt-toggle--suppliers  .admt-section-title { color: #db2777; }
.admt-toggle--inventory  .admt-section-title { color: #059669; }
.admt-toggle--core       .admt-section-title { color: #4f46e5; }
.admt-toggle--extended   .admt-section-title { color: #7c3aed; }
.admt-toggle--future     .admt-section-title { color: #64748b; }

/* Match chevron to accent */
.admt-toggle--superadmin .admt-chevron { stroke: #1e293b; }
.admt-toggle--stats      .admt-chevron { stroke: #0891b2; }
.admt-toggle--suppliers  .admt-chevron { stroke: #db2777; }
.admt-toggle--inventory  .admt-chevron { stroke: #059669; }
.admt-toggle--core       .admt-chevron { stroke: #4f46e5; }
.admt-toggle--extended   .admt-chevron { stroke: #7c3aed; }
.admt-toggle--future     .admt-chevron { stroke: #94a3b8; }

/* ========================================
   16. STAT CARDS — horizontal with icon badge
   ======================================== */
.admt-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e2e8f0;
    border-radius: var(--admt-radius-lg);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: all var(--admt-transition-base);
    width: 100%;
    min-width: 0;
}
a.admt-stat-card:link,
a.admt-stat-card:visited { color: inherit; text-decoration: none; }
.admt-stat-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}
.admt-stat-card--indigo { border-left-color: #6366f1; }
.admt-stat-card--violet { border-left-color: #8b5cf6; }
.admt-stat-card--cyan   { border-left-color: #06b6d4; }
.admt-stat-card--rose   { border-left-color: #f43f5e; }
.admt-stat-card--amber  { border-left-color: #f59e0b; }
.admt-stat-card--teal   { border-left-color: #14b8a6; }

.admt-stat-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: var(--admt-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}
.admt-badge-violet  { background: #f5f3ff; }
.admt-badge-indigo  { background: #eef2ff; }
.admt-badge-rose    { background: #fff1f2; }
.admt-badge-amber   { background: #fffbeb; }
.admt-badge-emerald { background: #ecfdf5; }
.admt-badge-sky     { background: #f0f9ff; }
.admt-badge-pink    { background: #fdf4ff; }
.admt-badge-teal    { background: #f0fdfa; }
.admt-badge-orange  { background: #fff7ed; }
.admt-badge-slate   { background: #f8fafc; }
.admt-badge-cyan    { background: #ecfeff; }

.admt-stat-body {
    flex: 1;
    min-width: 0;
}
.admt-stat-body .admt-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}
.admt-stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0f172a !important;
    background-clip: unset !important;
}
.admt-stat-value.admt-val-alert {
    -webkit-text-fill-color: #ef4444 !important;
    color: #ef4444;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.admt-stat-cta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--admt-primary-color);
}

/* ========================================
   17. NAV TILES — whole card is the link
   ======================================== */
.admt-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.35rem 0.75rem 1.15rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid transparent;
    border-radius: var(--admt-radius-lg);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
    text-decoration: none;
    color: #374151;
    transition: all var(--admt-transition-base);
    min-height: 95px;
    width: 100%;
    cursor: pointer;
}
a.admt-nav-card:link,
a.admt-nav-card:visited { color: #374151; text-decoration: none; }
.admt-nav-card:hover {
    border-bottom-color: var(--admt-primary-color);
    box-shadow: 0 6px 16px rgba(99,102,241,0.13);
    transform: translateY(-3px);
    color: #374151;
    text-decoration: none;
}
/* Colour-coded hover accent per section */
.admt-nav-card--inventory:hover { border-bottom-color: #10b981; box-shadow: 0 6px 16px rgba(16,185,129,0.13); }
.admt-nav-card--suppliers:hover { border-bottom-color: #ec4899; box-shadow: 0 6px 16px rgba(236,72,153,0.13); }
.admt-nav-card--core:hover      { border-bottom-color: #6366f1; box-shadow: 0 6px 16px rgba(99,102,241,0.13); }
.admt-nav-card--extended:hover  { border-bottom-color: #8b5cf6; box-shadow: 0 6px 16px rgba(139,92,246,0.13); }
.admt-nav-card--feature:hover   { border-bottom-color: #0ea5e9; box-shadow: 0 6px 20px rgba(14,165,233,0.16); }

.admt-nav-card--feature {
    min-height: 115px;
    gap: 0.65rem;
    border: 1px solid #e0e7ff;
    background: linear-gradient(160deg, #fafbff 0%, #f0f4ff 100%);
}

.admt-nav-icon {
    font-size: 1.6rem;
    line-height: 1;
}
.admt-nav-card--feature .admt-nav-icon { font-size: 1.9rem; }

.admt-nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: #374151;
    line-height: 1.35;
}
.admt-nav-card--feature .admt-nav-label { font-size: 0.9rem; color: #1e293b; }

/* ========================================
   18. GRID VARIANTS
   ======================================== */
.admt-grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 290px));
    justify-content: center;
    max-width: 100%;
}
.admt-grid--tiles {
    grid-template-columns: repeat(auto-fit, minmax(130px, 160px));
    justify-content: center;
    max-width: 100%;
}

/* ========================================
   19. DASHBOARD HEADER
   ======================================== */
.admt-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--admt-space-md);
    margin-bottom: var(--admt-space-xl);
    padding: var(--admt-space-xl) var(--admt-space-xl);
    background: linear-gradient(135deg, var(--admt-primary-color) 0%, var(--admt-secondary-color) 100%);
    border-radius: var(--admt-radius-xl);
    box-shadow: var(--admt-shadow-xl);
}

.admt-dashboard-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--admt-text-white);
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.admt-dashboard-subtitle {
    font-size: 0.925rem;
    color: rgba(255,255,255,0.88);
    font-weight: 400;
    margin: 0;
}

.admt-dashboard-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.18);
    padding: var(--admt-space-sm) var(--admt-space-md);
    border-radius: var(--admt-radius-md);
    white-space: nowrap;
}

/* ========================================
   16. PAGE HEADER (settings & inner pages)
   ======================================== */
.admt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--admt-space-md);
    margin-bottom: var(--admt-space-xl);
    padding-bottom: var(--admt-space-lg);
    border-bottom: 2px solid var(--admt-gray-200);
}

.admt-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admt-text-primary);
    margin: 0 0 0.2rem 0;
}

.admt-page-subtitle {
    font-size: 0.875rem;
    color: var(--admt-text-secondary);
    margin: 0;
}

/* ========================================
   17. STAT ICON
   ======================================== */
.admt-stat-icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: var(--admt-space-sm);
    display: block;
}

/* ========================================
   18. UTILITY CLASSES
   ======================================== */
.admt-text-center { text-align: center; }
.admt-mt-sm { margin-top: var(--admt-space-sm); }
.admt-mt-md { margin-top: var(--admt-space-md); }
.admt-mt-lg { margin-top: var(--admt-space-lg); }
.admt-mb-sm { margin-bottom: var(--admt-space-sm); }
.admt-mb-md { margin-bottom: var(--admt-space-md); }
.admt-mb-lg { margin-bottom: var(--admt-space-lg); }

/* ========================================
   16. ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admt-section-content.admt-section-active .admt-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.admt-section-content.admt-section-active .admt-card:nth-child(1) { animation-delay: 0.05s; }
.admt-section-content.admt-section-active .admt-card:nth-child(2) { animation-delay: 0.1s; }
.admt-section-content.admt-section-active .admt-card:nth-child(3) { animation-delay: 0.15s; }
.admt-section-content.admt-section-active .admt-card:nth-child(4) { animation-delay: 0.2s; }
.admt-section-content.admt-section-active .admt-card:nth-child(5) { animation-delay: 0.25s; }
.admt-section-content.admt-section-active .admt-card:nth-child(6) { animation-delay: 0.3s; }
.admt-section-content.admt-section-active .admt-card:nth-child(7) { animation-delay: 0.35s; }
.admt-section-content.admt-section-active .admt-card:nth-child(8) { animation-delay: 0.4s; }
.admt-section-content.admt-section-active .admt-card:nth-child(9) { animation-delay: 0.45s; }
.admt-section-content.admt-section-active .admt-card:nth-child(10) { animation-delay: 0.5s; }

/* ========================================
   20. SECTION TAB NAVIGATION BAR
   Horizontal pill buttons at the top, one per section
   ======================================== */
.admt-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--admt-space-xl);
    padding: var(--admt-space-md) var(--admt-space-lg);
    background: #ffffff;
    border: 1px solid var(--admt-gray-200);
    border-radius: var(--admt-radius-xl);
    box-shadow: var(--admt-shadow-sm);
}

/* Pill container: tab button + pin button as one unit */
.admt-tab-item {
    display: flex;
    align-items: stretch;
    border-radius: var(--admt-radius-full);
    border: 1.5px solid var(--admt-gray-200);
    overflow: hidden;
    background: #ffffff;
    transition: border-color var(--admt-transition-base), box-shadow var(--admt-transition-base);
}
.admt-tab-item:hover {
    border-color: var(--admt-gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Per-section accent when active or pinned */
.admt-tabitem--stats.admt-tabitem-active,
.admt-tabitem--stats.admt-tabitem-pinned         { border-color: #0891b2; box-shadow: 0 2px 10px rgba(8,145,178,0.18); }
.admt-tabitem--suppliers.admt-tabitem-active,
.admt-tabitem--suppliers.admt-tabitem-pinned     { border-color: #db2777; box-shadow: 0 2px 10px rgba(219,39,119,0.18); }
.admt-tabitem--inventory.admt-tabitem-active,
.admt-tabitem--inventory.admt-tabitem-pinned     { border-color: #059669; box-shadow: 0 2px 10px rgba(5,150,105,0.18); }
.admt-tabitem--superadmin.admt-tabitem-active,
.admt-tabitem--superadmin.admt-tabitem-pinned    { border-color: #334155; box-shadow: 0 2px 10px rgba(51,65,85,0.15); }
.admt-tabitem--core.admt-tabitem-active,
.admt-tabitem--core.admt-tabitem-pinned          { border-color: #4f46e5; box-shadow: 0 2px 10px rgba(79,70,229,0.18); }
.admt-tabitem--extended.admt-tabitem-active,
.admt-tabitem--extended.admt-tabitem-pinned      { border-color: #7c3aed; box-shadow: 0 2px 10px rgba(124,58,237,0.18); }
.admt-tabitem--future.admt-tabitem-active,
.admt-tabitem--future.admt-tabitem-pinned        { border-color: #94a3b8; box-shadow: 0 2px 8px rgba(148,163,184,0.15); }

/* Main clickable tab button */
.admt-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.05rem 0.5rem 0.85rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.825rem;
    font-weight: 600;
    color: #475569;
    transition: background var(--admt-transition-base), color var(--admt-transition-base);
    white-space: nowrap;
    line-height: 1;
}
.admt-tab-btn:hover { background: #f8fafc; color: #1e293b; }

/* Active state (non-pinned open section) */
.admt-tab-btn.admt-tab-active { color: #1e293b; background: #f1f5f9; }

/* Per-section accent colours when active/pinned */
.admt-tab--stats.admt-tab-active,
.admt-tab--stats.admt-tab-pinned         { color: #0891b2; background: #ecfeff; }
.admt-tab--suppliers.admt-tab-active,
.admt-tab--suppliers.admt-tab-pinned     { color: #be185d; background: #fdf2f8; }
.admt-tab--inventory.admt-tab-active,
.admt-tab--inventory.admt-tab-pinned     { color: #047857; background: #ecfdf5; }
.admt-tab--superadmin.admt-tab-active,
.admt-tab--superadmin.admt-tab-pinned    { color: #1e293b; background: #f1f5f9; }
.admt-tab--core.admt-tab-active,
.admt-tab--core.admt-tab-pinned          { color: #4338ca; background: #eef2ff; }
.admt-tab--extended.admt-tab-active,
.admt-tab--extended.admt-tab-pinned      { color: #6d28d9; background: #f5f3ff; }
.admt-tab--future.admt-tab-active,
.admt-tab--future.admt-tab-pinned        { color: #64748b; background: #f8fafc; }

/* Pinned tabs: cursor signals they can't be toggled via button click */
.admt-tab-btn.admt-tab-pinned { cursor: default; }

.admt-tab-icon  { font-size: 0.95rem; line-height: 1; flex-shrink: 0; }
.admt-tab-label { line-height: 1; }

/* Pin button on each tab pill */
.admt-tab-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    background: #f8fafc;
    border: none;
    border-left: 1.5px solid var(--admt-gray-200);
    cursor: pointer;
    font-size: 0.72rem;
    opacity: 0.35;
    transition: opacity var(--admt-transition-base), background var(--admt-transition-base);
    color: #64748b;
    padding: 0;
}
.admt-tab-pin:hover   { opacity: 0.85; background: #e2e8f0; }
.admt-tab-pin.admt-pinned {
    opacity: 1;
    background: #eff6ff;
    color: var(--admt-primary-color);
}

/* ========================================
   21. CONTENT PANELS (below nav bar)
   ======================================== */
.admt-panel {
    display: none;
    background: var(--admt-bg-card);
    border: 1px solid var(--admt-gray-200);
    border-top: 3px solid var(--admt-gray-300);
    border-radius: var(--admt-radius-xl);
    box-shadow: var(--admt-shadow-md);
    margin-bottom: var(--admt-space-lg);
    padding: var(--admt-space-xl);
    animation: admtPanelIn 200ms ease-out both;
}
.admt-panel.admt-panel-active { display: block; }

@keyframes admtPanelIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Accent top border per section */
.admt-panel--superadmin { border-top-color: #334155; }
.admt-panel--stats      { border-top-color: #0891b2; }
.admt-panel--suppliers  { border-top-color: #db2777; }
.admt-panel--inventory  { border-top-color: #059669; }
.admt-panel--core       { border-top-color: #4f46e5; }
.admt-panel--extended   { border-top-color: #7c3aed; }
.admt-panel--future     { border-top-color: #94a3b8; }

/* Subtle section label at top of each panel */
.admt-panel-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #94a3b8;
    margin-bottom: var(--admt-space-lg);
    padding-bottom: var(--admt-space-sm);
    border-bottom: 1px solid #f1f5f9;
}
.admt-panel--stats      .admt-panel-label { color: #0891b2; }
.admt-panel--suppliers  .admt-panel-label { color: #db2777; }
.admt-panel--inventory  .admt-panel-label { color: #059669; }
.admt-panel--superadmin .admt-panel-label { color: #475569; }
.admt-panel--core       .admt-panel-label { color: #4338ca; }
.admt-panel--extended   .admt-panel-label { color: #6d28d9; }
.admt-panel--future     .admt-panel-label { color: #64748b; }

/* ── Tab nav responsive ── */
@media (max-width: 767px) {
    .admt-tab-nav  { gap: 0.4rem; padding: var(--admt-space-sm); }
    .admt-tab-btn  { font-size: 0.775rem; padding: 0.45rem 0.8rem 0.45rem 0.65rem; }
    .admt-panel    { padding: var(--admt-space-lg) var(--admt-space-sm); }
}

@media (max-width: 575px) {
    /* Icon-only pills on small mobile — labels hidden */
    .admt-tab-label { display: none; }
    .admt-tab-btn   { gap: 0; padding: 0.5rem 0.75rem; }
    .admt-tab-icon  { font-size: 1.05rem; }
    .admt-tab-pin   { width: 1.85rem; font-size: 0.68rem; }
    .admt-tab-nav   { gap: 0.35rem; }
    .admt-panel     { padding: var(--admt-space-md) var(--admt-space-xs); }
}

/* ============================================================
   INVENTORY OVERVIEW PANEL  (admt-invov-* prefix)
   Colour: matches dashboard header — #4f46e5 indigo → #06b6d4 cyan
   Isolated from all other panels — safe to update separately
   ============================================================ */

/* Panel accent colours */
.admt-panel--invov          { border-top-color: #4f46e5; }
.admt-panel--invov .admt-panel-label { color: #4f46e5; }

/* Tab button colour — matches dashboard header gradient */
.admt-tab--invov            { background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff; }
.admt-tab--invov:hover      { background: linear-gradient(135deg, #4338ca, #0891b2); }
.admt-tabitem--invov .admt-tab-pin { background: #4f46e5; }

/* ── Toolbar ── */
.admt-invov-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.admt-invov-view-toggle {
    display: flex;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.admt-invov-toggle-btn {
    padding: 0.4rem 0.9rem;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    transition: background 150ms, color 150ms;
    white-space: nowrap;
}
.admt-invov-toggle-btn + .admt-invov-toggle-btn {
    border-left: 2px solid #e5e7eb;
}
.admt-invov-toggle-btn:hover            { background: #eef2ff; color: #4f46e5; }
.admt-invov-toggle-btn.admt-invov-toggle-active {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
}

/* Compact toggle button */
.admt-invov-compact-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms;
    white-space: nowrap;
}
.admt-invov-compact-btn:hover           { border-color: #4f46e5; color: #4f46e5; background: #eef2ff; }
.admt-invov-compact-btn.admt-invov-compact-active {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4338ca;
}

.admt-invov-default-btn {
    margin-left: auto;
    padding: 0.38rem 0.8rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    background: #fff;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms;
    white-space: nowrap;
}
.admt-invov-default-btn:hover           { border-color: #4f46e5; color: #4f46e5; }
.admt-invov-default-btn.admt-invov-default-active {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4338ca;
}

/* ── VIEW A: LOCATION CARDS GRID ── */
.admt-invov-loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admt-invov-loc-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 180ms, box-shadow 180ms, transform 180ms;
    position: relative;
}
.admt-invov-loc-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 16px rgba(79,70,229,0.12);
    transform: translateY(-2px);
}
.admt-invov-loc-card--warn   { border-color: #fbbf24; }
.admt-invov-loc-card--open   { border-color: #4f46e5; background: #eef2ff; }

.admt-invov-loc-card-icon    { font-size: 1.6rem; margin-bottom: 0.35rem; }
.admt-invov-loc-card-name    { font-size: 0.9rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; line-height: 1.3; }
.admt-invov-loc-card-stats   { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-bottom: 0.5rem; }
.admt-invov-loc-stat         { font-size: 0.78rem; background: #f1f5f9; padding: 0.2rem 0.5rem; border-radius: 999px; color: #475569; }
.admt-invov-stat-warn        { background: #fef3c7; color: #92400e; }
.admt-invov-loc-card-cta     { font-size: 0.72rem; color: #94a3b8; margin-top: 0.25rem; }

/* Location detail table */
.admt-invov-loc-detail {
    background: #fff;
    border: 2px solid #4f46e5;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    animation: admt-invov-slide-in 200ms ease;
}
@keyframes admt-invov-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admt-invov-loc-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}
.admt-invov-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 150ms;
}
.admt-invov-close-btn:hover  { background: rgba(255,255,255,0.35); }

/* Shared table */
.admt-invov-table-wrap { overflow-x: auto; }

.admt-invov-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.admt-invov-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.9rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
.admt-invov-table td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.admt-invov-table tr:last-child td   { border-bottom: none; }
.admt-invov-table tr:hover td        { background: #f0f9ff; }
.admt-invov-row-critical td          { background: #fff1f2; }
.admt-invov-row-low td               { background: #fffbeb; }

/* Status badges */
.admt-invov-badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.admt-invov-badge-ok       { background: #d1fae5; color: #065f46; }
.admt-invov-badge-low      { background: #fef3c7; color: #92400e; }
.admt-invov-badge-critical { background: #fee2e2; color: #991b1b; }

/* ── VIEW B: ITEM CARDS LIST ── */
.admt-invov-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.admt-invov-search {
    flex: 1;
    max-width: 340px;
    padding: 0.45rem 0.85rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    color: #1e293b;
    outline: none;
    transition: border-color 150ms;
}
.admt-invov-search:focus     { border-color: #4f46e5; }
.admt-invov-filter-count     { font-size: 0.78rem; color: #94a3b8; white-space: nowrap; }

#admt-invov-item-list        { display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Pin button ── */
.admt-invov-pin-btn {
    background: none;
    border: none;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 0.3rem;
    color: #cbd5e1;
    line-height: 1;
    transition: color 150ms, background 150ms;
    flex-shrink: 0;
}
.admt-invov-pin-btn:hover               { color: #4f46e5; background: #eef2ff; }
.admt-invov-pin-btn.admt-invov-pinned   { color: #4f46e5; }

/* ── Item cards ── */
.admt-invov-item-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 180ms, box-shadow 180ms;
}
.admt-invov-item-card:hover     { border-color: #bfdbfe; box-shadow: 0 2px 10px rgba(79,70,229,0.07); }
.admt-invov-item-card--warn     { border-color: #fbbf24; }
.admt-invov-item-card.admt-invov-item-pinned {
    border-left: 3px solid #4f46e5;
}

.admt-invov-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.admt-invov-item-name-group  { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; min-width: 0; }
.admt-invov-item-icon        { font-size: 1rem; flex-shrink: 0; }
.admt-invov-item-name        { font-size: 0.86rem; font-weight: 700; color: #1e293b; }
.admt-invov-item-warn-badge  { background: #fef3c7; color: #92400e; border-radius: 999px; font-size: 0.68rem; font-weight: 700; padding: 0.12rem 0.45rem; flex-shrink: 0; }

.admt-invov-item-total       { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.admt-invov-item-total-label { font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; }
.admt-invov-item-total-value { font-size: 1.2rem; font-weight: 800; color: #4f46e5; line-height: 1; }

/* Sub-location card strip */
.admt-invov-subloc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
}

.admt-invov-subloc-card {
    flex: 0 0 auto;
    min-width: 115px;
    max-width: 165px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 0.65rem;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 150ms, background 150ms, box-shadow 150ms;
}
.admt-invov-subloc-card:hover               { border-color: #4f46e5; background: #eef2ff; }
.admt-invov-subloc-card--ok                 { border-top: 3px solid #10b981; }
.admt-invov-subloc-card--low                { border-top: 3px solid #f59e0b; }
.admt-invov-subloc-card--critical           { border-top: 3px solid #ef4444; }
.admt-invov-subloc-card--open               { border-color: #4f46e5; background: #eef2ff; box-shadow: 0 2px 8px rgba(79,70,229,0.12); }

.admt-invov-subloc-location { font-size: 0.68rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.15rem; }
.admt-invov-subloc-stock    { font-size: 1.2rem; font-weight: 800; color: #1e293b; line-height: 1.1; margin-bottom: 0.25rem; }
.admt-invov-subloc-tap      { font-size: 0.65rem; color: #94a3b8; margin-top: 0.2rem; }

/* Sub-detail expand panel */
.admt-invov-subloc-detail {
    margin-top: 0.4rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.45rem;
    overflow: hidden;
    text-align: left;
    animation: admt-invov-slide-in 180ms ease;
}

.admt-invov-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.28rem 0.5rem;
    font-size: 0.74rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 0.4rem;
}
.admt-invov-detail-row:last-child  { border-bottom: none; }
.admt-invov-detail-row span        { color: #64748b; }
.admt-invov-detail-row strong      { color: #1e293b; font-weight: 700; text-align: right; }

/* ── COMPACT MODE ── */
#admt-invov-item-list.admt-invov-compact                  { gap: 0.2rem; }
#admt-invov-item-list.admt-invov-compact .admt-invov-item-card { border-radius: 0.5rem; }
#admt-invov-item-list.admt-invov-compact .admt-invov-subloc-row { display: none; }
#admt-invov-item-list.admt-invov-compact .admt-invov-item-card.admt-invov-item-expanded .admt-invov-subloc-row { display: flex; }
#admt-invov-item-list.admt-invov-compact .admt-invov-item-header {
    cursor: pointer;
    padding: 0.38rem 0.8rem;
    user-select: none;
}
#admt-invov-item-list.admt-invov-compact .admt-invov-item-header:hover { background: #eef2ff; }
#admt-invov-item-list.admt-invov-compact .admt-invov-item-total-value  { font-size: 1rem; }
#admt-invov-item-list.admt-invov-compact .admt-invov-item-name         { font-size: 0.82rem; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .admt-invov-loc-grid        { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.65rem; }
    .admt-invov-toolbar         { gap: 0.4rem; }
    .admt-invov-default-btn     { margin-left: 0; }
    .admt-invov-item-total-value{ font-size: 1rem; }
    .admt-invov-subloc-card     { min-width: 100px; }
    .admt-invov-subloc-stock    { font-size: 1rem; }
}

@media (max-width: 480px) {
    .admt-invov-loc-grid        { grid-template-columns: 1fr 1fr; }
    .admt-invov-search          { max-width: 100%; }
    .admt-invov-item-header     { flex-direction: column; align-items: flex-start; }
    .admt-invov-item-total      { align-items: flex-start; }
    .admt-invov-subloc-row      { gap: 0.4rem; }
}
