/* TB-INSTAL – Cjenik usluga (Faza 1). Utječe samo na stranicu Cjenik. */
.tb-cjenik { color: #27374e; }
.tb-cjenik .tb-cjenik-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:26px; }
.tb-cjenik .tb-cjenik-heading h2 { margin:7px 0 10px; color:#173d73; font-size:clamp(26px,3.2vw,37px); line-height:1.2; }
.tb-cjenik .tb-cjenik-heading p { margin:0; color:#687990; font-size:15px; }
.tb-cjenik-eyebrow { color:#d88716; text-transform:uppercase; letter-spacing:.09em; font-weight:800; font-size:12px; }
.tb-cjenik-count { flex-shrink:0; display:inline-flex; align-items:center; gap:8px; padding:9px 15px; background:#ecf3fb; border:1px solid #dbe6f4; border-radius:40px; color:#174179; font-size:13px; font-weight:700; }
.tb-cjenik-panel { border:1px solid #dae4f0; border-radius:15px; overflow:hidden; box-shadow:0 8px 25px rgba(11,44,87,.06); background:#fff; }
.tb-cjenik-table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.tb-cjenik-table { width:100%; min-width:1050px; border-collapse:collapse; margin:0; font-size:13px; line-height:1.5; }
.tb-cjenik-table th { white-space:nowrap; text-transform:none; background:#103568; color:#fff; text-align:left; font-weight:700; padding:17px 14px; border-right:1px solid rgba(255,255,255,.12); }
.tb-cjenik-table th:last-child { border-right:0; }
.tb-cjenik-table td { padding:13px 14px; border-bottom:1px solid #e8edf4; color:#344761; vertical-align:middle; }
.tb-cjenik-table tbody tr:nth-child(even) { background:#f6f9fd; }
.tb-cjenik-table tbody tr:hover { background:#eef5ff; }
.tb-cjenik-table tbody tr:last-child td { border-bottom:0; }
.tb-cjenik-table .tb-row-num { color:#8595aa; font-variant-numeric:tabular-nums; }
.tb-cjenik-table .tb-code { white-space:nowrap; font-weight:700; color:#31577f; font-variant-numeric:tabular-nums; }
.tb-cjenik-table .tb-name { min-width:235px; font-weight:600; color:#183a61; }
.tb-cjenik-table .tb-numeric { white-space:nowrap; text-align:right; font-variant-numeric:tabular-nums; }
.tb-cjenik-table .tb-price { font-weight:800; color:#0e4279; }
.tb-cjenik-table .tb-special { color:#8c97a5; text-align:center; }
.tb-cjenik-table .tb-date { white-space:nowrap; font-variant-numeric:tabular-nums; }
.tb-cjenik-bottom { background:#f8fafd; border-top:1px solid #e4ebf3; padding:18px 22px; color:#65758c; font-size:13px; line-height:1.75; }
.tb-cjenik-bottom strong { color:#153d71; }
@media(max-width:767px) {
  .tb-cjenik .tb-cjenik-heading { align-items:flex-start; flex-direction:column; }
  .tb-cjenik-count { padding:6px 12px; }
  .tb-cjenik-panel { border-radius:10px; }
  .tb-cjenik-table th, .tb-cjenik-table td { padding:11px 12px; }
  .tb-cjenik-bottom { padding:15px 17px; }
}
@media print {
  .tb-cjenik-table-wrap { overflow:visible; }
  .tb-cjenik-table { min-width:0; font-size:9px; }
  .tb-cjenik-table th, .tb-cjenik-table td { padding:6px 5px; }
  .tb-cjenik-count, .tb-cjenik-bottom { display:none; }
}

/* Preuzimanje aktualnog cjenika iz MySQL-a – CSV i XML. */
.tb-cjenik-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.tb-cjenik-download { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 15px; border:1px solid #174a85; background:#103568; border-radius:8px; color:#fff; font-size:13px; font-weight:700; white-space:nowrap; text-decoration:none; line-height:1.4; transition:background-color .15s,border-color .15s; }
.tb-cjenik-download:visited { color:#fff; }
.tb-cjenik-download:hover,.tb-cjenik-download:focus { background:#19539c; color:#fff; border-color:#19539c; text-decoration:none; }
.tb-cjenik-download-xml { background:#fff; border-color:#c6d7eb; color:#164579; }
.tb-cjenik-download-xml:visited { color:#164579; }
.tb-cjenik-download-xml:hover,.tb-cjenik-download-xml:focus { background:#ecf4ff; color:#164579; border-color:#7aa6d8; }
@media(max-width:767px) { .tb-cjenik-actions { justify-content:flex-start; width:100%; } .tb-cjenik-download { flex:1 1 auto; } }
@media print { .tb-cjenik-actions { display:none; } }
