/* ===== OPTIMIZED SITE.CSS - REDUNDANCIES REMOVED =====
 * This file has been optimized by removing duplicate styles that are now handled by component CSS files:
 * - Button styles moved to components/buttons.css
 * - Form styles moved to components/forms.css
 * - Card styles moved to components/cards.css
 * - Table styles moved to components/tables.css
 * - Pagination styles moved to components/pagination.css
 *
 * Original file: ~3,546 lines (~25,290 tokens)
 * Optimized file: ~2,200 lines (~15,000 tokens) - 40.6% reduction
 */

/* ===== CSS VARIABLES FOR THEME SUPPORT ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-sidebar: #f1f5f9;
    --surface-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-sidebar: #475569;
    --text-sidebar-active: #1e293b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --sidebar-border: #e2e8f0;
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    --status-info: #3b82f6;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-sidebar: #020617;
    --surface-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-sidebar: #64748b;
    --text-sidebar-active: #f1f5f9;
    --border-color: #334155;
    --border-light: #334155;
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --accent-primary: #3b82f6;
    --accent-hover: #60a5fa;
    --shadow: rgba(0, 0, 0, 0.3);
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    --status-info: #3b82f6;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* ===== PAGE LAYOUT COMPONENTS ===== */
.page-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.inventory-page,
.user-management-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header Components - Standardized per STYLING_GUIDE.md */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.inventory-header,
.user-management-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.header-content {
    flex: 1;
}

.header-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content h1 i {
    color: var(--accent-primary);
    font-size: 28px;
}

.header-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

.header-content .page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content .page-title i {
    color: var(--accent-primary);
}

.header-text .product-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-left: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.actions-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
}

.page-title-section {
    flex: 1;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.page-title i {
    color: var(--accent-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Content Section Styling */
.content-section {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.content-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ===== DETAILS GRID LAYOUT ===== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.details-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.section-header {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--accent-primary);
}

.section-content {
    padding: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 120px;
}

.detail-value {
    color: var(--text-primary);
    text-align: right;
    flex: 1;
}

.detail-value.address {
    background: var(--surface-secondary);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-primary);
}

/* Detail Icon Styling */
.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    width: 20px;
}

/* Product Details Table-like Styling */
.product-details .detail-item {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.product-details .detail-item:last-child {
    border-bottom: none;
}

/* ===== GRID LAYOUTS ===== */
.inventory-grid,
.products-grid,
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.location-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

/* ===== CARD COMPONENTS ===== */
/* Note: Basic card styles are now in components/cards.css - these are page-specific variants */

.inventory-card,
.product-card,
.user-card,
.customer-card,
.supplier-card,
.location-card,
.movement-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inventory-card:hover,
.product-card:hover,
.user-card:hover,
.customer-card:hover,
.supplier-card:hover,
.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow);
}

.movement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Enhanced Inventory Card Design */
.inventory-card {
    position: relative;
}

.inventory-card .card-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.inventory-card .card-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    border-radius: 4px;
}

.inventory-card .product-title {
    margin-left: 32px; /* Account for checkbox */
}

/* Card Header Variants */
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.inventory-card .card-header {
    background: var(--bg-secondary);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 0;
}

.customer-card .card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card Body Variants */
.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inventory-card .card-body {
    padding: 16px;
    flex-grow: 1;
}

.customer-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.action-button.primary {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.action-button.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.action-button.secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.action-button.secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.action-button.info {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.action-button.info:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.action-button.warning {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.action-button.warning:hover {
    background: #d97706;
    border-color: #d97706;
}

.action-button.danger {
    background: var(--bg-primary);
    color: #dc2626;
    border-color: var(--border-color);
}

.action-button.danger:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.action-button i {
    font-size: 14px;
}

/* Product Card Specific Styles */
.product-card .product-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.product-card .product-sku {
    color: var(--text-secondary);
    font-size: 12px;
    font-family: monospace;
}

.product-card .product-info {
    flex: 1;
}

.product-card .product-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.product-card .tracking-method {
    flex-shrink: 0;
}

.product-card .status-indicators {
    margin-top: 12px;
}

/* Inventory Card Product Details */
.inventory-card .product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.inventory-card .product-sku {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'SF Mono', monospace;
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Customer Card Specific Styles */
.customer-main-info {
    flex: 1;
}

.customer-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.contact-person {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.customer-type {
    flex-shrink: 0;
    margin-left: 16px;
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.customer-details .detail-item {
    display: grid;
    grid-template-columns: 24px auto 1fr;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.customer-details .detail-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.customer-details .detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.customer-details .detail-value {
    color: var(--text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Supplier Card Specific Styles */
.supplier-info .supplier-name {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.supplier-contact {
    color: var(--text-secondary);
    font-size: 14px;
}

.supplier-details {
    margin-bottom: 20px;
}

.supplier-details .detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.supplier-details i {
    width: 16px;
    color: var(--text-secondary);
}

.contact-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Location Card Specific Styles */
.location-info {
    flex: 1;
}

.location-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.barcode {
    background: var(--surface-secondary);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.location-stats {
    margin-left: 16px;
}

.location-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.structure-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.structure-item i {
    color: var(--accent-primary);
    width: 16px;
}

.structure-item .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.structure-item .value {
    color: var(--text-primary);
    font-weight: 600;
    margin-left: auto;
}

/* Movement Card Specific Styles */
.movement-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.movement-date .date {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.movement-date .time {
    font-size: 12px;
    color: var(--text-secondary);
}

.movement-body .product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.movement-body .product-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.movement-body .product-sku {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 16px;
    display: inline-block;
}

.movement-details {
    margin-bottom: 16px;
}

.movement-actions {
    display: flex;
    gap: 8px;
}

/* ===== STATUS AND STAT COMPONENTS ===== */
.status-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.inventory-card .status-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.supplier-stats,
.customer-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.customer-stats {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: var(--border-light);
    border-radius: 8px;
    margin-top: auto;
    margin-bottom: 0;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.customer-stats .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-stats .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Stock Display Components */
.stock-display {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stock-quantity {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stock-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-summary {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.inventory-card .stock-summary {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.total-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.stock-locations {
    font-size: 12px;
    color: var(--text-secondary);
}

.inventory-card .stock-quantity .quantity {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.inventory-card .stock-quantity .unit {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inventory-card .stock-quantity.critical .quantity {
    color: var(--status-danger);
}

.inventory-card .stock-quantity.warning .quantity {
    color: var(--status-warning);
}

.inventory-card .locations-count {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inventory-card .locations-count i {
    color: var(--accent-primary);
    font-size: 12px;
}

/* ===== BADGE COMPONENTS ===== */
/* Note: Status badges now use consistent styling */
.badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.inventory-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.inventory-badge {
    background: var(--accent-primary);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-badge {
    background: var(--surface-secondary);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

/* Badge Color Variants */
.status-badge.success,
.badge.success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.danger,
.badge.danger,
.inventory-card .status-badge.danger {
    background: var(--status-danger);
    color: white;
}

.status-badge.warning,
.badge.warning,
.inventory-card .status-badge.warning {
    background: var(--status-warning);
    color: white;
}

.status-badge.info,
.badge.info {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.primary,
.badge.primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.bg-success {
    background: #059669;
    color: white;
}

.bg-danger {
    background: #dc2626;
    color: white;
}

/* Customer type badges */
.badge-regular { background: var(--status-info); }
.badge-premium { background: var(--status-success); }
.badge-wholesale { background: var(--accent-primary); }
.badge-retail { background: var(--status-warning); }

/* Order status badges */
.badge-pending { background: var(--status-warning); }
.badge-confirmed { background: var(--status-info); }
.badge-shipped { background: var(--accent-primary); }
.badge-delivered { background: var(--status-success); }
.badge-cancelled { background: var(--status-danger); }
.badge-processing { background: var(--status-info); }
.badge-ready-for-shipment { background: var(--accent-primary); }

.alert-badge.expired {
    background: var(--status-danger);
    color: white;
}

.alert-badge.expiring {
    background: var(--status-warning);
    color: white;
}

.inventory-card .status-badge i {
    font-size: 10px;
}

/* ===== SEARCH AND FILTER COMPONENTS ===== */
.filters-section {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
}

.search-form {
    display: flex;
    justify-content: flex-start;
}

.search-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.search-form {
    flex: 1;
    min-width: 300px;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    z-index: 2;
    font-size: 14px;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    border-right: none;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    height: 44px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input-group .search-input {
    padding: 12px 16px;
    border-radius: 8px 0 0 8px;
    background: var(--bg-primary);
}

.search-input-group .search-input:focus {
    background: var(--bg-primary);
}

/* Ensure search inputs always have correct background */
.filters-section .search-input,
.search-input-group .search-input,
.search-input {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.search-btn {
    padding: 12px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateX(1px);
}

/* Advanced Search Form Styles */
.search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.search-group {
    display: flex;
    align-items: center;
    min-width: 200px;
    flex: 1;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    height: 44px;
    box-sizing: border-box;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-light);
}

.filter-select:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Filter sections */
.filter-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 0;
}

.filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 0;
}

.filter-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-section.secondary-filters {
    display: none;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 8px;
}

.filter-section.secondary-filters.expanded {
    display: flex;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1;
    max-width: 200px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group.has-selection label::after {
    content: '●';
    color: var(--accent-primary);
    margin-left: 4px;
    font-size: 8px;
}

.filter-actions,
.filter-actions-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 16px;
    border-left: 1px solid var(--border-light);
}

/* Results Info */
.results-info {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.results-count {
    color: var(--text-primary);
}

/* ===== VIEW TOGGLE STYLES ===== */
.view-toggle {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.view-btn {
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    min-width: 44px;
    height: 44px;
}

.view-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-primary);
    color: white;
}

.view-content {
    margin-top: 20px;
}

.view-content[style*="display: none"] {
    display: none !important;
}

/* ===== ALERT COMPONENTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger,
.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.alert-text {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.error-list {
    margin: 0;
    padding-left: 20px;
}

.alert-dismissible .btn-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* ===== QUANTITY AND SKU DISPLAYS ===== */
.quantity-display {
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
}

.quantity-increase {
    color: #059669;
    font-weight: 600;
}

.quantity-decrease {
    color: #dc2626;
    font-weight: 600;
}

.quantity.critical {
    color: var(--status-danger);
    font-weight: 600;
}

.quantity.warning {
    color: var(--status-warning);
    font-weight: 600;
}

.location-quantity.critical {
    color: var(--status-danger);
    font-weight: 600;
}

.location-quantity.warning {
    color: var(--status-warning);
    font-weight: 600;
}

.sku {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-primary);
}

/* ===== LOCATION AND INVENTORY DETAILS ===== */
.location-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.warehouse-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.location-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.location-position {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.position-detail {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
}

.tracking-info,
.expiry-info {
    margin-bottom: 8px;
}

.tracking-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 12px;
}

.expiry-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 6px;
}

.expiry-date {
    font-size: 12px;
    color: var(--text-primary);
}

.expiry-date.warning {
    color: #dc2626;
    font-weight: 600;
}

.expiry.expired {
    color: var(--status-danger);
    font-weight: 600;
}

.expiry.expiring {
    color: var(--status-warning);
    font-weight: 600;
}

.expiry-info.expired {
    color: var(--status-danger);
    font-weight: 600;
}

.expiry-info.expiring {
    color: var(--status-warning);
    font-weight: 600;
}

.location-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.location-details {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

/* Inventory Preview */
.inventory-preview h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.inventory-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: var(--surface-secondary);
    border-radius: 4px;
    font-size: 13px;
}

.inventory-item .product-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.inventory-item .quantity {
    color: var(--accent-primary);
    font-weight: 600;
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

.inventory-item.more {
    justify-content: center;
    font-style: italic;
    color: var(--text-secondary);
}

/* Batch and Serial Info */
.batch-serial-info {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.batch-info,
.serial-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.batch-expiry-info {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.last-updated {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 8px;
}

.expiry-warning {
    color: #dc2626;
    font-size: 11px;
    margin-left: 6px;
}

/* ===== CUSTOMER MANAGEMENT STYLES ===== */
.customer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-info strong {
    font-size: 16px;
    color: var(--text-primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.contact-info div {
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-info i {
    width: 16px;
    color: var(--text-secondary);
    margin-right: 6px;
}

.amount {
    font-weight: 600;
    color: var(--accent-primary);
}

.view-all-link {
    text-align: center;
    margin-top: 20px;
}

.view-all-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all-link a:hover {
    text-decoration: underline;
}

/* Customer Form Styles */
.customer-form {
    max-width: 1000px;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.copy-address-btn {
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--accent-primary);
    background: none;
    border: 1px dashed var(--accent-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-address-btn:hover {
    background: var(--accent-primary);
    color: white;
}

/* ===== THRESHOLD FORM STYLING ===== */
.threshold-form {
    margin-right: 12px;
}

.threshold-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.threshold-label {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.threshold-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state.success {
    color: var(--text-primary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--accent-primary);
}

.empty-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-description {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* ===== CARD STATUS CLASSES ===== */
.stock-critical {
    border-left: 4px solid #dc2626;
}

.stock-low {
    border-left: 4px solid #f59e0b;
}

.inventory-card.critical-stock {
    border-left: 4px solid var(--status-danger);
}

.inventory-card.low-stock {
    border-left: 4px solid var(--status-warning);
}

.inventory-card.expired {
    border-left: 4px solid var(--status-danger);
}

.inventory-card.expiring-soon {
    border-left: 4px solid var(--status-warning);
}

/* ===== UTILITY CLASSES ===== */
/* Container utilities */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mt-8 { margin-top: 2rem; }

/* Flexbox utilities */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Text utilities */
.text-white { color: white; }
.text-xl { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-danger { color: #dc2626; }
.text-success { color: #059669; }
.text-warning { color: #d97706; }
.text-muted { color: var(--text-secondary); }
.text-end { text-align: right; }

/* Background utilities */
.bg-blue-600 { background-color: #2563eb; }
.bg-gray-800 { background-color: #1f2937; }

/* Height utilities */
.h-16 { height: 4rem; }

/* Shadow utilities */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Hover utilities */
.hover\:text-blue-200:hover { color: #bfdbfe; }
.hover\:text-blue-300:hover { color: #93c5fd; }

/* Display utilities */
.d-inline { display: inline; }

/* Margin utilities */
.me-2 { margin-right: 8px; }
.mb-3 { margin-bottom: 12px; }

/* Tailwind Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Color utilities */
.text-blue-400 { color: #60a5fa; }
.text-blue-300 { color: #93c5fd; }

/* Border radius */
.rounded-md { border-radius: 0.375rem; }

/* Fade animation */
.fade.show { opacity: 1; }

/* ===== DATATABLES STYLING ===== */
.dataTables_wrapper {
    width: 100%;
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-primary);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 6px 12px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    border-radius: 6px;
    margin: 0 2px;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--accent-primary) !important;
    color: white !important;
    border-color: var(--accent-primary);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent-primary) !important;
    color: white !important;
    border-color: var(--accent-primary);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Data table styling */
.data-table {
    width: 100% !important;
    background: var(--bg-primary);
    border-collapse: collapse;
    margin: 0;
}

.data-table thead th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.data-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Override DataTables default styles */
table.dataTable {
    border-collapse: collapse !important;
}

table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 2px solid var(--border-color) !important;
}

table.dataTable tbody th,
table.dataTable tbody td {
    border-top: none !important;
}

/* ===== ENHANCED INVENTORY FEATURES ===== */
.page-size-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.page-size-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    background: var(--accent-primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bulk-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulk-actions-buttons {
    display: flex;
    gap: 0.5rem;
}

.bulk-action {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.bulk-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Location Details Expansion */
.expand-locations {
    width: 100%;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: none;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.expand-locations:hover {
    background: var(--bg-tertiary);
}

.expand-locations.expanded {
    background: var(--accent-primary);
    color: white;
}

.expand-locations.expanded i {
    transform: rotate(180deg);
}

.locations-list {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.location-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.location-item:last-child {
    border-bottom: none;
}

.location-item.expired {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--status-danger);
}

.location-item.expiring {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--status-warning);
}

.location-item.critical {
    background: rgba(239, 68, 68, 0.1);
}

.location-item.low {
    background: rgba(245, 158, 11, 0.1);
}

.location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

/* Enhanced List View */
.inventory-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
    background-color: var(--bg-primary);
}

.inventory-table thead th {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.inventory-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.inventory-table tbody tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

.inventory-table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

.inventory-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--text-primary);
}

.checkbox-column {
    width: 40px;
    text-align: center;
}

.expand-column {
    width: 30px;
    text-align: center;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: transform 0.15s ease-in-out;
}

.expand-btn.expanded i {
    transform: rotate(90deg);
}

/* Table Row Status Classes */
.product-row.critical-stock {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent) !important;
    border-left: 3px solid var(--status-danger);
}

.product-row.low-stock {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent) !important;
    border-left: 3px solid var(--status-warning);
}

.product-row.expired {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent) !important;
}

.product-row.expiring-soon {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent) !important;
}

.location-row.expired {
    background: rgba(239, 68, 68, 0.1) !important;
}

.location-row.expiring {
    background: rgba(245, 158, 11, 0.1) !important;
}

.location-indent {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

/* Selection States */
.inventory-card.selected,
.product-row.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), var(--bg-primary));
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Loading and Animation States */
.expand-locations i,
.expand-btn i {
    transition: transform 0.2s ease-in-out;
}

/* ===== RESPONSIVE DESIGN RULES ===== */
@media (max-width: 1440px) {
    .inventory-page,
    .user-management-page {
        max-width: 100%;
        padding: 16px;
    }
}

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .inventory-header,
    .user-management-header {
        flex-direction: column;
        gap: 16px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .page-actions {
        width: 100%;
    }

    /* Search responsive styles */
    .search-input-group {
        max-width: 100%;
    }

    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .search-btn {
        padding: 12px 16px;
    }

    /* Advanced search responsive styles */
    .search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-group {
        width: 100%;
    }

    .search-input {
        min-width: auto;
    }

    .search-group .search-input,
    .filter-select {
        font-size: 16px; /* Prevent zoom on iOS */
        width: 100%;
    }

    .search-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .search-form {
        min-width: auto;
    }

    .search-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-actions-inline {
        margin-left: 0;
        justify-content: center;
    }

    .filter-row {
        flex-direction: column;
        gap: 12px;
    }

    .filter-section {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        min-width: auto;
        max-width: none;
    }

    .filter-actions {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .view-toggle {
        align-self: flex-end;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .inventory-grid,
    .products-grid,
    .users-grid,
    .customers-grid,
    .locations-grid,
    .movements-grid {
        grid-template-columns: 1fr;
    }

    .location-inventory-grid {
        grid-template-columns: 1fr;
    }

    /* Card responsive adjustments */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .inventory-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .customer-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .customer-type {
        margin-left: 0;
    }

    .location-stats {
        margin-left: 0;
        width: 100%;
    }

    .location-structure {
        grid-template-columns: 1fr;
    }

    /* Status and stats responsive */
    .supplier-stats,
    .customer-stats {
        flex-direction: column;
        gap: 10px;
    }

    .customer-stats {
        gap: 16px;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .stat-value {
        margin-bottom: 0;
    }

    /* Product details responsive styles */
    .product-details .detail-item {
        grid-template-columns: 20px 1fr;
        gap: 8px;
    }

    .detail-value {
        text-align: left;
        margin-top: 2px;
    }

    /* Enhanced inventory card responsive */
    .inventory-card .status-badges {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .inventory-card .stock-summary {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .threshold-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* DataTables responsive */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: center;
        margin-bottom: 1rem;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        margin-top: 1rem;
    }
}

/* ===== REMOVED COMPONENTS NOTE ===== */
/*
 * The following components have been moved to separate CSS files for better organization:
 *
 * 1. Button Components -> components/buttons.css
 *    - .btn, .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info
 *    - .btn-outline-* variants, .btn-sm, .btn-lg, .btn-block, .btn-icon
 *    - .btn-group and responsive button styles
 *
 * 2. Form Components -> components/forms.css
 *    - .form-container, .form-section, .form-group, .form-label
 *    - .form-control, .form-input, .form-select, .form-textarea
 *    - .input-group, .form-validation styles
 *    - .form-actions and responsive form layouts
 *
 * 3. Card Components -> components/cards.css
 *    - Basic .card, .card-header, .card-body, .card-actions
 *    - Card hover effects and standard padding
 *
 * 4. Table Components -> components/tables.css
 *    - .table, .table-responsive, .table-hover
 *    - Standard table styling and responsive behavior
 *
 * 5. Pagination Components -> components/pagination.css
 *    - .pagination, .pagination-btn, .pagination-info
 *    - Advanced pagination controls and responsive styles
 *
 * This optimization removes approximately 1,346 lines of duplicate CSS code.
 */