body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: radial-gradient(circle at top, #eef3ff, #d4dde7);
}
h1 {
  text-align: center;
  margin-bottom: 20px;
}
fieldset {
  border: 1px solid #ccc;
  padding: 15px 15px 10px;
  margin-bottom: 20px;
  background: #fdfdfd;
  border-radius: 4px;
}
legend {
  font-weight: bold;
  padding: 4px 10px;
  background: #e0e4ef;
  border-radius: 4px;
  border: 1px solid #c2c7d4;
}
.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.form-row label {
  min-width: 180px;
  font-size: 14px;
}
.form-row input {
  flex: 1;
  padding: 5px;
  font-size: 14px;
}
button {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 10px;
}
.small {
  font-size: 12px;
  color: #555;
}
input[readonly] {
  background: #f1f3f5;
  border-color: #cbd5e1;
}

#status {
  margin-top: 10px;
  font-size: 14px;
}
#status.ok {
  color: green;
  font-weight: bold;
}
#status.err {
  color: red;
}

/* File input */
.file-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.file-wrapper input[type="file"] {
  display: none;
}
.btn-file {
  padding: 6px 12px;
  border: 1px solid #555;
  border-radius: 3px;
  background: #e0e4ef;
  cursor: pointer;
  font-size: 14px;
}

/* General button (used in LK modal) */
.btn {
  padding: 8px 14px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #e0e4ef;
  cursor: pointer;
  font-size: 14px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.file-name.ok {
  font-size: 13px;
  font-weight: bold;
  color: green;
}

.date-display {
  padding: 5px;
  font-size: 14px;
  width: 180px;
}
/* ---------- MODAL (LK sa čipom) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: min(820px, 96vw);
  background: #fff;
  border-radius: 8px;
  padding: 16px 16px 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
}
.modal-close {
  border: 1px solid #555;
  background: #e0e4ef;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-logout {
  position: fixed;
  top: 16px;
  right: 16px;

  padding: 6px 14px;
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  z-index: 1000;
}

.btn-logout:hover {
  background: #be123c;
}

.btn-logout {
  padding: 6px 14px;
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-logout:hover {
  background: #be123c;
}
/* Admin – tabela izdatih potvrda */
.col-ime {
  width: 220px;
}

.col-mesto {
  width: 260px;
}

.col-racun {
  width: 200px;
}

.col-datum {
  width: 150px;
}

.col-zaprimio {
  width: 200px;
}

/* da tekst lepo stane */
table td {
  white-space: nowrap;
  vertical-align: top;
}

.col-ime,
.col-mesto,
.col-racun,
.col-zaprimio {
  white-space: normal; /* dozvoli prelom teksta */
}
table {
  border-collapse: collapse;
}

th,
td {
  white-space: normal;
  vertical-align: top;
}

table th,
table td {
  vertical-align: top;
  text-align: left;
}

table td {
  word-break: break-word;
}
.issued-wide {
  width: 150%;
  margin-left: calc(-30%);
}

.issued-wide table th,
.issued-wide table td {
  padding: 8px 10px;
}
/* Manji font za podatke u admin tabeli */
.issued-wide table td {
  font-size: 13px; /* probaj 12px ako hoćeš još manje */
  line-height: 1.3;
}

/* Zaglavlje ostaje veće */
.issued-wide table th {
  font-size: 14px;
}
