/* modules/cegadmin/partnerek.css */

.partnerek-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Főadmin cégválasztó sáv */
.cegvalaszto-bar {
  background-color: #0f172a;
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cegvalaszto-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.cegvalaszto-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.cegvalaszto-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ceg-select-dropdown {
  width: 18rem;
  padding: 0.5rem 0.75rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
}

.ceg-select-dropdown:focus {
  border-color: #3b82f6;
}

/* KENYÉRMORZSA NAVIGÁCIÓ */
.breadcrumb-bar {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-link {
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.breadcrumb-link:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.breadcrumb-link.active {
  color: #0f172a;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
}

.breadcrumb-current {
  padding: 0.25rem 0.5rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* DRILLDOWN NÉZETEK */
.drilldown-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.partnerek-header-card {
  background-color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.partnerek-pretitle {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.partnerek-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.15rem 0 0.25rem 0;
}

.partnerek-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

.partnerek-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-action {
  background-color: #2563eb;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary-action:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-secondary-action {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-secondary-action:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.partnerek-filter-card {
  background-color: #ffffff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.filter-search-box {
  position: relative;
  flex: 1 1 20rem;
  max-width: 32rem;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.875rem;
}

.filter-search-input {
  width: 100%;
  padding: 0.55rem 0.875rem 0.55rem 2.25rem;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.filter-search-input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-stats-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-label {
  font-weight: 500;
}

.stat-value {
  font-weight: 800;
  color: #0f172a;
}

.partnerek-table-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  position: relative;
}

.partnerek-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

.partnerek-table thead th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.partnerek-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.partnerek-table tbody tr:hover {
  background-color: #f8fafc;
}

.partnerek-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  color: #334155;
}

.table-loading-cell {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  font-style: italic;
}

.partner-nev-bold {
  font-weight: 800;
  color: #0f172a;
}

.badge-th-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.btn-open-sites {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.15s ease;
}

.btn-open-sites:hover {
  background-color: #1d4ed8;
}

.btn-action-edit {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.btn-action-edit:hover {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-action-del {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 0.25rem;
}

.btn-action-del:hover {
  background-color: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* 3. SZINT: ESZKÖZPARK KÁRTYA ÉS TÁBLÁZAT */
.eszkoz-detail-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.eszkoz-panel-header {
  background-color: #0f172a;
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eszkoz-pretitle {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eszkoz-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.15rem 0 0.25rem 0;
}

.eszkoz-subtitle {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0;
}

.btn-action-jump-back {
  background-color: #1e293b;
  border: 1px solid #475569;
  color: #93c5fd;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-action-jump-back:hover {
  background-color: #334155;
  color: #ffffff;
}

.eszkoz-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #f1f5f9;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.eszkoz-tab-btn {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.eszkoz-tab-btn:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.eszkoz-tab-btn.active {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.tab-counter {
  background-color: rgba(0, 0, 0, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
}

.eszkoz-tab-btn.active .tab-counter {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.eszkoz-filter-bar {
  padding: 0.875rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.eszkoz-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eszkoz-search-wrap {
  position: relative;
  flex: 1 1 18rem;
  max-width: 28rem;
}

.eszkoz-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.eszkoz-search-input:focus {
  border-color: #2563eb;
  background-color: #ffffff;
}

.eszkoz-count-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.btn-action-add-device {
  background-color: #16a34a;
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.3);
}

.btn-action-add-device:hover {
  background-color: #15803d;
}

.eszkoz-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.8125rem;
}

.eszkoz-table thead th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 0.65rem 0.75rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.eszkoz-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.eszkoz-table tbody tr:hover {
  background-color: #f8fafc;
}

.eszkoz-table td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

/* RÖGZÍTETT JOBB OLDALI MŰVELET OSZLOP (SOHA NEM CSÚSZIK KI A KÉPRŐL) */
.eszkoz-table th.col-muvelet,
.eszkoz-table td.col-muvelet {
  position: sticky;
  right: 0;
  background-color: #ffffff;
  box-shadow: -3px 0 6px -2px rgba(0, 0, 0, 0.08);
  z-index: 2;
  text-align: right;
  white-space: nowrap;
  padding-right: 1.25rem;
}

.eszkoz-table thead th.col-muvelet {
  background-color: #f8fafc;
  z-index: 3;
}

.eszkoz-table tbody tr:hover td.col-muvelet {
  background-color: #f8fafc;
}

.cell-mono {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-kat {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Szakági jelvény színek */
.kat-tk { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.kat-tc { background-color: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.kat-letra { background-color: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.kat-emelo { background-color: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.kat-gep { background-color: #e2e8f0; color: #334155; border: 1px solid #cbd5e1; }

.badge-date-valid {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #dcfce7;
  color: #166534;
  white-space: nowrap;
}

.badge-date-warning {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}

.badge-date-expired {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #fee2e2;
  color: #991b1b;
  white-space: nowrap;
}

.badge-status-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-aktiv { background-color: #dcfce7; color: #166534; }
.status-inaktiv { background-color: #fee2e2; color: #991b1b; }

.text-meta-small {
  font-size: 0.6875rem;
  color: #64748b;
}

.badge-locked-indicator {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.375rem;
  white-space: nowrap;
}

/* MODÁL STÍLUSOK */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-dialog-box {
  background-color: #ffffff;
  border-radius: 1rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  box-sizing: border-box;
}

.modal-device-dialog {
  max-width: 42rem;
}

.modal-header-box {
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.875rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header-box h3 { margin: 0; font-size: 0.875rem; font-weight: 700; }
.modal-close-icon { background: none; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; }
.modal-close-icon:hover { color: #ffffff; }

.modal-body-form { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; max-height: 85vh; overflow-y: auto; box-sizing: border-box; }
.modal-footer-box { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-group label { font-size: 0.75rem; font-weight: 600; color: #475569; }
.form-input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; font-size: 0.8125rem; outline: none; box-sizing: border-box; }
.form-input:disabled { background-color: #f8fafc; color: #64748b; cursor: not-allowed; border-color: #e2e8f0; }
.form-input:focus { border-color: #2563eb; }

.grid-two-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.grid-three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }

.bolti-admin-box {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.bolti-admin-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.75rem;
}

.icon-amber { color: #f59e0b; }
.toggle-label-blue { font-size: 0.8125rem; font-weight: 600; color: #1d4ed8; }
.toggle-label-green { font-size: 0.8125rem; font-weight: 600; color: #047857; }
.label-emerald { font-size: 0.75rem; font-weight: 700; color: #065f46; }

.bolti-karb-panel {
  background-color: #ecfdf5;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #a7f3d0;
  margin-top: 0.75rem;
}

.bolti-info-text {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
}

.toggle-control-row { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; margin-bottom: 0.5rem; }
.toggle-checkbox { width: 1.125rem; height: 1.125rem; accent-color: #16a34a; cursor: pointer; }
.toggle-checkbox:disabled { cursor: not-allowed; }

.btn-action-success { background-color: #16a34a; color: #ffffff; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; border: none; cursor: pointer; }
.btn-action-success:hover { background-color: #15803d; }

.btn-action-warning { background-color: #f59e0b; color: #ffffff; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; border: none; cursor: pointer; }
.btn-action-warning:hover { background-color: #d97706; }

.btn-action-secondary { background-color: #64748b; color: #ffffff; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; border: none; cursor: pointer; }
.btn-action-secondary:hover { background-color: #475569; }

.text-right { text-align: right; }
.hidden { display: none !important; }