:root{font-family:Tahoma,Arial,sans-serif;color:#183b56;background:#f2f7fb;font-synthesis:none;line-height:1.6}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid #c2dceb;background:linear-gradient(#fff,#edf7fe);color:#176da0;padding:9px 17px;border-radius:8px;font-weight:bold}button:hover{background:#e4f3fd}button.primary{background:linear-gradient(110deg,#167dc0,#149dc7);border-color:#1084b4;color:white}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #22a3dc;outline-offset:2px}header{height:90px;background:#fff;border-bottom:1px solid #dae7f0;display:flex;align-items:center;justify-content:space-between;padding:14px 32px;gap:15px}.brand{display:flex;align-items:center;gap:15px}.brand img{width:87px;height:61px;object-fit:contain}.brand strong{font-size:25px;color:#12659d}.brand small{display:block;font-size:12px;color:#6e899c}#identity{font-size:12px;color:#607f94}#notice{padding:0 24px;color:#246b88;font-size:13px}#notice:not(:empty){padding:12px 24px;background:#e3f3fb;border-bottom:1px solid #c3e1ee}#notice.error{background:#fff0ec;color:#9d4838}main{max-width:1600px;margin:auto}.login{max-width:460px;margin:55px auto;padding:32px}.panel{background:white;border:1px solid #dce8f0;border-radius:12px;padding:23px;margin-bottom:18px}.panel h2{margin:0 0 8px;font-size:20px}.panel h3{font-size:17px;margin:0 0 12px}.muted{font-size:12px;color:#6c8597}.warning{padding:12px 15px;background:#fff8e8;border:1px solid #edddb7;border-radius:8px;font-size:12px;color:#81622a}.shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 90px)}nav{background:#123b60;padding:23px 12px;color:#c5deef}nav small{display:block;margin:0 10px 20px;color:#80b4d0}nav button{display:block;text-align:start;width:100%;margin-bottom:8px;background:transparent;border-color:transparent;color:#c3daeb;font-size:13px}nav button.active{background:linear-gradient(110deg,#1784c6,#1098be);color:white;border-color:#4cacd8}section.workspace{padding:28px;min-width:0}.heading{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:22px}.heading h1{font-size:25px;margin:0}.heading p{font-size:13px;color:#6f899c;margin:5px 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:22px}.stat{background:#fff;border:1px solid #dfebf3;border-top:3px solid #31a1cb;padding:16px;border-radius:10px;font-size:12px;color:#68849a}.stat strong{display:block;font-size:26px;color:#1b668e;margin-top:5px}.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,.72fr);gap:20px;align-items:start}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:flex;flex-direction:column;gap:6px;margin-bottom:13px;font-size:12px;font-weight:bold;color:#46677f}input,select,textarea{width:100%;border:1px solid #c9dce8;border-radius:7px;padding:11px;background:#fbfdff;color:#254c67;min-width:0}input[type=checkbox]{width:20px;height:20px}textarea{min-height:100px;resize:vertical}.check{flex-direction:row;align-items:start}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-block:10px}.record{border-top:1px solid #e1ebf3;padding:15px 0;display:flex;align-items:start;gap:15px;justify-content:space-between}.record strong{display:block;font-size:14px}.record small{display:block;color:#7590a2;font-size:11px}.badge{display:inline-block;padding:3px 9px;background:#edf6fc;border-radius:5px;font-size:11px;color:#376f94}.draft{background:#fff3d8;color:#8c6928}.received,.ready{background:#e6f5ee;color:#2d7e64}.empty{text-align:center;color:#7b95a7;padding:35px 15px;font-size:13px}.line{display:grid;grid-template-columns:minmax(130px,1.5fr) .6fr .8fr 45px;gap:8px;align-items:end}.line label{margin-bottom:8px}.line button{padding:8px;margin-bottom:8px}.total{background:#edf7fd;padding:14px;border-radius:8px;display:flex;justify-content:space-between;font-size:14px}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gallery img,.product img{width:100%;aspect-ratio:1;object-fit:contain;background:white;border:1px solid #e0eaf1;border-radius:8px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.product{min-width:0;background:white;border:1px solid #dfebf3;border-radius:12px;padding:15px}.product h3{font-size:16px;margin:12px 0 3px}.product p{font-size:12px;color:#6b8497}.product .price{font-size:17px;color:#16778c;font-weight:bold}.review{border:1px solid #a8d3e8;background:#f1f9fd;border-radius:10px;padding:17px}.review dl{margin:0}.review dl>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #dceaf2;padding:8px;font-size:13px}.review dd{margin:0;font-weight:bold}.back{margin-bottom:20px}#customer-output{max-width:1000px;margin:30px auto;background:#fff;padding:30px}#customer-output .brand{margin-bottom:25px}#customer-output h1{font-size:25px}.customer-product{break-inside:avoid;border-bottom:1px solid #ddd;margin:20px 0;padding-bottom:20px}.customer-product .gallery{grid-template-columns:repeat(3,1fr)}.customer-product p{white-space:pre-line}.customer-price{font-size:20px;font-weight:bold;color:#19728a}.notice-line{font-size:12px;color:#71899b;border-top:1px solid #dce8ef;margin-top:20px;padding-top:14px}@media(max-width:1100px){.split{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}.stats{grid-template-columns:1fr 1fr}.shell{grid-template-columns:175px minmax(0,1fr)}section.workspace{padding:20px}}@media(max-width:700px){header{height:auto;padding:15px}.brand img{width:63px;height:45px}.brand strong{font-size:21px}#identity{font-size:10px}.shell{display:block}nav{display:flex;gap:5px;overflow:auto;padding:10px}nav small{display:none}nav button{width:auto;white-space:nowrap;margin:0;font-size:11px;padding:8px 12px;flex-shrink:0}section.workspace{padding:18px 13px}.heading h1{font-size:22px}.panel{padding:17px}.fields{grid-template-columns:1fr}.line{grid-template-columns:1fr 1fr;border-bottom:1px solid #e3edf4;margin-bottom:15px;padding-bottom:10px}.line label:first-child{grid-column:1/-1}.line button{grid-column:1/-1}.product-grid{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr}.record{flex-wrap:wrap}.record>div{min-width:0;overflow-wrap:anywhere}.login{margin:30px 14px}.heading{flex-wrap:wrap}.stats{gap:9px}.stat{padding:13px}.stat strong{font-size:23px}#customer-output{padding:18px;margin:0}.customer-product .gallery{grid-template-columns:1fr 1fr}}
@media print{body>header,#notice,#app{display:none!important}#customer-output{display:block!important;max-width:none;margin:0;padding:0}#customer-output>button{display:none}body{background:white;color:#183b56}.customer-product{page-break-inside:avoid}.customer-product .gallery{grid-template-columns:repeat(3,1fr)}@page{size:A4;margin:15mm}}
@media print{#customer-output .output-controls{display:none!important}}
@media(min-width:1101px){.split{grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr)}}
@media print{html{background:#fff!important}}
@media(max-width:700px){header{display:grid;grid-template-columns:1fr;gap:8px}.brand{min-width:0}.brand strong{white-space:nowrap}.brand small{font-size:11px}#identity{justify-self:end;max-width:100%;font-size:10px}}
