/* =========================================================
   Osoblje – profilne kartice
   ========================================================= */
.pcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease), border-color .3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px color-mix(in srgb, var(--sc) 70%, transparent); border-color: color-mix(in srgb, var(--sc) 35%, var(--border)); }
.pcard.inactive { filter: grayscale(.9); opacity: .6; }
.pc-band {
  height: 84px; padding: 12px 14px; display: flex; gap: 6px; align-items: flex-start; justify-content: flex-end;
  background:
    radial-gradient(120px 90px at 0% 100%, rgba(255, 255, 255, .28), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 10px),
    linear-gradient(135deg, var(--sc), color-mix(in srgb, var(--sc) 55%, #fff));
}
.pc-chip {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(0, 0, 0, .18); backdrop-filter: blur(4px); padding: 3px 9px; border-radius: 999px;
}
.pc-chip.off { background: rgba(0, 0, 0, .45); }
.pc-mono {
  position: absolute; top: 46px; left: 18px; width: 72px; height: 72px; border-radius: 22px;
  display: grid; place-items: center; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--sc);
  background: var(--surface); border: 4px solid var(--surface);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--sc) 80%, transparent), inset 0 0 0 1.5px color-mix(in srgb, var(--sc) 30%, transparent);
  transition: transform .4s var(--spring, ease);
}
.pcard:hover .pc-mono { transform: rotate(-6deg) scale(1.05); }
.pc-body { padding: 46px 18px 14px; flex: 1; }
.pc-title { font-size: 11.5px; font-weight: 700; color: var(--sc); text-transform: uppercase; letter-spacing: .08em; min-height: 15px; }
.pc-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.pc-spec { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.pc-today {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--sc) 9%, transparent); font-size: 12.5px; color: var(--text-2);
}
.pc-today-n {
  min-width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--sc); color: #fff; font-weight: 800; font-size: 14px;
}
.pc-today b { color: var(--text); }
.pc-actions { display: flex; border-top: 1px solid var(--border); }
.pc-act {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 8px;
  font-size: 12.5px; font-weight: 700; color: var(--text-2); min-width: 0; transition: background .2s, color .2s;
}
.pc-act span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-act + .pc-act { border-left: 1px solid var(--border); }
.pc-act svg.i { width: 15px; height: 15px; color: var(--sc); flex: none; }
a.pc-act:hover { background: color-mix(in srgb, var(--sc) 10%, transparent); color: var(--text); }

/* =========================================================
   Ambulante i sale – pločice sa dnevnom zauzetošću
   ========================================================= */
.rt-section { margin-bottom: 28px; }
.rt-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.rt-section-head h3 { font-size: 16px; font-weight: 800; }
.rt-section-head span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rtile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.rtile {
  position: relative; overflow: hidden; cursor: pointer; border-radius: 22px; padding: 18px 20px 16px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--rc) 13%, var(--surface)) 0%, var(--surface) 55%);
  border: 1px solid color-mix(in srgb, var(--rc) 22%, var(--border));
  display: flex; flex-direction: column; gap: 2px; min-height: 230px;
  transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease);
}
.rtile::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--rc); }
.rtile:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -26px color-mix(in srgb, var(--rc) 80%, transparent); }
.rtile.inactive { filter: grayscale(1); opacity: .55; }
.rt-ico { position: absolute; right: -18px; bottom: 34px; color: var(--rc); opacity: .08; pointer-events: none; transition: transform .5s var(--ease, ease), opacity .3s; }
.rt-ico svg.i { width: 150px; height: 150px; stroke-width: 1.2; }
.rtile:hover .rt-ico { transform: rotate(-8deg) scale(1.06); opacity: .13; }
.rt-top { display: flex; align-items: flex-start; justify-content: space-between; }
.rt-num {
  font-size: 54px; font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--rc);
  font-variant-numeric: tabular-nums;
}
.rt-state { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.rt-state span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rt-state.free { color: var(--success); }
.rt-state.busy { color: var(--accent); }
.rt-state.busy span { animation: rt-blink 1.4s infinite; }
.rt-state.off { color: var(--muted); }
@keyframes rt-blink { 50% { opacity: .25; } }
.rt-type { margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rt-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.rt-desc { font-size: 12.5px; color: var(--text-2); min-height: 18px; position: relative; }
.rt-day { margin-top: auto; padding-top: 14px; position: relative; }
.rt-line { position: relative; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 10%, var(--surface-3)); overflow: hidden; }
.rt-line i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--rc); box-shadow: 0 0 0 1px var(--surface); }
.rt-line i.done { opacity: .45; }
.rt-line b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.rt-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.rt-scale span:nth-child(2) { color: var(--text-2); font-weight: 700; text-align: center; }

/* ulazna animacija kao i ostale kartice */
.page-enter .pcard-grid > *, .page-enter .rtile-grid > * { animation: rise .55s var(--ease, ease) both; }
.page-enter .pcard-grid > :nth-child(2), .page-enter .rtile-grid > :nth-child(2) { animation-delay: .07s; }
.page-enter .pcard-grid > :nth-child(3), .page-enter .rtile-grid > :nth-child(3) { animation-delay: .14s; }
.page-enter .pcard-grid > :nth-child(n+4), .page-enter .rtile-grid > :nth-child(n+4) { animation-delay: .2s; }
.page-enter .rt-line i { transform-origin: left; animation: grow-x .8s var(--ease, ease) both; animation-delay: .35s; }

/* Poravnanje kolona: zaglavlje prati sadržaj (opšte .table th pravilo je bilo jače od .right) */
.table th.right, .table td.right { text-align: right; }
.table th.center, .table td.center { text-align: center; }
