/* Fő container, amely kitölti az egész képernyőn a helyet */
.page-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden !important; /* Görgetés kikapcsolása */
  height: calc(100vh - 80px); /* Teljes képernyő magasság - fejléc */
}

/* A .row megfelelően töltse ki a szülőt */
.page-body .row {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* A kártya legyen teljes magasságban */
.page-body .row .card {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden !important; /* Görgetés kikapcsolása */
  margin-bottom: 0; /* Nincs felesleges margó */
}

/* A .page-header-breadcrumb is kitölti a helyet */
.page-header-breadcrumb {
  flex-grow: 1;
  overflow: hidden !important; /* Biztosítja, hogy a belső tartalom ne lépjen túl */
  display: flex;
  flex-direction: column;
}

/* Az #dynamic-content automatikusan töltse ki a helyet */
#dynamic-content {
  flex-grow: 1;
  overflow: hidden !important; /* Ha belső görgetés kellene, de kikapcsolhatod */
  background-color: #e8f0e8 !important;
  height: 100%;
}

.flatpickr-input[readonly] {
  max-height: none !important;
  height: 42px !important;
  font-size: 1rem !important;
  padding: 0.375rem 0.75rem !important;
}

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

:root {
  --container-max-width: clamp(1200px, 90vw, 1650px);
}

.new-custom-container {
  height: 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-width: 1200px; /* Ne legyen kisebb ennél */
  max-width: 100%; /* Ne legyen szélesebb a szülőjénél */
  overflow-x: auto; /* Engedélyezi a vízszintes görgetést, ha szükséges */
  white-space: nowrap; /* Megakadályozza a sortörést */
  background-color: #e8f0e8 !important;
  border: rgb(212, 133, 14) solid 1px;
  padding: 2px;
  border-radius: 8px;
  background-color: #e8f0e8;
  box-shadow: 0px 0px 10px #888888;
}

@media (max-width: 768px) {
  .new-custom-container {
    min-width: calc(100% - 40px); /* A szélesség 100% + a padding */
    width: 100%; /* A képernyőhöz igazodik */
    overflow-x: auto; /* Engedi a görgetést */
  }

  .export-button {
    display: none !important;
  }
}

.pcoded-inner-content {
  background-color: #e8f0e8 !important;
}

.w_100 {
  width: 100% !important;
}

.h_100-10 {
  height: calc(100% - 10px) !important;
}

.search-box {
  height: 35px;
  font-size: 14px;
  border-radius: 6px !important;
  border: 1px solid #23680d !important;
}

.date-picker custom-date-picker {
  height: 40px;
  font-size: 14px;
}

.user_name_display {
  font-weight: bold;
  font-size: 16px;
  color: #2b2d42; /* Sötétkék szín */
  background-color: #e0f7fa; /* Világoskék háttér */
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-right: 10px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.btn-primary {
  background-color: #506751 !important;
}

.btn-primary:hover {
  background-color: #5aad5a;
  border-color: #5aad5a !important;
}

.dynamic-content {
  margin-top: 5px;
}

.tabulator {
  font-size: 16px !important;
}

.tabulator .tabulator-header input {
  border-radius: 6px !important;
  padding: 4px 8px !important;
  border: 1px solid #ced4da;
  font-size: 14px;
}
.tabulator .tabulator-header input:focus {
  outline: none;
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.custom-date-picker {
  border-radius: 6px !important;
  padding: 4px 8px !important;
  border: 1px solid #23680d !important;
  font-size: 16px;
  height: 35px !important;
}

.custom-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem !important;
  width: 80%;
  text-align: left;
  color: #333;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-radius: 0.25rem !important;
  border: 2px solid rgba(0, 0, 0, 0.125) !important;
  margin-left: 1rem !important;
  background-color: rgba(0, 0, 0, 0.075);
}

.custom-btn:hover {
  background-color: rgba(0, 0, 0, 0.135);
  border-color: rgba(0, 0, 0, 0.125); /* hover-re erősebb keret */
}

.mo-input-like {
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.mo-input-like:focus {
  outline: 0;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tabulator-tooltip {
  z-index: 2000;
} /* legyen magasabb, mint a modal (Bootstrap: 1050+) */

#memberOrganizationModal .modal-content {
  width: auto;
}
#memberOrganizationModal .modal-body {
  padding: 0.75rem;
}

/* opcionális: a Tabulator konténer kapjon teljes szélességet */
#memberOrganizationTable {
  width: 100%;
}

#memberOrganizationModal .tabulator-tableholder {
  overflow-x: hidden;
}

/* A cellán belüli wrapper – 100% széles/magas, flex középre */
.cell-actions {
  display: flex;
  align-items: center; /* függőleges közép az ikon/gomb számára */
  justify-content: center; /* vízszintes közép */
  gap: 6px; /* gombok közti térköz */
  width: 100%;
  height: 100%;
}

/* Minimalista gomb – flex, hogy az ikon tényleg középen legyen */
.custom-tabulator-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* Ikon méret/alap szín */
.custom-tabulator-btn i {
  font-size: 18px;
  line-height: 1; /* pontos közép */
  color: black;
}

/* Hover effekt */
.custom-tabulator-btn:hover i {
  color: #007bff;
}

/* Teljes szélesség, balról jobbra, egységes eltartással */
.custom-header {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px; /* sor- és oszlop-köz */
  padding: 2px;
}

/* Gomb: kompakt, fix helyigény */
.export-item {
  flex: 0 0 auto;
}

/* Kereső: töltse ki a maradék helyet (maximális szélesség) */
.search-container {
  flex: 1 1 480px; /* nőhet-csökkenhet, 480px-ről indul */
  max-width: 250px;
}
.search-box {
  width: 100%;
}

/* Dátumok: kompakt blokkok, balról jobbra, saját hézaggal */
.date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

/* Dátummezők szélessége (ne nyúljanak a végtelenségig) */
.date-row .flatpickr {
  flex: 0 0 200px;
} /* kb. 200px szélesek */

/* Kis kijelzőn rugalmasabb törés */
@media (max-width: 576px) {
  .search-container {
    flex: 1 1 100%;
  }
  .date-row {
    flex: 1 1 100%;
  }
  .date-row .flatpickr {
    flex: 1 1 160px;
  }
}


.pc-header .header-wrapper {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  grid-template-areas: "left center right";
  align-items: center;
  width: 100%;
  gap: 0;
}
.header-left {
  grid-area: left;
  justify-self: start;
}
.header-center {
  grid-area: center;
  justify-self: center;
  width: 100%;
  border: 3px solid #95a08f;
  border-radius: 12px;
  position: relative;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  box-shadow:
    0 0 0 4px rgba(149, 160, 143, 0.18),
    0 0 0 10px rgba(149, 160, 143, 0.06),
    inset 0 0 0 4px rgba(149, 160, 143, 0.18),
    inset 0 0 0 10px rgba(149, 160, 143, 0.06);
}

.header-right {
  grid-area: right;
  justify-self: end;
}

.header-center-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* ha balra kell: flex-start */
  gap: 0.5rem;
  min-height: 48px;
  width: 100%;
  text-align: center;
  flex-wrap: wrap;
}
.center-labels {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.center-labels .label {
  font-weight: 600;
}

/* listák vízszintesen */
.header-left ul,
.header-right ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* mobil töréspont */
@media (max-width: 768px) {
  .pc-header .header-wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "left right";
  }
  .header-center-inner {
    justify-content: center;
  }
}

.center-labels .label {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0; /* nincs „chip” hatás */
  color: inherit; /* örökli a színt a témától */
  font-size: clamp(1.125rem, 2.8vw, 1.5rem); /* ~18–24px */
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* a wrap foglalja ki a teljes helyet */
.logo-wrap {
  box-sizing: border-box; /* a border ne tolja szét a layert */
  border: 2px solid #e5e7eb; /* halvány szürke keret */
  border-radius: 12px; /* lekerekített sarkok */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* finom árnyék */
  background: #fff; /* kontrasztos háttér a képhez */
  overflow: hidden; /* a kép vágódjon a sarkoknál is */
}

/* a kép tényleg kitöltse a wrapet */
.logo-wrap img {
  display: block; /* inline rés eltűnik */
  width: 100%;
  height: 100%;
  object-fit: cover; /* kitölt, ha kell vág */
  object-position: center;
}

.ts-dropdown {
  z-index: 9999;
}

.ts-dropdown .option {
  display: block;
  height: auto;
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

.ts-dropdown .option,
.ts-dropdown .optgroup-header {
  color: inherit;
}

/* ===== KÜLSŐ (Bootstrap) keret eltüntetése ===== */
.ts-wrapper.form-control {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== BELSŐ Tom Select mező ===== */
.ts-wrapper.single .ts-control {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  min-height: calc(1.5em + 0.75rem + 2px);
  box-shadow: none;
}

/* input belül */
.ts-wrapper.single .ts-control input {
  border: none;
  box-shadow: none;
}

/* Kiválasztott szöveg */
.ts-wrapper.single .ts-control .item {
  line-height: normal;
  font-size: 16px;
  color: #212529;
  padding-left: 2px;
}

/* Nyíl ikon */
.ts-wrapper.single .ts-control > .ts-dropdown-arrow {
  align-self: center;
  margin-left: auto;
}

/* ===== VALIDÁCIÓ ===== */
.ts-wrapper.single .ts-control.not-filled {
  border: 2px solid #dc3545 !important;
}

.ts-wrapper.single .ts-control.filled {
  border: 2px solid #28a745 !important;
}

/* focus glow off */
.ts-wrapper.single .ts-control:focus-within {
  box-shadow: none !important;
}

/* Clear gomb elrejtése */
.ts-wrapper .remove {
  display: none !important;
}

.mobile-hide { display: block; }

@media (max-width: 768px) {   /* md alatt */
  .mobile-hide { display: none !important; }
}