:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#18332d;background:#f4f7f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--green: #145e52;--green-dark: #104b41;--green-soft: #e4f0eb;--ink: #18332d;--muted: #7c8c86;--line: #e7ede9;--surface: #ffffff;--amber: #b87720;--shadow: 0 14px 44px rgba(22, 53, 44, .11);font-optical-sizing:auto}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f4f7f5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.54;cursor:not-allowed}.app-shell{min-height:100vh;max-width:760px;margin:0 auto;padding-bottom:calc(85px + env(safe-area-inset-bottom));background:#f4f7f5}.topbar{height:68px;padding:0 25px;display:flex;align-items:center;justify-content:space-between;background:#ffffffed;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar-brand{display:flex;gap:11px;align-items:center}.topbar-brand div:last-child{display:grid;gap:1px}.topbar-brand strong{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px;letter-spacing:-.3px}.topbar-brand span{color:var(--muted);font-size:11px}.brand-mark{width:54px;height:54px;display:grid;place-items:center;color:#fff;background:var(--green);border-radius:18px;font:800 25px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;box-shadow:0 8px 18px #145e5233}.brand-mark.small{width:36px;height:36px;border-radius:12px;font-size:17px}.sync-button{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:14px;color:var(--green);background:#fff}.sync-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sync-button.spinning svg{animation:spin 1.3s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.connection-line{min-height:35px;display:flex;align-items:center;gap:8px;padding:0 26px;font-size:11px;color:#62746d;background:#edf3ef}.connection-line.is-offline{color:#94611e;background:#fff5e4}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex:0 0 auto}.status-dot.green{background:#29a279;box-shadow:0 0 0 3px #29a2791f}.status-dot.amber{background:#d48b2b}.status-dot.gray{background:#a5b3ad}.last-sync{margin-left:auto;white-space:nowrap;color:#87958f}.page-content{padding:28px 26px 40px}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:23px}.eyebrow{margin:0 0 6px;color:#8b9b94;font:700 9px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;letter-spacing:1.4px}h1,h2{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;letter-spacing:-.8px}h1{font-size:27px;line-height:1.2}h2{font-size:21px;line-height:1.25}.primary-button,.secondary-button{min-height:48px;border:0;border-radius:14px;padding:0 20px;font-weight:700;font-size:13px;transition:transform .12s,background .12s}.primary-button{color:#fff;background:var(--green);box-shadow:0 7px 15px #145e5226}.primary-button:hover{background:var(--green-dark)}.primary-button:active,.secondary-button:active{transform:scale(.985)}.primary-button.compact{min-height:40px;border-radius:12px;padding:0 15px;font-size:12px}.secondary-button{color:var(--green);background:#eaf2ee;border:1px solid #dfeae4}.order-list,.catalog-list,.client-list{display:grid;gap:10px}.order-card{min-height:105px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px;border:1px solid #e8efeb;border-radius:17px;background:var(--surface);box-shadow:0 3px 10px #193e3306;cursor:pointer;transition:border .15s,transform .15s}.order-card:hover{border-color:#cbded4;transform:translateY(-1px)}.order-main{min-width:0;flex:1}.order-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.order-title strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700}.badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:20px;padding:4px 8px;font-size:9px;font-weight:700}.badge.draft{color:#697970;background:#eff2f0}.badge.waiting{color:#a86a1c;background:#fff1dc}.badge.sent{color:#427d68;background:#e8f3ed}.badge.posted{color:#3c6692;background:#e9f0f8}.order-meta{margin-top:8px;color:#87958f;font-size:11px}.order-submeta{margin-top:6px;color:#425a51;font-size:11px;font-weight:600}.order-submeta span{color:#b5c0ba;padding:0 4px}.more-button,.close-button{border:0;display:grid;place-items:center;color:#81928a;background:transparent}.more-button{width:35px;height:38px;font-weight:800;letter-spacing:1px}.lock-icon{color:#67907f;font-size:16px;margin:0 7px}.empty-state{min-height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}.empty-icon{display:grid;place-items:center;width:66px;height:66px;color:var(--green);background:var(--green-soft);border-radius:23px;font-size:27px;margin-bottom:18px}.empty-state h2{font-size:19px}.empty-state p{max-width:310px;margin:9px 0 20px;color:var(--muted);font-size:13px;line-height:1.6}.small-empty{min-height:180px}.small-empty p{margin:0}.search-field{height:46px;display:flex;align-items:center;gap:10px;padding:0 14px;margin-bottom:16px;color:#8a9993;border:1px solid var(--line);border-radius:13px;background:#fff}.search-field span{font-size:22px;line-height:1}.search-field input{width:100%;padding:0;border:0;outline:0;color:var(--ink);background:transparent;font-size:13px}.product-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 16px;border:1px solid #e8efeb;border-radius:15px;background:#fff}.product-info,.product-values{min-width:0;display:grid;gap:5px}.product-info strong{font-size:13px}.product-info span,.product-values span{overflow:hidden;color:#84928c;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.product-values{text-align:right;flex:0 0 auto}.product-values strong{color:var(--green);font-size:12px}.product-values span{color:#678b76}.client-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e8efeb;border-radius:15px;background:#fff}.client-avatar{width:40px;height:40px;flex:0 0 auto;display:grid;place-items:center;border-radius:14px;color:var(--green);background:var(--green-soft);font:700 16px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.client-card>div:nth-child(2){min-width:0;display:grid;gap:4px}.client-card strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.client-card span,.client-card small{overflow:hidden;color:#87958f;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.client-card .pending-mark{margin-left:auto;color:#c17d26;font-size:16px}.settlement-button{flex:0 0 auto;margin-left:auto;width:42px;height:42px;display:grid;place-items:center;border:1px solid #dfeae4;border-radius:12px;background:#eaf2ee;color:var(--green)}.settlement-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.settlement-balance{display:grid;gap:5px;padding:17px;border-radius:14px;color:#426c5c;background:var(--green-soft)}.settlement-balance span,.settlement-balance small{font-size:11px}.settlement-balance strong{color:var(--ink);font-size:21px;font-variant-numeric:tabular-nums}.settlement-message{padding:20px 0;color:var(--muted);font-size:13px;text-align:center}.settlement-table-wrap{overflow-x:auto;margin-top:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.settlement-table{width:100%;border-collapse:collapse;font-size:11px}.settlement-table th,.settlement-table td{padding:12px;border-bottom:1px solid var(--line);white-space:nowrap;text-align:left}.settlement-table th{color:var(--muted);font-weight:600}.settlement-table th:nth-child(n+3),.settlement-table td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}.settlement-table tbody tr:last-child td{border-bottom:0}.settings-page h1{margin-bottom:24px}.settings-card{min-height:70px;display:flex;align-items:center;gap:12px;margin-bottom:9px;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fff}.settings-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:var(--green);background:var(--green-soft);font-size:18px}.settings-card div{min-width:0;display:grid;gap:4px;flex:1}.settings-card strong{font-size:12px}.settings-card span:not(.settings-icon):not(.settings-check){color:#87958f;font-size:10px}.settings-check{color:#369773;font-weight:800}.text-button{border:0;padding:8px;color:var(--green);background:transparent;font-size:11px;font-weight:700}.settings-note{margin:18px 2px;padding:13px 14px;border-radius:12px;color:#777e70;background:#fff5e6;font-size:11px;line-height:1.55}.sync-problem{display:grid;gap:7px;margin:12px 0;padding:13px 14px;border:1px solid #f1d6c9;border-radius:12px;color:#8d4734;background:#fff3ee;font-size:10px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}.sync-problem strong{font-size:11px}.logout-button{width:100%;margin-top:5px}.bottom-nav{position:fixed;z-index:6;bottom:0;left:50%;width:min(100%,760px);min-height:calc(70px + env(safe-area-inset-bottom));transform:translate(-50%);display:grid;grid-template-columns:repeat(4,1fr);padding:7px 12px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.bottom-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:0;color:#91a099;background:transparent;font-size:9px;font-weight:600}.bottom-nav button span{font-size:20px;line-height:1}.bottom-nav button.active{color:var(--green)}.bottom-nav button.active span{transform:translateY(-1px)}.modal-backdrop{position:fixed;z-index:10;top:0;right:0;bottom:0;left:0;display:flex;align-items:end;justify-content:center;background:#0f201b66;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.editor-sheet{width:min(100%,760px);max-height:min(93vh,900px);display:flex;flex-direction:column;overflow:hidden;border-radius:24px 24px 0 0;background:#f7f9f7;box-shadow:var(--shadow);padding-bottom:env(safe-area-inset-bottom);animation:rise .2s ease-out}@keyframes rise{0%{transform:translateY(25px);opacity:.8}to{transform:translateY(0);opacity:1}}.sheet-grabber{width:38px;height:4px;flex:0 0 auto;margin:9px auto 2px;border-radius:9px;background:#d9e2dd}.sheet-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:14px 22px 15px;border-bottom:1px solid var(--line);background:#fff}.sheet-header .eyebrow{margin-bottom:4px}.sheet-header h2{font-size:19px}.close-button{width:34px;height:34px;border-radius:50%;background:#f1f4f2;font-size:24px;line-height:1}.editor-content{min-height:0;overflow-y:auto;padding:17px 21px 23px;overscroll-behavior:contain}.field{min-width:0;display:grid;gap:7px;color:#667870;font-size:10px;font-weight:700}.field input,.field select,.field textarea,.inline-control select,.add-product-row select,.add-product-row input{min-width:0;width:100%;min-height:43px;padding:0 12px;border:1px solid #e0e8e3;border-radius:11px;outline:0;color:var(--ink);background:#fff;font-size:12px;font-weight:500}.field textarea{padding-top:11px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.add-product-row input:focus{border-color:#83b4a1;box-shadow:0 0 0 3px #145e5214}.stack{display:grid;gap:14px}.login-card{width:min(100% - 36px,410px);margin:max(8vh,55px) auto 25px;padding:32px;border:1px solid #e8efeb;border-radius:24px;background:#fff;box-shadow:0 18px 55px #173c3012}.login-card .brand-mark{margin-bottom:24px}.login-card h1{font-size:25px}.muted{color:var(--muted)}.login-copy{margin:11px 0 24px;font-size:12px;line-height:1.6}.login-foot{display:flex;align-items:center;gap:8px;margin:20px 0 0;color:#82918a;font-size:10px}.inline-control{display:flex;gap:8px}.inline-control select{flex:1}.plus-button{width:43px;height:43px;flex:0 0 auto;border:0;border-radius:11px;color:#fff;background:var(--green);font-size:22px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.section-label{display:flex;align-items:center;justify-content:space-between;margin:20px 0 9px}.section-label>div{display:flex;align-items:baseline;gap:8px}.section-label strong{font-size:13px}.section-label span{color:#8a9992;font-size:10px}.add-product-row{display:grid;grid-template-columns:minmax(0,1fr) 76px 43px;gap:7px}.add-product-row select,.add-product-row input{height:43px}.editor-lines{display:grid;gap:8px;margin:10px 0 17px}.editor-line{padding:12px;border:1px solid #e4ebe7;border-radius:13px;background:#fff}.line-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.line-top strong{min-width:0;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.remove-line{padding:3px 0 3px 8px;border:0;color:#a47460;background:transparent;font-size:9px}.line-inputs{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:8px;margin:10px 0 7px}.line-inputs label{display:grid;gap:5px;color:#83928b;font-size:9px}.line-inputs input{width:100%;height:35px;padding:0 8px;border:1px solid #e6ece8;border-radius:8px;outline:0;font-size:11px}.line-inputs>strong{padding-bottom:10px;color:var(--green);font-size:10px;white-space:nowrap}.editor-line small{color:#8d9a94;font-size:9px}.no-lines{padding:17px 10px;margin:9px 0 15px;color:#98a49f;text-align:center;border:1px dashed #dbe4df;border-radius:12px;font-size:10px}.readonly-info{margin:12px 0 0;color:#607b6f;font-size:10px}.total-row{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding-top:13px;border-top:1px solid #e2e9e5;color:#64756e;font-size:12px}.total-row strong{color:var(--ink);font:700 17px -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.sheet-actions{flex:0 0 auto;display:flex;gap:10px;padding:12px 19px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.sheet-actions button{flex:1;min-width:0;padding:0 12px}.top-layer{z-index:12;align-items:center;padding:20px}.client-dialog{width:min(100%,440px);padding-bottom:22px;overflow:hidden;border-radius:22px;background:#fff;box-shadow:var(--shadow)}.client-dialog .sheet-header{margin-bottom:19px}.client-dialog .stack{padding:0 20px}.form-hint{margin:0;color:#82918a;font-size:10px;line-height:1.5}.toast-message{position:fixed;z-index:20;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));transform:translate(-50%);width:max-content;max-width:calc(100% - 30px);padding:12px 16px;border-radius:13px;color:#fff;background:#203c34;box-shadow:var(--shadow);text-align:center;font-size:11px;line-height:1.4}.v-enter-active,.v-leave-active{transition:opacity .18s,transform .18s}.v-enter-from,.v-leave-to{opacity:0;transform:translate(-50%,8px)}@media(min-width:700px){.page-content{padding:35px 42px 50px}.connection-line,.topbar{padding:0 42px}.editor-sheet{margin-bottom:22px;border-radius:24px;max-height:min(92vh,900px)}.modal-backdrop{align-items:center;padding:22px}.sheet-actions{padding-bottom:12px}}@media(max-width:400px){.page-content{padding-right:17px;padding-left:17px}.topbar{padding:0 17px}.connection-line{padding:0 17px;font-size:10px}.last-sync{font-size:9px}.order-card{padding:15px 13px}.order-title strong{font-size:12px}.two-fields{grid-template-columns:1fr}.login-card{padding:26px 23px}}
