/* =====================================================================
   DISPEXA — "CLEAN" sloj za samostalne stranice
   (vozački portal, PIN prijava, planer, logbook, gorivo)
   Samo izgled. Za povratak: obrisati <link ... erp_pages.css> iz stranice.
   ===================================================================== */
/* Inter — s našeg servera (bez Google Fonts) */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/static/vendor/erp/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { --erp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

html body,
html body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class^="fa-"]):not([class*=" fa-"]):not(.leaflet-container *):not(.badge-pin):not(code):not(pre) {
  font-family: var(--erp-font) !important;
}
html body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Stari stilovi koriste 800/900 skoro svugdje — Inter je već dovoljno jak na 700 */
html body [style*="font-weight: 900"], html body [style*="font-weight:900"] { font-weight: 750 !important; }
html body [style*="font-weight: 800"], html body [style*="font-weight:800"] { font-weight: 650 !important; }


/* Fokus vidljiv i uredan */
html body input:focus, html body select:focus, html body textarea:focus {
  outline: none !important;
  border-color: #84a9f5 !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .15) !important;
}

/* Vozački portal: gumb "Vodi me (HERE 40t)" na svakom mjestu */
.erp-vodi-me { display: block; width: 100%; margin-top: 8px; padding: 9px 10px; border: 0; border-radius: 9px;
  background: #16a34a; color: #fff; font: 600 13px var(--erp-font); cursor: pointer; }
.erp-vodi-me:active { transform: scale(.98); }
/* Tamni način: karta malo prigušena da ne bliješti noću */
html.erp-tamno { background: #0b1220; color-scheme: dark; }
html.erp-tamno .leaflet-tile-pane { filter: brightness(.75) contrast(1.05); }

/* ---------- Mobitel: Logbook i Gorivo ---------- */
@media (max-width: 768px) {
  .app-layout { align-items: stretch !important; }
  .main-panel { width: 100% !important; box-sizing: border-box; }
  table.erp-kartice, table.erp-kartice tbody { display: block !important; width: 100% !important; }
  table.erp-kartice thead { display: none !important; }
  table.erp-kartice tbody tr { display: block !important; background: #fff; border: 1px solid #e4e7ec; border-radius: 12px; margin: 0 0 10px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
  table.erp-kartice tbody td { display: block !important; position: relative; text-align: right !important; padding: 7px 0 7px 42% !important;
    border: 0 !important; border-bottom: 1px solid #f2f4f7 !important; white-space: normal !important; background: transparent !important; box-shadow: none !important; overflow-wrap: anywhere; }
  table.erp-kartice tbody td:last-child { border-bottom: 0 !important; }
  table.erp-kartice tbody td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 8px; width: 40%; text-align: left;
    font-size: 11px; font-weight: 600; color: #667085; text-transform: uppercase; letter-spacing: .03em; }
  table.erp-kartice tbody td:first-child { text-align: left !important; padding-left: 0 !important; font-size: 15px; }
  table.erp-kartice tbody td:first-child::before { display: none; }
  .table-responsive { overflow: visible !important; }
}
