.app-container{display:flex;flex-direction:column;min-height:100vh;padding-bottom:80px}body,html{margin:0;padding: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}*,*:before,*:after{box-sizing:border-box}.size-calc-container{min-height:100vh;display:flex;flex-direction:column;padding:32px 20px;background:linear-gradient(135deg,#f5f7fa,#f0f4f8)}@media(min-width:1024px){.size-calc-container{flex-direction:row;gap:32px;justify-content:center;align-items:flex-start;padding-top:40px}}@media(max-width:600px){.size-calc-container{padding:20px 16px;gap:20px}}.size-calc-form-wrapper{flex:0 0 auto;width:100%}@media(min-width:1024px){.size-calc-form-wrapper{max-width:420px}}.size-calc-title{font-size:26px;font-weight:700;text-align:center;margin-bottom:28px;color:#2d3748;letter-spacing:-.5px}@media(max-width:600px){.size-calc-title{font-size:20px;margin-bottom:20px}}.size-calc-form{background:#fff;padding:22px;border-radius:12px;box-shadow:0 4px 16px #00000014;border:1px solid #e8eef2;position:relative;overflow:hidden;transition:all .3s ease}.size-calc-form:hover{box-shadow:0 8px 24px #0000001f;border-color:#38b2ac4d}@media(max-width:600px){.size-calc-form{padding:16px}}.size-calc-row{display:flex;flex-direction:column;margin-bottom:12px;gap:4px}.size-calc-row:last-of-type{margin-bottom:0}@media(max-width:600px){.size-calc-row{margin-bottom:10px}}.size-calc-row-last-type{margin-bottom:0;padding:12px;background:#f9fbfc;border-radius:10px;border:1px solid #eef3f6;display:flex;flex-direction:column;gap:6px}.size-calc-row-last-type .size-calc-label{margin-bottom:6px;font-size:13px;color:#2d3748}.size-calc-row-last-type .size-calc-input{box-shadow:0 1px 3px #00000008;background:#fff}.size-calc-label{font-weight:600;color:#2d3748;font-size:14px;text-transform:uppercase;letter-spacing:.3px;margin-bottom:4px}@media(max-width:600px){.size-calc-label{font-size:13px}}.size-calc-input{width:100%;max-width:100%;min-width:0;height:44px;min-height:44px;padding:10px 12px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:14px;font-family:inherit;background:#fff;color:#2d3748;box-shadow:0 1px 3px #0000000a;transition:all .3s ease;font-weight:500;line-height:1.4;box-sizing:border-box}.size-calc-input::placeholder{color:#a0aec0}.size-calc-input:focus{outline:none;border-color:#38b2ac;box-shadow:0 0 0 3px #38b2ac1a;background:#f9fbfc}.size-calc-input:disabled{background:#f7fafc;color:#cbd5e0}@media(max-width:600px){.size-calc-input{height:44px;min-height:44px}}.measurement-editing-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:12px 16px;border:1px solid #90cdf4;border-radius:10px;background:#ebf8ff;color:#2a4365}.size-calc-input[aria-invalid=true]{border-color:#c53030;box-shadow:0 0 0 2px #c530302e}.size-calc-factory{color:#4a5568;font-size:13px;font-weight:600}.size-calc-error{margin-top:12px;padding:10px 12px;color:#991b1b;background:#fee2e2;border:1px solid #fecaca;border-radius:8px;font-size:13px}select.size-calc-input{appearance:none;padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#4a5568 50%),linear-gradient(135deg,#4a5568 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%;background-size:6px 6px,6px 6px;background-repeat:no-repeat}.size-calc-input-group{display:flex;align-items:center;gap:12px}@media(max-width:600px){.size-calc-input-group{flex-direction:column;align-items:stretch;gap:8px}}.size-calc-divider{height:1px;background:linear-gradient(to right,transparent,#e2e8f0,transparent);margin:24px 0}.size-calc-divider-compact{margin:16px 0}.size-calc-button-group{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}.size-calc-button{background:linear-gradient(135deg,#38b2ac,#2c7a7b);color:#fff;padding:11px 18px;border:none;border-radius:8px;cursor:pointer;font-weight:600;font-size:14px;transition:all .3s ease;box-shadow:0 2px 8px #38b2ac33;height:40px;text-align:center;display:flex;align-items:center;justify-content:center}.size-calc-button:hover:not(:disabled){background:linear-gradient(135deg,#2c7a7b,#215c5d);transform:translateY(-2px);box-shadow:0 6px 20px #38b2ac4d}.size-calc-button:active:not(:disabled){transform:translateY(0)}.size-calc-button:disabled{background:#cbd5e0;cursor:not-allowed;box-shadow:none}.size-calc-button.secondary{background:#f0f4f8;color:#2d3748;border:1.5px solid #e2e8f0;box-shadow:none}.size-calc-button.secondary:hover:not(:disabled){background:#e8ecf1;border-color:#38b2ac;transform:translateY(-2px)}@media(max-width:600px){.size-calc-button{padding:10px 14px;font-size:13px;height:38px}}.size-calc-step{background:#f0f4f8;border:1.5px solid #e2e8f0;padding:8px 14px;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all .3s ease;width:100%;height:40px;color:#2d3748;display:flex;align-items:center;justify-content:center}.size-calc-step:hover:not(:disabled){background:#e8ecf1;border-color:#38b2ac;color:#38b2ac;transform:translateY(-2px)}.size-calc-step:disabled{opacity:.5;cursor:not-allowed}@media(max-width:600px){.size-calc-step{padding:8px 12px;font-size:13px;height:38px}}.size-calc-radio-group{display:flex;gap:12px;margin:16px 0;flex-wrap:wrap}.size-calc-radio-label{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:500;color:#2d3748;padding:10px 14px;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;transition:all .3s ease;cursor:pointer}.size-calc-radio-label:hover{background:#f9fbfc;border-color:#38b2ac}@media(max-width:600px){.size-calc-radio-label{padding:8px 12px;font-size:14px}}.size-calc-radio{display:none}.size-calc-radio+.radio-custom{width:20px;height:20px;border:2px solid #38b2ac;border-radius:50%;background:#fff;position:relative;transition:all .3s ease;display:flex;align-items:center;justify-content:center;flex-shrink:0}.size-calc-radio+.radio-custom:after{content:"";width:10px;height:10px;border-radius:50%;background:#38b2ac;opacity:0;transition:all .3s ease}.size-calc-radio:checked+.radio-custom:after{opacity:1}@media(max-width:600px){.size-calc-radio+.radio-custom{width:18px;height:18px}.size-calc-radio+.radio-custom:after{width:8px;height:8px}}.size-calc-checkbox-label{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:500;color:#2d3748;padding:10px 14px;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;transition:all .3s ease;cursor:pointer;position:relative}.size-calc-checkbox-label:hover{background:#f9fbfc;border-color:#38b2ac}@media(max-width:600px){.size-calc-checkbox-label{padding:8px 12px;font-size:14px;gap:8px}}.size-calc-checkbox{display:none}.size-calc-checkbox+.checkbox-custom{width:20px;height:20px;border:2px solid #38b2ac;border-radius:6px;background:#fff;position:relative;transition:all .3s ease;display:flex;align-items:center;justify-content:center;flex-shrink:0}.size-calc-checkbox+.checkbox-custom:before{content:"";position:absolute;width:0;height:2px;background:#fff;transition:all .3s ease;transform-origin:center;transform:rotate(130deg);bottom:10px;left:6px}.size-calc-checkbox+.checkbox-custom:after{content:"";position:absolute;width:0;height:2px;background:#fff;transition:all .3s ease;transform-origin:top left;transform:rotate(47deg);bottom:10px;left:5px}.size-calc-checkbox:checked+.checkbox-custom{background:#38b2ac;border-color:#2c7a7b}.size-calc-checkbox:checked+.checkbox-custom:before{width:12px}.size-calc-checkbox:checked+.checkbox-custom:after{width:7px}@media(max-width:600px){.size-calc-checkbox+.checkbox-custom{width:18px;height:18px}.size-calc-checkbox+.checkbox-custom:before,.size-calc-checkbox+.checkbox-custom:after{height:1.5px}}.size-result-wrapper{flex:0 0 auto;width:100%}@media(min-width:1024px){.size-result-wrapper{max-width:860px}}.calculator-result-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,360px);gap:24px;align-items:start}.calculator-result-main,.calculator-available-shoes-panel{min-width:0}.calculator-available-shoes-panel{width:100%}.size-calc-size-stepper{background:#fff;padding:14px;border-radius:12px;box-shadow:0 3px 10px #0000000f;border:1px solid #e8eef2;margin:12px 0 0}@media(max-width:600px){.size-calc-size-stepper{padding:12px}}.size-calc-size-stepper-inner{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(112px,128px);align-items:center;gap:12px}@media(max-width:600px){.size-calc-size-stepper-inner{grid-template-columns:1fr}}.size-calc-size-label{font-size:12px;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.size-calc-size-value{font-size:24px;font-weight:700;color:#2d3748;min-width:56px;text-align:center}.size-calc-step-group{display:flex;gap:8px;width:100%}@media(max-width:600px){.size-calc-step-group{gap:8px}}.size-result{background-color:#fff;padding:20px;border-radius:12px;border:1px solid #e8eef2;color:#2d3748;box-shadow:0 3px 10px #0000000f;width:100%;transition:all .2s ease}.size-result:hover{box-shadow:0 8px 24px #00000014;border-color:#38b2ac33}@media(max-width:600px){.size-result{padding:14px}}.available-shoes{margin-top:0;padding:20px;background:#fff;border:1px solid #e8eef2;border-radius:12px;box-shadow:0 3px 10px #0000000f}.available-shoes-title{margin-bottom:14px;color:#2d3748;font-size:16px;font-weight:700}.available-shoes-message{padding:12px;color:#4a5568;background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;font-size:14px}.available-shoes-message.error{color:#9b2c2c;background:#fff5f5;border-color:#feb2b2}.available-shoes-list{display:flex;flex-direction:column;gap:12px;max-height:360px;overflow-y:auto;padding-right:4px}@media(max-width:900px){.calculator-result-layout{grid-template-columns:1fr}.available-shoes{margin-top:0}}.available-shoe-card{display:flex;gap:12px;width:100%;padding:12px;background:#f9fbfc;border:1px solid #e8eef2;border-radius:10px;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:all .3s ease}.available-shoe-card:hover{border-color:#38b2ac;background:#e8f5f4;transform:translateY(-1px)}.available-shoe-card:focus{outline:none;border-color:#38b2ac;box-shadow:0 0 0 3px #38b2ac1a}.available-shoe-photo{display:flex;align-items:center;justify-content:center;flex:0 0 86px;width:86px;height:86px;overflow:hidden;color:#4a5568;background:#f0f4f8;border:1px solid #e2e8f0;border-radius:8px;font-size:12px;text-align:center}.available-shoe-photo img{width:100%;height:100%;object-fit:cover}.available-shoe-info{display:flex;flex-direction:column;justify-content:center;gap:5px;color:#4a5568;font-size:14px}.available-shoe-model{color:#2d3748;font-size:15px;font-weight:700}.size-result-parameter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}@media(max-width:700px){.size-result-parameter-grid{grid-template-columns:1fr}}.result-row-with-status{display:flex;min-width:0;flex-direction:column;gap:14px;padding:16px;color:#4a5568;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 2px 8px #0000000a}.result-status{width:fit-content;max-width:100%;padding:8px 10px;border-radius:8px;font-size:14px;font-weight:700;line-height:1.35}.result-status.green{color:#166534;background:#dcfce7}.result-status.yellow{color:#92400e;background:#fff3cd}.result-status.red{color:#991b1b;background:#fee2e2}.result-label{font-size:19px;font-weight:700;color:#2d3748}.result-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.result-values div{display:flex;min-width:0;flex-direction:column;gap:3px;padding:10px 12px;background:#f7fafc;border-radius:8px}.result-values span{color:#718096;font-size:12px;font-weight:700;text-transform:uppercase}.result-values strong{color:#2d3748;font-size:16px;overflow-wrap:anywhere}.result-outcome{display:flex;flex-direction:column;gap:7px}.result-deviation{font-size:14px;font-weight:600;line-height:1.45}.result-deviation.green{color:#166534}.result-deviation.yellow{color:#92400e}.result-deviation.red{color:#991b1b}.size-result-title{font-size:16px;font-weight:700;margin-bottom:20px;color:#718096;text-transform:uppercase;letter-spacing:.5px}@media(max-width:600px){.size-result-title{font-size:14px;margin-bottom:16px}}.size-result-client{font-weight:600;margin-bottom:20px;color:#2d3748;font-size:16px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}@media(max-width:600px){.size-result-client{font-size:15px;margin-bottom:16px}}.size-result-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.size-result-summary div{display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px}.size-result-summary span{color:#4a5568;font-size:12px;text-transform:uppercase}.size-result-summary strong{color:#2d3748;font-size:15px}@media(max-width:600px){.size-result-summary{grid-template-columns:1fr}}.size-result-compare-controls{margin:20px 0;padding:14px;background:#f9fbfc;border:1px solid #e2e8f0;border-radius:10px}.size-result-size-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media(max-width:600px){.size-result-size-buttons{grid-template-columns:1fr}}.size-result-return{width:100%;margin-top:10px}.size-result-subtitle{margin:20px 0 10px;font-size:12px}.size-result-alternative{display:flex;flex-direction:column;gap:4px;margin-bottom:8px;padding:10px 12px;background:#fff8e6;border:1px solid #fde68a;border-radius:8px;font-size:13px}.size-result-save{margin-top:20px}.size-result-save .size-calc-button{width:100%}.save-message{margin-top:12px;font-size:13px}.size-result-list{list-style:disc;padding-left:20px;margin:0;line-height:1.7}.size-result-list li{color:#4a5568;font-size:15px;margin-bottom:10px}.size-result-list li:last-child{margin-bottom:0}@media(max-width:600px){.size-result-list li{font-size:14px;margin-bottom:8px}}.size-result-label{font-weight:600;color:#2d3748;font-size:14px}@media(max-width:600px){.size-result-label{font-size:13px}}.size-result-notes{font-style:italic;color:#4a5568;font-size:14px;padding:12px 16px;background:#f7fafc;border-left:3px solid #38b2ac;border-radius:8px;line-height:1.6;margin-top:16px}@media(max-width:600px){.size-result-notes{font-size:13px;padding:10px 12px}}.deviation-item{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;gap:12px}.deviation-item:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}@media(max-width:600px){.deviation-item{margin-bottom:12px;padding-bottom:12px;gap:8px}}.deviation-item.green .deviation-value{background-color:#dcfce7;color:#166534;border-color:#bbf7d0}.deviation-item.yellow .deviation-value{background-color:#fef3c7;color:#92400e;border-color:#fde68a}.deviation-item.red .deviation-value{background-color:#fee2e2;color:#991b1b;border-color:#fecaca}.deviation-value{font-weight:700;padding:6px 12px;border-radius:8px;background:#f0f4f8;border:1px solid #e2e8f0;font-size:14px;text-align:center;white-space:nowrap;transition:all .2s ease}@media(max-width:600px){.deviation-value{padding:4px 10px;font-size:13px}}.comment-box{margin-top:20px;margin-bottom:0;padding-top:20px;border-top:1px solid #e2e8f0}@media(max-width:600px){.comment-box{margin-top:16px;padding-top:16px}}.comment-label{font-size:13px;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px;display:block}@media(max-width:600px){.comment-label{font-size:12px;margin-bottom:8px}}.comment-textarea{font-size:14px;color:#2d3748;padding:12px 14px;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;resize:vertical;width:100%;box-sizing:border-box;transition:all .3s ease;min-height:100px;font-family:inherit}.comment-textarea:focus{outline:none;border-color:#38b2ac;box-shadow:0 0 0 3px #38b2ac1a;background:#f9fbfc}@media(max-width:600px){.comment-textarea{font-size:13px;padding:10px 12px;min-height:80px}}.admin-page{box-sizing:border-box;min-height:calc(100vh - 160px);width:100%;max-width:100%;padding:32px 20px;overflow-x:hidden;background:linear-gradient(135deg,#f5f7fa,#f0f4f8);color:#2d3748}.admin-page *,.admin-page *:before,.admin-page *:after{box-sizing:border-box}.admin-panel{width:min(1180px,100%);margin:0 auto;padding:24px;background:#fffffff2;border:1px solid #e8eef2;border-radius:12px;box-shadow:0 4px 12px #0000001a}.admin-panel h1,.admin-panel h2{margin-top:0;color:#2d3748}.admin-panel h1{margin-bottom:22px;font-size:26px}.admin-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:22px;padding:20px;background:#f9fbfc;border:1px solid #e8eef2;border-radius:12px}.admin-form h2{grid-column:1/-1;margin-bottom:0;font-size:18px}.admin-field{display:flex;flex-direction:column;gap:6px;color:#2d3748;font-size:13px;font-weight:600}.admin-page input,.admin-page select{width:100%;min-height:42px;padding:10px 12px;color:#2d3748;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;font:inherit;font-weight:500;box-shadow:0 1px 3px #0000000a;transition:all .3s ease}.admin-page input:focus,.admin-page select:focus{outline:none;border-color:#38b2ac;background:#f9fbfc;box-shadow:0 0 0 3px #38b2ac1a}.admin-page button{min-height:38px;padding:9px 14px;color:#fff;background:linear-gradient(135deg,#38b2ac,#2c7a7b);border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px #38b2ac33;transition:all .3s ease}.admin-page button:hover:not(:disabled){background:linear-gradient(135deg,#2c7a7b,#215c5d);transform:translateY(-1px);box-shadow:0 6px 16px #38b2ac47}.admin-page button:disabled{background:#cbd5e0;cursor:not-allowed;box-shadow:none}.admin-error,.admin-message,.admin-loading{margin:0 0 16px;padding:12px 14px;border-radius:8px;font-weight:600}.admin-error{color:#9b2c2c;background:#fff5f5;border:1px solid #feb2b2}.admin-message{color:#276749;background:#f0fff4;border:1px solid #9ae6b4}.admin-loading{color:#4a5568;background:#f7fafc;border:1px solid #e2e8f0}.admin-table-wrapper{width:100%;max-width:100%;overflow-x:auto;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 2px 8px #0000000f;-webkit-overflow-scrolling:touch}.admin-table{width:max-content;min-width:100%;border-collapse:collapse;background:#fff;font-size:13px}.admin-table th{padding:12px;color:#fff;background:#2c7a7b;font-size:12px;font-weight:700;text-align:left;white-space:nowrap}.admin-table td{padding:10px 12px;color:#2d3748;border-bottom:1px solid #e8eef2;vertical-align:middle}.admin-table tbody tr:hover{background:#f7fafc}.admin-actions{min-width:180px}.admin-actions button{display:block;width:100%;margin-bottom:6px}.admin-actions button:last-child{margin-bottom:0;color:#2d3748;background:#f0f4f8;border:1.5px solid #e2e8f0;box-shadow:none}@media(max-width:700px){.admin-page{padding:20px 12px}.admin-panel{padding:16px}.admin-form{grid-template-columns:1fr;padding:16px}}.models-page{box-sizing:border-box;width:100%;min-height:calc(100vh - 160px);padding:32px 20px;overflow-x:hidden;color:#2d3748;background:linear-gradient(135deg,#f5f7fa,#f0f4f8)}.models-page *,.models-page *:before,.models-page *:after{box-sizing:border-box}.models-panel{width:min(1200px,100%);margin:0 auto;padding:24px;background:#fffffff2;border:1px solid #e8eef2;border-radius:12px;box-shadow:0 4px 12px #0000001a}.models-header,.models-list-header,.models-card-header,.models-card-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.models-header{margin-bottom:22px}.models-header h1,.models-list-header h2,.models-card h3,.models-section-heading h2{margin:0;color:#2d3748}.models-header h1{font-size:26px;letter-spacing:-.5px}.models-header p,.models-list-header p,.models-section-heading p,.models-section-description{margin:7px 0 0;color:#4a5568;font-size:13px;font-weight:600;line-height:1.5}.models-header-badge,.models-type-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;color:#2c7a7b;background:#e8f5f4;border:1px solid rgba(56,178,172,.3);border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.models-form{display:grid;gap:16px;margin-bottom:24px}.models-form-section{min-width:0;margin:0;padding:18px;background:#f9fbfc;border:1px solid #e8eef2;border-radius:12px}.models-section-heading{margin-bottom:14px}.models-section-heading h2,.models-lasts-section legend{padding:0;font-size:17px;font-weight:700}.models-lasts-section legend{color:#2d3748}.models-section-description{margin:6px 0 14px}.models-field-grid,.models-factory-grid,.models-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.models-field,.models-search-field{display:flex;min-width:0;flex-direction:column;gap:6px;color:#2d3748;font-size:13px;font-weight:600}.models-page input:not([type=checkbox]),.models-page select{width:100%;min-width:0;min-height:42px;padding:10px 12px;color:#2d3748;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;font:inherit;font-weight:500;box-shadow:0 1px 3px #0000000a;transition:all .3s ease}.models-page input:not([type=checkbox]):focus,.models-page select:focus{outline:none;border-color:#38b2ac;background:#fff;box-shadow:0 0 0 3px #38b2ac1a}.models-page input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:#2c7a7b;cursor:pointer}.models-lasts{min-width:0;padding:14px;background:#fff;border:1px solid #e2e8f0;border-radius:10px}.models-lasts>strong{display:block;margin-bottom:10px;color:#2c7a7b;font-size:14px}.models-lasts-legacy{border-color:#fbd38d;background:#fffaf0}.models-last-options{display:grid;gap:8px}.models-choice,.models-option-card{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.models-choice{min-width:0;padding:9px 10px;color:#4a5568;background:#f7fafc;border:1px solid #e8eef2;border-radius:8px;font-size:13px;font-weight:600;line-height:1.35;transition:all .3s ease}.models-choice:hover,.models-choice:has(input:checked){color:#2d3748;background:#e8f5f4;border-color:#38b2ac80}.models-choice span{min-width:0;overflow-wrap:anywhere}.models-sandal-settings{background:#fffaf0;border-color:#fbd38d}.models-option-card{padding:14px;background:#fff;border:1px solid #f6d68a;border-radius:10px}.models-option-card>span{display:grid;min-width:0;gap:5px}.models-option-card strong{color:#2d3748;font-size:14px}.models-option-card small{color:#4a5568;font-size:12px;font-weight:500;line-height:1.45}.models-actions{display:flex;justify-content:flex-end;gap:10px}.models-page button{min-height:40px;padding:10px 16px;color:#fff;background:linear-gradient(135deg,#38b2ac,#2c7a7b);border:none;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px #38b2ac33;transition:all .3s ease}.models-page button:hover:not(:disabled){background:linear-gradient(135deg,#2c7a7b,#215c5d);box-shadow:0 6px 16px #38b2ac47;transform:translateY(-1px)}.models-page button:disabled{background:#cbd5e0;box-shadow:none;cursor:not-allowed}.models-page .models-button-secondary{color:#2d3748;background:#f0f4f8;border:1.5px solid #e2e8f0;box-shadow:none}.models-page .models-button-secondary:hover:not(:disabled){color:#2c7a7b;background:#e8ecf1;border-color:#38b2ac}.models-form small,.models-error{color:#9b2c2c}.models-error,.models-message,.models-loading,.models-empty{margin:0 0 18px;padding:12px 14px;border-radius:8px;font-size:13px;font-weight:600}.models-error{background:#fff5f5;border:1px solid #feb2b2}.models-message{color:#276749;background:#f0fff4;border:1px solid #9ae6b4}.models-loading,.models-empty{color:#4a5568;background:#f7fafc;border:1px dashed #cbd5e0}.models-list-section{padding-top:24px;border-top:1px solid #e2e8f0}.models-list-header{align-items:flex-end;margin-bottom:18px}.models-list-header h2{font-size:21px}.models-search-field{width:min(360px,100%)}.models-card{display:flex;min-width:0;flex-direction:column;gap:16px;padding:18px;background:#fff;border:1px solid #e8eef2;border-radius:12px;box-shadow:0 2px 8px #0000000f;transition:all .3s ease}.models-card:hover{border-color:#38b2ac73;box-shadow:0 4px 12px #0000001a}.models-card.is-inactive{background:#f7fafc;opacity:.78}.models-card-header h3{margin-bottom:8px;font-size:18px;overflow-wrap:anywhere}.models-type-badge.sandals{color:#9c4221;background:#fffaf0;border-color:#fbd38d}.models-cost{color:#2c7a7b;font-size:18px;white-space:nowrap}.models-card-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.models-card-details>div{min-width:0;padding:10px;background:#f9fbfc;border-radius:8px}.models-card-details dt,.models-card-lasts>span{margin-bottom:4px;color:#4a5568;font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:uppercase}.models-card-details dd{margin:0;color:#2d3748;font-size:13px;font-weight:700;overflow-wrap:anywhere}.models-card-lasts>span{display:block;margin-bottom:8px}.models-card-lasts>div{display:flex;flex-wrap:wrap;gap:6px}.models-card-lasts small{padding:5px 8px;color:#2c7a7b;background:#e8f5f4;border-radius:999px;font-size:11px;font-weight:700;overflow-wrap:anywhere}.models-card-lasts .models-card-empty-value{color:#4a5568;background:#edf2f7}.models-classification{margin:0;padding:10px 12px;color:#9c4221;background:#fffaf0;border:1px solid #fbd38d;border-radius:8px;font-size:12px;font-weight:700}.models-card-actions{align-items:center;margin-top:auto;padding-top:14px;border-top:1px solid #e8eef2}.models-toggle{display:inline-flex;align-items:center;gap:8px;color:#2d3748;font-size:13px;font-weight:700;cursor:pointer}@media(max-width:800px){.models-page{padding:20px 12px}.models-panel{padding:18px}.models-card-grid{grid-template-columns:1fr}}@media(max-width:600px){.models-page{padding:14px 10px}.models-panel,.models-form-section,.models-card{padding:14px}.models-header,.models-list-header{align-items:stretch;flex-direction:column}.models-header-badge{align-self:flex-start}.models-field-grid,.models-factory-grid,.models-card-details{grid-template-columns:1fr}.models-actions,.models-card-actions{align-items:stretch;flex-direction:column}.models-page button,.models-search-field{width:100%}.models-toggle{min-height:40px}}.history-container{padding:32px 20px;max-width:900px;margin:0 auto}.history-title{font-size:28px;font-weight:700;color:#2d3748;margin-bottom:28px;letter-spacing:-.5px}.search-container{display:flex;gap:12px;margin-bottom:32px;align-items:center;flex-wrap:wrap}.search-input{flex:1;min-width:280px;padding:12px 16px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:15px;color:#2d3748;background:#fff;transition:all .3s ease}.search-input::placeholder{color:#a0aec0}.search-input:focus{outline:none;border-color:#38b2ac;box-shadow:0 0 0 3px #38b2ac1a;background:#fff}.btn-clear-search{padding:10px 16px;background-color:#6c757d;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;transition:background-color .3s}.btn-clear-search:hover{background-color:#5a6268}.measurements-table{width:100%;border-collapse:collapse;background-color:#fff;box-shadow:0 2px 4px #0000001a;border-radius:4px;overflow:hidden}.measurements-table thead{background-color:#007bff;color:#fff;font-weight:700}.measurements-table th{padding:12px 15px;text-align:left;white-space:nowrap;font-size:14px}.measurements-table td{padding:10px 15px;border-bottom:1px solid #ddd;font-size:14px}.measurements-table tbody tr{transition:background-color .2s}.measurements-table tbody tr:hover{background-color:#f5f5f5}.measurements-table tbody tr:last-child td{border-bottom:none}.btn-delete{padding:6px 12px;background-color:#dc3545;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;transition:background-color .3s}.btn-delete:hover{background-color:#c82333}.history-cards{display:flex;flex-direction:column;gap:20px;margin-top:30px}.history-card{background:#fff;border-radius:14px;box-shadow:0 2px 8px #00000014;border:1px solid #e8eef2;width:100%;transition:all .3s ease;overflow:hidden}.history-card:hover{box-shadow:0 8px 24px #0000001f;border-color:#38b2ac}.history-card>h3{margin:0;padding:0;font-size:18px;font-weight:700;color:#2d3748;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.history-card-content{padding:24px}.history-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;gap:20px}.history-card-name{font-size:18px;font-weight:700;color:#2d3748;flex:1;word-break:break-word}.history-card-date{font-size:13px;color:#718096;white-space:nowrap;background:#f7fafc;padding:4px 12px;border-radius:6px;font-weight:500}.card-meta{display:flex;flex-wrap:wrap;gap:20px;padding:16px 0;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;margin:0 0 20px;color:#4a5568;font-size:14px;line-height:1.6}.card-meta b{color:#2d3748;font-weight:600;margin-right:4px}.card-comment{margin:20px 0;padding:14px 16px;background:#f0fdf4;border-left:3px solid #38b2ac;border-radius:6px;color:#22543d;font-size:14px;line-height:1.5}.card-comment b{color:#1f3a3a;font-weight:600;margin-right:6px}.card-inputs{margin:24px 0;padding:20px;background:#f9fbfc;border-radius:10px;border:1px solid #e2e8f0}.card-inputs-title{display:block;font-size:13px;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.5px;margin:0 0 16px}.history-parameter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.history-parameter-card{display:flex;min-width:0;flex-direction:column;gap:12px;padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 2px 8px #0000000a}.history-parameter-title{color:#2d3748;font-size:19px;font-weight:700}.history-parameter-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-parameter-values>div{display:flex;min-width:0;flex-direction:column;gap:3px;padding:10px 12px;background:#f7fafc;border-radius:8px}.history-parameter-values span{color:#718096;font-size:12px;font-weight:700;text-transform:uppercase}.history-parameter-values strong{color:#2d3748;font-size:16px;overflow-wrap:anywhere}.history-parameter-status{width:fit-content;max-width:100%;padding:8px 10px;border:1px solid transparent;border-radius:8px;font-size:14px;font-weight:700;line-height:1.35}.history-parameter-status.green{color:#166534;background:#dcfce7;border-color:#bbf7d0}.history-parameter-status.yellow{color:#92400e;background:#fef3c7;border-color:#fde68a}.history-parameter-status.red{color:#991b1b;background:#fee2e2;border-color:#fecaca}.history-parameter-status.neutral{color:#4a5568;background:#edf2f7;border-color:#e2e8f0}.history-parameter-adjustment,.history-parameter-explanation{color:#4a5568;font-size:14px;line-height:1.45}.history-parameter-adjustment{font-weight:600}.card-recommendations{margin:20px 0}.card-recommendations-title{font-size:13px;font-weight:700;color:#718096;text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px}.card-recommendations ul{margin:0;padding-left:20px;list-style:disc}.card-recommendations li{color:#4a5568;font-size:14px;line-height:1.6;margin-bottom:6px}.card-recommendations li:last-child{margin-bottom:0}.card-actions{display:flex;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e2e8f0}.btn-open{flex:1;padding:11px 18px;background:linear-gradient(135deg,#38b2ac,#2c7a7b);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;font-size:14px;transition:all .3s ease;text-align:center;box-shadow:0 2px 4px #38b2ac33}.btn-open:hover{transform:translateY(-2px);box-shadow:0 6px 12px #38b2ac4d}.btn-open:active{transform:translateY(0)}.btn-open:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-delete{flex:1;padding:11px 18px;background:#f3f4f6;color:#dc2626;border:1px solid #fecaca;border-radius:8px;cursor:pointer;font-weight:600;font-size:14px;transition:all .3s ease;text-align:center}.btn-delete:hover{background:#fee2e2;border-color:#dc2626;box-shadow:0 4px 12px #dc262626}.btn-delete:active{transform:scale(.98)}.history-title{margin-bottom:20px;font-size:24px;font-weight:700;color:#2d3748;letter-spacing:-.5px}@media(max-width:768px){.history-card-header{flex-direction:column;gap:8px}.history-card-date{align-self:flex-start}.card-meta{flex-direction:column;gap:12px}.card-actions{flex-direction:column}.btn-open,.btn-delete{width:100%}.history-parameter-grid{grid-template-columns:1fr}.history-card-content{padding:16px}}.auth-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.auth-card{background:#fff;padding:40px;border-radius:8px;box-shadow:0 10px 40px #0003;max-width:400px;width:100%}.auth-card h1{text-align:center;color:#333;margin-bottom:30px;font-size:28px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;color:#555;font-weight:600;font-size:14px}.form-group input{width:100%;padding:12px;border:2px solid #e0e0e0;border-radius:6px;font-size:14px;transition:border-color .3s;box-sizing:border-box}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.btn-primary{width:100%;padding:12px;background-color:#667eea;color:#fff;border:none;border-radius:6px;font-size:16px;font-weight:600;cursor:pointer;transition:background-color .3s}.btn-primary:hover:not(:disabled){background-color:#5568d3}.btn-primary:disabled{background-color:#ccc;cursor:not-allowed}.error-message{background-color:#fee;color:#c33;padding:12px;border-radius:6px;margin-bottom:20px;border-left:4px solid #c33;font-size:14px}.auth-footer{text-align:center;margin-top:20px;font-size:14px;color:#666}.link-btn{background:none;border:none;color:#667eea;cursor:pointer;font-weight:600;text-decoration:underline;font-size:14px}.link-btn:hover{color:#5568d3}.warehouse-page{box-sizing:border-box;position:relative;display:block;width:100%;max-width:100%;min-height:calc(100vh - 160px);padding:32px 20px;overflow-x:hidden;background:linear-gradient(135deg,#f5f7fa,#f0f4f8);color:#2d3748}.warehouse-page *,.warehouse-page *:before,.warehouse-page *:after{box-sizing:border-box}.warehouse-sidebar{position:fixed;top:88px;left:16px;z-index:1100;width:min(280px,100vw - 32px);padding:20px;background:#fffffff2;border:1px solid #e8eef2;border-radius:12px;box-shadow:0 4px 12px #0000001a;transform:translate(calc(-100% - 32px));transition:transform .25s ease,box-shadow .25s ease}.warehouse-sidebar.is-open{transform:translate(0)}.warehouse-sidebar-overlay{position:fixed;inset:0;z-index:1090;min-height:0!important;padding:0!important;background:#0f172a2e!important;border:none!important;border-radius:0!important;box-shadow:none!important;cursor:default}.warehouse-sidebar-overlay:hover:not(:disabled){background:#0f172a2e!important;transform:none!important;box-shadow:none!important}.warehouse-sidebar-open-button{position:fixed;top:116px;left:8px;z-index:1085;display:inline-flex;align-items:center;justify-content:center;width:36px!important;min-width:36px!important;height:44px;min-height:44px!important;padding:0!important;border-radius:0 999px 999px 0!important;font-size:22px!important;font-weight:800!important}.warehouse-sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.warehouse-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;color:#2c7a7b;background:#e8f5f4;border:1.5px solid rgba(56,178,172,.3);border-radius:999px;font-size:24px;font-weight:800;line-height:1;cursor:pointer;transition:all .3s ease}.warehouse-sidebar-toggle:hover{color:#fff;background:#2c7a7b}.warehouse-sidebar-title,.warehouse-tab h1,.warehouse-form h2,.warehouse-shift h2{margin-top:0;color:#2d3748}.warehouse-sidebar-title{margin-bottom:0;font-size:22px}.warehouse-sidebar-nav{display:flex;flex-direction:column;gap:8px}.warehouse-sidebar-button{width:100%;padding:11px 14px;color:#2d3748;background:#f0f4f8;border:1.5px solid #e2e8f0;border-radius:8px;font-size:14px;font-weight:600;text-align:left;cursor:pointer;transition:all .3s ease}.warehouse-sidebar-button:hover{border-color:#38b2ac;background:#e8f5f4}.warehouse-sidebar-button:active{transform:translateY(1px)}.warehouse-sidebar-button.active{color:#fff;border-color:#2c7a7b;background:linear-gradient(135deg,#38b2ac,#2c7a7b);box-shadow:0 2px 8px #38b2ac33}.warehouse-content{width:100%;min-width:0;flex:1 1 auto;max-width:100%;overflow:hidden}.warehouse-tab{width:100%;min-width:0;max-width:100%;overflow:hidden;padding:24px;background:#fffffff2;border:1px solid #e8eef2;border-radius:12px;box-shadow:0 4px 12px #0000001a}.warehouse-tab h1{margin-bottom:22px;font-size:26px;letter-spacing:-.5px}.warehouse-toolbar{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px}.warehouse-status-filter,.warehouse-form-field{display:flex;flex-direction:column;gap:6px;color:#2d3748;font-size:13px;font-weight:600}.warehouse-status-filter{min-width:190px}.warehouse-page input:not([type=file]),.warehouse-page select,.warehouse-page textarea{width:100%;min-height:42px;padding:10px 12px;color:#2d3748;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;font:inherit;font-weight:500;box-shadow:0 1px 3px #0000000a;transition:all .3s ease}.warehouse-page input:not([type=file]):focus,.warehouse-page select:focus,.warehouse-page textarea:focus{outline:none;border-color:#38b2ac;background:#f9fbfc;box-shadow:0 0 0 3px #38b2ac1a}.warehouse-page input:not([type=file]):disabled,.warehouse-page select:disabled,.warehouse-page textarea:disabled{color:#a0aec0;background:#f7fafc;cursor:not-allowed}.warehouse-page textarea{min-height:92px;resize:vertical}.warehouse-page button:not(.warehouse-sidebar-button):not(.warehouse-sidebar-toggle){min-height:38px;padding:9px 14px;color:#fff;background:linear-gradient(135deg,#38b2ac,#2c7a7b);border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px #38b2ac33;transition:all .3s ease}.warehouse-page button:not(.warehouse-sidebar-button):not(.warehouse-sidebar-toggle):hover:not(:disabled){background:linear-gradient(135deg,#2c7a7b,#215c5d);transform:translateY(-1px);box-shadow:0 6px 16px #38b2ac47}.warehouse-page button:not(.warehouse-sidebar-button):not(.warehouse-sidebar-toggle):active:not(:disabled){transform:translateY(0)}.warehouse-page button:not(.warehouse-sidebar-button):not(.warehouse-sidebar-toggle):disabled{color:#fff;background:#cbd5e0;cursor:not-allowed;box-shadow:none}.warehouse-form,.warehouse-search-form,.warehouse-shift{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:22px;padding:20px;background:#f9fbfc;border:1px solid #e8eef2;border-radius:12px}.warehouse-form h2,.warehouse-search-form h2,.warehouse-shift h2,.warehouse-shift-items,.warehouse-shift-summary{grid-column:1/-1}.warehouse-form>button,.warehouse-search-form>button,.warehouse-shift>button{align-self:end}.warehouse-form>button[type=button],.warehouse-search-form>button[type=button],.warehouse-shift>button:last-child{color:#2d3748;background:#f0f4f8;border:1.5px solid #e2e8f0;box-shadow:none}.warehouse-form>button[type=button]:hover:not(:disabled),.warehouse-search-form>button[type=button]:hover:not(:disabled),.warehouse-shift>button:last-child:hover:not(:disabled){color:#2c7a7b;background:#e8eef1;border-color:#38b2ac}.warehouse-search-form{align-items:end;padding:16px}.warehouse-shift-items{display:grid;gap:10px}.warehouse-shift-row{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(90px,120px) auto;align-items:center;gap:8px;padding:10px;background:#fff;border:1px solid #e8eef2;border-radius:8px}.warehouse-shift-name{font-weight:600}.warehouse-shift-summary{padding:14px;background:#fff;border:1px solid #e8eef2;border-radius:8px}.warehouse-shift-summary h3{margin:0 0 10px}.warehouse-category-groups,.warehouse-category-list,.warehouse-shift-items{display:grid;gap:12px}.warehouse-category-block{overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 2px 8px #0000000a}.warehouse-category-block.compact{box-shadow:none}.warehouse-category-header{display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:44px!important;color:#2d3748!important;background:#f9fbfc!important;border:none!important;border-radius:0!important;box-shadow:none!important;text-align:left}.warehouse-category-header:hover:not(:disabled){color:#2c7a7b!important;background:#e8f5f4!important;transform:none!important}.warehouse-empty-category{margin:0;padding:14px;color:#4a5568}.warehouse-category-manager{display:grid;gap:16px;padding:20px}.warehouse-category-create{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px}.warehouse-category-row{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:12px;padding:12px;background:#f9fbfc;border:1px solid #e8eef2;border-radius:8px}.warehouse-category-row>span{font-weight:700}.warehouse-category-actions{display:flex;flex-wrap:wrap;gap:8px}.warehouse-error,.warehouse-message,.warehouse-loading{margin:0 0 16px;padding:12px 14px;border-radius:8px;font-weight:600}.warehouse-error{color:#9b2c2c;background:#fff5f5;border:1px solid #feb2b2}.warehouse-message{color:#276749;background:#f0fff4;border:1px solid #9ae6b4}.warehouse-loading{color:#4a5568;background:#f7fafc;border:1px solid #e2e8f0}.warehouse-table-wrapper{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 2px 8px #0000000f;-webkit-overflow-scrolling:touch}.warehouse-table{width:max-content;min-width:100%;border-collapse:collapse;background:#fff;font-size:13px}.warehouse-table-wrapper table{width:max-content;min-width:100%}.warehouse-shoes-table{min-width:1575px}.warehouse-consumables-table{min-width:900px}.warehouse-materials-table{min-width:835px}.warehouse-table th{padding:12px;color:#fff;background:#2c7a7b;font-size:12px;font-weight:700;text-align:left;white-space:nowrap}.warehouse-table td{padding:10px 12px;color:#2d3748;border-bottom:1px solid #e8eef2;vertical-align:middle;overflow:visible}.warehouse-table tbody tr{transition:background-color .2s ease}.warehouse-table tbody tr:hover{background:#f7fafc}.warehouse-table tbody tr:last-child td{border-bottom:none}.warehouse-table tbody tr.low-stock{background:#fffaf0;box-shadow:inset 4px 0 #dd6b20}.warehouse-table tbody tr.low-stock:hover{background:#feebc8}.warehouse-status-select{min-width:145px}.warehouse-tg-toggle{min-width:84px;color:#2d3748!important;background:#f0f4f8!important;border:1.5px solid #e2e8f0!important;box-shadow:none!important}.warehouse-tg-toggle.active{color:#276749!important;background:#f0fff4!important;border-color:#9ae6b4!important}.warehouse-row-actions{min-width:145px}.warehouse-row-actions button{display:block;width:100%;margin-bottom:6px}.warehouse-row-actions button:last-child{margin-bottom:0;color:#2d3748;background:#f0f4f8;border:1.5px solid #e2e8f0;box-shadow:none}.warehouse-row-highlight{background:#e8f5f4!important;box-shadow:inset 4px 0 #38b2ac}.warehouse-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:16px;color:#4a5568;font-size:13px;font-weight:600}.shoe-photo-cell,.warehouse-photo-cell{position:relative;width:240px;min-width:240px;overflow:visible}.warehouse-photo-cell.compact,.shoe-photo-cell.compact{width:110px;min-width:110px}.warehouse-photo-placeholder{display:flex;align-items:center;justify-content:center;width:76px;min-height:76px;margin:0 0 10px;color:#4a5568;background:#f7fafc;border:1px dashed #cbd5e0;border-radius:10px;font-size:12px;font-weight:600;text-align:center}.warehouse-photo-cell.compact .warehouse-photo-placeholder{width:76px;min-height:54px;margin:0}.warehouse-shoe-photo-preview,.warehouse-material-photo-preview{position:relative;z-index:1;width:76px;min-height:54px;overflow:visible}.warehouse-table tbody tr:has(.warehouse-shoe-photo-preview:hover),.warehouse-table tbody tr:has(.warehouse-shoe-photo-preview:focus-within),.warehouse-table tbody tr:has(.warehouse-material-photo-preview:hover),.warehouse-table tbody tr:has(.warehouse-material-photo-preview:focus-within){position:relative;z-index:90}.warehouse-shoe-photo-preview:hover,.warehouse-shoe-photo-preview:focus-within,.warehouse-material-photo-preview:hover,.warehouse-material-photo-preview:focus-within{z-index:100}.warehouse-shoe-photo-preview:hover img,.warehouse-material-photo-preview:hover img{position:relative;z-index:101}.warehouse-shoe-edit-button,.warehouse-material-edit-button,.warehouse-material-archive-button{position:absolute;z-index:102;display:inline-flex!important;align-items:center;justify-content:center;width:26px!important;min-width:26px!important;height:26px;min-height:26px!important;padding:0!important;color:#fff!important;background:#1a202ce0!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:8px!important;font-size:17px!important;line-height:1!important;box-shadow:0 2px 8px #00000047!important}.warehouse-shoe-edit-button:hover:not(:disabled),.warehouse-shoe-edit-button:focus-visible,.warehouse-material-edit-button:hover:not(:disabled),.warehouse-material-edit-button:focus-visible,.warehouse-material-archive-button:hover:not(:disabled),.warehouse-material-archive-button:focus-visible{color:#fff!important;background:#2c7a7b!important;border-color:#fff!important;transform:translateY(-1px)}.warehouse-shoe-edit-button:focus-visible,.warehouse-material-edit-button:focus-visible,.warehouse-material-archive-button:focus-visible{outline:3px solid rgba(56,178,172,.35);outline-offset:2px}.warehouse-shoe-edit-button{top:6px;right:6px}.warehouse-material-archive-button{right:6px;bottom:6px;font-size:11px!important;font-weight:800!important}.warehouse-photo-list{display:flex;flex-wrap:wrap;gap:8px;max-width:220px;margin-bottom:10px;overflow:visible}.shoe-photo-item,.warehouse-photo-item{position:relative;display:inline-flex;width:72px;height:72px;padding:2px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 2px 8px #0000000f;overflow:visible}.shoe-photo-thumb,.warehouse-photo-thumb{position:relative;display:block;width:100%;height:100%;object-fit:cover;border-radius:8px;transform-origin:top right;transition:transform .18s ease,box-shadow .18s ease;z-index:1}.shoe-photo-thumb:hover,.warehouse-photo-thumb:hover{transform:scale(3);box-shadow:0 6px 20px #00000026;z-index:20}.warehouse-table-photo-thumb{width:76px;height:76px}.warehouse-photo-delete,.shoe-photo-item button.warehouse-photo-delete{position:absolute;top:-7px;right:-7px;z-index:25;display:inline-flex;align-items:center;justify-content:center;width:22px;min-width:22px;height:22px;min-height:22px!important;padding:0!important;color:#9b2c2c!important;background:#fff5f5!important;border:1px solid #feb2b2!important;border-radius:999px!important;font-size:16px!important;line-height:1!important;box-shadow:none!important}.warehouse-photo-delete:hover:not(:disabled),.shoe-photo-item button.warehouse-photo-delete:hover:not(:disabled){color:#fff!important;background:#c53030!important;border-color:#c53030!important;transform:translateY(-1px)}.shoe-photo-upload,.warehouse-photo-upload{display:flex;flex-direction:column;gap:7px;margin-top:4px}.shoe-photo-upload input[type=file],.warehouse-photo-upload input[type=file]{width:100%;max-width:210px;color:#4a5568;font-size:11px}.shoe-photo-upload input[type=file]::file-selector-button,.warehouse-photo-upload input[type=file]::file-selector-button{margin-right:8px;padding:7px 10px;color:#2c7a7b;background:#e8f5f4;border:1px solid rgba(56,178,172,.35);border-radius:7px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;transition:all .3s ease}.shoe-photo-upload input[type=file]::file-selector-button:hover,.warehouse-photo-upload input[type=file]::file-selector-button:hover{background:#d7efed}.warehouse-modal-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:32px 16px;overflow-y:auto;background:#0f172a7a}.warehouse-modal{width:min(920px,100%);max-height:calc(100vh - 64px);overflow-y:auto;background:#fffffff2;border:1px solid #e8eef2;border-radius:14px;box-shadow:0 18px 50px #0f172a3d}.warehouse-modal .warehouse-form{margin-bottom:0;border:none;border-radius:14px}.warehouse-modal-header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px}.warehouse-modal-header h2{margin:0}.warehouse-modal-close{width:auto!important}.warehouse-form-field-wide{grid-column:1/-1}.warehouse-modal-photo-list{max-width:100%;margin-bottom:12px}.warehouse-photo-selected{color:#4a5568;font-size:12px;font-weight:600}.warehouse-reports-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.warehouse-reports-header h1{margin-bottom:8px}.warehouse-reports-header p{margin:0;color:#4a5568;font-weight:600}.warehouse-report-period-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:14px;margin-bottom:14px;padding:18px;background:#f9fbfc;border:1px solid #e8eef2;border-radius:12px}.warehouse-report-period-label{margin:0 0 18px;color:#4a5568;font-weight:700}.warehouse-report-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}.warehouse-report-summary.compact{grid-template-columns:repeat(auto-fit,minmax(220px,320px))}.warehouse-report-summary article{min-width:0;padding:16px;background:#fff;border:1px solid #e8eef2;border-radius:12px;box-shadow:0 2px 8px #0000000a}.warehouse-report-summary span,.warehouse-report-summary small{display:block;color:#4a5568;font-size:12px;font-weight:700}.warehouse-report-summary strong{display:block;margin-top:8px;color:#2d3748;font-size:24px;line-height:1.15;overflow-wrap:anywhere}.warehouse-empty-report{margin:0;padding:18px;color:#4a5568;background:#f7fafc;border:1px dashed #cbd5e0;border-radius:12px;font-weight:700}.warehouse-report-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.warehouse-report-card{min-width:0;padding:18px;background:#fff;border:1px solid #e8eef2;border-radius:12px;box-shadow:0 2px 8px #0000000a}.warehouse-report-card h2{margin:0 0 16px;color:#2d3748;font-size:18px}.warehouse-category-chart{display:grid;gap:12px;max-height:420px;overflow-y:auto;padding-right:4px}.warehouse-report-bar-row{display:grid;grid-template-columns:minmax(110px,180px) minmax(140px,1fr) auto;align-items:center;gap:10px;color:#2d3748;font-size:13px;font-weight:700}.warehouse-report-bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warehouse-report-bar-track{height:12px;overflow:hidden;background:#edf2f7;border-radius:999px}.warehouse-report-bar-fill{width:var(--bar-width);height:100%;background:linear-gradient(135deg,#38b2ac,#2c7a7b);border-radius:inherit}.warehouse-timeline-chart{display:flex;align-items:stretch;gap:8px;min-height:280px;overflow-x:auto;padding:4px 0 8px}.warehouse-timeline-column{display:grid;grid-template-rows:1fr auto;gap:8px;min-width:46px;color:#4a5568;font-size:11px;font-weight:700;text-align:center}.warehouse-timeline-column-track{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:220px;background:#f7fafc;border:1px solid #edf2f7;border-radius:10px}.warehouse-timeline-column-fill{width:70%;height:var(--bar-height);min-height:3px;background:linear-gradient(180deg,#38b2ac,#2c7a7b);border-radius:8px 8px 0 0}.warehouse-detail-report-card{margin-top:18px}.warehouse-detail-report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.warehouse-detail-report-header h2{margin-bottom:8px}.warehouse-detail-report-header p{margin:0;color:#4a5568;font-weight:600}.warehouse-detail-report-header .warehouse-form-field{width:min(280px,100%)}.warehouse-detail-chart-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:18px;align-items:stretch}.warehouse-line-chart-wrap{position:relative;min-width:0;overflow-x:auto;overflow-y:visible;padding:8px;background:#f9fbfc;border:1px solid #e8eef2;border-radius:12px}.warehouse-line-chart{display:block;width:100%;min-width:680px;height:auto}.warehouse-line-chart-axis{stroke:#a0aec0;stroke-width:1.5}.warehouse-line-chart-grid{stroke:#e2e8f0;stroke-width:1}.warehouse-line-chart-label{fill:#4a5568;font-size:11px;font-weight:700}.warehouse-line-chart-line{stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.warehouse-line-chart-point{cursor:pointer;stroke:#fff;stroke-width:2}.warehouse-line-chart-tooltip{position:absolute;left:min(var(--tooltip-x) + 18px,100% - 180px);top:max(10px,var(--tooltip-y) - 18px);z-index:5;display:grid;gap:3px;min-width:160px;padding:10px 12px;color:#2d3748;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 6px 20px #00000026;pointer-events:none}.warehouse-line-chart-tooltip span{color:#4a5568;font-size:12px;font-weight:700}.warehouse-line-chart-tooltip b{color:#2c7a7b}.warehouse-line-chart-legend{display:grid;align-content:start;gap:10px;max-height:360px;overflow-y:auto;padding:12px;background:#f9fbfc;border:1px solid #e8eef2;border-radius:12px}.warehouse-line-chart-legend label{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:8px;color:#2d3748;font-size:13px;font-weight:700;cursor:pointer}.warehouse-line-chart-legend label.muted{color:#4a5568;opacity:.65}.warehouse-line-chart-legend input{width:auto!important;min-height:0!important;box-shadow:none!important}.warehouse-line-chart-legend-color{width:11px;height:11px;background:var(--line-color);border-radius:999px}.warehouse-production-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.warehouse-production-header h1{margin-bottom:8px}.warehouse-production-header p{margin:0;color:#4a5568;font-weight:600}.warehouse-production-config-warning,.warehouse-production-problems{margin-bottom:18px;padding:14px 16px;color:#744210;background:#fffaf0;border:1px solid #fbd38d;border-radius:10px}.warehouse-production-summary article.has-problems{background:#fff5f5;border-color:#feb2b2}.warehouse-production-summary small{margin-top:5px;font-size:15px}.warehouse-production-last-sync{margin:0 0 16px;color:#4a5568;font-size:13px;font-weight:700}.warehouse-production-problems{color:#2d3748}.warehouse-production-problems h2{margin:0 0 10px;font-size:17px}.warehouse-production-problems ul{display:grid;gap:8px;margin:0;padding-left:20px}.warehouse-production-problems li span{display:block;margin-top:2px;color:#9c4221}.warehouse-production-search{width:min(460px,100%);margin-bottom:16px}.warehouse-production-table{min-width:880px}.warehouse-production-sort{width:auto!important;min-height:0!important;padding:0!important;color:inherit!important;background:transparent!important;border:none!important;box-shadow:none!important;font:inherit!important}.warehouse-production-sort:hover:not(:disabled),.warehouse-production-sort:focus-visible{color:#fff!important;background:transparent!important;transform:none!important}.warehouse-production-status,.warehouse-reservation-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.warehouse-production-status.in_work{color:#744210;background:#fefcbf}.warehouse-production-status.ready,.warehouse-reservation-status.reserved{color:#276749;background:#c6f6d5}.warehouse-reservation-status.pending{color:#2a4365;background:#bee3f8}.warehouse-reservation-status.shortage,.warehouse-reservation-status.not_found{color:#9b2c2c;background:#fed7d7}@media(max-width:900px){.warehouse-page{flex-direction:column;padding:20px 16px;overflow-x:hidden}.warehouse-sidebar{top:72px;left:10px;width:min(320px,100vw - 20px)}.warehouse-sidebar-nav{flex-direction:row;flex-wrap:wrap}.warehouse-sidebar-button{flex:1 1 160px;text-align:center}.warehouse-content{width:100%}.warehouse-tab{padding:18px}.warehouse-form,.warehouse-search-form,.warehouse-shift,.warehouse-category-create,.warehouse-category-row{grid-template-columns:1fr}.warehouse-category-actions{flex-direction:column}.warehouse-report-grid{grid-template-columns:1fr}.warehouse-reports-header,.warehouse-production-header{flex-direction:column}.warehouse-detail-report-header,.warehouse-detail-chart-layout{grid-template-columns:1fr}.warehouse-detail-report-header{display:grid}}@media(max-width:600px){.warehouse-sidebar-nav,.warehouse-toolbar{align-items:stretch;flex-direction:column}.warehouse-status-filter{width:100%}.warehouse-page{padding:14px 10px}.warehouse-tab{padding:14px}.warehouse-page button:not(.warehouse-sidebar-button):not(.warehouse-sidebar-toggle){width:100%}.warehouse-report-bar-row{grid-template-columns:1fr}.warehouse-photo-cell,.shoe-photo-cell{width:220px;min-width:220px}.warehouse-photo-cell.compact,.shoe-photo-cell.compact{width:110px;min-width:110px}.warehouse-shift-row{grid-template-columns:1fr auto auto}.warehouse-shift-name{grid-column:1/-1}}.footer{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:15px 20px;background-color:#f8f9fa;border-top:2px solid #007bff;box-shadow:0 -2px 8px #0000001a;z-index:1000;gap:20px}.footer-nav{display:flex;gap:20px}.footer-btn{padding:10px 25px;font-size:16px;font-weight:600;color:#333;background-color:#e9ecef;border:2px solid #dee2e6;border-radius:6px;cursor:pointer;transition:all .3s ease;min-width:150px}.footer-btn:hover{background-color:#dee2e6;border-color:#007bff;transform:translateY(-2px)}.footer-btn.active{background-color:#007bff;color:#fff;border-color:#0056b3;box-shadow:0 2px 8px #007bff4d}.footer-btn.active:hover{background-color:#0056b3}.footer-user{display:flex;align-items:center;gap:15px;margin-left:auto}.user-info{font-size:14px;color:#555;font-weight:500}.btn-logout{padding:8px 16px;background-color:#dc3545;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:600;transition:background-color .3s}.btn-logout:hover{background-color:#c82333}.btn-logout:active{transform:scale(.98)}body{margin-bottom:80px}:root{--primary: #38b2ac;--secondary: #2c7a7b;--bg-muted: #f0f4f8;--border: #e8eef2;--text-dark: #2d3748;--shadow: 0 4px 16px rgba(0,0,0,.08)}.tg-menu{display:flex;flex-direction:column;gap:12px;width:100%;max-width:420px;margin:24px auto;padding:16px;background:#fff;border-radius:12px;border:1px solid var(--border);box-shadow:var(--shadow);box-sizing:border-box}.tg-menu .tg-btn,.tg-menu .tg-link{display:block;width:100%;height:44px;padding:10px 14px;border-radius:8px;font-weight:700;text-align:center;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;font-size:15px;box-sizing:border-box}.tg-menu .tg-btn,.tg-menu .tg-btn.enabled{background:linear-gradient(135deg,var(--primary) 0%,var(--secondary) 100%);color:#fff;border:none;box-shadow:0 2px 8px #38b2ac2e}.tg-menu .tg-btn.disabled{background:#f7fafc;color:var(--text-dark);border:1.5px solid var(--border);box-shadow:none}.tg-menu .tg-btn.enabled:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #38b2ac3d}.tg-menu .tg-btn.disabled:hover{background:#eef3f6}.tg-menu .tg-btn{transition:all .22s ease}.tg-menu .tg-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #38b2ac3d}.tg-menu .tg-link{background:var(--bg-muted);color:var(--text-dark);border:1.5px solid var(--border)}.tg-menu .tg-link:hover{background:#e8eef1;border-color:var(--primary)}@media(max-width:600px){.tg-menu{margin:14px 12px;padding:12px}.tg-menu .tg-btn,.tg-menu .tg-link{height:40px;font-size:14px}}:root{--primary: #38b2ac;--secondary: #2c7a7b;--bg-muted: #f7fafc;--border: #e8eef2;--text: #2d3748}.tg-promo-form{max-width:720px;margin:20px auto;padding:20px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 6px 20px #0000000a;display:flex;flex-direction:column;gap:16px}.tg-field{display:flex;flex-direction:column;gap:8px}.tg-label{font-weight:700;color:var(--text);font-size:14px}.tg-textarea{min-height:120px;padding:12px;border-radius:8px;border:1.5px solid var(--border);font-size:14px;resize:vertical}.tg-file-input{font-size:14px}.tg-datetime{padding:10px;border-radius:8px;border:1.5px solid var(--border)}.tg-error{color:#c43;font-size:13px}.tg-images-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.tg-image-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;background:var(--bg-muted);border-radius:8px;border:1px solid var(--border)}.tg-image-name{color:var(--text);font-weight:600}.tg-remove-btn{background:transparent;border:none;color:#c53030;cursor:pointer;font-weight:700}.tg-submit-btn{height:44px;border-radius:8px;border:none;color:#fff;font-weight:700;background:linear-gradient(135deg,var(--primary) 0%,var(--secondary) 100%);cursor:pointer;box-shadow:0 6px 18px #38b2ac29}.tg-submit-btn:hover{transform:translateY(-2px)}@media(max-width:600px){.tg-promo-form{padding:12px;margin:12px}}.triggers-section{position:relative;padding:16px}.triggers-section,.triggers-section *{box-sizing:border-box}.triggers-section h1{font-size:1.4rem;margin:0 0 12px;text-transform:uppercase;letter-spacing:.02em}.triggers-section ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}.trigger-list-item{border:1px solid #e6e6e6;padding:12px;border-radius:8px;background:#fff;width:100%;max-width:100%;overflow:hidden}.trigger-item{display:grid;grid-template-columns:minmax(120px,160px) minmax(0,1fr) minmax(0,220px) auto;gap:16px;align-items:start;width:100%;min-width:0;grid-auto-rows:min-content}.trigger-title{font-size:1.1rem;margin:0;text-transform:uppercase;flex:0 0 160px}.trigger-item>header{grid-column:1 / 2}.trigger-text-container{grid-column:2 / 3;min-width:0;display:flex;flex-direction:column;gap:8px}.trigger-item .trigger-images{grid-column:3 / 4}.trigger-item .trigger-actions{grid-column:4 / 5}.trigger-text{margin:0;width:100%;white-space:normal;word-break:break-word;overflow-wrap:anywhere}.trigger-text.truncated{max-height:400px;overflow:hidden}.trigger-text.expanded{overflow:visible}.trigger-expand-btn{align-self:flex-start;padding:4px 8px;border-radius:4px;border:1px solid #0b76ff;background:transparent;color:#0b76ff;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s,color .2s}.trigger-expand-btn:hover{background-color:#0b76ff;color:#fff}.trigger-images ul{list-style:none;padding:0;margin:8px 0 0;display:flex;gap:8px}.trigger-images{flex:0 0 auto}.trigger-images ul{max-width:220px}.trigger-images img{display:block}.trigger-images img{width:72px;height:72px;object-fit:cover;border-radius:6px;display:block}.trigger-actions{display:flex;gap:8px;margin-left:auto;flex-direction:column;flex:0 0 auto}.trigger-actions button{padding:6px 10px;border-radius:6px;border:1px solid #ccc;background:#fafafa;cursor:pointer}.floating-add{position:fixed;right:24px;bottom:24px;background:#0b76ff;color:#fff;border:none;padding:12px 18px;border-radius:999px;box-shadow:0 6px 18px #0b76ff2e;cursor:pointer}:root{--primary: #38b2ac;--border: #e8eef2;--text: #2d3748}.tg-wrapper{width:100%;height:100%;margin:18px auto;padding:12px 16px;background:transparent}.tg-back-link{display:inline-block;margin-bottom:12px;padding:8px 12px;background:#fff;border:1px solid var(--border);color:var(--text);border-radius:8px;text-decoration:none;font-weight:700}.tg-back-link:hover{box-shadow:0 6px 18px #0000000d;transform:translateY(-2px)}.tg-content{background:#fff;padding:14px;border-radius:10px;border:1px solid var(--border)}
