/* Модульная дизайн-система ERP Лавка Снов (Shopify Polaris / Airtable Grid) */
.erp-shell { background-color: #F4F4F5; color: #18181B; font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif; }
        .erp-card { background: #FFFFFF; border: 1px solid #E4E4E7; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
        .erp-section-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #F4F4F5; }
        .erp-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #18181B; }
        .erp-field { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
        .erp-label { height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 700; color: #52525B; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .erp-input, .erp-select { height: 36px; width: 100%; padding: 0 10px; border-radius: 8px; border: 1px solid #D4D4D8; background-color: #FFFFFF; color: #18181B; font-size: 12px; font-weight: 600; outline: none; transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; }
        .erp-input:focus, .erp-select:focus { border-color: #18181B; box-shadow: 0 0 0 2px rgba(24,24,27,0.08); }
        .erp-btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #D4D4D8; background: #FFFFFF; color: #18181B; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
        .erp-btn:hover { background: #F4F4F5; border-color: #A1A1AA; }
        .erp-btn-primary { height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid #18181B; background: #18181B; color: #FFFFFF; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
        .erp-btn-primary:hover { background: #27272A; }
        .erp-btn-primary:disabled, .erp-btn:disabled { opacity: 0.45; cursor: not-allowed; }
        .erp-link-btn { font-size: 11px; font-weight: 700; color: #18181B; text-decoration: underline; cursor: pointer; white-space: nowrap; }
        .erp-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
        .erp-table thead th { background: #FAFAFA; border-bottom: 1px solid #E4E4E7; border-right: 1px solid #F4F4F5; padding: 10px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: #52525B; white-space: nowrap; }
        .erp-table tbody td { padding: 8px 12px; border-bottom: 1px solid #F4F4F5; border-right: 1px solid #F4F4F5; vertical-align: middle; }
        .erp-table tbody tr:hover { background-color: #FAFAFA; }
        .erp-cell-input { width: 100%; height: 30px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 12px; font-weight: 600; color: #18181B; outline: none; transition: all 0.12s; }
        .erp-cell-input:hover { border-color: #D4D4D8; background: #FFFFFF; }
        .erp-cell-input:focus { border-color: #18181B; background: #FFFFFF; box-shadow: 0 0 0 2px rgba(24,24,27,0.08); }
        .erp-mini-num { width: 52px !important; min-width: 52px !important; max-width: 52px !important; height: 30px !important; padding: 0 4px !important; text-align: center; font-weight: 800; border: 1px solid #D4D4D8; border-radius: 6px; background: #FFFFFF; }
        .erp-mini-price { width: 82px !important; min-width: 82px !important; max-width: 82px !important; height: 30px !important; padding: 0 6px !important; text-align: right; font-weight: 800; border: 1px solid #D4D4D8; border-radius: 6px; background: #FFFFFF; }


/* Мобильная и планшетная адаптивность ERP Polaris и Витрины (Этап 2 ТЗ) */
@media (max-width: 1024px) {
    .erp-shell aside {
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 0;
        z-index: 60;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    }
    .erp-card {
        overflow-x: auto;
    }
}
@media (max-width: 640px) {
    .erp-table thead th,
    .erp-table tbody td {
        padding: 6px 8px;
        font-size: 11px;
    }
    .erp-btn, .erp-btn-primary {
        height: 34px;
        padding: 0 10px;
        font-size: 11px;
    }
}
