*{box-sizing:border-box}body{margin:0;background:#f6f3ed;color:#242424;font:16px system-ui,sans-serif}header{background:#242424;color:white;display:flex;align-items:center;gap:14px;padding:12px 20px}header img{width:125px;border-radius:6px}header div{flex:1}small{display:block;color:#a8a8a8}nav{display:flex;gap:6px;overflow:auto;background:white;padding:10px;position:sticky;top:0;z-index:2;border-bottom:1px solid #ddd}nav button{white-space:nowrap}main{max-width:1100px;margin:auto;padding:20px}h1{font-size:26px;margin-top:0}h2{font-size:19px}button{border:0;border-radius:7px;background:#b9530d;color:white;padding:12px 16px;font:inherit;font-weight:650;cursor:pointer}button.secondary,nav button{background:#ece7df;color:#252525}nav button.active{background:#b9530d;color:white}button.danger{background:#8c2929}input,select,textarea{width:100%;padding:11px;border:1px solid #bdb8af;border-radius:6px;background:white;font:inherit;color:#222}label{display:block;font-size:14px;font-weight:600;margin:9px 0}label input,label select,label textarea{display:block;margin-top:5px}.panel{background:white;border:1px solid #e0d9ce;border-radius:12px;padding:18px;margin:12px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.bar{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.bar>*{margin:3px 0}.row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.muted{color:#69645e;font-size:14px}.error{color:#a12727}.login{max-width:460px;margin:35px auto;background:white;border-radius:12px}.logo{width:100%;max-width:370px}.total{font-size:25px;font-weight:700;color:#a74b0e}.notice{padding:10px;background:#fff0d4;border-radius:6px}.line{background:#faf8f4;border:1px solid #e6e1d8;padding:12px;border-radius:8px;margin:10px 0}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:9px;border-bottom:1px solid #ddd}canvas{width:100%;height:150px;border:1px solid #aaa;touch-action:none;background:white}.document{background:white;padding:24px}.document img{width:260px;max-width:100%}@media(max-width:600px){main{padding:12px}header{padding:10px}header img{width:90px}.panel{padding:12px}.grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}}@media print{header,nav,.no-print{display:none!important}main{padding:0;max-width:none}.document{padding:0}.panel{border:0}body{background:white}}
body{background:var(--background,#f6f3ed)}header{background:var(--header,#242424)}button:not(.secondary):not(.danger),nav button.active{background:var(--accent,#b9530d)}nav button:not(.active){background:#ece7df;color:#252525}.total{color:var(--accent,#b9530d)}.document h1,.document .total{color:var(--docaccent,#b9530d)}.document th{border-bottom:2px solid var(--docaccent,#b9530d)}input[type=color]{height:46px;padding:4px}

.customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;align-items:end;margin-bottom:20px}.customer-grid label{margin:0;min-width:0}.customer-grid input,.customer-grid select{height:46px;width:100%;margin-top:6px}.customer-grid label:last-child{grid-column:1/-1;max-width:100%}@media(max-width:540px){.customer-grid{grid-template-columns:minmax(0,1fr);gap:12px}}
