.product-table-container{background:#fff;border-radius:12px;box-shadow:0 12px 30px #0f172a1a;display:flex;flex-direction:column;height:calc(100vh - 260px);min-height:360px;overflow:hidden}.product-table-scroll{flex:1;overflow:auto;background:linear-gradient(to right,#0f172a0a,#0f172a05)}.product-table-grid{width:100%;border-collapse:collapse;min-width:960px;table-layout:fixed}.product-table-grid .sticky-col{background:#f8fafc}.product-table-grid .nm-cell,.product-table-grid .vendor-cell{font-weight:600;color:#1f2937}.product-table-grid .nm-header,.product-table-grid .nm-cell,.product-table-grid .vendor-header,.product-table-grid .vendor-cell{width:150px}.product-table-grid .warehouse-header,.product-table-grid .warehouse-cell{width:200px}.product-table-grid .title-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px;color:#1e293b}.product-table-grid .barcode-cell,.product-table-grid .package-cell,.product-table-grid .pcs-pack-cell,.product-table-grid .warehouse-cell{color:#475569}.product-table-grid .vendor-total,.product-table-grid .vendor-days{text-align:center;font-weight:600;color:#0f172a;background:#f8fafc;width:110px}.product-table-grid tbody tr:nth-child(2n){background:#f8fafc80}.product-table-grid tbody tr:hover{background:#e2e8f073}.product-table-grid tbody tr:hover .sticky-col{background:#e2e8f0cc}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem;background:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a}.spinner{width:3rem;height:3rem;border:3px solid #e2e8f0;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}.loading-container p{margin-top:1rem;color:#718096}.error-container{padding:2rem;background:#fff5f5;border:1px solid #feb2b2;border-radius:.5rem;text-align:center}.error-message{color:#c53030;margin:0}.empty-state{padding:4rem;text-align:center;background:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a}.empty-state p{color:#718096;margin:0}@media (max-width: 1024px){.product-table-container{height:calc(100vh - 220px)}}@media (max-width: 768px){.product-table-container{height:calc(100vh - 200px);min-height:300px}}.product-table-grid .pcs-pack-header,.product-table-grid .pcs-pack-cell{text-align:center}.supplies-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:24px}.supplies-modal{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0f172a40;max-width:720px;width:100%;max-height:min(80vh,640px);display:flex;flex-direction:column;overflow:hidden}.supplies-modal__header{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 24px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.supplies-modal__header h2{margin:0;font-size:1.1rem;color:#1e293b}.supplies-modal__subtitle{margin:4px 0 0;color:#475569;font-size:.85rem}.supplies-modal__close{border:none;background:transparent;font-size:1.5rem;line-height:1;cursor:pointer;color:#64748b;padding:0 4px}.supplies-modal__close:hover{color:#334155}.supplies-modal__totals{display:flex;gap:16px;padding:12px 24px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}.supplies-modal__totals .label{font-size:.8rem;color:#475569}.supplies-modal__totals .value{font-size:.9rem;color:#0f172a;font-weight:600;margin-left:4px}.supplies-modal__body{padding:16px 24px 24px;overflow:auto;flex:1}.supplies-modal__table{width:100%;border-collapse:collapse;font-size:.85rem}.supplies-modal__table th,.supplies-modal__table td{border:1px solid #e2e8f0;padding:8px 10px;text-align:left;white-space:nowrap}.supplies-modal__table th{background:#f8fafc;color:#0f172a;font-weight:600}.supplies-modal__table td{color:#1f2937}.supplies-modal__table tbody tr:nth-child(2n){background:#f9fafb}.supplies-modal__empty{padding:32px 0;text-align:center;color:#64748b;font-size:.9rem}@media (max-width: 640px){.supplies-modal{padding:0;max-height:90vh}.supplies-modal__header,.supplies-modal__totals,.supplies-modal__body{padding-left:16px;padding-right:16px}}.statistics-container{padding:2rem}.period-info{text-align:center;margin-bottom:2rem}.period-info h3{margin:0 0 .5rem;color:#2d3748;font-size:1.25rem}.period-info p{margin:0;color:#718096;font-size:1.1rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.stat-card{background:#fff;border-radius:.5rem;padding:1.5rem;box-shadow:0 1px 3px #0000001a;display:flex;align-items:center;gap:1rem;transition:transform .2s,box-shadow .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 6px #0000001a}.stat-icon{font-size:2.5rem;flex-shrink:0}.stat-content{flex:1}.stat-value{font-size:1.75rem;font-weight:700;color:#2d3748;line-height:1}.stat-label{color:#718096;font-size:.875rem;margin-top:.25rem}.dashboard{display:grid;grid-template-areas:"topbar topbar" "sidebar filters" "sidebar content";grid-template-columns:60px 1fr;grid-template-rows:50px auto 1fr;min-height:100vh;background-color:#f5f7fa;padding:0}.dashboard.cost-analysis-mode{grid-template-areas:"topbar topbar" "sidebar content" "sidebar content";grid-template-rows:50px 1fr}.top-bar{grid-area:topbar;height:50px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;box-shadow:0 2px 4px #0000001a;z-index:1000}.top-bar-left{display:flex;align-items:center;gap:20px}.app-title{margin:0;font-size:1.1rem;font-weight:600;white-space:nowrap}.top-bar-right{display:flex;align-items:center}.filters-bar{grid-area:filters;display:flex;gap:20px;align-items:center;background:#fff;padding:15px 20px;border-bottom:1px solid #e9ecef;box-shadow:0 1px 3px #0000000d;overflow-x:auto}.filter-group{display:flex;align-items:center;gap:8px;white-space:nowrap}.filter-label{font-size:.85rem;color:#4a5568;font-weight:500;display:flex;align-items:center;gap:6px}.filter-input{padding:6px 10px;border:1px solid #e2e8f0;border-radius:4px;font-size:.9rem;transition:border-color .2s;min-width:0}.filter-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.filter-date{width:140px}.filter-select{width:150px}.filter-text{width:130px}.filter-number{width:100px}.date-input-group{display:flex;flex-direction:column;gap:.5rem}.date-input-group label{font-size:.9rem;color:#4a5568;font-weight:500}.date-input-group input{padding:.5rem 1rem;border:2px solid #e2e8f0;border-radius:.375rem;font-size:1rem;transition:border-color .2s}.date-input-group input:focus{outline:none;border-color:#667eea}.left-sidebar{grid-area:sidebar;width:60px;background:#f8f9fa;border-right:1px solid #e9ecef;display:flex;flex-direction:column;gap:10px;padding:15px 10px;overflow-y:visible;overflow-x:visible;position:relative;z-index:20}.sidebar-button-container{position:relative;display:flex;justify-content:center}.export-options{position:absolute;left:55px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:6px;padding:8px;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:1200}.export-option-button{width:36px;height:36px;border:none;border-radius:6px;background:#f8fafc;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1rem;transition:all .2s ease}.export-option-button:hover{background:#667eea;color:#fff;transform:translateY(-1px)}.sidebar-button{width:40px;height:40px;border:none;border-radius:8px;background:#fff;box-shadow:0 2px 4px #0000001a;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;position:relative}.sidebar-button:hover:not(.disabled){transform:translateY(-1px);box-shadow:0 4px 8px #00000026;background:#667eea}.sidebar-button:hover:not(.disabled) .button-icon{filter:grayscale(1) brightness(0) invert(1)}.sidebar-button.disabled{opacity:.4;cursor:not-allowed;background:#f1f3f4}.button-icon{font-size:1.1rem;transition:filter .2s}.sidebar-tooltip{position:absolute;left:50px;top:50%;transform:translateY(-50%);background:#2d3748;color:#fff;padding:6px 10px;border-radius:4px;font-size:.8rem;white-space:nowrap;z-index:1000;pointer-events:none;opacity:0;animation:tooltipFadeIn .2s forwards}.sidebar-tooltip:before{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:4px solid transparent;border-right-color:#2d3748}@keyframes tooltipFadeIn{0%{opacity:0;transform:translateY(-50%) translate(-5px)}to{opacity:1;transform:translateY(-50%) translate(0)}}.main-content{grid-area:content;padding:20px;overflow-y:auto;background:#f5f7fa;position:relative}.main-content.loading-overlay{pointer-events:none}.main-content-loading{position:absolute;top:0;left:0;right:0;bottom:0;background:#f5f7faf2;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.main-loading-spinner{width:50px;height:50px;border:4px solid #e2e8f0;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:15px}.main-loading-text{color:#4a5568;font-size:1.1rem;font-weight:500;margin:0;text-align:center}.table-section{background:#fff;border-radius:8px;padding:20px;box-shadow:0 1px 3px #0000001a;margin-top:20px}.table-section h2{margin:0 0 20px;font-size:1.3rem;color:#2d3748;font-weight:600}.export-button{margin-left:8px;padding:6px 12px;font-size:.9rem;cursor:pointer;border:1px solid #888;background:#fff;border-radius:4px}.export-button:disabled{opacity:.5;cursor:not-allowed}.refresh-button{padding:.5rem 1.5rem;background:#667eea;color:#fff;border:none;border-radius:.375rem;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s}.refresh-button:hover:not(:disabled){background:#5a67d8;transform:translateY(-1px)}.refresh-button:disabled{opacity:.6;cursor:not-allowed}.marketplace-dropdown{position:relative;display:inline-block}.marketplace-dropdown-trigger{display:flex;align-items:center;gap:8px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s;min-width:140px}.marketplace-dropdown-trigger:hover{background:#ffffff26}.marketplace-icon{font-size:.9rem}.marketplace-label{flex:1;text-align:left}.dropdown-arrow{font-size:.7rem;transition:transform .2s}.dropdown-arrow.open{transform:rotate(180deg)}.marketplace-dropdown-menu{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1001;overflow:hidden;margin-top:2px}.marketplace-dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:none;background:none;color:#2d3748;cursor:pointer;font-size:.9rem;transition:background-color .2s;text-align:left}.marketplace-dropdown-item:hover{background-color:#f7fafc}.marketplace-dropdown-item.active{background-color:#667eea;color:#fff}.scheduled-report-button{margin-left:8px;padding:6px 12px;font-size:.9rem;cursor:pointer;border:1px solid #888;background:#fff;border-radius:4px}.scheduled-report-button:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 768px){.dashboard{grid-template-areas:"topbar" "filters" "content";grid-template-columns:1fr;grid-template-rows:50px auto 1fr}.left-sidebar{display:none}.filters-bar{flex-direction:column;align-items:stretch;gap:15px;padding:15px}.filter-group{justify-content:space-between}.filter-label{flex-direction:column;align-items:stretch;gap:4px}.filter-input{width:100%}.app-title{font-size:1rem}.top-bar{padding:0 15px}.main-content{padding:15px}}@media (max-width: 480px){.top-bar-left{gap:10px}.app-title{font-size:.9rem}.marketplace-dropdown-trigger{min-width:100px;padding:4px 8px;font-size:.8rem}.table-section{padding:15px;margin-top:15px}.table-section h2{font-size:1.1rem}}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.marketplace-dropdown-menu{animation:slideIn .2s ease-out}.sidebar-button:focus,.marketplace-dropdown-trigger:focus,.filter-input:focus{outline:2px solid #667eea;outline-offset:2px}.sidebar-button.loading{position:relative;background:#667eea!important;color:#fff}.button-loading-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.cost-to-sell-container{width:100%}.cost-to-sell-promotions{margin-top:24px;background:#fff;border-radius:12px;box-shadow:0 12px 30px #0f172a12;padding:20px}.cost-to-sell-promotions h3{margin:0 0 12px;font-size:1.05rem;font-weight:600;color:#1f2937}.cost-to-sell-table-wrapper{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:8px;box-shadow:0 2px 4px #0000001a;background:#fff;margin-top:20px;background-image:linear-gradient(to right,#fff,#fff),linear-gradient(to right,#fff,#fff),linear-gradient(to right,rgba(0,0,0,.25),transparent),linear-gradient(to left,rgba(0,0,0,.25),transparent);background-position:left center,right center,left center,right center;background-repeat:no-repeat;background-size:20px 100%,20px 100%,10px 100%,10px 100%;background-attachment:local,local,scroll,scroll}.cost-analysis-filters{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px}.cost-analysis-compact-filters{background:#fff;padding:12px 20px;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;min-height:50px;max-height:50px}.compact-filters-left{display:flex;align-items:center;gap:8px}.compact-filters-right{display:flex;align-items:center;gap:12px}.compact-date-field{padding:6px 10px;border:1px solid #e2e8f0;border-radius:4px;font-size:.85rem;transition:border-color .2s;width:130px}.compact-date-field:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.date-separator{color:#718096;font-weight:500;margin:0 4px}.compact-refresh-button{padding:6px 12px;background:#667eea;color:#fff;border:none;border-radius:4px;font-size:.9rem;cursor:pointer;transition:all .2s;min-width:32px;height:32px;display:flex;align-items:center;justify-content:center}.compact-refresh-button:hover:not(:disabled){background:#5a67d8;transform:translateY(-1px)}.compact-refresh-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.compact-autocomplete .autocomplete-input{padding:6px 10px;font-size:.85rem;min-width:160px;height:32px;border-radius:4px}.compact-profit-filter{padding:6px 10px;border:1px solid #e2e8f0;border-radius:4px;font-size:.85rem;transition:border-color .2s;min-width:160px;height:32px;background:#fff;cursor:pointer}.compact-profit-filter:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.compact-days-filter,.compact-sales-filter{padding:6px 10px;border:1px solid #e2e8f0;border-radius:4px;font-size:.85rem;transition:border-color .2s;min-width:140px;height:32px;background:#fff;cursor:text}.compact-days-filter:focus,.compact-sales-filter:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.compact-days-filter::placeholder,.compact-sales-filter::placeholder{color:#a0aec0;font-style:italic}.cost-filter-group{display:flex;flex-direction:column;gap:10px}.cost-filter-label{font-size:1rem;font-weight:600;color:#2d3748;margin-bottom:8px}.cost-date-range{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.cost-date-input{display:flex;align-items:center;gap:8px}.cost-date-input label{font-size:.9rem;color:#4a5568;font-weight:500;min-width:25px}.cost-date-field{padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem;transition:border-color .2s;min-width:140px}.cost-date-field:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.cost-refresh-button{padding:8px 16px;background:#667eea;color:#fff;border:none;border-radius:6px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:6px}.cost-refresh-button:hover:not(:disabled){background:#5a67d8;transform:translateY(-1px)}.cost-refresh-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.cost-filters-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.cost-filter-input{display:flex;align-items:center;gap:8px}.cost-filter-input label{font-size:.9rem;color:#4a5568;font-weight:500;min-width:80px}.cost-filter-field{padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem;transition:border-color .2s;min-width:160px}.cost-filter-field:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.autocomplete-container{position:relative;display:inline-block}.autocomplete-input{padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem;transition:border-color .2s;min-width:160px;width:100%}.autocomplete-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.autocomplete-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-top:none;border-radius:0 0 6px 6px;box-shadow:0 4px 12px #0000001a;max-height:200px;overflow-y:auto;z-index:1000}.autocomplete-option{padding:8px 12px;cursor:pointer;font-size:.9rem;border-bottom:1px solid #f7fafc}.autocomplete-option:hover{background-color:#f7fafc}.autocomplete-option:last-child{border-bottom:none}.autocomplete-more{padding:8px 12px;font-size:.8rem;color:#718096;font-style:italic;background-color:#f7fafc}.filter-autocomplete-container{position:relative;display:inline-block;width:100%}.filter-autocomplete-input{width:100%;padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem;transition:border-color .2s;background:#fff}.filter-autocomplete-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.filter-autocomplete-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-top:none;border-radius:0 0 6px 6px;box-shadow:0 4px 12px #0000001a;max-height:200px;overflow-y:auto;z-index:1000}.filter-autocomplete-option{padding:8px 12px;cursor:pointer;font-size:.9rem;border-bottom:1px solid #f7fafc}.filter-autocomplete-option:hover{background-color:#f7fafc}.filter-autocomplete-option:last-child{border-bottom:none}.filter-autocomplete-option.all-option{font-weight:600;color:#667eea;background-color:#f7fafc}.filter-autocomplete-option.all-option:hover{background-color:#edf2f7}.filter-autocomplete-more{padding:8px 12px;font-size:.8rem;color:#718096;font-style:italic;background-color:#f7fafc}.cost-to-sell-stats{display:flex;gap:20px;margin-bottom:30px;flex-wrap:wrap}.cost-to-sell-stats .stat-card{flex:1;min-width:200px;background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:flex;align-items:center;gap:15px}.cost-to-sell-stats .stat-icon{font-size:2rem;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#f7fafc;border-radius:50%}.cost-to-sell-stats .stat-content{flex:1}.cost-to-sell-stats .stat-value{font-size:1.8rem;font-weight:700;color:#2d3748;margin-bottom:4px}.cost-to-sell-stats .stat-label{font-size:.9rem;color:#718096;font-weight:500}.cost-to-sell-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 4px #0000001a;min-width:1200px;font-size:.85rem}.cost-to-sell-table th{background:#f7fafc;color:#4a5568;font-weight:600;padding:12px 8px;text-align:left;font-size:.8rem;border-bottom:2px solid #e2e8f0;white-space:nowrap;position:sticky;top:0;z-index:10}.cost-to-sell-table td{padding:10px 8px;border-bottom:1px solid #e2e8f0;font-size:.8rem;vertical-align:top}.cost-to-sell-table tbody tr:hover{background-color:#f7fafc}.cost-to-sell-table tbody tr:last-child td{border-bottom:none}.supplier-article{font-weight:600;color:#4a5568;min-width:90px;max-width:110px;word-break:break-word;background-color:#fafbfc;border-right:1px solid #e2e8f0}.nm-id{font-family:Courier New,monospace;color:#667eea;font-weight:500}.title{min-width:150px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.price,.discounted-price,.cost,.profit{text-align:right;font-weight:600;font-family:Courier New,monospace;min-width:80px;max-width:100px}.expense-column{white-space:nowrap;min-width:90px}.finance-cell{min-width:160px;max-width:220px}.finance-toggle{width:100%;border:1px solid transparent;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:6px 4px;border-radius:6px;color:inherit;font:inherit;transition:border-color .2s ease,background-color .2s ease}.finance-toggle:hover,.finance-toggle:focus-visible{border-color:#cbd5f5;background-color:#edf2ff;outline:none}.finance-toggle-icon{font-size:.75rem;color:#4a5568}.finance-details{margin-top:8px;padding-top:8px;border-top:1px dashed #e2e8f0;display:flex;flex-direction:column;gap:4px}.finance-detail-row{display:flex;align-items:center;justify-content:space-between;font-size:.75rem;color:#4a5568}.finance-detail-label{font-weight:500}.finance-detail-value{font-family:Courier New,monospace;font-weight:600;color:#1a202c}.promo-finance-header{min-width:140px;white-space:nowrap}.promo-finance-toggle{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #cbd5f5;background:linear-gradient(90deg,#eef2ff,#e0e7ff);color:#1e1b4b;font-weight:600;padding:6px 10px;border-radius:999px;cursor:pointer;transition:transform .15s ease,box-shadow .2s ease}.promo-finance-toggle:hover,.promo-finance-toggle:focus-visible{box-shadow:0 0 0 3px #818cf859;outline:none}.promo-finance-toggle-icon{font-size:1rem;line-height:1}.promo-finance-detail-header{background:#eef2ff;color:#312e81;font-weight:600;text-align:center;min-width:120px}.promo-finance-detail-cell{text-align:right;font-family:Courier New,monospace;font-weight:600;color:#1e293b;min-width:120px}.expense-header{display:flex;align-items:center;justify-content:space-between;gap:6px}.expense-toggle{border:none;background:#edf2f7;color:#2d3748;width:24px;height:24px;border-radius:4px;cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background .2s ease}.expense-toggle:hover{background:#e2e8f0}.expense-value{text-align:right;font-weight:600;font-family:Courier New,monospace}.price{color:#718096}.discounted-price{color:#38a169}.discount,.commission-percentage{text-align:center;color:#e53e3e;font-weight:600;min-width:70px;max-width:90px}.quantity,.quantity-full,.sales-period,.days-to-zero{text-align:center;font-weight:500;min-width:60px;max-width:80px}.sales-period{color:#38a169;background:#f0fff4;font-weight:600}.days-to-zero{color:#2d3748;font-family:Courier New,monospace}.cost{color:#718096}.profit{font-weight:700;border-left:2px solid #e2e8f0;position:relative}.profit-positive{color:#38a169}.profit-negative{color:#e53e3e}.profit-zero{color:#718096}.negative-profit-row{background-color:#fed7d7}.promotion-participating-row{background-color:#48bb7880!important}.promotion-participating-row:hover{background-color:#48bb7899!important}.checkbox-cell{text-align:center;width:40px;min-width:40px;max-width:40px;padding:8px 4px!important}.checkbox-cell input[type=checkbox]{cursor:pointer;width:16px;height:16px;margin:0}.clickable-row{cursor:pointer;transition:background-color .2s ease}.clickable-row:hover{background-color:#f7fafc!important}.negative-profit-row.clickable-row:hover{background-color:#fbb6ce!important}.negative-profit-row:hover{background-color:#feb2b2}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 40px;background:#fff;border-radius:12px;box-shadow:0 4px 12px #0000001a;min-height:400px}.loading-content{text-align:center;max-width:500px}.spinner{width:50px;height:50px;border:4px solid #e2e8f0;border-top:4px solid #667eea;border-right:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:25px}.loading-title{margin:0 0 15px;font-size:1.5rem;color:#2d3748;font-weight:600}.loading-description{margin:0 0 30px;color:#718096;font-size:1rem;line-height:1.5}.loading-steps{display:flex;flex-direction:column;gap:15px;align-items:flex-start}.loading-step{display:flex;align-items:center;gap:12px;color:#a0aec0;font-size:.9rem;transition:color .3s}.loading-step.active{color:#667eea;font-weight:500}.step-icon{width:24px;height:24px;border-radius:50%;background:#e2e8f0;color:#718096;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:600;transition:all .3s}.loading-step.active .step-icon{background:#667eea;color:#fff;animation:pulse 1.5s infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 40px;background:#fff;border-radius:12px;box-shadow:0 4px 12px #0000001a;min-height:400px}.error-content{text-align:center;max-width:600px}.error-icon{font-size:4rem;margin-bottom:20px;animation:shake .6s ease-in-out}.error-title{margin:0 0 20px;font-size:1.5rem;color:#e53e3e;font-weight:600}.error-message{color:#2d3748;font-size:1.1rem;line-height:1.6;margin:0 0 25px;padding:20px;background:#fed7d7;border:1px solid #feb2b2;border-radius:8px;font-family:Courier New,monospace}.error-details{margin:20px 0;text-align:left;background:#f7fafc;border-radius:8px;overflow:hidden}.error-details summary{padding:15px 20px;background:#edf2f7;cursor:pointer;font-weight:500;color:#4a5568;border-bottom:1px solid #e2e8f0;transition:background-color .2s}.error-details summary:hover{background:#e2e8f0}.error-details-content{padding:20px;margin:0;font-family:Courier New,monospace;font-size:.9rem;line-height:1.4;color:#2d3748;background:#fff;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.retry-button{padding:12px 24px;background:#667eea;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s;margin-top:10px}.retry-button:hover{background:#5a67d8;transform:translateY(-1px);box-shadow:0 4px 8px #0003}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.empty-state{padding:60px 20px;text-align:center;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;color:#718096;font-size:1.1rem}@media (max-width: 768px){.cost-analysis-filters{padding:15px}.cost-date-range{flex-direction:column;align-items:stretch;gap:12px}.cost-date-input{justify-content:space-between}.cost-date-field{min-width:auto;flex:1}.cost-refresh-button{align-self:center;min-width:150px}.cost-analysis-compact-filters{flex-direction:column;align-items:stretch;min-height:auto;max-height:none;padding:15px;gap:12px}.compact-filters-left,.compact-filters-right{justify-content:center;flex-wrap:wrap;gap:8px}.compact-date-field{width:120px}.compact-autocomplete .autocomplete-input,.compact-profit-filter{min-width:140px}.compact-days-filter,.compact-sales-filter{min-width:120px}.cost-to-sell-stats{flex-direction:column}.cost-to-sell-stats .stat-card{min-width:auto}.cost-to-sell-table{font-size:.8rem}.cost-to-sell-table th,.cost-to-sell-table td{padding:8px 6px}.title{max-width:150px}}@media (max-width: 480px){.cost-to-sell-table{font-size:.75rem;min-width:1000px}.cost-to-sell-table th,.cost-to-sell-table td{padding:8px 4px}.cost-to-sell-table th{font-size:.75rem}.supplier-article{min-width:80px;max-width:90px}.title{min-width:120px;max-width:140px}.price,.discounted-price,.cost,.profit{min-width:70px;max-width:85px}.quantity,.quantity-full,.sales-period,.days-to-zero{min-width:50px;max-width:65px}.discount,.commission-percentage{min-width:60px;max-width:75px}.cost-to-sell-stats .stat-value{font-size:1.5rem}}.promo-analysis-table-container{width:100%;margin-top:20px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden}.promo-analysis-table-wrapper{display:flex;height:70vh;min-height:500px;position:relative}.sticky-left-pane{position:relative;flex-shrink:0;background:#f8fafc;border-right:2px solid #e2e8f0;display:flex;flex-direction:column;z-index:20}.sticky-table{flex:1;overflow:auto}.sticky-table table{width:100%;border-collapse:collapse;font-size:.85rem}.sticky-table thead{background:#f1f5f9;position:sticky;top:0;z-index:25}.sticky-table th{padding:8px 6px;font-size:.75rem;font-weight:600;color:#475569;text-align:left;border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.sticky-table .top-level-header th{height:60px!important;max-height:60px!important;min-height:60px!important}.sticky-table .second-level-header th{height:40px!important;max-height:40px!important;min-height:40px!important}.sticky-table td{padding:6px;font-size:.8rem;border-bottom:1px solid #f1f5f9;border-right:1px solid #f1f5f9;vertical-align:middle;line-height:1.2;height:32px!important;max-height:32px!important;min-height:32px!important;box-sizing:border-box;overflow:hidden}.sticky-table tbody tr{height:32px!important;max-height:32px!important;min-height:32px!important;box-sizing:border-box;overflow:hidden}.sticky-table tbody tr:hover{background-color:#f1f5f9}.resize-handle{position:absolute;top:0;right:0;width:4px;height:100%;background:#cbd5e0;cursor:col-resize;opacity:.6;transition:all .2s;z-index:30}.resize-handle:hover{background:#667eea;opacity:1}.promotions-scroll-area{flex:1;overflow:auto;background:#fff}.promotions-table{width:100%;min-width:fit-content}.promotions-table table{width:100%;border-collapse:collapse;font-size:.85rem}.promotions-table thead{background:#f8fafc;position:sticky;top:0;z-index:15}.top-level-header{border-bottom:2px solid #e2e8f0;height:60px!important;max-height:60px!important;min-height:60px!important;overflow:hidden;box-sizing:border-box}.second-level-header{height:40px!important;max-height:40px!important;min-height:40px!important;border-bottom:1px solid #e2e8f0;overflow:hidden;box-sizing:border-box}.header-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;padding:2px;text-align:center;height:100%;display:flex;align-items:center;justify-content:center}.sortable-column-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:100%;height:100%;background:transparent;border:none;color:inherit;font:inherit;cursor:pointer;border-radius:4px;padding:4px 6px;transition:background-color .2s,color .2s}.sortable-column-button:hover{background-color:#667eea14}.sortable-column-button:focus-visible{outline:2px solid rgba(102,126,234,.5);outline-offset:2px}.sortable-column-button.primary-sort{font-weight:600;color:#2d3748}.sortable-column-button.secondary-sort{color:#4a5568}.sort-indicator{font-size:.85rem;color:#a0aec0;line-height:1}.sortable-column-button.active .sort-indicator{color:#4c51bf;font-weight:600}.sort-tier-indicator{font-size:.65rem;font-weight:700;color:#4c51bf;background:#6366f11a;border-radius:999px;padding:1px 4px;line-height:1}.sortable-column-button.secondary-sort .sort-tier-indicator{background:#a0aec033;color:#718096}.promotion-header-content{display:flex;align-items:center;justify-content:center;gap:6px;padding:4px;text-align:center;height:100%;overflow:hidden}.promotion-info{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;max-width:100%}.toggle-icon{font-size:.7rem;color:#667eea;cursor:pointer;transition:transform .2s;flex-shrink:0}.promotion-name{font-weight:700;font-size:.8rem;color:#2d3748;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;text-align:center;max-width:100%}.promotion-id{font-weight:600;font-size:.75rem;color:#4a5568;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;max-width:100%}.promotion-dates{font-size:.65rem;color:#718096;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1;margin-top:2px;text-align:center;max-width:100%}.promotion-name-header{padding:8px 4px;text-align:center;cursor:pointer;transition:background-color .2s;border-left:2px solid #e2e8f0;border-right:2px solid #e2e8f0;position:relative;overflow:hidden;white-space:nowrap;height:60px!important;max-height:60px!important;min-height:60px!important;box-sizing:border-box}.promotion-name-header:hover{background-color:#edf2f7}.promotion-name-header.active{background-color:#e6fffa;border-left-color:#38b2ac}.promotion-name-header.planned{background-color:#fff5e6;border-left-color:#ed8936}.promotion-name-header.ended{background-color:#f5f5f5;border-left-color:#a0aec0;color:#718096}.second-level-header{border-bottom:1px solid #e2e8f0}.metric-header{padding:6px 4px;font-size:.7rem;font-weight:600;color:#4a5568;text-align:center;border-right:1px solid #e2e8f0;white-space:nowrap;height:40px!important;max-height:40px!important;min-height:40px!important;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.metric-header.target-discount{background-color:#fef2e6;color:#c05621}.metric-header.target-price{background-color:#e6f7ff;color:#1890ff}.metric-header.target-profit{background-color:#f0fff4;color:#38a169}.promotions-table tbody td{padding:6px;font-size:.8rem;border-bottom:1px solid #f1f5f9;border-right:1px solid #f1f5f9;vertical-align:middle;line-height:1.2;height:32px!important;max-height:32px!important;min-height:32px!important;box-sizing:border-box;overflow:hidden;text-align:center;white-space:nowrap}.promotions-table tbody tr{height:32px!important;max-height:32px!important;min-height:32px!important;box-sizing:border-box;overflow:hidden}.promotions-table tbody tr:hover{background-color:#f1f5f9}.empty-cell{color:#cbd5e0;font-style:italic}.in-action{font-weight:600;background-color:#e6fffa!important;border:1px solid #81e6d9}.not-in-action{opacity:.7;background-color:#f7fafc}.target-discount.in-action{color:#c05621;background-color:#fff7ed!important}.target-price.in-action{color:#1e6091;background-color:#e6f7ff!important}.target-profit.in-action{color:#22543d;background-color:#f0fff4!important}.profit-negative,.target-profit.profit-negative,.target-profit.profit-negative.in-action,.target-profit.profit-negative.not-in-action{color:#e53e3e!important}.profit-positive,.target-profit.profit-positive{color:#38a169!important}.profit-zero,.target-profit.profit-zero{color:#718096!important}.checkbox-header{width:40px;min-width:40px;max-width:40px}.supplier-article-header{width:90px;min-width:90px;max-width:90px}.title-header{width:200px;min-width:200px;max-width:200px}.sales-header,.stock-header,.stock-full-header,.days-header{width:60px;min-width:60px;max-width:60px}.discount-header{width:70px;min-width:70px;max-width:70px}.current-price-header,.current-profit-header{width:80px;min-width:80px;max-width:80px}.metric-header.target-discount{width:60px;min-width:60px;max-width:60px}.metric-header.target-price,.metric-header.target-profit{width:70px;min-width:70px;max-width:70px}.promotion-name-header[colSpan="1"]{width:70px!important;min-width:70px!important;max-width:70px!important}.promotion-name-header[colSpan="3"]{width:210px!important;min-width:210px!important;max-width:210px!important}.product-info-header{background-color:#f0f9ff;border-left-color:#0ea5e9;color:#0c4a6e;font-weight:700}.stock-info-header{background-color:#f0fdf4;border-left-color:#22c55e;color:#14532d;font-weight:700}.current-performance-header{background-color:#fefce8;border-left-color:#eab308;color:#713f12;font-weight:700}.single-table-wrapper{width:100%;overflow-x:auto;overflow-y:auto;max-height:70vh;border-radius:8px;box-shadow:0 2px 4px #0000001a;background:#fff}.promo-analysis-single-table{width:100%;border-collapse:collapse;font-size:.8rem;min-width:800px}.promo-analysis-single-table .sticky-col{position:sticky;background:#f8fafc;z-index:10;border-right:2px solid #e2e8f0}.promo-analysis-single-table .sticky-col:nth-child(1){left:0;width:40px;min-width:40px;max-width:40px}.promo-analysis-single-table .sticky-col:nth-child(2){left:40px;width:90px;min-width:90px;max-width:90px}.promo-analysis-single-table .sticky-col:nth-child(3){left:130px;width:200px;min-width:200px;max-width:200px}.promo-analysis-single-table .sticky-col:nth-child(4){left:330px;width:80px;min-width:80px;max-width:80px}.promo-analysis-single-table .sticky-col:nth-child(5){left:410px;width:70px;min-width:70px;max-width:70px}.promo-analysis-single-table .sticky-col:nth-child(6){left:480px;width:80px;min-width:80px;max-width:80px}.promo-analysis-single-table .sticky-col:nth-child(7){left:560px;width:70px;min-width:70px;max-width:90px}.promo-analysis-single-table .sticky-col:nth-child(8){left:630px;width:80px;min-width:80px;max-width:100px}.promo-analysis-single-table .sticky-col:nth-child(9){left:710px;width:90px;min-width:90px;max-width:110px}.promo-analysis-single-table .sticky-col:nth-child(10){left:800px;width:100px;min-width:100px;max-width:120px}.promo-analysis-single-table .sticky-col:nth-child(11){left:900px;width:80px;min-width:80px;max-width:100px}.promo-analysis-single-table thead{position:sticky;top:0;z-index:20}.promo-analysis-single-table th{padding:8px 6px;font-size:.75rem;font-weight:600;color:#475569;text-align:left;border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;background:#f1f5f9}.promo-analysis-single-table .sticky-col.checkbox-header,.promo-analysis-single-table .sticky-col.nm-header,.promo-analysis-single-table .sticky-col.vendor-header,.promo-analysis-single-table .sticky-col.barcode-header,.promo-analysis-single-table .sticky-col.package-header,.promo-analysis-single-table .sticky-col.warehouse-header,.promo-analysis-single-table .sticky-col.supplier-article-header,.promo-analysis-single-table .sticky-col.title-header,.promo-analysis-single-table .sticky-col.current-price-header,.promo-analysis-single-table .sticky-col.discount-header,.promo-analysis-single-table .sticky-col.current-profit-header,.promo-analysis-single-table .sticky-col.sales-header,.promo-analysis-single-table .sticky-col.quantity-header,.promo-analysis-single-table .sticky-col.supplies-total-header,.promo-analysis-single-table .sticky-col.supplies-unloading-header,.promo-analysis-single-table .sticky-col.supplies-status-header,.promo-analysis-single-table .sticky-col.days-header{z-index:25;background:#f1f5f9}.promo-analysis-single-table td{padding:6px;font-size:.8rem;border-bottom:1px solid #f1f5f9;border-right:1px solid #f1f5f9;vertical-align:middle;line-height:1.2;height:32px!important;max-height:32px!important;min-height:32px!important;box-sizing:border-box;overflow:hidden}.promo-analysis-single-table .sticky-col.checkbox-cell{text-align:center;padding:8px 4px!important}.promo-analysis-single-table .sticky-col.supplier-article{font-weight:600;color:#4a5568;word-break:break-word}.promo-analysis-single-table .sticky-col.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.promo-analysis-single-table .sticky-col.price{text-align:right;font-weight:600;font-family:Courier New,monospace;color:#38a169}.promo-analysis-single-table .price.price--edited{background:#48bb781f;border:1px solid rgba(72,187,120,.35)}.promo-analysis-single-table .price.price--editing{background:#0f172a;border:1px solid #3b82f6}.promo-analysis-single-table .price-input{width:100%;background:transparent;border:none;color:#e2e8f0;font-size:14px;padding:4px 6px;outline:none}.promo-analysis-single-table .sticky-col.discount{text-align:center;color:#e53e3e;font-weight:600}.promo-analysis-single-table .sticky-col.profit{text-align:right;font-weight:700;font-family:Courier New,monospace}.promo-analysis-single-table .sticky-col.sales-period{text-align:center;color:#38a169;background:#f0fff4;font-weight:600}.promo-analysis-single-table .sticky-col.quantity,.promo-analysis-single-table .sticky-col.supplies-cell{text-align:center;font-weight:500}.promo-analysis-single-table .sticky-col.days-to-zero{text-align:center;color:#2d3748;font-family:Courier New,monospace;font-weight:500}.promo-analysis-single-table tbody tr:hover{background-color:#f1f5f9}.promo-analysis-single-table tbody tr:hover .sticky-col{background-color:#edf2f7}.promo-analysis-single-table .promotion-participating-row{background-color:#48bb7880!important}.promo-analysis-single-table .promotion-participating-row:hover{background-color:#48bb7899!important}.promo-analysis-single-table .promotion-participating-row:hover .sticky-col{background-color:#48bb78b3!important}.promo-analysis-single-table .promotion-name-header{min-width:120px;max-width:200px}.promo-analysis-single-table .metric-header{min-width:70px;max-width:90px;text-align:center}.promo-analysis-single-table .inventory-toggle{display:inline-flex;align-items:center;gap:4px;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}.promo-analysis-single-table .inventory-toggle:focus{outline:2px solid #667eea;outline-offset:2px}.promo-analysis-single-table .inventory-toggle .toggle-icon{font-size:.7rem;color:#667eea}.promo-analysis-single-table .inventory-toggle .toggle-label{text-decoration:underline dotted transparent;transition:text-decoration-color .2s}.promo-analysis-single-table .inventory-toggle:hover .toggle-label{text-decoration-color:#64748b}.promo-analysis-single-table .supplies-cell.clickable{cursor:pointer;color:#0f172a;text-decoration:underline}.promo-analysis-single-table .supplies-cell.clickable:hover{background-color:#e2e8f0}.promo-analysis-single-table .sticky-col.supplies-status-header,.promo-analysis-single-table .supplies-status-cell{min-width:120px;text-align:center}.promo-analysis-single-table .supplies-total-cell.collapsed,.promo-analysis-single-table .supplies-total-header.collapsed,.promo-analysis-single-table .supplies-total-cell.expanded,.promo-analysis-single-table .supplies-total-header.expanded{min-width:140px}.promo-analysis-single-table .sticky-col.discount.editing{background-color:#fff3cd!important;border:2px solid #ffc107!important;padding:4px!important}.promo-analysis-single-table .sticky-col.discount.modified{background-color:#d4edda!important;border-left:3px solid #28a745!important;font-weight:700}.promo-analysis-single-table .sticky-col.discount.price-changed{background-color:#fff4e5!important;box-shadow:inset 0 0 0 2px #f6ad55}.discount-input{width:100%;border:none;background:transparent;text-align:center;font-size:.8rem;font-weight:600;color:#e53e3e;outline:none;padding:2px}.discount-input:focus{background-color:#fff;border-radius:2px}.promotion-group-header{background:var(--table-header-bg, #f5f7fb);text-align:center}.promotion-header-content{align-items:center;display:inline-flex;gap:6px;justify-content:center}.promotion-title-button{background:transparent;border:none;color:inherit;cursor:pointer;font-weight:600;padding:2px 6px}.promotion-title-button:hover,.promotion-title-button:focus{text-decoration:underline}.promo-active-cell{background-color:#48bb781a}.promo-selected-cell{box-shadow:inset 0 0 0 1px #4299e159}.promo-selection-label{align-items:center;column-gap:6px;cursor:pointer;display:inline-flex;font-weight:500;-webkit-user-select:none;user-select:none}.promo-selection-label span{display:inline-flex;align-items:center}.promo-selection-checkbox{cursor:pointer;height:16px;width:16px}.promotion-description{line-height:1.4;margin-top:8px}.collapse-button{align-items:center;background:#eef2ff;border:1px solid #c7d2fe;border-radius:4px;color:#4c51bf;cursor:pointer;display:inline-flex;font-size:.7rem;height:24px;justify-content:center;line-height:1;padding:0 8px}.collapse-button.collapsed{background:#dcfce7;border-color:#86efac;color:#166534}@media (max-width: 1200px){.promo-analysis-table-wrapper{height:60vh;min-height:400px}.sticky-left-pane{max-width:300px}.title-header{width:150px;min-width:150px;max-width:150px}}@media (max-width: 768px){.promo-analysis-table-wrapper{height:50vh;min-height:350px}.sticky-table th,.sticky-table td,.promotions-table tbody td{padding:4px 3px;font-size:.7rem}.promotion-name{font-size:.7rem}.promotion-dates{font-size:.6rem}.metric-header{font-size:.65rem;padding:4px 2px}}.ozon-table-scroll{display:flex;flex-direction:column;height:100%;gap:4px}.ozon-table-top-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-gutter:stable;height:16px;position:sticky;top:0;z-index:30;background:#fff}.ozon-table-top-scroll::-webkit-scrollbar{height:12px}.ozon-table-top-spacer{height:1px}.ozon-table-main-scroll{flex:1;overflow:auto;scrollbar-gutter:stable both-edges}.ozon-table-main-scroll::-webkit-scrollbar:horizontal{height:0}.ozon-table-main-scroll::-webkit-scrollbar:vertical{width:12px}.ozon-products-table{width:max-content;min-width:100%;table-layout:auto}.ozon-products-table .grouped-header{text-align:center;vertical-align:middle;background-color:#f1f5f9;color:#475569;font-weight:600;min-width:160px;width:auto;max-width:none}.ozon-products-table .grouped-header .toggle-label{font-weight:600}.ozon-products-table .metric-cell{text-align:right;font-variant-numeric:tabular-nums;min-width:90px;max-width:120px}.ozon-products-table .metric-cell.no-data-cell{text-align:center;color:#94a3b8}.ozon-products-table .logistics-cell,.ozon-products-table .sales-cell{min-width:90px;max-width:120px}.ozon-products-table .logistics-cell,.ozon-products-table .sales-cell{color:#1f2937}.ozon-products-table .sticky-col.nm-header,.ozon-products-table .sticky-col.nm-cell{width:200px;min-width:200px;max-width:220px}.ozon-products-table .sticky-col.title-header,.ozon-products-table .sticky-col.title-cell{width:320px;min-width:320px;max-width:360px}.promotion-popup-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.promotion-popup-content{background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;max-width:800px;width:90%;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.promotion-popup-header{padding:20px 24px 16px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;background:#f8fafc}.promotion-popup-header h3{margin:0;color:#1a202c;font-size:18px;font-weight:600}.close-button{background:none;border:none;font-size:24px;cursor:pointer;color:#718096;padding:4px;line-height:1;border-radius:4px;transition:all .2s}.close-button:hover{background-color:#e2e8f0;color:#4a5568}.promotion-popup-body{padding:20px 24px;overflow-y:auto;flex:1}.promotion-popup-section{margin-top:16px}.promotion-popup-section h4{margin:0 0 8px;font-size:16px;color:#2d3748}.promo-operation-results{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}.promo-operation-results li{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:12px;font-size:14px;line-height:1.5;color:#2d3748}.promo-operation-results details{margin-top:8px}.promo-operation-results summary{cursor:pointer;font-weight:500;color:#4a5568}.no-promotions{text-align:center;padding:40px 20px;color:#718096}.no-promotions p{margin:0;font-size:16px}.promotion-table{width:100%;border-collapse:collapse;font-size:14px}.promotion-table th,.promotion-table td{padding:12px;text-align:left;border-bottom:1px solid #e2e8f0}.promotion-table th{background-color:#f7fafc;font-weight:600;color:#2d3748;border-bottom:2px solid #e2e8f0}.promotion-table tr:hover{background-color:#f9f9f9}.participating-row{background-color:#48bb781a!important}.participating-row:hover{background-color:#48bb7826!important}.not-participating-row{background-color:#f565651a!important}.not-participating-row:hover{background-color:#f5656526!important}.participation-status{font-weight:500}.participating-row .participation-status{color:#38a169}.not-participating-row .participation-status{color:#e53e3e}@media (max-width: 768px){.promotion-popup-content{width:95%;max-height:90vh}.promotion-popup-header{padding:16px 20px 12px}.promotion-popup-header h3{font-size:16px}.promotion-popup-body{padding:16px 20px}.promotion-table{font-size:12px}.promotion-table th,.promotion-table td{padding:8px}}.toast-container{position:fixed;z-index:9999;pointer-events:none}.toast-container.top-right{top:16px;right:16px}.toast-container.top-left{top:16px;left:16px}.toast{display:flex;align-items:center;gap:10px;background:#1f2937;color:#fff;border-radius:8px;padding:10px 12px;margin-bottom:10px;box-shadow:0 10px 20px #00000026;min-width:280px;max-width:420px;pointer-events:auto}.toast.success{border-left:4px solid #22c55e}.toast.error{border-left:4px solid #ef4444}.toast.info{border-left:4px solid #3b82f6}.toast-icon{font-size:18px;line-height:1}.toast-message{flex:1;font-size:14px}.toast-close{background:transparent;color:#cbd5e1;border:none;font-size:18px;cursor:pointer}.toast-close:hover{color:#fff}.cost-commission-page{padding:20px;max-width:100%;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;border-bottom:1px solid #e2e8f0;padding-bottom:16px}.header-buttons{display:flex;gap:12px;align-items:center}.page-header h1{font-size:1.8rem;font-weight:600;color:#2d3748;margin:0}.update-button{padding:10px 20px;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:500;box-shadow:0 2px 4px #48bb784d;transition:all .2s}.update-button:hover{background:linear-gradient(135deg,#38a169,#2f855a);box-shadow:0 4px 8px #48bb7866;transform:translateY(-1px)}.update-button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:0 2px 4px #48bb7833}.back-button{padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:500;transition:all .2s}.back-button:hover{background:#5a6fd8;transform:translateY(-1px)}.filters-section{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;margin-bottom:24px;padding:16px;background:#f7fafc;border-radius:8px;border:1px solid #e2e8f0}.filters-left{display:flex;gap:20px;flex:1 1 320px}.filter-group{flex:1;display:flex;flex-direction:column;gap:8px}.filter-group label{font-size:.9rem;font-weight:500;color:#4a5568}.filter-group input{padding:10px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem;transition:border-color .2s,box-shadow .2s}.filter-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.bulk-actions{display:flex;flex-direction:column;gap:10px;align-items:flex-end;flex:1 1 260px}.bulk-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.secondary-button{padding:10px 14px;background:#edf2f7;color:#2d3748;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s}.secondary-button:hover{background:#e2e8f0;border-color:#cbd5e0}.hidden-input{display:none}.upload-label{display:inline-flex;align-items:center;gap:8px}.bulk-inline{background:#fff;border:1px dashed #cbd5e0;border-radius:8px;padding:10px 12px;width:100%;max-width:420px}.bulk-file-name{font-size:.9rem;color:#2d3748;margin-bottom:8px}.bulk-inline-buttons{display:flex;gap:10px;justify-content:flex-end}.compact{padding:8px 12px;font-size:.85rem}.bulk-result{background:#f0fff4;border:1px solid #c6f6d5;border-radius:8px;padding:10px 12px;max-width:420px;width:100%}.bulk-result-summary{color:#22543d;font-weight:600;margin-bottom:6px}.bulk-result-details{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#2f855a}.bulk-result .secondary-button.small{padding:8px 10px;font-size:.85rem}.table-container{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;border:1px solid #e2e8f0}.cost-commission-table{width:100%;border-collapse:collapse;font-size:.9rem}.cost-commission-table th{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:14px 12px;text-align:left;font-weight:600;font-size:.85rem;letter-spacing:.5px;border-bottom:2px solid #5a6fd8;position:sticky;top:0;z-index:1}.cost-commission-table td{padding:12px;border-bottom:1px solid #e2e8f0;vertical-align:middle}.cost-commission-table tbody tr:hover{background-color:#f7fafc}.cost-commission-table tbody tr:nth-child(2n){background-color:#fafafa}.cost-commission-table tbody tr:nth-child(2n):hover{background-color:#f0f4f8}.editable-cell{cursor:pointer;position:relative;transition:all .2s;border-radius:4px}.editable-cell:hover{background-color:#edf2f7!important;box-shadow:inset 0 0 0 1px #cbd5e0}.cost-cell.editing,.commission-cell.editing{background-color:#fff3cd!important;border:2px solid #ffc107!important;padding:8px!important;box-shadow:0 0 0 3px #ffc10733}.cost-cell.modified,.commission-cell.modified{background-color:#d4edda!important;border-left:3px solid #28a745!important;font-weight:600;color:#155724}.editable-cell input{width:100%;border:none;background:transparent;font-size:.9rem;font-family:inherit;text-align:inherit;padding:0;margin:0}.editable-cell input:focus{outline:none}.profit-positive{color:#38a169;font-weight:600}.profit-negative{color:#e53e3e;font-weight:600}.profit-zero{color:#718096;font-weight:500}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#718096}.spinner{width:40px;height:40px;border:4px solid #e2e8f0;border-left:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-container{display:flex;justify-content:center;align-items:center;padding:60px 20px}.error-message{color:#e53e3e;font-size:1rem;font-weight:500;text-align:center;background:#fed7d7;padding:16px 20px;border-radius:8px;border:1px solid #feb2b2}.empty-state{display:flex;justify-content:center;align-items:center;padding:60px 20px;color:#718096;font-style:italic}@media (max-width: 768px){.cost-commission-page{padding:16px}.page-header{flex-direction:column;gap:16px;align-items:flex-start}.header-buttons{flex-direction:column;width:100%;align-items:stretch}.header-buttons button{width:100%;justify-content:center}.filters-section{flex-direction:column;gap:16px}.filters-left{flex-direction:column;width:100%}.bulk-actions{width:100%;align-items:stretch}.bulk-buttons{justify-content:flex-start}.bulk-inline-buttons{flex-direction:column;align-items:stretch}.cost-commission-table{font-size:.8rem}.cost-commission-table th,.cost-commission-table td{padding:8px}.table-container{overflow-x:auto}}@media (max-width: 480px){.page-header h1{font-size:1.5rem}.cost-commission-table{min-width:800px}}.global-progress-bar{position:fixed;top:0;left:0;width:100%;height:3px;background:transparent;z-index:10000;overflow:hidden}.global-progress-indicator{position:absolute;left:-40%;top:0;height:100%;width:40%;background:linear-gradient(90deg,#667eea,#764ba2);animation:gp-slide 1.2s ease-in-out infinite;border-radius:0 2px 2px 0}@keyframes gp-slide{0%{left:-40%}50%{left:60%}to{left:110%}}.login-page{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;width:100%;background:#f5f6f8;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;text-align:center}.login-page h1{margin-bottom:.5rem;font-size:2rem;line-height:1.2}.login-page p{margin-bottom:2rem;color:#555;max-width:320px}.yandex-btn{display:inline-flex;align-items:center;justify-content:center;padding:.75rem 2.5rem;font-size:1rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;background:#fc0;color:#000;box-shadow:0 3px 6px #00000029;transition:transform .15s ease-out,box-shadow .15s ease-out}.yandex-btn:hover{transform:translateY(-2px);box-shadow:0 4px 10px #0003}.yandex-btn:active{transform:translateY(0);box-shadow:0 1px 4px #0003}@media (max-width: 480px){.login-page h1{font-size:1.5rem}.yandex-btn{width:100%;padding:.75rem 1rem}}*{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;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f7fa}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
