/* Modern Order Management System Styles */

/* Reset and Base Styles */
.opm-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

.opm-container * {
    box-sizing: border-box;
}

/* Icons */
.opm-icon {
    font-style: normal;
    margin-right: 8px;
}

/* Sections */
.opm-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.opm-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Header Styles */
.opm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.opm-header-left h2 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.opm-header-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

.opm-header-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Profile Header */
.opm-profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.opm-profile-header h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 8px;
}

.opm-profile-header p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

/* Auto-reload Toggle */
.opm-auto-reload-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.opm-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.opm-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.opm-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.opm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.opm-toggle input:checked + .opm-toggle-slider {
    background-color: #10b981;
}

.opm-toggle input:checked + .opm-toggle-slider:before {
    transform: translateX(24px);
}

.opm-toggle-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* Statistics Grid */
.opm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.opm-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.opm-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.opm-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.opm-stat-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.opm-stat-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.opm-stat-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.opm-stat-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.opm-stat-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.opm-stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.opm-stat-content h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.opm-stat-number {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Forms */
.opm-form {
    background: #f9fafb;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.opm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.opm-form-group {
    display: flex;
    flex-direction: column;
}

.opm-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.opm-form-group input,
.opm-form-group select,
.opm-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
}

.opm-form-group input:focus,
.opm-form-group select:focus,
.opm-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.opm-form-group input:required:invalid {
    border-color: #ef4444;
}

.opm-form-group input:required:valid {
    border-color: #10b981;
}

.opm-form-group input::placeholder,
.opm-form-group textarea::placeholder {
    color: #9ca3af;
}

/* Item Search Container */
.opm-item-search-container {
    position: relative;
}

.opm-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.opm-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.opm-suggestion-item:hover {
    background-color: #f9fafb;
}

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

.opm-suggestion-name {
    font-weight: 600;
    color: #1f2937;
}

.opm-suggestion-details {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Buttons */
.opm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.opm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.opm-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.opm-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.opm-btn-secondary {
    background: #6b7280;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(107, 114, 128, 0.3);
}

.opm-btn-secondary:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(107, 114, 128, 0.4);
}

.opm-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.opm-btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(239, 68, 68, 0.4);
}

.opm-btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.3);
}

.opm-btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(6, 182, 212, 0.4);
}

.opm-btn-loading {
    display: none;
}

.opm-btn.loading .opm-btn-text {
    display: none;
}

.opm-btn.loading .opm-btn-loading {
    display: inline;
}

/* Form Actions */
.opm-form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Form Sections */
.opm-form-section {
    margin-bottom: 32px;
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.opm-form-section h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Filters Section */
.opm-filters-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.opm-filters-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.opm-search-group {
    display: flex;
    flex: 1;
    min-width: 300px;
    position: relative;
}

.opm-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.opm-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.opm-search-btn {
    padding: 12px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.opm-search-btn:hover {
    background: #1d4ed8;
}

.opm-filter-group {
    display: flex;
    align-items: center;
}

.opm-filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opm-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Orders Table */
.opm-orders-table-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.opm-orders-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

.opm-orders-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.opm-orders-table th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #374151;
    font-weight: 700;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.opm-orders-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    max-width: 200px;
    word-wrap: break-word;
}

.opm-orders-table tr:hover {
    background-color: #f9fafb;
}

.opm-orders-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.opm-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
}

.opm-status-pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.opm-status-confirmed {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #10b981;
}

.opm-status-canceled,
.opm-status-no-answer-canceled {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.opm-status-dispatched {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.opm-status-default {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    border: 1px solid #9ca3af;
}

/* Inline Editing */
.opm-inline-edit {
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 32px;
    display: inline-block;
    width: 100%;
}

.opm-inline-edit:hover {
    background-color: #f3f4f6;
    border: 2px dashed #3b82f6;
}

.opm-inline-edit.editing {
    background-color: #ffffff;
    border: 2px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.opm-inline-edit input,
.opm-inline-edit select,
.opm-inline-edit textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
}

.omp-inline-edit input:focus,
.opm-inline-edit select:focus,
.opm-inline-edit textarea:focus {
    outline: none;
}

.opm-inline-edit-hint {
    position: absolute;
    top: -32px;
    left: 0;
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.opm-inline-edit:hover .opm-inline-edit-hint {
    opacity: 1;
}

.opm-inline-edit.editing .opm-inline-edit-hint {
    display: none;
}

.opm-empty-value {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.75rem;
}

/* Pagination */
.opm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 24px;
}

.opm-pagination .opm-btn {
    padding: 8px 16px;
    min-width: auto;
    font-size: 0.875rem;
}

.opm-pagination .opm-btn.active {
    background: #3b82f6;
    color: white;
}

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

.opm-modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.opm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px 12px 0 0;
}

.opm-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
}

.opm-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.opm-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.opm-modal-body {
    padding: 32px;
}

/* Loading States */
.opm-loading {
    text-align: center;
    padding: 48px;
    color: #6b7280;
    font-size: 1.1rem;
}

.opm-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.opm-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts */
.opm-alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-weight: 500;
    border-left: 4px solid;
}

.opm-alert-success {
    color: #065f46;
    background-color: #d1fae5;
    border-color: #10b981;
}

.opm-alert-error {
    color: #991b1b;
    background-color: #fee2e2;
    border-color: #ef4444;
}

.opm-alert-info {
    color: #1e40af;
    background-color: #dbeafe;
    border-color: #3b82f6;
}

.opm-alert-warning {
    color: #92400e;
    background-color: #fef3c7;
    border-color: #f59e0b;
}

/* Login Notice */
.opm-login-notice {
    text-align: center;
    padding: 48px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.opm-login-notice p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

/* Admin Styles */
.opm-admin-wrap {
    background: #f8fafc;
    min-height: 100vh;
    padding: 20px;
}

.opm-admin-header {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.opm-admin-header h1 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 2.25rem;
    font-weight: 700;
}

.opm-admin-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

.opm-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.opm-admin-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.opm-admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.opm-admin-controls {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.opm-admin-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.opm-admin-section {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.opm-admin-section h2 {
    margin: 0 0 24px 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
}

.opm-recent-table {
    margin-top: 16px;
}

.opm-recent-table th,
.opm-recent-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.opm-recent-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.opm-no-orders {
    text-align: center;
    padding: 48px;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .opm-container {
        padding: 16px;
    }
    
    .opm-section {
        padding: 24px;
    }
    
    .opm-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .opm-header-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .opm-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .opm-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .opm-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .opm-search-group {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .opm-container {
        padding: 12px;
    }
    
    .opm-section {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .opm-header-left h2 {
        font-size: 1.75rem;
    }
    
    .opm-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .opm-stat-card {
        padding: 20px;
        gap: 16px;
    }
    
    .opm-stat-icon {
        font-size: 2rem;
    }
    
    .opm-stat-number {
        font-size: 1.5rem;
    }
    
    .opm-orders-table {
        min-width: 1200px;
        font-size: 0.75rem;
    }
    
    .opm-orders-table th,
    .opm-orders-table td {
        padding: 12px 8px;
    }
    
    .opm-form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .opm-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .opm-modal-body {
        padding: 24px;
    }
    
    .opm-pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .opm-container {
        padding: 8px;
    }
    
    .opm-section {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .opm-header-left h2 {
        font-size: 1.5rem;
    }
    
    .opm-header-subtitle {
        font-size: 1rem;
    }
    
    .opm-stat-card {
        padding: 16px;
        gap: 12px;
    }
    
    .opm-stat-icon {
        font-size: 1.75rem;
    }
    
    .opm-stat-number {
        font-size: 1.25rem;
    }
    
    .opm-orders-table {
        min-width: 1000px;
        font-size: 0.7rem;
    }
    
    .opm-orders-table th,
    .opm-orders-table td {
        padding: 10px 6px;
    }
    
    .opm-form {
        padding: 20px;
    }
    
    .opm-form-row {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .opm-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* Animation Classes */
.slide-down {
    animation: slideDown 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

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

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

/* Scroll Indicator */
.opm-scroll-indicator {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 0.75rem;
    color: #6b7280;
    display: none;
    font-weight: 500;
}

.opm-scroll-indicator.show {
    display: block;
}

/* Print Styles */
@media print {
    .opm-header-controls,
    .opm-filters-section,
    .opm-pagination,
    .opm-btn,
    .opm-modal {
        display: none !important;
    }
    
    .opm-container {
        background: white;
        box-shadow: none;
    }
    
    .opm-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .opm-orders-table {
        font-size: 0.7rem;
    }
    
    .opm-orders-table th,
    .opm-orders-table td {
        padding: 8px 4px;
    }
}