:root {
    color-scheme: light;
}

/* Homepage product cards */
.product-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    width: 260px;
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-card__image {
    position: relative;
    padding-top: 60%;
    max-height: 200px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.product-card__image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    height: 95%;
    object-fit: contain;
}

.product-card__body {
    padding: 12px 14px 14px;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.product-card__subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 8px;
}

.product-card__description {
    font-size: 0.86rem;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

.product-card__tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f172a;
    background: #e2e8f0;
}

.tag--primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag--warning {
    background: #fef3c7;
    color: #b45309;
}

/* Dropdown actions */
.dropdown-actions {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    display: none;
    min-width: 180px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 12px 30px -12px rgba(37, 99, 235, 0.35);
    padding: 0.35rem 0;
    z-index: 80;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.2s ease;
}

.dropdown-actions:focus-within .dropdown-menu,
.dropdown-actions .dropdown-toggle:focus + .dropdown-menu {
    display: block;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #64748b;
}

.dropdown-item:hover i {
    color: #2563eb;
}

.dropdown-item.text-danger {
    color: #dc2626;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

/* Role badges */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e2e8f0;
    color: #1f2937;
}

.role-badge.system {
    background: #e0e7ff;
    color: #4338ca;
}

.role-badge.custom {
    background: #dbeafe;
    color: #1e40af;
}

:root[data-theme="dark"] .role-badge {
    background: rgba(79, 70, 229, 0.18);
    color: #c7d2fe;
}

:root[data-theme="dark"] .role-badge.system {
    background: rgba(79, 70, 229, 0.2);
    color: #c7d2fe;
}

:root[data-theme="dark"] .role-badge.custom {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

/* Avatars */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2), 0 10px 24px -18px rgba(79, 70, 229, 0.6);
}

:root[data-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .dropdown-item {
    color: #e2e8f0;
}

:root[data-theme="dark"] .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.2);
    color: #f1f5f9;
}

:root[data-theme="dark"] .dropdown-item i {
    color: #94a3b8;
}

:root[data-theme="dark"] .dropdown-item:hover i {
    color: #c7d2fe;
}

:root[data-theme="dark"] .dropdown-item.text-danger {
    color: #fca5a5;
}

:root[data-theme="dark"] .dropdown-item.text-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

:root[data-theme="dark"] .dropdown-divider {
    background: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .dropdown-toggle {
    background: rgba(79, 70, 229, 0.3);
    color: #c7d2fe;
}

:root[data-theme="dark"] .dropdown-toggle:hover {
    background: rgba(79, 70, 229, 0.5);
}

:root[data-theme="dark"] .role-badge {
    background: rgba(79, 70, 229, 0.18);
    color: #c7d2fe;
}

:root[data-theme="dark"] .role-badge.system {
    background: rgba(79, 70, 229, 0.2);
    color: #c7d2fe;
}

:root[data-theme="dark"] .role-badge.custom {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] body.admin-body {
    background: #0f172a;
    color: #e2e8f0;
}

:root[data-theme="dark"] .admin-layout {
    background: #0f172a;
}

:root[data-theme="dark"] .sidebar {
    background: #111827;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .sidebar .sidebar-brand,
:root[data-theme="dark"] .sidebar .brand-text,
:root[data-theme="dark"] .sidebar .nav-item span {
    color: #e2e8f0;
}

:root[data-theme="dark"] .sidebar .nav-item {
    color: #cbd5f5;
}

:root[data-theme="dark"] .sidebar .nav-item.active,
:root[data-theme="dark"] .sidebar .nav-item:hover {
    background: rgba(79, 70, 229, 0.2);
    color: #f8fafc;
}

:root[data-theme="dark"] .nav-section-header {
    color: #94a3b8;
}

:root[data-theme="dark"] .main-content {
    background: #0f172a;
    color: #e2e8f0;
}

:root[data-theme="dark"] .top-bar {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

:root[data-theme="dark"] .top-bar h1 {
    color: #f1f5f9;
}

:root[data-theme="dark"] .top-bar-search .global-search-input {
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.6);
    border-color: transparent;
}

:root[data-theme="dark"] .global-search-input:focus-within {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

:root[data-theme="dark"] .global-search-input input {
    color: #f8fafc;
}

:root[data-theme="dark"] .global-search-input input::placeholder {
    color: #64748b;
}

:root[data-theme="dark"] .global-search-results {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(71, 85, 105, 0.7);
}

:root[data-theme="dark"] .global-search-result:hover {
    background: rgba(59, 130, 246, 0.2);
}

:root[data-theme="dark"] .global-search-result.active {
    background: rgba(59, 130, 246, 0.28);
}

:root[data-theme="dark"] .global-search-group + .global-search-group {
    border-top-color: rgba(71, 85, 105, 0.65);
}

:root[data-theme="dark"] .global-search-group-label {
    color: #7c8eb5;
}

:root[data-theme="dark"] .global-search-result {
    color: #e2e8f0;
}

:root[data-theme="dark"] .global-search-result:hover {
    background: rgba(59, 130, 246, 0.22);
}

:root[data-theme="dark"] .global-search-result.active {
    background: rgba(59, 130, 246, 0.3);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.6);
}

:root[data-theme="dark"] .global-search-result-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.12));
    color: #93c5fd;
}

:root[data-theme="dark"] .global-search-result-title {
    color: #f8fafc;
}

:root[data-theme="dark"] .global-search-result-subtitle {
    color: #94a3b8;
}

:root[data-theme="dark"] .global-search-result-meta {
    color: #64748b;
}

:root[data-theme="dark"] .global-search-empty,
:root[data-theme="dark"] .global-search-message {
    color: #94a3b8;
}

:root[data-theme="dark"] .global-search .global-search-results::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
}

:root[data-theme="dark"] .breadcrumb a,
:root[data-theme="dark"] .breadcrumb span {
    color: #94a3b8;
}

:root[data-theme="dark"] .top-bar-btn,
:root[data-theme="dark"] .top-bar-btn:focus {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
}

:root[data-theme="dark"] .top-bar-btn:hover {
    background: rgba(79, 70, 229, 0.25);
    border-color: rgba(129, 140, 248, 0.4);
}

:root[data-theme="dark"] .user-dropdown {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .user-dropdown-toggle {
    background: transparent;
    color: #e2e8f0;
}

:root[data-theme="dark"] .user-dropdown-menu {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.8);
}

:root[data-theme="dark"] .user-dropdown-menu a {
    color: #cbd5f5;
}

:root[data-theme="dark"] .user-dropdown-menu a:hover {
    background: rgba(79, 70, 229, 0.2);
    color: #f1f5f9;
}

:root[data-theme="dark"] .user-dropdown-menu a.logout,
:root[data-theme="dark"] .user-dropdown-menu a.logout-link {
    color: #f87171;
}

:root[data-theme="dark"] .user-dropdown-menu a.logout:hover,
:root[data-theme="dark"] .user-dropdown-menu a.logout-link:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #fecaca;
}

:root[data-theme="dark"] .detail-card,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .insight-card,
:root[data-theme="dark"] .interaction-card,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .inventory-table table,
:root[data-theme="dark"] .items-table,
:root[data-theme="dark"] .notes-list .note,
:root[data-theme="dark"] .status-card,
:root[data-theme="dark"] .kpi-card,
:root[data-theme="dark"] .detail-section {
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: none;
}

:root[data-theme="dark"] .items-table thead,
:root[data-theme="dark"] .inventory-table thead {
    background: rgba(15, 23, 42, 0.9);
}

:root[data-theme="dark"] .items-table tbody tr:nth-child(even),
:root[data-theme="dark"] .inventory-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.5);
}

:root[data-theme="dark"] .items-table tbody tr:hover,
:root[data-theme="dark"] .inventory-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.2);
}

:root[data-theme="dark"] .status-badge.warning,
:root[data-theme="dark"] .badge.warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

:root[data-theme="dark"] .status-badge.info,
:root[data-theme="dark"] .badge.info {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
}

:root[data-theme="dark"] .status-badge.success,
:root[data-theme="dark"] .badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

:root[data-theme="dark"] .status-badge.danger,
:root[data-theme="dark"] .badge.danger {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}

:root[data-theme="dark"] a,
:root[data-theme="dark"] .nav-item i,
:root[data-theme="dark"] .detail-meta-row span,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .text-muted {
    color: #94a3b8;
}

:root[data-theme="dark"] .nav-item.active i,
:root[data-theme="dark"] .nav-item.active span {
    color: #c7d2fe;
}

:root[data-theme="dark"] .comment-input,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .btn-outline,
:root[data-theme="dark"] .btn-icon {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
}

:root[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #4338ca, #312e81);
    border: none;
}

:root[data-theme="dark"] .btn-secondary {
    background: rgba(30, 41, 59, 0.9);
}

:root[data-theme="dark"] .btn-outline {
    background: transparent;
    color: #cbd5f5;
}

:root[data-theme="dark"] .btn:hover,
:root[data-theme="dark"] .btn:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

:root[data-theme="dark"] .empty-state {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

:root[data-theme="dark"] .modal {
    background: rgba(15, 23, 42, 0.7);
}

:root[data-theme="dark"] .timeline-item::before {
    background: rgba(148, 163, 184, 0.4);
}

:root[data-theme="dark"] .timeline-item::after {
    border-color: rgba(15, 23, 42, 0.85);
}

:root[data-theme="dark"] .activity-item {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .activity-icon {
    background: rgba(79, 70, 229, 0.25);
    color: #c7d2fe;
}

:root[data-theme="dark"] .kpi-card .kpi-icon {
    background: rgba(79, 70, 229, 0.2);
    color: #c7d2fe;
}

:root[data-theme="dark"] .detail-header {
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .divider {
    background: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .hero-pill {
    background: rgba(79, 70, 229, 0.2);
    color: #c7d2fe;
}

:root[data-theme="dark"] .comment-icon {
    color: #cbd5f5;
}

:root[data-theme="dark"] .tabs .tab-btn {
    color: #94a3b8;
    background: transparent;
}

:root[data-theme="dark"] .tabs .tab-btn.active {
    color: #f8fafc;
    border-bottom-color: #6366f1;
}

:root[data-theme="dark"] .tab-content {
    background: rgba(15, 23, 42, 0.65);
}

:root[data-theme="dark"] .stat-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
    color: #cbd5f5;
}

:root[data-theme="dark"] .kpi-grid,
:root[data-theme="dark"] .products-page .kpi-grid {
    background: transparent;
}

:root[data-theme="dark"] .products-page .kpi-card,
:root[data-theme="dark"] .products-page .stat-card,
:root[data-theme="dark"] .kpi-card,
:root[data-theme="dark"] .stat-card {
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 26px 60px -30px rgba(15, 23, 42, 0.55);
}

:root[data-theme="dark"] .stat-card .stat-value,
:root[data-theme="dark"] .stat-card .stat-label,
:root[data-theme="dark"] .stat-card .stat-icon i {
    color: #f1f5f9;
}

:root[data-theme="dark"] .products-page .kpi-card .kpi-label,
:root[data-theme="dark"] .products-page .kpi-card .kpi-value,
:root[data-theme="dark"] .products-page .kpi-card .kpi-meta,
:root[data-theme="dark"] .kpi-card .kpi-meta {
    color: #e2e8f0;
}

:root[data-theme="dark"] .products-page .kpi-card .trend-positive {
    color: #4ade80;
}

:root[data-theme="dark"] .products-page .kpi-card .trend-negative {
    color: #f87171;
}

:root[data-theme="dark"] .data-table,
:root[data-theme="dark"] .payments-table,
:root[data-theme="dark"] .stock-table,
:root[data-theme="dark"] .users-table,
:root[data-theme="dark"] .products-table,
:root[data-theme="dark"] table {
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
}

:root[data-theme="dark"] .data-table thead,
:root[data-theme="dark"] .payments-table thead,
:root[data-theme="dark"] .stock-table thead,
:root[data-theme="dark"] .users-table thead,
:root[data-theme="dark"] .products-table thead,
:root[data-theme="dark"] table thead {
    background: rgba(15, 23, 42, 0.9);
}

:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .payments-table th,
:root[data-theme="dark"] .stock-table th,
:root[data-theme="dark"] .users-table th,
:root[data-theme="dark"] .products-table th,
:root[data-theme="dark"] table th {
    color: #cbd5f5;
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .data-table td,
:root[data-theme="dark"] .payments-table td,
:root[data-theme="dark"] .stock-table td,
:root[data-theme="dark"] .users-table td,
:root[data-theme="dark"] .products-table td,
:root[data-theme="dark"] table td {
    color: #e2e8f0;
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .data-table tbody tr:hover,
:root[data-theme="dark"] .payments-table tbody tr:hover,
:root[data-theme="dark"] .stock-table tbody tr:hover,
:root[data-theme="dark"] .users-table tbody tr:hover,
:root[data-theme="dark"] .products-table tbody tr:hover,
:root[data-theme="dark"] table tbody tr:hover {
    background: rgba(79, 70, 229, 0.15);
}

:root[data-theme="dark"] .data-table tbody tr:nth-child(even),
:root[data-theme="dark"] .products-table tbody tr:nth-child(even),
:root[data-theme="dark"] table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.4);
}

:root[data-theme="dark"] .table-responsive,
:root[data-theme="dark"] .data-table-container,
:root[data-theme="dark"] .products-table-container,
:root[data-theme="dark"] .overflow-x-auto {
    background: rgba(30, 41, 59, 0.85);
}

:root[data-theme="dark"] .products-table-container {
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.05);
}

:root[data-theme="dark"] .products-table .product-info img,
:root[data-theme="dark"] .products-table .product-info .product-image {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.payments-table .payment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f8fafc;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

:root[data-theme="dark"] .payments-table .payment-avatar {
    background: rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.invoices-table .invoice-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #f8fafc;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

:root[data-theme="dark"] .invoices-table .invoice-avatar {
    background: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

:root[data-theme="dark"] .products-table .product-details .sku,
:root[data-theme="dark"] .products-table .product-details .muted,
:root[data-theme="dark"] .products-table .product-info .product-details span {
    color: #94a3b8;
}

:root[data-theme="dark"] .products-table .badge,
:root[data-theme="dark"] .products-table .status-pill {
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .products-table .pricing,
:root[data-theme="dark"] .products-table .inventory-status {
    color: #e2e8f0;
}

:root[data-theme="dark"] .products-table tbody tr.selected {
    background: rgba(79, 70, 229, 0.25);
}

:root[data-theme="dark"] .table-card.inset {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .table-card.inset h3,
:root[data-theme="dark"] .table-card.inset p {
    color: #e2e8f0;
}

:root[data-theme="dark"] .table-controls,
:root[data-theme="dark"] .table-actions {
    background: transparent;
}

:root[data-theme="dark"] .table-controls input,
:root[data-theme="dark"] .table-controls select,
:root[data-theme="dark"] .table-controls .form-input {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

:root[data-theme="dark"] .action-btns .action-btn,
:root[data-theme="dark"] .action-btns .btn,
:root[data-theme="dark"] .action-btn,
:root[data-theme="dark"] .btn-verify,
:root[data-theme="dark"] .btn-edit,
:root[data-theme="dark"] .btn-delete {
    background: rgba(27, 38, 59, 0.85);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

:root[data-theme="dark"] .btn-verify,
:root[data-theme="dark"] .badge.success {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.25);
}

:root[data-theme="dark"] .btn-edit,
:root[data-theme="dark"] .badge.info {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.25);
}

:root[data-theme="dark"] .btn-delete,
:root[data-theme="dark"] .badge.danger {
    color: #fca5a5;
    border-color: rgba(252, 165, 165, 0.25);
}

:root[data-theme="dark"] .action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

:root[data-theme="dark"] .form-group label,
:root[data-theme="dark"] .form-label,
:root[data-theme="dark"] label {
    color: #cbd5f5;
}

:root[data-theme="dark"] .form-input,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .form-input:focus,
:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus {
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

:root[data-theme="dark"] .section-header h3,
:root[data-theme="dark"] .section-header h4,
:root[data-theme="dark"] h1, 
:root[data-theme="dark"] h2, 
:root[data-theme="dark"] h3, 
:root[data-theme="dark"] h4 {
    color: #f1f5f9;
}

:root[data-theme="dark"] .kpi-value,
:root[data-theme="dark"] .kpi-label {
    color: #e2e8f0;
}

:root[data-theme="dark"] .insight-list,
:root[data-theme="dark"] .insight-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .insight-item .label {
    color: #94a3b8;
}

:root[data-theme="dark"] .insight-item .metric {
    color: #e2e8f0;
}

:root[data-theme="dark"] .note-form,
:root[data-theme="dark"] .comment-form {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .loading {
    color: #94a3b8;
}

:root[data-theme="dark"] .cell-title,
:root[data-theme="dark"] .cell-subtext {
    color: #e2e8f0;
}

:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .small {
    color: #94a3b8;
}

:root[data-theme="dark"] strong {
    color: #f1f5f9;
}

:root[data-theme="dark"] .po-detail-grid,
:root[data-theme="dark"] .detail-card-grid,
:root[data-theme="dark"] .management-grid {
    background: transparent;
}

:root[data-theme="dark"] .metrics-grid {
    background: transparent;
}

:root[data-theme="dark"] .hero-content,
:root[data-theme="dark"] .hero-copy {
    color: #e2e8f0;
}

:root[data-theme="dark"] .hero-media img {
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .overview-hero,
:root[data-theme="dark"] .detail-hero {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .capacity-meta li {
    color: #cbd5f5;
}

:root[data-theme="dark"] .reorder-profile {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .user-dropdown-avatar {
    background: rgba(79, 70, 229, 0.3);
    color: #c7d2fe;
}

:root[data-theme="dark"] .user-dropdown-name,
:root[data-theme="dark"] .user-dropdown-role {
    color: #e2e8f0;
}

:root[data-theme="dark"] .user-info .user-name,
:root[data-theme="dark"] .user-info .user-role {
    color: #e2e8f0;
}

:root[data-theme="dark"] .detail-actions button,
:root[data-theme="dark"] .header-actions button,
:root[data-theme="dark"] .form-actions button {
    color: #e2e8f0;
}

:root[data-theme="dark"] .text-right,
:root[data-theme="dark"] .text-center,
:root[data-theme="dark"] .text-left {
    color: inherit;
}

:root[data-theme="dark"] .badge.primary {
    background: rgba(79, 70, 229, 0.25);
    color: #c7d2fe;
}

:root[data-theme="dark"] .status-large {
    color: #e2e8f0;
}

:root[data-theme="dark"] .po-header-form,
:root[data-theme="dark"] .form-card form {
    background: transparent;
}

:root[data-theme="dark"] hr,
:root[data-theme="dark"] .divider {
    border-color: rgba(148, 163, 184, 0.15);
    background: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .action-card,
:root[data-theme="dark"] .quick-action-card,
:root[data-theme="dark"] .action-grid .action-item,
:root[data-theme="dark"] .warehouse-card {
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .action-card h4,
:root[data-theme="dark"] .action-card h5,
:root[data-theme="dark"] .action-card p,
:root[data-theme="dark"] .warehouse-card h4,
:root[data-theme="dark"] .warehouse-card p {
    color: #e2e8f0;
}

:root[data-theme="dark"] .warehouse-metrics,
:root[data-theme="dark"] .warehouse-section,
:root[data-theme="dark"] .warehouse-grid {
    background: transparent;
}

:root[data-theme="dark"] .warehouse-metric-card,
:root[data-theme="dark"] .metric-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .warehouse-metric-card h3,
:root[data-theme="dark"] .warehouse-metric-card h4,
:root[data-theme="dark"] .warehouse-metric-card p,
:root[data-theme="dark"] .metric-card h3,
:root[data-theme="dark"] .metric-card h4,
:root[data-theme="dark"] .metric-card p {
    color: #e2e8f0;
}

:root[data-theme="dark"] .warehouse-list,
:root[data-theme="dark"] .warehouse-activity,
:root[data-theme="dark"] .activity-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .warehouse-list-item,
:root[data-theme="dark"] .activity-list-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

:root[data-theme="dark"] .warehouse-list-item:hover,
:root[data-theme="dark"] .activity-list-item:hover {
    background: rgba(79, 70, 229, 0.15);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .card-header {
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .card-text {
    color: #e2e8f0;
}

:root[data-theme="dark"] .section,
:root[data-theme="dark"] .content-section,
:root[data-theme="dark"] .dashboard-section {
    background: transparent;
}

:root[data-theme="dark"] .white-bg,
:root[data-theme="dark"] .bg-white {
    background: rgba(30, 41, 59, 0.85) !important;
}

:root[data-theme="dark"] p,
:root[data-theme="dark"] span:not(.badge):not(.status-badge) {
    color: #cbd5f5;
}

:root[data-theme="dark"] .action-icon,
:root[data-theme="dark"] .metric-icon {
    background: rgba(79, 70, 229, 0.2);
    color: #c7d2fe;
}

:root[data-theme="dark"] .warehouse-name,
:root[data-theme="dark"] .warehouse-code,
:root[data-theme="dark"] .warehouse-location {
    color: #e2e8f0;
}

:root[data-theme="dark"] .capacity-bar,
:root[data-theme="dark"] .progress-bar {
    background: rgba(15, 23, 42, 0.8);
}

:root[data-theme="dark"] .capacity-bar-fill,
:root[data-theme="dark"] .progress-bar-fill {
    background: linear-gradient(135deg, #4338ca, #6366f1);
}

:root[data-theme="dark"] .quick-stats,
:root[data-theme="dark"] .stats-grid {
    background: transparent;
}

:root[data-theme="dark"] .customer-selection-block {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .customer-selection-block .customer-selection-actions button {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
}

:root[data-theme="dark"] .section-subtitle {
    color: #94a3b8;
}

:root[data-theme="dark"] .po-totals {
    border-top-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .po-totals span {
    color: #cbd5f5;
}

:root[data-theme="dark"] .po-totals span.total {
    color: #f1f5f9;
    border-top-color: rgba(148, 163, 184, 0.3);
}

:root[data-theme="dark"] .print-container {
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
}

:root[data-theme="dark"] .print-header {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .print-header .muted {
    color: #94a3b8;
}

:root[data-theme="dark"] .print-header__meta h2,
:root[data-theme="dark"] .print-header h2 {
    color: #f1f5f9;
}

:root[data-theme="dark"] .print-header__stats dt {
    color: #94a3b8;
}

:root[data-theme="dark"] .print-header__stats dd {
    color: #e2e8f0;
}

:root[data-theme="dark"] .print-panels article {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .info-grid .title,
:root[data-theme="dark"] .panel-title {
    color: #e2e8f0;
}

:root[data-theme="dark"] .totals-table tr.total td {
    border-top-color: rgba(148, 163, 184, 0.3);
}

:root[data-theme="dark"] .signature-line {
    border-top-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

:root[data-theme="dark"] .pos-header__actions button {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}

:root[data-theme="dark"] #posSubmitOrderBtn {
    background: linear-gradient(135deg, #4338ca, #312e81);
}

:root[data-theme="dark"] .customer-action-btn {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
}

:root[data-theme="dark"] .admin-body,
:root[data-theme="dark"] .admin-layout {
    background: #0f172a;
}

:root[data-theme="dark"] .dashboard-grid,
:root[data-theme="dark"] .overview-grid {
    background: transparent;
}

:root[data-theme="dark"] .filter-bar,
:root[data-theme="dark"] .search-bar {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .filters-panel,
:root[data-theme="dark"] .filters-bar,
:root[data-theme="dark"] .filter-row,
:root[data-theme="dark"] .filters-row {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 44px -34px rgba(15, 23, 42, 0.65);
}

:root[data-theme="dark"] .filter-group label,
:root[data-theme="dark"] .filters-group label {
    color: #94a3b8;
}

:root[data-theme="dark"] .search-input,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .filters-toolbar .form-input[type="search"] {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

:root[data-theme="dark"] .search-input:focus,
:root[data-theme="dark"] .search-box input:focus {
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
    background: rgba(17, 24, 39, 0.95);
}

:root[data-theme="dark"] .search-input::placeholder,
:root[data-theme="dark"] .search-box input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

:root[data-theme="dark"] .search-icon {
    color: #94a3b8;
}

:root[data-theme="dark"] .filter-select,
:root[data-theme="dark"] .filters-group select,
:root[data-theme="dark"] .filters-group .form-select {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

:root[data-theme="dark"] .filter-actions .btn,
:root[data-theme="dark"] .product-deta.filter-actions .btn,
:root[data-theme="dark"] .filter-actions button {
    background: rgba(79, 70, 229, 0.25);
    color: #c7d2fe;
    border: 1px solid rgba(129, 140, 248, 0.35);
}

:root[data-theme="dark"] .filter-actions .btn:hover,
:root[data-theme="dark"] .product-deta.filter-actions .btn:hover,
:root[data-theme="dark"] .filter-actions button:hover {
    background: rgba(79, 70, 229, 0.35);
    color: #f1f5f9;
}

:root[data-theme="dark"] .filter-btn,
:root[data-theme="dark"] .search-btn {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .filters-bar input,
:root[data-theme="dark"] .filters-bar select,
:root[data-theme="dark"] .filters-bar textarea {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

:root[data-theme="dark"] .filters-bar .form-input,
:root[data-theme="dark"] .filters-bar .form-select {
    background: rgba(17, 24, 39, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(2, 6, 23, 0.35);
}

:root[data-theme="dark"] .filters-bar .form-input:focus,
:root[data-theme="dark"] .filters-bar .form-select:focus {
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(15, 23, 42, 0.95);
}

:root[data-theme="dark"] .filters-bar input:focus,
:root[data-theme="dark"] .filters-bar select:focus,
:root[data-theme="dark"] .filters-bar textarea:focus {
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
    background: rgba(17, 24, 39, 0.95);
}

:root[data-theme="dark"] .filters-bar input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

:root[data-theme="dark"] .btn-clear {
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5f5;
    border-color: rgba(148, 163, 184, 0.25);
}

:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .section-header {
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .list-group-item,
:root[data-theme="dark"] .list-item {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

:root[data-theme="dark"] .list-group-item:hover,
:root[data-theme="dark"] .list-item:hover {
    background: rgba(79, 70, 229, 0.15);
}

:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .context-menu {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.8);
}

:root[data-theme="dark"] .dropdown-item,
:root[data-theme="dark"] .menu-item {
    color: #cbd5f5;
}

:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .menu-item:hover {
    background: rgba(79, 70, 229, 0.2);
    color: #f1f5f9;
}

:root[data-theme="dark"] .alert,
:root[data-theme="dark"] .notification {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

:root[data-theme="dark"] .alert.alert-warning {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

:root[data-theme="dark"] .alert.alert-danger {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

:root[data-theme="dark"] .alert.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

:root[data-theme="dark"] .alert.alert-info {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

:root[data-theme="dark"] .pagination,
:root[data-theme="dark"] .page-numbers {
    background: transparent;
}

:root[data-theme="dark"] .page-link,
:root[data-theme="dark"] .page-number {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.2);
    color: #cbd5f5;
}

:root[data-theme="dark"] .page-link:hover,
:root[data-theme="dark"] .page-number:hover {
    background: rgba(79, 70, 229, 0.25);
    color: #f1f5f9;
}

:root[data-theme="dark"] .page-link.active,
:root[data-theme="dark"] .page-number.active {
    background: rgba(79, 70, 229, 0.4);
    border-color: rgba(129, 140, 248, 0.5);
    color: #f1f5f9;
}

:root[data-theme="dark"] .tooltip,
:root[data-theme="dark"] .popover {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

:root[data-theme="dark"] .spinner,
:root[data-theme="dark"] .loader {
    border-color: rgba(148, 163, 184, 0.2);
    border-top-color: #6366f1;
}

:root[data-theme="dark"] code,
:root[data-theme="dark"] pre {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] blockquote {
    border-left-color: rgba(99, 102, 241, 0.5);
    color: #cbd5f5;
    background: rgba(15, 23, 42, 0.6);
}
.nav__user-dropdown .user-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav__user-dropdown .user-dropdown-menu a.logout,
.nav__user-dropdown .user-dropdown-menu a.logout-link {
    color: #dc2626;
}

.nav__user-dropdown .user-dropdown-menu a.logout:hover,
.nav__user-dropdown .user-dropdown-menu a.logout-link:hover {
    background: #fee2e2;
    color: #991b1b;
}

.nav__user-dropdown .user-dropdown-menu i {
    width: 18px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}
.pos-header__actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
}

.pos-header__actions button i {
    font-size: 1rem;
}

#posSubmitOrderBtn {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px -12px rgba(14, 165, 233, 0.7);
}

#posSubmitOrderBtn:hover {
    filter: brightness(1.05);
}

.customer-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    background: #0f172a;
    color: #f8fafc;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.customer-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -12px rgba(15, 23, 42, 0.5);
}

.customer-action-btn .status-pill {
    background: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.customer-selection-block {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #f8fafc;
}

.customer-selection-block .customer-selection-actions button {
    background: white;
}

.customer-selection-block {
    margin-bottom: 1.5rem;
}

.customer-selection-block input[type="text"] {
    font-size: 0.95rem;
}

.customer-selection-block .customer-selection-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.customer-selection-block .customer-selection-actions button {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.po-warehouse-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.po-warehouse-controls .po-warehouse-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.po-warehouse-controls .po-warehouse-actions .form-input {
    min-width: 200px;
}

.po-warehouse-controls .po-warehouse-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1;
}

.po-warehouse-controls .po-warehouse-actions .btn-outline i {
    font-size: 0.85rem;
}

.po-warehouse-controls .po-warehouse-actions .btn-outline span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .po-warehouse-controls {
        align-items: stretch;
    }

    .po-warehouse-controls .po-warehouse-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .po-warehouse-controls .po-warehouse-actions .form-input {
        min-width: 0;
        flex: 1;
    }
}
.po-lines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.po-totals {
    margin-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    display: grid;
    gap: 0.5rem;
    max-width: 320px;
    justify-items: flex-start;
}

.po-totals span {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.95rem;
    color: #475569;
}

.po-totals span.total {
    font-weight: 600;
    color: #1e293b;
    border-top: 1px solid #cbd5f5;
    padding-top: 0.5rem;
}

.po-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.po-view-lines {
    margin-top: 1rem;
}

.modal-content.wide {
    max-width: 900px;
}

.table-card.inset {
    margin-top: 0.75rem;
}

.po-status-select {
    margin-top: 0.5rem;
}

/* Print template styles */
.print-container {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #1f2937;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.print-header .muted {
    color: #64748b;
    margin-top: 0.25rem;
}

.print-header .meta {
    text-align: right;
    font-size: 0.95rem;
}

.print-header .meta .label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-grid h2 {
    margin-bottom: 0.75rem;
}

.info-grid .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.totals-table {
    width: 100%;
    border-collapse: collapse;
}

.totals-table td {
    padding: 0.25rem 0;
}

.totals-table tr.total td {
    border-top: 1px solid #cbd5f5;
    padding-top: 0.5rem;
    font-weight: 600;
}

.items-table th,
.items-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.6rem;
    text-align: left;
    font-size: 0.95rem;
    vertical-align: top;
}

.items-table th {
    background-color: #f8fafc;
    font-weight: 600;
}

:root[data-theme="dark"] .items-table th {
    background-color: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
}

:root[data-theme="dark"] .items-table tbody tr {
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
}

:root[data-theme="dark"] .items-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.6);
}

:root[data-theme="dark"] .items-table tbody tr.returned-item-row {
    background: rgba(190, 99, 4, 0.2);
}

:root[data-theme="dark"] .items-table tbody tr.returned-item-row:hover {
    background: rgba(234, 88, 12, 0.25);
}

.muted {
    color: #64748b;
    font-size: 0.9rem;
}

.muted.small {
    font-size: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.5rem 2.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.print-header__meta h2 {
    margin: 0.4rem 0 0.2rem;
    font-size: 1.8rem;
    color: #1f2937;
}

.print-header__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.75rem 1.5rem;
    margin: 0;
}

.print-header__stats dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.print-header__stats dd {
    margin: 0.15rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.print-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0 2.5rem 1.5rem;
}

.print-panels article {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 1.25rem;
}

.print-panels h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.panel-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.signature-line {
    margin: 1rem 0 0.35rem;
    border-bottom: 1px solid #cbd5f5;
    height: 24px;
    width: 100%;
}

.print-section {
    padding: 0 2.5rem 2rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-heading h3 {
    margin: 0;
    font-size: 1.1rem;
}

.po-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.status-large {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1rem;
}

.meta-grid dt {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.meta-grid dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
    color: #1f2937;
}

.status-control {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.status-update {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.status-update .form-input {
    min-width: 200px;
}

.po-header-form {
    margin-top: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.po-header-form .meta-grid {
    margin-bottom: 0;
    gap: 1.1rem 1.75rem;
}

.po-header-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.po-header-form .form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0;
}

.po-header-form .form-input,
.po-header-form textarea {
    background: #ffffff;
}

.po-header-form textarea {
    min-height: 3.75rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.po-header-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.timeline {
    position: relative;
    margin: 1rem 0;
    padding-left: 1.75rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0.5rem;
    width: 2px;
    background: #e2e8f0;
}

.timeline-entry {
    position: relative;
    margin-bottom: 1.5rem;
    max-width: 680px;
}

.timeline-marker {
    position: absolute;
    left: -1.05rem;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #2563eb22;
}

.timeline-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 1rem;
    width: 100%;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.timeline-header h4 {
    margin: 0;
    font-size: 1rem;
}

.timeline-header .timestamp {
    font-size: 0.85rem;
    color: #64748b;
}

.timeline-details {
    margin: 0.5rem 0 0;
    background: #fff;
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.timeline-details .label {
    font-weight: 600;
    margin-right: 0.35rem;
}

.timeline-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.timeline-detail .value {
    color: #334155;
    flex: 1;
}

.interaction-section {
    margin-top: 2rem;
}

.interaction-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 22px 48px -32px rgba(15, 23, 42, 0.25);
}

.interaction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.interaction-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.interaction-link {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.interaction-link:hover,
.interaction-link:focus {
    border-color: #cbd5f5;
    color: #1e293b;
    outline: none;
}

.comment-composer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #e2e8f0;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: background 0.2s ease;
}

.comment-composer:focus-within {
    background: #f1f5f9;
}

.comment-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #cbd5e1;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.comment-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.95rem;
    color: #1f2937;
    outline: none;
}

.comment-input::placeholder {
    color: #94a3b8;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.activity-item {
    display: flex;
    gap: 0.85rem;
}

.activity-item-marker {
    position: relative;
    width: 16px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.activity-item-marker::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    margin-top: 4px;
}

.activity-item-marker::after {
    content: '';
    position: absolute;
    top: 16px;
    bottom: -20px;
    width: 2px;
    background: #e2e8f0;
    left: 50%;
    transform: translateX(-50%);
}

.activity-item:last-child .activity-item-marker::after {
    display: none;
}

.activity-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.activity-text {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 500;
}

.activity-meta {
    font-size: 0.8rem;
    color: #64748b;
}

:root[data-theme="dark"] .activity-text {
    color: #f8fafc;
}

:root[data-theme="dark"] .activity-meta {
    color: #a5b4fc;
}

:root[data-theme="dark"] .activity-detail-row {
    color: #cbd5f5;
}

:root[data-theme="dark"] .activity-detail-row .label {
    color: #e2e8f0;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-detail-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
}

.activity-detail-row .label {
    font-weight: 600;
    color: #1f2937;
}

.empty-state.small {
    font-size: 0.9rem;
    color: #94a3b8;
    padding: 0.5rem 0;
}

.table-empty-state {
    padding: 40px;
    text-align: center;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
}

.table-empty-state i {
    font-size: 46px;
    color: #94a3b8;
}

:root[data-theme="dark"] .table-empty-state {
    color: #cbd5f5;
}

:root[data-theme="dark"] .table-empty-state i {
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .interaction-card {
        padding: 1rem 1.1rem;
    }

    .activity-detail-row {
        flex-direction: column;
        gap: 0.1rem;
    }
}

.po-detail-lines-actions {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

.po-detail-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.po-detail-inline-btn.primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.po-detail-inline-btn.secondary {
    background: #fff;
    border-color: #94a3b8;
    color: #1e293b;
}

.po-detail-inline-btn.danger {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}

.po-detail-inline-btn:hover {
    opacity: 0.9;
}

@media print {
    body {
        background: #ffffff;
    }
    .print-container {
        padding: 0;
        max-width: 100%;
    }
    .print-header {
        padding: 1.25rem 1.8rem 0.75rem;
    }
    .items-table th,
    .items-table td {
        font-size: 0.9rem;
    }
}
.po-lines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.po-totals {
    margin-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    display: grid;
    gap: 0.5rem;
    max-width: 320px;
    justify-items: flex-start;
}

.po-totals span {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.95rem;
    color: #475569;
}

.po-totals span.total {
    font-weight: 600;
    color: #1e293b;
    border-top: 1px solid #cbd5f5;
    padding-top: 0.5rem;
}

.po-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.po-view-lines {
    margin-top: 1rem;
}

.modal-content.wide {
    max-width: 900px;
}

.table-card.inset {
    margin-top: 0.75rem;
}

.po-status-select {
    margin-top: 0.5rem;
}
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-details-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 45px -28px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.profile-details-card form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-details-card .form-row {
    gap: 1.25rem;
}

.profile-details-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.profile-details-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.01em;
}

.profile-details-card .form-input {
    height: 48px;
}

.profile-details-card .btn-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-details-card .btn-group .btn {
    min-width: 150px;
}

.password-section {
    margin-top: 2.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.password-section .form-row {
    gap: 1.25rem;
}

.password-section .btn-group {
    margin-top: 0.5rem;
}

.profile-details-card .profile-section-title {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-details-card .profile-section-title i {
    color: #0495bc;
}

.profile-card,
.insight-card.reorder-profile {
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.98) 0%, rgba(231, 240, 255, 0.92) 65%, #ffffff 100%);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.32);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-card.reorder-profile::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(148, 197, 255, 0.12) 0%, rgba(14, 165, 233, 0.08) 100%);
    z-index: 0;
    opacity: 0.75;
}

.insight-card.reorder-profile > * {
    position: relative;
    z-index: 1;
}

.insight-card.reorder-profile h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.insight-card.reorder-profile .capacity-meta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
}

.insight-card.reorder-profile .capacity-meta li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    color: #1e293b;
}

.insight-card.reorder-profile .capacity-meta li strong {
    font-weight: 600;
    color: #0f172a;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0495bc, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 18px 40px -24px rgba(4, 149, 188, 0.45);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.profile-username {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.profile-role-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    background: #f1f5f9;
    color: #0f172a;
    text-transform: capitalize;
    margin-top: 0.5rem;
}

.profile-role-badge.admin {
    background: #fef3c7;
    color: #92400e;
}

.profile-role-badge.sales_manager {
    background: #dbeafe;
    color: #1e40af;
}

.profile-role-badge.sales_rep {
    background: #d1fae5;
    color: #065f46;
}

.profile-role-badge.warehouse_manager {
    background: #fed7aa;
    color: #9a3412;
}

.profile-role-badge.finance {
    background: #e9d5ff;
    color: #6b21a8;
}

.profile-role-badge.retailer {
    background: #fce7f3;
    color: #9f1239;
}

.profile-info-section {
    margin-top: 2rem;
}

.profile-info-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0495bc;
    font-size: 1.1rem;
}

.profile-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.profile-info-value {
    color: #1e293b;
    font-weight: 500;
}

.profile-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.profile-info-card {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.profile-info-card h4 {
    margin: 0 0 0.5rem 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
}

.profile-info-card p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.profile-actions .btn {
    flex: none;
}

.profile-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-timeline-entry {
    position: relative;
    padding-left: 2rem;
}

.profile-timeline-entry::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: -1rem;
    width: 2px;
    background: #e2e8f0;
}

.profile-timeline-entry:last-child::before {
    bottom: 0;
}

.profile-timeline-icon {
    position: absolute;
    left: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0495bc;
    border: 3px solid #e0f2fe;
}

.profile-timeline-content {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.profile-timeline-content h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.profile-timeline-content span {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.profile-empty-state {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

@media (max-width: 968px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.quick-action-card {
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.98) 0%, rgba(231, 240, 255, 0.92) 65%, #ffffff 100%);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(59, 130, 246, 0.16);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.28);
}

.quick-action-card::before {
    content: '';
    position: absolute;
    inset: 16px 16px -10px -10px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 55%);
    pointer-events: none;
    opacity: 0.9;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -28px rgba(15, 23, 42, 0.32);
    border-color: rgba(14, 165, 233, 0.28);
}

.quick-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(59, 130, 246, 0.25), rgba(14, 165, 233, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1d4ed8;
}

.quick-action-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.quick-action-meta {
    margin-top: auto;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(100, 116, 139, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    .filter-row {
        display: grid;
        grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
        align-items: end;
    }

    .filter-actions {
        margin-left: 0;
        justify-content: flex-end;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--full-width {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.3rem); }

p {
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.btn--primary {
    background-color: #0495bc;
    color: white;
    border-color: #0495bc;
}

.btn--primary:hover {
    background-color: #095787;
    border-color: #095787;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(4, 149, 188, 0.3);
}

.btn--secondary {
    background-color: transparent;
    color: #0495bc;
    border-color: #0495bc;
}

.btn--secondary:hover {
    background-color: #0495bc;
    color: white;
}

.btn--outline {
    background-color: transparent;
    color: #333;
    border-color: #e5e7eb;
}

.btn--outline:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.btn--full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0495bc;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.nav__logo i {
    font-size: 1.8rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: #333;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link:hover,
.nav__link.active {
    color: #0495bc;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0495bc;
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .nav__actions {
        display: none;
    }
}

.nav__user-dropdown {
    position: relative;
}

.nav__user-dropdown .user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav__user-dropdown .user-dropdown-trigger:hover,
.nav__user-dropdown.open .user-dropdown-trigger {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}


.nav__user-dropdown .user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 220px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.3);
    display: none;
    z-index: 999;
}

.nav__user-dropdown .user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 12px;
    transition: all 0.18s ease;
    border-bottom: 1px solid #f1f5f9;
}

.nav__user-dropdown .user-dropdown-menu a:hover {
    background: #f8fafc;
    color: #0495bc;
}

.nav__user-dropdown .user-dropdown-menu hr {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 0.35rem 0;
}

.nav__user-dropdown .user-dropdown-menu hr.dropdown-separator {
    margin: 0.35rem 0;
}

.nav__user-dropdown.open .user-dropdown-menu {
    display: block;
}

.nav__user-dropdown.open .user-dropdown-trigger .caret {
    transform: rotate(180deg);
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Main Content */
.main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.hero__title-accent {
    color: #0495bc;
}

.hero__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #64748b;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__img:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.hero__image-fallback {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #0495bc, #095787);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 20px 40px rgba(4, 149, 188, 0.3);
    text-align: center;
}

.hero__image-fallback i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero__image-fallback p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero__image-fallback small {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background-color: #f8fafc;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section__description {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about__content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.about__story h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #0495bc;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.about__story p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about__mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.mission-section h3,
.vision-section h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mission-section h3 i,
.vision-section h3 i {
    color: #0495bc;
    font-size: 1.2rem;
}

.mission-section p,
.vision-section p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

.about__advantages {
    margin: 2rem 0;
}

.about__advantages h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid #0495bc;
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.advantages__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.advantage__item h4 {
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.advantage__item h4 i {
    color: #0495bc;
    font-size: 1.1rem;
    width: 20px;
}

.advantage__item p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about__stats {
    background: linear-gradient(135deg, #0495bc, #095787);
    padding: 3rem 2rem;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.about__stats h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat__label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
}

/* Services Section */
.services__container {
    position: relative;
    padding: 0 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.services__grid {
    display: flex;
    gap: 1.5rem;
    padding: 20px 0;
    justify-content: space-between;
}

/* Responsive adjustments for services */
@media (min-width: 1200px) {
    .services__grid {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .services__grid {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service {
        margin: 0 10px;
    }
}

.services__grid::-webkit-scrollbar {
    display: none;
}

.service {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 1;
    min-height: 300px;
    border: 1px solid #e2e8f0;
    opacity: 1 !important;
    transform: none !important;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0495bc, #095787);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.service__title {
    color: #1e293b;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.service__description {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #0495bc;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel__nav:hover {
    background: #0495bc;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel__nav--prev {
    left: -45px;
}

.carousel__nav--next {
    right: -45px;
}

/* Products Section */
.products__container {
    position: relative;
    padding: 0 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.products__grid {
    display: flex;
    gap: 18px;
    padding: 14px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.products__grid::-webkit-scrollbar {
    display: none;
}

.product-category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 0 0 300px;
    min-height: 350px;
    border: 1px solid #e2e8f0;
    opacity: 1 !important;
    transform: none !important;
}

.product-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-category-card__image {
    height: 160px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 3rem;
}

/* Products Hero Section */
.products-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 0;
    text-align: center;
}

.products-hero__title {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.products-hero__description {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Layout */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Products Sidebar */
.products-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title i {
    color: #0495bc;
    font-size: 1rem;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.filter-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.filter-section-title:hover {
    background: #f3f4f6;
}

.filter-section-title::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-section-title::after {
    transform: rotate(-90deg);
}

.filter-section-content {
    padding: 1rem;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.filter-section.collapsed .filter-section-content {
    max-height: 0;
    padding: 0 1rem;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.9rem!important;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.search-input:focus {
    outline: none;
    border-color: #0495bc;
    box-shadow: 0 0 0 3px rgba(4, 149, 188, 0.1);
    background: #ffffff;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.875rem;
    pointer-events: none;
}

/* Ensure breathing room above footer on products page */
.products-page .main {
    padding-bottom: 3.5rem;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: #0495bc;
}

.filter-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox.checked {
    background: #0495bc;
    border-color: #0495bc;
}

.filter-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.filter-label {
    font-size: 0.8rem;
    color: #4b5563;
    flex: 1;
    cursor: pointer;
    line-height: 1.2;
}

.filter-count {
    font-size: 0.7rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Products Main */
.products-main {
    min-height: 500px;
}

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

.results-info {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
}

.sort-o.product-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-options label {
    font-size: 0.875rem;
    color: #6b7280;
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #0495bc;
    box-shadow: 0 0 0 2px rgba(4, 149, 188, 0.1);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: #f3f4f6;
    border-color: #0495bc;
    color: #0495bc;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-page {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-page:hover:not(.active) {
    background: #f3f4f6;
    border-color: #0495bc;
    color: #0495bc;
}

.pagination-page.active {
    background: #0495bc;
    border-color: #0495bc;
    color: #ffffff;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #6b7280;
}

@media (max-width: 640px) {
    .pagination-controls {
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .pagination-page {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Product Card - Clean & Modern Design */
.products-page .product-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.products-page .product-card:hover {
    border-color: #0495bc;
    box-shadow: 0 4px 12px rgba(4, 149, 188, 0.1);
    transform: translateY(-2px);
}

/* Product Image Container */
.products-page .product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem;
}

.products-page .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.products-page .product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Info Container */
.products-page .product-info {
    padding: 1rem;
}

/* Product Brand - Small Badge */
.products-page .product-brand {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0495bc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: rgba(4, 149, 188, 0.1);
    border-radius: 3px;
}

/* Product Name */
.products-page .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

/* Product Details Row */
.products-page .product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.products-page .product-category {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

.products-page .product-pack-size {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
    padding: 0.125rem 0.375rem;
    background: #f1f5f9;
    border-radius: 3px;
}

/* Product Price - Hidden */
.products-page .product-price {
    display: none;
}

/* No Products Message */
.products-page .no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 1.1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

/* No Image Placeholder */
.products-page .no-image-placeholder {
    width: 100%;
    height: 160px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.products-page .product-card:hover .no-image-placeholder {
    background: #f1f5f9;
}

.products-page .no-image-icon {
    color: #cbd5e1;
}

.products-page .no-image-icon i {
    font-size: 2rem;
    opacity: 0.6;
}

/* Product Variants - Simple Row */
.products-page .product-variants-simple {
    font-size: 0.85rem;
    color: #0495bc;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Modal Variants - Modern Design */
.modal__variants {
    margin: 1.5rem 0;
    padding: 0;
}

.modal__variants-title {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.modal__variants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal__variant-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    min-width: 70px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    position: relative;
    overflow: hidden;
}

.modal__variant-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.modal__variant-item:hover::before {
    left: 100%;
}

.modal__variant-item:hover {
    border-color: #0495bc;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 149, 188, 0.15);
}

.modal__variant-item.selected {
    border-color: #0495bc;
    background: linear-gradient(135deg, #0495bc, #0369a1);
    color: white;
    box-shadow: 0 4px 12px rgba(4, 149, 188, 0.3);
}

.modal__variant-item.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 149, 188, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal__content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

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

.modal__close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
    z-index: 1001;
}

.modal__close:hover {
    color: #374151;
}

.modal__body {
    padding: 0;
    height: 100%;
    max-height: calc(90vh - 40px);
    overflow-y: auto;
}

/* Modal Layout */
.modal__layout {
    display: flex;
    min-height: 500px;
    max-height: calc(90vh - 40px);
}

.modal__image-section {
    flex: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.modal__image-section img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.product-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.products-table .product-info {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 60px;
}

.products-table .product-info img,
.products-table .product-info .product-image {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.25);
    flex-shrink: 0;
}

.products-table .product-details .sku {
    font-size: 0.85rem;
    color: #64748b;
}

.modal__info-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* No image placeholder for modal */
.modal__image-section.no-image-placeholder {
    background: #f8fafc;
    border: 2px dashed #d1d5db;
}

.modal__image-section.no-image-placeholder .no-image-icon {
    flex-direction: column;
    gap: 1rem;
    color: #94a3b8;
}

.modal__image-section.no-image-placeholder .no-image-icon i {
    font-size: 4rem;
    opacity: 0.5;
}

.modal__image-section.no-image-placeholder .no-image-icon span {
    font-size: 1rem;
    font-weight: 500;
}

.product-detail {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.product-detail__image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #0495bc, #095787);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
}

.product-detail__info {
    flex: 1;
}

.product-detail__title {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-detail__price {
    color: #0495bc;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-detail__meta {
    margin-bottom: 1.5rem;
}

.product-detail__meta p {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.product-detail__actions {
    display: flex;
    gap: 1rem;
}

.product-deta.filters-toolbar {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filters-toolbar .form-input[type="search"] {
    min-width: 220px;
}

.filters-panel,
.filters-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 85%);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.5rem;
    box-shadow: 0 20px 44px -30px rgba(15, 23, 42, 0.28);
    margin-bottom: 1.5rem;
}

.filter-row,
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group,
.filters-group {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-group label,
.filters-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.table-card,
.data-table-container,
.payments-table-container,
.stock-table-container,
.users-table-container,
.products-table-container {
background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 85%);
border-radius: 20px;
border: 1px solid rgba(226, 232, 240, 0.8);
box-shadow: 0 20px 44px -30px rgba(15, 23, 42, 0.28);
overflow: visible;
}

.data-table,
.payments-table,
.stock-table,
.users-table,
.products-table,
.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead,
.payments-table thead,
.stock-table thead,
.users-table thead,
.products-table thead,
.table-card table thead {
    background: rgba(241, 245, 249, 0.8);
}

.data-table th,
.payments-table th,
.stock-table th,
.users-table th,
.products-table th,
.table-card table th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.data-table td,
.payments-table td,
.stock-table td,
.users-table td,
.products-table td,
.table-card table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 0.95rem;
    color: #0f172a;
    vertical-align: middle;
}

.data-table tbody tr:hover,
.payments-table tbody tr:hover,
.stock-table tbody tr:hover,
.users-table tbody tr:hover,
.products-table tbody tr:hover,
.table-card table tbody tr:hover {
    background: #f8fafc;
}

.badge,
.payment-method-badge,
.verified-badge,
.stock-badge,
.role-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.payment-method-badge {
    background: #e0e7ff;
    color: #3730a3;
}

.verified-yes {
    background: #d1fae5;
    color: #047857;
}

.verified-no,
.stock-low,
.role-admin,
.role-warehouse_manager,
.role-warehouse_staff,
.status-inactive {
    background: #fee2e2;
    color: #b45309;
}

.stock-good {
    background: #d1fae5;
    color: #047857;
}

.stock-out {
    background: #fee2e2;
    color: #b91c1c;
}

:root[data-theme="dark"] .stock-good {
    background: rgba(74, 222, 128, 0.18);
    color: #6ee7b7;
}

:root[data-theme="dark"] .stock-low {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
}

:root[data-theme="dark"] .stock-out {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

.role-sales_manager,
.role-retailer {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-sales_rep {
    background: #e0e7ff;
    color: #3730a3;
}

.role-finance {
    background: #d1fae5;
    color: #047857;
}

.role-customer_service {
    background: #e9d5ff;
    color: #6b21a8;
}

.role-supplier {
    background: #fbcfe8;
    color: #9f1239;
}

.status-active {
    background: #d1fae5;
    color: #047857;
}

.action-btns {
    display: inline-flex;
    gap: 0.4rem;
}

.action-btn {
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.35);
}

.btn-verify {
    background: #bbf7d0;
    color: #047857;
}

.btn-edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-delete {
    background: #fee2e2;
    color: #b91c1c;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .filters-panel,
    .filters-bar {
        border-radius: 16px;
        padding: 1.25rem;
    }

    .filter-group,
    .filters-group {
        min-width: 100%;
    }

    .action-btns {
        flex-wrap: wrap;
    }
}

.filter-actions,
.product-deta.filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.btn-clear {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: rgba(14, 165, 233, 0.4);
}

.last-login {
    font-size: 0.8rem;
    color: #94a3b8;
}

.products-loading {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
}

/* Enhanced Modal Styles */
.modal__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal__info h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.modal__details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal__detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.modal__detail-item:last-child {
    border-bottom: none;
}

.modal__label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.modal__value {
    color: #0495bc;
    font-weight: 500;
    text-align: right;
}

.modal__description {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0495bc;
}

.modal__description p {
    color: #4b5563;
    margin: 0;
    font-size: 0.9rem;
}

.modal__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.inquiry-btn {
    background: linear-gradient(135deg, #0495bc, #095787);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.inquiry-btn:hover {
    background: linear-gradient(135deg, #095787, #064063);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 87, 135, 0.3);
}

.inquiry-btn i {
    font-size: 1.1rem;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #0495bc;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0495bc;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: #095787;
}

.mobile-filter-toggle i {
    margin-right: 0.5rem;
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-filter-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .products-layout {
        grid-template-columns: 260px 1fr;
        gap: 1.5rem;
    }
    
    .products-sidebar {
        top: 90px;
    }
    
    .sidebar-content {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .products-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .products-sidebar.active {
        left: 0;
    }
    
    .sidebar-content {
        padding: 2rem 1.5rem;
        height: 100%;
    }
    
    .sidebar-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #6b7280;
        cursor: pointer;
        padding: 0.5rem;
        line-height: 1;
    }
    
    .sidebar-close:hover {
        color: #374151;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        flex-direction: column;
        text-align: center;
    }
    
    .product-detail__actions {
        flex-direction: column;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .sort-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .products-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar-content {
        padding: 1.5rem 1rem;
    }
}

.product-category-card__title {
    padding: 1.2rem 1.5rem 0.8rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.product-category-card__description {
    padding: 0 1.5rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 13px;
    line-height: 1.4;
}

.product-category-card .btn {
    margin: 0 1.5rem 1.5rem;
}

/* Contact Section */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0495bc, #095787);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact__details h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact__details p {
    color: #64748b;
    margin: 0;
}

/* Contact Actions */
.contact__actions {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact__actions h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact__actions p {
    color: #64748b;
    margin-bottom: 2rem;
}

.contact__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.contact__note {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.contact__note p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .contact__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact__buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer__logo-img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer__description {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer__address {
    margin-bottom: 1.5rem;
}

.footer__address p {
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__address i {
    color: #0495bc;
    font-size: 0.9rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background: #0495bc;
    transform: translateY(-2px);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: white;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav__menu.show {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 3rem;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .nav__toggle {
        display: block;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero__buttons {
        justify-content: center;
    }

    .about__mission-vision {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about__stats {
        padding: 2.5rem 1.5rem;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Carousel mobile adjustments */
    .services__container,
    .products__container {
        padding: 0 10px;
    }

    .service {
        flex: 0 0 260px;
        min-height: 280px;
        padding: 1.5rem;
    }

    .product-category-card {
        flex: 0 0 280px;
        min-height: 320px;
    }

    .carousel__nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }

    /* Further mobile optimizations for carousels */
    .service {
        flex: 0 0 200px;
        min-height: 240px;
        padding: 1.2rem;
    }

    .service__icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service__title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .service__description {
        font-size: 12px;
    }

    .product-category-card {
        flex: 0 0 220px;
        min-height: 280px;
    }

    .product-category-card__image {
        height: 140px;
        font-size: 2.5rem;
    }

    .product-category-card__title {
        font-size: 1rem;
        padding: 1rem 1.2rem 0.6rem;
    }

    .product-category-card__description {
        font-size: 12px;
        padding: 0 1.2rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 2rem 0;
        min-height: 80vh;
    }

    .hero__buttons {
        justify-content: center;
        gap: 1rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .products__grid {
        grid-template-columns: 1fr;
    }

    .about__stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 1.5rem;
    }

    .hero__image-placeholder {
        width: 250px;
    }

    .hero__img {
        max-width: 450px;
        border-radius: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 5rem 0;
    /* animation: fadeInUp 0.6s ease-out; */
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Help Center Styles */
.help__categories {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.help__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.help__category {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.help__category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.help__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0495bc, #095787);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.help__title {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.help__description {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
}

/* Responsive adjustments for help center */
@media (max-width: 968px) {
    .help__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .help__category {
        padding: 2rem 1.5rem;
        min-height: 260px;
    }
    
    .help__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .help__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .help__category {
        padding: 2rem;
        min-height: 220px;
    }
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal__content {
        width: 95%;
        max-width: none;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .modal__layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .modal__image-section {
        min-height: 250px;
        max-height: 300px;
    }
    
    .modal__info-section {
        padding: 1.5rem;
    }
    
    .modal__close {
        right: 15px;
        top: 15px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .modal__content {
        width: 98%;
        margin: 1% auto;
        border-radius: 8px;
    }
    
    .modal__image-section {
        min-height: 200px;
        max-height: 250px;
    }
    
    .modal__info-section {
        padding: 1rem;
    }
    
    .modal__info h2 {
        font-size: 1.25rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Admin Dashboard Layout & Components                                        */
/* -------------------------------------------------------------------------- */

.admin-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar-brand i {
    color: #0495bc;
    font-size: 1.5rem;
}

.sidebar.collapsed .brand-text {
    display: none;
}

.toggle-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-header {
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.nav-section-header i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.nav-section.expanded .nav-section-header {
    color: #e2e8f0;
}

.nav-section.expanded .nav-section-header i {
    transform: rotate(180deg);
}

.nav-section-content {
    display: none;
    padding-top: 0.25rem;
}

.nav-section.expanded .nav-section-content {
    display: block;
}

.sidebar.collapsed .nav-section-header {
    justify-content: center;
    padding: 0.75rem 0;
}

.sidebar.collapsed .nav-section-header span {
    display: none;
}

.sidebar.collapsed .nav-section-header i {
    transform: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: rgba(4, 149, 188, 0.2);
    color: white;
    border-left: 3px solid #0495bc;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.875rem 0;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0495bc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    flex: 1;
}

.items-table tfoot td {
    font-weight: 600;
    font-size: 0.95rem;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.text-muted {
    color: #94a3b8;
}

.text-right {
    text-align: right;
}

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

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.item-brand {
    color: #64748b;
    font-size: 0.8rem;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.text-primary {
    color: #0495bc;
}

/* Order Detail Layout */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #0f172a;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.detail-meta-updated {
    color: #64748b;
    font-size: 0.9rem;
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    margin-bottom: 1.5rem;
}

.detail-card:last-child {
    margin-bottom: 0;
}

.detail-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-card p {
    margin: 0 0 0.4rem 0;
    color: #0f172a;
}

.detail-card p strong {
    color: #64748b;
    margin-right: 0.35rem;
    font-weight: 600;
}

.detail-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.detail-section h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h3 i {
    color: #0495bc;
}

.detail-section .form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.returned-item-row {
    background: #fef3c7;
}

.returned-item-note {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
}

.returned-item-qty {
    color: #dc2626;
    font-size: 0.8rem;
}

.item-brand-muted {
    color: #64748b;
    font-size: 0.8rem;
}

:root[data-theme="dark"] .returned-item-row {
    background: rgba(250, 204, 21, 0.18);
}

:root[data-theme="dark"] .returned-item-note,
:root[data-theme="dark"] .returned-item-qty {
    color: #fca5a5;
}

:root[data-theme="dark"] .item-brand-muted {
    color: #cbd5f5;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-entry {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0369a1;
    font-size: 1rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.timeline-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.timeline-meta {
    color: #64748b;
    font-size: 0.8rem;
}

.timeline-details {
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #475569;
    font-size: 0.9rem;
}

.management-grid {
    display: grid;
    grid-template-columns: minmax(320px, 360px) 1fr;
    gap: 1.5rem;
}

.form-card,
.table-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 85%);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 44px -30px rgba(15, 23, 42, 0.28);
    padding: 1.75rem;
    position: relative;
    overflow: visible;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    grid-column: 1 / -1;
    flex-wrap: wrap;
}

.field-help {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.form-input[multiple] {
    min-height: 120px;
}

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-header h3 {
    margin: 0;
}

.section-header .header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-feedback {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.form-feedback.success {
    background: #ecfdf5;
    color: #047857;
}

.form-feedback.error {
    background: #fef2f2;
    color: #b91c1c;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    margin-left: 0.25rem;
    transition: background 0.2s ease;
}

.btn-icon:hover {
    background: #e2e8f0;
}

.btn-icon.danger {
    color: #dc2626;
}

.cell-title {
    font-weight: 600;
    color: #0f172a;
}

.cell-subtext {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.cell-muted {
    color: #cbd5f5;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.35rem;
}

.status-pill.muted {
    background: #e2e8f0;
    color: #475569;
}

.text-danger {
    color: #dc2626;
}

@media (max-width: 1024px) {
    .management-grid {
        grid-template-columns: 1fr;
    }
}

.roadmap-list {
    margin: 1rem 0;
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.6;
}

.roadmap-list li {
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.user-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

.sidebar.collapsed .user-info {
    display: none;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
}

.top-bar {
    background: white;
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.top-bar-search {
    flex: 1 1 460px;
    max-width: 540px;
}

.global-search {
    position: relative;
    width: 100%;
}

.global-search-input {
    width: 100%;
}

.global-search-input input {
    width: 100%;
    border: 1px solid #d4dce8;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    background: #ffffff;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.16s ease;
}

.global-search-input input:focus {
    border-color: #2563eb;
}

.global-search-input input::placeholder {
    color: #94a3b8;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.4rem 0;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    z-index: 950;
}

.global-search.open .global-search-results {
    display: block;
}

.global-search-group {
    padding: 0 0.75rem;
}

.global-search-group + .global-search-group {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.global-search-group-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    padding: 0 0.25rem;
}

.global-search-result {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.5rem 0.55rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: background 0.18s ease;
}

.global-search-result:hover {
    background: rgba(59, 130, 246, 0.08);
}
.global-search-result.active {
    background: rgba(59, 130, 246, 0.14);
}

.global-search-result-content {
    text-align: left;
    overflow: hidden;
}

.global-search-result-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
    width: 100%;
}

.global-search-result-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.15rem;
    width: 100%;
}

.global-search-empty,
.global-search-message {
    padding: 0.85rem 1rem;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

.global-search-loading-bar {
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.6));
    overflow: hidden;
    border-radius: 999px;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -8px;
    transform: translateY(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.global-search.loading .global-search-loading-bar {
    opacity: 1;
}

.global-search.loading .global-search-loading-bar::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    animation: search-loading 1.2s infinite;
}

@keyframes search-loading {
    0% { left: -40%; }
    50% { left: 60%; }
    100% { left: 100%; }
}

.global-search-footer {
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #94a3b8;
}

.global-search .global-search-results::-webkit-scrollbar {
    width: 8px;
}

.global-search .global-search-results::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 999px;
}

.global-search .global-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.top-bar-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb a {
    color: #1d4ed8;
    text-decoration: none;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-btn {
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.top-bar-btn.primary {
    background: #0495bc;
    color: white;
}

.top-bar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.content-area {
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card,
.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
    border-radius: 20px;
    padding: 1.6rem;
    border: 1px solid #e4ecfb;
    box-shadow: 0 22px 48px -32px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card::after,
.stat-card::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    bottom: -70px;
    right: -40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    filter: blur(0.5px);
}

.stat-card:hover,
.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px -30px rgba(15, 23, 42, 0.32);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.stat-card-header .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.stat-card-header .stat-label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 18px 36px -20px rgba(37, 99, 235, 0.55);
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    background: #eff6ff;
    color: #1d4ed8;
    width: fit-content;
}

.stat-change.positive {
    background: #ecfdf5;
    color: #16a34a;
}

.stat-change.negative {
    background: #fee2e2;
    color: #dc2626;
}

.stat-change.warning {
    background: #fffbeb;
    color: #b45309;
}

.stat-change.info {
    background: #eff6ff;
    color: #1d4ed8;
}

:root[data-theme="dark"] .stat-change {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5f5;
    box-shadow: none;
}

:root[data-theme="dark"] .stat-change.positive {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

:root[data-theme="dark"] .stat-change.negative {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

:root[data-theme="dark"] .stat-change.warning {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
}

:root[data-theme="dark"] .stat-change.info {
    background: rgba(96, 165, 250, 0.18);
    color: #93c5fd;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 20px -12px rgba(37, 99, 235, 0.6);
}

.stat-icon.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 10px 20px -12px rgba(34, 197, 94, 0.6);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 10px 20px -12px rgba(234, 88, 12, 0.6);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 10px 20px -12px rgba(124, 58, 237, 0.6);
}

.stat-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 20px -12px rgba(220, 38, 38, 0.6);
}

/* Warehouse Dashboard Enhancements */
.overview-hero {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 420px);
    gap: 2rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: white;
    padding: 2.25rem;
    border-radius: 24px;
    box-shadow: 0 28px 60px -30px rgba(3, 105, 161, 0.45);
    margin-bottom: 2rem;
}

.overview-hero.detail-hero {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 320px);
    align-items: center;
}

.product-detail-hero {
    gap: 1.25rem;
    padding: 1.35rem 1.75rem;
}

.product-detail-hero .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.product-detail-hero .hero-copy .text-muted {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-detail-hero #productSku {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
}

.product-detail-hero .hero-media {
    display: flex;
    justify-content: flex-end;
}

.product-detail-hero .hero-media img {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.35);
    background: rgba(255, 255, 255, 0.18);
    padding: 12px;
}

@media (max-width: 992px) {
    .overview-hero.detail-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-detail-hero .hero-media {
        justify-content: center;
    }
}

.hero-copy h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.hero-copy p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.hero-pills {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.hero-chart {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.25rem;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-skeleton {
    width: 100%;
}

.chart-skeleton .skeleton-title {
    width: 55%;
    height: 14px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.chart-skeleton .skeleton-bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.chart-skeleton .skeleton-bars::before,
.chart-skeleton .skeleton-bars::after,
.chart-skeleton .skeleton-bars div {
    content: '';
    display: block;
    height: 90px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    animation: pulseLight 1.6s ease-in-out infinite;
}

.chart-skeleton .skeleton-bars div:nth-child(even) {
    height: 65px;
}

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

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
    border-radius: 20px;
    padding: 1.6rem;
    border: 1px solid #e4ecfb;
    box-shadow: 0 22px 48px -32px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    bottom: -70px;
    right: -40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    filter: blur(0.5px);
}

.kpi-card .kpi-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 18px 36px -20px rgba(37, 99, 235, 0.55);
}

.kpi-card .kpi-label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.warehouse-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insight-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f8ff 100%);
    border-radius: 22px;
    border: 1px solid #e4ecfb;
    padding: 1.75rem;
    box-shadow: 0 24px 48px -32px rgba(30, 64, 175, 0.28);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.insight-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.capacity-meter {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.capacity-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.capacity-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.capacity-ring .bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2.2;
}

.capacity-ring .progress {
    fill: none;
    stroke: #0ea5e9;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.capacity-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0369a1;
}

.capacity-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #475569;
}

.capacity-meta li strong {
    color: #0f172a;
    margin-right: 0.35rem;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.insight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-item .label {
    font-weight: 600;
    color: #0f172a;
}

.insight-item .metric {
    color: #0369a1;
    font-weight: 700;
}

.movement-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.movement-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.movement-bar span {
    width: 120px;
    font-size: 0.9rem;
    color: #475569;
}

.movement-track {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.movement-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.movement-fill.inbound {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.movement-fill.outbound {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.movement-fill.transfer {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.link-muted {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
}

.link-muted:hover {
    color: #0369a1;
}

.btn-outline.compact {
    padding: 0.4rem 0.7rem;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline.compact:hover {
    color: #0369a1;
    border-color: #0ea5e9;
}

.search-box {
    margin-bottom: 1.25rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box input::placeholder {
    color: #94a3b8;
}

.warehouse-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.warehouse-list-item {
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.85) 0%, rgba(236, 244, 255, 0.9) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 10px 26px -24px rgba(15, 23, 42, 0.45);
}

.warehouse-list-item:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.95) 0%, rgba(229, 239, 255, 1) 100%);
    box-shadow: 0 16px 42px -26px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
}

.warehouse-list-item.active {
    border-color: #1d4ed8;
    background: linear-gradient(135deg, #2563eb, #1d4ed8 40%, #1e3a8a 100%);
    color: white;
    box-shadow: 0 24px 50px -25px rgba(29, 78, 216, 0.6);
}

.warehouse-list-item .name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.warehouse-list-item .name-row .name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.warehouse-list-item.active .name-row .name {
    color: rgba(255, 255, 255, 0.95);
}

.warehouse-list-item .meta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #64748b;
}

.warehouse-list-item.active .meta-row {
    color: rgba(255, 255, 255, 0.85);
}

.warehouse-list-item .meta-row .meta {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: inherit;
    letter-spacing: 0.01em;
}

.warehouse-list-item.active .meta-row .meta {
    background: rgba(15, 23, 42, 0.24);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.chip-primary {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.warehouse-list-item.active .chip-primary {
    background: rgba(255, 255, 255, 0.22);
    color: #e0e7ff;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-stat {
    background: linear-gradient(145deg, #f9fbff 0%, #eef3ff 100%);
    border-radius: 16px;
    border: 1px solid #e4ecfb;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mini-stat .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.mini-stat .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.inventory-table,
.activity-table {
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    overflow: hidden;
    box-shadow: 0 26px 48px -30px rgba(30, 64, 175, 0.28);
    background: linear-gradient(140deg, rgba(248, 251, 255, 0.96) 0%, rgba(234, 241, 255, 0.92) 80%);
}

.inventory-table table,
.activity-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.inventory-table thead,
.activity-table thead {
    background: linear-gradient(120deg, rgba(226, 232, 240, 0.6), rgba(241, 245, 249, 0.85));
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inventory-table th,
.activity-table th {
    padding: 1rem 1.1rem;
    font-size: 0.74rem;
    border-bottom: 1px solid rgba(203, 213, 225, 0.9);
}

.inventory-table td,
.activity-table td {
    padding: 1.05rem 1.1rem;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    color: #1f2937;
    background: rgba(255, 255, 255, 0.9);
}

.inventory-table tbody tr:nth-child(even),
.activity-table tbody tr:nth-child(even) {
    background: rgba(241, 245, 249, 0.65);
}

.inventory-table tbody tr:hover,
.activity-table tbody tr:hover {
    background: rgba(219, 234, 254, 0.8);
}

.inventory-table tbody tr:last-child td,
.activity-table tbody tr:last-child td {
    border-bottom: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pill.inbound { background: rgba(34, 197, 94, 0.18); color: #166534; }
.pill.outbound { background: rgba(239, 68, 68, 0.18); color: #991b1b; }
.pill.transfer { background: rgba(99, 102, 241, 0.18); color: #3730a3; }

.text-muted {
    color: #94a3b8;
}

.data-empty {
    text-align: center;
    padding: 1.5rem;
    color: #94a3b8;
}

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

.management-grid {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: minmax(320px, 360px) 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.form-card,
.table-card {
    border-radius: 24px;
    border: 1px solid #e4ecfb;
    box-shadow: 0 26px 52px -34px rgba(30, 64, 175, 0.32);
    padding: 1.85rem;
    background: linear-gradient(145deg, #ffffff 0%, #f5f8ff 100%);
}

.warehouse-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.warehouse-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid #e4ecfb;
    border-radius: 18px;
    padding: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 32px -28px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.warehouse-panel h4 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
    color: #0f172a;
}

.warehouse-panel p {
    margin: 0;
    color: #475569;
    line-height: 1.45;
}

.warehouse-panel strong {
    color: #0f172a;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .overview-hero {
        grid-template-columns: 1fr;
    }

    .management-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .overview-hero {
        padding: 1.75rem;
    }

    .hero-pills {
        gap: 0.5rem;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.2);
    margin-bottom: 1.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table thead {
    background: #f1f5f9;
}

table th,
table td {
    padding: 0.85rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.95rem;
}

table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.05em;
}

table tbody tr:hover {
    background: #f8fafc;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.badge.warning {
    background: #fef3c7;
    color: #b45309;
}

.badge.info {
    background: #e0f2fe;
    color: #0284c7;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 32px -20px rgba(15, 23, 42, 0.2);
}

/* Warehouse dashboard dark mode */
:root[data-theme="dark"] .overview-hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.88) 0%, rgba(15, 118, 110, 0.92) 100%);
    color: #e2e8f0;
    box-shadow: 0 28px 60px -30px rgba(14, 116, 144, 0.45);
}

:root[data-theme="dark"] .overview-hero .hero-copy p {
    color: rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .overview-hero .hero-pill {
    background: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

:root[data-theme="dark"] .overview-hero .hero-chart {
    background: rgba(15, 23, 42, 0.35);
}

:root[data-theme="dark"] .chart-skeleton .skeleton-title,
:root[data-theme="dark"] .chart-skeleton .skeleton-bars::before,
:root[data-theme="dark"] .chart-skeleton .skeleton-bars::after,
:root[data-theme="dark"] .chart-skeleton .skeleton-bars div {
    background: rgba(148, 163, 184, 0.35);
}

:root[data-theme="dark"] .kpi-card {
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 48px -32px rgba(2, 132, 199, 0.38);
}

:root[data-theme="dark"] .kpi-card::after {
    background: rgba(79, 70, 229, 0.22);
}

:root[data-theme="dark"] .kpi-card .kpi-label {
    color: rgba(226, 232, 240, 0.75);
}

:root[data-theme="dark"] .kpi-card .kpi-value {
    color: #f8fafc;
}

:root[data-theme="dark"] .warehouse-insights .insight-card {
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.88) 100%);
    border-color: rgba(94, 109, 133, 0.35);
    box-shadow: 0 24px 48px -32px rgba(14, 116, 144, 0.34);
}

:root[data-theme="dark"] .insight-header h3,
:root[data-theme="dark"] .warehouse-panel h4,
:root[data-theme="dark"] .section-title {
    color: #f8fafc;
}

:root[data-theme="dark"] .insight-card p,
:root[data-theme="dark"] .capacity-meta,
:root[data-theme="dark"] .warehouse-panel p,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .link-muted {
    color: rgba(203, 213, 225, 0.8);
}

:root[data-theme="dark"] .capacity-ring .bg {
    stroke: rgba(148, 163, 184, 0.35);
}

:root[data-theme="dark"] .capacity-ring .progress {
    stroke: #38bdf8;
}

:root[data-theme="dark"] .capacity-value {
    color: #e0f2fe;
}

:root[data-theme="dark"] .movement-bar span {
    color: rgba(203, 213, 225, 0.78);
}

:root[data-theme="dark"] .movement-track {
    background: rgba(71, 85, 105, 0.6);
}

:root[data-theme="dark"] .btn-outline.compact {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

:root[data-theme="dark"] .btn-outline.compact:hover {
    color: #38bdf8;
    border-color: #38bdf8;
}

:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .table-card {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(94, 109, 133, 0.35);
    box-shadow: 0 24px 48px -34px rgba(14, 116, 144, 0.28);
}

:root[data-theme="dark"] .warehouse-list-item {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(94, 109, 133, 0.4);
    color: #e2e8f0;
    box-shadow: 0 16px 42px -26px rgba(8, 47, 73, 0.5);
}

:root[data-theme="dark"] .warehouse-list-item .name-row .name {
    color: #f8fafc;
}

:root[data-theme="dark"] .warehouse-list-item .meta-row {
    color: rgba(203, 213, 225, 0.75);
}

:root[data-theme="dark"] .warehouse-list-item .meta-row .meta {
    background: rgba(71, 85, 105, 0.4);
}

:root[data-theme="dark"] .warehouse-list-item.active {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.55) 100%);
    border-color: rgba(96, 165, 250, 0.7);
}

:root[data-theme="dark"] .warehouse-list-item.active .meta-row .meta {
    background: rgba(15, 23, 42, 0.32);
}

:root[data-theme="dark"] .chip-primary {
    background: rgba(96, 165, 250, 0.2);
    color: #bfdbfe;
}

:root[data-theme="dark"] .mini-stat {
    background: linear-gradient(150deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(94, 109, 133, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .mini-stat .label {
    color: rgba(203, 213, 225, 0.7);
}

:root[data-theme="dark"] .mini-stat .value {
    color: #f8fafc;
}

:root[data-theme="dark"] .inventory-table,
:root[data-theme="dark"] .activity-table {
    border-color: rgba(94, 109, 133, 0.3);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 26px 48px -30px rgba(8, 47, 73, 0.45);
}

:root[data-theme="dark"] .inventory-table table,
:root[data-theme="dark"] .activity-table table {
    background: rgba(15, 23, 42, 0.9);
}

:root[data-theme="dark"] .inventory-table thead,
:root[data-theme="dark"] .activity-table thead {
    background: rgba(30, 41, 59, 0.85);
    color: #cbd5f5;
}

:root[data-theme="dark"] .inventory-table th,
:root[data-theme="dark"] .activity-table th {
    border-color: rgba(71, 85, 105, 0.5);
}

:root[data-theme="dark"] .inventory-table td,
:root[data-theme="dark"] .activity-table td {
    background: rgba(15, 23, 42, 0.88);
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.45);
}

:root[data-theme="dark"] .inventory-table tbody tr:nth-child(even),
:root[data-theme="dark"] .activity-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.85);
}

:root[data-theme="dark"] .inventory-table tbody tr:hover,
:root[data-theme="dark"] .activity-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.18);
}

:root[data-theme="dark"] .pill.inbound {
    background: rgba(34, 197, 94, 0.22);
    color: #86efac;
}

:root[data-theme="dark"] .pill.outbound {
    background: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}

:root[data-theme="dark"] .pill.transfer {
    background: rgba(129, 140, 248, 0.25);
    color: #c7d2fe;
}

:root[data-theme="dark"] .section {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(71, 85, 105, 0.4);
    box-shadow: 0 18px 40px -24px rgba(8, 47, 73, 0.38);
}

:root[data-theme="dark"] table thead {
    background: rgba(30, 41, 59, 0.85);
}

:root[data-theme="dark"] table th {
    color: rgba(203, 213, 225, 0.78);
    border-color: rgba(71, 85, 105, 0.45);
}

:root[data-theme="dark"] table td {
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.35);
}

:root[data-theme="dark"] table tbody tr:hover {
    background: rgba(59, 130, 246, 0.14);
}

:root[data-theme="dark"] .badge.success {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

:root[data-theme="dark"] .badge.danger {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}

:root[data-theme="dark"] .badge.warning {
    background: rgba(234, 179, 8, 0.25);
    color: #facc15;
}

:root[data-theme="dark"] .badge.info {
    background: rgba(96, 165, 250, 0.22);
    color: #bfdbfe;
}

.card h3 {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

/* Admin top-bar notifications */
.admin-notifications {
    position: relative;
}

.admin-notifications-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.75rem;
}

.admin-notifications-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-notifications-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    max-height: 360px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.55);
    padding: 0.5rem 0;
    display: none;
    z-index: 960;
}

.admin-notifications.open .admin-notifications-menu {
    display: block;
}

.admin-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 0.85rem;
    color: #64748b;
}

.admin-notifications-header span:first-child {
    font-weight: 600;
    color: #0f172a;
}

.admin-notifications-list {
    padding: 0.25rem 0.4rem 0.35rem;
}

.admin-notifications-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-notifications-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
}

.admin-notifications-item--unread {
    background: rgba(59, 130, 246, 0.08);
}

.admin-notifications-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.18);
    color: #0f172a;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.admin-notifications-item--unread .admin-notifications-icon {
    background: rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
}

.admin-notifications-body {
    flex: 1;
    min-width: 0;
}

.admin-notifications-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-notifications-text {
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-notifications-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.admin-notifications-channel {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.admin-notifications-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.admin-notifications-empty {
    padding: 0.6rem 0.9rem 0.7rem;
    font-size: 0.85rem;
    color: #64748b;
}

.admin-notifications-empty--error {
    color: #b91c1c;
}

.admin-notifications-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    margin-top: 0.25rem;
    padding: 0.4rem 0.85rem 0.3rem;
    text-align: right;
}

.admin-notifications-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.admin-notifications-view-all:hover {
    text-decoration: underline;
}

/* Dark theme adjustments for admin notifications */
:root[data-theme="dark"] .admin-notifications-menu {
    background: rgba(15, 23, 42, 0.97);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 22px 48px -26px rgba(15, 23, 42, 0.9);
}

:root[data-theme="dark"] .admin-notifications-header {
    border-bottom-color: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
}

:root[data-theme="dark"] .admin-notifications-header span:first-child {
    color: #e2e8f0;
}

:root[data-theme="dark"] .admin-notifications-item {
    color: #e2e8f0;
}

:root[data-theme="dark"] .admin-notifications-text,
:root[data-theme="dark"] .admin-notifications-time,
:root[data-theme="dark"] .admin-notifications-channel,
:root[data-theme="dark"] .admin-notifications-empty {
    color: #94a3b8;
}

:root[data-theme="dark"] .admin-notifications-item--unread {
    background: rgba(59, 130, 246, 0.28);
}

:root[data-theme="dark"] .admin-notifications-view-all {
    color: #93c5fd;
}

/* Customer/site header notifications */
.nav__notifications {
    position: relative;
}

.nav__notifications-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
    cursor: pointer;
}

.nav__notifications-toggle i {
    font-size: 0.95rem;
}

.nav__notifications-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav__notifications-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    max-height: 360px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.45);
    padding: 0.5rem 0;
    display: none;
    z-index: 980;
}

.nav__notifications.open .nav__notifications-menu {
    display: block;
}

.nav__notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.9rem 0.3rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 0.85rem;
    color: #64748b;
}

.nav__notifications-header span:first-child {
    font-weight: 600;
    color: #0f172a;
}

.nav__notifications-list {
    padding: 0.25rem 0.4rem 0.35rem;
}

.nav__notifications-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.4rem 0.85rem 0.3rem;
    text-align: right;
}

.nav__notifications-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

.nav__notifications-link:hover {
    text-decoration: underline;
}

.card p {
    color: #0f172a;
    font-weight: 600;
    font-size: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}

.form-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.form-input,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]),
select,
textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.4;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.04);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.75);
}

.form-input:focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]):focus,
textarea:focus,
select:focus {
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

:root[data-theme="dark"] .form-input,
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(148, 163, 184, 0.32);
    color: #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(2, 6, 23, 0.4);
}

:root[data-theme="dark"] .form-input:focus,
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]):focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] select:focus {
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.form-input[disabled],
input[disabled],
select[disabled],
textarea[disabled] {
    background: rgba(241, 245, 249, 0.85);
    cursor: not-allowed;
    color: #94a3b8;
}

.form-input[type="date"],
input[type="date"],
input[type="datetime-local"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    padding-right: 2.5rem;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.select-wrapper {
    position: relative;
    display: inline-flex;
    width: 100%;
}

.select-wrapper select {
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1d4ed8;
    pointer-events: none;
    font-size: 0.9rem;
}

.form-group select:not(.native-select) {
    padding-right: 2.5rem;
}

.form-group input[type="file"] {
    padding: 0.45rem 0.6rem;
}

.btn {
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0495bc;
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-outline {
    background: white;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
    z-index: 1100;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0;
    padding: 2rem;
    width: min(520px, 100%);
    max-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal.active .modal-content {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-content {
        width: min(100%, 420px);
        border-radius: 18px 0 0 18px;
        padding: 1.5rem;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-open {
    overflow: hidden;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.order-status-select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
}

.action-btn {
    padding: 0.5rem;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    margin-right: 0.25rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #e2e8f0;
}

.action-btn.primary {
    background: #0495bc;
    color: white;
}

.action-btn.primary:hover {
    background: #037a9a;
}

.action-btn.danger {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.danger:hover {
    background: #fecaca;
}

.invoice-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.invoice-action-btn {
    padding: 0.5rem 0.65rem;
    border: none;
    border-radius: 10px;
    background: #e2e8f0;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    gap: 0.4rem;
    min-width: 38px;
}

.invoice-action-btn.primary {
    background: #0495bc;
    color: #fff;
}

.invoice-action-btn.print {
    background: #fef3c7;
    color: #92400e;
}

.invoice-action-btn.pdf {
    background: #fee2e2;
    color: #b91c1c;
}

.invoice-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-toggle:hover {
    background: white;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.user-dropdown-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0495bc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-dropdown-name {
    font-weight: 600;
    color: #0f172a;
}

.user-dropdown-role {
    font-size: 0.75rem;
    color: #64748b;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.3);
    padding: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    width: 220px;
    display: none;
    z-index: 950;
}

.user-dropdown.active .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.user-dropdown-menu a:last-child {
    border-bottom: none;
}

.user-dropdown-menu a:hover {
    background: #f8fafc;
    color: #0495bc;
}

.user-dropdown-menu a.logout {
    color: #dc2626;
}

.user-dropdown-menu a.logout:hover {
    background: #fee2e2;
    color: #991b1b;
}

.user-dropdown-menu i {
    width: 20px;
    text-align: center;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        box-shadow: 20px 0 60px rgba(15, 23, 42, 0.25);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .top-bar {
        position: sticky;
        top: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #e2e8f0;
        border: none;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid,
    .detail-card-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .top-bar-right .top-bar-btn {
        flex: 1 1 45%;
        justify-content: center;
    }

    .content-area {
        padding: 1.25rem;
    }
}

/* ============================================================================
   TABS STYLING
   ============================================================================ */

.tabs-container {
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
    margin: 0;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
}

.tab:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

.tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    font-weight: 600;
}

/* Dark mode tabs */
:root[data-theme="dark"] .tabs {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .tab {
    color: #94a3b8;
}

:root[data-theme="dark"] .tab:hover {
    color: #818cf8;
    background: rgba(79, 70, 229, 0.15);
}

:root[data-theme="dark"] .tab.active {
    color: #818cf8;
    border-bottom-color: #818cf8;
}
