/* === Normalizace vzhledu vyhledávacích polí a dropdownů === */
.search-ui { 
  position: relative; 
  margin: 8px 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Vstup */
.search-ui .form-control {
  height: 42px;                 /* stejné pro obě pole */
  line-height: 42px;            /* vert. centrování placeholderu */
  padding: 0 12px;              /* sjednocené vnitřní okraje */
  font-size: 14px;
  border-radius: 8px !important;
  border: 1px solid #ced4da;
  box-shadow: none !important;  /* zruší si Bootstrap focus-stíny */
}

/* Focus stav (stejný na obou) */
.search-ui .form-control:focus {
  border-color: #86b7fe !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15) !important;
}

/* Label – drobná konzistence spacingu */
.search-ui .form-control-label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

/* Dropdown */
.search-ui .finderbox {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;

  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  padding: 6px 0;
  max-height: 300px;
  overflow: auto;
  z-index: 2000;              /* nad kartami/modalem */
  display: none;              /* JS přepíná */

}

/* Položky v dropdownu */
.search-ui .finderbox .box {
  padding: 10px 12px;
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  user-select: none;
}

.search-ui .finderbox .box + .box {
  border-top: 1px solid #f4f4f4;
}

.search-ui .finderbox .box:hover,
.search-ui .finderbox .box.is-active {
  background: #0d6efd;
  color: #fff;
}

/* Scrollbar (volitelné) */
.search-ui .finderbox::-webkit-scrollbar { width: 10px; }
.search-ui .finderbox::-webkit-scrollbar-thumb {
  background: #d9d9d9; border-radius: 10px; border: 2px solid #fff;
}
.search-ui .finderbox::-webkit-scrollbar-thumb:hover { background: #c7c7c7; }

/* Mobile – větší tap target */
@media (pointer: coarse) {
  .search-ui .finderbox .box { padding: 12px 14px; }
}


/* --------------------  revize kotlu detail ---------------- */
/* Revize - sjednocené styly */

.table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table.data-table th {
  background: #004085;
  color: #fff;
  text-align: left;
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.table.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  vertical-align: middle;
}

.table.data-table tr:nth-child(even) td {
  background: #f9f9f9;
}

.table.data-table tr:hover td {
  background: #eef5ff;
}

.td_nazev {
  font-weight: 600;
  color: #333;
  width: 20%;
  background: #f1f1f1;
}

.tr_style td {
  border: 1px solid #ddd;
}

/* Dokumenty */
.doc-card {
  width: 150px;
  min-height: 180px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.doc-card img {
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 5px;
}

.doc-card .small {
  font-size: 0.8rem;
  color: #555;
  word-break: break-all;
}

.finderboxu {
  position: absolute;
  top: 100%;          /* rovnou pod input */
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100000;    /* opravdu nad vším */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.finderboxu .box {
  padding: 6px 10px;
  cursor: pointer;
}

.finderboxu .box:hover {
  background: #eef5ff;
}


.tr-past1 {
  background-color: #FF0033; /* červené pozadí */
  color: #6600FF;           /* tmavě červený text */
 
}

.tr-past1 a {
  color: #6600FF;           /* odkazy uvnitř budou taky červené */
  text-decoration: underline;
}

.tr-past1 a:hover {
  color: #6600FF;           /* při najetí ztmavnou */
}

.tr-past2 {
  background-color: #FF0033; /* červené pozadí */
  color: #CC0000;           /* tmavě červený text */
 
}

.tr-past2 a {
  color: #CC0000;           /* odkazy uvnitř budou taky červené */
  text-decoration: underline;
}

.tr-past2 a:hover {
  color: #660000;           /* při najetí ztmavnou */
}



