@font-face{font-family:system;src:local('Segoe UI')}*{box-sizing:border-box}body{--bg:#f6f7f9;--panel:#fff;--ink:#202a37;--muted:#76818f;--border:#e6e9ed;--soft:#f2f4f6;--accent:#176c56;--accent-soft:#e6f3ed;--green:#eaf7ee;--green-ink:#237343;--red:#fff0ef;--red-ink:#b54543;--shadow:0 16px 60px #172b4d14;margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 system,'Segoe UI',sans-serif}body.dark{--bg:#101820;--panel:#19232e;--ink:#e2e8ef;--muted:#94a2b2;--border:#2c3948;--soft:#222e3b;--accent:#73d2af;--accent-soft:#203c34;--green:#1c362c;--green-ink:#8ad2a6;--red:#3b272c;--red-ink:#edaaa4;--shadow:0 16px 60px #0004;color-scheme:dark}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);border-radius:9px;min-height:38px;background:var(--panel);color:var(--ink);padding:8px 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s}button:hover{background:var(--soft)}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}body.dark button.primary{color:#102b21}button.primary:hover{filter:brightness(1.08)}button.ghost{background:transparent;border-color:transparent}button.danger{color:var(--red-ink);border-color:var(--red-ink)}button.icon{padding:8px;width:36px;min-width:36px}svg{width:19px;height:19px;flex-shrink:0;vertical-align:middle}input,select,textarea{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:10px 12px;color:var(--ink);min-width:0;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}input:disabled,select:disabled,textarea:disabled{opacity:1;color:var(--ink);background:var(--soft)}input::placeholder,textarea::placeholder{color:var(--muted)}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent)}input[type=file]{font-size:12px}textarea{resize:vertical;min-height:94px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.25;letter-spacing:-.7px;font-weight:650}h2{font-size:21px;letter-spacing:-.3px}h3{font-size:15px;font-weight:650}.muted{color:var(--muted)}.small{font-size:12px}.hint{font-size:12px;color:var(--muted);line-height:1.6}.flex{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.spacer{flex:1}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:4px 8px;background:var(--soft);font-size:12px;white-space:nowrap}.badge:before{content:'';width:6px;height:6px;background:currentColor;border-radius:50%}.badge.completed{background:var(--green);color:var(--green-ink)}.badge.overdue{background:var(--red);color:var(--red-ink)}.badge.progress{background:#eaf1ff;color:#4266a8}.badge.ready{background:#f0eafc;color:#8060a4}.dark .badge.progress{background:#28334b;color:#a3bff2}.dark .badge.ready{background:#382f48;color:#ceb5ec}.brand{display:flex;align-items:center;gap:11px;font-size:20px;letter-spacing:-.5px;font-weight:650;white-space:nowrap}.brand-mark{width:37px;height:37px;background:#176c56;color:#fff;border-radius:11px;display:grid;place-items:center;font-size:24px;font-weight:650}.brand small{font-size:10px;font-weight:600;letter-spacing:1.3px;color:var(--muted);display:block;margin-top:-4px}.layout{display:flex;min-height:100vh}.sidebar{width:226px;flex-shrink:0;background:var(--panel);border-right:1px solid var(--border);padding:28px 18px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.sidebar .brand{padding:0 8px;margin-bottom:45px}.nav-caption{font-size:10px;letter-spacing:1.4px;color:var(--muted);margin:0 12px 12px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{justify-content:flex-start;border:0;padding:11px 13px;background:transparent;color:var(--muted);font-weight:500}.nav button.selected{background:var(--accent-soft);color:var(--accent)}.nav button .count{margin-left:auto;font-size:11px;background:var(--panel);padding:1px 7px;border-radius:5px}.sidebar-bottom{margin-top:auto}.company-card{border:1px solid var(--border);border-radius:10px;padding:13px 12px;font-size:12px;margin-bottom:16px}.company-card .flex{margin-bottom:5px}.online-dot{width:7px;height:7px;border-radius:50%;background:#39a570;display:inline-block;flex-shrink:0}.offline-dot{background:#d66c60}.profile{padding:14px 5px 0;border-top:1px solid var(--border);display:flex;gap:9px;align-items:center}.avatar{width:34px;height:34px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:10px;font-weight:650;flex-shrink:0}.profile-name{font-size:12px;font-weight:600;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-role{font-size:11px;color:var(--muted)}.main{margin-left:226px;width:calc(100% - 226px);min-width:0}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid var(--border);background:var(--panel)}.crumb{font-size:13px;color:var(--muted)}.crumb b{color:var(--ink);font-weight:500}.top-actions{display:flex;align-items:center;gap:12px}.language-select{width:auto;max-width:190px;padding:7px 10px;font-size:12px;min-height:35px}.content{padding:32px 34px 20px;max-width:1900px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading p{color:var(--muted);margin-top:7px;font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{border:1px solid var(--border);background:var(--panel);border-radius:12px;padding:18px 20px;display:flex;justify-content:space-between;align-items:flex-start}.stat-label{font-size:12px;color:var(--muted);margin-bottom:8px}.stat-value{font-size:28px;font-weight:650;letter-spacing:-1px}.stat-icon{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;background:var(--soft);color:var(--muted)}.stat.green .stat-icon{background:var(--green);color:var(--green-ink)}.stat.red .stat-icon{background:var(--red);color:var(--red-ink)}.panel{background:var(--panel);border:1px solid var(--border);border-radius:13px;overflow:hidden}.tabs{display:flex;gap:24px;align-items:center;padding:0 20px;border-bottom:1px solid var(--border)}.tab{border:0;border-radius:0;padding:16px 2px;background:transparent;position:relative;font-size:13px;color:var(--muted)}.tab.active{color:var(--accent);font-weight:600}.tab.active:after{content:'';position:absolute;height:2px;background:var(--accent);bottom:-1px;left:0;right:0}.tab-count{background:var(--soft);color:var(--muted);padding:0 6px;border-radius:4px;font-size:10px}.toolbar{display:flex;gap:10px;align-items:center;padding:17px 20px;flex-wrap:wrap}.search{position:relative;flex:1;min-width:220px;max-width:480px}.search svg{position:absolute;left:12px;top:11px;color:var(--muted);width:17px}.search input{padding-left:38px;font-size:12px;min-height:39px}.toolbar select{width:auto;max-width:190px;font-size:12px}.toolbar button{font-size:12px}.table-wrap{overflow:auto;max-height:calc(100vh - 420px);min-height:250px}table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;white-space:nowrap}th{background:var(--soft);font-size:10px;letter-spacing:.3px;color:var(--muted);text-align:left;font-weight:600;padding:13px 17px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1}td{padding:15px 17px;border-bottom:1px solid var(--border);max-width:270px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr.order-row{cursor:pointer}tbody tr.order-row:hover{filter:brightness(.975);background:var(--soft)}tbody tr.completed,tbody tr.completed:hover{background:var(--green)}tbody tr.overdue,tbody tr.overdue:hover{background:var(--red)}td .secondary{display:block;font-size:10px;color:var(--muted);margin-top:3px}.number-cell{font-size:11px;font-weight:600;color:var(--accent)}.money{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.cell-main{font-weight:600}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}.empty{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;gap:12px}.empty-icon{width:62px;height:62px;background:var(--accent-soft);color:var(--accent);border-radius:18px;display:grid;place-items:center;margin-bottom:3px}.empty-icon svg{width:29px;height:29px}.empty h3{font-size:17px}.empty p{max-width:400px;color:var(--muted);font-size:13px}.empty button{margin-top:5px}.sync-warning{background:var(--red);color:var(--red-ink);border-radius:8px;padding:10px 14px;font-size:12px;margin-bottom:15px}.page-foot{margin-top:17px;color:var(--muted);font-size:11px;display:flex;justify-content:space-between}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:1100px}.settings-card{padding:24px}.settings-card h3{margin-bottom:5px}.settings-card .field{margin-top:20px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span,.field>label{font-size:12px;font-weight:500}.field .hint{font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.toggle-row{display:flex;align-items:center;gap:9px;font-size:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 0 15px}.section-heading:first-child{margin-top:0}.section-label{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin:25px 0 13px}.modal{position:fixed;inset:0;z-index:100;background:#0c17265e;backdrop-filter:blur(3px);display:flex;justify-content:flex-end}.drawer{width:min(850px,96vw);height:100%;background:var(--panel);box-shadow:var(--shadow);display:flex;flex-direction:column;animation:slide .18s ease-out}.modal.center{align-items:center;justify-content:center;padding:24px}.modal.center .drawer{height:auto;max-height:90vh;width:600px;border-radius:16px}.modal-header{padding:23px 26px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;align-items:center}.modal-header p{font-size:12px;color:var(--muted);margin-top:4px}.modal-body{padding:24px 26px;overflow:auto;flex:1}.modal-footer{padding:16px 26px;border-top:1px solid var(--border);display:flex;gap:10px;justify-content:flex-end;background:var(--panel)}.modal-footer .delete-order{margin-right:auto}.item-card{background:var(--bg);border:1px solid var(--border);border-radius:11px;padding:16px;margin-bottom:14px}.item-top{display:flex;align-items:center;gap:9px;margin-bottom:13px}.item-number{font-size:11px;color:var(--muted);font-weight:600}.item-top input{flex:1;background:var(--panel)}.item-grid{display:grid;grid-template-columns:1fr 1.4fr 1fr 1.4fr;gap:11px}.item-grid input{padding:9px;font-size:12px}.item-grid label{font-size:11px}.item-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.item-sum{font-size:13px}.photo-control{display:flex;align-items:center;gap:9px;max-width:65%}.photo-control img{width:46px;height:46px;object-fit:cover;border-radius:7px;border:1px solid var(--border)}.photo-control input{font-size:10px;width:230px}.photo-control .field{gap:2px}.totals{margin:20px 0 8px;display:flex;flex-direction:column;gap:8px;align-items:flex-end}.totals .line{min-width:260px;display:flex;justify-content:space-between;gap:35px;color:var(--muted);font-size:12px}.totals .grand{border-top:1px solid var(--border);padding-top:11px;margin-top:4px;color:var(--ink);font-size:18px;font-weight:650}.link-box{background:var(--accent-soft);border:1px solid var(--border);border-radius:10px;padding:15px;margin-top:20px}.link-box p{font-size:11px;color:var(--muted);margin:6px 0 12px}.link-box input{font-size:12px}.error{background:var(--red);color:var(--red-ink);padding:11px 13px;border-radius:8px;margin-bottom:15px;font-size:13px}.error:empty{display:none}.column-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.column-option{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--border);border-radius:8px;font-size:12px;min-height:42px}.column-option span{flex:1;overflow:hidden;text-overflow:ellipsis}.column-option button{min-height:26px;height:26px;width:26px;min-width:26px;padding:4px}.auth-layout{display:grid;grid-template-columns:minmax(320px,45%) 1fr;min-height:100vh}.auth-art{background:#123c32;color:#fff;padding:50px;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-art .brand small{color:#9bbab0}.auth-art .brand-mark{background:#2c6858}.auth-art h1{font-size:42px;line-height:1.22;max-width:390px;margin-top:80px;font-weight:500;letter-spacing:-1.2px}.auth-art p{color:#a5c7bb;max-width:340px;margin-top:20px;line-height:1.8}.art-grid{position:relative;margin:55px 0 35px;padding:24px;border:1px solid #ffffff21;border-radius:16px;background:#ffffff09;transform:rotate(-5deg);max-width:360px}.art-row{height:45px;border-bottom:1px solid #ffffff18;display:flex;align-items:center;gap:15px}.art-row:last-child{border-bottom:0}.art-row i{height:8px;background:#ffffff3d;border-radius:4px;width:43%}.art-row b{margin-left:auto;width:55px;height:16px;border-radius:4px;background:#7bd4b45e}.art-row:nth-child(2) b{background:#e7bb5b66}.art-row:nth-child(3) b{background:#c98a8459}.art-row span{font-size:11px;color:#8fb8aa}.auth-art footer{margin-top:auto;font-size:11px;color:#8fb8aa}.auth-main{padding:35px 50px;display:flex;flex-direction:column;align-items:center;justify-content:center}.auth-tools{position:absolute;right:35px;top:25px}.auth-form{width:100%;max-width:380px;margin:60px 0 30px}.auth-form h2{font-size:26px;line-height:1.3;margin-bottom:8px}.auth-form>p{color:var(--muted);font-size:13px;margin-bottom:28px}.auth-form .field{margin-bottom:17px}.auth-form button[type=submit]{width:100%;margin-top:12px}.auth-form .hint{margin-top:14px}.public{max-width:1000px;margin:auto;padding:30px 24px 50px}.public-header{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:50px}.public-title{margin-bottom:25px;display:flex;justify-content:space-between;align-items:center;gap:20px}.public-title p{margin-top:8px;color:var(--muted)}.public-content{padding:28px}.public-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:30px}.public-summary .label{font-size:11px;color:var(--muted);margin-bottom:7px}.public-item{padding:20px 0;border-top:1px solid var(--border);display:flex;gap:18px}.public-item img{width:90px;height:90px;border-radius:9px;object-fit:cover}.public-item-body{flex:1;min-width:0}.public-item-details{display:flex;gap:25px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:var(--muted)}.public-note{background:var(--soft);padding:18px;border-radius:10px;margin-top:25px;white-space:pre-wrap;overflow-wrap:anywhere}.public footer{text-align:center;font-size:11px;color:var(--muted);margin-top:22px}.boot{height:100vh;display:flex;align-items:center;justify-content:center;gap:5px;font-size:25px}.boot b{color:var(--accent)}.loader{width:20px;height:20px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin-left:15px}#toasts{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:1000;display:flex;flex-direction:column;gap:8px}.toast{background:var(--ink);color:var(--panel);border-radius:9px;padding:12px 20px;box-shadow:var(--shadow);font-size:13px;max-width:600px}.toast.error-toast{background:#a23f3d;color:#fff}.hidden{display:none!important}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes slide{from{transform:translateX(20px);opacity:.5}to{transform:translateX(0);opacity:1}}@media(min-width:1600px){.content{padding:40px 45px}.table-wrap{max-height:calc(100vh - 440px)}}@media(max-width:1050px){.sidebar{width:190px;padding:25px 12px}.sidebar .brand{font-size:18px}.main{margin-left:190px;width:calc(100% - 190px)}.content{padding:25px 22px}.topbar{padding:0 22px}.stats{gap:10px}.stat{padding:15px}.stat-icon{display:none}.tabs{gap:17px}.settings-grid{grid-template-columns:1fr}.auth-art{padding:35px}.auth-art h1{font-size:34px}.auth-main{padding:35px}}@media(max-width:720px){.sidebar{position:static;width:100%;padding:13px 18px;display:block;border-right:0;border-bottom:1px solid var(--border)}.sidebar .brand{margin:0 0 12px;padding:0}.nav{flex-direction:row}.nav button{font-size:12px;padding:8px}.nav-caption,.sidebar-bottom{display:none}.layout{display:block}.main{margin:0;width:100%}.topbar{height:56px;padding:0 18px}.crumb{font-size:11px}.top-actions{gap:6px}.content{padding:23px 16px}h1{font-size:24px}.page-heading{align-items:flex-start;gap:10px}.page-heading button{font-size:12px;white-space:nowrap;padding:8px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat-value{font-size:24px}.tabs{gap:13px;overflow:auto;padding:0 14px}.tab{font-size:11px;white-space:nowrap}.toolbar{padding:14px}.table-wrap{max-height:60vh}.toolbar .search{max-width:none;flex-basis:100%}.toolbar select{max-width:150px}.form-grid{grid-template-columns:1fr}.item-grid{grid-template-columns:1fr 1fr}.item-bottom{align-items:flex-start;flex-direction:column}.photo-control{max-width:100%}.modal-body,.modal-header,.modal-footer{padding:18px}.drawer{width:100%}.modal.center{padding:12px}.modal-footer{flex-wrap:wrap}.auth-layout{display:block}.auth-art{display:none}.auth-main{min-height:100vh;padding:30px}.auth-tools{right:20px}.public-header{margin-bottom:30px}.public-header .brand{font-size:17px}.public-header .brand small{display:none}.public-title{align-items:flex-start}.public-content{padding:20px}.public-summary{grid-template-columns:1fr 1fr}.public-item img{width:60px;height:60px}.public-item-details{gap:14px}.column-list{grid-template-columns:1fr}.page-foot{gap:15px}.table-footer{padding:12px;flex-wrap:wrap}}
.grid-photo{width:48px;height:40px;object-fit:cover;border-radius:6px;border:1px solid var(--border)}
th button.ghost{padding:0;min-height:20px;font:inherit;color:inherit}th:last-child{position:sticky;right:0;z-index:2}td:last-child{position:sticky;right:0;background:var(--panel)}tr.completed td:last-child{background:var(--green)}tr.overdue td:last-child{background:var(--red)}
.brand-mark{flex-shrink:0}.sidebar .brand small{font-size:8px;letter-spacing:.7px;max-width:148px;overflow:hidden;text-overflow:ellipsis}.sidebar .brand>div:last-child{min-width:0}

