* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background:#FAF6EE; color:#222; }
.topbar { background:#E5E7EB; padding:14px 20px; border-bottom:3px solid #F76707; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.brand { font-size:20px; font-weight:bold; color:#F76707; }
.brand small { color:#444; font-weight:normal; font-size:13px; display:block; }
.wrap { max-width:900px; margin:0 auto; padding:20px 16px 60px; }
.card { background:#fff; border:1px solid #ddd; border-radius:10px; padding:20px; margin-bottom:18px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
h1,h2 { color:#F76707; margin-top:0; }
label { display:block; font-size:13px; font-weight:bold; margin:10px 0 4px; color:#444; }
input, select, textarea { width:100%; padding:9px; border:1px solid #bbb; border-radius:6px; font-size:15px; }
textarea { min-height:60px; }
.btn { background:#F76707; color:#fff; border:none; padding:11px 20px; border-radius:7px; font-size:15px; font-weight:bold; cursor:pointer; text-decoration:none; display:inline-block; }
.btn:hover { background:#E8590C; }
.btn.grey { background:#6b7280; }
.btn.small { padding:6px 12px; font-size:13px; }
.btn.danger { background:#b91c1c; }
table { width:100%; border-collapse:collapse; margin-top:10px; }
th { background:#E5E7EB; text-align:left; padding:8px; font-size:13px; }
td { padding:6px 8px; border-bottom:1px solid #eee; vertical-align:top; }
td input, td select { padding:6px; font-size:14px; }
.amt { text-align:right; font-weight:bold; white-space:nowrap; }
.totals { max-width:320px; margin-left:auto; margin-top:14px; }
.totals .row { display:flex; justify-content:space-between; align-items:center; padding:5px 0; }
.totals .grand { border-top:2px solid #F76707; font-size:19px; font-weight:bold; color:#F76707; padding-top:9px; }
.est-row { display:flex; justify-content:space-between; align-items:center; border:1px solid #e5e5e5; border-radius:8px; padding:12px 14px; margin-bottom:10px; background:#fff; flex-wrap:wrap; gap:8px; }
.est-row .t { font-weight:bold; }
.est-row .s { color:#666; font-size:13px; }
.err { background:#FDE8E8; border:1px solid #b91c1c; color:#7f1d1d; border-radius:8px; padding:10px 14px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
a { color:#F76707; }
.tblwrap { overflow-x:auto; }
@media (max-width: 640px) {
  .totals { max-width:100%; }
  .wrap { padding:14px 10px 40px; }
  .card { padding:14px; }
  th, td { padding:5px; }
  .brand { font-size:17px; }
}
