/* Hidromatic Servis (SaaS) – videz v barvah Hidromatic (temno modra #002452, zelena #00A651, svetla #F4F8FB) */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../lib/font/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../lib/font/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Barve Hidromatic (hidromatic.si): temno modra, modra, zelena, svetla podlaga */
    --up-navy: #002452;
    --up-blue: #003B7A;
    --up-bg: #F4F8FB;
    --up-band: #E3EBF3;
    --up-soft: #EBF1F7;
    --up-surface: #FFFFFF;
    --up-text: #10233F;
    --up-muted: #5B6B80;
    --up-line: #DCE5EE;
    --up-accent: #00A651;
    --up-accent-dark: #008A43;
    --up-accent-soft: #E1F5E9;
    --up-ok: #2E8B57;
    --up-soon: #D99A0E;
    --up-over: #B42318;
    --up-radius: 12px;
    --up-shadow: 0 1px 2px rgba(16, 35, 63, .06), 0 4px 14px rgba(16, 35, 63, .07);
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-color: var(--up-text);
    --bs-body-bg: var(--up-bg);
    --bs-primary: var(--up-accent);
    --bs-primary-rgb: 0, 166, 81;
    --bs-link-color: var(--up-blue);
    --bs-link-color-rgb: 0, 59, 122;
    --bs-link-hover-color: var(--up-accent-dark);
    --bs-border-radius: 8px;
}

[x-cloak] { display: none !important; }
body { background: var(--up-bg); color: var(--up-text); font-size: 15px; }
h1, h2, h3 { font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; margin: 0; }
h2 { font-size: 1.08rem; margin: 0 0 .6rem; }
.fs-xs { font-size: .78rem; }
.pre { white-space: pre-line; }
.text-muted { color: var(--up-muted) !important; }

.btn { border-radius: 9px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--up-accent); --bs-btn-border-color: var(--up-accent); --bs-btn-hover-bg: var(--up-accent-dark); --bs-btn-hover-border-color: var(--up-accent-dark); --bs-btn-active-bg: var(--up-accent-dark); --bs-btn-active-border-color: var(--up-accent-dark); --bs-btn-disabled-bg: #7FD2A8; --bs-btn-disabled-border-color: #7FD2A8; }
.btn-light { --bs-btn-bg: var(--up-soft); --bs-btn-border-color: var(--up-soft); --bs-btn-hover-bg: var(--up-band); --bs-btn-hover-border-color: var(--up-band); }
.btn-dark { --bs-btn-bg: var(--up-navy); --bs-btn-border-color: var(--up-navy); --bs-btn-hover-bg: var(--up-blue); --bs-btn-hover-border-color: var(--up-blue); }
.form-control, .form-select { border-radius: 9px; border-color: #CBD6E2; }
.form-control:focus, .form-select:focus { border-color: var(--up-accent); box-shadow: 0 0 0 .2rem rgba(0, 166, 81, .18); }
.form-check-input:checked { background-color: var(--up-accent); border-color: var(--up-accent); }
.form-label { font-size: .82rem; font-weight: 650; color: var(--up-muted); margin-bottom: .25rem; }

/* ------------------------------------------------------------------ ogrodje */
.up-app { min-height: 100vh; padding-bottom: 76px; }
.up-topbar { background: var(--up-surface); border-bottom: 3px solid var(--up-navy); position: sticky; top: 0; z-index: 1020; }

/* Hidromatic SuperAdmin je vstopil v stranko */
.up-entered { background: var(--up-soon); color: #2B1D00; font-size: .875rem; font-weight: 600; }
.up-entered-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.up-entered form { margin: 0; }
.up-entered .btn { padding: .15rem .6rem; font-weight: 600; }
@media print { .up-entered { display: none; } }

/* Skrbništvo strank in nastavitve */
.up-tenant-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; background: var(--up-soft); border-radius: 6px; padding: .05rem .4rem; }
.up-settings-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--up-line); margin-bottom: 1rem; flex-wrap: wrap; }
.up-settings-tabs a { padding: .5rem .9rem; color: var(--up-muted); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; }
.up-settings-tabs a.active { color: var(--up-navy); border-bottom-color: var(--up-accent); }
.up-table-actions { white-space: nowrap; text-align: right; }
.up-topbar-inner { display: flex; align-items: center; gap: 1rem; height: 58px; }
.up-logo { display: flex; align-items: center; gap: .5rem; color: var(--up-text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.up-logo-img { height: 34px; width: auto; }
.up-logo-client { padding-left: .75rem; border-left: 1px solid var(--up-line); color: var(--up-navy); font-weight: 700; font-size: .92rem; letter-spacing: .01em; }
@media (max-width: 575.98px) { .up-logo-img { height: 28px; } .up-logo-client { font-size: .8rem; padding-left: .5rem; } }
.up-nav { display: none; gap: .15rem; flex: 1; overflow-x: auto; }
.up-nav a { color: var(--up-muted); text-decoration: none; font-weight: 600; font-size: .9rem; padding: .45rem .7rem; border-radius: 9px; white-space: nowrap; }
.up-nav a:hover { background: var(--up-soft); color: var(--up-text); }
.up-nav a.active { background: var(--up-accent-soft); color: var(--up-navy); box-shadow: inset 0 -2px 0 var(--up-accent); }
.up-user { margin-left: auto; }
.up-avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--up-navy); color: #fff; font-weight: 700; }
.up-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--up-muted); font-weight: 700; }
.dropdown-item i { width: 1.3rem; display: inline-block; }
.up-main { padding-top: 1.2rem; padding-bottom: 2rem; }
.up-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1020; display: flex; background: var(--up-surface); border-top: 1px solid var(--up-line); padding-bottom: env(safe-area-inset-bottom); }
.up-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0 .5rem; font-size: .7rem; font-weight: 650; color: var(--up-muted); text-decoration: none; }
.up-bottom-nav a i { font-size: 1.25rem; }
.up-bottom-nav a.active { color: var(--up-accent); }
@media (min-width: 992px) {
    .up-nav { display: flex; }
    .up-bottom-nav { display: none; }
    .up-app { padding-bottom: 0; }
}

.up-alert { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 550; transition: opacity .4s, max-height .4s; }
.up-alert i { margin-top: 2px; }
.up-alert-success { background: #E3F2E8; color: #1D5E3A; }
.up-alert-info { background: #E5EEF7; color: #24476B; }
.up-alert-warning { background: #FCF0D7; color: #7A5306; }
.up-alert-danger { background: #FBE3E1; color: #8A1F16; }
.up-hide { opacity: 0; max-height: 0; padding: 0; margin: 0; overflow: hidden; }

.up-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.up-back { display: inline-flex; gap: .3rem; font-size: .85rem; color: var(--up-muted); text-decoration: none; margin-bottom: .3rem; }
.up-h2 { font-size: 1rem; color: var(--up-muted); text-transform: uppercase; letter-spacing: .05em; }

.up-card { display: block; background: var(--up-surface); border-radius: var(--up-radius); box-shadow: var(--up-shadow); padding: 1rem 1.1rem; margin-bottom: 1rem; color: inherit; text-decoration: none; }
a.up-card:hover { color: inherit; }
.up-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.up-card-head h2 { margin: 0; }
.up-card-accent { border-left: 4px solid var(--up-accent); }
.up-empty { color: var(--up-muted); text-align: center; padding: 1.5rem .5rem; }
.up-note { display: flex; gap: .6rem; background: var(--up-band); padding: .6rem .9rem; border-radius: 10px; font-size: .9rem; }

/* ------------------------------------------------------------------ KPI */
.up-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.up-kpi { background: var(--up-surface); border-radius: var(--up-radius); box-shadow: var(--up-shadow); padding: .9rem 1rem; text-decoration: none; color: var(--up-text); display: flex; flex-direction: column; border-top: 4px solid var(--up-band); }
.up-kpi:hover { color: var(--up-text); transform: translateY(-1px); }
.up-kpi-label { font-size: .78rem; font-weight: 700; color: var(--up-muted); text-transform: uppercase; letter-spacing: .04em; }
.up-kpi-value { font-size: 2rem; font-weight: 800; line-height: 1.15; }
.up-kpi-sub { font-size: .8rem; color: var(--up-muted); }
.up-kpi-over { border-top-color: var(--up-over); } .up-kpi-over .up-kpi-value { color: var(--up-over); }
.up-kpi-soon { border-top-color: var(--up-soon); } .up-kpi-soon .up-kpi-value { color: #A9720A; }
.up-kpi-ok { border-top-color: var(--up-ok); } .up-kpi-ok .up-kpi-value { color: var(--up-ok); }

/* ------------------------------------------------------------------ seznami */
.up-list { display: flex; flex-direction: column; }
.up-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--up-line); color: inherit; text-decoration: none; border-left: 4px solid var(--c, transparent); }
.up-card > .up-list .up-row:first-child { border-top-left-radius: var(--up-radius); }
.up-row:last-child { border-bottom: 0; }
a.up-row:hover { background: #F7FAFC; color: inherit; }
.up-row-main { flex: 1; min-width: 0; }
.up-row-cycle { width: 170px; flex-shrink: 0; display: flex; align-items: center; gap: .5rem; }
.up-code { font-weight: 750; font-size: .92rem; font-variant-numeric: tabular-nums; }
.up-name { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.up-meta { font-size: .8rem; color: var(--up-muted); }
.up-pick { max-height: 60vh; overflow-y: auto; }

/* trak cikla */
.up-cycle { position: relative; flex: 1; height: 10px; background: var(--up-soft); border-radius: 99px; overflow: hidden; min-width: 60px; }
.up-cycle span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; transition: width .3s; }
.up-cycle-over { background: #F6D5D2; }
.up-cycle-over span { animation: up-pulse 1.4s ease-in-out infinite; }
.up-cycle-none span { width: 0; }
.up-cycle-pct { font-size: .85rem; width: 3.3rem; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes up-pulse { 50% { opacity: .55; } }
.up-legend { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--up-muted); margin: 0 0 .7rem; flex-wrap: wrap; }
.up-legend-bar { width: 160px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, hsl(130,72%,38%), hsl(65,72%,46%), hsl(0,72%,38%)); }
.up-legend-over { color: #9F1D1D; font-weight: 700; margin-left: .5rem; }

/* značke */
.up-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .18rem .5rem; border-radius: 99px; background: var(--up-soft); color: var(--up-muted); white-space: nowrap; }
.up-badge-over { background: #FBE3E1; color: #8A1F16; }
.up-badge-soon { background: #FCF0D7; color: #7A5306; }
.up-badge-ok { background: #E3F2E8; color: #1D5E3A; }
.up-st-open { background: #E5EEF7; color: #24476B; }
.up-st-in_progress { background: var(--up-accent-soft); color: var(--up-accent-dark); }
.up-st-done { background: #E3F2E8; color: #1D5E3A; }
.up-st-cancelled { background: var(--up-soft); color: var(--up-muted); text-decoration: line-through; }
.up-type { font-size: .76rem; font-weight: 650; color: var(--up-muted); white-space: nowrap; }
.up-type-callout { color: #B54708; }
.up-type-failure { color: var(--up-over); }
.up-wo-badges { line-height: 1.9; }
.up-wo-done { opacity: .8; }
.up-src { font-size: .75rem; font-weight: 650; padding: .1rem .45rem; border-radius: 6px; background: var(--up-soft); }
.up-src-scada { background: #E5EEF7; color: #24476B; }
.up-src-service { background: var(--up-accent-soft); color: var(--up-accent-dark); }

/* orodna vrstica / filtri */
.up-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.up-toolbar > .form-select { max-width: 340px; }
.up-search { position: relative; flex: 1; min-width: 200px; }
.up-search i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--up-muted); }
.up-search .form-control { padding-left: 2.2rem; }
.up-chips { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-bottom: .7rem; }
.up-chip { padding: .32rem .75rem; border-radius: 99px; background: var(--up-surface); border: 1px solid var(--up-line); color: var(--up-muted); font-size: .84rem; font-weight: 650; text-decoration: none; }
.up-chip:hover { color: var(--up-text); border-color: #C3D0DD; }
.up-chip.active { background: var(--up-navy); border-color: var(--up-navy); color: #fff; }
.up-sort { width: auto; }

/* seznam opreme */
.up-eq-head, .up-eq { display: grid; grid-template-columns: minmax(0, 2.4fr) 110px 110px minmax(0, 1.6fr) 210px; gap: 1rem; align-items: center; padding: .65rem 1rem; }
.up-eq-head { font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--up-muted); border-bottom: 1px solid var(--up-line); }
.up-eq { border-bottom: 1px solid var(--up-line); color: inherit; text-decoration: none; border-left: 5px solid var(--c); }
.up-eq:last-child { border-bottom: 0; }
.up-eq:hover { background: #F7FAFC; color: inherit; }
.up-eq-inactive { opacity: .55; }
.up-eq-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.up-eq-cycle { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 991.98px) {
    .up-eq { grid-template-columns: 1fr 1fr; gap: .25rem .8rem; }
    .up-eq-main, .up-eq-next, .up-eq-cycle { grid-column: 1 / -1; }
    .up-eq-num { text-align: left; font-size: .82rem; font-weight: 600; }
    .up-eq-num span { color: var(--up-muted); font-weight: 500; }
}

/* podrobnosti opreme */
.up-eq-title { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.up-eq-subtitle { font-size: 1.05rem; font-weight: 600; }
.up-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.up-counter { background: var(--up-surface); border-radius: var(--up-radius); box-shadow: var(--up-shadow); padding: .9rem 1rem; display: flex; flex-direction: column; border-top: 4px solid var(--c, var(--up-band)); }
.up-counter-label { font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--up-muted); }
.up-counter-value { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.up-counter-value small { font-size: .9rem; color: var(--up-muted); font-weight: 600; }
.up-counter-sub { font-size: .8rem; color: var(--up-muted); margin-top: .2rem; }
.up-counter .up-cycle { height: 14px; }
.up-counter .up-cycle-pct { font-size: 1.15rem; width: auto; }
.up-counter > div { display: flex; align-items: center; gap: .6rem; }
.up-anchors { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: 1rem; position: sticky; top: 58px; z-index: 10; background: var(--up-bg); padding: .4rem 0; }
.up-anchors a { padding: .3rem .8rem; border-radius: 99px; background: var(--up-band); color: var(--up-navy); font-size: .84rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
section[id] { scroll-margin-top: 110px; }

.up-plan { border: 1px solid var(--up-line); border-left: 5px solid var(--c); border-radius: 10px; padding: .75rem .9rem; margin-top: .6rem; }
.up-plan-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.up-plan-name { font-weight: 750; }
.up-plan-cycle { width: 220px; display: flex; align-items: center; gap: .5rem; }
.up-plan-stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--up-muted); margin-top: .35rem; }
.up-tasks { margin: .45rem 0 0; padding-left: 1.1rem; font-size: .86rem; }
.up-plan-actions { margin-top: .3rem; }
.up-plan-actions .btn-link { padding: .1rem .4rem; text-decoration: none; font-size: .82rem; }
.up-plan-form { background: var(--up-bg); border-radius: 10px; padding: .8rem; margin-top: .6rem; }
.up-source { white-space: pre-wrap; font-size: .8rem; background: var(--up-bg); padding: .7rem; border-radius: 8px; margin-top: .4rem; }
.up-checks { display: flex; flex-direction: column; gap: .35rem; }
.up-check { display: flex; gap: .55rem; align-items: flex-start; padding: .5rem .7rem; border-radius: 9px; background: var(--up-bg); cursor: pointer; }
.up-check input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--up-accent); flex-shrink: 0; }
.up-dl { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: .35rem 1rem; margin: 0; font-size: .9rem; }
.up-dl dt { color: var(--up-muted); font-weight: 600; }
.up-dl dd { margin: 0; }
.up-table { font-size: .88rem; margin: 0; }
.up-qr { width: 132px; height: 132px; }
.up-qr svg { width: 100%; height: 100%; }
.up-eq-mini { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-left: 5px solid var(--c); }

/* unos sati */
.up-hours-head, .up-hours-row { display: grid; grid-template-columns: minmax(0, 2.5fr) 110px 190px 140px 110px; gap: .8rem; align-items: center; padding: .55rem 1rem; }
.up-hours-head { font-size: .74rem; font-weight: 750; text-transform: uppercase; color: var(--up-muted); border-bottom: 1px solid var(--up-line); }
.up-hours-row { border-bottom: 1px solid var(--up-line); border-left: 5px solid var(--c); }
.up-hours-row > div:nth-child(4) { display: flex; align-items: center; gap: .4rem; }
.up-hours-row .up-eq-main { color: inherit; text-decoration: none; min-width: 0; }
.up-sticky-actions { position: sticky; top: 64px; z-index: 11; }
@media (max-width: 767.98px) {
    .up-hours-row { grid-template-columns: 1fr 1fr; gap: .35rem .6rem; }
    .up-hours-row .up-eq-main, .up-hours-row > div:nth-child(4) { grid-column: 1 / -1; }
    .up-sticky-actions { position: static; }
}

/* koledar */
.up-cal-toolbar { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.up-cal-toolbar h2 { min-width: 170px; text-align: center; }
.up-cal-legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--up-muted); margin-bottom: .6rem; flex-wrap: wrap; }
.up-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; background: var(--up-band); border-radius: 10px; padding: 3px; }
.up-cal-dayname { text-align: center; font-size: .74rem; font-weight: 750; text-transform: uppercase; color: var(--up-muted); padding: .35rem 0; }
.up-cal-cell { background: var(--up-surface); border-radius: 7px; min-height: 108px; padding: .3rem; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-cal-cell.is-out { background: var(--up-soft); }
.up-cal-cell.is-out .up-cal-num { color: #9AA8B8; }
.up-cal-cell.is-today { outline: 2px solid var(--up-accent); outline-offset: -2px; }
.up-cal-cell.is-today .up-cal-num { color: var(--up-accent); }
.up-cal-num { font-weight: 750; font-size: .85rem; }
.up-cal-ev { display: flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 650; color: var(--up-text); text-decoration: none; padding: .1rem .3rem; border-radius: 5px; background: var(--up-bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-cal-ev:hover { background: var(--up-band); color: var(--up-text); }
.up-cal-ev span { overflow: hidden; text-overflow: ellipsis; }
.up-cal-order { background: #E5EEF7; }
.up-cal-done { background: #E3F2E8; color: #1D5E3A; }
.up-cal-more { border: 0; background: none; font-size: .72rem; font-weight: 700; color: var(--up-accent-dark); text-align: left; padding: 0 .3rem; }
.up-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.up-dot-order { background: var(--up-blue); }
.up-dot-done { background: var(--up-ok); }
@media (max-width: 767.98px) {
    .up-cal-cell { min-height: 74px; padding: .2rem; }
    .up-cal-ev span { display: none; }
    .up-cal-ev { padding: .15rem; justify-content: center; }
}

/* nalogi – mobilno */
.up-scan { display: flex; align-items: center; gap: .8rem; background: linear-gradient(120deg, var(--up-navy), var(--up-blue) 60%, #0B6E64); color: #fff; border-radius: var(--up-radius); padding: .9rem 1rem; text-decoration: none; margin-bottom: 1rem; font-weight: 600; }
.up-scan i { font-size: 1.6rem; color: #5FE39A; }
.up-scan:hover { color: #fff; }
.up-fab { position: fixed; right: 18px; bottom: 88px; width: 56px; height: 56px; border-radius: 50%; background: var(--up-over); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 1000; }
.up-fab:hover { color: #fff; }
@media (min-width: 992px) { .up-fab { bottom: 28px; } }
.up-camera { padding: .9rem; font-size: 1.05rem; }
.up-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.up-photo { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--up-soft); }
.up-photo img { width: 100%; height: 100%; object-fit: cover; }
.up-photo form { position: absolute; top: 4px; right: 4px; }
.up-photo-del { border: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; }
.up-sigpad { position: relative; border: 2px dashed #C3D0DD; border-radius: 10px; background: #fff; height: 190px; touch-action: none; }
.up-sigpad canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.up-sigpad-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #A9B6C4; pointer-events: none; font-weight: 600; }
.up-signature-img img { max-width: 320px; width: 100%; border-bottom: 1px solid var(--up-line); }

/* QR nalepke */
.up-labels { display: grid; gap: 8px; }
.up-labels-small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.up-labels-medium { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.up-labels-large { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.up-label { display: flex; gap: .6rem; align-items: center; background: #fff; border: 1px solid #C3D0DD; border-radius: 8px; padding: .5rem; break-inside: avoid; page-break-inside: avoid; }
.up-label-qr { flex-shrink: 0; width: 34%; aspect-ratio: 1; }
.up-label-qr svg { width: 100%; height: 100%; }
.up-label-text { min-width: 0; }
.up-label-brand { font-size: .62rem; font-weight: 800; color: var(--up-navy); text-transform: uppercase; letter-spacing: .06em; }
.up-label-code { font-weight: 800; font-size: 1rem; word-break: break-all; }
.up-label-name { font-size: .72rem; line-height: 1.25; }
.up-label-process { font-size: .62rem; color: var(--up-muted); margin-top: .15rem; }
.up-labels-large .up-label-code { font-size: 1.35rem; }
.up-labels-large .up-label-name { font-size: .85rem; }
/* Nalepke samo z besedilom (brez QR kode): besedilo čez celo širino, sredinsko, oznaka večja. */
.up-labels-text .up-label { justify-content: center; text-align: center; min-height: 0; }
.up-labels-text .up-label-text { width: 100%; }
.up-labels-text .up-label-code { font-size: 1.2rem; }
.up-labels-text.up-labels-large .up-label-code { font-size: 1.6rem; }
.up-labels-text.up-labels-small .up-label-code { font-size: 1rem; }

@media print {
    .up-topbar, .up-bottom-nav, .d-print-none, .up-alert { display: none !important; }
    body, .up-app { background: #fff; padding: 0; }
    .up-main { padding: 0; max-width: none; }
    .up-labels-small { grid-template-columns: repeat(4, 1fr); }
    .up-labels-medium { grid-template-columns: repeat(3, 1fr); }
    .up-labels-large { grid-template-columns: repeat(2, 1fr); }
    @page { margin: 10mm; }
}

/* prijava */
.up-bare { color: var(--up-text); background: linear-gradient(135deg, var(--up-navy) 0%, var(--up-blue) 55%, #0B6E64 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.up-bare-main { width: 100%; max-width: 420px; }
.up-bare-logo { text-align: center; margin-bottom: 1.2rem; }
.up-bare-logo-card { display: inline-block; background: #fff; border-radius: 14px; padding: .7rem 1.1rem; box-shadow: var(--up-shadow); }
.up-bare-logo img { height: 52px; width: auto; display: block; }
.up-bare-client { color: #fff; font-weight: 700; font-size: 1.05rem; margin-top: .8rem; letter-spacing: .02em; }
.up-bare-sub { color: rgba(255,255,255,.75); font-size: .85rem; }
.up-bare .up-lang .btn-light { --bs-btn-bg: rgba(255,255,255,.15); --bs-btn-border-color: transparent; --bs-btn-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.28); --bs-btn-hover-color: #fff; }
.up-bare-footer { text-align: center; color: rgba(255,255,255,.7); font-size: .78rem; margin-top: 1rem; }
.up-bare-footer a { color: #fff; }
.up-bare .up-card { padding: 1.5rem; }

/* noga – Hidromatic */
.up-footer { border-top: 1px solid var(--up-line); margin-top: 2rem; padding: 1rem 0 1.4rem; font-size: .8rem; color: var(--up-muted); }
.up-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.up-footer img { height: 22px; width: auto; vertical-align: middle; margin-right: .5rem; }
.up-footer a { color: var(--up-muted); text-decoration: none; }
.up-footer a:hover { color: var(--up-navy); }
@media print { .up-footer { display: none; } }

/* serviser na postavki plana */
.up-assignee { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 650; color: var(--up-blue); }
.up-assignee-me { color: var(--up-accent-dark); }
.up-check .up-assignee { margin-left: .4rem; }
.up-check-disabled { opacity: .5; cursor: not-allowed; }
.up-assign-all { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--up-bg); border-radius: 10px; padding: .5rem .7rem; font-size: .85rem; }
.up-assign-all .form-select { width: auto; min-width: 200px; }
.up-bulk summary { cursor: pointer; font-weight: 650; color: var(--up-navy); }
.up-myplan { border-left: 5px solid var(--c); }
.up-myplan .up-cycle { max-width: 260px; }

/* ---------------------------------------------------------------- zamenjava motorja / reset števca */
.up-reset-alert { display: flex; gap: .75rem; align-items: flex-start; background: #FFF4E5; border: 1px solid #F5C98B; color: #6B3D06; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.up-reset-alert > .bi { font-size: 1.4rem; line-height: 1; margin-top: .1rem; }
.up-reset-alert a { color: #6B3D06; }
.up-badge-reset { background: #FFF4E5; color: #8A4B06; margin-left: .25rem; }
.up-badge-archived { background: #ECEFF3; color: #5B6676; margin-top: .25rem; }
.up-row-archived { opacity: .62; }
.up-row-archived:hover { opacity: .9; }
.up-src-reset { background: #FFF4E5; color: #8A4B06; }
.up-table tr.up-old-period td { color: var(--up-muted); }
.up-table tr.up-reset-row td { background: #FFF8EE; }

/* ---------------------------------------------------------------- dokumentacija opreme */
.up-docs { display: flex; flex-direction: column; }
.up-doc { display: flex; align-items: center; gap: .4rem; padding: .55rem 0; border-bottom: 1px solid var(--up-line); }
.up-doc:last-child { border-bottom: 0; }
.up-doc form { margin: 0; }
.up-doc-main { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.up-doc-main:hover .up-doc-title { text-decoration: underline; }
.up-doc-icon { font-size: 1.6rem; color: var(--up-blue); flex: none; }
.up-doc-main > span { display: flex; flex-direction: column; min-width: 0; }
.up-doc-title { font-weight: 650; overflow-wrap: anywhere; }
.up-doc .up-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; overflow-wrap: anywhere; }
.up-docs-card > summary { cursor: pointer; font-weight: 700; list-style: none; }
.up-docs-card > summary::-webkit-details-marker { display: none; }
.up-docs-card > summary .bi { color: var(--up-blue); margin-right: .3rem; }

/* ---------------------------------------------------------------- navodila za uporabo / kontekstna pomoč */
.up-help-top { margin-left: auto; color: var(--up-blue); font-size: 1.35rem; line-height: 1; padding: .25rem; border-radius: 50%; text-decoration: none; }
.up-help-top:hover, .up-help-top.active { color: var(--up-accent-dark); }
.up-help-top + .up-user { margin-left: .2rem; }
.up-help-link { border: 0; background: none; padding: 0 .15rem; color: var(--up-blue); font-size: 1.05rem; line-height: 1; vertical-align: middle; cursor: pointer; }
.up-help-link:hover { color: var(--up-accent-dark); }
.up-help-link-missing { color: #E08A00; opacity: .85; }
h1 .up-help-link, h2 .up-help-link { font-size: .7em; }

.up-help-toc { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; padding: .8rem; }
.up-help-toc a { display: flex; gap: .4rem; padding: .32rem .5rem .32rem calc(.5rem + var(--d, 0) * .9rem); border-radius: 8px; color: var(--up-text); text-decoration: none; font-size: .88rem; line-height: 1.3; }
.up-help-toc a:hover { background: var(--up-soft); }
.up-help-toc a.active { background: var(--up-accent-soft); color: var(--up-navy); font-weight: 650; box-shadow: inset 3px 0 0 var(--up-accent); }
.up-help-toc .up-help-all { --d: 0; font-weight: 650; margin-bottom: .3rem; border-bottom: 1px solid var(--up-line); border-radius: 8px 8px 0 0; }
.up-help-num { color: var(--up-muted); font-variant-numeric: tabular-nums; min-width: 1.8rem; display: inline-block; }
.up-help-inactive { opacity: .55; }
.up-help-title { font-size: 1.35rem; margin-bottom: .8rem; }
.up-help-article + .up-help-article { margin-top: 1rem; }
.up-help-content { line-height: 1.6; }
.up-help-content h2, .up-help-content h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; color: var(--up-navy); }
.up-help-content ul, .up-help-content ol { padding-left: 1.4rem; }
.up-help-content li { margin-bottom: .25rem; }
.up-help-content img { max-width: 100%; height: auto; border: 1px solid var(--up-line); border-radius: 8px; margin: .4rem 0; }
.up-help-content blockquote { border-left: 4px solid var(--up-accent); background: var(--up-accent-soft); padding: .55rem .9rem; border-radius: 0 10px 10px 0; margin: .8rem 0; }
.up-help-content blockquote p:last-child { margin-bottom: 0; }
.up-help-content a { color: var(--up-blue); }
.up-help-children { display: flex; flex-direction: column; gap: .3rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--up-line); }
.up-help-children a { display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; border-radius: 8px; background: var(--up-soft); color: var(--up-text); text-decoration: none; }
.up-help-children a .bi { margin-left: auto; color: var(--up-muted); }
.up-help-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: .8rem; border-top: 1px solid var(--up-line); font-size: .88rem; }
.up-help-pager a { color: var(--up-blue); text-decoration: none; }
.up-help-linkform { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--up-line); }

.up-help-admin-row { display: flex; align-items: center; gap: .6rem; padding: .35rem .3rem .35rem calc(.3rem + var(--d, 0) * 1.4rem); border-bottom: 1px solid var(--up-line); }
.up-help-admin-row:last-child { border-bottom: 0; }
.up-help-admin-title { flex: 1; min-width: 0; color: var(--up-text); text-decoration: none; font-weight: 600; }
.up-help-admin-actions { display: flex; align-items: center; }
.up-help-admin-actions form { margin: 0; }
.up-help-langs { display: flex; gap: .2rem; }
.up-help-langs span { font-size: .7rem; text-transform: uppercase; padding: .1rem .3rem; border-radius: 5px; background: var(--up-band); color: var(--up-muted); }
.up-help-langs span.on { background: var(--up-accent-soft); color: var(--up-accent-dark); font-weight: 700; }
.up-help-editor { min-height: 320px; background: #fff; }
.up-help-tabs .ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; background: var(--up-bg); }
.up-help-tabs .ql-container.ql-snow { border-radius: 0 0 8px 8px; font-family: inherit; font-size: .95rem; }
@media (max-width: 767.98px) { .up-help-admin-row { flex-wrap: wrap; } .up-help-langs { display: none; } }
@media print { .up-help-link, .up-help-top { display: none !important; } }

/* Shranjevanje brez osvežitve strani (site.js, form[data-ajax]): regija med oddajo + plavajoča obvestila. */
[data-ajax-region].up-busy { position: relative; pointer-events: none; }
[data-ajax-region].up-busy > * { opacity: .5; transition: opacity .2s; }
[data-ajax-region].up-busy::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.1rem; border: .25rem solid var(--up-line); border-top-color: var(--up-accent); border-radius: 50%; animation: up-spin .8s linear infinite; }
@keyframes up-spin { to { transform: rotate(360deg); } }
.up-toasts { position: fixed; z-index: 1080; left: 50%; transform: translateX(-50%); bottom: calc(72px + env(safe-area-inset-bottom)); width: min(480px, calc(100% - 2rem)); display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.up-toasts .up-alert { margin: 0; box-shadow: var(--up-shadow); pointer-events: auto; }
@media (min-width: 992px) { .up-toasts { bottom: auto; top: 80px; left: auto; right: 1.5rem; transform: none; width: 380px; } }
@media print { .up-toasts { display: none !important; } }

/* ------------------------------------------------------------------ poročila */
.up-report-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.up-report-tile { display: flex; gap: 1rem; align-items: flex-start; margin: 0; transition: transform .15s, box-shadow .15s; }
.up-report-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 35, 63, .08), 0 10px 24px rgba(16, 35, 63, .12); }
.up-report-tile > i { font-size: 1.8rem; color: var(--up-accent); line-height: 1; margin-top: .1rem; }
.up-report-tile h2 { margin: 0 0 .25rem; color: var(--up-navy); }
.up-report-filter .form-label { font-size: .8rem; font-weight: 650; color: var(--up-muted); margin-bottom: .2rem; }
.up-presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.up-report-criteria { font-size: .82rem; color: var(--up-muted); margin: -.25rem 0 .75rem; }
.up-rtable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.up-rtable th { position: sticky; top: 0; background: var(--up-bg); color: var(--up-muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: .45rem .55rem; border-bottom: 1px solid var(--up-line); white-space: nowrap; }
.up-rtable td { padding: .4rem .55rem; border-bottom: 1px solid var(--up-line); vertical-align: top; }
.up-rtable tbody tr:hover td { background: #F8FBFD; }
.up-rtable tfoot td { font-weight: 750; background: var(--up-soft); border-top: 2px solid var(--up-navy); border-bottom: 0; }
.up-rtable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.up-rtable .nowrap { white-space: nowrap; }
.up-rtable a { color: var(--up-blue); text-decoration: none; }
.up-rtable a:hover { text-decoration: underline; }
.up-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; vertical-align: .02rem; }
/* Več točk v glavnem meniju: na ožjih zaslonih brez ikon in z manjšim razmikom, da se meni ne pomika. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .up-nav a { padding: .45rem .5rem; font-size: .86rem; }
    .up-nav a i { display: none; }
}

/* ------------------------------------------------------------------ modul Dokumentacija (okno iz glave, /library) */
.up-lib-top { margin-left: auto; color: var(--up-blue); font-size: 1.3rem; line-height: 1; padding: .25rem; border-radius: 50%; text-decoration: none; }
.up-lib-top:hover, .up-lib-top.active { color: var(--up-accent-dark); }
.up-lib-top + .up-help-top { margin-left: .1rem; }
.up-lib-head { gap: .75rem; flex-wrap: wrap; }
.up-lib-head .modal-title { font-weight: 800; color: var(--up-navy); margin-right: auto; }
.up-lib-head .modal-title i { color: var(--up-accent); }
.up-lib-search { flex: 0 1 280px; min-width: 180px; }
.up-lib-page { padding: 0; }
.up-lib-page .up-lib-head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--up-line); }
.up-lib-page .up-lib-body { padding: 1rem 1.1rem; }
.up-lib-body { position: relative; min-height: 320px; }
.up-lib-body.up-lib-drop { outline: 3px dashed var(--up-accent); outline-offset: -8px; background: var(--up-accent-soft); }
.up-lib-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.up-lib-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; font-weight: 650; font-size: .92rem; min-width: 0; }
.up-lib-crumbs a { text-decoration: none; color: var(--up-blue); }
.up-lib-crumbs a:hover { text-decoration: underline; }
.up-lib-crumbs .bi-chevron-right { font-size: .7rem; color: var(--up-muted); }
.up-lib-actions { display: flex; gap: .4rem; }
.up-lib-inline { display: flex; align-items: center; gap: .4rem; padding: .5rem .6rem; margin-bottom: .5rem; background: var(--up-soft); border-radius: 10px; }
.up-lib-inline > i { color: var(--up-accent); font-size: 1.1rem; }
.up-lib-inline .form-control, .up-lib-inline .form-select { max-width: 360px; }
.up-lib-list { border: 1px solid var(--up-line); border-radius: 10px; overflow: hidden; transition: opacity .15s; }
.up-lib-list.is-loading { opacity: .55; }
.up-lib-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border-bottom: 1px solid var(--up-line); background: #fff; }
.up-lib-row:last-of-type { border-bottom: 0; }
.up-lib-row:hover { background: #F8FBFD; }
.up-lib-icon { font-size: 1.35rem; width: 1.6rem; text-align: center; flex-shrink: 0; color: var(--up-muted); }
.up-lib-folder { color: #E0A82E; }
.up-lib-up .up-lib-icon { font-size: 1rem; }
.up-lib-name { flex: 1 1 auto; min-width: 0; }
.up-lib-name > a { font-weight: 650; color: var(--up-text); text-decoration: none; word-break: break-word; }
.up-lib-name > a:hover { color: var(--up-blue); text-decoration: underline; }
.up-lib-meta { font-size: .76rem; color: var(--up-muted); }
.up-lib-rename { display: flex; gap: .35rem; align-items: center; }
.up-lib-rename .form-control { max-width: 420px; }
.up-lib-row-actions { display: flex; gap: .25rem; flex-shrink: 0; }
.up-lib-row-actions .btn { padding: .2rem .45rem; }
.up-lib-list .up-empty { padding: 2rem .5rem; }
.up-lib-uploads { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .6rem; }
.up-lib-upload { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; border-radius: 8px; background: var(--up-soft); font-size: .86rem; }
.up-lib-upload.is-error { background: #FBE3E1; }
.up-lib-upload .bi-check-circle-fill { color: var(--up-ok); }
.up-lib-upload .bi-exclamation-triangle-fill { color: var(--up-over); }
.up-lib-upload .progress-bar { background: var(--up-accent); }
.up-lib-drophint { margin-top: .6rem; font-size: .8rem; color: var(--up-muted); text-align: center; }
.min-w-0 { min-width: 0; }
.up-lib-layout { display: flex; gap: 1rem; align-items: flex-start; }
.up-lib-main { flex: 1 1 auto; min-width: 0; }
.up-lib-tree { flex: 0 0 250px; position: sticky; top: 0; max-height: calc(100vh - 210px); overflow: auto; border: 1px solid var(--up-line); border-radius: 10px; padding: .35rem .3rem; background: #fff; font-size: .87rem; }
.up-lib-page .up-lib-tree { max-height: calc(100vh - 140px); top: 70px; }
.up-lib-tree-node { display: flex; align-items: center; gap: .1rem; border-radius: 6px; }
.up-lib-tree-node:hover { background: var(--up-soft); }
.up-lib-tree-node.active { background: var(--up-accent-soft); }
.up-lib-tree-node a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .35rem; padding: .22rem .35rem .22rem .1rem; color: var(--up-text); text-decoration: none; white-space: nowrap; }
.up-lib-tree-node a span { overflow: hidden; text-overflow: ellipsis; }
.up-lib-tree-node.active a { font-weight: 750; color: var(--up-navy); }
.up-lib-tree-node .bi-folder-fill, .up-lib-tree-node .bi-folder2-open { color: #E0A82E; }
.up-lib-tree-node .bi-house-door { color: var(--up-blue); }
.up-lib-tree-toggle { border: 0; background: none; width: 1.2rem; padding: 0; color: var(--up-muted); font-size: .7rem; flex-shrink: 0; line-height: 1; }
.up-lib-tree-toggle:hover { color: var(--up-text); }
.up-lib-tree-spacer { width: 1.2rem; flex-shrink: 0; }
@media (max-width: 767.98px) {
    .up-lib-layout { flex-direction: column; align-items: stretch; }
    .up-lib-tree { display: none; position: static; max-height: 45vh; flex-basis: auto; }
    .up-lib-tree.is-open { display: block; }
}
.up-ic-pdf { color: #D93025; } .up-ic-word { color: #2B579A; } .up-ic-excel { color: #217346; } .up-ic-ppt { color: #D24726; }
@media (max-width: 767.98px) { .up-lib-drophint { display: none; } }
@media (max-width: 575.98px) {
    .up-lib-search { flex-basis: 100%; order: 3; }
    .up-lib-row-actions .btn { padding: .2rem .35rem; }
}
@media print { .up-lib-top { display: none !important; } }
