:root{--navy:#102b4e;--yellow:#ffd447;--orange:#f47b37;--turq:#11b6ae;--ink:#18304c;--muted:#66778a;--bg:#f3f7fa;--white:#fff;--radius:20px;--shadow:0 8px 24px #102b4e12}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;padding-bottom:86px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:14px;padding:14px 17px;background:var(--navy);color:white;font-weight:750;cursor:pointer;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .18s,box-shadow .18s,background .18s}.button.accent,button.accent{background:var(--orange)}button:hover,.button:hover{transform:translateY(-1px);box-shadow:0 6px 12px #102b4e25}.button.secondary,button.secondary{background:#e6eef5;color:var(--navy)}.top{height:72px;background:var(--navy);padding:10px max(18px,calc((100% - 1180px)/2));display:flex;align-items:center;justify-content:space-between;color:white;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:10px;font-weight:800}.brand img{width:42px;height:42px;object-fit:contain;filter:brightness(0) invert(1)}.brand span{font-size:1.1rem}.business-switch{max-width:180px;border:0;border-radius:10px;padding:7px;background:#ffffff18;color:#fff}.wrap{max-width:1180px;margin:auto;padding:20px 16px 32px}.page-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:3px 0 18px}.page-head h1{font-size:1.55rem;line-height:1.1;margin:0}.page-head p{color:var(--muted);margin:5px 0 0}.grid{display:grid;gap:15px}.quick{grid-template-columns:repeat(2,minmax(0,1fr))}.quick a{min-height:130px;border-radius:var(--radius);padding:17px;display:flex;flex-direction:column;justify-content:space-between;font-weight:750;color:var(--navy);box-shadow:var(--shadow);background:#fff}.quick a:nth-child(3n+1){background:#fff4c9}.quick a:nth-child(3n+2){background:#d9f7f3}.quick a:nth-child(3n){background:#ffe0ce}.quick b{font-size:2.1rem}.cards{grid-template-columns:repeat(2,minmax(0,1fr));margin:17px 0}.card{border-radius:var(--radius);background:#fff;padding:17px;box-shadow:var(--shadow)}.card small,.muted{color:var(--muted)}.metric{font-size:1.45rem;font-weight:850;margin-top:6px}.wide{grid-column:1/-1}.form-card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;margin:16px 0}.form-card h2{font-size:1.1rem;margin:0 0 14px}.fields{display:grid;grid-template-columns:1fr;gap:12px}.field{display:grid;gap:5px}.field label{font-size:.86rem;font-weight:700;color:#43566d}.field input,.field select,.field textarea{width:100%;border:1px solid #d4e0e9;background:#fbfdff;border-radius:12px;min-height:47px;padding:10px}.field textarea{min-height:85px;resize:vertical}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.table-card{overflow:auto}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.table th,.table td{padding:12px;text-align:left;border-bottom:1px solid #edf2f5;font-size:.9rem}.table th{color:#52677d;font-size:.75rem;text-transform:uppercase}.table tr:last-child td{border:0}.pill{padding:4px 9px;border-radius:20px;background:#d9f7f3;color:#09756f;font-size:.78rem;font-weight:750;white-space:nowrap}.flash{padding:12px 14px;border-radius:13px;margin:0 0 14px;font-weight:600}.flash.success{background:#d9f7f3;color:#076b65}.flash.error{background:#ffe0e3;color:#9d2637}.bottom{position:fixed;z-index:9;bottom:0;left:0;right:0;height:72px;background:#fff;border-top:1px solid #e3ecf2;display:flex;justify-content:space-around;padding:6px max(6px,calc((100vw - 650px)/2))}.bottom a{font-size:.7rem;color:#60738a;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:2px;min-width:52px}.bottom a b{font-size:1.35rem}.bottom a.active{color:var(--navy);font-weight:800}.auth{min-height:100vh;padding:30px 18px;background:linear-gradient(145deg,var(--navy),#17666e);display:grid;place-items:center}.auth-box{background:#fff;width:min(100%,430px);padding:27px;border-radius:28px;box-shadow:0 20px 60px #0004}.auth-logo{display:block;width:105px;height:105px;object-fit:contain;margin:0 auto 10px}.auth h1{text-align:center;margin:0}.auth p{text-align:center;color:var(--muted)}.recipe-row{display:grid;grid-template-columns:1fr 88px 95px;gap:7px;margin-bottom:9px}.remove{background:#fee4df;color:#bd482d;padding:8px;min-height:auto}.breakdown{display:grid;grid-template-columns:1fr auto;gap:7px;font-size:.9rem}.breakdown strong{border-top:1px dashed #c9d7e2;padding-top:8px;margin-top:4px}.photo{width:58px;height:58px;object-fit:cover;border-radius:12px;background:#edf3f6}.note{background:#fff4c9;border-radius:14px;padding:12px;font-size:.9rem}@media(min-width:720px){body{padding-bottom:0}.wrap{padding:28px}.quick{grid-template-columns:repeat(3,1fr)}.cards{grid-template-columns:repeat(4,1fr)}.fields{grid-template-columns:repeat(3,1fr)}.field.full{grid-column:1/-1}.bottom{position:fixed;top:72px;bottom:0;right:auto;width:88px;height:auto;display:flex;flex-direction:column;justify-content:flex-start;padding:15px 8px;background:var(--navy);border:0}.bottom a{color:#d6e2ee;min-height:66px}.bottom a.active{color:var(--yellow)}.wrap{margin-left:max(88px,calc((100vw - 1180px)/2 + 88px))}.top{padding-left:105px}.top .brand{position:fixed;left:17px}.top .brand span{display:none}.two{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.brand img{filter:none}
.recipe-row input,.recipe-row select{min-width:0;width:100%;min-height:48px;border:1px solid #d4e0e9;border-radius:10px;padding:8px;background:#fbfdff}
.recipe-row{grid-template-columns:minmax(0,1fr) 80px 85px}
.business-switch option{color:#18304c;background:#fff}
.button.accent,button.accent{color:#102b4e}
.customer-search{display:grid;gap:12px;background:#fff;padding:16px;border-radius:20px;margin-bottom:15px}
.customer-cards{grid-template-columns:1fr}.customer-card-head{display:flex;align-items:center;gap:12px}.customer-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#d9f7f3;font-size:30px;color:#102b4e;flex-shrink:0}.customer-card b{overflow-wrap:anywhere}.customer-link{font-weight:750;color:#173f6c}.customer-card p{overflow-wrap:anywhere}.sale-customer{grid-column:1/-1;border:1px solid #d4e0e9;border-radius:16px;padding:15px;display:grid;gap:10px}.sale-customer h3{margin:0}.sale-customer p{margin:0;font-size:.9rem}
dialog{width:min(94vw,700px);max-height:88dvh;overflow:auto;border:0;border-radius:22px;padding:20px;background:#fff;color:#18304c;box-shadow:0 20px 60px #0004}dialog::backdrop{background:#102b4e99}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.dialog-head h2{margin:0}.dialog-head button{flex-shrink:0}dialog .fields{grid-template-columns:1fr}dialog .actions{position:sticky;bottom:-20px;background:white;padding:12px 0}dialog [hidden]{display:none}.customer-search input,.sale-customer input,.sale-customer select{min-width:0}.customer-snapshot{font-size:.85rem;margin-top:7px}.customer-snapshot summary{cursor:pointer;color:#173f6c;min-height:35px;padding:7px 0}.customer-snapshot p{margin:3px 0;overflow-wrap:anywhere}
@media(min-width:720px){.customer-search{grid-template-columns:2fr 1fr auto;align-items:end}.customer-cards{grid-template-columns:repeat(3,minmax(0,1fr))}dialog .fields{grid-template-columns:1fr 1fr}.bottom{overflow-y:auto}}
