@charset "utf-8";
/* CSS Document */
body {
  font-family: Arial;
  font-size: 10pt;
  background-color: #EEF4FF;
}
select {
  border-collapse: collapse;
  border: 1px solid #000000;
  margin-top: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
  -webkit-box-shadow: 2px 2px 5px #878787;
  box-shadow: 2px 2px 5px #878787;
  min-width: 320px;
}
table {
  border-collapse: collapse;
  border: 1px solid #000000;
  display: table;
  -webkit-box-shadow: 2px 2px 5px #878787;
  box-shadow: 2px 2px 5px #878787;
  margin-bottom: 20px;
  font-size: 10pt;
}
td {
  border: 1px solid #000000;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
}
th {
  border: 1px solid #000000;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
}
.svetly_radek {
  background-color: #FFFCD8
}
.form-row {
  display: inline-block;
  margin-right: 10px;
}
.marked_radek {
  background-color: #E37C7E
}
.submit {
    background-color: #1E73BB; /* Modrá barva pozadí (zachována) */
    color: #FFFFFF; /* Bílý text */
    padding: 8px 16px; /* Zvětšené padding pro pohodlnější klikání */
    border: none; /* Bez rámečku */
    border-radius: 6px; /* Mírně zaoblenější rohy pro modernější vzhled */
    cursor: pointer; /* Kurzor při najetí */
    font-size: 14px; /* Velikost písma zachována */
    font-weight: 600; /* Mírně lehčí tučnost pro elegantnější vzhled */
    text-align: center; /* Centrování textu */
    margin: 8px; /* Jednotné marginy ze všech stran pro konzistenci */
    min-width: 180px; /* Mírně širší minimální šířka pro lepší proporce */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Jemnější stín pro hloubku */
    transition: all 0.3s ease; /* Plynulý přechod pro hover efekt */
}

.submit:hover {
    background-color: #155A94; /* Tmavší modrá při najetí */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Výraznější stín při najetí */
    transform: translateY(-1px); /* Lehké zvednutí tlačítka */
}

.submit:active {
    background-color: #104678; /* Ještě tmavší modrá při kliknutí */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Menší stín při stisku */
    transform: translateY(1px); /* Lehké zatlačení tlačítka */
}
.info {
  color: #A00C0F;
  font-variant: normal;
  font-weight: bold;
  font-size: large;
}
form {
  width: auto;
  min-width: 600px;
}
* {
  box-sizing: border-box;
}
input {
  text-align: center;
  min-width: auto;
  width: 50px;
}
h1 {
  text-shadow: 3px 3px 5px #C1C1C1;
  text-align: center;
}
.marked {
  background-color: #FFB3B5;
}
input[type="text"],
input[type="password"] {
  min-width: 60px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  
  color: #333;
}
input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #007bff;
}
caption {
  font-weight: bold;
  font-size: 16px;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 10px;
  padding-left: 5px;
  text-align: left;
}
input[type="date"] {
  width: 200px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  
  color: #333;
  -webkit-box-shadow: 2px 2px 5px #878787;
  box-shadow: 2px 2px 5px #878787;
}
.tr_vypl {
  min-height: 50px;
}
th {
  font-weight: bold;
  
  text-align: center;
  text-shadow: 1px 1px 3px #C5C5C5;
  background-color: #66B4F6;
}
.sum {
  font-weight: bold;
  background-color: #AED7F9;
}
.vyplatnice_tb {
  min-width: 950px;
}
.menu {
  min-width: 300px;
  margin-top: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  margin-left: 5px;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  border: 1px solid #000000;
}
.content {
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}

/* Login: větší mezera od horního okraje */
.login-page .content {
  padding-top: 80px;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.row {
  min-height: 0px;
  padding: 20px;
}
.center {
  margin: auto;
}
.vypis {
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}
h2 {
  text-align: center;
}
.main_table {
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}
.souhrn_tb {
  min-width: 500px;
  margin-bottom: 10px;
}
.name {
  background-color: #FFC566;
}
.bold {
  font-weight: bold;
}
.column {
  width: 50%;
  padding: 10px;
  box-sizing: border-box;
  margin-top: auto;
  margin-right: auto;
  margin-bottom: auto;
  margin-left: auto;
}
.cont {
  display: flex;
  justify-content: space-between;
  max-width: 400px;
  margin: 0 auto;
  float: left;
}
.tables-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
}
.souperi-layout {
  flex-direction: column;
  align-items: center;
}
.souperi-layout .table-row {
  width: 100%;
  max-width: 700px;
}
.souperi-layout .table_sum {
  width: 100%;
}
.table-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 650px;
}
.table_vycetka {
  flex: 1 0 50%;
  box-sizing: border-box;
  text-align: center;
  margin: 0 auto;
  max-width: 310px;
}
.table_sum {
  text-align: center;
  margin-top: 10px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0;
  min-width: 310px;
}
input[type="checkbox"] {
  display: inline-block;
  vertical-align: middle;
}
.container_sum {
  max-width: 650px;
  margin: 0 auto;
}
.message {
  color: #FF0004;
  font-weight: bold;
  font-size: 15px;
  margin-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.souper_form {
  min-width: 250px;
  width: 600px;
  text-align: left;
}
.duplicate {
  background-color: #FF6B6B;
}
.floating-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #E9E9E9;
  border: 1px solid #cccccc;
  padding: 20px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  color: #FF6A00;
  font-weight: bold;
  font-size: 16px;
  -webkit-box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.1);
}
.table-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.table-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
}
.summary-table {
  width: 100%;
  border-collapse: collapse;
}
.summary-table th, .summary-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.summary-table th {
  background-color: #66B4F6;
  font-weight: bold;
}
.summary-table tr:nth-child(even) {
  background-color: #FFFCD8;
}
tr:hover {
  background-color: #e2e2e2;
}
tr.header-summary {
  background-color: #66B4F6;
  font-weight: bold;
}
table.vyplatnice_tb td.amount {
  text-align: center;
}
html, body {
  margin: 0;
  padding: 0;
}
.menu::after {
  content: "";
  display: table;
  clear: both;
}
.menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  background-color: #1E73BB;
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 999;
  -webkit-box-shadow: 2px 2px 5px #878787;
  box-shadow: 2px 2px 5px #878787;
  border: 2px solid #1E73BB;
}
.menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.menu > li {
  position: relative;
  flex-grow: 1;
}
.menu > li > a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  background-color: #1E73BB;
  font-weight: bold;
}
.menu li ul a {
  padding: 10px;
  background-color: #FFC566;
  color: black;
  text-decoration: none;
  display: block;
  -webkit-box-shadow: 2px 2px 5px #878787;
  box-shadow: 2px 2px 5px #878787;
}
.menu li a:hover {
  background-color: #144d86;
}
.menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #FFC566;
  min-width: 360px;
  z-index: 1000;
  -webkit-box-shadow: 2px 2px 5px #878787;
  box-shadow: 2px 2px 5px #878787;
  border: 1px solid #333;
}
.menu li:hover ul {
  display: block;
}

/* Tap-to-open (JS přidává .open) */
.menu li.open > ul {
  display: block;
}
.menu li ul li {
  float: none;
  border-bottom: 1px solid #333;
}
.menu li ul li a:hover {
  background-color: #AED7F9;
}
.vyplatnice_tb tr:nth-child(even) {
  background-color: #FFFCD8;
}
.vyplatnice_tb tr:nth-child(odd) {
  background-color: transparent;
}
#souperForm .souper-container {
  max-width: 950px;
  margin: 20px auto;
  border: 1px solid #000;
  padding: 10px;
  text-align: center;
  color: #333;
  -webkit-box-shadow: 2px 2px 5px #878787;
  box-shadow: 2px 2px 5px #878787;
}
#souperForm .caption {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}
#souperForm .row {
  display: flex;
  padding: 5px 0;
  border-bottom: 1px solid #000;
}
#souperForm .row.header {
  font-weight: bold;
  
  text-align: center;
  text-shadow: 1px 1px 3px #C5C5C5;
  background-color: #66B4F6;
}
#souperForm .row:last-child {
  border-bottom: none;
}
#souperForm .column {
  flex: 1;
  padding: 5px;
  box-sizing: border-box;
}
#souperForm .search-container {
  display: block;
  width: 100%;
  position: relative;
}
#souperForm .search-field {
  width: 100%;
  padding: 8px;

}
#souperForm .results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 0px;
  max-height: 150px;
  overflow-y: auto;
  background-color: #fff;
  color: #333;
  -webkit-box-shadow: 2px 2px 5px #878787;
  box-shadow: 2px 2px 5px #878787;
  border-radius: 5px;
  z-index: 9999;
}
#souperForm .result-item {
  padding: 5px;
  cursor: pointer;
  font-weight: bold;
  
}
fieldset {
    border: 1px solid #878787;
    padding: 20px;
    margin: 20px auto;
    -webkit-box-shadow: 2px 2px 5px #878787;
    box-shadow: 2px 2px 5px #878787;
    border-radius: 10px;
    text-align: center;
    width: 90%;
}
legend {
  font-size: 1.3em;
  font-weight: bold;
}
.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.form-container input, 
.form-container select, 
.form-container textarea {
    width: calc(100% + 10px);
    max-width: 200px;
    padding: 5px;
    box-sizing: border-box;
}
.form-container label {
    font-weight: bold;
}

/* Lepší rozložení pro login a jiné jednoduché formuláře v .form-container */
.form-container fieldset {
  text-align: left;
}

.form-container fieldset > div {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.form-container label {
  display: block;
}

.form-container input:not([type="checkbox"]):not([type="radio"]),
.form-container select,
.form-container textarea {
  width: 100%;
  max-width: 320px;
}
.fieldset_karta legend {
    font-size: 1.5em;
    text-align: left;
}
.form-container input[type="checkbox"] {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    appearance: none;
    border: 2px solid #333;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    position: relative;
}
.form-container input[type="checkbox"]:checked {
    background-color: #1E73BB;
    border-color: #1E73BB;
}
.form-container input[type="checkbox"]::before {
    content: "✔";
    font-size: 14px;
    color: white;
    display: block;
    text-align: center;
    position: absolute;
    left: 2px;
    top: -1px;
    width: 14px;
    height: 14px;
    visibility: hidden;
}
.form-container input[type="checkbox"]:checked::before {
    visibility: visible;
}
.filter-container {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    
    box-sizing: border-box;
}
.filter-input::placeholder {
    color: #999;
    font-style: italic;
}
.filter-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.date-column {
    text-align: center;
    width: 120px;
    
    text-shadow: 1px 1px 2px #C5C5C5;
}
.vyplatnice_tb th, .vyplatnice_tb td {
    padding: 8px;
    border: 1px solid #333;
}
.vyplatnice_tb th {
    background-color: #66B4F6;
    font-weight: bold;
}
.vyplatnice_tb tbody tr:hover {
    background-color: #e2e2e2;
}
.vyplatnice_tb {
    min-width: 950px;
    max-width: 100%;
    margin: 0 auto;
}
@media (max-width: 960px) {
    .vyplatnice_tb {
        min-width: 100%;
    }
    .date-column {
        width: 100px;
    }
    .vyplatnice_tb th, .vyplatnice_tb td {
        padding: 5px;
    }
    .filter-input {
        width: 100%;
    }
    form {
        min-width: 100%;
        margin: 0 auto;
    }
}

/* Zvětšení šířky tabulky a kontejnerů */
.content {
  max-width: calc(100vw - 32px);
    margin: 0 auto;
}
.vypis {
  max-width: calc(100vw - 32px);
    margin: 0 auto;
}
.table-wrapper {
    width: 100%;
  max-width: calc(100vw - 32px);
    overflow-x: auto;
}
.vyplatnice_tb {
    min-width: 1200px; /* Zvětšeno z 950px */
  max-width: calc(100vw - 32px);
    margin: 0 auto;
}
form {
    min-width: 100%; /* Upraveno z 600px pro větší flexibilitu */
  max-width: calc(100vw - 32px);
    margin: 0 auto;
}

/* Definice šířek sloupců pro rovnoměrné rozložení */
.vyplatnice_tb th:nth-child(1), .vyplatnice_tb td:nth-child(1) { /* Checkbox */
    width: 50px;
}
.vyplatnice_tb th:nth-child(2), .vyplatnice_tb td:nth-child(2) { /* Příjmení */
    width: 200px;
}
.vyplatnice_tb th:nth-child(3), .vyplatnice_tb td:nth-child(3) { /* Jméno */
    width: 150px;
}
.vyplatnice_tb th:nth-child(4), .vyplatnice_tb td:nth-child(4) { /* Od */
    width: 150px;
}
.vyplatnice_tb th:nth-child(5), .vyplatnice_tb td:nth-child(5) { /* Do */
    width: 150px;
}
.vyplatnice_tb th:nth-child(6), .vyplatnice_tb td:nth-child(6) { /* Počet dní */
    width: 100px;
}
.vyplatnice_tb th:nth-child(7), .vyplatnice_tb td:nth-child(7) { /* Upravit */
    width: 120px;
}
.vyplatnice_tb th:nth-child(8), .vyplatnice_tb td:nth-child(8) { /* Smazat */
    width: 120px;
}
.vyplatnice_tb th:nth-child(9), .vyplatnice_tb td:nth-child(9) { /* Tisk */
    width: 120px;
}

/* Vylepšení vzhledu */
.vyplatnice_tb th, .vyplatnice_tb td {
    padding: 10px; /* Zvětšeno z 8px pro prostornější vzhled */
}

input[type="date"] {
    width: 140px; /* Zmenšeno z 200px pro lepší proporce */
}

/* Responzivita */
@media (max-width: 1400px) {
    .vyplatnice_tb {
        min-width: 100%;
        max-width: 100%;
    }
    .vyplatnice_tb th:nth-child(2), .vyplatnice_tb td:nth-child(2) { /* Příjmení */
        width: 150px;
    }
    .vyplatnice_tb th:nth-child(3), .vyplatnice_tb td:nth-child(3) { /* Jméno */
        width: 120px;
    }
    .vyplatnice_tb th, .vyplatnice_tb td {
        padding: 6px;
    }
    input[type="date"] {
        width: 120px;
    }
    
}
.button {
    background-color: #1E73BB; /* Modrá barva pozadí (zachována) */
    color: #FFFFFF; /* Bílý text */
    padding: 5px 5px; /* Zvětšené padding pro pohodlnější klikání */
    border: none; /* Bez rámečku */
    border-radius: 6px; /* Mírně zaoblenější rohy pro modernější vzhled */
    cursor: pointer; /* Kurzor při najetí */
    font-size: 14px; /* Velikost písma zachována */
    font-weight: 600; /* Mírně lehčí tučnost pro elegantnější vzhled */
    text-align: center; /* Centrování textu */
    margin: 1px; /* Jednotné marginy ze všech stran pro konzistenci */
    min-width: 50px; /* Mírně širší minimální šířka pro lepší proporce */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Jemnější stín pro hloubku */
    transition: all 0.3s ease; /* Plynulý přechod pro hover efekt */
}

.button:hover {
    background-color: #155A94; /* Tmavší modrá při najetí */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Výraznější stín při najetí */
    transform: translateY(-1px); /* Lehké zvednutí tlačítka */
}

.button:active {
    background-color: #104678; /* Ještě tmavší modrá při kliknutí */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Menší stín při stisku */
    transform: translateY(1px); /* Lehké zatlačení tlačítka */
}
.number {
    margin-top: 2px;
    margin-right: 2px;
    margin-bottom: 2px;
    margin-left: 2px;
    padding-top: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
    padding-left: 2px;
    background-color: #FFFFFF; /* Modrá barva pozadí (zachována) */
    color: #000000; /* Bílý text */
    border: none; /* Bez rámečku */
    border-radius: 6px; /* Mírně zaoblenější rohy pro modernější vzhled */
    font-size: 12px; /* Velikost písma zachována */
    font-weight: 300; /* Mírně lehčí tučnost pro elegantnější vzhled */
    text-align: center; /* Centrování textu */
    min-width: 30px; /* Mírně širší minimální šířka pro lepší proporce */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Jemnější stín pro hloubku */
    transition: all 0.3s ease; /* Plynulý přechod pro hover efekt */
    min-height: 30px;
}

/* === Facelift 2026 (zachování barev, modernější vzhled) === */
:root {
  --fotbal-bg: #EEF4FF;
  --fotbal-primary: #1E73BB;
  --fotbal-primary-hover: #155A94;
  --fotbal-accent: #FFC566;
  --fotbal-accent-hover: #AED7F9;
  --fotbal-header: #66B4F6;
  --fotbal-row-alt: #FFFCD8;
  --fotbal-border: #ddd;
  --fotbal-border-strong: #ccc;
  --fotbal-text: #333;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fotbal-text);
  background-color: var(--fotbal-bg);
}

h1, h2 {
  text-align: left;
  text-shadow: none;
  margin: 0 0 10px;
}

/* Nette shell */
.fotbal-admin-wrap {
  width: 95vw;
  max-width: 1920px;
  margin: 0 auto;
  padding: 18px;
}

.fotbal-admin-top {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 14px;
  border: 1px solid var(--fotbal-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.1);
}

.fotbal-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fotbal-admin-logo {
  height: 44px;
  width: auto;
  display: block;
}

.fotbal-admin-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.fotbal-admin-note {
  font-size: 13px;
  color: #666;
}

.fotbal-admin-year {
  margin-left: 8px;
  min-width: 120px;
}

hr {
  border: 0;
  border-top: 1px solid var(--fotbal-border);
  margin: 16px 0;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
  border: 1px solid var(--fotbal-border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: none;
  background: #fff;
  color: var(--fotbal-text);
}

/* Legacy CSS nastavuje globálně inputům malou šířku a centrování.
   Facelift to přepisuje na použitelnější defaulty (tabulky si šířky řeší inline nebo třídami). */
input {
  width: auto;
  min-width: 0;
  text-align: left;
  font: inherit;
}

input[type="number"] {
  text-align: right;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

/* V tabulkách chceme kompaktní vstupy a konzistentní výšku */
table input[type="text"],
table input[type="number"],
table select {
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
}

table input[type="date"] {
  text-align: center;
}

/* Placeholder a textarea */
input::placeholder,
textarea::placeholder {
  color: #8a8a8a;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* Moderní checkboxy (mimo custom .form-container), zachování barev */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--fotbal-primary);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--fotbal-primary);
  box-shadow: 0 0 0 3px rgba(30, 115, 187, 0.18);
}

/* Login (a obecně .form-container) fieldset nechceme přes celou šířku */
.form-container fieldset {
  width: 100%;
  max-width: 400px;
  margin: 10px auto;
}

/* Tables */
table {
  border: 1px solid var(--fotbal-border);
  box-shadow: none;
  background: #fff;
}

td, th {
  border-color: var(--fotbal-border);
  padding: 8px 10px;
}

th {
  background-color: var(--fotbal-header);
  text-shadow: none;
}

tr:hover {
  background-color: #e9e9e9;
}

/* Menu */
.menu {
  margin: 12px 0 0;
  border: 1px solid var(--fotbal-primary);
  border-radius: 12px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.1);
  overflow: visible;
  padding: 6px;
  gap: 6px;
}

.menu > li {
  border-radius: 10px;
}

.menu > li > a {
  border-radius: 10px;
}

.menu > li > a {
  padding: 12px 14px;
}

.menu li ul {
  border: 1px solid var(--fotbal-border-strong);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  min-width: 320px;
}

.menu li ul a {
  box-shadow: none;
}

.menu li a:hover {
  background-color: var(--fotbal-primary-hover);
}

.menu li ul li a:hover {
  background-color: var(--fotbal-accent-hover);
}

/* Fieldsets */
fieldset {
  border: 1px solid var(--fotbal-border);
  box-shadow: none;
  background: #fff;
}

/* Jemný stín jen na loginu (ostatní fieldsety necháme ploché) */
.login-page fieldset {
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.1);
}

/* Layout bloky */
.row {
  padding: 16px;
  border: 1px solid var(--fotbal-border);
  border-radius: 12px;
  background: #fff;
}

/* Výpisové stránky (Souhrn akcí, Výpisy, apod.) – vzhled jako fieldset/karta */
.vypis {
  padding: 16px;
  border: 1px solid var(--fotbal-border);
  border-radius: 12px;
  background: #fff;
}

/* Pokud je .vypis uvnitř .row (už je to karta), ať to není 'karta v kartě' */
.row .vypis {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Jednotný panel pro filtry/ovládací prvky (fieldset/legend) */
.page-panel {
  border: 1px solid var(--fotbal-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  margin: 10px 0 14px;
  box-shadow: none;
}

.page-panel legend {
  font-weight: 700;
  padding: 0 8px;
}

/* Flash messages (jedno místo v layoutu) */
.flash-messages {
  margin: 10px 0 14px;
}

.flash {
  border: 1px solid var(--fotbal-border);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  margin: 8px 0;
}

.flash.success {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}

.flash.error {
  border-color: #c62828;
  background: #ffebee;
  color: #b71c1c;
}

.flash.warning {
  border-color: var(--fotbal-accent);
  background: var(--fotbal-row-alt);
  color: var(--fotbal-text);
}

/* Toast notifications (JS) */
.fotbal-toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.fotbal-toast {
  pointer-events: auto;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

/* Form rows (napříč stránkami) */
.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.form-row label {
  font-weight: 600;
}

/* Karta pořadatele (Nette form default renderer = table) */
.poradatel-form {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.poradatel-form fieldset {
  border: 1px solid var(--fotbal-border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: none;
}

/* Ve frame (iframe) stránkách držet ovládací fieldsety příjemně uprostřed */
.frame-page .page-panel {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.poradatel-form legend {
  font-size: 18px;
  font-weight: 700;
  padding: 0 8px;
}

.poradatel-form table {
  width: 100%;
  border: 0;
  box-shadow: none;
  background: transparent;
  margin: 0;
}

.poradatel-form th,
.poradatel-form td {
  border: 0;
  padding: 8px 6px;
  vertical-align: top;
}

.poradatel-form th {
  width: 260px;
  text-align: left;
  background: transparent;
  text-shadow: none;
  font-weight: 600;
}

.poradatel-form input[type="text"],
.poradatel-form input[type="email"],
.poradatel-form input[type="date"],
.poradatel-form select,
.poradatel-form textarea {
  width: 100%;
  max-width: 520px;
}

@media (max-width: 768px) {
  .poradatel-form th {
    width: auto;
    display: block;
    padding-bottom: 2px;
  }
  .poradatel-form td {
    display: block;
    padding-top: 0;
  }
}

/* Původní CSS dává selectům velké marginy/min-width; facelift to zklidní */
select {
  margin: 0;
  min-width: 180px;
}

/* Tables – jednotný modernější vzhled */
table {
  width: 100%;
}

/* --- Responsivita: přetékající tabulky/obsah ---
   Některé stránky používají tabulky s min-width (např. .vyplatnice_tb).
   Na mobilu/tabletu je lepší mít horizontální scroll uvnitř obsahu než rozbíjet layout. */
.content,
.vypis,
.main_table,
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content table,
.vypis table,
.main_table table {
  max-width: 100%;
}

@media (max-width: 768px) {
  .fotbal-admin-wrap {
    padding: 12px;
  }

  .fotbal-admin-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .fotbal-admin-year {
    margin-left: 0;
  }

  /* Menu necháme funkčně stejné, jen mu dovolíme zalomení/scroll na úzkých displejích */
  .menu {
    flex-wrap: wrap;
  }
}

table caption {
  font-size: 14px;
  padding: 10px 10px 8px;
  text-align: left;
}

table tbody tr:nth-child(odd) {
  background: #fff;
}

table tbody tr:nth-child(even) {
  background: var(--fotbal-row-alt);
}

/* Zachovat explicitní zvýraznění řádků */
tr.marked_radek {
  background-color: #E37C7E;
}

tr.marked {
  background-color: #FFB3B5;
}

/* Links (mimo menu vypadají moderněji) */
a {
  color: var(--fotbal-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Buttons (sjednocení) */
.submit,
.button {
  background-color: var(--fotbal-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.submit:hover,
.button:hover {
  background-color: var(--fotbal-primary-hover);
  transform: translateY(-1px);
}

.submit:active,
.button:active {
  transform: translateY(0px);
}

.submit:focus-visible,
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 115, 187, 0.22);
}

/* Links v menu – lepší focus pro klávesnici */
.menu a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 115, 187, 0.22);
}
