
:root{
  --bg:#EEF1E8; --card:#FFFFFF; --ink:#16231A; --muted:#5A6A5E; --line:#D3DACB; --line-strong:#B9C3B0;
  --green:#1E7A3C; --green-dk:#155A2B; --green-lt:#E3F0E6;
  --soil:#6B4423; --soil-lt:#F4EBE1;
  --gold:#D99A1B; --gold-lt:#FBF1D8;
  --red:#B3261E; --red-lt:#FBE6E4;
  --radius:14px; --nav-h:72px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; color-scheme:light}
body{margin:0; background:var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; font-size:17px; line-height:1.35; -webkit-font-smoothing:antialiased; overscroll-behavior-y:contain}
body.lock{overflow:hidden}
button,input,select,textarea{font:inherit; color:inherit}
button{cursor:pointer; -webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #7CC48F; outline-offset:2px}
input::placeholder{color:#9AA69D}
.num{font-variant-numeric:tabular-nums}
#app{max-width:600px; margin:0 auto; min-height:100vh; position:relative}

/* ---------- gornja traka ---------- */
.top{position:sticky; top:0; z-index:20; background:var(--card); border-bottom:1px solid var(--line); display:flex; align-items:center; gap:8px; padding:10px 12px; padding-top:calc(10px + env(safe-area-inset-top)); min-height:62px}
.top .brand{flex:1; min-width:0}
.top .brand b{display:block; font-size:18px; font-weight:800; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.top .brand small{display:block; color:var(--muted); font-size:13px; margin-top:-2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
/* broj gazdinstva mora ceo da stane i na najvećim slovima: ime gazdinstva se skraćuje, broj nikad */
.top .brand small.bpg{overflow:visible; text-overflow:clip; max-width:100%}
.top .brand small.bpg b{display:inline-block; max-width:100%; font-size:clamp(11px, 3.6vw, 17px); letter-spacing:0}
body.bigfont .top .brand small.bpg b{font-size:clamp(10px, 3.2vw, 15px)}
body.bigfont .top .brand b{font-size:16px}
body.bigfont .top .season{font-size:15px; padding:0 9px}
.top .title{flex:1; min-width:0; text-align:center; font-size:19px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.top .ttl-sub{display:block; font-weight:500; font-size:13px; color:var(--muted)}
.ibtn{display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:48px; min-height:48px; padding:0 12px; border-radius:12px; border:1px solid var(--line); background:var(--card); font-weight:700; font-size:16px}
.ibtn svg{width:24px; height:24px}
.ibtn.plain{border-color:transparent}
.ibtn.text.outline{border:1.5px solid var(--green); border-radius:12px; padding:6px 12px; min-height:38px; background:#fff}
.ibtn.text{color:var(--green)}
.season{display:inline-flex; align-items:center; gap:6px; min-height:48px; padding:0 12px 0 14px; border-radius:24px; border:2px solid var(--gold); background:var(--gold-lt); font-weight:800; font-size:17px; white-space:nowrap}
.season svg{width:20px; height:20px}

/* ---------- glavni sadržaj ---------- */
main{padding:14px 12px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom))}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; margin-bottom:12px}
.card.tap{cursor:pointer}
.card.tap:active{background:#F7F9F4}
.card h2{margin:0 0 10px; font-size:15px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--muted)}
.card h2 .cnt{color:var(--muted); font-weight:600}
.card-head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px}
.card-head h2{margin:0}
.big{font-size:32px; font-weight:800; letter-spacing:-.02em; line-height:1.1}
.mid{font-size:22px; font-weight:800; letter-spacing:-.01em; line-height:1.15}
.muted{color:var(--muted)}
.small{font-size:14px}
.pos{color:var(--green)}
.neg{color:var(--red)}
.right{text-align:right}
.row{display:flex; align-items:center; gap:10px}
.row .grow{flex:1; min-width:0}
.hint::before{content:'* '; font-weight:800}
.hint{font-size:14px; color:var(--muted); margin:6px 0 0}
p.lead{margin:0 0 12px; font-size:17px}

/* dugmad */
.btn{display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:54px; padding:10px 16px; border-radius:12px; border:2px solid var(--green); background:var(--green); color:#fff; font-size:18px; font-weight:700; text-align:center}
.btn:active{background:var(--green-dk); border-color:var(--green-dk)}
.btn.sec{background:var(--card); color:var(--green)}
.btn.sec:active{background:var(--green-lt)}
.btn.soil{background:var(--card); color:var(--soil); border-color:var(--soil)}
.btn.soil:active{background:var(--soil-lt)}
.btn.danger{background:var(--card); color:var(--red); border-color:var(--red)}
.btn.danger:active{background:var(--red-lt)}
.btn.ghost{background:transparent; border-color:transparent; color:var(--muted); font-weight:600}
.btn.sm{min-height:44px; font-size:16px; width:auto; padding:6px 14px}
.btn.xs{min-height:38px; font-size:15px; width:auto; padding:4px 12px; border-width:1.5px}
.btn.inline{width:auto; display:inline-flex}
.btn svg{width:22px; height:22px}
.btn-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:8px 0 4px}
.btn-grid .btn{font-size:17px; padding:10px 8px}
.stack{display:grid; gap:10px}

/* pregled: traka površina */
.title.croptitle{display:flex; align-items:center; justify-content:center; gap:8px; text-align:left}
.title.croptitle svg{width:26px; height:26px; flex:none}
.title.croptitle b{display:block; font-size:21px; font-weight:800; line-height:1.1}
.title.croptitle .ttl-sub.big{font-size:15px; font-weight:700; color:var(--ink); opacity:.8; margin-top:2px}
.brand b{font-size:21px}
.brand small.bpg{display:flex; align-items:center; gap:8px; font-size:16px; font-weight:700; color:var(--muted); letter-spacing:.02em; margin-top:1px}
.brand small.bpg .sep{width:1.5px; height:15px; background:var(--line-strong); display:inline-block}
.brand small.bpg b{font-size:17px; font-weight:800; color:var(--green-dk)}
.freecard{text-align:center}
.freecard .ft{font-size:16px; font-weight:800}
.freecard .fv{font-size:30px; font-weight:800; line-height:1.15; margin-top:2px}
.freecard .fn{font-size:14px; color:var(--muted); margin:2px 0 12px; line-height:1.35}
.bpgrow{display:flex; align-items:center; gap:10px; margin-top:12px; padding:10px 12px; border-radius:12px; background:#F5F7F1; border:1px solid var(--line)}
.bpgrow .l{flex:1; font-size:14px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em}
.bpgrow b{font-size:20px; font-weight:800; letter-spacing:.02em; white-space:nowrap}
.strip{display:flex; height:30px; border-radius:8px; overflow:hidden; margin:10px 0 12px; background:#E5E9DE}
.strip span{display:block; height:100%; min-width:6px}
.strip span.free{background:repeating-linear-gradient(135deg,#D7DDCF 0 6px,#EAEEE4 6px 12px)}
.legend{display:grid; gap:8px}
.legend .li{display:flex; align-items:center; gap:10px; min-height:44px; padding:6px 8px; margin:0 -8px; border-radius:10px}
.legend .li.tap:active{background:#F3F6F0}
.dot{width:16px; height:16px; border-radius:50%; flex:none; border:1px solid rgba(0,0,0,.12)}
.dot.free{background:repeating-linear-gradient(135deg,#D7DDCF 0 3px,#EAEEE4 3px 6px)}
.legend .nm{flex:1; min-width:0; font-weight:700}
.legend .nm small{display:block; color:var(--muted); font-weight:500; font-size:14px}
.legend .ha{font-weight:800; white-space:nowrap}

/* tri broja: troškovi, prihodi, bilans */
.kpi3{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.kpi{padding:10px 12px; border-radius:12px; background:#F5F7F1; border:1px solid var(--line); min-width:0}
.kpi .l{font-size:13px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.04em}
.kpi .v{font-size:22px; font-weight:800; letter-spacing:-.01em; margin-top:2px; min-width:0; white-space:nowrap; overflow-wrap:normal; word-break:keep-all; hyphens:none}
/* dugačke brojke se blago smanje da stanu u jedan red */
.kpi .v.long, .kpi .v.long .mainv{font-size:19px; letter-spacing:-.02em}
.kpi .v.xlong, .kpi .v.xlong .mainv{font-size:17px; letter-spacing:-.03em}
.kpi .v .mainv{white-space:nowrap}
.kpi .v.two{display:block}
.kpi3.facts .kpi .v{font-size:19px; white-space:normal; overflow-wrap:anywhere}
.kpi3.facts .kpi .v.num{white-space:nowrap}
.kpi.soil{background:var(--soil-lt); border-color:#E3D2BD}
.kpi.green{background:var(--green-lt); border-color:#BFD8C3}
.kpi .v .soft{display:block; font-size:13px; font-weight:600; font-style:italic; line-height:1.3; white-space:normal}
.kpi .v .mainv{display:block}
.kpi .v .sub{display:block; font-size:14px; font-weight:700; color:var(--muted); margin-top:1px; white-space:nowrap}
/* duge brojke (kilogrami, milioni) prelaze u novi red umesto da se seku */
.kpi.wide{grid-column:1 / -1; background:var(--green-lt); border-color:#BFDCC7}
.kpi.wide.bad{background:var(--red-lt); border-color:#EFC2BE}
.kpi.wide.wait{background:#F5F7F1; border-color:var(--line)}
.kpi .note{font-size:13px; color:var(--muted); font-weight:600; margin-top:2px}
.kpi.wide .v{font-size:28px}

/* tabela po kulturama */
.tbl{width:100%; border-collapse:collapse}
.tbl th{font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); text-align:right; padding:4px 4px 8px; font-weight:700; border-bottom:2px solid var(--line)}
.tbl th:first-child{text-align:left; padding-left:0}
.tbl td{padding:12px 4px; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; font-weight:600}
.tbl td:first-child{text-align:left; padding-left:0; font-weight:800; white-space:normal}
.tbl tr:last-child td{border-bottom:none}
.tbl tr.tap{cursor:pointer}
.tbl tr.tap:active td{background:#F3F6F0}
.tbl tfoot td{border-top:2px solid var(--line-strong); border-bottom:none; font-weight:800}
.tbl .sub{display:block; font-size:13px; color:var(--muted); font-weight:500}

/* liste stavki */
.list{margin:0 -16px}
.item{display:flex; align-items:center; gap:12px; padding:12px 16px; border-top:1px solid var(--line); min-height:60px; cursor:pointer; text-align:left; width:100%; background:none; border-left:none; border-right:none; border-bottom:none}
.item:first-child{border-top:none}
.item:active{background:#F3F6F0}
.item .d{width:52px; flex:none; font-size:14px; color:var(--muted); font-weight:700; line-height:1.2}
.item .d b{display:block; font-size:16px; color:var(--ink)}
.item .t{flex:1; min-width:0}
.item .t b{display:block; font-size:17px; font-weight:700; overflow-wrap:break-word}
.item .t span{display:block; font-size:14px; color:var(--muted); overflow-wrap:anywhere}
.item .t .tag{display:inline-block; margin-right:2px}
.item .a{font-weight:800; white-space:nowrap; text-align:right; font-size:17px}
.item .a small{display:block; font-weight:600; font-size:12px}
.item .tl{display:flex; flex-wrap:wrap; column-gap:10px; row-gap:2px; align-items:baseline}
.item .tl b{flex:1 0 auto; max-width:100%; overflow-wrap:normal}
.item .tl .a{margin-left:auto}
.live.ok{background:var(--green-lt); color:var(--green-dk)}
.live.bad{background:var(--red-lt); color:#8F2727}
.live .trow + .trow{border-top:1px dashed #C9B98A; margin-top:8px; padding-top:8px}
.vhead{margin:0 0 14px}
.vhead .vt{font-size:21px; font-weight:800; line-height:1.2}
.vhead .vamt{display:block; font-size:27px; font-weight:800; margin-top:4px}
.vlist{display:grid; gap:10px}
.vrow{display:flex; gap:12px; align-items:baseline; border:1.5px solid var(--line); border-radius:12px; padding:11px 13px; background:#fff}
.vrow .vl{flex:none; min-width:92px; color:var(--muted); font-size:14.5px}
.vrow .vv{flex:1; min-width:0; font-weight:700; font-size:16.5px; overflow-wrap:break-word}
.vrow.wide{display:block}
.vrow.wide .vl{margin-bottom:6px}
#w-tank-live .trow + .trow{border-top:1px dashed #C9D1B8; margin-top:8px; padding-top:8px}
[hidden]{display:none !important}
.item .a small{display:block; font-size:13px; color:var(--muted); font-weight:600}
.item .chev{color:#A9B3A9; flex:none; width:18px; height:18px}
.item .swatch{width:6px; align-self:stretch; border-radius:3px; flex:none; margin:-4px 0}
.two{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.tw{min-height:56px; border-radius:14px; border:2px solid var(--line); background:#fff; font-weight:700; font-size:15.5px; color:var(--muted); padding:8px 6px; line-height:1.2}
.tw.on{border-color:var(--green); background:var(--green-lt); color:var(--green-dk)}
.tag{display:inline-block; font-size:12px; font-weight:700; padding:2px 8px; border-radius:8px; background:#EEF1E8; color:var(--muted); vertical-align:middle}
.tag.ok{background:var(--green-lt); color:var(--green)}
.tag.warn{background:var(--gold-lt); color:#8A6108}
.tag.bad{background:var(--red-lt); color:var(--red)}
.item .done{flex:none; width:36px; height:36px; border-radius:50%; border:2px solid var(--green); background:#fff; color:var(--green); display:flex; align-items:center; justify-content:center; padding:0; align-self:flex-start; margin-top:1px}
.item .done svg{width:20px; height:20px}
.item .done svg{width:22px; height:22px}
.item.plan{background:#FFF7E3; border-top-color:#F0DFAF}
.item.plan .t b{color:#7A5B10}
.item.plan .a{color:#7A5B10}
.item.plan .swatch{opacity:.5}
.item .tick{flex:none; width:30px; height:30px; border-radius:9px; border:2.5px solid #C9A227; background:#fff; padding:0; align-self:center; position:relative}
.item .tick::after{content:''; position:absolute; inset:-10px}
.item .tick:active{background:var(--gold-lt)}
.item .tick.checked{background:var(--green); border-color:var(--green); color:#fff; display:flex; align-items:center; justify-content:center}
.item .tick.checked svg{width:20px; height:20px}
.list .item.plan + .item:not(.plan){border-top-width:2px}
.areabtn{border:1.5px solid var(--green); background:var(--green-lt); color:var(--green-dk); border-radius:10px; min-height:40px; padding:4px 10px; font-weight:800; font-size:15px; white-space:nowrap}
.areaedit{padding:2px 4px 8px 42px}
.pick{cursor:pointer}
.month{padding:14px 16px 4px; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--muted)}
.bars{display:grid; gap:10px}
.bar{display:grid; grid-template-columns:minmax(96px,auto) 1fr auto; gap:10px; align-items:center; font-size:15px}
.bar .nm{font-weight:700; white-space:normal; overflow-wrap:normal}
.bar .bg{height:14px; background:#E9EDE3; border-radius:7px; overflow:hidden}
.bar .bg i{display:block; height:100%; background:var(--green); border-radius:7px}
.bar .v{font-weight:800; white-space:nowrap}

/* bilans lista */
.bal{display:grid; gap:0}
.bal .r{display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:9px 0; border-top:1px solid var(--line)}
.bal .r:first-child{border-top:none}
.bal .r.sub{padding:4px 0 4px 16px; border-top:none; color:var(--muted); font-size:15px}
.bal .r.total{border-top:2px solid var(--line-strong); font-size:20px; font-weight:800; margin-top:4px; padding-top:12px}
.bal .r b{white-space:nowrap}
.bal .r .lab{font-weight:700}
.bal .r.sub .lab{font-weight:500}

/* prazna stanja */
.empty{text-align:center; padding:8px 4px 4px}
.empty .ico{width:64px; height:64px; margin:0 auto 8px; color:var(--green)}
.empty .ico svg{width:100%; height:100%}
.empty h3{margin:0 0 6px; font-size:20px}
.empty p{margin:0 0 14px; color:var(--muted)}
.wizcard{padding:0; overflow:hidden}
.wiz{background:var(--green-lt); padding:16px 12px 14px; border-bottom:1px solid var(--line)}
.wline{display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; position:relative}
.wline::before{content:''; position:absolute; left:16.6%; right:16.6%; top:17px; height:3px; background:#C8DBC9; border-radius:2px}
.wstep{position:relative; text-align:center; z-index:1}
.wstep i{display:flex; align-items:center; justify-content:center; width:36px; height:36px; margin:0 auto 6px; border-radius:50%; background:#fff; border:2.5px solid #C8DBC9; color:var(--muted); font-style:normal; font-weight:800; font-size:16px}
.wstep i svg{width:20px; height:20px}
.wstep b{display:block; font-size:14px; color:var(--muted)}
.wstep span{display:block; font-size:12px; color:var(--muted); line-height:1.25; margin-top:2px}
.wstep.now i{background:var(--green); border-color:var(--green); color:#fff; box-shadow:0 0 0 4px rgba(30,122,60,.18)}
.wstep.now b{color:var(--ink); font-weight:800}
.wstep.now span{color:var(--ink)}
.wstep.done i{background:var(--green-dk); border-color:var(--green-dk); color:#fff}
.wstep.done b{color:var(--green-dk)}
.wstep.done{cursor:pointer}
.wstep.done:active i{background:var(--green); border-color:var(--green)}
.wbody{padding:16px}
.wbody h3{margin:0 0 6px; font-size:20px}
.wbody p{margin:0 0 14px; color:var(--muted)}
.wlist{display:grid; gap:6px; margin-bottom:14px}
.wli{display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:10px; background:#F5F7F1; border:1px solid var(--line)}
.wli svg{width:20px; height:20px; color:var(--green); flex:none}
.wli b{flex:1; min-width:0}
.btn.ghost{background:transparent; border-color:transparent; color:var(--muted); min-height:44px; font-size:16px}
.steps{margin:0 0 14px; padding:0; list-style:none; text-align:left}
.steps li{display:flex; gap:12px; align-items:flex-start; padding:8px 0}
.steps li i{flex:none; width:32px; height:32px; border-radius:50%; background:var(--green); color:#fff; font-style:normal; font-weight:800; display:flex; align-items:center; justify-content:center}
.steps li.done i{background:var(--green-lt); color:var(--green)}
.steps li b{display:block}
.steps li span{color:var(--muted); font-size:15px}

/* čipovi (izbor jednog) */
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{display:inline-flex; align-items:center; gap:6px; min-height:46px; padding:6px 16px; border-radius:24px; border:2px solid var(--line-strong); background:var(--card); font-weight:700; font-size:16px}
.chip .dot{width:12px; height:12px}
.chip.on{border-color:var(--green); background:var(--green); color:#fff}
.chip.on .dot{border-color:#fff}
.chip.mini{min-height:40px; padding:4px 14px; font-size:15px}
.chips.filter{margin-bottom:12px}

/* forme */
.f{margin-bottom:18px}
.f label,.f .lbl{display:block; font-weight:800; font-size:15px; margin-bottom:6px; color:var(--ink)}
.f label small,.f .lbl small{font-weight:500; color:var(--muted)}
.f input[type=text],.f input[type=date],.f input[type=number],.f select,.f textarea{width:100%; min-height:54px; padding:10px 14px; border:2px solid var(--line-strong); border-radius:12px; background:#fff; font-size:19px; -webkit-appearance:none; appearance:none}
.f input:focus,.f textarea:focus,.f select:focus{border-color:var(--green); outline:none}
.f input.money,.f input.qty{font-size:24px; font-weight:800; letter-spacing:.01em}
.f textarea{min-height:76px; resize:vertical}
.f .with-unit{display:flex; align-items:center; gap:10px}
.f .with-unit input{flex:1}
.f .unit{font-weight:800; font-size:18px; color:var(--muted); white-space:nowrap}
.live{margin-top:8px; padding:10px 12px; border-radius:10px; background:var(--green-lt); font-weight:700; color:var(--green-dk)}
.live.gold{background:var(--gold-lt); color:#7A5606}
.live.plain{background:#F3F6F0; color:var(--ink); font-weight:600}
.subrow{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.warnbox{margin:-4px 0 14px; padding:12px 14px; border-radius:12px; background:var(--gold-lt); border:1.5px solid #EED9A6; font-size:15px; line-height:1.35; font-weight:600}
.warnbox .btn{margin-top:10px; width:100%}
.subrow.amt .full{grid-column:1 / -1}
.about p{margin:0 0 12px; line-height:1.45}
.about p:last-child{margin-bottom:0}
.cropbadge{display:flex; align-items:center; gap:10px; margin-bottom:16px; padding:10px 14px; border-radius:12px; background:var(--green-lt); border:1.5px solid var(--green)}
.cropbadge svg{width:24px; height:24px; flex:none}
.cropbadge span{display:block; font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em}
.cropbadge b{font-size:19px; font-weight:800; color:var(--ink)}
.money-wrap input.money{background:#fff; border-color:var(--green); box-shadow:0 0 0 3px rgba(30,122,60,.10)}
.money-wrap input.money:focus{border-color:var(--green-dk); box-shadow:0 0 0 4px rgba(30,122,60,.16)}
.money-wrap input.money::placeholder{color:var(--muted); font-size:17px; font-weight:600; opacity:.9}
.subrow.amt{grid-template-columns:1.15fr 1fr}
.money-wrap .unit{color:var(--green-dk); font-weight:800}
.subrow input[type=date]{font-size:17px; padding:10px}
.subrow .f{margin-bottom:10px}
.err{color:var(--red); font-weight:700; margin:0 0 8px}
.sel{width:100%; min-height:56px; font-size:18px; font-weight:600; padding:0 14px; border:1.5px solid var(--line); border-radius:14px; background:#fff; color:var(--ink)}
.f select,select.sel{padding-right:46px !important; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231F5E38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:22px}
.kpi.tap{cursor:pointer}
.kpi.tap:active{filter:brightness(.96)}
.bar.tap{cursor:pointer; border-radius:10px}
.bar.tap:active{background:#F3F6F0}
.sheet.locked .sh-body input, .sheet.locked .sh-body select{pointer-events:none; background:#F2F4EE; border-color:#E5E9DE}
.sheet.locked .sh-body .pick, .sheet.locked .sh-body .chip, .sheet.locked .sh-body [data-twofor], .sheet.locked .sh-body [data-togglefor], .sheet.locked .sh-body [data-unitfor], .sheet.locked .sh-body .areabtn, .sheet.locked .sh-body button{pointer-events:none}
.card.ccard{border-top:6px solid var(--line)}
.card.ccard:active{background:#F7FAF4}
.ccard .cname{font-size:22px; font-weight:800}
.ccard .chead{display:flex; align-items:center; gap:10px; padding:2px 0}
.ccard .chead .ct{flex:1; min-width:0}
.ccard .cfold{flex:none; width:44px; height:44px; border-radius:12px; border:1.5px solid var(--line-strong); background:#fff; color:var(--green-dk); display:flex; align-items:center; justify-content:center; padding:0}
.ccard .cfold svg{width:24px; height:24px; transition:transform .18s}
.ccard .cfold.open svg{transform:rotate(180deg)}
.ccard .cfold.open{background:var(--green-lt); border-color:var(--green)}
.ccard .bal{margin-top:10px}
.ccard .csub{color:var(--muted); font-size:14.5px; margin:2px 0 10px}
.rphoto{display:block; max-width:100%; max-height:160px; border-radius:12px; border:1.5px solid var(--line)}
.docbtn{display:flex; align-items:center; justify-content:center; gap:8px}
.lnk{color:var(--green); font-weight:600}
.photo-view{cursor:zoom-in; display:inline-block}
.sheet.locked .sh-body .photo-view, .sheet.locked .sh-body [data-act="plow"], .sheet.locked .sh-body [data-act="unplow"]{pointer-events:auto}
#modal .box.photo{padding:10px}
#modal .box.photo img{max-width:100%; max-height:70vh; border-radius:10px; display:block; margin:0 auto 10px}
.card.brow{display:flex; align-items:center; gap:12px}
.card.brow:active{background:#F7FAF4}
.brow .dot2{flex:none; width:18px; height:18px; border-radius:50%}
.brow .bt{flex:1; min-width:0}
.brow .bt b{display:block; font-size:19px; overflow-wrap:break-word}
.brow .bt span{display:block; font-size:14.5px; color:var(--muted); margin-top:2px}
.brow .bv{flex:none; text-align:right}
.brow .bv .n1{font-size:20px; font-weight:800; white-space:nowrap}
.wxdots{display:flex; justify-content:center; gap:14px; margin-top:14px; padding:4px 0}
.wxdot{width:16px; height:16px; padding:0; border-radius:50%; border:0; background:var(--line-strong); opacity:.55; position:relative}
.wxdot::after{content:''; position:absolute; inset:-12px}
.wxdot.on{background:var(--green); opacity:1; width:36px; border-radius:8px}
.wx{display:grid; animation:wxin .35s ease}
@keyframes wxin{from{opacity:0; transform:translateX(18px)} to{opacity:1; transform:none}}
.wr{display:flex; align-items:center; gap:10px; min-height:46px; padding:4px 0; border-bottom:1px solid var(--line)}
.wr:last-child{border-bottom:0}
.wd{flex:none; width:76px; font-weight:700; font-size:15px}
.wi{flex:none; font-size:22px; width:30px; text-align:center}
.wt{flex:1; min-width:0; color:var(--muted); font-size:14.5px}
.wn{flex:none; font-weight:600; font-size:16px; white-space:nowrap}
.wn b{font-size:17px}
.seg{display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:0; border:2px solid var(--green); border-radius:12px; overflow:hidden}
.seg button{min-height:50px; border:none; background:#fff; color:var(--green); font-weight:700; font-size:16px; padding:6px 8px}
.seg button + button{border-left:2px solid var(--green)}
.seg button.on{background:var(--green); color:#fff}
.picks{display:grid; gap:8px}
.pick{display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 14px; border:2px solid var(--line-strong); border-radius:12px; background:#fff; text-align:left; width:100%}
.pick .box{width:28px; height:28px; border-radius:8px; border:2px solid var(--line-strong); flex:none; display:flex; align-items:center; justify-content:center; color:#fff}
.pick .box svg{width:20px; height:20px; display:none}
.pick.on{border-color:var(--green); background:var(--green-lt)}
.pick.on .box{background:var(--green); border-color:var(--green)}
.pick.on .box svg{display:block}
.pick .t{flex:1; min-width:0}
.pick .t b{display:block; font-size:17px}
.pick .t span{display:block; font-size:14px; color:var(--muted)}
.pick .ha{font-weight:800; white-space:nowrap}
.pick.dim{opacity:.55}
.cicon{display:inline-block; vertical-align:-5px; flex:none}
.toggle{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:56px; padding:8px 14px; border:2px solid var(--line-strong); border-radius:12px; background:#fff; width:100%; text-align:left; font-weight:700; font-size:17px}
.toggle .sw{width:56px; height:32px; border-radius:16px; background:#CFD6C8; position:relative; flex:none; transition:background .15s}
.toggle .sw::after{content:""; position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:left .15s}
.toggle.on{border-color:var(--green)}
.toggle.on .sw{background:var(--green)}
.toggle.on .sw::after{left:27px}
details.more{border:1px dashed var(--line-strong); border-radius:12px; padding:0 14px; margin-bottom:18px}
details.more summary{cursor:pointer; min-height:50px; display:flex; align-items:center; font-weight:700; color:var(--green); list-style:none}
details.more summary::-webkit-details-marker{display:none}
details.more summary::before{content:"+"; font-size:22px; margin-right:8px; font-weight:800}
details.more[open] summary::before{content:"–"}
details.more .inner{padding-bottom:6px}
details.fold{background:var(--card); border:1.5px solid var(--line-strong); border-style:solid; margin-bottom:12px}
details.fold summary{color:var(--ink); font-size:17px}
details.fold .list .month{margin-top:0}

/* pun ekran za unos */
.sheet{position:fixed; inset:0; z-index:40; background:var(--bg); display:none; flex-direction:column; max-width:600px; margin:0 auto}
.sheet.open{display:flex}
.sheet.mini{background:rgba(22,35,26,.45); justify-content:flex-end}
.sh-head{display:flex; align-items:center; gap:8px; padding:10px 12px; padding-top:calc(10px + env(safe-area-inset-top)); background:var(--card); border-bottom:1px solid var(--line); min-height:62px}
.sh-head .sh-title{flex:1; text-align:center; font-size:19px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sh-head .sh-title small{display:block; font-size:13px; font-weight:500; color:var(--muted)}
.sh-body{flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:18px 14px 30px}
.sh-foot{padding:12px 14px; padding-bottom:calc(12px + env(safe-area-inset-bottom)); background:var(--card); border-top:1px solid var(--line); display:grid; gap:8px}
.sh-foot .btn.ghost.danger{color:var(--red)}
.mini-panel{background:var(--card); border-radius:20px 20px 0 0; padding:14px 14px calc(16px + env(safe-area-inset-bottom)); max-width:600px; width:100%; margin:0 auto}
.mini-panel h3{margin:4px 4px 12px; font-size:18px}
.mini-panel .grid{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.qbtn{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:92px; border-radius:14px; border:2px solid var(--line); background:#fff; font-weight:800; font-size:17px}
.qbtn:active{background:var(--green-lt); border-color:var(--green)}
.qbtn svg{width:30px; height:30px; color:var(--green)}
.grid.q3{grid-template-columns:repeat(3,1fr)}
.grid.q3 .qbtn{min-height:86px; font-size:15.5px; padding:10px 4px}
.qbtn.soil svg{color:var(--soil)}
.qbtn.gold svg{color:var(--gold)}
.mini-panel .years{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.ybtn{min-height:58px; border-radius:12px; border:2px solid var(--line-strong); background:#fff; font-size:20px; font-weight:800}
.ybtn.on{background:var(--gold-lt); border-color:var(--gold)}
.ybtn.add{font-size:16px; color:var(--green); border-style:dashed}

/* potvrda */
.modal{position:fixed; inset:0; z-index:60; background:rgba(22,35,26,.5); display:none; align-items:center; justify-content:center; padding:20px}
.modal.open{display:flex}
.modal .box{background:#fff; border-radius:16px; padding:20px 18px; width:100%; max-width:380px}
.modal .box h3{margin:0 0 8px; font-size:20px}
.modal .box p{margin:0 0 16px; color:var(--muted)}

/* poruka posle radnje */
.toast span{flex:1; min-width:0; line-height:1.3}
.toast{position:fixed; left:12px; right:12px; width:auto; bottom:calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index:70; background:var(--ink); color:#fff; padding:12px 16px; border-radius:14px; display:none; align-items:center; gap:14px; max-width:calc(100% - 32px); box-shadow:0 6px 20px rgba(0,0,0,.25); font-weight:600}
.toast.open{display:flex}
.toast button{background:none; border:none; color:#9FE0B0; font-weight:800; font-size:17px; padding:6px 4px; min-height:40px}

/* donja navigacija */
.nav{position:fixed; bottom:0; left:0; right:0; z-index:30; background:var(--card); border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(5,1fr); height:calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); max-width:600px; margin:0 auto}
.nav button{border:none; background:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:var(--muted); font-size:13px; font-weight:700; padding:6px 2px}
.nav button svg{width:26px; height:26px}
.nav button.on{color:var(--green)}
.nav button.on svg{stroke-width:2.4}
.fab{position:fixed; right:16px; bottom:calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index:31; display:none; align-items:center; gap:8px; min-height:56px; padding:0 20px 0 16px; border-radius:28px; border:none; background:var(--green); color:#fff; font-size:18px; font-weight:800; box-shadow:0 6px 18px rgba(21,90,43,.35)}
.fab.show{display:flex}
.fab:active{background:var(--green-dk)}
.fab svg{width:26px; height:26px}
@media (min-width:600px){.fab{right:calc(50% - 300px + 16px)}}

/* kartice na ekranu kulture: boja i ikona po vrsti */
.card.sec{padding-top:0; border-left:5px solid var(--line-strong)}
.sec-head{display:flex; align-items:center; gap:10px; margin:0 -16px 6px -16px; padding:10px 14px 10px 14px; border-bottom:1px solid var(--line); border-radius:0 var(--radius) 0 0}
.sec-head svg{width:24px; height:24px; flex:none}
.sec-head .sec-t{flex:1; min-width:0; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap}
.sec-head .sec-t b{font-size:18px; font-weight:800; letter-spacing:.01em}
.sec-head .sec-t span{font-size:14px; color:var(--muted); font-weight:700}
.card.sec-cost{border-left-color:var(--red)} .sec-cost .sec-head{background:var(--red-lt); color:var(--red)}
.card.sec-work{border-left-color:var(--soil)} .sec-work .sec-head{background:var(--soil-lt); color:var(--soil)}
.card.sec-harv{border-left-color:var(--gold)} .sec-harv .sec-head{background:var(--gold-lt); color:#8A5F0C}
.card.sec-inc{border-left-color:var(--green)} .sec-inc .sec-head{background:var(--green-lt); color:var(--green-dk)}
.sec-head .sec-t b{color:var(--ink)}
.card.sec{padding-bottom:0}
.card.sec.open{padding-bottom:16px}
.card.sec .sec-head{margin-bottom:0; border-bottom:0; border-radius:0 var(--radius) var(--radius) 0}
.card.sec.open .sec-head{margin-bottom:6px; border-bottom:1px solid var(--line); border-radius:0 var(--radius) 0 0}
.sec-head .sfold{flex:none; width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:#fff; border:1.5px solid var(--line-strong); color:var(--green-dk)}
.sec-head .sfold svg{width:22px; height:22px; transition:transform .18s}
.card.sec.open .sfold svg{transform:rotate(180deg)}
.sec-head.inline{margin:6px 0 10px; padding:8px 12px; background:var(--gold-lt); border-radius:10px; border-bottom:0}
.sec-head.inline b{font-size:16px; font-weight:800; color:#8A5F0C}
/* dugme plana: naziv gore, iznos ispod */
.btn.planbtn{display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 14px; line-height:1.2}
.btn.planbtn span{font-size:15px; font-weight:700}
.btn.planbtn b{font-size:20px; font-weight:800}
/* prinos uživo u formi roda */
.yield{display:flex; align-items:baseline; gap:10px; margin-top:10px; padding:12px 14px; border-radius:12px; background:var(--gold-lt); border:1px solid #EED9A6}
.yield .yl{font-size:13px; font-weight:700; color:#8A5F0C; text-transform:uppercase; letter-spacing:.04em}
.yield b{font-size:24px; font-weight:800; color:var(--ink)}
.yield .ys{font-size:15px; color:var(--muted); margin-left:auto}
/* neprodat rod */
.lager{display:flex; align-items:center; gap:10px; margin-top:10px; padding:10px 12px; border-radius:12px; background:var(--gold-lt); border:1px solid #EED9A6}
.lager .lt{flex:1; min-width:0; display:flex; flex-direction:column}
.lager .lt .l{font-size:13px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.04em}
.lager .lt{min-width:0}
.lager .lt b{font-size:22px; font-weight:800; line-height:1.1; white-space:nowrap}
.lager .lt small{font-size:13px; color:var(--muted)}
.lager .lbtns{display:flex; flex-direction:column; gap:6px; flex:none}
.lager .btn{width:auto; min-height:42px; padding:6px 12px; font-size:15px; white-space:nowrap}
.qbtn.soil svg{color:var(--soil)} .qbtn.soil:active{background:var(--soil-lt); border-color:var(--soil)}
/* podešavanja */
.settings .card p{margin:0 0 10px}
.ver{text-align:center; color:var(--muted); font-size:13px; margin-top:20px}

/* ---------- cene: traka na pregledu, uska, cene teku kao na berzi ---------- */
.pbox{background:#12211A; border:1px solid #1F3328; border-left:5px solid var(--gold); border-radius:12px; margin-bottom:12px; overflow:hidden}
.pstrip{display:flex; align-items:center; height:48px; color:#fff; overflow:hidden}
.tk-lbl{flex:none; padding:0 12px 0 11px; font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#F5C542; border-right:1px solid #2A4234; height:100%; display:flex; align-items:center}
.tk-win{flex:1; min-width:0; height:100%; display:flex; align-items:center; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; scrollbar-width:none; overscroll-behavior-x:contain; touch-action:pan-x}
.tk-win::-webkit-scrollbar{display:none}
.tk-track{display:inline-flex; align-items:center; white-space:nowrap; padding-left:12px; animation:tk 26s linear infinite; will-change:transform}
.tk-win.manual .tk-track{animation:none}
.tk-win:active .tk-track{animation-play-state:paused}
.tk-i{display:inline-flex; align-items:baseline; gap:7px; padding-right:26px}
.tk-i .n{font-size:15px; font-weight:700; color:#B7C9BD}
.tk-i b{font-size:20px; font-weight:800; color:#fff; letter-spacing:-.01em}
.tk-i b.old{color:#E8EFE9}
.tk-i i{font-style:normal; font-size:14px; font-weight:800}
.tk-i i.up{color:#5EE38A} .tk-i i.dn{color:#FF7B72} .tk-i i.eq{color:#9FB5A6}
.pmore{display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:44px; background:#182B22; border:0; border-top:1px solid #2A4234; color:#F5C542; font-size:15px; font-weight:700}
.pmore:active{background:#1F3729}
.pmore svg{width:17px; height:17px}
@keyframes tk{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.tk-track{animation:none}}

/* ---------- cene: ceo ekran ---------- */
.pcard{background:#12211A; border-color:#1F3328; border-top:4px solid var(--gold); color:#fff}
.pcard .ph{display:flex; align-items:center; gap:8px; margin-bottom:8px}
.pcard .ph svg{width:24px; height:24px; flex:none}
.pcard .ph b{font-size:21px; font-weight:800}
.psrc{display:flex; align-items:center; gap:12px; min-height:44px; padding:6px 0; border-bottom:1px solid #EDF0E8}
.psrc:last-of-type{border-bottom:0}
.psrc .pv{flex:none; font-size:20px; font-weight:800; white-space:nowrap; min-width:104px}
.psrc .pv small{font-size:13px; font-weight:600; opacity:.75}
.psrc .pr{flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; line-height:1.25}
.psrc .pn{font-size:15px; font-weight:600; color:var(--ink); overflow-wrap:anywhere}
.psrc .pq{display:block; font-size:12.5px; font-weight:600; color:var(--muted); margin-top:1px}
.psrc .pd{font-size:13px; color:var(--muted); margin-top:1px}
.psrc.old .pv, .psrc.old .pn{color:var(--ink)} .psrc.old .pd{color:var(--muted)}
.psrc.best .pv{color:var(--green-dk)}
.pcard .psrc{border-bottom-color:#24382C}
.pcard .psrc .pn{color:#F2F7F3}
.pcard .psrc .pd{color:#C9D9CE} .pcard .psrc .pq{color:#C9D9CE}
.pcard .psrc.old .pv{color:#FFFFFF} .pcard .psrc.old .pn{color:#F2F7F3} .pcard .psrc.old .pd{color:#C9D9CE}
.pcard .psrc.mine .pv{color:#5EE38A}
.pfold{display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; margin-bottom:12px; min-height:60px; font-size:18px; font-weight:700}
.pfold:active{background:#F7F9F4}
.pfold .grow{flex:1; min-width:0}
.pfold .grow span{display:block; font-size:14px; font-weight:500; color:var(--muted)}
.pfold svg{width:22px; height:22px; color:var(--muted); flex:none; transition:transform .15s}
.pfold.open svg{transform:rotate(180deg)}
.pfold.locked{color:var(--muted); background:#F5F7F1}
.pfold.locked svg{transform:none; color:var(--soil)}
.pbody{background:var(--card); border:1px solid var(--line); border-top:0; border-radius:0 0 var(--radius) var(--radius); padding:2px 16px 14px; margin:-12px 0 12px}
.pfold.open{border-radius:var(--radius) var(--radius) 0 0; margin-bottom:0}
/* kartice idu preko cele širine, bez dodatnog uvlačenja */
.pbody{padding:2px 14px 14px}
.pg{border:1px solid var(--line-strong); border-radius:12px; padding:0 0 4px; margin:12px 0 0; background:#F7F9F4; overflow:hidden}
.pg:first-child{margin-top:10px}
.pg.mine{border-color:var(--green); background:var(--green-lt)}
.pgt{display:flex; align-items:center; gap:8px; font-size:17px; font-weight:800; padding:9px 12px; background:#ECF0E6; border-bottom:1px solid var(--line-strong)}
.pg.mine .pgt{background:#D8EADD; border-bottom-color:#BFD9C6}
.pgt .btn{margin-left:auto; width:auto; min-height:34px; font-size:14px; padding:4px 10px; border-width:1.5px; background:#fff}
.pg .psrc{padding:6px 12px; border-bottom-color:#E4E9DF}
.pg .psrc .pv{min-width:96px}
.rq{font-size:16px; font-weight:700; margin:10px 0 6px}
.rchips{display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 8px}
.rchip{min-height:42px; padding:6px 14px; border-radius:21px; border:1.5px solid var(--line-strong); background:#fff; font-weight:700; font-size:15px}
.rchip.on{border-color:var(--green); background:var(--green-lt); color:var(--green-dk)}
.rhead{display:flex; align-items:center; gap:8px; margin:8px 0 2px}
.rhead .grow{flex:1; min-width:0; font-size:15px; font-weight:800}
.rhead .btn{width:auto; min-height:36px; font-size:14px; padding:4px 10px; border-width:1.5px}
.psrcline{font-size:13px; color:var(--muted); margin:10px 2px 0; line-height:1.4}
.gatelist{display:grid; gap:8px; margin:12px 0 4px}
.gatelist .btn{justify-content:flex-start; text-align:left; font-size:16px; min-height:50px}

@media (prefers-reduced-motion:reduce){*{transition:none !important}}
/* PRAVILO: ništa ne sme da pređe ivicu ekrana. Širina 100% ide samo uz padding roditelja, nikad uz sopstvene bočne margine. */
#main{overflow-x:hidden}
#main > *, .card, .btn, .pfold, .pbody, .pg{max-width:100%; box-sizing:border-box}
/* v52: vodič (oblačići) */
#tour{position:fixed;inset:0;z-index:80}
#tour .tr-bg{position:absolute;inset:0;touch-action:none}
#tour .tr-hl{position:absolute;border-radius:16px;box-shadow:0 0 0 9999px rgba(22,35,26,.6);transition:top .25s,left .25s,width .25s,height .25s;pointer-events:none}
#tour .tr-hl.none{top:50%;left:50%;width:0;height:0;border-radius:0}
#tour .tr-box{position:absolute;width:min(calc(100vw - 32px),380px);background:#fff;border-radius:18px;padding:16px 16px 14px;box-shadow:0 14px 34px -12px rgba(22,35,26,.5);transition:top .25s,left .25s}
#tour .tr-box.center{top:50%;left:50%;transform:translate(-50%,-50%)}
#tour .tr-arr{position:absolute;width:18px;height:18px;background:#fff;transform:rotate(45deg);border-radius:3px}
#tour .tr-arr.up{top:-9px} #tour .tr-arr.down{bottom:-9px}
#tour .tr-step{font-size:13px;font-weight:800;color:var(--muted);letter-spacing:.05em;margin-bottom:4px}
#tour .tr-t{font-size:20px;font-weight:800;line-height:1.2;margin-bottom:6px}
#tour .tr-x{font-size:16.5px;line-height:1.45;color:var(--ink)}
#tour .tr-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
#tour .tr-skip{min-height:48px;padding:0 10px;border:0;background:none;color:var(--green);font-weight:800;font-size:16px}
#tour .tr-next{min-height:50px;width:auto;padding:0 26px}
/* v52: probni podaci, pomoć, izveštaji, dokumenti */
.card.democard{border:2px solid var(--gold);background:var(--gold-lt)}
.card.democard h3{margin:0 0 6px;font-size:19px}
.card.democard p{margin:0 0 12px}
.helptxt p{margin:0 0 12px;font-size:17px;line-height:1.45}
#main textarea#fb-text{width:100%;min-height:96px;padding:12px;border:2px solid var(--line-strong);border-radius:12px;background:var(--card);font-size:17px;resize:vertical}
.rcard{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px}
.rcard.tot{background:var(--green-lt);border-color:#BFD9C6}
.rc-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px}
.rc-h b{font-size:17px;min-width:0;overflow-wrap:anywhere}
.rc-h span{color:var(--muted);font-weight:700;white-space:nowrap}
.rc-r{display:flex;justify-content:space-between;gap:12px;padding:3px 0;font-size:15.5px}
.rc-r span{color:var(--muted);min-width:0;overflow-wrap:anywhere}
.rc-r b{white-space:nowrap;text-align:right}
.rc-r b.neg{color:var(--red)}
details.rfold{padding:0}
details.rfold>summary{padding:14px 16px;font-weight:800;cursor:pointer}
details.rfold .inner{padding:0 16px 8px}
.soilp{margin:4px 0 14px}
.sp-h{font-weight:800;font-size:17px;margin-bottom:6px}
table.soilt{width:100%;border-collapse:collapse;table-layout:fixed;font-size:15px}
table.soilt th{font-size:13px;color:var(--muted);font-weight:800;text-align:right;padding:4px 2px;border-bottom:1px solid var(--line)}
table.soilt th:first-child,table.soilt td:first-child{text-align:left;width:24%}
table.soilt td{text-align:right;padding:10px 2px 10px 6px;border-bottom:1px solid var(--line);font-weight:700}
table.soilt tr.tap{cursor:pointer} table.soilt tr.tap:active{background:#F3F6F0}
table.soilt td svg{width:15px;height:15px;vertical-align:-2px;color:var(--muted)}
.soilgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;align-items:end}
.pdfbox{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);overflow-wrap:anywhere}
.legend .li > svg{flex:none;color:var(--muted)}
.legend .chev{color:#A9B3A9;flex:none;display:flex}
.legend .chev svg{width:20px;height:20px}
body.bigfont table.soilt{font-size:13px}
body.bigfont table.soilt th{font-size:11px}
/* v53: dva dugmeta plan / urađeno */
.pseg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#E1E7DA;border-radius:14px;margin:0 0 12px}
.card .pseg{margin:2px 0 8px}
.pseg button{min-height:48px;border:0;border-radius:11px;background:transparent;font-weight:800;font-size:16.5px;color:#4E5E52;display:flex;align-items:center;justify-content:center;gap:7px;padding:4px 6px;min-width:0}
.pseg button.on{background:#fff;color:var(--green-dk);box-shadow:0 1px 3px rgba(22,35,26,.18)}
.pseg button i{font-style:normal;font-size:13.5px;font-weight:800;min-width:24px;padding:1px 7px;border-radius:10px;background:rgba(22,35,26,.08)}
.pseg button.on i{background:var(--green-lt)}

/* MATCOS_R54_CSS_COMPLETE */
