/* =========================================
   RegAdapt / HYMOS - hlavní styly
   ========================================= */

/* ===== Základ ===== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #fff;
  color: #003449;
  padding: 5px;
}

/* ===== Hlavička ===== */

header {
  padding: 15px;
  text-align: center;
  font-size: 35px;
  color: #fff;
  background-color: #808080;
  background-image: url("../images/pozadi.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-shadow: 20px 20px 20px #000000;
  border-bottom: 2px solid #003449;
  margin-bottom: 10px;
}

/* ===== Základní bloky ===== */

section::after {
  content: "";
  display: table;
  clear: both;
}

.blok {
  background-color: #ececec;
  align-items: center;
}

.big {
  width: 100%;
  padding: 20px;
  background-color: #fff;
}

.mala {
  font-size: small;
}

.male {
  font-size: 12px;
  font-style: oblique;
}

.tucne {
  font-weight: bold;
}

/* ===== Formuláře ===== */

form {
  margin: 0;
}

input {
  border: 1px solid transparent;
  background-color: #f1f1f1;
  padding: 5px;
  font-size: 14px;
}

input[type="text"] {
  background-color: #f1f1f1;
}

input[type="button"],
input[type="submit"],
input[type="reset"],
.tool {
  border: none;
  background-color: #003449;
  color: #fff;
  padding: 16px 32px;
  margin: 4px 2px;
  text-decoration: none;
  cursor: pointer;
}

input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.tool:hover {
  background-color: #159cbe
}

select {
  border: none;
  background-color: #f1f1f1;
  color: #003449;
  padding: 8px 16px;
  cursor: pointer;
}

option {
  background-color: #f1f1f1;
  color: #003449;
  font-size: 14px;
}

input.cx {
  width: 10%;
  padding: 1px;
  font-size: 10px;
  border: thin solid grey;
  background-color: #fff;
}

.mezera {
  margin-left: 1px;
}

/* ===== Tlačítka a ikonky ===== */

.pdfButton {
  display: block;
  border: none;
  background-color: #003449;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  padding: 16px 32px;
}

.pdfButton:hover {
background-color: #159cbe;
}

.help,
.edit {
  width: 25px;
  height: 25px;
  border: none;
}

.help {
  margin-left: 20px;
}

/* ===== Tabulky ===== */

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #ddd;
}

thead {
  background: #ddd;
}

th,
td {
  padding: 2px;
  text-align: center;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* ===== Tooltipy / zkratky ===== */

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

abbr[title]:hover {
  color: #159cbe;
  text-decoration-color: #159cbe;
}

/* ===== Komentáře / pomocné bloky ===== */

.hide {
  display: none;
}

.komentar,
.myDIV:hover + .hide {
  display: block;
  padding: 7px;
  font-size: 14px;
  color: #fff;
  background-color: #ff961d;
  border: medium solid red;
}

.komentar {
  border: none;
}

.komentar2 {
  display: block;
  padding: 1em;
  font-size: 14px;
  color: #003449;
  border: medium solid #ff961d;
}

/* ===== Footer ===== */

footer {
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  font-size: 13px;
  color: #fff;
  background: #003449;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.footer-logo {
  max-height: 60px;
  width: auto;
  display: block;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
}

.footer-text {
  text-align: left;
  line-height: 1.6;
}

.footer-text p {
  margin: 0 0 6px 0;
}

/* ===== Login / horní lišta ===== */

.lr {
  margin: 0;
  padding: 0;
  text-align: right;
  line-height: 1.8;
  font-size: 13px;
  color: #fff;
  background: #003449;
}

.lr a {
  color: #fff;
}

/* ===== Modal obrázků ===== */

#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {
  opacity: 0.7;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  inset: 0;
  padding-top: 100px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #003449;
}

.modal-content {
  display: block;
  width: 80%;
  max-width: 700px;
  margin: auto;
}

#caption {
  display: block;
  width: 80%;
  max-width: 700px;
  height: 150px;
  margin: auto;
  padding: 10px 0;
  text-align: center;
  color: #ccc;
}

.modal-content,
#caption {
  animation: zoom 0.6s;
}

@keyframes zoom {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  color: #f1f1f1;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* ===== Mapa ===== */

#map {
  float: left;
  width: 600px;
  height: 400px;
  margin: 4px 0;
  border: 2px solid #1978cf;
  border-radius: 0.125em;
}

.search-input {
  font-family: Courier, monospace;
}

.search-input,
.leaflet-control-search {
  max-width: 400px;
}

/* ===== Responzivita ===== */

@media (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}


.dt-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.dataTables_filter,
.dataTables_length {
  float: none !important;
  text-align: left;
  margin: 0;
}

.dataTables_filter label,
.dataTables_length label {
  display: flex;
  align-items: left;
  gap: 8px;
}

.dt-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.dataTables_filter,
.dataTables_length,
.search-mode,
.toolbar-form {
  display: flex;
  align-items: center;
  margin: 0;
}

.search-mode {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.search-mode-text {
  font-size: 14px;
}

.search-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
  font-size: 14px;
}

.search-mode label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin: 0;
  white-space: nowrap;
}

.dataTables_filter {
  margin-right: auto !important;
}

.dataTables_length {
  margin-left: 0px !important;
}

.toolbar-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 0 20px;
}
.toolbar-form input[type="submit"] {
  margin: 0;
}



.dataTables_filter,
.dataTables_length,
.dataTables_filter label,
.dataTables_length label,
.dataTables_filter input,
.dataTables_length select {
  color: #003449 !important;
}

.dataTables_info,
.dataTables_paginate,
.dataTables_paginate a,
.dataTables_paginate span {
  color: #003449 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #003449 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover {
  color: #fff !important;
  background: #003449 !important;
  background-color: #003449 !important;
  border: 1px solid #003449 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: #003449 !important;
  background: none !important;
  background-color: transparent !important;
  border: 1px solid #003449 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: #003449 !important;
  background: none !important;
  background-color: transparent !important;
  border: 1px solid #003449 !important;
}

.risk-cell {
  min-width: 95px;
  font-size: 13px;
  line-height: 1.2;
}

.risk-main {
  padding: 4px 6px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  border-radius: 3px 3px 0 0;
}

.risk-zran {
  font-size: 14px;
  font-weight: bold;
}

.risk-base {
  margin-left: 4px;
  font-size: 11px;
  font-weight: normal;
  opacity: 0.95;
}

.risk-sub {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 6px;
  font-size: 11px;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 3px 3px;
  background-color: #fff;
  color: #003449;
}

/* škála 1–7 */
.lvl-1 { background-color: #1a9850; }
.lvl-2 { background-color: #66bd63; }
.lvl-3 { background-color: #a6d96a; color: #003449; }
.lvl-4 { background-color: #fee08b; color: #003449; }
.lvl-5 { background-color: #fdae61; color: #003449; }
.lvl-6 { background-color: #f46d43; }
.lvl-7 { background-color: #d73027; }


.lvl-0 {
  background-color: #999;
}

.risk-head {
  min-width: 120px;
  max-width: 140px;
}



.modal-help {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.modal-help-content {
  position: relative;
  background: #fff;
  color: #003449;
  width: min(700px, 90%);
  margin: 8% auto;
  padding: 24px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.modal-help-content h3 {
  margin-top: 0;
}

.modal-help-content p,
.modal-help-content li {
  font-size: 14px;
  line-height: 1.5;
}

.modal-help-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #003449;
}

.modal-help-close:hover {
  color: #159cbe;
}

.risk-legend {
  margin: 12px 0 18px 0;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 14px;
}

.legend-color {
  display: inline-block;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.08);
}

.refresh-btn,
.help-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: #003449;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  line-height: 36px;
  text-align: center;
  margin-left: 20px;
}

.refresh-btn:hover,
.help-btn:hover {
  background-color: #159cbe;
}

#floating-x-scroll {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #ececec;
  border-top: 1px solid #ccc;
  z-index: 1500;
}

#floating-x-scroll div {
  height: 1px;
}


/* karta.php – hlavička i obsah vlevo */
table.card-table thead th,
table.card-table thead td,
table.card-table tbody td {
  text-align: left !important;
  vertical-align: middle !important;
}

table.card-table thead th abbr,
table.card-table thead th .head-title {
  text-align: left !important;
}

.priorita-val {
  font-weight: bold;
}