@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  font-family: Poppins;
  margin: 0;
  box-sizing: border-box;
}

#modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#modalOverlay.hidden {
  display: none;
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  padding: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  float: right;
  cursor: pointer;
}

.dt-cell { display: grid; gap: 6px; }

.dt-kv {
  display: grid;
  grid-template-columns: 110px 1fr; /* label | value */
  gap: 10px;
  align-items: start;
}

.dt-k { opacity: .65; font-weight: 600; }
.dt-v { white-space: normal; word-break: break-word; }

.dt-kv--spacer { height: 10px; }


table.dataTable { table-layout: fixed; width: 100%; }
table.dataTable td, table.dataTable th { overflow-wrap: anywhere; }

/* MOBILE tweaks (dodati na kraj global.css) */
@media (max-width: 420px) {
  .modal {
    max-width: 92vw;
    padding: 1rem;
  }

  .dt-kv {
    grid-template-columns: 90px 1fr;
    gap: 8px;
  }
}

/* Ako ima tablica (DataTables) u view-ovima: scroll umjesto pucanja layouta */
@media (max-width: 640px) {
  table.dataTable {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}