/* CSS Document */
/* ================================
   FORMULÁŘE - detail servisu
   ================================ */

/* Tabulky uvnitř formulářů */
.form-table {
  width: 98%;
  border-collapse: collapse;
/* margin-bottom: 1rem;*/
}

.form-table td {
  padding: 8px;
  vertical-align: top;
}

/* labely */
.form-control-label {
  font-weight: 600;
  color: #004085;
  margin-bottom: 0.3rem;
  display: inline-block;
  text-align: left;
  width: 100%;
}

/* textová pole */
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  width: 100%;
}

/* textarey */
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

input[type="date"].form-control {
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}
/* tlačítko pro uložení změn */
.btn-secondary {
  background: linear-gradient(135deg, #004085, #0d6efd);
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  color: #fff;
}

/* oddělovací labely (např. "Popis servisu") */
.dragArea h3,
.dragArea .section-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #004085;
  margin: 1rem 0 0.5rem;
  border-bottom: 2px solid #0d6efd;
  display: inline-block;
  padding-bottom: 0.2rem;
}

/* akční tlačítka v detailu servisu */
.action-buttons {
  display: flex;
  justify-content: flex-end; /* zarovnání úplně vpravo */
  gap: 0.8rem;               /* mezera mezi tlačítky */
  margin-bottom: 1rem;
}

.action-buttons .btn {
  padding: 0.5rem 1.2rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap; /* ať se text nezalamuje */
}

  .wrap { margin: 1rem 0; }
  .hr-line { border: none; border-top: 1px solid #ddd; margin: .75rem 0 1rem; }
  .hlkontakt { font-weight: 600; }

  .form-table { width: 100%; border-collapse: collapse; }
  .form-table td { padding: .5rem; vertical-align: top; }

  /* obal autocomplete pole */
.autocomplete {
  position: relative; /* díky tomu se výsledky ukotví k obalu */
}

/* box s výsledky */
.finderbox {
  position: absolute;  /* ukotvení pod input */
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;

  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: .5rem;
  margin-top: .25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);

  max-height: 250px;   /* omezení výšky */
  overflow-y: auto;    /* scroll, když je hodně výsledků */
  padding: 0;          /* žádné vnitřní odsazení */
}

/* jednotlivé výsledky */
.finderbox .box {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}

.finderbox .box:last-child {
  border-bottom: none;
}

.finderbox .box:hover {
  background-color: #f8f9fa;
}


  .btn-center {
    display: flex;
    justify-content: center;
    padding-top: 30px;
  }

  /* Switches */
  .switch-wrapper { display: inline-flex; align-items: center; gap: .5rem; margin: .25rem .75rem .25rem 0; }
  .switch { position: relative; display: inline-block; width: 46px; height: 26px; }
  .switch input { opacity: 0; width: 0; height: 0; }
  .slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .2s; border-radius: 26px;
  }
  .slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 3px; top: 3px;
    background-color: #fff; transition: .2s; border-radius: 50%;
  }
  .switch input:checked + .slider { background-color: #0d6efd; }
  .switch input:checked + .slider:before { transform: translateX(20px); }

  .swich-label { font-size: .95rem; margin-right: .75rem; white-space: nowrap; } /* zachováno tvoje jméno třídy */
  .col-50 { width: 50%; vertical-align: top; }
  .td-right { text-align: right; }

/* řádek s více vstupy vedle sebe */
.input-row {
  display: flex;
  gap: 0.75rem;       /* mezera mezi políčky */
  width: 100%;
}

/* každé pole má stejnou šířku (lze přepsat ve funkci show_imput_single) */
.input-row .form-control {
  flex: 1 1 0;        /* všechny stejně široké */
  min-width: 0;       /* aby se dobře zmenšovaly */
}
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
 
}

/* jednotlivý sloupec */
.form-col {
  flex: 1 1 50%;
  min-width: 0; /* aby se vstupy pěkně zmenšovaly */
  
}

.txtwhite { color: #fff !important;}

//  revize

.table .zavada-A > td { background-color:#ffcccc !important; }
.table .zavada-B > td { background-color:#ffe5cc !important; }
.table .zavada-C > td { background-color:#ffffcc !important; }
.table .bez-zavady > td { background-color:#e6ffe6 !important; }



