@charset "UTF-8";
/*--- Fonts ---*/
/* Fonty jsou načteny přes Google Fonts (standardní Tailwind/Flowbite řešení) */
/* Inter font je definován v tailwind.config.js a používá se přes třídu font-sans */
/* Fonty se načítají v header.tailwind.tpl přes Google Fonts CDN */

/*--- X-Editable Plugin Styles ---*/
/* Minimální styly pro x-editable JavaScript plugin - nelze nahradit Tailwind */
/* X-editable plugin umožňuje inline editaci - kliknutím na element se zobrazí editor */

/* Editable element - základní styly */
.editable {
  cursor: pointer;
  position: relative;
}

.editable:hover {
  background-color: rgba(24, 64, 218, 0.05);
  border-radius: 4px;
}

/* Editable input wrapper - input-style editable */
.editable-input-wrapper {
  cursor: pointer;
}

.editable-input-wrapper:hover .editable-value {
  border-color: #1840DA;
}

.editable-input-wrapper .editable-value {
  cursor: pointer;
  transition: border-color 0.2s;
}

.editable-input-wrapper .editable-edit-btn {
  pointer-events: auto;
  z-index: 1;
}

.editable i {
  color: #52525C;
  font-size: 0.875em;
  transition: color 0.2s;
}

/* Don't apply hover background to input-wrapper */
.editable-input-wrapper:hover {
  background-color: transparent;
}

/* Style dynamically created x-editable form inside input wrapper */
.editable-container.editable-inline {
  width: 100%;
  max-width: 36rem; /* max-w-xl */
}

.editable-container.editable-inline .editableform {
  width: 100%;
  max-width: 36rem;
}

.editable-container.editable-inline .editableform .control-group {
  width: 100%;
}

.editable-container.editable-inline .editableform .control-group > div:first-child {
  width: 100%;
}

.editable-container.editable-inline .editableform .editable-input {
  width: auto;
}

.editable-container.editable-inline .editableform .form-control {
  width: 100%;
  min-width: 60px;
}

.editable-container.editable-inline .editableform .year.form-control {
  min-width: 80px;
}

/* Editable form - formulář, který se zobrazí při editaci */
.editableform {
  margin-bottom: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.editableform .control-group {
  z-index: 2;
  margin-bottom: 0;
  line-height: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.editableform .form-control {
  width: auto;
  min-width: 200px;
}

.editableform .control-group input,
.editableform .control-group textarea,
.editableform .control-group select {
  background-color: #FCFCFD;
  border: 1px solid #E9EAEB;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.editableform .control-group input:focus,
.editableform .control-group textarea:focus,
.editableform .control-group select:focus {
  outline: none;
  border-color: #1840DA;
  box-shadow: 0 0 0 3px rgba(24, 64, 218, 0.1);
}

/* Editable input wrapper */
.editable-input {
  vertical-align: top;
  display: inline-block;
  width: auto;
  white-space: normal;
}

/* Wrapper pro input a tlačítka - zobrazit vedle sebe */
.editableform .control-group > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
}

/* Textarea layout - davani buttons pod textarea */

.editableform .editable-textarea-layout {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.editableform .editable-textarea-layout .editable-input,
.editableform .editable-textarea-layout .editable-input textarea {
  width: 100%;
}

.editableform .editable-textarea-layout .editable-buttons {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
}

.editableform .editable-textarea-layout .editable-buttons .editable-submit,
.editableform .editable-textarea-layout .editable-buttons .editable-cancel {
  margin-left: 0 !important;
}

.moveIcon,
.moveIcon-handle {
  cursor: grab !important;
}

.moveIcon:active,
.moveIcon-handle:active {
  cursor: grabbing !important;
}

.moveIcon-handle {
  float: none !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@supports selector(:has(*)) {
  .editableform .control-group > div:has(.editable-input textarea) {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .editableform .control-group > div:has(.editable-input textarea) .editable-input,
  .editableform .control-group > div:has(.editable-input textarea) .editable-input textarea {
    width: 100%;
  }

  .editableform .control-group > div:has(.editable-input textarea) .editable-buttons {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 0;
  }

  .editableform .control-group > div:has(.editable-input textarea) .editable-buttons .editable-submit,
  .editableform .control-group > div:has(.editable-input textarea) .editable-buttons .editable-cancel {
    margin-left: 0 !important;
  }
}

/* Editable buttons - tlačítka Uložit/Zrušit */
.editable-buttons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  margin-top: 4px;
  flex-shrink: 0;
}

.editable-buttons button {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 70px;
  text-align: center;
}

/* Override pro čtvercová tlačítka - submit a cancel */
.editable-buttons button.editable-submit,
.editable-buttons button.editable-cancel {
  min-width: 30px !important;
}

.editable-buttons .editable-submit {
  background-color: #1840DA !important;
  color: white !important;
  border-color: #1840DA !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 5px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  font-size: 14px;
  margin-left: 8px !important;
}

.editable-buttons .editable-submit:hover {
  background-color: #1333ae;
  border-color: #1333ae;
}

.editable-buttons .editable-submit i {
  font-size: 16px;
  color: white;
  line-height: 1;
}

.editable-buttons .editable-cancel {
  background-color: white !important;
  color: #1F2937 !important;
  border: 1px solid #9CA3AF !important;
  margin-left: 8px !important;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 5px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  font-size: 14px;
}

.editable-buttons .editable-cancel i {
  font-size: 16px !important;
  color: #1F2937 !important;
  line-height: 1;
  display: inline-block !important;
}


.editable-buttons .editable-cancel:hover {
  background-color: #F3F4F6;
  border-color: #6B7280;
  color: #111827;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.editable-buttons .editable-cancel:focus {
  outline: none;
  border-color: #4B5563;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
  color: #111827;
}

.editable-buttons .editable-cancel:active {
  background-color: #E5E7EB;
  border-color: #4B5563;
}


/* Editable click - styl pro klikatelný element */
.editable-click,
a.editable-click,
a.editable-click:hover {
  text-decoration: none;
  border-bottom: none;
}

/* Editable error - chybové hlášky */
.editableform .control-group .editable-error-block {
  font-size: 14px;
  color: #DC2626;
  margin-top: 4px;
  margin-left: 0;
  width: 100%;
  white-space: normal;
  display: block;
}

.editable-error {
  color: #DC2626;
}

/* Editable empty - prázdný stav */
.editable-empty,
.editable-empty:hover,
.editable-empty:focus {
  font-style: italic;
  color: #DC2626;
  text-decoration: none;
}

/* Editable disabled - zakázaný stav */
.editable-click.editable-disabled,
a.editable-click.editable-disabled,
a.editable-click.editable-disabled:hover {
  color: #9CA3AF;
  cursor: not-allowed;
  border-bottom: none;
  opacity: 0.6;
}

/* Editable container - wrapper pro editable form */
.editable-container.editable-inline {
  display: inline-block;
  vertical-align: middle;
}

/* --- Flowbite Tabs (global normalization to styleguide look) --- */
[data-tabs-toggle] [data-tabs-target] {
  border-color: transparent;
  color: #6B7280; /* text-gray-500 */
  background-color: transparent;
}

[data-tabs-toggle] [data-tabs-target].active,
[data-tabs-toggle] [data-tabs-target][aria-selected="true"] {
  border-color: #1840DA; /* primary-500 */
  color: #1840DA;
  background-color: transparent;
  box-shadow: none;
}

[data-tabs-toggle] [data-tabs-target]:hover {
  color: #1F2937; /* text-gray-800 */
  border-color: #D1D5DB; /* border-gray-300 */
}


.editable-container.editable-popup {
  max-width: none !important;
}

/* Form control editable - kombinace s form-control */
.form-control.editable {
  height: auto;
  border: 1px solid #E9EAEB;
}

/* Loading state */
.editableform-loading {
  background: url('../js/x-editable-1.5.1/bootstrap3-editable/img/loading.gif') center center no-repeat;
  height: 25px;
  width: auto;
  min-width: 25px;
}

/* Buttons margin fix */
.btn + .btn.no-margin-left {
  margin-left: 0px;
}

/*--- Tailwind Button Override ---*/
/* Zajištění, že Tailwind utility třídy pro pozadí tlačítek fungují správně */
/* Tailwind resetuje button na transparent (řádek 352 v tailwind.css), takže musíme zajistit, že utility třídy mají přednost */
/* Používáme selektor, který cílí na tlačítka s Tailwind utility třídami pro pozadí */
button.bg-primary-500 {
  background-color: #1840DA !important;
}

button.bg-primary-600:hover {
  background-color: #1333ae !important;
}

button.bg-white {
  background-color: #ffffff !important;
}

button.bg-gray-50 {
  background-color: #F9FAFB !important;
}

button.bg-red-500 {
  background-color: #EF4444 !important;
}

button.bg-yellow-500 {
  background-color: #EAB308 !important;
}

button.bg-green-500 {
  background-color: #22C55E !important;
}

/* Zajištění správné barvy textu pro tlačítka s Tailwind třídami */
button.text-white {
  color: #ffffff !important;
}

button.text-gray-700 {
  color: #374151 !important;
}

button.text-primary-500 {
  color: #1840DA !important;
}

/* editable input different width by element - specifické pro různé moduly */
#eventDetail .form-control.input-sm {
  width: 350px;
}

#programModul .form-control.input-sm {
  width: 300px;
}

#localityModule .form-control.input-sm {
  width: 300px;
}

#invitationModule .form-control.input-sm {
  width: 300px;
}

/*--- Event Module Selection ---*/
/* Specifické styly pro výběr modulů - komplexní komponenta */
div[rel=se-event-add] .event-module label {
  cursor: pointer;
}

div[rel=se-event-add] .event-module label.checked {
  border-color: rgb(59 130 246) !important;
}


/*--- Navigation Container Override ---*/
/* Override pro Tailwind navigaci - dočasné, dokud se nepřesune kompletně na Tailwind */
#navigationContainerTailwind {
  display: flex !important;
}

/*--- SVG ---*/
svg {
  max-width: 100% !important;
}


.select2-flowbite-container .select2-selection {
  min-height: 42px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.75rem !important;
  background-color: #f9fafb !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  color: #111827 !important;
  transition: all 0.2s !important;
}

.select2-flowbite-container.select2-container--focus .select2-selection,
.select2-flowbite-container.select2-container--open .select2-selection {
  border-color: #1840DA !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
}

.select2-flowbite-container .select2-selection__choice {
  background-color: #1840DA !important;
  border: 1px solid #1840DA !important;
  color: #ffffff !important;
  border-radius: 0.5rem !important;
  padding: 0.25rem 0.5rem !important;
  margin: 0.125rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

.select2-flowbite-container .select2-selection__choice__remove {
  color: #ffffff !important;
  margin-right: 0.25rem !important;
  font-weight: bold !important;
}

.select2-flowbite-container .select2-selection__choice__remove:hover {
  color: #e5e7eb !important;
}

.select2-flowbite-container .select2-selection__placeholder {
  color: #6b7280 !important;
}

.select2-flowbite-dropdown {
  border: 1px solid #d1d5db !important;
  border-radius: 0.75rem !important ;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  margin-top: 0.25rem !important;
  background-color: #ffffff !important;
}

.select2-flowbite-dropdown .select2-search__field {
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  margin: 0.5rem !important;
  width: calc(100% - 1rem) !important;
}

.select2-flowbite-dropdown .select2-results__option {
  padding: 0.75rem !important;
  font-size: 0.875rem !important;
  color: #111827 !important;
}

.select2-flowbite-dropdown .select2-results__option--highlighted {
  background-color: #eff6ff !important;
  color: #1e40af !important;
}

.select2-flowbite-dropdown .select2-results__option[aria-selected="true"] {
  background-color: #1840DA !important;
  color: #ffffff !important;
}