/* ========================================
   SILVA ADMIN TEMPLATE
   White Sidebar, Modern Design
   
   ИЗМЕНЕНИЯ:
   - Добавлена кнопка создания клиента в header (иконка 38px)
   - Добавлены стили для модальных окон создания клиентов
   - Стили для полей в модальных окнах (фон #fafafa, без рамки)
   - Стили для блоков в международной форме (белый фон, рамка #d0d0d0)
======================================== */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== LOADING SPINNER - Silva Style ========== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.loading-spinner-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ========== EMPTY STATE - Silva Style ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 0.75rem;
}

.empty-state-icon {
    width: 3rem;
    height: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

:root {
    /* Silva Primary - teal/бирюзовый */
    --primary: #287f71;
    --primary-hover: #1f6a5e;
    --primary-light: rgba(40, 127, 113, 0.1);
    
    /* Status Colors */
    --success: #1cc88a;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --info: #36b9cc;
    
    /* Sidebar - бирюзовый #1f6a5e */
    --sidebar-bg: #1f6a5e;
    --sidebar-text: rgba(255, 255, 255, 0.7);
    --sidebar-text-active: #ffffff;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-border: rgba(255, 255, 255, 0.15);
    
    /* Content Colors */
    --bg-body: #f8f9fc;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    
    /* Text Colors */
    --text-primary: #5a5c69;
    --text-dark: #3a3b45;
    --text-secondary: #858796;
    --text-muted: #b7b9cc;
    --text-inverse: #ffffff;
    
    /* Borders */
    --border-color: #e3e6f0;
    --border-light: #eaecf4;
    
    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    
    /* Radius */
    --radius-sm: 0.2rem;
    --radius: 0.35rem;
    --radius-lg: 0.5rem;
    --radius-pill: 10rem;
    
    /* Shadows - Silva style */
    --shadow-sm: 0 0.125rem 0.25rem 0 rgba(58, 59, 69, 0.2);
    --shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Layout */
    --sidebar-width: 14rem;
    --header-height: 4.375rem;
}

/* ========== OPERATOR PRODUCT/COMBO CARDS ========== */
.operator-product-card {
    /* Silva style: компактная карточка товара, max 46rem (~736px) */
    max-width: min(46rem, 95vw) !important;
    padding: 0 !important;
}

.operator-card-body {
    padding: 0 !important;
    display: flex;
    min-height: 380px;
}

.operator-card-image-section {
    width: 280px;
    background: var(--bg-light);
    position: relative;
    padding: 32px;
}

.operator-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.operator-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.operator-image-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 70px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.3;
}

.operator-badge {
    position: absolute;
    height: 32px;
    padding: 0 12px;
    border-radius: 16px;
    background: rgba(40, 127, 113, 0.14);
    border: 1px solid rgba(40, 127, 113, 0.22);
    display: none;
    align-items: center;
    box-shadow: none;
    z-index: 10;
}

.operator-badge span {
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
    font-family: var(--font-family);
}

.operator-badge-category {
    top: 24px;
    left: 24px;
}

.operator-badge-unit {
    top: -14px;
    right: 16px;
    height: 28px;
    opacity: 0.9;
}

.operator-card-info-section {
    flex: 1;
    background: var(--bg-white);
    padding: 24px;
}

.operator-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 14px;
}

.operator-product-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    font-family: var(--font-family);
}

.operator-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.operator-price-label {
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-family: var(--font-family);
}

.operator-price-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.operator-price-amount {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary);
    font-family: var(--font-family);
}

.operator-price-currency {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    font-family: var(--font-family);
}

.operator-price-request {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-family);
}

.operator-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.operator-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.operator-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.operator-info-row {
    display: flex;
    gap: 8px;
}

.operator-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.operator-info-icon svg {
    width: 16px;
    height: 16px;
}

.operator-icon-company {
    background: var(--primary-light);
}

.operator-icon-generic {
    background: rgba(54, 185, 204, 0.1);
    color: var(--info);
}

.operator-info-content {
    flex: 1;
}

.operator-info-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-family: var(--font-family);
}

.operator-info-value {
    font-size: 0.8125rem;
    color: var(--text-dark);
    word-wrap: break-word;
    font-family: var(--font-family);
}

.operator-info-value.operator-warning {
    font-weight: 500;
    color: var(--warning);
}

.operator-combo-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.operator-combo-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.operator-combo-item {
    padding: 8px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.operator-combo-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
    word-wrap: break-word;
    font-family: var(--font-family);
}

.operator-combo-item-generic {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: 4px;
    word-wrap: break-word;
    font-family: var(--font-family);
}

.operator-combo-item-qty {
    display: flex;
    gap: 6px;
    align-items: center;
}

.operator-combo-item-qty-label {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-family);
}

.operator-combo-item-qty-value {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--primary);
    font-family: var(--font-family);
}

