:root {
  --navy: #1B5E66; --teal: #2E8B95; --teal-bg: #E6F1F2; --gold: #E8A33D;
  --grey: #6E6E6E; --ink: #262626; --line: #D5DEE0; --red: #C0392B; --red-bg: #FDE8E6; --green: #1E8E4E; --green-bg: #E3F4EA;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #F4F7F8; font-size: 14px; }
header.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 22px; padding: 0 24px; height: 54px; }
header.top .brand { font-weight: bold; font-size: 17px; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
header.top .brand img { height: 30px; background: #fff; border-radius: 4px; padding: 2px 6px; }
header.top .brand b { color: #7fd6df; }
header.top nav { display: flex; gap: 4px; flex: 1; }
header.top nav a { color: #d6ecee; text-decoration: none; padding: 17px 14px; display: block; }
header.top nav a:hover, header.top nav a.on { background: var(--teal); color: #fff; }
header.top .who { font-size: 13px; color: #cfe6e8; }
header.top .who a { color: var(--gold); margin-left: 10px; text-decoration: none; }
main { max-width: 1180px; margin: 24px auto 90px; padding: 0 20px; }
h1 { color: var(--navy); font-size: 22px; margin: 0 0 4px; }
.sub { color: var(--grey); margin-bottom: 18px; }
.bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; }
table.t { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.t th { background: var(--teal); color: #fff; text-align: left; padding: 9px 10px; font-size: 12.5px; }
table.t td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: #FAFCFC; }
.r { text-align: right; } .c { text-align: center; }
a { color: var(--navy); }
.btn { display: inline-block; background: var(--teal); color: #fff; border: 0; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; text-decoration: none; font-family: inherit; }
.btn:hover { background: var(--navy); }
.btn.sec { background: #fff; color: var(--navy); border: 1px solid var(--teal); }
.btn.sec:hover { background: var(--teal-bg); }
.btn.gold { background: var(--gold); color: #3a2800; font-weight: bold; }
.btn.gold:hover { background: #d4912a; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.flash.ok { background: var(--green-bg); color: #145c33; border: 1px solid #b6e0c7; }
.flash.err { background: var(--red-bg); color: #8e1f14; border: 1px solid #f1b9b2; }
label { display: block; font-size: 12.5px; color: var(--grey); margin-bottom: 3px; }
input[type=text], input[type=password], input[type=number], input[type=email], select, textarea {
  width: 100%; padding: 8px 9px; border: 1px solid #B9C7CA; border-radius: 5px; font-size: 14px; font-family: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9ad0d6; border-color: var(--teal); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: bold; }
.box-green { border: 2px solid var(--green); background: var(--green-bg); color: #145c33; padding: 3px 10px; border-radius: 5px; font-weight: bold; display: inline-block; }
.box-red { border: 2px solid var(--red); background: var(--red-bg); color: #8e1f14; padding: 3px 10px; border-radius: 5px; font-weight: bold; display: inline-block; }
input.price.missing { border: 2px solid var(--red); background: var(--red-bg); }
input.price.missing::placeholder { color: var(--red); font-weight: bold; }
.lines input { padding: 6px 7px; }
.lines td { padding: 5px 6px; }
.rm { background: none; border: 0; color: var(--red); font-size: 18px; cursor: pointer; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 2px solid var(--teal); padding: 10px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 5; }
.sticky .grp { display: flex; gap: 10px; align-items: center; }
.sticky input.curs { width: 90px; }
.tot { margin-left: auto; width: 320px; }
.tot td { padding: 4px 8px; } .tot tr.g td { font-weight: bold; background: var(--teal-bg); font-size: 15px; }
.muted { color: var(--grey); } .small { font-size: 12.5px; }
.login { max-width: 360px; margin: 90px auto; }
.hint { background: var(--teal-bg); border-radius: 6px; padding: 10px 12px; font-size: 13px; color: var(--navy); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }

input.cod { font-size: 12.5px; color: var(--grey); }
input.cod.nocod { background: #FFF6DB; border: 1px solid #E8C45A; }

/* ---- liste in stil SmartBill ---- */
.lbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lbar .sp { flex: 1; }
.lbar .mnav { display: flex; align-items: center; gap: 4px; }
.lbar .mnav a, .lbar .mnav select { border: 1px solid #c9c9c9; background: #fff; border-radius: 4px; padding: 7px 10px; text-decoration: none; color: #333; font-size: 13.5px; width: auto; }
.lbar .cnt { color: #666; font-size: 13px; }
.btn.blue { background: #1a73e8; color: #fff; font-weight: bold; }
.btn.blue:hover { background: #1558b0; }
.fpanel { background: #fff; border: 1px solid #d5d5d5; border-radius: 6px; padding: 12px; margin-bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.fpanel > div { min-width: 170px; }
table.t2 { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #ddd; }
table.t2 th { background: #2b2b2b; color: #fff; text-align: left; padding: 10px; font-size: 12.5px; font-weight: bold; white-space: nowrap; }
table.t2 td { padding: 10px; border-top: 1px solid #e4e4e4; vertical-align: middle; font-size: 13.5px; }
table.t2 tr:hover td { background: #f7fafc; }
table.t2 a.lnk { color: #1a73e8; text-decoration: none; font-weight: bold; }
table.t2 a.lnk:hover { text-decoration: underline; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 12px; font-size: 12px; font-weight: bold; }
.pill.blue { background: #dbeafe; color: #1d4ed8; } .pill.amber { background: #fef3c7; color: #92600a; } .pill.green { background: #d9f2e3; color: #166534; }
details.act { position: relative; display: inline-block; }
details.act summary { list-style: none; cursor: pointer; border: 1px solid #c9c9c9; border-radius: 4px; padding: 5px 10px; background: #fff; font-size: 13px; }
details.act summary::-webkit-details-marker { display: none; }
details.act .menu { position: absolute; right: 0; top: 30px; background: #fff; border: 1px solid #ccc; border-radius: 4px; min-width: 190px; z-index: 20; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
details.act .menu a { display: block; padding: 8px 12px; color: #222; text-decoration: none; font-size: 13px; }
details.act .menu a:hover { background: #eef4ff; }
.empty { text-align: center; color: #888; padding: 28px !important; }

input.obs { min-width: 190px; padding: 6px 8px; font-size: 13px; }
img.thumb { width: 38px; height: 38px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); vertical-align: middle; background: #fff; }
a.alloc { font-size: 12px; color: #1a73e8; cursor: pointer; display: none; margin-top: 2px; }
tr.unal a.alloc { display: inline-block; }
.warnbox { background: #FFF6DB; border: 1px solid #E8C45A; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; color: #6b4e00; }

input.descr { margin-top: 3px; font-size: 12px; color: #555; border-style: dashed; }

/* v2.0 */
input[readonly], input:disabled, select:disabled, textarea:disabled { background: #f1f3f4; color: #555; }
input.gross { background: #fffbea; }
