@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-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-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:56px; height:56px; }
.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-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; }

/* 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; }

/* 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){
			
		}

