* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.text-bold   { font-weight: 700; }
.text-normal { font-weight: 400; }

.text-muted  { color: #666; }
.text-small  { font-size: 0.85rem; }
.text-large  { font-size: 1.15rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.hidden {
  display: none !important;
}

.block  { display: block; }
.inline { display: inline; }

.inline-block {
  display: inline-block;
}

.w-100 { width: 100%; }
.w-auto { width: auto; }

.max-w-100 {
  max-width: 100%;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.border {
  border: 1px solid #ddd;
}

.rounded {
  border-radius: 6px;
}

.bg-light {
  background: #f6f7f8;
}

.bg-white {
  background: #fff;
}

.hero {
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
}


body {
  margin: 0;
  background: #f6f7f8;
  color: #222;
}

.site-header {
  background: #0f172a;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.subtitle {
  opacity: 0.8;
  font-size: 0.9rem;
}

.container {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.calculator {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

label {
  display: block;
  margin-bottom: 1rem;
}

input {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 0.7rem;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #1d4ed8;
}

.result {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfeff;
  border-left: 4px solid #06b6d4;
}

.hidden {
  display: none;
}

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 1.5rem;
  color: #555;
}


.seo {
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.seo h2 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.no-print {
  display: block;
}

.print-only {
  display: none;
}

@media print {

  body {
    background: #fff;
    margin: 0;
  }

  .no-print {
    display: none !important;
  }

  .print-area {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .print-only {
    display: block !important;
    margin-top: 2rem;
    font-size: 0.9rem;
    text-align: center;
    color: #000;
  }
}

.license {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #444;
}

.license a {
  color: #2563eb;
  text-decoration: none;
}

.license a:hover {
  text-decoration: underline;
}

.license .cc {
  margin-top: 0.5rem;
}

.license .cc-text {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.info-table {
  border-collapse: collapse;
  font-size: 0.9rem;
}

.info-table td {
  border: 3px solid #fff;
  padding: 6px 8px;
  vertical-align: middle;
}

.info-table a {
  color: #0000cc;
  text-decoration: underline;
}

.info-table a:hover {
  text-decoration: none;
}

/* ===== PODRŠKA KALKULATORU ===== */

.support-table {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-collapse: collapse;
  text-align: center;
}

.support-table td {
  padding: 20px;
  vertical-align: middle;
}

.support-img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.support-caption {
  margin-top: 10px;
  font-size: 14px;
}

.support-text-cell {
  padding: 30px 20px;
}

.support-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
}

.support-text p {
  margin: 12px 0;
}

.support-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.support-highlight {
  margin: 30px 0;
  font-size: 1.4em;
  font-weight: bold;
}

.support-note {
  font-size: 14px;
  opacity: 0.95;
}

.support-text hr {
  width: 60%;
  margin: 25px auto;
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  .support-table,
  .support-table tr,
  .support-table td {
    display: block;
    width: 100%;
  }

  .support-table td {
    padding: 15px 10px;
  }
}




/* ZELENA POLJA – IZMENJIVA */
input.percent-input,
input.user-input {
  background-color: #dcfce7; /* svetlo zelena */
  border: 1px solid #22c55e;
}

/* Monetarne vrednosti – desno poravnanje */
.info-table td:nth-child(3) input,
.info-table td:nth-child(4) input {
  text-align: right;
}

/* Procenti – centrirani */
input.percent-input {
  text-align: center;
}




.info-table th {
  border: 3px solid #fff;
  padding: 6px 8px;
  font-weight: 700;
  background: #f6f7f8;
}
/* Samo thead – centriranje NETO → BRUTO i BRUTO → NETO */
.info-table thead th:nth-child(3),
.info-table thead th:nth-child(4) {
  text-align: center;
}



/* Zaključana procentna polja */
input.percent-input.locked {
  background-color: #f1f5f9; /* svetlo sivo */
  color: #64748b;
  cursor: not-allowed;
}

/* === PLOČICE === */

.plocica-omotac {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 30px;
  text-align: center;
}

.plocica-omotac img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.6s ease-in-out;
}

/* Pločica za štampu */
.plocica-stampa {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.plocica-stampa img {
  max-width: 300px;
  height: auto;
}


/* === Dugmad === */


/* Izveštaj – osnovno (neaktivno) */
.btn-report {
  background-color: #e5e7eb;   /* svetlo siva */
  color: #1f2937;              /* tamno siva */
  border: 1px solid #d1d5db;
}

/* Hover samo blago */
.btn-report:hover {
  background-color: #dbeafe;   /* vrlo svetla plava */
  border-color: #93c5fd;
}

/* AKTIVAN izveštaj */
.btn-report.btn-active {
  background-color: #16a34a;   /* zelena */
  color: #ffffff;
  border-color: #15803d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}






/* === PRINT === */
@media print {
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }
}
.print-signature {
  display: flex;
  align-items: center;      /* vertikalno */
  justify-content: center;  /* horizontalno */
  height: 100%;
}


@media print {

  html, body {
    zoom: 0.86;
  }

}

@media print {

  .site-header,
  header,
  .hero {
    display: none !important;
  }

}

.print-only {
  display: none;
}

@media print {

  .print-only {
    display: block;
  }

  .print-title {
    text-align: center;
    margin-bottom: 20px;
  }

  .print-title h1 {
    font-size: 27px;
    margin: 0 0 10px 0;
    font-weight: bold;
  }

  .print-url {
    font-size: 12px;
    color: #000;
  }

}

@media print {

  @page {
    margin: 10mm;
  }

  html, body {
    margin: 0;
    padding: 0;
  }

  .print-area {
    padding: 10px;
  }

}

@media print {

  .izvestaj-wrapper {
    font-size: 1.4em;
    line-height: 1.35;
  }

}

.license-container {
  max-width: 900px;       
  margin: 0 auto;
  padding: 20px 25px;
}

.license .legal-notice {
  text-align: center;      
  font-size: 14px;
  line-height: 1.6;
}
.license-container {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.ips-visual, .rezultat-visual {
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.ips-image img, .rezultat-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}

