/* PŘIDANÉ STYLY PRO MĚSÍCE S RŮZNÝMI BARVAMI */
.month-section.january {
  border-left: 5px solid #e74c3c;
  background: linear-gradient(
    90deg,
    rgba(231, 76, 60, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.february {
  border-left: 5px solid #9b59b6;
  background: linear-gradient(
    90deg,
    rgba(155, 89, 182, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.march {
  border-left: 5px solid #3498db;
  background: linear-gradient(
    90deg,
    rgba(52, 152, 219, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.april {
  border-left: 5px solid #2ecc71;
  background: linear-gradient(
    90deg,
    rgba(46, 204, 113, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.may {
  border-left: 5px solid #f1c40f;
  background: linear-gradient(
    90deg,
    rgba(241, 196, 15, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.june {
  border-left: 5px solid #e67e22;
  background: linear-gradient(
    90deg,
    rgba(230, 126, 34, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.july {
  border-left: 5px solid #1abc9c;
  background: linear-gradient(
    90deg,
    rgba(26, 188, 156, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.august {
  border-left: 5px solid #d35400;
  background: linear-gradient(
    90deg,
    rgba(211, 84, 0, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.september {
  border-left: 5px solid #34495e;
  background: linear-gradient(
    90deg,
    rgba(52, 73, 94, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.october {
  border-left: 5px solid #7f8c8d;
  background: linear-gradient(
    90deg,
    rgba(127, 140, 141, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.november {
  border-left: 5px solid #8e44ad;
  background: linear-gradient(
    90deg,
    rgba(142, 68, 173, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.december {
  border-left: 5px solid #c0392b;
  background: linear-gradient(
    90deg,
    rgba(192, 57, 43, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}

/* BARVY HLAVIČEK MĚSÍCŮ */
.month-section.january .month-header {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}
.month-section.february .month-header {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}
.month-section.march .month-header {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}
.month-section.april .month-header {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}
.month-section.may .month-header {
  background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}
.month-section.june .month-header {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}
.month-section.july .month-header {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}
.month-section.august .month-header {
  background: linear-gradient(135deg, #d35400 0%, #e74c3c 100%);
}
.month-section.september .month-header {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}
.month-section.october .month-header {
  background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
}
.month-section.november .month-header {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}
.month-section.december .month-header {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

/* ZVÝRAZNĚNÍ PŘI NAJETÍ MYŠÍ */
.month-section.january:hover {
  background: linear-gradient(
    90deg,
    rgba(231, 76, 60, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.february:hover {
  background: linear-gradient(
    90deg,
    rgba(155, 89, 182, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.march:hover {
  background: linear-gradient(
    90deg,
    rgba(52, 152, 219, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.april:hover {
  background: linear-gradient(
    90deg,
    rgba(46, 204, 113, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.may:hover {
  background: linear-gradient(
    90deg,
    rgba(241, 196, 15, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.june:hover {
  background: linear-gradient(
    90deg,
    rgba(230, 126, 34, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.july:hover {
  background: linear-gradient(
    90deg,
    rgba(26, 188, 156, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.august:hover {
  background: linear-gradient(
    90deg,
    rgba(211, 84, 0, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.september:hover {
  background: linear-gradient(
    90deg,
    rgba(52, 73, 94, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.october:hover {
  background: linear-gradient(
    90deg,
    rgba(127, 140, 141, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.november:hover {
  background: linear-gradient(
    90deg,
    rgba(142, 68, 173, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
.month-section.december:hover {
  background: linear-gradient(
    90deg,
    rgba(192, 57, 43, 0.1) 0%,
    rgba(255, 255, 255, 0) 20%
  );
}
:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --light-color: #f5f5f5;
  --dark-color: #333;
  --morning-shift: #40e0d0;
  --afternoon-shift: #ffa500;
  --night-shift: #191970;
  --weekend-color: #ff6b6b;
  --weekend-bg: #fff5f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #ffffff;
  color: var(--dark-color);
  line-height: 1.6;
  padding: 20px;
  background-image: url("https://images6.alphacoders.com/138/thumb-1920-1389663.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.container {
  max-width: 80%;
  margin: 0 auto;
  background-color: rgb(194, 203, 255);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border: 2px solid #e0e0e0;
  min-height: 600px;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.section {
  margin-bottom: 25px;
  padding: 20px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: visible !important;
  position: relative;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.3px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-success:hover {
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.btn-warning:hover {
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.btn-info:hover {
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  border-right: 1px solid #eee;
}

th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  border-bottom: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

th:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

th.sortable::after {
  content: "↕";
  margin-left: 8px;
  opacity: 0.6;
  font-size: 12px;
}

th.sort-asc::after {
  content: "↑";
  opacity: 1;
}

th.sort-desc::after {
  content: "↓";
  opacity: 1;
}

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

.actions {
  display: flex;
  gap: 5px;
}

.actions button {
  margin-bottom: 0;
}

.alert {
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px solid transparent;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.hidden {
  display: none;
}

.bulk-input {
  min-height: 150px;
  font-family: monospace;
}

.instructions {
  background-color: var(--light-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  border: 1px solid #ddd;
}

.tab-container {
  margin-top: 20px;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}

.tab {
  padding: 12px 24px;
  cursor: pointer;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin-right: 5px;
  transition: all 0.3s;
  font-weight: 500;
}

.tab.active {
  background: linear-gradient(135deg, #002fff 0%, #ff0000 100%);
  color: white;
  border-color: #ddd;
  border-bottom-color: white;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  overflow: visible !important;
}

/* OPRAVA PRO KALENDÁŘ - zajistit, že tooltipy nebudou oříznuté */
.calendar-container {
  display: flex;
  gap: 2px;
  align-items: flex-start;
  position: relative;
  overflow: visible !important;
  min-height: 600px;
}

.calendar-sidebar {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 48px;
}

.calendar {
  flex: 1;
  position: relative;
  overflow: visible !important;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: var(--light-color);
  border-radius: 8px;
  border: 2px solid #ddd;
}

.calendar-nav {
  display: flex;
  gap: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #808080;
  border: 3px solid #667eea;
  border-radius: 12px;
  overflow: visible !important;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-week-info {
  background-color: var(--light-color);
  padding: 8px 5px;
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  min-height: 100px;
  box-sizing: border-box;
}

.calendar-week-number {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 3px;
}

.calendar-shift {
  font-size: 14px;
  font-weight: bold;
}

.calendar-day-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #5a6fd8;
  font-size: 14px;
}

.calendar-day-header:nth-child(6),
.calendar-day-header:nth-child(7) {
  background: linear-gradient(135deg, #ffed4f 0%, #ff0d00 100%);
}

.calendar-day {
  background-color: white;
  min-height: 100px;
  padding: 8px;
  position: relative;
  cursor: pointer;
  border: 1px solid #000000d3;
  transition: all 0.2s;
  overflow: visible !important;
  user-select: none;
  z-index: 1;
}

/* VÍKENDY - PŘESUNUTO A OPRAVENO */
.calendar-day.weekend {
  background-color: var(--weekend-bg);
  border-right: 2px solid var(--weekend-color);
}

.calendar-day.weekend:hover {
  background-color: #ffeaea;
}

.calendar-day.weekend::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background-color: var(--weekend-color);
  border-radius: 50%;
}

/* PODMÍNĚNÉ FORMÁTOVÁNÍ - musí být PO víkendech */
.vacation-low {
  background-color: #9eff9e !important;
}

.vacation-medium {
  background-color: #fff564 !important;
}

.vacation-high {
  background-color: #ff6d7c !important;
}

.calendar-day:hover {
  background-color: #f8f9fa;
  transform: scale(1.02);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
  background-color: #f9f9f9;
  color: #aaa;
}

.calendar-day-number {
  font-weight: 600;
  margin-bottom: 5px;
}

.calendar-vacation-count {
  font-size: 12px;
  margin-top: 5px;
}

.shift-morning {
  background-color: #40e0d0;
}

.shift-afternoon {
  background-color: #ffa500;
}

.shift-night {
  background-color: #191970;
  color: white !important;
  font-weight: bold;
}

.shift-night .calendar-week-number,
.shift-night .calendar-shift {
  color: white;
  font-weight: bold;
}

/* OPRAVA PRO TOOLTIPY - hlavní část */
.tooltip {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  overflow: visible !important;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 280px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 12px;
  position: absolute;
  z-index: 10000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: pre-line;
  line-height: 1.5;
  border: 2px solid #555;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: normal;
  pointer-events: none;
}

/* Nové pravidlo pro tooltipy, které nemají dostatek místa nad sebou */
.tooltip .tooltiptext.top-fix {
  bottom: auto;
  top: 125%;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip .tooltiptext.top-fix::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #333 transparent;
}

/* Upravit pozice pro krajní dny - větší rezerva */
.calendar-day:nth-child(7n + 1) .tooltiptext,
.calendar-day:nth-child(7n + 2) .tooltiptext {
  left: 20px;
  transform: translateX(0);
}

.calendar-day:nth-child(7n) .tooltiptext,
.calendar-day:nth-child(7n-1) .tooltiptext {
  left: auto;
  right: 20px;
  transform: translateX(0);
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.employee-list {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
}

.employee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.employee-item:last-child {
  border-bottom: none;
}

.search-input {
  margin-bottom: 15px;
}

.employee-checkbox {
  margin-right: 10px;
}

.bulk-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bulk-actions-left {
  display: flex;
  gap: 10px;
}

.bulk-actions-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.vacation-type {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.vacation-type label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
}

.vacation-type input {
  width: auto;
}

.vacation-days-info {
  background-color: #e8f4fd;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid #b8daff;
}

.employee-option {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.employee-option:hover {
  background-color: #f5f5f5;
}

.employee-option:last-child {
  border-bottom: none;
}

.employee-dropdown {
  position: absolute;
  background: white;
  border: 2px solid #ddd;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-container {
  position: relative;
}

.month-section {
  margin-bottom: 30px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.month-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 2px solid #e0e0e0;
}

.month-vacations {
  padding: 0;
}

.checkbox-cell {
  text-align: center;
  width: 50px;
}

.checkbox-cell input {
  width: auto;
}

.printed-true {
  background-color: #fff172;
}

.sent-true {
  background-color: #7eff7e;
}

.remaining-days-cell {
  font-weight: 600;
  color: var(--primary-color);
}

.employee-name-with-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-form {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-form h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 10px;
}

.edit-form .form-group {
  margin-bottom: 15px;
}

.edit-form label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.edit-form input[type="date"] {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.edit-form input[type="date"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.date-range-picker {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-range-picker input {
  flex: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--danger-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--danger-color);
  background-color: #f8f9fa;
  border-radius: 50%;
}

.modal-body {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.employee-search-container {
  position: relative;
  max-width: 300px;
}

.employee-search-container input {
  width: 100%;
  padding: 8px 35px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.employee-search-container button {
  position: absolute;
  right: 1px;
  top: 35%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 5px;
}

.employee-search-container button:hover {
  color: #333;
}

.employee-item.hidden {
  display: none !important;
}

.multi-select-calendar {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: white;
  margin-bottom: 20px;
}

.multi-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.selected-dates-info {
  background-color: #e8f4fd;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid #b8daff;
}

.selected-dates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.date-tag {
  background-color: var(--primary-color);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.date-tag button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-tag button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.calendar-day.selected {
  background-color: var(--primary-color) !important;
  color: white;
  font-weight: bold;
}

.calendar-day.selecting {
  background-color: #a8d5ff !important;
}

.calendar-day.partial {
  background: linear-gradient(
    135deg,
    var(--primary-color) 50%,
    white 50%
  ) !important;
}

.selection-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.selection-help {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
  border: 1px solid #dee2e6;
}
.btn-export {
  background-color: #28a745;
}

.btn-export:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.multi-select-calendar .calendar-container {
  display: flex;
  gap: 2px;
  align-items: flex-start;
  position: relative;
  overflow: visible !important;
}

.multi-select-calendar .calendar-sidebar {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0 !important;
}

.multi-select-calendar .calendar-week-info {
  min-height: 100px !important;
  height: 100px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 8px 5px;
  text-align: center;
}

.multi-select-calendar .calendar-day {
  min-height: 100px !important;
  height: 100px !important;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}

.multi-select-calendar .calendar-day.selected {
  z-index: 2;
}

.multi-select-calendar .calendar-week-info[style*="visibility: hidden"] {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 60px !important;
  height: 60px !important;
}

.multi-select-calendar .calendar-day-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.multi-select-calendar .calendar-grid,
.multi-select-calendar .calendar-sidebar {
  align-items: stretch;
}
.calendar-day.holiday {
  background: linear-gradient(
    135deg,
    #f70000 0%,
    #f77700 50%,
    #0004ff 100%
  ) !important;
  color: white !important;
  font-weight: bold;
  position: relative;
}

/* Menší tooltip pro státní svátky v kalendáři zadání dovolené */
.multi-select-calendar .tooltiptext {
  width: 180px;
  font-size: 12px;
  padding: 8px;
  bottom: 110%;
}

/* Speciálně pro tooltipy svátků v multi-select kalendáři */
.multi-select-calendar .calendar-day.holiday .tooltiptext {
  background-color: #ff6b6b00;
  border-color: #ff0000;
  color: white;
  font-weight: normal;
}

/* Zmenšení ikonky svátku */
.multi-select-calendar .calendar-day.holiday::after {
  content: "🎉";
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
}

/* Kompaktnější zobrazení pro multi-select kalendář */
.multi-select-calendar .calendar-day.holiday {
  background: linear-gradient(
    135deg,
    #f70000 0%,
    #f77700 50%,
    #0004ff 100%
  ) !important;
  color: white !important;
  font-weight: bold;
  position: relative;
}

.multi-select-calendar .calendar-day.holiday .calendar-day-number {
  color: white !important;
  font-weight: bold;
  font-size: 12px;
}

/* STYLY PRO SBALOVÁNÍ */
.month-content.collapsed {
  display: none;
}

.month-content:not(.collapsed) {
  display: block;
}

.collapse-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.collapse-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Barvy pro různé typy absencí */
.absence-nahradni-volno {
  background-color: #3e8bfd !important;
  border-left: 4px solid #3e8bfd !important;
}

.absence-lekar {
  background-color: #ff9800 !important;
  border-left: 4px solid #ff9800 !important;
}

.absence-nahradni-volno td {
  color: #000000 !important;
  font-weight: bold !important;
}

.absence-lekar td {
  color: #000000 !important;
  font-weight: bold !important;
}

/* Legenda pro typy absencí */
.absence-legend {
  margin-top: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.absence-legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.absence-legend-color {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  margin-right: 10px;
  border: 1px solid #000;
}

.absence-legend-text {
  font-size: 14px;
}

/* Styly pro menší obrazovky */
@media (max-width: 768px) {
  .container {
    max-width: 95%;
    padding: 15px;
    min-height: auto;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 14px;
  }

  .actions {
    flex-direction: column;
    gap: 5px;
  }

  .calendar-day {
    position: relative;
    z-index: 1;
    min-height: 80px;
  }

  .vacation-type {
    flex-direction: column;
    gap: 8px;
  }

  .employee-name-with-checkbox {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .form-actions {
    flex-direction: column;
  }

  .date-range-picker {
    flex-direction: column;
  }

  .calendar-container {
    flex-direction: column;
  }

  .calendar-sidebar {
    width: 100%;
    flex-direction: row;
    margin-top: 0 !important;
    margin-bottom: 10px;
  }

  .calendar-week-info {
    flex: 1;
    height: 60px !important;
    min-height: 60px !important;
    padding: 5px 3px;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 20px;
  }

  .bulk-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bulk-actions-left,
  .bulk-actions-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .employee-search-container {
    max-width: 100%;
  }

  .tooltip .tooltiptext {
    width: 200px;
    font-size: 12px;
  }

  .multi-select-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .selection-actions {
    flex-direction: column;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px 15px;
  }

  .calendar-grid {
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
    padding: 10px;
    border-radius: 12px;
    min-height: auto;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .section {
    padding: 15px;
    margin-bottom: 20px;
  }

  button {
    padding: 10px 15px;
    font-size: 13px;
  }

  .calendar-day {
    min-height: 70px;
    padding: 3px;
  }

  .calendar-day-number {
    font-size: 14px;
  }

  .calendar-vacation-count {
    font-size: 10px;
  }

  .month-header {
    padding: 12px;
    font-size: 16px;
  }
  .btn-export {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
  }

  .btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  }
  /* Kombinace svátku a dovolené */
  .calendar-day.holiday.vacation-low,
  .calendar-day.holiday.vacation-medium,
  .calendar-day.holiday.vacation-high {
    /* Zachovat gradient svátku, ale přidat průhlednou vrstvu dovolené */
    background: linear-gradient(135deg, #f70000 0%, #f77700 50%, #0004ff 100%),
      var(--overlay-color, transparent) !important;
    background-blend-mode: overlay !important;
  }

  .calendar-day.holiday.vacation-low {
    --overlay-color: rgba(158, 255, 158, 0.3);
  }

  .calendar-day.holiday.vacation-medium {
    --overlay-color: rgba(255, 245, 100, 0.3);
  }

  .calendar-day.holiday.vacation-high {
    --overlay-color: rgba(255, 109, 124, 0.3);
  }

  .calendar-grid {
    border-width: 1px;
  }
} /* STYLY PRO LOGIN MODAL */
#loginModal .modal-content {
  max-width: 400px;
  margin: 10% auto;
}

.login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 8px 8px 0 0;
}

.login-body {
  padding: 20px;
}

/* EXTRA KOMPAKTNÍ USER PANEL */
.user-panel {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 47, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid #5a6fd8;
  font-weight: 600;
  font-size: 11px;
  max-width: 120px;
}

.user-email {
  font-weight: 600;
  color: white;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #e74c3c;
  border: none;
  padding: 1px 4px;
  font-size: 9px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 700;
  min-width: 35px;
}

.logout-btn:hover {
  background: white;
  color: #c0392b;
}
/* UPRAVTE skeleton loading styly - kompletně skryté */
.skeleton-loading {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.skeleton-loading::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: transparent !important;
  animation: none !important; /* Vypnout animaci */
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.calendar-skeleton {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: transparent !important;
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0 !important; /* Kompletně průhledné */
  visibility: hidden !important; /* Skryté */
}

.calendar-day-skeleton {
  background-color: transparent !important;
  min-height: 100px;
  position: relative;
  border: none !important;
}

.calendar-sidebar-skeleton {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: transparent !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.calendar-week-skeleton {
  background-color: transparent !important;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none !important;
  border-radius: 6px;
  opacity: 0 !important;
}

/* Skrýt hlavičky dnů v skeletonu */
.calendar-day-header.skeleton-loading {
  border: none !important;
  background: transparent !important;
  opacity: 0 !important;
}
/* PŘIDAT - oprava pro skeleton loading */
#calendarSkeleton,
#calendarSidebarSkeleton {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.calendar-container {
  position: relative;
  min-height: 600px;
}

/* Přechody pro plynulé zobrazení */
.calendar-grid,
.calendar-sidebar,
#calendarSkeleton,
#calendarSidebarSkeleton {
  transition: opacity 0.3s ease;
}

.calendar-grid[style*="display: grid"],
.calendar-sidebar[style*="display: flex"] {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* PULSOVÁNÍ PRO NULOVOU DOVOLENOU - OPRAVENÁ VERZE */
@keyframes pulse-red {
  0% {
    background-color: #ffebee;
    box-shadow: inset 0 0 0 0 rgb(255, 25, 0);
  }
  50% {
    background-color: #ffcdd2;
    box-shadow: inset 0 0 0 10px rgb(255, 25, 0);
  }
  100% {
    background-color: #ffebee;
    box-shadow: inset 0 0 0 0 rgb(224, 54, 35);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgb(97, 10, 0);
  }
  70% {
    box-shadow: 0 0 0 8px rgb(172, 17, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(255, 79, 60);
  }
}

.vacation-zero {
  animation: pulse-red 2s infinite ease-in-out !important;
  border-left: 4px solid #ff1900 !important;
}

.vacation-zero:hover {
  animation: pulse-red 1s infinite ease-in-out !important;
  background-color: #ee84fc8f !important;
}

/* Speciální styly pro seznam zaměstnanců */
.employee-item.vacation-zero {
  animation: pulse-red 2s infinite ease-in-out !important;
  border-left: 4px solid #ff1900 !important;
  margin: 2px 0;
  padding: 8px 12px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* Glow efekt kolem celého řádku - bez ovlivnění layoutu */
.employee-item.vacation-zero::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 6px;
  animation: pulse-glow 2s infinite !important;
  pointer-events: none;
  z-index: -1;
}

/* Zvýraznění textu */
.vacation-zero td {
  font-weight: bold !important;
  color: #ff1900 !important;
  position: static !important; /* Zajistit normální pozicování */
}

.employee-item.vacation-zero span {
  font-weight: bold !important;
  color: #ff1900 !important;
  position: relative;
  z-index: 1;
}

/* Oprava pro tabulky - zajistit správné zobrazení */
.vacation-zero {
  position: static !important;
}

.vacation-zero td {
  position: static !important;
  background: transparent !important;
}
/* Přidejte do CSS stylů */
.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  margin-left: 10px;
}

.type-kmen {
  background-color: #3498db;
  color: white;
}

.type-agentura {
  background-color: #9b59b6;
  color: white;
}
/* STYLY PRO JMÉNO AUTORA */
.author-badge {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(102, 126, 234, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  z-index: 1000;
  border: 1px solid #5a6fd8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
/* STYLY PRO PŘEHLED DOVOLENÉ */
#summaryTable {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#summaryTable th {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

#summaryTable th:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1c6ea4 100%);
}

#summaryTable td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

#summaryTable tr:hover {
  background-color: #f8f9fa;
}

#summaryTable tr.vacation-zero {
  animation: pulse-red 2s infinite ease-in-out;
  background-color: #fff5f5;
}

#summaryTable tr.vacation-zero td {
  font-weight: bold;
  color: #e74c3c;
}

/* Typ badge */
.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
}

.type-kmen {
  background-color: #3498db;
  color: white;
}

.type-agentura {
  background-color: #9b59b6;
  color: white;
}

/* Tlačítka v akcích */
#summaryTable .actions {
  white-space: nowrap;
}

#summaryTable .actions button {
  padding: 8px 12px;
  font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
  #summaryTable {
    display: block;
    overflow-x: auto;
  }

  #summaryTable th,
  #summaryTable td {
    padding: 10px 8px;
    font-size: 14px;
  }

  .type-badge {
    font-size: 0.7em;
    padding: 3px 6px;
  }
}
/* Styly pro modal dnů dovolené */
#vacationDaysModal .modal-content {
  max-width: 450px;
  margin: 10% auto;
}

#vacationDaysModal .form-group {
  margin-bottom: 15px;
}

#vacationDaysModal input[disabled] {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

#vacationDaysModal input[type="number"] {
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
}

#vacationDaysModal input[type="number"]:focus {
  border-color: #3498db;
  outline: none;
}

#vacationDaysModal small {
  font-size: 12px;
  line-height: 1.4;
}
/* Přidat pro velmi malé obrazovky */
@media (max-width: 360px) {
  .container {
    max-width: 100%;
    padding: 5px;
  }

  .calendar-day {
    min-height: 60px !important;
    padding: 2px;
    font-size: 12px;
  }

  button {
    padding: 8px 12px;
    font-size: 12px;
  }
}
/* STYLY PRO OVERLAY ALERT (UPROSTRED STRANKY) */
.alert-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  min-width: 300px;
  max-width: 80%;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  animation: alertSlideIn 0.3s ease-out, alertFadeOut 0.3s ease-in 2.7s;
  animation-fill-mode: forwards;
  border: 2px solid transparent;
  pointer-events: none;
}

.alert-overlay.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-overlay.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-overlay.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.alert-overlay.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes alertFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Zajisti, ze overlay bude nad vsim */
.alert-overlay * {
  pointer-events: auto;
}

/* Responsive design */
@media (max-width: 768px) {
  .alert-overlay {
    min-width: 250px;
    padding: 15px 20px;
    font-size: 14px;
  }
}
