/* Bruto-Neto Kalkulator - Ugovor o djelu (v5.0) */

.container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 30px 40px;
}

h1 {
  text-align: center;
  color: #004080;
  font-size: 1.6rem !important;
  margin-bottom: 25px;
}

form label {
  display: block;
  margin-block: 20px 10px;
  color: #333;
  font-weight: 700;
  font-size: 16px;
}

form label:nth-of-type(4) {
    display: flex;
    flex-direction: row-reverse;
}

form label:nth-of-type(4) input {
    width: 10%;
    margin-right: auto;
}

form input, form select, form button {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}

form button[type=submit] {
  background: #004080;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  border: 0px !important;
}

form button[type=submit]:hover {
  background: #0059b3;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  font-size: 0.95rem;
}

table th {
  background-color: #e9edf3;
  color: #333;
  text-align: left;
  padding: 8px;
  border-bottom: 2px solid #ccc;
}

table td {
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
}

table tr:nth-child(even) td {
  background-color: #f9fafc;
}

table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.result strong {
  font-weight: bold;
  color: #004080;
}

tr.highlight-neto td {
  background-color: #d9ebff !important;
  font-weight: bold;
}

tr.highlight-ukupni td {
  background-color: #f2f2f2 !important;
  font-weight: bold;
}

.result em {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #777;
  font-size: 0.85rem;
}

/* Download button */
#preuzmi-pdf {
  width: 100%;
  padding: 10px 12px;
  margin-top: 16px;
  border-radius: 6px;
  border: 1px solid #004080;
  background: #004080;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#preuzmi-pdf:hover {
  background: #0059b3;
}
