*{box-sizing:border-box}html{min-height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif}body{margin:0;min-height:100%;background:radial-gradient(circle at top left,rgba(255,255,255,.12),transparent 32%),linear-gradient(135deg,#0f172a,#111827 42%,#1f2937);color:#111827}button,input,select{font:inherit}.login-page,.dashboard-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card,.dashboard-card{width:100%;background:#fffffff7;border-radius:28px;box-shadow:0 24px 80px #00000047}.login-card{max-width:460px;padding:28px}.dashboard-card{max-width:920px;padding:30px}.header-block{margin-bottom:24px}.badge{display:inline-block;padding:6px 12px;border-radius:999px;background:#111827;color:#fff;font-size:12px;font-weight:800;letter-spacing:.12em;margin-bottom:14px}h1{margin:0;font-size:clamp(28px,5vw,38px);line-height:1.1;color:#111827}p{margin:10px 0 0;color:#4b5563;font-size:15px;line-height:1.5}.form{display:grid;gap:16px}.form label{display:grid;gap:8px;color:#111827;font-size:14px;font-weight:700}.form input{height:50px;border-radius:14px;border:1px solid #d1d5db;padding:0 14px;font-size:16px;outline:none;width:100%}.form input:focus,.amount-input:focus,.supplier-select:focus{border-color:#111827;box-shadow:0 0 0 3px #1118271f}.form button,.create-button{height:52px;border-radius:16px;border:none;background:#111827;color:#fff;font-size:16px;font-weight:800;cursor:pointer}.form button:disabled,.create-button:disabled{opacity:.45;cursor:not-allowed}.error,.page-error{margin-top:18px;background:#fee2e2;color:#991b1b;border-radius:14px;padding:14px 16px;font-size:14px;line-height:1.5}.dashboard-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:28px}.logout-button{border:1px solid #d1d5db;background:#fff;color:#111827;height:42px;padding:0 16px;border-radius:14px;font-weight:700;cursor:pointer}.supplier-panel{margin-bottom:18px;padding:16px;border:1px solid #e5e7eb;border-radius:18px;background:#f9fafb}.supplier-label{display:grid;gap:8px;color:#111827;font-size:14px;font-weight:800}.supplier-select-wrap{position:relative}.supplier-select{width:100%;height:52px;border-radius:14px;border:1px solid #d1d5db;background:#fff;color:#111827;padding:0 44px 0 14px;font-size:17px;font-weight:800;outline:none;appearance:none;cursor:pointer}.supplier-select-wrap:after{content:"▾";position:absolute;right:16px;top:50%;transform:translateY(-52%);color:#6b7280;font-size:18px;pointer-events:none}.stores-list{display:grid;gap:12px;margin-top:8px}.store-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(220px,280px) 52px 110px;gap:14px;align-items:center;padding:14px;border:1px solid #e5e7eb;border-radius:18px;background:#f9fafb}.store-main{display:flex;align-items:center;gap:12px;min-width:0}.checkbox{width:22px;height:22px;accent-color:#111827;flex:0 0 auto}.store-name{font-size:17px;font-weight:800;color:#111827;overflow:hidden;text-overflow:ellipsis}.amount-block{position:relative}.amount-input{width:100%;height:50px;border-radius:14px;border:1px solid #d1d5db;background:#fff;padding:0 42px 0 14px;font-size:19px;font-weight:800;outline:none;text-align:right}.rub-symbol{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:#6b7280;font-weight:800}.file-status-block{display:flex;align-items:center;justify-content:center}.file-status-button{width:42px;height:42px;border:none;border-radius:14px;color:#fff;font-size:22px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 8px 20px #11182729}.file-status-green{background:#16a34a}.file-status-yellow{background:#d97706}.file-status-red{background:#dc2626}.file-status-button:active{transform:translateY(1px)}.result-block{display:flex;justify-content:flex-end;min-height:38px;align-items:center}.download-link{display:inline-flex;height:38px;align-items:center;justify-content:center;padding:0 14px;border-radius:12px;background:#dcfce7;color:#166534;font-weight:800;text-decoration:none}.error-link{border:none;background:transparent;color:#dc2626;font-weight:900;cursor:pointer;padding:8px 0}.error-details{margin-top:18px;border-radius:16px;border:1px solid #fecaca;background:#fff1f2;overflow:hidden}.error-details-header{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;color:#991b1b;border-bottom:1px solid #fecaca}.error-details-header button{border:none;background:#fff;color:#991b1b;border-radius:10px;padding:7px 10px;font-weight:700;cursor:pointer}.error-details pre{margin:0;padding:14px;color:#7f1d1d;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px}.create-button{width:100%;margin-top:22px}.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:18px;background:#0f172a9e;backdrop-filter:blur(5px)}.file-modal{width:100%;max-width:480px;background:#fff;border-radius:24px;padding:22px;box-shadow:0 30px 100px #00000061}.file-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.file-modal h2{margin:0;color:#111827;font-size:28px;line-height:1.15}.modal-close-button{width:42px;height:42px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#111827;font-size:28px;line-height:1;cursor:pointer}.periods-list{display:grid;gap:10px}.period-row{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;padding:12px;border-radius:14px;background:#f9fafb;border:1px solid #e5e7eb}.period-icon{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:#fff;font-size:19px;font-weight:900}.period-ok{background:#16a34a}.period-error{background:#dc2626}.period-text{font-size:17px;font-weight:800;color:#111827}.upload-message{margin-top:14px;padding:12px 14px;border-radius:14px;font-size:14px;line-height:1.45;font-weight:700}.upload-message-idle{background:#f3f4f6;color:#374151}.upload-message-uploading{background:#fffbeb;color:#92400e}.upload-message-success{background:#dcfce7;color:#166534}.upload-message-error{background:#fee2e2;color:#991b1b}.upload-message-main{display:flex;align-items:center;gap:10px}.upload-spinner{width:18px;height:18px;border:3px solid rgba(146,64,14,.25);border-top-color:#92400e;border-radius:999px;flex:0 0 auto;animation:upload-spin .8s linear infinite}@keyframes upload-spin{to{transform:rotate(360deg)}}.upload-files-list{display:grid;gap:6px;margin-top:10px}.upload-file-name{padding:7px 9px;border-radius:10px;background:#ffffff9e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.modal-close-button:disabled{opacity:.4;cursor:not-allowed}.hidden-file-input{display:none}.add-files-button{width:100%;height:52px;margin-top:18px;border:none;border-radius:16px;background:#111827;color:#fff;font-size:16px;font-weight:900;cursor:pointer}.add-files-button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:760px){.login-page,.dashboard-page{padding:14px;align-items:flex-start}.login-card,.dashboard-card{border-radius:22px;padding:20px;margin-top:14px}.dashboard-header{flex-direction:column;gap:16px}.logout-button{width:100%}.supplier-panel{padding:14px}.supplier-select{height:54px;font-size:18px}.store-row{grid-template-columns:1fr;gap:10px;padding:14px}.file-status-block{justify-content:stretch}.file-status-button{width:100%;height:46px}.file-modal{border-radius:22px;padding:18px}.file-modal h2{font-size:24px}.store-main{min-height:32px}.amount-input{height:52px;font-size:22px}.result-block{justify-content:stretch}.download-link{width:100%}.error-link{width:100%;background:#fee2e2;border-radius:12px}}@media(min-width:761px)and (max-width:1024px){.dashboard-card{max-width:760px}.store-row{grid-template-columns:minmax(170px,1fr) minmax(190px,240px) 52px 100px}}.store-row-running{border-color:#f59e0b;background:#fffbeb;box-shadow:0 0 0 3px #f59e0b29}.result-pending{color:#6b7280;font-size:13px;font-weight:800}.result-running{display:inline-flex;align-items:center;gap:7px;color:#92400e;font-size:13px;font-weight:900}.mini-spinner{width:15px;height:15px;border:3px solid rgba(146,64,14,.24);border-top-color:#92400e;border-radius:999px;animation:upload-spin .8s linear infinite}.create-job-status{margin-top:18px;padding:14px 16px;border-radius:16px;background:#fffbeb;color:#92400e;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:900;line-height:1.45}
