/* ==========================================================================
   FizioTérkép – Admin UI (FINOMÍTOTT – kompakt táblázatok)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --fz-primary: #64b19a;
  --fz-primary-2: #9edbc8;
  --fz-text: #0f172a;
  --fz-muted: #4b5563;
  --fz-bg: #f9fbfd;
  --fz-accent: #e2e8f0;
  --fz-radius: 8px;
  --fz-shadow: 0 4px 12px rgba(15,23,42,0.08);
  --fz-shadow-soft: 0 2px 8px rgba(15,23,42,0.04);
  --fz-focus: 0 0 0 3px rgba(100,177,154,0.35);
}

* { box-sizing: border-box; }

/* Wrapper */
body .entry-content > .fiziomap-admin-wrapper {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--fz-bg);
}

.fiziomap-admin-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: 15px auto;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  background: var(--fz-bg);
}

/* Sidebar */
.fiziomap-sidebar {
  position: sticky;
  top: 60px;
  flex: 0 0 200px;
  background: #fff;
  padding: 1rem;
  border-radius: var(--fz-radius);
  border: 1px solid var(--fz-accent);
  box-shadow: var(--fz-shadow-soft);
}

.fiziomap-sidebar h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fz-text);
  margin: 0 0 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--fz-primary);
}

.fiziomap-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fiziomap-sidebar a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--fz-text);
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-size: 13px;
}

.fiziomap-sidebar a:hover {
  background: var(--fz-bg);
  border-color: var(--fz-accent);
  transform: translateX(3px);
}

.fiziomap-sidebar a.active {
  background: var(--fz-primary);
  color: #fff;
  border-color: var(--fz-primary);
  box-shadow: 0 2px 8px rgba(100,177,154,0.25);
}

/* Main content */
.fiziomap-main-content {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--fz-radius);
  border: 1px solid var(--fz-accent);
  box-shadow: var(--fz-shadow);
  overflow-x: auto;
}

.fiziomap-main-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fz-text);
  margin: 0 0 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--fz-primary);
}

.fiziomap-main-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fz-text);
  margin: 1.5rem 0 0.8rem;
}

/* Táblázatok – KOMPAKT */
.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--fz-accent);
  border-radius: var(--fz-radius);
  overflow: hidden;
  box-shadow: var(--fz-shadow-soft);
  margin: 1rem 0;
  font-size: 13px;
}

.wp-list-table thead th {
  background: linear-gradient(135deg, var(--fz-bg) 0%, #f3f4f6 100%);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--fz-text);
  border-bottom: 2px solid var(--fz-primary);
  white-space: nowrap;
}

.wp-list-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--fz-text);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-list-table tbody tr:hover {
  background: var(--fz-bg);
}

.wp-list-table tbody tr:last-child td {
  border-bottom: none;
}

/* Gombok */
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: var(--fz-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
  font-size: 12px;
  white-space: nowrap;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(100,177,154,0.3);
}

.button.button-secondary {
  background: var(--fz-accent);
  color: var(--fz-text);
  border: 1px solid var(--fz-muted);
}

.button.button-secondary:hover {
  background: #d1d5db;
}

.button.button-small {
  padding: 4px 8px;
  font-size: 11px;
}

/* Rating itemek */
.ratings-admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rating-item {
  background: #fff;
  border: 1px solid var(--fz-accent);
  border-radius: var(--fz-radius);
  padding: 1rem;
  box-shadow: var(--fz-shadow-soft);
}

.rating-item:hover {
  box-shadow: var(--fz-shadow);
  transform: translateY(-2px);
}

.rating-details p {
  margin: 0.3rem 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fz-text);
}

.comment-block {
  background: var(--fz-bg);
  padding: 0.8rem;
  border-radius: 6px;
  border-left: 3px solid var(--fz-primary);
  margin-top: 0.6rem !important;
  font-style: italic;
  color: var(--fz-muted);
  font-size: 12px;
}

.rating-actions {
  display: flex;
  gap: 6px;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--fz-accent);
}

/* Terapeuta lista */
.therapist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.therapist-list li {
  padding: 0.6rem 0.8rem;
  background: var(--fz-bg);
  border-radius: 6px;
  border-left: 3px solid var(--fz-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.therapist-list a {
  color: var(--fz-primary);
  text-decoration: none;
  font-weight: 600;
}

.therapist-list a:hover {
  text-decoration: underline;
}

/* Export gomb */
.button.button-primary {
  background: linear-gradient(135deg, var(--fz-primary) 0%, var(--fz-primary-2) 100%);
  padding: 8px 12px;
  font-size: 13px;
}

/* Statisztika */
.notice {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  color: #856404;
  font-size: 13px;
}

.notice-success {
  background: #d4edda;
  border-left-color: #28a745;
  color: #155724;
}

/* Reszponzivitás */
@media (max-width: 1200px) {
  .fiziomap-admin-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .fiziomap-sidebar {
    position: static;
    flex: 1 1 100%;
  }

  .fiziomap-sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .fiziomap-sidebar a {
    flex: 1;
    text-align: center;
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .fiziomap-admin-wrapper {
    padding: 1rem;
  }

  .fiziomap-main-content {
    padding: 1rem;
  }

  .wp-list-table {
    font-size: 11px;
  }

  .wp-list-table thead th,
  .wp-list-table tbody td {
    padding: 6px 8px;
  }

  .button {
    padding: 4px 6px;
    font-size: 10px;
  }
}
/* ==========================================================================
   ADMIN LAYOUT - Header fent, alatta 2 oszlop
   ========================================================================== */

/* Admin Header - TELJES SZÉLES */
.fiziomap-admin-header {
  width: 100%;
  background: linear-gradient(135deg, var(--fz-primary) 0%, var(--fz-primary-2) 100%);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(100,177,154,0.2);
  border-bottom: 3px solid var(--fz-primary);
  box-sizing: border-box;
  margin: 0;
  margin-bottom: 1.5rem;
}

.admin-header-left {
  display: flex;
  align-items: center;
}

.admin-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  transform: translateY(-1px);
}

/* Wrapper - Sidebar + Main EGYMÁS MELLETT */
.fiziomap-admin-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--fz-bg);
}

/* Sidebar */
.fiziomap-sidebar {
  position: sticky;
  top: 60px;
  flex: 0 0 200px;
  background: #fff;
  padding: 1rem;
  border-radius: var(--fz-radius);
  border: 1px solid var(--fz-accent);
  box-shadow: var(--fz-shadow-soft);
}

/* Main content */
.fiziomap-main-content {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--fz-radius);
  border: 1px solid var(--fz-accent);
  box-shadow: var(--fz-shadow);
  overflow-x: auto;
}

/* ==========================================================================
   RESZPONZÍVITÁS - Mobil: Header, majd 2 oszlop alatt
   ========================================================================== */

@media (max-width: 1200px) {
  .fiziomap-admin-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .fiziomap-sidebar {
    position: static;
    flex: 1 1 100%;
  }

  .fiziomap-sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .fiziomap-sidebar a {
    flex: 1;
    text-align: center;
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .fiziomap-admin-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .admin-header-right {
    width: 100%;
    justify-content: center;
  }

  .admin-user {
    font-size: 0.8rem;
  }

  .btn-logout {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .fiziomap-admin-wrapper {
    padding: 1rem;
  }

  .fiziomap-main-content {
    padding: 1rem;
  }
}
@media (max-width: 768px) {

  .wp-list-table,
  .wp-list-table thead,
  .wp-list-table tbody,
  .wp-list-table th,
  .wp-list-table td,
  .wp-list-table tr {
    display: block;
    width: 100%;
  }

  .wp-list-table thead {
    display: none;
  }

  .wp-list-table tr {
    background: #fff;
    border: 1px solid var(--fz-accent);
    border-radius: var(--fz-radius);
    box-shadow: var(--fz-shadow-soft);
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
  }

  .wp-list-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border: none;
    white-space: normal;
    max-width: none;
  }

  .wp-list-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--fz-muted);
    font-size: 11px;
    padding-right: 10px;
    flex: 0 0 45%;
  }
}
/* ===== Mobilbarát admin táblázat – görgethető ===== */
.fiziomap-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fiziomap-table-scroll table {
  min-width: 900px; /* ez a kulcs */
}
/* ✅ Admin táblázat: a műveleti oszlop NE legyen ellipszis + férjenek el a gombok */
.wp-list-table td:last-child,
.wp-list-table th:last-child {
  max-width: none !important;
  white-space: normal !important;
}

/* ✅ Gombok a cellán belül tudjanak törni, ne lógjanak ki */
.wp-list-table td:last-child {
  overflow: visible !important;
}

.wp-list-table td:last-child .button {
  margin: 2px 4px 2px 0;
}

/* ✅ Biztos ami biztos: a műveleti cellában legyen "flex-wrap" */
.wp-list-table td:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center; /* ha középre akarod */
}
.wp-list-table .col-admin-note { min-width: 320px; }
.fiziomap-admin-note { width: 100%; box-sizing: border-box; }
.fiziomap-admin-note-form .button { margin-top: 6px; }

.col-admin-note textarea {
  width: 100%;
  box-sizing: border-box;
}

.admin-note-actions {
  margin-top: 6px;
  text-align: right;
}
