@font-face { font-family: 'J'; src: url('PlusJakartaSans.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
:root { --red: #E3101C; --red2: #FF3B3B; --redd: #B5000C; --rs: #FFF0F0; --ink: #111114; --ink2: #3A3A44; --mut: #6B6B76; --line: #E7E7EC; --bg: #F6F6F8; --ok: #12924A; --warn: #C27A00; --r: 14px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'J', system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: inherit; } h1, h2, h3 { margin: 0 0 .4em; letter-spacing: -.01em; } h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
.ico { width: 18px; height: 18px; flex: none; }
.layout { display: flex; min-height: 100vh; }
.side { width: 240px; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side__logo { padding: 4px 8px 18px; } .side__logo img { height: 34px; }
.side__firm { font-size: 12px; color: var(--mut); padding: 0 10px 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink2); font-weight: 600; }
.side a:hover { background: var(--bg); } .side a.on { background: var(--rs); color: var(--red); }
.side__grp { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--mut); padding: 14px 12px 4px; font-weight: 700; }
.side__foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.main { flex: 1; min-width: 0; padding: 26px 32px 60px; }
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; } .top .sp { flex: 1; }
.sub { color: var(--mut); margin: -4px 0 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.tile b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; } .tile span { color: var(--mut); font-size: 13px; font-weight: 600; }
.meter { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 8px; } .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--red2), var(--redd)); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
table { width: 100%; border-collapse: collapse; } th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; } tr:last-child td { border-bottom: 0; } tr.click { cursor: pointer; } tr.click:hover td { background: #FBFBFC; }
.tw { overflow-x: auto; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--bg); color: var(--ink2); white-space: nowrap; }
.b-red { background: var(--rs); color: var(--red); } .b-ok { background: #E7F6EE; color: var(--ok); } .b-warn { background: #FFF4DE; color: var(--warn); } .b-dark { background: var(--ink); color: #fff; }
.muted { color: var(--mut); } .small { font-size: 13px; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #cfcfd6; } .btn-red { background: linear-gradient(135deg, var(--red2), var(--redd)); color: #fff; border: 0; } .btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-ghost { background: transparent; } .btn[disabled] { opacity: .5; pointer-events: none; }
form.inline { display: inline; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink2); }
label small { font-weight: 500; color: var(--mut); }
input, select, textarea { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rs); border-color: var(--red); }
textarea { min-height: 90px; resize: vertical; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; } .form .full { grid-column: 1 / -1; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; } .check input { width: auto; accent-color: var(--red); }
.foot { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; } .filters input, .filters select { width: auto; min-width: 160px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; } .flash.ok { background: #E7F6EE; color: var(--ok); } .flash.err { background: var(--rs); color: var(--red); }
.creds { background: #FFF8E6; border: 1px solid #F2D58C; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; } .creds code { font-size: 15px; background: #fff; padding: 2px 8px; border-radius: 6px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 700; color: var(--mut); border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs a.on { color: var(--red); border-color: var(--red); }
.tr { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 12px; } .msg.agent { background: var(--rs); align-self: flex-start; } .msg.user { background: var(--bg); align-self: flex-end; }
.msg small { display: block; color: var(--mut); font-size: 11px; font-weight: 700; }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; } dl.kv dt { color: var(--mut); font-weight: 600; } dl.kv dd { margin: 0; font-weight: 600; }
.code { font-family: Consolas, monospace; font-size: 20px; font-weight: 700; color: var(--red); background: var(--bg); padding: 10px 14px; border-radius: 10px; display: inline-block; }
.empty { text-align: center; color: var(--mut); padding: 30px; }
.alert { background: #FFF8E6; border: 1px solid #F2D58C; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(800px 500px at 80% 0%, var(--rs), transparent), var(--bg); }
.login .card { width: min(400px, 92vw); padding: 30px; } .login img { height: 44px; margin-bottom: 18px; }
.orb { width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(135deg, var(--red2), var(--redd)); display: grid; place-items: center; margin: 10px auto 16px; transition: transform .1s; }
.orb img { width: 64px; }
@media (max-width: 900px) {
  .layout { flex-direction: column; } .side { width: auto; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 10px; } .side__grp, .side__firm, .side__foot { display: none; }
  .side a { padding: 8px 10px; } .main { padding: 18px 14px; } .tiles, .grid2, .grid3, .form { grid-template-columns: 1fr 1fr; } dl.kv { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .tiles, .grid2, .grid3, .form { grid-template-columns: 1fr; } }
@media print { .side, .noprint { display: none !important; } .main { padding: 0; } body { background: #fff; } .card { border: 0; } }

/* paketi kao kartice */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.pk { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pk-off { opacity: .6; } .pk-new { border-style: dashed; }
.pk__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .pk__head h2 { margin: 0; font-size: 20px; }
.pk__price .muted { font-size: 16px; font-weight: 600; }
.pk__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--red); } .pk__price small { font-size: 14px; color: var(--mut); font-weight: 600; }
.pk__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .pk__facts li { padding-left: 18px; position: relative; } .pk__facts li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.pk__facts li.muted::before { display: none; } .pk__facts li.muted { padding-left: 0; }
.pk__edit summary { list-style: none; width: max-content; } .pk__edit summary::-webkit-details-marker { display: none; } .pk__edit[open] summary { margin-bottom: 12px; }
.pk form { display: grid; gap: 10px; } .pk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* telefon: gornja traka sa menijem umjesto zbijenih linkova */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .mbar img { height: 30px; } .mbar button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; }
  .layout { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; width: 82vw; max-width: 320px; height: 100vh; flex-direction: column; flex-wrap: nowrap; padding: 18px 14px; z-index: 40; transform: translateX(-105%); transition: transform .2s; overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.nav-open .side { transform: none; } body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .side__grp, .side__firm, .side__foot { display: block; } .side__foot a, .side a { display: flex; }
  .side__logo { display: none; }
  .main { padding: 16px 14px 60px; } h1 { font-size: 22px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

.calc input { width: 90px; padding: 7px 9px; } .calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
