/* Naruči — salonska aplikacija. Motiv: papirnata knjiga narudžbi (linije, margina, tinta). */
:root {
  --papir: #F4EEE3;
  --papir-2: #FBF8F1;
  --papir-3: #EDE5D6;
  --linija: #E2D7C3;
  --linija-jaka: #CDBFA6;
  --tinta: #1F2A2E;
  --tinta-2: #48555A;
  --tih: #7D7262;
  --akcent: #B4532A;
  --akcent-tamni: #8E3F1E;
  --akcent-svijetli: #F3DED2;
  --zelena: #3F6B5B;
  --zelena-svijetla: #DCE8E1;
  --crvena: #B23A3A;
  --crvena-svijetla: #F6DEDA;
  --zuta: #C08A1E;
  --margina: #E3A08C;
  --sjena: 0 1px 0 rgba(31, 42, 46, .04), 0 8px 24px -12px rgba(31, 42, 46, .25);
  --r: 12px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-v: 64px;
  --vrh-v: 52px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--papir);
  color: var(--tinta);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--akcent-tamni); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.ik { flex: none; vertical-align: middle; }
.vrti { animation: vrti 1s linear infinite; }
@keyframes vrti { to { transform: rotate(360deg); } }
.tih { color: var(--tih); }
.mali { font-size: .85em; }
.crveno { color: var(--crvena); }

/* ---------- gumbi ---------- */
.gumb {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.gumb:active { transform: scale(.97); }
.gumb:disabled { opacity: .45; pointer-events: none; }
.gumb-glavni { background: var(--tinta); color: var(--papir-2); box-shadow: 0 6px 16px -8px rgba(31, 42, 46, .6); }
.gumb-glavni:hover { background: #2C3A3F; }
.gumb-sekundarni { background: var(--papir-2); border-color: var(--linija-jaka); color: var(--tinta); }
.gumb-sekundarni:hover { border-color: var(--tinta-2); }
.gumb-tih { background: transparent; color: var(--tinta-2); }
.gumb-tih:hover { background: var(--papir-3); }
.gumb-opasno { background: transparent; border-color: #E5BDB6; color: var(--crvena); }
.gumb-opasno:hover { background: var(--crvena-svijetla); }
.gumb-mali { min-height: 34px; padding: 0 12px; font-size: 14px; }
.gumb-puni { width: 100%; margin-top: 14px; }
.gumb-okrugli { width: 60px; height: 60px; padding: 0; border-radius: 50%; background: var(--akcent); box-shadow: 0 10px 24px -8px rgba(180, 83, 42, .7); }
.gumb-okrugli:hover { background: var(--akcent-tamni); }
.gumb-ikona { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--tinta-2); }
.gumb-ikona:hover { background: var(--papir-3); }
.gumb-ikona.mali { width: 30px; height: 30px; }
.gumb-ikona:disabled { opacity: .3; }
.gumbi-red { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }

/* ---------- polja ---------- */
.polje { display: block; margin: 0 0 14px; }
.polje-oznaka { display: block; font-size: 13px; font-weight: 600; color: var(--tinta-2); margin-bottom: 5px; letter-spacing: .01em; }
.polje-pomoc { display: block; color: var(--tih); font-size: 13px; margin-top: 4px; }
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--linija-jaka); border-radius: 10px;
  background: var(--papir-2); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(31, 42, 46, .09); }
input[type=color] { width: 44px; height: 36px; border: 0; background: none; padding: 0; }
.dva-stupca { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tri-stupca { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0 10px; }
@media (max-width: 420px) { .tri-stupca { grid-template-columns: 1fr 1fr; } .tri-stupca > :first-child { grid-column: 1 / -1; } }
.kvacica { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-weight: 500; }
.kvacica input { width: 20px; height: 20px; accent-color: var(--tinta); }
.kvacica.poravnaj { margin-top: 30px; }

.prekidac-red { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--linija); cursor: pointer; }
.prekidac-red > span { display: flex; flex-direction: column; }
.prekidac-red small { color: var(--tih); font-size: 13px; }
.prekidac-red input { position: absolute; opacity: 0; pointer-events: none; }
.prekidac { flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--linija-jaka); position: relative; transition: background .2s; }
.prekidac::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.prekidac-red input:checked + .prekidac { background: var(--zelena); }
.prekidac-red input:checked + .prekidac::after { transform: translateX(18px); }

/* ---------- prijava ---------- */
.prijava { min-height: 100%; display: grid; place-items: center; padding: 24px 16px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--linija) 31px 32px),
    linear-gradient(90deg, transparent 0 56px, var(--margina) 56px 57px, transparent 57px),
    var(--papir); }
.prijava-knjiga { width: min(400px, 100%); background: var(--papir-2); border: 1px solid var(--linija-jaka); border-radius: 18px; padding: 34px 28px 26px; box-shadow: var(--sjena); position: relative; animation: dignise .5s cubic-bezier(.2, .8, .2, 1); }
.prijava-knjiga::before { content: ''; position: absolute; top: -1px; right: 34px; width: 18px; height: 56px; background: var(--akcent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.prijava-znak { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--tinta); color: var(--papir); margin-bottom: 16px; }
.prijava h1 { font-size: 34px; margin: 0; }
.prijava-podnaslov { color: var(--tih); margin: 4px 0 22px; }
.prijava-napomena { font-size: 13px; color: var(--tih); margin: 16px 0 0; }
.greska-tekst { color: var(--crvena); font-size: 14px; margin: -4px 0 6px; }
@keyframes dignise { from { opacity: 0; transform: translateY(14px); } }
.ucitavam { height: 100%; display: grid; place-items: center; color: var(--akcent); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .35; } }

/* ---------- okvir ---------- */
.okvir { min-height: 100%; }
.vrh { position: fixed; top: 0; left: 0; right: 0; height: calc(var(--vrh-v) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(244, 238, 227, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linija); z-index: 30; }
.vrh-ime { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--tinta); font-family: var(--serif); font-weight: 600; font-size: 18px; min-width: 0; }
.vrh-ime span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrh-znak { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--tinta); color: var(--papir); }
.sinkro { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linija); background: var(--papir-2); border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--zelena); cursor: pointer; white-space: nowrap; }
.sinkro-ceka { color: var(--zuta); border-color: #E7D3A6; }
.sinkro-off { color: var(--akcent-tamni); background: var(--akcent-svijetli); border-color: #E8C1AE; }
@media (max-width: 380px) { .sinkro span { display: none; } }

.nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--nav-v) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--papir-2); border-top: 1px solid var(--linija); z-index: 30; }
.nav-stavka { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--tih); font-size: 11.5px; font-weight: 600; position: relative; }
.nav-stavka.aktivno { color: var(--tinta); }
.nav-stavka.aktivno::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--akcent); }
.znacka { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--akcent); color: #fff; font-size: 11px; display: grid; place-items: center; }
.sadrzaj { padding: calc(var(--vrh-v) + env(safe-area-inset-top)) 0 calc(var(--nav-v) + env(safe-area-inset-bottom)); min-height: 100vh; }

@media (min-width: 900px) {
  .nav { top: calc(var(--vrh-v) + env(safe-area-inset-top)); right: auto; width: 92px; height: auto; flex-direction: column; justify-content: flex-start; padding-top: 14px; border-top: 0; border-right: 1px solid var(--linija); }
  .nav-stavka { flex: none; height: 74px; font-size: 12px; }
  .nav-stavka.aktivno::before { top: 18%; bottom: 18%; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .sadrzaj { padding-left: 92px; padding-bottom: 0; }
}

/* ---------- stranice ---------- */
.stranica { padding: 18px 16px 110px; max-width: 980px; margin: 0 auto; }
.stranica.uska { max-width: 640px; }
.naslov-stranice { font-size: 30px; margin: 4px 0 16px; }
.naslov-red { display: flex; align-items: baseline; gap: 10px; }
.naslov-red .broj { font-family: var(--serif); color: var(--tih); font-size: 20px; }
.podnaslov { font-size: 19px; margin: 26px 0 10px; }
.uvod { color: var(--tinta-2); margin: -4px 0 16px; font-size: 15px; }
.natrag { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--tinta-2); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.prazno, .prazno-tekst { text-align: center; color: var(--tih); padding: 34px 10px; }
.prazno { display: grid; gap: 14px; justify-items: center; margin-top: 10vh; }
.info-kutija { background: var(--papir-3); border-left: 3px solid var(--zuta); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 14.5px; }
.kartica { background: var(--papir-2); border: 1px solid var(--linija); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }

.lista { list-style: none; margin: 0 0 12px; padding: 0; background: var(--papir-2); border: 1px solid var(--linija); border-radius: var(--r); overflow: hidden; }
.lista > li + li { border-top: 1px solid var(--linija); }
.lista a, .lista button.usluga-red { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.lista a:hover, .lista button.usluga-red:hover { background: var(--papir); }
.lista small { display: block; color: var(--tih); font-size: 13px; }
.postavke-lista a > span:nth-child(2) { flex: 1; min-width: 0; }
.postavke-lista small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-ikona { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--papir-3); color: var(--tinta-2); }

.kartica-red { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.kartica-red-glavno { flex: 1 1 260px; display: flex !important; padding: 0 !important; }
.kartica-red-glavno small { display: block; }
.kartica-red-gumbi { display: flex; gap: 8px; margin-left: auto; }
.datum-kocka { width: 48px; flex: none; text-align: center; border: 1px solid var(--linija-jaka); border-radius: 10px; padding: 3px 0; background: #fff; }
.datum-kocka b { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.datum-kocka small { text-transform: uppercase; font-size: 10.5px !important; letter-spacing: .06em; }
.napomena { font-style: italic; color: var(--tinta-2) !important; }

.nadimak { font-style: italic; font-family: var(--serif); color: var(--akcent-tamni); font-weight: 500; }
.nadimak.veliki { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 0; font-size: 16px; }
.znacke { display: flex; gap: 6px; margin: 6px 0 0; flex-wrap: wrap; }
.znacka-mala { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--zelena-svijetla); color: var(--zelena); }
.znacka-mala.tg { background: #DCEBF5; color: #2A6A93; }
.znacka-mala.crvena { background: var(--crvena-svijetla); color: var(--crvena); }
.znak-upozorenja { color: var(--crvena); display: inline-flex; }

.inicijali { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; background: color-mix(in srgb, var(--b) 16%, var(--papir-2)); color: var(--b); border: 1.5px solid color-mix(in srgb, var(--b) 40%, transparent); }

.oznaka-stanja { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--papir-3); color: var(--tinta-2); }
.st-potvrden { background: var(--zelena-svijetla); color: var(--zelena); }
.st-zahtjev { background: #F6E9C9; color: #8A6212; }
.st-otkazan, .st-odbijen { background: var(--papir-3); color: var(--tih); text-decoration: line-through; }
.st-nije_dosao { background: var(--crvena-svijetla); color: var(--crvena); }
.st-dosao { background: #E2E6EF; color: #3C4A70; }
.st-tekst { font-size: 12.5px; font-weight: 600; background: none !important; padding: 0; }

/* ---------- dnevni raspored ---------- */
.dan { --vis: calc(100vh - var(--vrh-v) - var(--nav-v) - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.dan-traka { position: sticky; top: calc(var(--vrh-v) + env(safe-area-inset-top)); z-index: 20; height: 61px; display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: var(--papir); border-bottom: 1px solid var(--linija); }
.dan-naslov { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 0 6px; cursor: pointer; min-width: 0; }
.dan-dan { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; }
.dan-datum { font-size: 13px; color: var(--tih); }
.dan-naslov input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dan-traka .gumb-mali:first-of-type { margin-left: auto; }
.raspored { --sat-sir: 54px; overflow: auto; overscroll-behavior: contain; height: calc(100dvh - var(--vrh-v) - var(--nav-v) - 61px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .raspored { height: calc(100dvh - var(--vrh-v) - 61px - env(safe-area-inset-top)); } }
.raspored-glava, .raspored-tijelo { display: grid; grid-template-columns: var(--sat-sir) repeat(var(--stupci), minmax(150px, 1fr)); min-width: calc(var(--sat-sir) + var(--stupci) * 150px); }
.raspored-glava { position: sticky; top: 0; z-index: 15; background: var(--papir); border-bottom: 1px solid var(--linija-jaka); }
.raspored-glava > .vrijeme-stupac { position: sticky; left: 0; background: var(--papir); z-index: 2; }
.stupac-glava { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 700; font-size: 14.5px; min-width: 0; }
.stupac-glava span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stupac-glava small { margin-left: auto; color: var(--tih); font-weight: 500; font-size: 12px; white-space: nowrap; }
.stupac-glava .inicijali { width: 28px; height: 28px; font-size: 11px; }
.raspored-tijelo { position: relative; margin-bottom: 90px;
  background-image:
    linear-gradient(to bottom, var(--linija-jaka) 1px, transparent 1px),
    linear-gradient(to bottom, var(--linija) 1px, transparent 1px);
  background-size: 100% 96px, 100% 24px; }
.raspored-tijelo > .vrijeme-stupac { position: sticky; left: 0; z-index: 6; border-right: 1.5px solid var(--margina); background: var(--papir); }
.sat { position: absolute; right: 8px; transform: translateY(-1px); font-family: var(--serif); font-size: 13px; color: var(--tinta-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.stupac { position: relative; border-right: 1px solid var(--linija); cursor: copy; transition: background .15s; }
.stupac-cilj { background: rgba(180, 83, 42, .06); }
.zatvoreno { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(125, 114, 98, .09) 0 6px, transparent 6px 12px); pointer-events: none; }
.blok { position: absolute; left: 3px; right: 3px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; text-align: left; padding: 4px 8px 4px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--b) 35%, var(--linija)); background: color-mix(in srgb, var(--b) 15%, #FFFDF8); cursor: pointer; font-size: 13px; line-height: 1.25; box-shadow: 0 1px 2px rgba(31, 42, 46, .08); touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: box-shadow .15s, transform .15s; }
.blok::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--b); }
.blok:hover { box-shadow: 0 4px 12px -4px rgba(31, 42, 46, .3); z-index: 3; }
.blok-vrijeme { font-family: var(--serif); font-weight: 600; font-size: 12.5px; color: var(--tinta-2); display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.blok-ime { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.blok-ime em { font-weight: 500; color: var(--akcent-tamni); font-family: var(--serif); }
.blok-usluga { color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.blok-kratki { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.blok-kratki .blok-ime { flex: 0 1 auto; }
.blok-kratki .blok-usluga { flex: 1 1 0; min-width: 0; }
.blok-kratki .blok-usluga::before { content: '· '; }
.blok-zahtjev { border-style: dashed; border-color: #C9A24C; background: repeating-linear-gradient(135deg, #FFF8E6 0 8px, #FCF1D6 8px 16px); }
.blok-zahtjev::before { background: #D9A93D; }
.tocka-zahtjev { width: 7px; height: 7px; border-radius: 50%; background: #D9A93D; display: inline-block; animation: puls 1.4s infinite; }
.blok-dosao { opacity: .78; }
.blok-nije_dosao { opacity: .55; text-decoration: line-through; }
.blok-preklop { outline: 2px solid var(--crvena); outline-offset: -2px; }
.blok-lokalno .blok-vrijeme::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--zuta); }
.blok-vuce { z-index: 10; transform: scale(1.03); box-shadow: 0 16px 30px -10px rgba(31, 42, 46, .55); opacity: .95; transition: none; }
.blok-pauza { --b: var(--tih); background: repeating-linear-gradient(135deg, var(--papir-3) 0 7px, var(--papir) 7px 14px); border-style: dashed; flex-direction: row; align-items: center; gap: 6px; color: var(--tih); font-weight: 600; }
.sad-crta { position: absolute; left: -4px; right: 0; height: 2px; background: var(--akcent); z-index: 5; pointer-events: none; }
.sad-crta::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--akcent); }

.plutajuci { position: fixed; right: 16px; bottom: calc(var(--nav-v) + 16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; z-index: 25; }
.plutajuci .gumb-sekundarni { box-shadow: var(--sjena); }
@media (min-width: 900px) { .plutajuci { bottom: 24px; right: 24px; } }

.potvrda-traka { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-v) + 12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--tinta); color: var(--papir); border-radius: 14px; box-shadow: var(--sjena); animation: dignise .25s; }
.potvrda-traka .gumb-tih { color: var(--papir); }
.potvrda-traka .gumb-glavni { background: var(--akcent); }
@media (min-width: 900px) { .potvrda-traka { left: 112px; right: 24px; bottom: 24px; } }

/* ---------- ploča (sheet) ---------- */
.ploca-pozadina { position: fixed; inset: 0; z-index: 50; background: rgba(31, 42, 46, .38); display: flex; align-items: flex-end; justify-content: center; animation: zatamni .2s; }
@keyframes zatamni { from { opacity: 0; } }
.ploca { width: 100%; max-height: 92vh; display: flex; flex-direction: column; background: var(--papir-2); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px -10px rgba(31, 42, 46, .4); animation: izroni .28s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
@keyframes izroni { from { transform: translateY(40px); opacity: .4; } }
.ploca-glava { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 6px 20px; border-bottom: 1px dashed var(--linija); }
.ploca-glava h2 { margin: 0; font-size: 21px; }
.ploca-tijelo { overflow-y: auto; padding: 16px 20px 20px; }
.ploca-dno { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; margin-top: 10px; border-top: 1px dashed var(--linija); position: sticky; bottom: -20px; background: var(--papir-2); padding-bottom: 6px; }
.ploca-dno .gumb-opasno { margin-right: auto; }
@media (min-width: 700px) {
  .ploca-pozadina { align-items: center; }
  .ploca { width: min(560px, 94vw); border-radius: 20px; max-height: 88vh; }
  .ploca.siroka { width: min(720px, 94vw); }
}
body.ima-plocu { overflow: hidden; }

.segment { display: flex; background: var(--papir-3); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.segment button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--tinta-2); }
.segment button.aktivno { background: var(--papir-2); color: var(--tinta); box-shadow: 0 1px 3px rgba(31, 42, 46, .15); }
.korak { margin-bottom: 16px; }
.korak-oznaka { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tih); margin-bottom: 7px; }
.cipovi { display: flex; flex-wrap: wrap; gap: 7px; }
.cip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--linija-jaka); background: var(--papir-2); cursor: pointer; font-weight: 600; font-size: 14px; transition: all .12s; }
.cip small { color: var(--tih); font-weight: 500; font-size: 12px; }
.cip.aktivno { background: var(--tinta); border-color: var(--tinta); color: var(--papir-2); }
.cip.aktivno small { color: #C9C2B4; }
.cip-osoba i { width: 10px; height: 10px; border-radius: 50%; background: var(--b); }
.trazilica { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--linija-jaka); border-radius: 12px; background: #fff; color: var(--tih); }
.trazilica input { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; background: transparent !important; }
.trazilica.velika { margin-bottom: 12px; }
.pogodci { list-style: none; padding: 0; margin: 6px 0 0; }
.pogodci button { width: 100%; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 9px 12px; background: none; border: 0; border-radius: 9px; text-align: left; cursor: pointer; }
.pogodci button:hover { background: var(--papir-3); }
.pogodci small { color: var(--tih); margin-left: auto; }
.pogodak-novi { color: var(--akcent-tamni); font-weight: 600; align-items: center !important; }
.pogodak-novi.tih { color: var(--tih); font-weight: 500; font-size: 14px; }
.odabrani-klijent, .klijent-kartica { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--papir); border: 1px solid var(--linija); }
.odabrani-klijent > span:nth-child(2), .klijent-kartica > span:not(.inicijali) { flex: 1; min-width: 0; }
.odabrani-klijent small, .klijent-kartica small { display: block; color: var(--tih); font-size: 13px; }
.klijent-kartica { text-decoration: none; color: inherit; margin: 14px 0 10px; }
.novi-klijent { padding: 12px; border: 1px dashed var(--linija-jaka); border-radius: 12px; }
.upozorenje { display: flex; align-items: center; gap: 8px; color: #8A6212; background: #F8EDCF; padding: 8px 12px; border-radius: 10px; font-size: 14px; margin: 6px 0; }

.detalj-glava { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-left: 12px; border-left: 4px solid var(--b, var(--tinta)); }
.detalj-vrijeme { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.detalj-datum { margin: 2px 0 0; color: var(--tinta-2); }
.detalj-datum::first-letter, .sl-dan::first-letter, .dan-dan::first-letter { text-transform: uppercase; }
.info-red { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--zelena); margin: 10px 0 0; }
.info-red.tih { color: var(--zuta); }
.kontakt-gumbi { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.kontakt-gumbi .gumb { min-height: 38px; padding: 0 14px; font-size: 14px; }
.napomena-kutija { background: #FFF; border: 1px solid var(--linija); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.napomena-kutija.interna { background: #FFF8E9; border-color: #EFDDB5; }
.akcije { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.povijest { list-style: none; padding: 0; margin: 0; }
.povijest li, .povijest li a { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--linija); font-size: 14px; text-decoration: none; color: inherit; }
.povijest li a { padding: 0; border: 0; }
.povijest li:has(a) { display: block; }
.slobodni-lista { list-style: none; padding: 0; margin: 0; }
.slobodni-lista button { width: 100%; display: grid; grid-template-columns: 110px 70px 1fr auto; align-items: center; gap: 10px; padding: 12px 6px; border: 0; border-bottom: 1px dashed var(--linija); background: none; text-align: left; cursor: pointer; }
.slobodni-lista button:hover { background: var(--papir); }
.sl-dan { display: inline-block; color: var(--tinta-2); }
.sl-vrijeme { font-family: var(--serif); font-size: 20px; }
.sl-tko { color: var(--tih); font-size: 13px; }

/* ---------- klijenti ---------- */
.klijenti-lista .kl-tekst { flex: 1; min-width: 0; }
.kl-znakovi { display: flex; align-items: center; gap: 6px; color: var(--tih); }
.klijent-glava { display: flex; align-items: flex-start; gap: 14px; margin: 6px 0 10px; }
.klijent-glava .inicijali { width: 56px; height: 56px; font-size: 19px; }
.klijent-glava > div { flex: 1; }
.klijent-glava h1 { margin: 0; font-size: 26px; }
.brojke { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--papir-2); border: 1px solid var(--linija); border-radius: var(--r); margin: 14px 0 4px; }
.brojke > div { padding: 12px; text-align: center; }
.brojke > div + div { border-left: 1px dashed var(--linija); }
.brojke b { display: block; font-family: var(--serif); font-size: 22px; }
.brojke small { color: var(--tih); font-size: 12.5px; }
.privatno-okvir { margin: 8px 0 0; padding: 14px; border-radius: 12px; background: #FFF8E9; border: 1px dashed #E2C98F; }
.privatno-naslov { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-weight: 700; font-size: 13px; color: #8A6212; }

/* ---------- postavke ---------- */
.naslovna-slika { height: 140px; border-radius: var(--r); background: var(--papir-3) center/cover; border: 1px solid var(--linija); display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; margin-bottom: 16px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 23px, var(--linija) 23px 24px); }
.boje { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.boja { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--papir-2); box-shadow: 0 0 0 1px var(--linija-jaka); cursor: pointer; }
.boja.aktivno { box-shadow: 0 0 0 2px var(--tinta); }
.izbor-kartice { display: grid; gap: 10px; margin-bottom: 16px; }
.izbor-kartica { position: relative; display: block; padding: 14px 16px 14px 46px; border: 1.5px solid var(--linija-jaka); border-radius: 14px; background: var(--papir-2); cursor: pointer; transition: border-color .15s, background .15s; }
.izbor-kartica input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--tinta); }
.izbor-kartica b { display: block; font-size: 16px; }
.izbor-kartica small { color: var(--tinta-2); font-size: 14px; }
.izbor-kartica.aktivno { border-color: var(--tinta); background: #fff; }
.preporuka { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--zelena); background: var(--zelena-svijetla); padding: 2px 7px; border-radius: 6px; }
.radno { background: var(--papir-2); border: 1px solid var(--linija); border-radius: var(--r); margin-bottom: 14px; }
.radno-dan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; }
.radno-dan + .radno-dan { border-top: 1px dashed var(--linija); }
.radno-naziv { width: 120px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.radno-naziv input { width: 18px; height: 18px; accent-color: var(--tinta); }
.zatvoreno-dan .radno-naziv { color: var(--tih); }
.radno-intervali { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.interval { display: inline-flex; align-items: center; gap: 4px; }
.interval input { width: 106px !important; min-height: 38px !important; padding: 6px 8px !important; }
.usluge-lista li { display: flex; align-items: center; }
.usluge-lista .usluga-red { flex: 1; justify-content: space-between; }
.cijena { font-family: var(--serif); font-weight: 600; white-space: nowrap; }
.redoslijed { display: flex; flex-direction: column; padding-right: 6px; }
.s-ikonom { display: flex; align-items: center; gap: 12px; flex: 1; }
.tg-red { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.tg-red > span:nth-child(2) { flex: 1; }
.tg-red small { display: block; color: var(--tih); font-size: 13px; }
.tg-znak { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2A9ED8; color: #fff; font-weight: 800; font-size: 13px; }
.oznake-zamjene { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.oznake-zamjene code { background: var(--papir-3); padding: 2px 7px; border-radius: 6px; font-size: 13px; }
.poruka-ur { background: var(--papir-2); border: 1px solid var(--linija); border-radius: var(--r); padding: 0 14px; margin-bottom: 8px; }
.poruka-ur summary { padding: 13px 0; font-weight: 700; cursor: pointer; }
.poruka-ur[open] { padding-bottom: 12px; }
.link-kutija { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--linija-jaka); border-radius: 12px; }
.link-kutija code { flex: 1 1 100%; font-size: 15px; word-break: break-all; color: var(--akcent-tamni); }
.qr-kutija { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0; padding: 18px; background: #fff; border: 1px solid var(--linija); border-radius: var(--r); text-align: center; }
.qr-kutija img { image-rendering: pixelated; }
.savjeti { padding-left: 20px; color: var(--tinta-2); }
.savjeti li { margin-bottom: 6px; }
.dnevnik { list-style: none; padding: 0; margin: 0; }
.dnevnik li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--linija); font-size: 14px; }
.dnevnik li > span:nth-child(2) { flex: 1; min-width: 0; }
.dnevnik small { display: block; color: var(--tih); font-size: 12.5px; word-break: break-word; }
.dn-kanal { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--papir-3); font-size: 11px; font-weight: 800; flex: none; }
.dn-kanal.telegram { background: #DCEBF5; color: #2A6A93; }
.dn-stanje { font-size: 12px; font-weight: 700; color: var(--tih); }
.dn-stanje.poslano { color: var(--zelena); }
.dn-stanje.greska { color: var(--crvena); }

/* ---------- obavijesti (toast) ---------- */
.tostovi { position: fixed; left: 50%; top: calc(var(--vrh-v) + 10px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.tost { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--tinta); color: var(--papir-2); font-size: 14.5px; box-shadow: var(--sjena); animation: tost .3s cubic-bezier(.2, .8, .2, 1); }
.tost button { background: none; border: 0; color: #F3B79C; font-weight: 700; cursor: pointer; }
.tost-greska { background: var(--crvena); }
.tost-upozorenje { background: #6E5310; }
@keyframes tost { from { transform: translateY(-12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
