/* ==========================================================================
   SUPER PORTAL - Core CSS
   Tema: crno-crvena (Super Distribucija)
   Verzija: 0.2 (dodat admin panel)
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #e8e8ea;
  color: #1a1a1a;
  padding: 20px;
  font-size: 13px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }

.app {
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* ========== HEADER ========== */
.hdr {
  background: #0d0d10;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.logo-box {
  width: 36px; height: 36px;
  background: #c8102e;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: #fff;
}
.logo-txt { font-size: 15px; font-weight: 500; letter-spacing: 0.3px; color: #fff; }
.logo-sub { font-size: 11px; color: #999; margin-top: 1px; }
.user { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #999; }
.avatar {
  width: 30px; height: 30px;
  background: #c8102e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 11px; color: #fff;
}

/* ========== LAYOUT ========== */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 700px;
}

/* ========== SIDEBAR ========== */
.side {
  background: #17171b;
  color: #d0d0d3;
  padding: 16px 0;
  font-size: 13px;
}
.side-title {
  padding: 12px 18px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #666;
}
.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #d0d0d3;
  cursor: pointer;
}
.side a:hover { background: #232328; color: #fff; }
.side a.active {
  background: #c8102e;
  color: #fff;
  border-left: 3px solid #fff;
  padding-left: 15px;
}
.side a.subactive {
  background: #232328;
  color: #fff;
  padding-left: 30px;
  font-size: 12px;
}
.side a.subitem {
  padding-left: 30px;
  font-size: 12px;
  color: #999;
}
.side a.disabled {
  color: #555;
  cursor: not-allowed;
}
.side a.disabled:hover { background: transparent; color: #555; }
.badge-soon {
  margin-left: auto;
  font-size: 9px;
  background: #333;
  color: #999;
  padding: 2px 5px;
  border-radius: 3px;
}
.badge-draft {
  margin-left: auto;
  font-size: 9px;
  background: #c8102e;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 500;
}
.icn {
  display: inline-block;
  width: 16px;
  text-align: center;
  font-size: 15px;
}

/* ========== MAIN ========== */
.main {
  padding: 22px 26px;
  background: #f4f4f6;
}
.crumb {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}
.h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: #17171b;
}
.h2 {
  font-size: 17px;
  font-weight: 500;
  color: #17171b;
  margin: 20px 0 10px;
}
.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.92; }
.btn-ghost { background: #fff; border-color: #ddd; color: #333; }
.btn-primary { background: #c8102e; border-color: #c8102e; color: #fff; }
.btn-primary-lg { padding: 10px 20px; font-size: 13px; }
.btn-secondary { background: #17171b; border-color: #17171b; color: #fff; }
.btn-mini { padding: 3px 10px; font-size: 10px; }

/* ========== FORM ========== */
.form-card {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  border-top: 3px solid #c8102e;
  max-width: 460px;
  margin: 40px auto;
}
.form-title {
  font-size: 18px;
  font-weight: 500;
  color: #17171b;
  margin-bottom: 4px;
}
.form-sub {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
}
.fld {
  font-size: 11px;
  color: #888;
  display: block;
  margin-bottom: 4px;
}
.inp {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
}
.inp:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 2px rgba(200,16,46,0.1);
}
.inp[readonly] { background: #fafafa; color: #666; }
select.inp { padding: 7px 10px; cursor: pointer; }
textarea.inp { font-family: inherit; resize: vertical; }
.form-row { margin-bottom: 14px; }
.hint {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  font-style: italic;
}

.alert {
  padding: 10px 14px;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 14px;
}
.alert-error {
  background: #fef2f2;
  border-left: 3px solid #c8102e;
  color: #991b1b;
}
.alert-success {
  background: #f0fdf4;
  border-left: 3px solid #22a06b;
  color: #166534;
}
.alert-info {
  background: #f4f4f6;
  border-left: 3px solid #17171b;
  color: #444;
}

/* ========== STANDALONE PAGE (login, install) ========== */
.standalone {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #17171b;
  padding: 20px;
}
.standalone .form-card {
  margin: 0;
  min-width: 380px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.standalone .brand {
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
}
.standalone .brand .logo-box {
  width: 50px; height: 50px; font-size: 22px;
  margin: 0 auto 10px;
}
.standalone .brand .logo-txt {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.standalone .brand .logo-sub {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}

/* ========== DASHBOARD TILES ========== */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.tile {
  background: #fff;
  border-radius: 6px;
  padding: 18px;
  border-left: 3px solid #17171b;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.tile:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }
.tile.active { border-left-color: #c8102e; }
.tile.disabled { cursor: not-allowed; opacity: 0.6; }
.tile.disabled:hover { transform: none; box-shadow: none; }
.tile-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tile-icn { font-size: 22px; }
.tile-title { font-weight: 500; font-size: 14px; color: #17171b; }
.tile-desc { font-size: 12px; color: #666; line-height: 1.4; }
.tile-badge {
  margin-left: auto;
  font-size: 9px;
  background: #eee;
  color: #666;
  padding: 2px 6px;
  border-radius: 3px;
}
.tile-badge.ready { background: #dcfce7; color: #166534; }
.tile-badge.soon  { background: #333; color: #999; }

/* ==========================================================================
   ADMIN PANEL — dopune za Korak 2A
   ========================================================================== */

/* ---- Statistike (3 kartice) ---- */
.stats-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  background: #fff;
  padding: 14px 16px;
  border-radius: 6px;
  border-left: 3px solid #17171b;
}
.stat.red { border-left-color: #c8102e; }
.stat-lbl {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.stat-val {
  font-size: 20px;
  font-weight: 500;
  color: #17171b;
}
.stat-sub {
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}

/* ---- Filter bar ---- */
.filter-bar {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar select {
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}
.search-inp {
  flex: 1;
  min-width: 240px;
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 4px;
}
.search-inp input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
}

/* ---- Table ---- */
.tbl-wrap {
  background: #fff;
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: visible;
  margin-bottom: 12px;
  max-width: calc(100vw - 300px);
  scrollbar-width: auto;
  scrollbar-color: #c8102e #f4f4f6;
}
.tbl-wrap::-webkit-scrollbar {
  height: 14px;
  -webkit-appearance: none;
}
.tbl-wrap::-webkit-scrollbar-track {
  background: #f4f4f6;
  border-top: 1px solid #e4e4e6;
}
.tbl-wrap::-webkit-scrollbar-thumb {
  background: #c8102e;
  border-radius: 8px;
  border: 3px solid #f4f4f6;
  min-width: 60px;
}
.tbl-wrap::-webkit-scrollbar-thumb:hover { background: #a10022; }
@media (max-width: 900px) {
  .tbl-wrap { max-width: 100vw; }
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.tbl thead tr {
  background: #17171b;
  color: #fff;
}
.tbl th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tbl th.c { text-align: center; }
.tbl th.r { text-align: right; }
.tbl tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fafafa; }
.tbl tbody tr.row-inactive td { opacity: 0.55; }
.tbl tbody tr.row-inactive td strong { color: #999; }

td.mono {
  font-family: 'SF Mono', Monaco, monospace;
  color: #888;
  font-size: 11px;
}
td.c { text-align: center; }
td.r { text-align: right; }
td.num {
  font-family: 'SF Mono', Monaco, monospace;
  text-align: right;
  font-size: 12px;
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  margin-right: 2px;
}
.tag-on { background: #17171b; color: #fff; }
.tag-off { background: #eee; color: #888; }
.tag-ok { background: #dcfce7; color: #166534; }
.tag-red { background: #fee2e2; color: #991b1b; }

.warn {
  color: #c8102e;
  font-size: 11px;
}

/* ---- Cards za edit forme ---- */
.card {
  background: #fff;
  padding: 16px 18px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 11px;
  color: #17171b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* ---- Grid layouts ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }

/* ---- Checkbox ---- */
.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  cursor: pointer;
  color: #333;
}
.chk input { accent-color: #c8102e; }

/* ---- Edit form container ---- */
.edit-form {
  max-width: 100%;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #eaeaea;
  margin-top: 8px;
}

/* ---- Pagination ---- */
.paginacija {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
}
.pag-links {
  display: flex;
  gap: 4px;
}

/* ============ Sidebar submenu toggle ============ */
.submenu { display: none; }
.submenu.open { display: block; }
.chev { float: right; font-size: 10px; color: #c8102e; margin-top: 2px; }
.submeni-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  padding: 8px 16px 4px 16px;
  border-top: 1px solid #333;
  margin-top: 8px;
}

/* ============ Sticky info bar (za tim/finalne ekrane) ============ */
.info-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  padding: 12px 16px;
  border-bottom: 2px solid #c8102e;
  display: flex;
  gap: 20px;
  font-size: 13px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.info-sticky .info-box { display: flex; flex-direction: column; }
.info-sticky .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: #999; }
.info-sticky .val { font-size: 15px; font-weight: 700; color: #17171b; }
.info-sticky .val.acc { color: #c8102e; }

/* Table thead sticky (tim tabele) */
.tim-tbl thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

/* ============ SCROLL BAR THUMB TANJI (svuda) ============ */
.tim-wrap::-webkit-scrollbar-thumb,
.pivot-scroll-wrap::-webkit-scrollbar-thumb,
.tbl-wrap::-webkit-scrollbar-thumb,
.z-wrap::-webkit-scrollbar-thumb {
  background: #c8102e;
  border-radius: 8px;
  border: 3px solid #f4f4f6;
  min-width: 0;
  max-width: 40px;
}

/* ============ Društvene mreže + korisni linkovi u sidebar-u ============ */
.soc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 16px 16px 16px;
}
.side .soc-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  padding: 0;
  border: none;
  transition: background 0.15s;
}
.side .soc-ic:hover { background: #c8102e; }

/* ============ Meta kvadratici responsive ============ */
.meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }

/* ============ Dashboard grid ============ */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dash-card { background: #fff; border: 1px solid #e4e4e6; border-radius: 8px; padding: 18px; border-left: 4px solid #c8102e; display: flex; flex-direction: column; }
.dash-card h3 { font-size: 15px; margin: 0 0 10px 0; color: #17171b; display: flex; align-items: center; gap: 8px; }
.dash-card .icon { font-size: 22px; }
.dash-card p { font-size: 13px; color: #555; line-height: 1.5; margin: 0 0 14px 0; flex-grow: 1; }
.dash-card .open-btn { align-self: flex-start; background: #c8102e; color: #fff; padding: 6px 14px; border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: 500; }
.dash-card .open-btn:hover { background: #a00020; }

.dash-linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dash-linkcard { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e4e4e6; border-radius: 6px; padding: 12px 16px; text-decoration: none; color: #17171b; transition: all 0.15s; }
.dash-linkcard:hover { border-color: #c8102e; background: #fff5f5; }
.dash-linkcard .lbl { font-size: 13px; font-weight: 500; }
.dash-linkcard .icon-lg { font-size: 22px; }

.dash-socrow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.dash-socbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff; border: 1px solid #e4e4e6; border-radius: 8px; font-size: 18px; text-decoration: none; transition: all 0.15s; }
.dash-socbtn:hover { border-color: #c8102e; background: #fff5f5; }

/* ============ HAMBURGER MOBILE MENI ============ */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 8px 10px;
  cursor: pointer;
  margin-right: 8px;
}
.side-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}
.side-backdrop.open { display: block; }

/* ============ RESPONSIVE (mobilni) ============ */
@media (max-width: 900px) {
  .hamburger { display: inline-block; }

  /* KLJUČNO: layout postaje jedna kolona jer je sidebar off-canvas */
  .layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* .app ne sme sakrivati overflow na mobilnom — inače tabele ne mogu da skroluju */
  .app {
    overflow: visible;
    border-radius: 0;
    max-width: 100%;
  }

  .side {
    position: fixed;
    top: 0;
    left: -300px;
    height: 100vh;
    width: 280px;
    z-index: 100;
    transition: left 0.25s ease-out;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  }
  .side.open { left: 0; }

  .main, main, .content-inner {
    margin-left: 0 !important;
    padding: 18px 20px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Header takođe ide preko cele širine */
  .hdr { padding: 12px 16px; }

  .info-sticky {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    font-size: 12px;
  }
  .info-sticky .info-box { min-width: 40%; }
  .info-sticky .val { font-size: 13px; }

  .meta-row { grid-template-columns: 1fr; }
  .ukupno-top { grid-template-columns: 1fr; gap: 8px; }
  .ukupno-top .box { text-align: left; }
  .kupci-top { grid-template-columns: 1fr; gap: 8px; }
  .kupci-top .box { text-align: left; }

  .hdr-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hdr-row .h1 { font-size: 18px; }
  .btn { padding: 8px 12px; font-size: 13px; }

  .dash-grid { grid-template-columns: 1fr; }
  .dash-linkgrid { grid-template-columns: 1fr; }

  .card { padding: 14px 16px; }
  .card-title { font-size: 13px; }

  /* KLJUČNO: tabele skroluju horizontalno kad ne staju */
  .tim-wrap,
  .pivot-scroll-wrap,
  .tbl-wrap,
  .z-wrap {
    max-width: 100% !important;
    width: 100%;
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Tekst u ćelijama tabele NE prelama — tabela postaje šira ako treba, i tada scroll radi */
  .tbl {
    width: auto;
    min-width: 100%;
    white-space: nowrap;
  }
  .tbl th, .tbl td {
    white-space: nowrap;
    padding: 8px 12px;
  }
  .tbl { font-size: 12px; }

  /* Scroll bar vidljiv - amber crveni thumb, siva track */
  .tim-wrap::-webkit-scrollbar,
  .tbl-wrap::-webkit-scrollbar,
  .z-wrap::-webkit-scrollbar,
  .pivot-scroll-wrap::-webkit-scrollbar {
    height: 10px;
    -webkit-appearance: none;
    display: block;
  }
  .tim-wrap::-webkit-scrollbar-track,
  .tbl-wrap::-webkit-scrollbar-track,
  .z-wrap::-webkit-scrollbar-track,
  .pivot-scroll-wrap::-webkit-scrollbar-track {
    background: #f4f4f6;
  }
  .tim-wrap::-webkit-scrollbar-thumb,
  .tbl-wrap::-webkit-scrollbar-thumb,
  .z-wrap::-webkit-scrollbar-thumb,
  .pivot-scroll-wrap::-webkit-scrollbar-thumb {
    background: #c8102e;
    border-radius: 5px;
    border: 2px solid #f4f4f6;
    min-width: 30px;
    max-width: none;
  }

  .admin-grid { grid-template-columns: 1fr; }
}

/* ============ TABLET LANDSCAPE (601px-900px) — dve kolone gde je moguće ============ */
@media (min-width: 601px) and (max-width: 900px) {
  .main, main, .content-inner {
    padding: 20px 28px !important;
  }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-linkgrid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .meta-row { grid-template-columns: repeat(3, 1fr); }
  .kupci-top { grid-template-columns: 1fr repeat(4, 1fr); }
  .ukupno-top { grid-template-columns: 1fr repeat(4, 1fr); }
  .hdr-row { flex-direction: row; align-items: center; }
}

@media (max-width: 600px) {
  .side { width: 92vw; }
  .top-bar h1 { font-size: 14px; }
}

/* ============ PWA INSTALL BANNER ============ */
.pwa-install-banner {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 500px;
  margin: 0 auto;
  background: #17171b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 999;
  display: none;
  align-items: center;
  gap: 12px;
  border: 2px solid #c8102e;
}
.pwa-install-banner.show { display: flex; }
.pwa-install-banner img { width: 40px; height: 40px; border-radius: 8px; }
.pwa-install-banner .txt { flex: 1; font-size: 13px; }
.pwa-install-banner .txt b { color: #c8102e; }
.pwa-install-banner button {
  background: #c8102e;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.pwa-install-banner .close-btn {
  background: transparent;
  color: #888;
  padding: 4px 8px;
  font-size: 18px;
}

@media (max-width: 768px) {
  /* Vraća glavni sadržaj uz samu ivicu ekrana */
  body, 
  .main-content, 
  .wrapper, 
  .content {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Osigurava da je hamburger dugme uvek vidljivo i klikabilno u zaglavlju */
  .hamburger, 
  .menu-toggle, 
  .sidebar-toggle,
  .navbar-toggler,
  [data-toggle="sidebar"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    cursor: pointer !important;
  }

  /* Sakriva bočni meni samo kada NIJE aktiviran/otvoren */
  .sidebar:not(.active):not(.show):not(.open), 
  aside:not(.active):not(.show):not(.open), 
  #sidebar:not(.active):not(.show):not(.open) {
    display: none !important;
  }
}

