*{box-sizing:border-box}body{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;margin:0;color:#14213d;background:#f5f7fb;line-height:1.5}
a{color:#1d4ed8}.w{max-width:1100px;margin:auto;padding:0 16px}
header{background:#14213d;color:#fff}header .w{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px}
header a{color:#fff;text-decoration:none;margin-right:14px}header .brand{font-weight:800;font-size:19px}
select.lang{padding:6px;border-radius:8px;width:auto}
.hero{padding:42px 0 18px}.hero h1{font-size:34px;line-height:1.2;margin:0 0 12px}.hero p{font-size:18px;max-width:760px}
.btn{display:inline-block;background:#1d4ed8;color:#fff;padding:11px 18px;border-radius:10px;text-decoration:none;border:0;font-size:15px;cursor:pointer;margin:4px 6px 4px 0}
.btn.alt{background:#fff;color:#1d4ed8;border:2px solid #1d4ed8}.btn.sm{padding:6px 10px;font-size:13px}.btn.red{background:#b91c1c}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.card{background:#fff;border-radius:14px;padding:20px;box-shadow:0 3px 14px rgba(20,33,61,.08);margin-bottom:16px}
.card.hi{border:2px solid #1d4ed8}.price{font-size:32px;font-weight:800}.price small{font-size:14px;color:#64748b;font-weight:400}
.muted{color:#64748b;font-size:14px}footer{padding:30px 0;color:#64748b;font-size:14px;text-align:center}
.tabs{display:flex;gap:6px;margin:18px 0 0;flex-wrap:wrap}.tabs button{padding:10px 16px;border:0;border-radius:10px 10px 0 0;background:#dbe3f3;cursor:pointer;font-size:15px}
.tabs button.on{background:#fff;font-weight:700}
fieldset{border:1px solid #dbe3f3;border-radius:12px;padding:12px;margin:0 0 12px}legend{font-weight:700;padding:0 6px}
label{display:block;font-size:13px;color:#334155;margin-top:6px}
input,select,textarea{width:100%;padding:8px;border:1px solid #c7d2e5;border-radius:8px;font-size:15px;font-family:inherit;background:#fff}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
table{border-collapse:collapse;width:100%;font-size:14px}td,th{border-bottom:1px solid #e2e8f0;padding:6px;text-align:left;vertical-align:top}
td.n,th.n{text-align:right;white-space:nowrap}
#lines input{padding:6px;font-size:14px}#lines td{padding:3px}
.tot td{border:0;padding:2px 6px}.tot tr.g td{font-weight:800;font-size:17px;border-top:2px solid #14213d}
.msg{padding:10px 12px;border-radius:10px;margin:8px 0;font-size:14px}.msg.err{background:#fee2e2;color:#7f1d1d}.msg.ok{background:#dcfce7;color:#14532d}.msg.warn{background:#fef9c3;color:#713f12}
#drop{border:3px dashed #1d4ed8;border-radius:14px;padding:34px;text-align:center;background:#fff;cursor:pointer}
#drop.over{background:#eef2ff}
.banner{background:#fef3c7;color:#78350f;padding:8px 12px;border-radius:10px;font-size:14px;margin:12px 0}
.inv{background:#fff;padding:24px;border:1px solid #e2e8f0;border-radius:10px}.inv h2{margin-top:0}
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
pre.xml{max-height:260px;overflow:auto;background:#0f172a;color:#e2e8f0;padding:12px;border-radius:10px;font-size:12px;white-space:pre-wrap;word-break:break-all}
@media (max-width:640px){.hero h1{font-size:26px}.two{grid-template-columns:1fr}#lines thead{display:none}#lines tr{display:grid;grid-template-columns:1fr 1fr;gap:4px;border-bottom:2px solid #dbe3f3;padding:6px 0}#lines td{border:0}#lines td.desc{grid-column:1/3}}
@media print{header,footer,.tabs,.noprint,#create,#viewForm{display:none!important}body{background:#fff}.card{box-shadow:none;padding:0}.inv{border:0}}
.yearly{margin:4px 0 0;font-size:14px;font-weight:600}
