:root {
    --hf-primary: #058555;
    --hf-primary-light: #F0FDF4;
    --hf-primary-dark: #046b44;
    --hf-secondary: #0C96F9;
    --hf-secondary-light: #F0F9FF;
    --hf-accent: #F59E0B;
    --hf-white: #FFFFFF;
    --hf-black: #1E293B;
    --hf-gray-50: #F8FAFC;
    --hf-gray-100: #F1F5F9;
    --hf-gray-200: #E2E8F0;
    --hf-gray-300: #CBD5E1;
    --hf-text-main: #1E293B;
    --hf-text-muted: #64748B;
    --hf-radius: 0.75rem;
    --hf-radius-lg: 0.75rem;
    --hf-radius-xl: 1rem;
    --hf-radius-2xl: 1.5rem;
    --hf-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --hf-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --hf-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --hf-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);
}

/* Admin theme variables (light default) */
html[data-admin-theme="light"] {
    color-scheme: light;
}
html[data-admin-theme="dark"] {
    color-scheme: dark;
}
html[data-admin-theme="dark"] .admin-body {
    --hf-white: #0B1220;
    --hf-black: #E5E7EB;
    --hf-gray-50: #0F172A;
    --hf-gray-100: #111C31;
    --hf-gray-200: #1E2A44;
    --hf-gray-300: #2A3A5E;
    --hf-text-main: #E5E7EB;
    --hf-text-muted: #94A3B8;
}

body {
    font-family: 'Inter var', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--hf-white);
    color: var(--hf-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--hf-text-main);
}

/* Base Components */
.btn-hf-primary {
    background-color: var(--hf-primary);
    color: white;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 129, 80, 0.2);
}

.btn-hf-primary:hover {
    background-color: var(--hf-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 129, 80, 0.3);
}

.btn-hf-outline {
    background-color: transparent;
    color: var(--hf-primary);
    border: 2px solid var(--hf-primary);
    border-radius: 999px;
    padding: 0.625rem 1.625rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-hf-outline:hover {
    background-color: var(--hf-primary);
    color: white;
}

/* Modern Card */
.hf-card {
    background: white;
    border: 1px solid var(--hf-gray-100);
    border-radius: var(--hf-radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hf-card:hover {
    border-color: transparent;
    box-shadow: var(--hf-shadow-xl);
    transform: translateY(-4px);
}

/* Input Fields */
input[type="text"], 
input[type="search"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
textarea, 
select {
    border: 1px solid var(--hf-gray-200);
    border-radius: var(--hf-radius-lg);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.2s;
    background-color: var(--hf-gray-50);
    color: var(--hf-text-main);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--hf-primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 129, 80, 0.1);
}

/* Badge Styles */
.hf-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hf-badge-primary { background: rgba(0, 129, 80, 0.1); color: var(--hf-primary); }
.hf-badge-secondary { background: rgba(4, 149, 246, 0.1); color: var(--hf-secondary); }
.hf-badge-accent { background: rgba(245, 158, 11, 0.1); color: var(--hf-accent); }

/* Search Suggestion Styles */
.search-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: var(--hf-radius-xl);
    overflow: hidden;
    border: 1px solid var(--hf-gray-100);
    box-shadow: var(--hf-shadow-xl);
    margin-top: 0.75rem;
    background: #fff;
    max-height: 24rem;
    overflow-y: auto;
    z-index: 60;
}
.search-suggestion-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--hf-text-main);
    border-bottom: 1px solid var(--hf-gray-100);
    transition: background 0.2s;
}
.search-suggestion-item:last-child {
    border-bottom: none;
}
.search-suggestion-item:hover {
    background: var(--hf-gray-50);
}
.search-suggestion-primary {
    font-weight: 700;
    color: var(--hf-text-main);
}
.search-suggestion-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--hf-text-muted);
}
.search-suggestion-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--hf-gray-100);
    color: var(--hf-text-muted);
    font-weight: 600;
}
.search-suggestion-meta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #475569;
}

/* Cross-ref toggle button stability */
.cross-toggle-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid var(--hf-gray-200);
    color: #475569;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    user-select: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1;
}
.cross-toggle-btn:hover, .cross-toggle-btn.is-open {
    border-color: var(--hf-secondary);
    color: var(--hf-secondary);
    background-color: #F3F9FF;
}

/* Cross-ref tables: consistent layout and clarity */
#tab-crossref table,
#crossref-tab table {
    table-layout: fixed;
    min-width: 720px;
}
#tab-crossref th, #tab-crossref td,
#crossref-tab th, #crossref-tab td {
    vertical-align: top;
}
#tab-crossref th:nth-child(1),
#crossref-tab th:nth-child(1),
#tab-crossref td:nth-child(1),
#crossref-tab td:nth-child(1) {
    width: 280px;
}
.xref-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--hf-gray-200);
    background: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1e293b;
    white-space: nowrap;
}

/* Public tables: responsiveness and readability (exclude admin) */
body:not(.admin-body) .hf-table-container {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--hf-gray-200);
    background: white;
    box-shadow: var(--hf-shadow);
    margin-bottom: 2rem;
}
body:not(.admin-body) .hf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
body:not(.admin-body) .hf-table th {
    background: white;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hf-text-muted);
    border-bottom: 1px solid var(--hf-gray-200);
}
body:not(.admin-body) .hf-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    color: var(--hf-text-main);
    border-bottom: 1px solid var(--hf-gray-100);
    vertical-align: middle;
    transition: background 0.2s;
}
body:not(.admin-body) .hf-table tr:last-child td {
    border-bottom: none;
}
body:not(.admin-body) .hf-table tr:hover td {
    background: var(--hf-primary-light);
}

body:not(.admin-body) .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
}
body:not(.admin-body) table.w-full.text-left {
    min-width: 720px;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}
body:not(.admin-body) .overflow-x-auto thead th {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 1;
    box-shadow: inset 0 -1px 0 var(--hf-gray-100);
    font-size: 0.75rem;
    color: var(--hf-text-muted);
    font-weight: 700;
}
body:not(.admin-body) table.w-full.text-left th,
body:not(.admin-body) table.w-full.text-left td {
    vertical-align: top;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.5;
    font-size: 0.8125rem;
}
body:not(.admin-body) table.w-full.text-left tbody tr:hover {
    background-color: var(--hf-gray-50);
}
@media (max-width: 640px) {
    body:not(.admin-body) table.w-full.text-left {
        min-width: 640px;
    }
}

/* Typography scale overrides */
.text-7xl { font-size: 3.75rem !important; }
.text-6xl { font-size: 3.25rem !important; }
.text-5xl { font-size: 2.75rem !important; }
.text-4xl { font-size: 2.25rem !important; }
.text-3xl { font-size: 1.75rem !important; }
.text-2xl { font-size: 1.375rem !important; }
.text-xl { font-size: 1.125rem !important; }
.text-lg { font-size: 1rem !important; }
.text-base { font-size: 0.9375rem !important; }
.text-sm { font-size: 0.8125rem !important; }
.text-xs { font-size: 0.75rem !important; }

[class*="text-[10px]"] { font-size: 0.75rem !important; }

/* Tab Styles */
.tab-btn {
    transition: all 0.3s ease;
    border-radius: 0;
}

@media (min-width: 768px) {
    .tab-btn.active {
        background-color: var(--hf-white);
        color: var(--hf-secondary);
    }
}
@media (max-width: 767px) {
    .tab-btn.active {
        background-color: #008150 !important;
        color: #FFFFFF !important;
    }
}

/* Utility Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.admin-body {
    background: var(--hf-white);
    color: var(--hf-text-main);
}
.admin-shell {
    min-height: 100vh;
    padding: 32px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 46%, #FFFFFF 100%);
}
html[data-admin-theme="dark"] .admin-shell {
    background: radial-gradient(1200px 500px at 15% 0%, rgba(12, 150, 249, 0.12) 0%, rgba(12, 150, 249, 0) 55%),
                radial-gradient(900px 450px at 85% 10%, rgba(5, 133, 85, 0.18) 0%, rgba(5, 133, 85, 0) 55%),
                linear-gradient(180deg, #0B1220 0%, #0B1220 100%);
}
.admin-shell-inner {
    display: flex;
    gap: 24px;
}
.admin-sidebar-backdrop {
    display: none;
}
.admin-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #FFFFFF;
    border: 1px solid var(--hf-gray-100);
    border-radius: var(--hf-radius);
    padding: 24px;
    box-shadow: var(--hf-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
}
html[data-admin-theme="dark"] .admin-sidebar,
html[data-admin-theme="dark"] .admin-main-header,
html[data-admin-theme="dark"] .admin-main-grid-card,
html[data-admin-theme="dark"] .admin-main-inner-card,
html[data-admin-theme="dark"] .admin-body .card,
html[data-admin-theme="dark"] .admin-body .modal-content {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}
html[data-admin-theme="dark"] .admin-main-badge {
    background: rgba(5, 133, 85, 0.18);
}
html[data-admin-theme="dark"] .admin-nav-link:hover {
    background: rgba(148, 163, 184, 0.10);
}
html[data-admin-theme="dark"] .admin-nav-link.active {
    background: rgba(5, 133, 85, 0.18);
    border-color: rgba(5, 133, 85, 0.20);
}
html[data-admin-theme="dark"] .admin-main-env-pill {
    background: rgba(148, 163, 184, 0.10);
    border-color: rgba(148, 163, 184, 0.18);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-quick-search {
    width: min(420px, 44vw);
}
.admin-quick-search .form-control {
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #F8FAFC;
}
html[data-admin-theme="dark"] .admin-quick-search .form-control {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--hf-text-main);
}
.admin-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 42px;
    border-radius: 999px;
    border: 1px solid var(--hf-gray-200);
    background: #FFFFFF;
    color: #0F172A;
}
html[data-admin-theme="dark"] .admin-theme-toggle {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--hf-text-main);
}
.admin-theme-toggle::before {
    content: "☾";
    font-size: 14px;
    line-height: 1;
}
.admin-theme-toggle[data-theme="dark"]::before {
    content: "☀";
}

.admin-nav-link.is-filtered-out {
    display: none;
}

@media (max-width: 991.98px) {
    .admin-quick-search {
        width: 100%;
    }
    .admin-topbar-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
.admin-sidebar-mobile-close {
    display: none;
}
.admin-sidebar-header {
    margin-bottom: 12px;
}
.admin-sidebar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hf-text-muted);
    font-weight: 700;
}
.admin-sidebar-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--hf-text-main);
}
.admin-sidebar-subtitle {
    font-size: 0.8125rem;
    color: var(--hf-text-muted);
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.admin-nav-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94A3B8;
    margin: 8px 0;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--hf-text-main);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}
.admin-nav-link:hover {
    background: var(--hf-gray-50);
    transform: translateX(2px);
}
.admin-nav-link.active {
    background: #F0FDF4;
    color: var(--hf-primary);
    border: 1px solid #DCFCE7;
}
.admin-nav-link.active::before { display: none; }
.admin-nav-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--hf-secondary);
}
.admin-nav-link-badge.products { background: #0C96F9; }
.admin-nav-link-badge.categories { background: #058555; }
.admin-nav-link-badge.crossref { background: #F59E0B; }
.admin-nav-link-badge.equip { background: #6366F1; }

.admin-signout {
    margin-top: 12px;
}
.admin-signout-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: var(--hf-gray-200) !important;
    color: var(--hf-text-muted);
}
.admin-signout-button:hover {
    background: #FEE2E2;
    color: #EF4444;
    border-color: #FECACA !important;
}
.admin-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22C55E;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.admin-main {
    flex: 1;
}
.admin-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid var(--hf-gray-100);
    border-radius: var(--hf-radius);
    padding: 22px;
}
.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.admin-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--hf-gray-200);
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.admin-sidebar-toggle:hover {
    border-color: rgba(12, 150, 249, 0.35);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}
.admin-sidebar-toggle-icon {
    width: 18px;
    height: 12px;
    position: relative;
}
.admin-sidebar-toggle-icon::before,
.admin-sidebar-toggle-icon::after,
.admin-sidebar-toggle-icon span {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: #0F172A;
}
.admin-sidebar-toggle-icon::before { top: 0; }
.admin-sidebar-toggle-icon span { top: 5px; }
.admin-sidebar-toggle-icon::after { bottom: 0; }
.admin-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-main-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F0FDF4;
    color: var(--hf-primary);
    font-weight: 700;
}
.admin-main-subtitle {
    font-size: 0.875rem;
    color: var(--hf-text-muted);
}
.admin-main-env-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--hf-gray-200);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--hf-text-main);
    background: var(--hf-gray-50);
    margin-right: 12px;
}
.admin-main-version {
    font-size: 0.8125rem;
    color: var(--hf-text-muted);
}
.admin-main-content {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.admin-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.admin-main-grid-card {
    background: #FFFFFF;
    border: 1px solid var(--hf-gray-100);
    border-radius: var(--hf-radius);
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-main-grid-card:hover {
    transform: translateY(-2px);
    border-color: rgba(4, 149, 246, 0.34);
    box-shadow: var(--hf-shadow-lg);
}
.admin-main-grid-title {
    font-size: 0.75rem;
    color: var(--hf-text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.admin-main-grid-heading {
    font-weight: 700;
    font-size: 1rem;
    color: var(--hf-text-main);
    margin-bottom: 6px;
}
.admin-main-grid-text {
    font-size: 0.85rem;
    color: var(--hf-text-muted);
}
/* Admin Panel Table Improvements */
.admin-body .table {
    border-collapse: separate;
    border-spacing: 0;
}
.admin-body .table thead th {
    background-color: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--hf-gray-200);
}
.admin-body .table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--hf-gray-100);
    vertical-align: middle;
    color: var(--hf-text-main);
}
.admin-body .table-hover tbody tr:hover {
    background: #F8FAFC !important;
}

/* Admin Tabs Improvements */
.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--hf-gray-200);
    margin-bottom: 24px;
}
.admin-tab-item {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--hf-text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
}
.admin-tab-item:hover {
    color: var(--hf-primary);
    background: #F0FDF4;
}
.admin-tab-item.active {
    color: var(--hf-primary);
    border-bottom-color: var(--hf-primary);
}

/* Admin Card Improvements */
.admin-main-inner-card {
    background: #FFFFFF;
    border: 1px solid var(--hf-gray-100);
    border-radius: var(--hf-radius);
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.admin-body .btn-primary {
    background-color: var(--hf-primary);
    border-color: var(--hf-primary);
}
.admin-body .btn-primary:hover {
    background-color: var(--hf-primary-dark);
    border-color: var(--hf-primary-dark);
}

.admin-body .btn-outline-primary {
    color: var(--hf-primary);
    border-color: var(--hf-primary);
}
.admin-body .btn-outline-primary:hover {
    background-color: var(--hf-primary);
    color: white;
}

@media (max-width: 768px) {
    .admin-shell {
        padding: 16px;
    }
    .admin-shell-inner {
        gap: 16px;
    }
    .admin-sidebar {
        padding: 16px;
        height: auto;
        position: static;
    }
    .admin-main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Responsive admin: offcanvas-style sidebar for mobile/tablet */
@media (max-width: 991.98px) {
    .admin-shell-inner {
        display: block;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        left: 16px;
        top: 16px;
        bottom: 16px;
        height: auto;
        width: min(340px, calc(100vw - 32px));
        z-index: 1060;
        transform: translateX(calc(-100% - 24px));
        transition: transform 220ms ease;
        border-color: var(--hf-gray-200);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    }

    .admin-sidebar-mobile-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 12px;
        border: 1px solid var(--hf-gray-200);
        background: #FFFFFF;
        color: #0F172A;
    }

    .admin-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(3px);
        z-index: 1050;
    }

    html.hf-admin-sidebar-open .admin-sidebar,
    body.hf-admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    html.hf-admin-sidebar-open .admin-sidebar-backdrop,
    body.hf-admin-sidebar-open .admin-sidebar-backdrop {
        display: block;
    }

    .admin-main {
        margin-top: 0;
    }

    .admin-main-header {
        position: sticky;
        top: 12px;
        z-index: 100;
    }
}
.product-placeholder {
    background: var(--hf-gray-50);
    border: 1px dashed var(--hf-gray-200);
    color: var(--hf-text-muted);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}
.admin-nav-link-badge.products { background: rgba(4, 149, 246, 0.25); }
.admin-nav-link-badge.categories { background: rgba(99, 102, 241, 0.25); }
.admin-nav-link-badge.crossref { background: rgba(16, 185, 129, 0.25); }
.admin-nav-link-badge.equip { background: rgba(245, 158, 11, 0.25); }
.admin-main-header {
    backdrop-filter: saturate(140%) blur(6px);
}
.admin-qr-img {
    width: 220px;
    height: 220px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}
.table-hover tbody tr:hover {
    background: #F3F9FF;
}
.admin-body .card {
    background: #FFFFFF;
    border: 1px solid var(--hf-gray-100) !important;
    border-radius: var(--hf-radius) !important;
}
.admin-body .table-light {
    background-color: #FFFFFF;
    color: var(--hf-text-main);
}
.admin-body .modal-content {
    background: #FFFFFF;
    border: 1px solid var(--hf-gray-100);
    border-radius: var(--hf-radius);
}
.admin-body div[class*="rounded"] {
    border-radius: var(--hf-radius) !important;
}
.admin-body .hf-card {
    border-radius: var(--hf-radius) !important;
}
.admin-body table th,
.admin-body table td {
    font-size: 0.8125rem;
    line-height: 1.5;
}
.admin-body .admin-sidebar,
.admin-body .admin-main-grid-card,
.admin-body .admin-main-inner-card,
.admin-body .admin-login-card {
    border-radius: var(--hf-radius) !important;
}
