body {
  font-family: Arial, sans-serif; /* Změna fontu pro celou stránku */
  margin: 20px;
  background-color: #f4f4f4; /* Světlé pozadí pro lepší kontrast */
}

.dataTables_wrapper {
  margin: 20px;
  border: 1px solid #ddd; /* Okraj kolem tabulky */
  background-color: #fff; /* Bílé pozadí tabulky */
  border-radius: 5px; /* Zaoblené rohy */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Jemný stín */
  padding: 20px; /* Vnitřní odsazení */
}

/* Stylování pro vyhledávací pole */
.dataTables_filter input {
  border-radius: 20px;
  border: 1px solid #ccc;
  padding: 5px 10px;
  margin-left: 5px;
}

/* Přizpůsobení select boxů a dalších ovládacích prvků */
.dataTables_length select,
.dataTables_length label,
.dataTables_filter label {
  color: #333; /* Tmavší barva textu */
  font-weight: normal; /* Normální tloušťka písma */
}

/* Stylování tlačítek */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 5px 10px;
  background-color: #007bff; /* Modré pozadí */
  color: white; /* Bílý text */
  border-radius: 3px; /* Zaoblené rohy */
  border: none; /* Bez okraje */
  margin-left: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #0056b3; /* Tmavší modrá při najetí myší */
}

/* Přizpůsobení záhlaví tabulky */
table.dataTable thead th {
  background-color: #007bff; /* Modré pozadí */
  color: white; /* Bílý text */
  padding: 10px; /* Větší padding pro záhlaví */
  border-bottom: none; /* Bez spodního okraje */
}

/* Přizpůsobení buněk tabulky */
table.dataTable tbody td {
  padding: 8px 10px; /* Větší padding pro buňky */
}

td.dt-type-numeric {
  text-wrap: nowrap;
}

/* Změna vzhledu při najetí kurzorem na řádek tabulky */
table.dataTable tbody tr:hover {
  background-color: #e9ecef; /* Světle šedé pozadí */
}

#example {
  position: relative !important;
}

#example th {
  text-align: center !important;
  vertical-align: middle !important;
}

#example td {
  text-align: right;
}

.dtfh-floatingparent-head th {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Form s údaji */
.search-panel {
  max-width: fit-content;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}

.search-panel fieldset {
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.search-panel legend {
  font-weight: bold;
  color: #333;
}

/* Enhanced Form Group */
.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-group label {
  margin-right: 10px;
  font-size: 14px;
  color: #555;
}

/* Input and Button Styles */
.form-group input[type="text"], /* Or input[type="password"] */
.form-group input[type="date"], 
.form-group select,
.form-group button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 200px; /* Adjust width as needed */
  margin-right: 10px; /* Adjust spacing between elements */
}

/* Button Styles */
#submitButton {
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#submitButton:hover {
  background-color: #0056b3;
}

.quick-selection-dropdown button {
  background-color: #28a745;
  border-color: #28a745;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.disabled input {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.disabled-button {
  pointer-events: none;
  opacity: 0.5;
}

.dt-button-collection .dt-button {
  padding: 5px 10px;
  margin-bottom: 2px;
  font-size: 14px;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-group label,
  .form-group input,
  .form-group button {
    margin-bottom: 5px; /* Spacing in column layout */
    width: 100%; /* Expand elements on smaller screens */
  }
}

/* Adding borders for each section */

/* Sales section - left border */
#example th.section-sales:first-child,
#example td.section-sales:first-child {
  border-left: 2px solid black;
}

/* Sales section - right border */
#example th.section-sales:last-child,
#example td.section-sales:last-child {
  border-right: 2px solid black;
}

/* Price section - left border */
#example th.section-price:first-child,
#example td.section-price:first-child {
  border-left: 2px solid black;
}

/* Price section - right border */
#example th.section-price:last-child,
#example td.section-price:last-child {
  border-right: 2px solid black;
}

/* PNO section - left border */
#example th.section-pno:first-child,
#example td.section-pno:first-child {
  border-left: 2px solid black;
}

/* PNO section - right border */
#example th.section-pno:last-child,
#example td.section-pno:last-child {
  border-right: 2px solid black;
}

/* CPA section - left border */
#example th.section-cpa:first-child,
#example td.section-cpa:first-child {
  border-left: 2px solid black;
}

/* CPA section - right border */
#example th.section-cpa:last-child,
#example td.section-cpa:last-child {
  border-right: 2px solid black;
}

/* Impressions section - left border */
#example th.section-impressions:first-child,
#example td.section-impressions:first-child {
  border-left: 2px solid black;
}

/* Impressions section - right border */
#example th.section-impressions:last-child,
#example td.section-impressions:last-child {
  border-right: 2px solid black;
}

/* Clicks section - left border */
#example th.section-clicks:first-child,
#example td.section-clicks:first-child {
  border-left: 2px solid black;
}

/* Clicks section - right border */
#example th.section-clicks:last-child,
#example td.section-clicks:last-child {
  border-right: 2px solid black;
}

/* Conversions section - left border */
#example th.section-conversions:first-child,
#example td.section-conversions:first-child {
  border-left: 2px solid black;
}

/* Conversions section - right border */
#example th.section-conversions:last-child,
#example td.section-conversions:last-child {
  border-right: 2px solid black;
}

/* Teplotní mapy */

/* Zelená paleta */
.heat-green-1 {
  background-color: #cfe2cf !important;
  color: #000000;
} /* Nejméně zelená, černý text */
.heat-green-2 {
  background-color: #b6d7b6 !important;
  color: #000000;
}
.heat-green-3 {
  background-color: #9eccac !important;
  color: #000000;
}
.heat-green-4 {
  background-color: #82c282 !important;
  color: #000000;
}
.heat-green-5 {
  background-color: #66b866 !important;
  color: #000000;
}
.heat-green-6 {
  background-color: #4caf4c !important;
  color: #000000;
}
.heat-green-7 {
  background-color: #32a032 !important;
  color: #ffffff;
} /* Střední odstíny - bílý text*/
.heat-green-8 {
  background-color: #199119 !important;
  color: #ffffff;
}
.heat-green-9 {
  background-color: #77dd77 !important;
  color: #ffffff;
}
.heat-green-10 {
  background-color: #55aa55 !important;
  color: #ffffff;
}

/* Červená paleta */
.heat-red-1 {
  background-color: #f7cac9 !important;
  color: #000000;
}
.heat-red-2 {
  background-color: #f4a5a1 !important;
  color: #000000;
}
.heat-red-3 {
  background-color: #e77e79 !important;
  color: #000000;
}
.heat-red-4 {
  background-color: #d55754 !important;
  color: #ffffff;
} /* Střední odstíny - bílý text*/
.heat-red-5 {
  background-color: #c32f2e !important;
  color: #ffffff;
}
.heat-red-6 {
  background-color: #b10f26 !important;
  color: #ffffff;
}
.heat-red-7 {
  background-color: #9f001f !important;
  color: #ffffff;
}
.heat-red-8 {
  background-color: #8d0018 !important;
  color: #ffffff;
}
.heat-red-9 {
  background-color: #dd7777 !important;
  color: #ffffff;
}
.heat-red-10 {
  background-color: #aa5555 !important;
  color: #ffffff;
}

.heatmap-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.heatmap-cell span {
  padding: 0 5px;
  max-width: 80%;
}
