@charset "utf-8";
/* CSS Document */

/*boje*/
.bk{ background-color:#f63; transition:0.3s; }
.bk:hover{ background-color:#F33; }


/*fontovi*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}


.pd10{ padding:10px; }

.h1{ font-weight:800; font-size:24px; text-transform:uppercase; }
.h2{ font-weight:800; font-size:16px; text-transform:uppercase; }
		
.check { border: 2px solid #d89000; background: #fff8e8; }


/*btns*/
.bt{ display:inline-block; text-decoration:none; font-weight:800;  font-size:16px; text-transform:uppercase; letter-spacing:2px; color:#fff; text-align:center; padding:12px 20px; border-radius:1000px; transition:0.4s; }


/*FORMS*/
.form_label{  text-align:left; font-size:14px; padding-bottom:5px; padding-top:16px; }

input, textarea, select{ background-color:#eee; font-weight:normal; font-size:16px; padding:10px 10px; border:0px; box-shadow:none; box-sizing:border-box; border-radius:5px; }
input[type='checkbox']{ outline:0px; outline-offset:0px}


/*toast*/
.toast {
    position: fixed;
    left: 50%;
    z-index: 10000;

    width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 22px;
    border-radius: 16px;

    background: #202938;
    color: #fff;
    box-shadow: 0 8px 30px rgb(0 0 0 / 18%);

    font: 500 15px/1.5 system-ui, sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
    pointer-events: none;

    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

.toast--bottom {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 18px);
}

.toast--top {
    top: calc(24px + env(safe-area-inset-top, 0px));
    transform: translate(-50%, -18px);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast {
    display: flex;
    align-items: center;
    gap: 16px;
    visibility: hidden;
}

.toast.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.toast__button {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #202938;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.toast__button:hover {
    background: #e8edf4;
}

.toast__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Sačuvaj animaciju izlaska prije skrivanja. */
.toast {
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        visibility 0s linear 220ms;
}

.toast.is-visible {
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none;
    }
}

		/* Login forma: normalna širina i na sredini ekrana na desktopu */
		#login_form{ max-width:400px; margin:0 auto; }


/* ===== Lista pošiljaka (plave.php) ===== */
.shp-page{ background-color:#f4f6f9; }
.shp-page .main{ max-width:720px; }
.shp-wrap{ padding:0 16px 32px; text-align:left; }

.shp-head{ padding:4px 0 16px; }
.shp-title{ font-size:24px; font-weight:800; color:#123B63; line-height:1.2; }
.shp-sub{ font-size:14px; color:#6b7685; margin-top:4px; }

.shp-stats{ display:flex; gap:12px; margin-top:16px; }
.shp-stat{ flex:1; background:#123B63; color:#fff; border-radius:16px; padding:14px 16px; display:flex; flex-direction:column; }
.shp-stat + .shp-stat{ background:#fff; color:#123B63; box-shadow:0 1px 3px rgb(18 59 99 / 10%); }
.shp-stat-num{ font-size:22px; font-weight:700; line-height:1.2; }
.shp-stat-lbl{ font-size:12px; opacity:.75; margin-top:2px; }

.shp-day{ margin-top:20px; }
.shp-day-head{ display:flex; justify-content:space-between; align-items:baseline; padding:0 4px 8px; }
.shp-day-date{ font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#123B63; }
.shp-day-count{ font-size:12px; color:#6b7685; }

.shp-card{ display:flex; align-items:center; gap:14px; background:#fff; border-radius:14px; padding:14px; margin-bottom:8px; box-shadow:0 1px 3px rgb(18 59 99 / 8%); }
.shp-icon{ flex-shrink:0; width:42px; height:42px; border-radius:12px; background:#fff1eb; color:#f63; display:flex; align-items:center; justify-content:center; font-size:22px; }
.shp-body{ flex:1; min-width:0; }
.shp-name{ font-size:16px; font-weight:600; color:#1d2633; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shp-meta{ display:flex; flex-wrap:wrap; gap:4px 12px; font-size:13px; color:#6b7685; margin-top:2px; }
.shp-meta .mdi{ margin-right:3px; }
.shp-code{ display:inline-block; margin-top:6px; font-family:ui-monospace, Menlo, Consolas, monospace; font-size:12px; color:#123B63; background:#eef2f7; border-radius:6px; padding:2px 8px; }
.shp-tags{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; }
.shp-tags .shp-code{ margin-top:0; }
.shp-status{ --st:#9aa3ae; display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:#1d2633; background:#fff; border:1px solid #e3e8ef; border-radius:1000px; padding:2px 10px 2px 8px; }
.shp-status::before{ content:''; width:8px; height:8px; border-radius:50%; background:var(--st); }
.shp-icon-done{ background:#eaf3ff; color:#123B63; }
.shp-value{ flex-shrink:0; font-size:16px; font-weight:700; color:#1d2633; text-align:right; }
.shp-value-zero{ font-size:12px; font-weight:500; color:#9aa3ae; }

/* Zaglavlje dana koje se otvara (plave.php) */
.shp-day-toggle{ width:100%; display:flex; align-items:center; gap:12px; background:#fff; border:0; border-radius:14px; padding:14px 16px; cursor:pointer; text-align:left; font:inherit; color:inherit; box-shadow:0 1px 3px rgb(18 59 99 / 8%); transition:box-shadow .2s; }
.shp-day-toggle:hover{ box-shadow:0 3px 10px rgb(18 59 99 / 12%); }
.shp-day-toggle:focus-visible{ outline:2px solid #123B63; outline-offset:2px; }
.shp-day-main{ flex:1; display:flex; flex-direction:column; min-width:0; }
.shp-day-toggle .shp-day-date{ font-size:15px; }
.shp-day-toggle .shp-day-count{ margin-top:2px; }
.shp-day-label{ font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; color:#6b7685; margin-bottom:2px; }
.shp-day-sum{ display:flex; flex-direction:column; align-items:flex-end; font-size:16px; font-weight:700; color:#1d2633; }
.shp-day-sum-lbl{ font-size:11px; font-weight:500; color:#9aa3ae; }
.shp-chev{ display:inline-block; line-height:1; font-size:24px; color:#6b7685; transition:transform .2s; }
.shp-day.is-open .shp-chev{ transform:rotate(180deg); }
.shp-day.is-open .shp-day-toggle{ background:#123B63; color:#fff; }
.shp-day.is-open .shp-day-toggle .shp-day-date,
.shp-day.is-open .shp-day-toggle .shp-day-sum,
.shp-day.is-open .shp-chev{ color:#fff; }
.shp-day.is-open .shp-day-toggle .shp-day-count,
.shp-day.is-open .shp-day-toggle .shp-day-label,
.shp-day.is-open .shp-day-sum-lbl{ color:rgb(255 255 255 / 70%); }
.shp-day-list{ padding:10px 0 4px 0; }
.shp-day-list[hidden]{ display:none; }

/* Kartice se pri otvaranju dana redom pojavljuju odozgo */
@keyframes shpCardIn{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:none; } }
@keyframes shpListOut{ to{ opacity:0; transform:translateY(-8px); } }
.shp-day-list.is-closing{ animation:shpListOut .18s ease forwards; }
.shp-day.is-open .shp-card{ animation:shpCardIn .3s ease both; }
.shp-day.is-open .shp-card:nth-of-type(2){ animation-delay:.04s; }
.shp-day.is-open .shp-card:nth-of-type(3){ animation-delay:.08s; }
.shp-day.is-open .shp-card:nth-of-type(4){ animation-delay:.12s; }
.shp-day.is-open .shp-card:nth-of-type(5){ animation-delay:.16s; }
.shp-day.is-open .shp-card:nth-of-type(n+6){ animation-delay:.2s; }
.shp-day-toggle{ transition:box-shadow .2s, background-color .25s, color .25s; }
@media (prefers-reduced-motion: reduce){
	.shp-day.is-open .shp-card, .shp-day-list.is-closing{ animation:none; }
}
.shp-day + .shp-day{ margin-top:10px; }

/* Mali grafikon statusa u zaglavlju dana (preuzete.php) */
.shp-day-toggle--chart{ flex-wrap:wrap; }
.shp-chart{ flex-basis:100%; display:flex; align-items:center; gap:16px; margin-top:12px; padding-top:12px; border-top:1px solid #eef2f7; }
.shp-pie{ flex-shrink:0; width:78px; height:78px; } /* 56px + 40% */
.shp-legend{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.shp-legend-row{ display:flex; align-items:center; gap:8px; font-size:13px; line-height:1.3; }
.shp-legend-dot{ flex-shrink:0; width:10px; height:10px; border-radius:3px; }
.shp-legend-name{ flex:1; min-width:0; color:#1d2633; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shp-legend-num{ font-weight:700; color:#1d2633; font-variant-numeric:tabular-nums; }
.shp-legend-pct{ min-width:38px; text-align:right; font-size:12px; color:#6b7685; font-variant-numeric:tabular-nums; }
.shp-pie-txt{ font-size:8.5px; font-weight:800; fill:#2e9d5b; } /* boja statusa Isporučeno */
.shp-day.is-open .shp-chart{ border-top-color:rgb(255 255 255 / 20%); }
.shp-day.is-open .shp-legend-name,
.shp-day.is-open .shp-legend-num{ color:#fff; }
.shp-day.is-open .shp-legend-pct{ color:rgb(255 255 255 / 70%); }
.shp-day.is-open .shp-pie-txt{ fill:#7ee2a8; } /* svjetlija zelena, čitljiva na tamnoplavoj */

/* Razduženje otkupa u zaglavlju dana (preuzete.php) */
.rzd{ flex-basis:100%; display:flex; align-items:center; gap:16px; margin-top:12px; padding-top:12px; border-top:1px solid #eef2f7; }
.rzd-legend{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.rzd-empty{ font-size:13px; color:#6b7685; }
.shp-day.is-open .rzd-empty{ color:rgb(255 255 255 / 70%); }
.rzd-group:first-child{ margin-top:0; }
.rzd-group{ font-size:12px; font-weight:700; color:#1d2633; margin-top:4px; }
.rzd-row{ display:flex; align-items:center; gap:8px; font-size:13px; line-height:1.35; }
.rzd-sub{ padding-left:12px; }
.rzd-dot{ flex-shrink:0; width:10px; height:10px; border-radius:3px; }
.rzd-name{ flex:1; min-width:0; color:#1d2633; }
.rzd-cnt{ color:#6b7685; }
.rzd-sum{ font-weight:700; color:#1d2633; font-variant-numeric:tabular-nums; white-space:nowrap; }
.shp-day.is-open .rzd{ border-top-color:rgb(255 255 255 / 20%); }
.shp-day.is-open .rzd-cnt{ color:rgb(255 255 255 / 70%); }
.shp-day.is-open .rzd-group,
.shp-day.is-open .rzd-name,
.shp-day.is-open .rzd-sum{ color:#fff; }

/* Prebacivanje prikaza: Dostava / Razduženje */
.shp-mode{ display:flex; background:#e3e8ef; border-radius:12px; padding:4px; margin-top:16px; }
.shp-mode-btn{ flex:1; display:flex; align-items:center; justify-content:center; gap:6px; font:inherit; font-size:14px; font-weight:600; color:#6b7685; background:transparent; border:0; border-radius:9px; padding:9px 10px; cursor:pointer; transition:background-color .2s, color .2s, box-shadow .2s; }
.shp-mode-btn .mdi{ font-size:18px; }
.shp-mode-btn.is-active{ background:#fff; color:#123B63; box-shadow:0 1px 3px rgb(18 59 99 / 15%); }
.shp-mode-btn:focus-visible{ outline:2px solid #123B63; outline-offset:2px; }
.mode-dostava .rzd{ display:none; }
.mode-razduzenje .shp-day-toggle .shp-chart{ display:none; }

/* Filter liste u preuzetim pošiljkama */
.flt-wrap{ margin:0 -16px 10px; padding:0 16px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.flt-wrap::-webkit-scrollbar{ display:none; }
.flt{ display:flex; gap:6px; width:max-content; }
.mode-dostava .flt-razduzenje,
.mode-razduzenje .flt-dostava{ display:none; }
.flt-chip{ display:inline-flex; align-items:center; gap:6px; font:inherit; font-size:13px; font-weight:600; color:#1d2633; background:#fff; border:1px solid #d5dce5; border-radius:1000px; padding:6px 12px; cursor:pointer; white-space:nowrap; transition:background-color .15s, color .15s, border-color .15s; }
.flt-chip:hover{ border-color:#123B63; }
.flt-chip.is-active{ background:#123B63; border-color:#123B63; color:#fff; }
.flt-chip:focus-visible{ outline:2px solid #123B63; outline-offset:2px; }
.flt-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.flt-chip.is-active .flt-dot{ box-shadow:0 0 0 2px #fff; }
.flt-n{ font-weight:500; opacity:.65; }
.shp-card.is-hidden{ display:none; }

/* Kartice pošiljaka vode na detalje */
a.shp-card{ color:inherit; text-decoration:none; }
.shp-card{ cursor:pointer; transition:box-shadow .2s, transform .15s; }
.shp-card:hover{ box-shadow:0 4px 12px rgb(18 59 99 / 12%); }
.shp-card:active{ transform:scale(.99); }

/* ===== Detalji pošiljke (shipment.php) ===== */
.shd-code{ font-family:ui-monospace, Menlo, Consolas, monospace; letter-spacing:.5px; word-break:break-all; }
.shd-card{ background:#fff; border-radius:16px; padding:16px; margin-top:12px; box-shadow:0 1px 3px rgb(18 59 99 / 8%); }
.shd-card-title{ display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#6b7685; margin-bottom:8px; }
.shd-card-title .mdi{ font-size:18px; color:#123B63; }
.shd-name{ font-size:17px; font-weight:700; color:#1d2633; }
.shd-line{ font-size:14px; color:#4a5463; margin-top:2px; }
.shd-tel{ display:inline-flex; align-items:center; gap:6px; margin-top:10px; padding:6px 14px; border-radius:1000px; background:#eaf3ff; color:#123B63; font-weight:600; font-size:14px; text-decoration:none; }
.shd-tel:hover{ background:#d8e8fc; }

.shd-status{ --st:#9aa3ae; display:flex; align-items:center; gap:10px; font-size:20px; font-weight:800; color:#1d2633; }
.shd-status-dot{ width:14px; height:14px; border-radius:50%; background:var(--st); box-shadow:0 0 0 4px color-mix(in srgb, var(--st) 20%, transparent); flex-shrink:0; }
.shd-rows{ margin-top:12px; border-top:1px solid #eef2f7; }
.shd-row{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid #eef2f7; font-size:14px; }
.shd-row:last-child{ border-bottom:0; padding-bottom:0; }
.shd-lbl{ color:#6b7685; }
.shd-val{ display:flex; align-items:center; gap:6px; font-weight:700; color:#1d2633; text-align:right; }

.shd-timeline{ list-style:none; margin:4px 0 0; padding:0; }
.shd-ev{ position:relative; display:flex; gap:12px; padding-bottom:16px; }
.shd-ev:last-child{ padding-bottom:0; }
.shd-ev::before{ content:''; position:absolute; left:6px; top:16px; bottom:0; width:2px; background:#e3e8ef; }
.shd-ev:last-child::before{ display:none; }
.shd-ev-dot{ flex-shrink:0; width:14px; height:14px; margin-top:3px; border-radius:50%; background:#fff; border:2px solid #9aa3ae; box-sizing:border-box; z-index:1; }
.shd-ev.is-last .shd-ev-dot{ background:#123B63; border-color:#123B63; box-shadow:0 0 0 4px rgb(18 59 99 / 15%); }
.shd-ev-body{ display:flex; flex-direction:column; min-width:0; }
.shd-ev-name{ font-size:15px; font-weight:600; color:#1d2633; }
.shd-ev.is-last .shd-ev-name{ font-weight:800; color:#123B63; }
.shd-ev-time{ font-size:12px; color:#6b7685; }
.shd-ev-note{ margin-top:4px; font-size:13px; color:#4a5463; background:#f4f6f9; border-radius:8px; padding:6px 10px; }

/* ===== Početna (index.php) ===== */
.home{ padding-top:20px; }
.home a{ text-decoration:none; color:inherit; }

.home-user{ display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.home-avatar{ width:44px; height:44px; border-radius:50%; background:#123B63; color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }
.home-user-txt{ flex:1; min-width:0; }
.home-user-name{ font-size:18px; font-weight:800; color:#1d2633; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-user-role{ font-size:13px; color:#6b7685; }
.home-logout{ width:44px; height:44px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; color:#d93025 !important; box-shadow:0 1px 3px rgb(18 59 99 / 10%); flex-shrink:0; }
.home-logout:hover{ background:#fdecea; }

.home-new{ display:flex; align-items:center; gap:14px; padding:18px; border-radius:18px; background:linear-gradient(135deg, #ff7a45, #f63); color:#fff !important; box-shadow:0 6px 18px rgb(255 102 51 / 30%); margin-bottom:14px; transition:transform .15s, box-shadow .2s; }
.home-new:hover{ transform:translateY(-1px); box-shadow:0 8px 22px rgb(255 102 51 / 38%); }
.home-new-icon{ width:48px; height:48px; border-radius:14px; background:rgb(255 255 255 / 22%); display:flex; align-items:center; justify-content:center; font-size:30px; flex-shrink:0; }
.home-new-txt{ flex:1; display:flex; flex-direction:column; }
.home-new-title{ font-size:18px; font-weight:800; }
.home-new-sub{ font-size:13px; opacity:.9; }
.home-go{ font-size:26px; opacity:.6; flex-shrink:0; }

.home-card{ display:block; background:#fff; border-radius:18px; padding:16px; margin-bottom:14px; box-shadow:0 1px 3px rgb(18 59 99 / 8%); transition:box-shadow .2s, transform .15s; }
.home-card:hover{ box-shadow:0 4px 14px rgb(18 59 99 / 12%); transform:translateY(-1px); }
.home-card-head{ display:flex; align-items:center; gap:14px; }
.home-card-icon{ width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; }
.home-ic-orange{ background:#fff1eb; color:#f63; }
.home-ic-blue{ background:#eaf3ff; color:#123B63; }
.home-card-title-wrap{ flex:1; min-width:0; display:flex; flex-direction:column; }
.home-card-title{ font-size:17px; font-weight:800; color:#1d2633; }
.home-card-sub{ font-size:13px; color:#6b7685; }
.home-card .home-go{ color:#6b7685; }

.home-nums{ display:flex; gap:10px; margin-top:14px; }
.home-num{ flex:1; background:#f4f6f9; border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; }
.home-num-val{ font-size:20px; font-weight:700; color:#1d2633; font-variant-numeric:tabular-nums; }
.home-num-lbl{ font-size:12px; color:#6b7685; }

.home-chart{ margin-top:14px; }
.home-chart .shp-pie{ width:84px; height:84px; }
.home-chart .shp-legend-row{ font-size:14px; }
.home-card-empty{ margin-top:12px; font-size:14px; color:#6b7685; }

/* ===== Povrat pošiljaka (povrat.php) ===== */
.home-ic-amber{ background:#fff6e0; color:#b97a00; }
.shp-section{ margin:28px 4px 0; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#123B63; }
.shp-section + .shp-day{ margin-top:10px; }

/* ===== Uputstvo za instalaciju (index.php kartica, uputstvo.php) ===== */
.home-ic-gray{ background:#eef2f7; color:#123B63; }
/* Kad je otvorena kao instalirana aplikacija, kartica se ne prikazuje (iOS: klasa iz default.js) */
@media (display-mode: standalone), (display-mode: minimal-ui){ .home-install, .login-install{ display:none !important; } body.login-page{ padding-bottom:0; } }
.is-standalone .home-install, .is-standalone .login-install{ display:none !important; }
.is-standalone body.login-page{ padding-bottom:0; }

/* Login: uputstvo zalijepljeno za dno ekrana */
body.login-page{ padding-bottom:96px; } /* da traka ne prekrije formu */
.login-install{ position:fixed; left:16px; right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); z-index:50; max-width:420px; margin:0 auto; display:flex; align-items:center; gap:12px; padding:12px 14px; background:#fff; border-radius:16px; box-shadow:0 4px 18px rgb(18 59 99 / 18%); color:#1d2633 !important; text-decoration:none !important; text-align:left; }
.login-install:hover{ box-shadow:0 6px 22px rgb(18 59 99 / 24%); }
.login-install:focus-visible{ outline:2px solid #123B63; outline-offset:2px; }
.login-install-ic{ width:42px; height:42px; border-radius:12px; background:#eef2f7; color:#123B63; display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }
.login-install-txt{ flex:1; min-width:0; display:flex; flex-direction:column; }
.login-install-title{ font-size:15px; font-weight:800; }
.login-install-sub{ font-size:12px; color:#6b7685; }
.login-install-go{ font-size:24px; color:#6b7685; flex-shrink:0; }

.ins-tabs{ margin-top:4px; }
.ins-panel{ margin-top:14px; }
.ins-panel[hidden]{ display:none; }
.ins-note{ display:flex; align-items:center; gap:8px; padding:10px 14px; background:#eaf3ff; color:#123B63; border-radius:12px; font-size:14px; }
.ins-note .mdi{ font-size:20px; flex-shrink:0; }
.ins-steps{ list-style:none; margin:12px 0 0; padding:0; background:#fff; border-radius:16px; box-shadow:0 1px 3px rgb(18 59 99 / 8%); }
.ins-steps li{ display:flex; align-items:flex-start; gap:12px; padding:14px 16px; font-size:15px; line-height:1.45; color:#1d2633; border-bottom:1px solid #eef2f7; }
.ins-steps li:last-child{ border-bottom:0; }
.ins-num{ flex-shrink:0; width:28px; height:28px; border-radius:50%; background:#123B63; color:#fff; font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.ins-ic{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; margin:0 2px; vertical-align:middle; border-radius:7px; background:#eef2f7; color:#123B63; font-size:18px; }
.ins-done{ display:flex; align-items:center; gap:10px; margin-bottom:14px; padding:12px 14px; background:#e8f6ee; color:#1e6b3e; border-radius:12px; font-size:14px; font-weight:600; }
.ins-done[hidden]{ display:none; }
.ins-done .mdi{ font-size:22px; }
.ins-quick{ display:flex; align-items:center; gap:12px; margin-bottom:14px; padding:14px 16px; background:#fff; border-radius:16px; box-shadow:0 1px 3px rgb(18 59 99 / 8%); }
.ins-quick[hidden]{ display:none; }
.ins-quick-txt{ flex:1; display:flex; flex-direction:column; min-width:0; }
.ins-quick-title{ font-size:15px; font-weight:700; color:#1d2633; }
.ins-quick-sub{ font-size:13px; color:#6b7685; }
.ins-btn{ flex-shrink:0; display:inline-flex; align-items:center; gap:6px; height:42px; padding:0 16px; font:inherit; font-size:15px; font-weight:700; color:#fff; background:#f63; border:0; border-radius:12px; cursor:pointer; }
.ins-btn:focus-visible{ outline:2px solid #123B63; outline-offset:2px; }

/* ===== Pretraga na početnoj (index.php) ===== */
.srch{ margin-bottom:14px; }
.srch-row{ display:flex; gap:8px; }
.srch-field{ position:relative; flex:1; min-width:0; }
.srch-ic{ position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:20px; color:#6b7685; pointer-events:none; }
.srch-field input{ width:100%; box-sizing:border-box; height:48px; padding:0 12px 0 40px; font:inherit; font-size:16px; color:#1d2633; background:#fff; border:1px solid #d5dce5; border-radius:14px; box-shadow:0 1px 3px rgb(18 59 99 / 8%); -webkit-appearance:none; appearance:none; }
.srch-field input:focus{ outline:none; border-color:#123B63; box-shadow:0 0 0 3px rgb(18 59 99 / 15%); }
.srch-btn{ flex-shrink:0; height:48px; padding:0 18px; font:inherit; font-size:15px; font-weight:700; color:#fff; background:#123B63; border:0; border-radius:14px; cursor:pointer; }
.srch-btn:hover{ background:#0e2f50; }
.srch-btn:focus-visible{ outline:2px solid #123B63; outline-offset:2px; }
.srch-results{ margin-top:12px; }
.srch-results[hidden]{ display:none; }
.srch-info{ margin:0 4px 8px; font-size:13px; color:#6b7685; }
.srch-empty{ display:flex; align-items:center; gap:8px; padding:14px 16px; background:#fff; border-radius:14px; font-size:14px; color:#6b7685; box-shadow:0 1px 3px rgb(18 59 99 / 8%); }
.srch-empty .mdi{ font-size:20px; }
.srch-results .shp-card{ animation:shpCardIn .25s ease both; }

/* ===== Detalji pošiljke u modalu (default.js, shipment.php?modal=1) ===== */
body.shm-open{ overflow:hidden; }
.shm-overlay{ position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgb(13 27 42 / 0%); transition:background-color .2s ease; }
.shm-overlay[hidden]{ display:none; }
.shm-overlay.is-visible{ background:rgb(13 27 42 / 55%); }
/* 20px razmaka do ivica ekrana sa svih strana (padding na .shm-overlay) */
.shm-dialog{ position:relative; width:100%; max-width:640px; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); display:flex; flex-direction:column; background:#f4f6f9; border-radius:20px; box-shadow:0 10px 30px rgb(0 0 0 / 25%); transform:translateY(16px) scale(.98); opacity:0; transition:transform .22s ease, opacity .22s ease; outline:none; overflow:hidden; }
.shm-overlay.is-visible .shm-dialog{ transform:none; opacity:1; }
.shm-body{ overflow-y:auto; -webkit-overflow-scrolling:touch; padding:16px 16px 20px; text-align:left; }
.shm-body .shp-head{ padding-right:48px; } /* mjesto za X */
.shm-close{ position:absolute; top:10px; right:10px; z-index:1; width:40px; height:40px; border-radius:50%; border:0; background:#fff; color:#1d2633; font-size:22px; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 1px 4px rgb(18 59 99 / 18%); }
.shm-close:hover{ background:#eef2f7; }
.shm-close:focus-visible{ outline:2px solid #123B63; outline-offset:2px; }
.shm-loading{ padding:40px 0; text-align:center; color:#6b7685; font-size:15px; }
.shm-loading .mdi{ font-size:22px; vertical-align:middle; margin-right:6px; }
@media (min-width:700px){
	.shm-dialog{ max-height:88vh; }
}
@media (prefers-reduced-motion: reduce){
	.shm-overlay, .shm-dialog{ transition:none; }
}

/* ===== Razduženje novca (razduzenje.php) ===== */
.home-ic-green{ background:#e8f6ee; color:#2e9d5b; }
.shp-stat.shp-stat-isplata{ background:#1e7a45; } /* tamnozelena: čitljiv bijeli tekst */
.rzn-day{ --rzn:#2e9d5b; }
.rzn-day .shp-day-toggle{ box-shadow:inset 4px 0 0 var(--rzn), 0 1px 3px rgb(18 59 99 / 8%); }
.rzn-code{ font-family:ui-monospace, Menlo, Consolas, monospace; letter-spacing:.5px; text-transform:none; }
.rzn-state{ display:inline-flex; align-items:center; gap:6px; margin-top:6px; font-size:12px; font-weight:600; color:#1d2633; }
.rzn-dot{ width:8px; height:8px; border-radius:50%; background:var(--rzn); flex-shrink:0; }
.rzn-when{ font-weight:500; color:#6b7685; }
.shp-day.is-open .rzn-state{ color:#fff; }
.shp-day.is-open .rzn-when{ color:rgb(255 255 255 / 70%); }
.shp-day.is-open .rzn-dot{ box-shadow:0 0 0 2px #fff; }
.rzn-icon{ background:#e8f6ee; color:#2e9d5b; }

/* Čekiranje pošiljaka u povratu i dugme "Markiraj kao vraćene" */
.rt-bar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border-radius:12px; padding:10px 12px; margin-bottom:8px; box-shadow:0 1px 3px rgb(18 59 99 / 8%); }
.rt-all{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:#1d2633; cursor:pointer; user-select:none; }
.rt-count{ flex:1; font-size:13px; color:#6b7685; }
.rt-btn{ display:inline-flex; align-items:center; gap:6px; font:inherit; font-size:14px; font-weight:700; color:#fff; background:#d93025; border:0; border-radius:10px; padding:9px 14px; cursor:pointer; box-shadow:0 3px 10px rgb(217 48 37 / 25%); }
.rt-btn[hidden]{ display:none; }
.rt-btn:disabled{ opacity:.6; cursor:progress; }
.rt-btn:focus-visible{ outline:2px solid #123B63; outline-offset:2px; }
.rt-row{ display:flex; align-items:center; gap:8px; }
.rt-row .shp-card{ flex:1; min-width:0; }
.rt-check{ flex-shrink:0; display:flex; align-items:center; justify-content:center; width:36px; height:36px; margin-bottom:8px; cursor:pointer; }
.rt-check input, .rt-all input{ width:20px; height:20px; accent-color:#123B63; cursor:pointer; margin:0; }
.rt-check input:disabled{ cursor:not-allowed; }
.rt-wait{ display:block; margin-top:4px; font-size:12px; color:#b97a00; }
.rt-msg{ margin:0 0 8px; padding:10px 12px; border-radius:10px; font-size:14px; }
.rt-msg.is-ok{ background:#e8f6ee; color:#1e6b3e; }
.rt-msg.is-err{ background:#fdecea; color:#a1261b; }
.rt-row.is-hidden{ display:none; }
.shp-day.is-open .rt-row{ animation:shpCardIn .3s ease both; }
.shp-icon-return{ background:#fff6e0; color:#b97a00; }   /* U povratu */
.shp-icon-returned{ background:#fdecea; color:#d93025; } /* Vraćeno pošiljaocu */
.shp-stat.shp-stat-return{ background:#a86e00; } /* tamniji amber: čitljiv bijeli tekst */
.shp-day--return .shp-day-toggle{ box-shadow:inset 4px 0 0 #e8a317, 0 1px 3px rgb(18 59 99 / 8%); }
.shp-day--return.is-open .shp-day-toggle{ background:#a86e00; }

/* Selekcija i brisanje */
.shp-toolbar{ display:flex; justify-content:flex-end; gap:8px; margin-bottom:8px; }
.shp-btn{ font:inherit; font-size:13px; font-weight:600; border:1px solid #d5dce5; background:#fff; color:#123B63; border-radius:1000px; padding:6px 14px; cursor:pointer; }
.shp-btn:hover{ background:#eef2f7; }
.shp-btn[hidden]{ display:none; }
.shp-btn-danger{ background:#d93025; border-color:#d93025; color:#fff; margin-right:auto; }
.shp-btn-danger:hover{ background:#b3261e; }
.shp-btn:disabled{ opacity:.6; cursor:default; }

.shp-check{ display:none; flex-shrink:0; width:20px; height:20px; margin:0; padding:0; accent-color:#123B63; cursor:pointer; }
.shp-day.is-selecting .shp-check{ display:block; }
.shp-day.is-selecting .shp-card{ cursor:pointer; }
.shp-card.is-checked{ box-shadow:0 0 0 2px #123B63; }

.shp-empty{ background:#fff; border-radius:16px; padding:40px 20px; margin-top:20px; text-align:center; box-shadow:0 1px 3px rgb(18 59 99 / 8%); }
.shp-empty > .mdi{ font-size:48px; color:#2e9d5b; }
.shp-empty-title{ font-size:18px; font-weight:700; color:#1d2633; margin-top:8px; }
.shp-empty-txt{ font-size:14px; color:#6b7685; margin-top:4px; }
.shp-empty-btn{ margin-top:20px; }

		@media only screen and (max-width:980px){
			
			
		}
		
		
		@media only screen and (max-width:750px){
			
			
		}
		
		@media only screen and (max-width:490px){
			
		}

