@charset "UTF-8";
:root{--bg:#f5f4f2;--surface:#fff;--ink:#181818;--muted:#747473;--line:#e5e3df;--soft:#efeeeb;--inverse:#fff;--shadow:0 16px 50px #0000000a;color-scheme:light;font-family:Tahoma,"Segoe UI",sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}body.dark{--bg:#131313;--surface:#1e1e1e;--ink:#f2f1ee;--muted:#a1a19d;--line:#333331;--soft:#282826;--inverse:#151515;--shadow:none;color-scheme:dark}button,input,select{font:inherit}button{cursor:pointer}button,a,input{touch-action:manipulation}button{color:inherit}button:disabled{opacity:.45;cursor:wait}button:focus-visible,input:focus-visible{outline:2px solid var(--ink);outline-offset:3px}svg{width:22px;height:22px;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:750;letter-spacing:-1px;line-height:1.5}h2{font-size:18px}h3{font-size:15px}small,.muted{color:var(--muted);font-size:12px;line-height:1.9}.app-shell{max-width:1180px;margin:auto;min-height:100dvh}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 34px;background:var(--surface)}.brand{display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;background:var(--ink);color:var(--inverse);width:43px;height:47px;border-radius:13px}.brand-mark svg{height:34px;width:30px}.brand b{font-size:17px}.brand small{display:block;font-size:9px;letter-spacing:2px;line-height:1.8}.toolbar{display:flex;gap:8px;align-items:center}.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:10px}.icon-btn svg{width:20px;height:20px}.role-chip,.badge{border-radius:7px;background:var(--soft);padding:5px 9px;font-size:11px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.badge.strong{background:var(--ink);color:var(--inverse)}.content{padding:30px 34px 110px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:9px;color:var(--muted)}.subtitle{color:var(--muted);font-size:12px;line-height:1.9;margin-top:6px}.button{border:1px solid var(--line);background:var(--surface);border-radius:12px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;font-weight:600;white-space:nowrap}.button.primary{background:var(--ink);color:var(--inverse);border-color:var(--ink)}.button.soft{background:var(--soft);border-color:transparent}.button.wide{width:100%}.button.small{min-height:38px;padding:8px 11px;font-size:12px}.text-button{border:0;background:transparent;padding:8px 0;color:var(--ink);font-weight:600;font-size:12px;display:inline-flex;align-items:center;gap:5px;min-height:40px}.text-button svg{width:17px}.segmented{display:flex;gap:4px;background:var(--soft);padding:4px;border-radius:12px;width:fit-content;margin-bottom:22px}.segmented button{padding:10px 24px;border:0;background:transparent;border-radius:9px;font-size:12px}.segmented button.active{background:var(--surface);box-shadow:0 2px 5px #00000008;font-weight:700}.stats{display:grid;grid-template-columns:1.55fr 1fr 1fr;gap:14px;margin-bottom:24px}.stat{border:1px solid var(--line);border-radius:20px;padding:25px;background:var(--surface);min-height:157px}.stat.hero{background:#20201f;color:#fff;border-color:#20201f;position:relative;overflow:hidden}.stat.hero:after{content:"";position:absolute;width:150px;height:150px;border:1px solid #ffffff16;border-radius:50%;left:-40px;top:-35px}.stat.hero small{color:#bcbcb5}.stat-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:22px}.stat-label svg{opacity:.6}.value{font-size:32px;letter-spacing:-1.3px;font-weight:650;font-variant-numeric:tabular-nums}.value span{font-size:13px;letter-spacing:0;font-weight:400;margin-right:4px}.stat-footer{margin-top:8px;font-size:10px;color:var(--muted)}.hero .stat-footer{color:#bcbcb5}.panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px;margin-bottom:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.panel-head h2{font-size:16px}.split{display:grid;grid-template-columns:1.6fr 1fr;gap:18px}.list-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.grow{flex:1;min-width:0}.rank{font-size:12px;color:var(--muted);width:22px}.list-row b{font-size:13px;line-height:1.8;display:block}.list-row small{font-size:11px}.track{height:4px;background:var(--soft);border-radius:10px;margin-top:8px;overflow:hidden}.track i{display:block;height:100%;background:var(--ink);border-radius:10px}.number{font-size:16px;font-weight:600;white-space:nowrap}.aside-summary{border-top:1px solid var(--line);margin-top:16px;padding-top:17px;display:flex;align-items:center;justify-content:space-between}.notice{border:1px solid var(--line);border-radius:13px;padding:13px 16px;display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.9;background:var(--soft);margin-bottom:17px}.notice svg{margin-top:3px;width:18px;height:18px}.notice.slim{padding:10px 13px;font-size:11px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:1180px;display:flex;align-items:center;justify-content:center;background:var(--surface);border-top:1px solid var(--line);padding:10px 20px max(12px,env(safe-area-inset-bottom));z-index:20;gap:6px}.bottom-nav button{background:transparent;border:0;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);height:48px;border-radius:12px;flex:1;max-width:190px;font-size:12px}.bottom-nav button.active{color:var(--ink);background:var(--soft);font-weight:700}.bottom-nav svg{width:20px}.searchbar{position:relative;display:flex;align-items:center;gap:10px;margin-bottom:22px}.searchbar .search-field{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 14px;flex:1}.searchbar input{background:transparent;border:0;outline:0;width:100%;height:47px;color:var(--ink);font-size:12px}.searchbar svg{color:var(--muted);width:19px}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product-card{border-radius:18px;border:1px solid var(--line);background:var(--surface);overflow:hidden}.product-image{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1.05;border:0;background:var(--soft);padding:0}.product-image>svg{width:40%;height:67%;opacity:.6}.product-image img{width:100%;height:100%;position:absolute;object-fit:cover}.product-image .badge{position:absolute;top:10px;right:10px;background:var(--surface);font-size:10px;z-index:1}.product-info{padding:16px}.product-info h3{font-size:13px;line-height:1.8}.product-info .muted{font-size:10px}.product-bottom{display:flex;justify-content:space-between;align-items:center;margin:12px 0 4px;gap:8px}.product-bottom b{font-size:14px}.product-actions{border-top:1px solid var(--line);margin-top:12px;padding-top:8px;display:flex;justify-content:space-between;gap:5px}.product-actions button{font-size:10px}.stock-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.stock-summary>div{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.stock-summary b{display:block;font-size:26px;margin-top:8px}.stock-row{display:flex;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.stock-row:last-child{border-bottom:0}.thumb{width:54px;height:64px;border-radius:10px;object-fit:cover;background:var(--soft);flex-shrink:0}.thumb.placeholder{display:grid;place-items:center}.thumb svg{width:28px;height:40px}.row-actions{display:flex;gap:7px}.empty{text-align:center;padding:40px 18px;color:var(--muted);line-height:2}.empty svg{width:44px;height:44px;opacity:.6;margin-bottom:10px}.empty h3{color:var(--ink);margin-bottom:5px}.empty .button{margin-top:15px}.invoice-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.invoice-tabs{display:flex;align-items:center;gap:8px;overflow-x:auto;padding-bottom:12px;margin-bottom:12px}.invoice-tabs button{flex-shrink:0}.invoice-tabs .selected{background:var(--ink);color:var(--inverse);border-color:var(--ink)}.scanner-button{width:100%;border:1px dashed var(--muted);border-radius:14px;background:var(--soft);padding:23px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px;font-weight:600}.scanner-button svg{width:27px;height:27px}.scan-manual{display:flex;gap:8px;margin:12px 0 20px}.scan-manual input{min-width:0;flex:1;margin:0;direction:ltr}.cart-item{display:flex;gap:10px;border-bottom:1px solid var(--line);padding:17px 0;align-items:center}.quantity{display:flex;align-items:center;gap:12px;margin-top:9px}.quantity button{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:17px}.cart-summary{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.cart-summary>div{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.total{font-size:25px;font-weight:700}.catalog-mini{display:flex;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid var(--line);padding:14px 0;text-align:right;background:transparent}.catalog-mini .thumb{width:42px;height:50px}.catalog-mini b{font-size:12px;display:block}.sale-header{display:flex;justify-content:space-between;gap:12px;align-items:center}.sale-header b{font-size:14px}.sale-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:8px;font-size:11px;color:var(--muted)}.receipt-lines{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.receipt-lines>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:7px 0}.receipt-footer{display:flex;justify-content:space-between;margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:12px}.settings-row{display:flex;align-items:center;gap:13px;width:100%;padding:17px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:right}.settings-row:last-child{border:0}.settings-row span{flex:1}.settings-row b{display:block;font-size:13px}.settings-row small{font-size:11px}.avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--ink);color:var(--inverse);font-size:20px}.modal-shade{position:fixed;inset:0;background:#0009;z-index:60;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px)}.modal{background:var(--surface);border:1px solid var(--line);border-radius:22px;width:100%;max-width:510px;max-height:90dvh;overflow-y:auto;box-shadow:0 24px 90px #0003;padding:24px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-head h2{font-size:19px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:block;margin-bottom:15px}.form-grid .field{margin-bottom:0}.field>span{display:block;font-size:12px;margin-bottom:9px}.field input,.field select,input.input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:11px 12px;color:var(--ink);outline:none}.field input:focus{border-color:var(--ink)}.field small{font-size:10px;display:block;margin-top:5px}.modal-actions{display:flex;gap:10px;margin-top:23px}.modal-actions .button{flex:1}.photo-upload{border:1px dashed var(--line);background:var(--soft);border-radius:12px;width:100%;min-height:80px;display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:20px;font-size:12px}.photo-upload img{width:55px;height:65px;object-fit:cover;border-radius:7px}.photo-large{width:100%;max-height:65vh;object-fit:contain;touch-action:pinch-zoom}.modal p{font-size:13px;line-height:2;color:var(--muted)}.form-error{font-size:12px;line-height:1.8;border-right:3px solid var(--ink);padding-right:10px;margin:14px 0;display:none}.form-error.visible{display:block}#toast{position:fixed;bottom:93px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;max-width:90%;width:max-content;padding:14px 20px;border-radius:12px;background:var(--ink);color:var(--inverse);z-index:100;font-size:12px;line-height:1.8;box-shadow:var(--shadow);transition:all .2s}#toast.visible{transform:translate(-50%,0);opacity:1}.login-shell{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;max-width:1440px;margin:auto}.login-art{background:#20201f;color:#f2f0eb;position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:56px;overflow:hidden}.login-art:after{content:"";width:500px;height:500px;border:1px solid #ffffff15;border-radius:50%;position:absolute;bottom:-150px;left:-170px}.login-art .brand-mark{background:#f2f0eb;color:#20201f}.login-art .brand small{color:#aaa}.fashion-mark{height:260px;width:220px;align-self:center;opacity:.9;z-index:1;margin:40px 0}.login-art h1{font-size:38px;line-height:1.7;max-width:420px;font-weight:500;letter-spacing:-1.6px}.login-art p{font-size:12px;color:#aaa;line-height:2;margin-top:16px}.login-main{display:flex;align-items:center;justify-content:center;padding:45px;position:relative}.login-main form{width:100%;max-width:360px}.login-main .toolbar{position:absolute;top:28px;left:30px}.login-main h1{font-size:28px;margin-bottom:7px}.login-main .subtitle{margin-bottom:30px}.login-note{margin-top:26px;padding-top:22px;border-top:1px solid var(--line);text-align:center;font-size:10px;color:var(--muted);line-height:2}.login-mobile-brand{display:none}.currency-note{font-size:10px;margin-top:12px;text-align:center;color:var(--muted)}.success-mark{width:62px;height:62px;background:var(--ink);color:var(--inverse);border-radius:50%;display:grid;place-items:center;margin:12px auto 20px}.success-mark svg{width:30px;height:30px}.success-content{text-align:center}.success-content h2{margin-bottom:12px}.amount-large{font-size:30px;margin:18px 0;font-weight:700}.inline-status{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block;margin-left:4px}.mono{font-family:monospace;direction:ltr;unicode-bidi:isolate}.only-mobile{display:none}.archived{opacity:.6}.batch-row{padding:10px 0;border-bottom:1px solid var(--line);font-size:11px;line-height:2}
@media(min-width:1500px){.app-shell{margin-top:24px;border:1px solid var(--line);border-radius:25px;overflow:hidden;min-height:calc(100dvh - 48px)}}
@media(max-width:850px){.product-grid{grid-template-columns:repeat(3,1fr)}.stats{grid-template-columns:1.3fr 1fr 1fr}.stat{padding:20px}.value{font-size:27px}.split{grid-template-columns:1.3fr 1fr}.login-art{padding:35px}.login-art h1{font-size:30px}.login-main{padding:28px}.invoice-layout{grid-template-columns:1fr}.invoice-layout>.panel:last-child{display:none}}
@media(max-width:600px){.topbar{height:74px;padding:0 19px}.brand b{font-size:15px}.brand small{font-size:8px}.brand-mark{width:36px;height:41px;border-radius:10px}.brand-mark svg{width:24px;height:30px}.role-chip{display:none}.toolbar{gap:6px}.icon-btn{min-width:39px;min-height:39px;padding:9px;border-radius:11px}.content{padding:25px 18px 110px}.page-heading{margin-bottom:20px}h1{font-size:25px}.eyebrow{font-size:9px}.subtitle{font-size:11px}.page-heading>.button{padding:10px 12px;font-size:11px;min-height:42px}.segmented{width:100%;margin-bottom:17px}.segmented button{flex:1;padding:10px 0;font-size:11px}.stats{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:20px}.stat{padding:19px;border-radius:17px;min-height:128px}.stat.hero{grid-column:1/-1;min-height:166px;padding:23px}.hero .value{font-size:38px}.stat-label{margin-bottom:15px;font-size:11px}.stat-label svg{width:18px;height:18px}.value{font-size:26px}.value span{font-size:11px}.stat-footer{font-size:9px}.split{display:block}.panel{padding:19px;border-radius:17px;margin-bottom:16px}.panel-head{margin-bottom:13px}.panel-head h2{font-size:15px}.bottom-nav{padding:7px 6px max(8px,env(safe-area-inset-bottom));gap:2px}.bottom-nav button{flex-direction:column;gap:5px;height:55px;font-size:10px;border-radius:12px}.bottom-nav svg{width:21px;height:21px}.product-grid{grid-template-columns:repeat(2,1fr);gap:12px}.product-info{padding:12px}.product-info h3{font-size:12px}.product-bottom b{font-size:12px}.product-bottom{flex-wrap:wrap}.product-actions{gap:2px;flex-wrap:wrap}.product-actions button{font-size:10px;min-height:34px}.product-actions svg{width:14px}.product-image .badge{font-size:9px;top:8px;right:8px;padding:4px 6px}.stock-summary{gap:9px}.stock-summary>div{padding:15px 12px;border-radius:13px}.stock-summary small{font-size:10px}.stock-summary b{font-size:23px}.stock-row{gap:10px;flex-wrap:wrap}.stock-row .row-actions{width:100%;padding-right:64px}.stock-row .grow h3{font-size:12px}.stock-row .grow small{font-size:10px}.number{font-size:14px}.login-shell{display:block}.login-art{display:none}.login-main{min-height:100dvh;padding:80px 28px 40px}.login-mobile-brand{display:flex;margin-bottom:45px}.login-main .toolbar{top:26px;left:25px}.login-main h1{font-size:28px}.modal-shade{align-items:flex-end;padding:0}.modal{border-radius:23px 23px 0 0;max-height:92dvh;padding:23px 20px 30px}.form-grid{gap:12px}.form-grid .field>span{font-size:11px}.modal-head h2{font-size:18px}.only-mobile{display:inline-flex}.row-actions .button{font-size:11px}.receipt-lines>div{font-size:11px}.sale-header b{font-size:12px}.sale-header .number{font-size:13px}.invoice-tabs .button{font-size:11px}.scan-manual input{font-size:11px}.scan-manual button{font-size:11px;padding:10px 12px}.button{font-size:12px}.notice{font-size:11px}.searchbar{margin-bottom:17px}.list-row b{font-size:12px}.list-row small{font-size:10px}}
@media(max-width:600px){.icon-btn,.button.small{min-width:44px;min-height:44px}.quantity button{width:44px;height:44px}.product-actions button{min-height:44px;min-width:38px}.product-actions{gap:5px}.product-info .muted,.stat-footer,.currency-note{font-size:11px}.stock-row .grow small,.list-row small,.bottom-nav button{font-size:11px}.form-grid input{min-width:0}.stat .value{overflow-wrap:anywhere}.modal-actions{flex-wrap:wrap}.settings-row small{overflow-wrap:anywhere}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.filter-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.list-filters input,.list-filters select{min-width:0;width:100%}.filter-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.filter-actions .field{margin-bottom:0;flex:1;min-width:125px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0;font-size:12px}.pagination>div{display:flex;gap:8px}.preserve-text{white-space:pre-wrap;overflow-wrap:anywhere}.exchange-source{display:flex;justify-content:space-between;gap:16px;align-items:center}.exchange-source h2{margin-top:12px}.exchange-source p,.exchange-values p,.movement-row p{margin:10px 0;overflow-wrap:anywhere}.exchange-totals b{font-size:20px;overflow-wrap:anywhere}.field textarea{border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--surface);color:var(--ink);font:inherit;width:100%;resize:vertical}.batch-row .mono,.movement-row .mono{overflow-wrap:anywhere}.batch-row .text-button{display:flex}.exchange-values{margin:14px 0;padding:12px;background:var(--bg);border-radius:12px}.exchange-source .button{flex-shrink:0}.list-filters .muted{margin-top:14px}#exchange-difference{line-height:1.9}
@media(max-width:600px){.exchange-source{display:block}.exchange-source>.button{width:100%;margin-top:12px}.exchange-totals{grid-template-columns:1fr}.exchange-totals>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.exchange-totals b{font-size:19px}.filter-actions{gap:8px}.filter-actions .button{padding:12px}.pagination>span{width:100%}.pagination>div{width:100%;justify-content:space-between}.stock-row .row-actions{padding-right:0}.receipt-footer{flex-wrap:wrap;gap:10px}.exchange-values{font-size:12px}.exchange-source p{font-size:12px}.bottom-nav button{min-width:0}.field textarea{min-height:90px}}
.field .password-control{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:0;background:var(--surface)}.password-control input{border:0!important;min-width:0;flex:1;border-radius:0!important}.password-control button{background:transparent;border:0;border-right:1px solid var(--line);min-width:64px;min-height:46px;color:var(--ink);font:inherit;font-size:12px}.remember-choice{display:flex;align-items:center;gap:10px;margin:18px 0 24px;font-size:13px;cursor:pointer}.remember-choice input{width:21px;height:21px;accent-color:var(--ink)}.barcode-preview{display:block;width:100%;height:auto;background:white;border:1px solid var(--line);border-radius:14px;margin-bottom:18px}.date-presets{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.date-button{display:flex;align-items:center;gap:8px;text-align:right;min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:10px;width:100%;font:inherit;font-size:12px}.date-button svg{width:19px;height:19px;flex-shrink:0}.calendar-controls{display:flex;align-items:center;gap:6px;margin-bottom:16px}.calendar-controls select{min-width:0;flex:1;padding:10px 4px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;border-radius:10px}.calendar-controls .icon-btn:last-child svg{transform:rotate(180deg)}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:20px}.calendar-grid>span{text-align:center;font-size:12px;color:var(--muted);padding:6px}.calendar-day{min-width:0;min-height:44px;font:inherit;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px}.calendar-day.selected,.difference-direction .selected{background:var(--ink);color:var(--inverse);border-color:var(--ink)}.exchange-thumb{display:block;flex-shrink:0;width:76px;height:96px;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--bg);color:var(--muted)}.exchange-thumb img{height:100%;width:100%;object-fit:cover}.exchange-thumb svg{width:65%;height:70%;margin:auto}.exchange-thumb.large{width:96px;height:120px}.source-piece,.exchange-selected,.replacement-line{display:flex;gap:14px;align-items:center;margin:14px 0}.source-piece+.source-piece,.replacement-line+.replacement-line{padding-top:16px;border-top:1px solid var(--line)}.source-choice{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:right;border:0;background:none;color:var(--ink);font:inherit;flex:1;min-width:0}.source-choice>span,.source-choice small{color:var(--muted);font-size:12px}.source-choice .choose-text{display:flex;align-items:center;gap:7px;color:var(--ink);margin-top:5px;min-height:36px;font-weight:600}.choose-text svg{width:16px;height:16px}.source-receipt .sale-header h2{font-size:15px}.exchange-selected h3{margin-bottom:8px}.exchange-selected p{margin-bottom:6px;font-size:12px}.replacement-line .grow{min-width:0}.replacement-line small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.replacement-line>div:last-child{display:flex;align-items:flex-end;gap:8px;flex-direction:column;min-width:0}.replacement-line>div:last-child b{font-size:13px;overflow-wrap:anywhere}.cart-hint{padding:20px 0;line-height:1.9}.difference-direction{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.difference-direction .button{font-size:12px;padding:12px 6px}.sale-actions{display:flex;align-items:center;gap:12px;margin:16px 0}.sale-actions small{font-size:11px;color:var(--muted)}
@media(max-width:600px){.source-piece,.exchange-selected,.replacement-line{gap:10px}.exchange-thumb{width:68px;height:88px}.exchange-thumb.large{width:84px;height:108px}.source-choice b{font-size:13px}.source-choice>span,.source-choice small{font-size:11px}.calendar-controls{gap:4px}.calendar-controls .icon-btn{min-width:38px;padding:8px}.calendar-grid{gap:3px}.calendar-day{min-height:42px}.replacement-line .quantity{gap:5px}.replacement-line .quantity button{width:36px;height:42px}.replacement-line .grow b{font-size:12px}.replacement-line>div:last-child b{font-size:11px}.date-button{font-size:11px}.difference-direction .button{font-size:11px}}

.sale-price-field{display:block;margin-top:10px}.sale-price-field span{display:block;font-size:11px;margin-bottom:6px}.sale-price-field input{width:100%;max-width:200px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--bg);color:var(--ink)}.sale-price-field small{display:block;color:var(--ink);font-size:11px;margin-top:5px}.cart-item .grow{min-width:0}.cart-item>b{font-size:13px;overflow-wrap:anywhere;max-width:30%}.keyboard-open .bottom-nav{display:none}.keyboard-open .content{padding-bottom:24px}.keyboard-open #toast{top:12px;bottom:auto}.modal-shade{max-height:var(--viewport-height,100dvh)}.modal{max-height:calc(var(--viewport-height,100dvh) - 16px)}.field input,.field textarea,.sale-price-field input{scroll-margin-block:90px}.content{scroll-padding-bottom:120px}

.return-option.scanner-button{background:#fff2ed;border:1px solid #ecc5b8;color:#8f3625;display:flex;align-items:center;gap:14px;text-align:right;padding:18px;margin-bottom:20px;border-radius:16px}.return-option>span{flex:1;min-width:0}.return-option b,.return-option small{display:block}.return-option b{font-size:15px}.return-option small{font-size:11px;font-weight:400;margin-top:7px;line-height:1.7}.return-option>svg{width:28px;height:28px;flex-shrink:0}.return-option>svg:last-child{width:18px}.dark .return-option,[data-theme="dark"] .return-option{background:#32231f;color:#ffc5b4;border-color:#6d4438}.operation-card h2{display:flex;align-items:center;gap:8px}.operation-card h2 svg{width:22px;height:22px}.operation-piece{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.operation-piece .grow{min-width:0;display:flex;flex-direction:column;gap:6px}.operation-piece .grow>b{font-size:14px}.operation-piece .grow>span,.operation-piece .grow>small{font-size:12px;color:var(--muted)}.operation-piece .text-button{font-size:11px;padding:4px}.cash-summary,.detail-pair{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;font-size:13px}.cash-summary{background:var(--bg);border-radius:12px;padding:16px;margin:12px 0}.cash-summary b,.detail-pair b{flex-shrink:0}.operation-note{border-right:3px solid var(--line);padding:8px 12px;line-height:1.9;font-size:13px}.operation-details{border-top:1px solid var(--line);margin:16px 0 20px;padding-top:12px;font-size:12px}.operation-details summary{cursor:pointer;min-height:40px;display:flex;align-items:center;color:var(--muted)}.operation-details summary:after{content:'＋';margin-right:auto}.operation-details[open] summary:after{content:'−'}.operation-details p{line-height:1.8;overflow-wrap:anywhere}.danger-text{color:#9e392b}.movement-card h2{font-size:15px}.stock-delta{font-size:25px;white-space:nowrap;direction:ltr}.stock-delta small{display:block;text-align:center;font-size:10px;color:var(--muted);margin-top:5px}.stock-balance{display:flex;align-items:center;justify-content:center;gap:24px;padding:14px;background:var(--bg);border-radius:12px;font-size:13px}.stock-balance b{margin-right:5px}.exchange-calculation{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.exchange-calculation>div{background:var(--bg);padding:12px;border-radius:12px}.exchange-calculation small{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}.exchange-calculation b{font-size:14px;overflow-wrap:anywhere}@media(max-width:360px){.operation-piece{gap:8px}.operation-piece .exchange-thumb{width:54px;height:72px}.operation-piece .grow>b{font-size:12px}.operation-piece .grow>span{font-size:11px}.return-option.scanner-button{padding:14px;gap:9px}.return-option b{font-size:13px}.detail-pair,.cash-summary{font-size:12px}.exchange-calculation b{font-size:12px}}
