/* ----- LEGEND BADGE-EK (javított betűszínnel) ----- */
#legend-description {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.8rem;
}

#legend-description .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff !important;
}

/* Háttérszínek */
#legend-description .legend-item.text-success {
  background-color: #198754;
}

#legend-description .legend-item.text-warning {
  background-color: #ffc107;
  color: #05284b !important;
}

#legend-description .legend-item.text-danger {
  background-color: #dc3545;
}

/* Ikonok */
#legend-description .legend-item i {
  color: inherit !important;
  font-size: 1.1rem;
}


/* ----- TÁBLÁZAT FEJLÉC (HÉT NAPJAI) ----- */
table thead th,
table tr:first-of-type td[style*="background"],
.own-table {
  background-color: #2c577b !important;
  color: #ffffff !important;
  text-align: center;
  font-weight: 600;
  border-color: #ffffff33;
}


/* =========================================================
   INPUTOK – ERŐSEBB LÁTHATÓSÁG (GLOBAL FIX)
   ========================================================= */

.form-control,
.form-select,
textarea.form-control {
  border: 2px solid #b8c2cc !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: #2c577b !important;
  box-shadow: 0 0 0 0.18rem rgba(44, 87, 123, 0.25) !important;
  background-color: #ffffff !important;
}

.form-check-input {
  border: 2px solid #7b8794 !important;
}

.news-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.news-badge {
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fff;
}

/* ARCHÍV */
.badge-archive {
  background: #6c757d;
}



/* INAKTÍV */
.badge-inactive {
  background: #dc3545;
}

/* FELTÖLTÉS ALATT */
.badge-upload {
  background: #6c757d;
}


.news-badge {
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}

/* AKTÍV (ZÖLD) */
.badge-active {
  background: #198754;
}

/* INAKTÍV (PIROS) */
.badge-inactive {
  background: #dc3545;
}

/* FELTÖLTÉS ALATT (SZÜRKE) */
.badge-upload {
  background: #6c757d;
}

/* ARCHÍV */
.badge-archive {
  background: #6c757d;
}


/* KLIENS - kék */
.badge-client {
  background: #0d6efd;
}

/* SZAKEMBER - türkiz */
.badge-expert {
  background: #20c997;
}

/* SZAKMAI VEZETŐ - narancs */
.badge-manager {
  background: #fd7e14;
}

/* FENNTARTÓ - lila */
.badge-maintainer {
  background: #6f42c1;
}



.inactive-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: #fff;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* FONTOS - PIROS */
.priority-high {
  background: #f8d7da;
  border-color: #842029 !important;
}

.priority-high .priority-text {
  color: #842029;
}

/* KÖZEPES - SÁRGA */
.priority-medium {
  background: #fff3cd;
  border-color: #664d03 !important;
}

.priority-medium .priority-text {
  color: #664d03;
}

/* ÁLTALÁNOS - SZÜRKE */
.priority-low {
  background: #e9ecef;
  border-color: #495057 !important;
}

.priority-low .priority-text {
  color: #343a40;
}

.inactive-news {
  opacity: 0.8;
  filter: grayscale(30%);
}


/* =========================================================
   FORM SOROK – SZÜRKE HÁTTÉR
   ========================================================= */

#content .row.border-bottom:nth-child(even),
#content .row.g-0:nth-child(even) {
  background-color: #f4f6f8;
}

#content .row.g-0:hover {
  background-color: #eef2f6;
}


/* =========================================================
   ALAP FINOMHANGOLÁSOK
   ========================================================= */

#sidebar li {
  margin-bottom: 0.45rem;
}

#sidebar > nav > ul > li > a,
#sidebar > nav > ul > li > button,
#sidebar > nav > ul > li > button.btn.btn-link {
  font-size: 1rem;
  line-height: 1.25;
}

#sidebar .submenu a {
  font-size: 0.95rem;
  line-height: 1.25;
}

#content .widget {
  margin-bottom: 1.25rem;
}

#content .page-header h2,
#content .page-title {
  line-height: 1.2;
}

#content .content > div.border {
  background-color: #fff;
}

#content .border.border-2.rounded-2.overflow-hidden {
  border-color: #d1d9e0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}


/* =========================================================
   LOGIN PANEL
   ========================================================= */

.login-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.login-panel .panel-title {
  line-height: 1.2;
}

.login-panel .panel-body {
  width: 100%;
}

.login-panel .form-control {
  width: 100%;
}

.login-panel .btn.w-100,
.login-panel .btn.btn-lg.btn-primary.btn-block {
  width: 100%;
}


/* =========================================================
   HAMBURGER GOMB
   ========================================================= */

.sidebar-toggle-btn {
  display: none;
  border: 2px solid rgba(255,255,255,0.75);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.sidebar-toggle-btn:hover,
.sidebar-toggle-btn:focus {
  background: rgba(255,255,255,0.12);
  color: #fff;
}


/* =========================================================
   NAGY DESKTOP – menü szélesebb, content kisebb
   ========================================================= */

@media (min-width: 1400px) {

  .header-left,
  #sidebar {
    flex: 0 0 360px !important;
    max-width: 360px !important;
    width: 360px !important;
  }

  .header-right,
  #content {
    flex: 1 1 calc(100% - 360px) !important;
    max-width: calc(100% - 360px) !important;
    width: calc(100% - 360px) !important;
  }

  #sidebar {
    padding: 14px !important;
  }

  #content {
    padding: 1.5rem !important;
  }

  .header-right {
    padding: 16px 22px !important;
  }

  #sidebar > nav > ul > li > a,
  #sidebar > nav > ul > li > button,
  #sidebar > nav > ul > li > button.btn.btn-link {
    font-size: 1.06rem !important;
    padding: 0.75rem 0.95rem !important;
  }

  #sidebar .submenu a {
    font-size: 0.98rem !important;
    padding: 0.56rem 0.74rem !important;
  }

  #site-header h1 {
    font-size: 1.95rem !important;
    line-height: 1.2 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  #logo-image {
    max-width: 90px !important;
  }
}


/* =========================================================
   KÖZEPES DESKTOP / LAPTOP
   ========================================================= */

@media (min-width: 980px) and (max-width: 1399.98px) {

  .header-left,
  #sidebar {
    flex: 0 0 320px !important;
    max-width: 320px !important;
    width: 320px !important;
  }

  .header-right,
  #content {
    flex: 1 1 calc(100% - 320px) !important;
    max-width: calc(100% - 320px) !important;
    width: calc(100% - 320px) !important;
  }

  #sidebar {
    padding: 12px !important;
  }

  #content {
    padding: 1.25rem !important;
  }

  .header-right {
    padding: 12px 18px !important;
  }

  #site-header h1 {
    font-size: 1.55rem !important;
    line-height: 1.2 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  #logo-image {
    max-width: 82px !important;
  }

  .widget {
    padding: 1rem 1.1rem !important;
    margin-bottom: 1.25rem !important;
  }

  #content .page-header h2,
  #content .page-title {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
  }

  #content h3.h5,
  #content h4.h5 {
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
  }

  #content h4.h6 {
    font-size: 1rem !important;
  }

  #content .content.mt-4 {
    margin-top: 1rem !important;
  }

  #content .content.mt-3 {
    margin-top: 0.85rem !important;
  }

  #content .border.border-2.rounded-2.overflow-hidden.p-3 {
    padding: 1rem !important;
  }

  #content p,
  #content li,
  #content td,
  #content th,
  #content label,
  #content .form-control,
  #content .form-select,
  #content .page-link,
  #content .btn {
    font-size: 0.96rem !important;
  }

  #content .btn {
    padding: 0.45rem 0.8rem !important;
    line-height: 1.25 !important;
    font-size: 0.98rem !important;
  }

  .lser-help-btn {
    min-width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }

  .lser-help-btn i {
    font-size: 18px !important;
  }

  #content .form-control,
  #content .form-select {
    min-height: 40px !important;
    padding: 0.45rem 0.75rem !important;
  }

  .lser-table th,
  .lser-table td,
  .table th,
  .table td {
    padding: 0.6rem 0.55rem !important;
  }

  .table-wrap {
    border-width: 1px !important;
  }

  .pagination-wrap {
    margin-top: 0.75rem !important;
  }

  .pagination .page-link {
    padding: 0.4rem 0.7rem !important;
  }
}




/* =========================================================
   700 ALATT – hamburgeres mód
   ========================================================= */

@media (max-width: 979.98px) {

  #site-header .row {
    display: flex !important;
    flex-direction: column !important;
  }

  .header-left,
  .header-right {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .header-left {
    min-height: 96px;
    justify-content: center !important;
  }

  .header-right {
    padding: 1rem !important;
    justify-content: center !important;
  }

  #site-header h1 {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #logo-image {
    max-width: 90px !important;
  }

  .sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #main-layout,
  #main-layout > .row {
    display: block !important;
  }

  #sidebar {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    min-height: auto !important;
  }

  #sidebar.sidebar-open {
    display: block !important;
  }

  #content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
  }

  .widget {
    padding: 1rem !important;
  }

  #content .page-header h2,
  #content .page-title {
    font-size: 1.55rem !important;
    margin-bottom: 0.85rem !important;
  }

  #content h3.h5,
  #content h4.h5 {
    font-size: 1.08rem !important;
  }

  #content .border.border-2.rounded-2.overflow-hidden.p-3 {
    padding: 0.9rem !important;
  }

  #content form.d-flex.flex-nowrap {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
  }

  #content form.d-flex.flex-nowrap > label {
    width: 100%;
    margin-bottom: 0 !important;
  }

  #content form.d-flex.flex-nowrap .form-control,
  #content form.d-flex.flex-nowrap .form-select {
    width: 100% !important;
    max-width: 100% !important;
  }

  #content .btn {
    white-space: normal !important;
  }

  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .login-panel {
    max-width: 100%;
  }
}


/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 767.98px) {
  #content {
    padding: 0.8rem !important;
  }

  .widget {
    padding: 0.85rem !important;
  }

  #content .page-header h2,
  #content .page-title {
    font-size: 1.45rem !important;
  }

  #content p,
  #content li,
  #content td,
  #content th,
  #content label,
  #content .form-control,
  #content .form-select,
  #content .page-link,
  #content .btn {
    font-size: 0.95rem !important;
  }

  .lser-table th,
  .lser-table td,
  .table th,
  .table td {
    padding: 0.5rem 0.45rem !important;
  }
}