:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20251f;background:#f5f6f2;font-size:14px;--muted:#65705f;--line:#dce0d5;--green:#244a32;--soft:#e9efdf}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,.button{cursor:pointer;border:1px solid transparent;border-radius:6px;padding:11px 16px;font-weight:600;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:6px}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--green);color:white}.primary:hover{background:#183822}.secondary{background:white;border-color:var(--line);color:#303a2d}.secondary:hover{background:#edf0e8}.text-button{padding:6px 8px;background:transparent;color:var(--muted)}.text-button:hover{color:var(--green);background:var(--soft)}a{color:var(--green);text-underline-offset:3px}header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fff;border-bottom:1px solid var(--line)}.wordmark{font-weight:800;letter-spacing:-.04em;font-size:24px;color:#20251f;text-decoration:none;display:flex;align-items:center;gap:20px}.wordmark span{font-size:13px;font-weight:500;letter-spacing:0;border-left:1px solid var(--line);padding-left:20px;color:var(--muted)}.account{display:flex;gap:10px;align-items:center}main{max-width:1600px;margin:auto;padding:42px}.title-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}h1{font-size:30px;letter-spacing:-.035em;margin:0 0 10px;font-weight:650}h2{font-size:23px;letter-spacing:-.025em;margin:0 0 10px}h3{font-size:17px;margin:0 0 16px}p{line-height:1.55;margin:0 0 12px}.muted{color:var(--muted)}.small{font-size:12px}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px}.tabs button{border-radius:0;padding:12px 0 16px;background:transparent;color:var(--muted);border-bottom:2px solid transparent}.tabs button.selected{border-bottom-color:var(--green);color:var(--green)}.tabs span{font-size:12px;margin-left:4px;background:#e5e9df;padding:2px 6px;border-radius:4px;font-variant-numeric:tabular-nums}.filters{display:flex;gap:16px;align-items:end}.filters label{min-width:170px}.filters .search{flex:1}.filters input,.filters select{background:white}label{display:block;font-size:12px;font-weight:600;color:#475140;margin-bottom:16px}input,select,textarea{width:100%;display:block;margin-top:7px;border:1px solid #bbc4b4;border-radius:5px;padding:11px 12px;background:white;color:#20251f;line-height:1.35;min-height:42px}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#71796c;font-weight:400}input,textarea{caret-color:var(--green)}.filters label{margin-bottom:0}.filters button{height:42px}.list-meta{display:flex;justify-content:space-between;margin:23px 0 12px;font-size:12px}.table-wrap{border-top:1px solid var(--line);background:white;border-bottom:1px solid var(--line);overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{color:var(--muted);font-weight:500;font-size:12px;background:#eef1e8;padding:13px 18px;white-space:nowrap}td{padding:20px 18px;border-top:1px solid #e7eae2;vertical-align:top;max-width:300px;line-height:1.5}tr:hover td{background:#fafbf8}td strong{font-size:14px;display:block;font-weight:600}td small{display:block;color:var(--muted);margin-top:4px}td .reason{max-width:300px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.badge{display:inline-block;border-radius:4px;background:#edf0e8;color:#4c5845;padding:4px 8px;font-size:12px;white-space:nowrap}.badge.ready,.badge.sold{background:#e2efdf;color:#2a5025}.badge.stock,.badge.review{background:#f2ecda;color:#705314}.badge.ordering{background:#e6ebf5;color:#354c77}.overdue{color:#a63f26;font-weight:600}#empty{text-align:center;padding:65px 24px 50px;background:white;border-bottom:1px solid var(--line)}#empty p{color:var(--muted)}#empty .small{margin-top:24px}.empty-mark{width:44px;height:44px;border:1px solid #abb9a1;border-radius:50%;margin:0 auto 22px;position:relative}.empty-mark:after,.empty-mark:before{content:"";position:absolute;background:#6f8462;left:13px;right:13px;height:1px;top:21px}.empty-mark:after{transform:rotate(90deg)}footer{padding:15px 42px 28px;color:var(--muted);font-size:12px;display:flex;justify-content:space-between;gap:20px}.error{color:#a22d23;font-weight:500}.error:empty{display:none}.required{color:#65705f}.notice{padding:12px;background:#f7f0db;color:#695323;font-size:13px;border-radius:5px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.form-actions #claim{margin-right:auto}dialog{border:none;border-radius:12px;padding:0;max-height:92dvh;width:850px;max-width:calc(100vw - 32px);box-shadow:0 24px 80px #14201033;background:#fff;color:#20251f}dialog::backdrop{background:#15201166}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:22px 28px;position:sticky;top:0;background:white;z-index:1}.dialog-head h2{margin:0}.dialog-head p{margin-bottom:5px}.editor-body{padding:24px 28px}#activity{border-top:1px solid var(--line);margin-top:28px;padding-top:26px}#events{list-style:none;padding:0;margin:25px 0 0}#events li{padding:16px 0;border-top:1px solid #e7eae2}#events .event-body{white-space:pre-wrap;margin-top:7px;line-height:1.55;overflow-wrap:anywhere}#events small{color:var(--muted)}#settings{width:520px}#settings-body{padding:24px 28px}.credentials{white-space:pre-wrap;padding:16px;background:var(--soft);font-family:inherit;overflow-wrap:anywhere}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#233b27;color:white;padding:14px 24px;border-radius:7px;z-index:10;box-shadow:0 8px 24px #0002}.login-wrap{max-width:420px;margin:12vh auto;padding:25px}.login-wrap .wordmark{margin-bottom:55px}.login-wrap form{margin-top:30px}.login-wrap .primary{width:100%}:focus-visible{outline:3px solid #829d67;outline-offset:3px}::selection{background:#d5e7bf;color:#1c361e}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}td,small{font-variant-numeric:tabular-nums}button,input,select,a{touch-action:manipulation}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background:#bec8b6;border-radius:8px}
@media(max-width:900px){header{padding:18px 22px;height:auto;align-items:flex-start;gap:20px}.account{justify-content:flex-end;flex-wrap:wrap;gap:4px}#user-name{width:100%;text-align:right}main{padding:28px 22px}.title-row{align-items:flex-start}.filters{flex-wrap:wrap}.filters .search{flex-basis:100%}.filters label{flex:1}.title-row p{max-width:32ch}footer{padding:20px 22px;flex-direction:column}table{min-width:920px}}@media(max-width:560px){.wordmark{font-size:20px;gap:10px}.wordmark span{display:none}.account .text-button{font-size:11px;padding:5px}h1{font-size:26px}.title-row{display:block}.title-row .primary{margin-top:12px;width:100%}.tabs{gap:18px;overflow:auto;white-space:nowrap}.filters label{min-width:120px}.filters #refresh{width:100%}.list-meta{gap:12px}.form-grid{grid-template-columns:1fr}.dialog-head{padding:18px}.editor-body{padding:20px 18px}.form-actions{flex-wrap:wrap}.form-actions button,.form-actions a{flex:1}dialog{max-width:calc(100vw - 16px);max-height:96dvh}.dialog-head h2{font-size:20px}#empty{padding:38px 16px}.list-meta #refresh-time{text-align:right}}
@media(max-width:560px){.table-wrap{overflow:visible;background:transparent;border:none}table{min-width:0;display:block}thead{display:none}tbody{display:block}tr{display:grid;grid-template-columns:1fr 1fr;background:white;border:1px solid var(--line);border-radius:6px;margin-bottom:12px;padding:16px;gap:12px}td{display:block;padding:0;border:0;max-width:none;overflow-wrap:anywhere}td:first-child,td:nth-child(2),td:last-child{grid-column:1/-1}td:nth-child(2){padding-bottom:12px;border-bottom:1px solid var(--line)}td:first-child strong{font-size:16px}td:last-child button{width:100%}td:nth-child(5){grid-column:1/-1}td:nth-child(5):before{content:'Следующее действие: ';color:var(--muted);font-size:12px}tr:hover td{background:transparent}.tabs{gap:15px;font-size:12px}.tabs button{padding-bottom:13px}.tabs span{margin-left:0}}
