:root{--bg: #f4f7f8;--panel: #ffffff;--panel-2: #eef3f4;--line: #d5e0e2;--text: #1c2b2e;--muted: #5d7176;--accent: #0f766e;--accent-2: #047857;--danger: #b91c1c;--shadow: 0 8px 24px rgba(28, 43, 46, .08);font-family:Segoe UI,system-ui,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;max-width:100%}.app,.page,.nav,.table-wrap{min-width:0;max-width:100%}body{background:radial-gradient(900px 420px at 100% -10%,#d7efe9 0%,transparent 55%),var(--bg)}button,input,select,textarea{font:inherit;color:inherit}.app{display:grid;min-height:100dvh;width:100%;grid-template-rows:auto 1fr auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));border-bottom:1px solid var(--line);background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:sticky;top:0;z-index:5}.brand{display:flex;gap:10px;align-items:center}.logo{height:52px;width:auto;aspect-ratio:1024 / 946;border-radius:12px;background:#000;object-fit:contain;display:block;flex-shrink:0}.logo-login{width:100%;height:auto;max-width:360px;justify-self:center;align-self:center;border-radius:16px}.login-kicker{margin:0;text-align:center;color:var(--muted);font-size:14px}.brand h1{margin:0;font-size:18px;letter-spacing:.04em}.brand p{margin:0;color:var(--muted);font-size:12px}.topbar-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}.topbar-actions{display:flex;align-items:center;gap:6px}.topbar-actions .btn{min-height:0;padding:3px 8px;width:auto;font-size:11px;font-weight:600;border-radius:8px;line-height:1.2}.credit{font-size:10px;color:var(--muted);text-align:right;line-height:1.25;max-width:140px}.topbar-right .error{max-width:180px;text-align:right}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:16px;padding-top:max(16px,env(safe-area-inset-top))}.login-card{width:min(420px,100%);background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.login-credit{margin:8px 0 0;max-width:none;text-align:center}.jezik-izbor{display:grid;gap:6px}.page{padding:8px 10px 16px;max-width:none;margin:0;width:100%}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.prihod-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-bottom:14px}.prihod-head .btn{width:auto}.prihod-head label{display:grid;gap:4px;font-size:12px;color:var(--muted);min-width:9rem;flex:1 1 9rem}.prihod-head label:first-of-type{flex:0 1 8rem;min-width:7rem}.prihod-head input,.prihod-head select{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:8px 10px;min-height:44px;font-size:15px;width:100%}.search{flex:1 1 100%;min-width:0;width:100%;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;outline:none;font-size:16px}.search:focus{border-color:var(--accent)}.toolbar .btn{width:100%}.btn{border:0;border-radius:12px;padding:12px 14px;cursor:pointer;background:var(--accent);color:#fff;font-weight:700;min-height:44px}.btn.secondary{background:var(--panel-2);color:var(--text);border:1px solid var(--line)}.btn.danger{background:#fde8e8;color:var(--danger);border:1px solid #f3c0c0}.btn:disabled{opacity:.55;cursor:not-allowed}.row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.row-actions .btn{min-height:0;padding:4px 8px;font-size:12px;border-radius:8px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;-webkit-overflow-scrolling:touch}th.audit,td.audit{width:1%;padding:1px 3px;font-size:8px;line-height:1.1;letter-spacing:0;font-weight:500;white-space:nowrap}th.audit{font-size:7px;text-transform:none;font-weight:700}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:4px 6px;border-bottom:1px solid var(--line);white-space:nowrap}tbody tr:nth-child(2n) td{background:#f3f7f7}tbody tr:nth-child(2n) td.cell-soon{background:#fff4d6}tbody tr:nth-child(2n) td.cell-expired{background:#fde8e8}th{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.02em;font-weight:700}.group-start{border-left:2px solid #8aa3a8}table.buses th.tight,table.buses td.tight{width:1%;padding:3px}table.buses th.tight{white-space:normal;line-height:1.15;max-width:4.4rem;font-size:9px}table.buses td.tight{font-size:11px}table.buses th.note,table.buses td.note{white-space:normal;min-width:14rem;width:24%}tr:last-child td{border-bottom:0}.nav{display:grid;grid-template-columns:repeat(10,1fr);border-top:1px solid var(--line);background:#fffffff5;position:sticky;bottom:0;padding-bottom:env(safe-area-inset-bottom)}.nav-admin{grid-template-columns:repeat(11,1fr)}.choice-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:12px 0}.pregled-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:4px 0 14px}.pregled-filter,.pregled-unos{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.pregled-unos{margin-left:auto}.pregled-unos .btn{width:auto}.pregled-filter label,.pregled-unos label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.pregled-filter input,.pregled-filter select,.pregled-unos input{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:8px 10px;min-height:44px;font-size:15px}.pregled-filter select{min-width:11rem}.pregled-unos .choice-row{display:flex;margin:0}.pregled-unos .choice-row .btn{width:auto}tr.ukupno td{font-weight:700;background:var(--panel-2);border-top:2px solid #8aa3a8}.choice-row .btn{width:100%}.nav button{background:transparent;border:0;padding:8px 4px 12px;color:var(--muted);cursor:pointer;font-size:11px;line-height:1.2;white-space:normal}.nav button.active{color:var(--accent);font-weight:700}@media (max-width: 759px){.logo{height:40px}.logo-login{max-width:180px}.topbar{padding:8px 10px;padding-top:max(8px,env(safe-area-inset-top))}.credit{display:none}.app{height:100dvh;max-height:100dvh;overflow:hidden}.page{overflow:auto;-webkit-overflow-scrolling:touch;padding-bottom:8px}.nav,.nav-admin{position:static;display:grid;grid-template-columns:repeat(5,1fr);max-height:none;overflow:visible}.nav-admin{grid-template-columns:repeat(6,1fr)}.nav button{min-height:0;padding:6px 2px;font-size:10px;line-height:1.15;text-align:center;border-top:0;white-space:normal}.nav button.active{background:transparent}.pregled-top{flex-direction:column;align-items:stretch;gap:10px}.pregled-filter,.pregled-unos{width:100%;margin-left:0}.pregled-filter label,.pregled-unos label{flex:1 1 calc(50% - 8px);min-width:0}.pregled-filter input,.pregled-filter select,.pregled-unos input{width:100%;min-width:0}.pregled-unos .btn,.choice-row .btn{width:100%;min-height:44px}.choice-row{grid-template-columns:1fr}.prihod-head label,.prihod-head label:first-of-type{min-width:0;flex:1 1 100%}.row-actions{gap:4px;flex-wrap:nowrap}.row-actions .btn{min-height:0;padding:1px 6px;font-size:11px;line-height:1.2}table{font-size:12px}th,td{padding:1px 5px;line-height:1.15}th{font-size:9px}.table-wrap th:first-child,.table-wrap td:first-child{position:sticky;left:0;z-index:1;background:#fff}.table-wrap tbody tr:nth-child(2n) td:first-child{background:#f3f7f7}.table-wrap tr.ukupno td:first-child{background:var(--panel-2)}}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0206109e;display:grid;align-items:stretch;z-index:20}.sheet{background:#fff;border:0;border-radius:0;padding:12px 12px max(16px,env(safe-area-inset-bottom));height:100dvh;max-height:100dvh;overflow:auto;width:100%;-webkit-overflow-scrolling:touch}.sheet h2{margin:4px 0 8px;font-size:18px}.overlay-small{align-items:center;justify-items:center;padding:16px}.sheet.sheet-small{width:min(420px,92vw);height:auto;max-height:86vh;border-radius:20px;border:1px solid var(--line);padding:16px}.form{display:grid;gap:12px}.form label{display:grid;gap:6px;font-size:13px;color:var(--muted)}.lokacija-red{display:flex;gap:8px;align-items:center}.lokacija-red input{flex:1;min-width:0}.lokacija-red .btn{width:auto;min-height:44px;padding:8px 12px;white-space:nowrap}.form input,.form select,.form textarea{background:var(--panel-2);border:1px solid var(--line);border-radius:12px;padding:12px;outline:none;font-size:16px;width:100%;max-width:100%}.form label.check{display:flex;align-items:center;gap:10px;color:var(--text);font-size:16px}.form label.check input{width:22px;height:22px;padding:0;margin:0;accent-color:var(--accent);flex:0 0 auto}td .tick{width:18px;height:18px;margin:0;accent-color:var(--accent);pointer-events:none}td .tick.tick-live{pointer-events:auto;cursor:pointer}.form-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px;position:sticky;bottom:0;background:#fff;padding-top:8px}.hint{margin:0;font-size:13px;color:var(--muted)}.empty{color:var(--muted);padding:28px 8px;text-align:center}.record-count{margin:10px 2px 0;text-align:right;color:var(--muted);font-size:13px}.error{color:var(--danger);font-size:13px}@media (min-width: 760px){.search{flex:1 1 180px;width:auto}.toolbar .btn{width:auto}.overlay{align-items:center;justify-items:center}.sheet{width:min(520px,92vw);height:auto;max-height:86vh;border-radius:20px;border:1px solid var(--line);padding:16px}.form-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}}.readonly-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.readonly-field strong{color:var(--text);font-size:16px}td.cell-soon{background:#fff4d6;color:#7c4a03;font-weight:700}td.cell-expired{background:#fde8e8;color:#991b1b;font-weight:700}.page-title{margin:0 0 12px;font-size:18px}table.pregled th,table.pregled td{text-align:right}table.pregled th:first-child,table.pregled td:first-child,table.pregled td:last-child{text-align:left}table.pregled th{white-space:normal;text-align:center;vertical-align:bottom}table.pregled th.group{text-align:center}table.pregled .row-actions{flex-wrap:nowrap}.form label.check{display:flex;align-items:center;gap:10px;color:var(--text);font-size:15px}.form label.check input[type=checkbox]{width:20px;height:20px;min-width:20px;padding:0;accent-color:var(--accent)}
