/* Letisztult, világos felület — Cloudflare Dashboard-szerű, teljes szélesség */

:root {
  --bg-page: #f2f2f2;
  --bg-surface: #ffffff;
  --border: #e0e0e0;
  --border-strong: #d0d0d0;
  --text: #1a1a1a;
  --text-secondary: #5c5c5c;
  --text-muted: #737373;
  --focus: #0055dc;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;
  --radius: 4px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-page);
}

a {
  color: var(--focus);
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius);
  background: var(--border-strong);
  flex-shrink: 0;
}

.btn {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  padding: 0.625rem 1rem;
}

#form-login .btn-primary {
  width: 100%;
}

.btn-primary:hover {
  background: #333;
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-page);
  border-color: var(--border-strong);
  color: var(--text);
}

main {
  flex: 1;
  width: 100%;
  padding: 1.5rem;
}

/* Teljes szélességű tartalomsáv */
.content {
  width: 100%;
  max-width: none;
  margin: 0;
}

.panel {
  width: 100%;
  padding: 1.5rem 1.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
  width: 100%;
}

.field {
  margin-bottom: 1rem;
  width: 100%;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
}

.field input:hover {
  border-color: var(--border-strong);
}

.field input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(0, 85, 220, 0.15);
}

.alert {
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: none;
  width: 100%;
}

.alert.show {
  display: block;
}

.alert-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

.alert-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
}

.hidden {
  display: none !important;
}

.dash-placeholder {
  text-align: left;
  padding: 2rem 0 1rem;
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.dash-placeholder h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text-secondary);
}

.dash-placeholder .sub {
  margin: 0;
  max-width: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-pill {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: min(40vw, 16rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— WooCommerce-szerű rendeléslista (wp-admin hangulat) —— */

.orders-admin {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1.5rem 1.5rem;
}

.wrap {
  width: 100%;
}

.wp-heading-inline {
  display: inline-block;
  font-size: 1.4375rem;
  font-weight: 400;
  margin: 0 0.5rem 0 0;
  padding: 0.35rem 0 0.25rem;
  line-height: 1.4;
  vertical-align: middle;
}

.page-title-action {
  display: inline-block;
  margin: 0 0.5rem 0 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  vertical-align: middle;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: default;
}

.page-title-action--muted {
  color: var(--text-muted);
}

.wp-header-end {
  border: 0;
  border-top: 1px solid var(--border);
  height: 0;
  margin: 0.75rem 0 1rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subsubsub {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex-wrap: wrap;
}

.subsubsub li {
  display: inline;
  margin: 0;
  padding: 0;
}

.subsubsub a {
  text-decoration: none;
  color: var(--focus);
  padding: 0.15rem 0;
}

.subsubsub a:hover,
.subsubsub a:focus {
  text-decoration: underline;
}

.subsubsub a.current {
  color: var(--text);
  font-weight: 600;
  cursor: default;
  text-decoration: none;
}

.subsubsub .count {
  font-weight: 400;
  color: var(--text-muted);
}

.subsubsub .sep {
  color: var(--border-strong);
  margin: 0 0.15rem;
}

.orders-toolbar {
  margin: 0 0 0.75rem;
}

.search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  float: none;
}

.search-box input[type="search"] {
  min-width: min(100%, 16rem);
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font);
}

.button,
.button.action {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, #fafafa, #f3f3f3);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}

.button:hover {
  border-color: #a0a0a0;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tablenav {
  clear: both;
  margin: 0.5rem 0 0.75rem;
  min-height: 1.75rem;
}

.tablenav-pages {
  float: right;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.tablenav-pages .displaying-num {
  margin-right: 0.5rem;
}

.tablenav-pages .pagination-links {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.tablenav-pages .tablenav-pages-navspan.button {
  min-width: 1.75rem;
  text-align: center;
  padding: 0.2rem 0.4rem;
}

.tablenav-pages .tablenav-pages-navspan.button.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tablenav-pages .paging-input {
  margin: 0 0.25rem;
}

br.clear {
  clear: both;
  height: 0;
  line-height: 0;
  margin: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  font-size: 0.8125rem;
}

.wp-list-table thead th,
.wp-list-table tfoot th,
.wp-list-table tbody td {
  padding: 0.6rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.wp-list-table thead th,
.wp-list-table thead td {
  background: #f6f7f7;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
}

.wp-list-table.striped > tbody > tr:nth-child(odd) {
  background: #f9f9f9;
}

.wp-list-table tbody tr:hover {
  background: #f0f6fc;
}

.check-column {
  width: 2.25rem;
  text-align: center;
}

.check-column input {
  margin: 0;
}

.column-order {
  min-width: 12rem;
}

.column-date {
  width: 6.5rem;
  white-space: nowrap;
}

.column-type {
  width: 7rem;
}

.column-status {
  width: 8.5rem;
}

.column-total {
  width: 6rem;
  text-align: right;
  white-space: nowrap;
}

.column-invoice {
  width: 5rem;
}

.column-dms-email {
  width: 7.5rem;
  font-size: 0.8125rem;
}

.dms-email-sent {
  color: #1e4620;
}

.dms-email-no {
  color: #8a2424;
}

.dms-email-muted {
  color: var(--text-muted);
}

.note-actions {
  margin: 0.35rem 0 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--focus);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.75rem;
}

.button-link:hover {
  color: var(--text);
}

.button-small {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.note-edit-wrap {
  margin-top: 0.35rem;
}

.note-edit-actions {
  margin: 0.35rem 0 0;
  display: flex;
  gap: 0.35rem;
}

.order-view {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.order-view:hover {
  color: var(--focus);
}

.order-uuid {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.order-status {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
}

.order-status.status-completed {
  background: #edfaef;
  border-color: #68de7c;
  color: #1e4620;
}

.order-status.status-pending,
.order-status.status-paid,
.order-status.status-processing {
  background: #f0f6fc;
  border-color: #72aee6;
  color: #135e96;
}

.order-status.status-failed,
.order-status.status-expired {
  background: #fcf0f1;
  border-color: #f0b0b5;
  color: #8a2424;
}

.order-status.status-refunded {
  background: #f6f7f7;
  border-color: #c3c4c7;
  color: #50575e;
}

.billing-summary {
  max-width: 22rem;
  line-height: 1.4;
}

.billing-summary .email {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.amount {
  font-variant-numeric: tabular-nums;
}

.invoice-btn {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--text);
}

.invoice-btn:hover {
  border-color: var(--focus);
  color: var(--focus);
}

.orders-error {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 0.875rem;
  border-radius: var(--radius);
}

.orders-loading td {
  color: var(--text-muted);
  font-style: italic;
}

/* —— Rendelés részletek (WC-szerű) —— */

.order-detail-page {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1.5rem 2rem;
}

.order-detail-back {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.order-detail-back a {
  color: var(--focus);
  text-decoration: none;
}

.order-detail-back a:hover {
  text-decoration: underline;
}

.order-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1080px) {
  .order-detail-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }
}

.order-detail-primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-detail-top-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 880px) {
  .order-detail-top-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.order-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.billing-meta th {
  width: 42%;
  min-width: 13rem;
  vertical-align: top;
}

.order-detail-data-meta td {
  word-break: break-word;
}

.dms-meta {
  margin-bottom: 0.5rem;
}

.dms-meta-rest {
  margin-top: 0.35rem;
}

.dms-intro {
  margin: 0 0 0.5rem;
}

.dms-intro code {
  font-size: 0.75rem;
}

.invoice-meta th {
  width: 42%;
  min-width: 13rem;
  vertical-align: top;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.postbox {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 1rem;
}

.postbox-header {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  background: #f6f7f7;
}

.postbox-header h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.postbox .inside {
  padding: 0.75rem;
  font-size: 0.8125rem;
}

.form-field {
  margin-bottom: 0.75rem;
}

.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.form-field select,
.form-field input[type="number"],
.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.875rem;
}

.form-field textarea {
  min-height: 4rem;
  resize: vertical;
}

.button-primary {
  background: #2271b1 !important;
  border-color: #2271b1 !important;
  color: #fff !important;
}

.button-primary:hover {
  background: #135e96 !important;
  border-color: #135e96 !important;
}

.address-block p {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.display_meta {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.display_meta th {
  text-align: left;
  vertical-align: top;
  padding: 0.25rem 0.75rem 0.25rem 0;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 12rem;
  max-width: 48%;
}

.display_meta td {
  padding: 0.25rem 0;
}

.persons-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .persons-grid--multi {
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  }
}

.persons-grid .person-item {
  margin-bottom: 0;
}

.person-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: #fafafa;
  min-width: 0;
}

.person-item h4 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.order-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 22rem;
  overflow-y: auto;
}

.order-notes-list li {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.order-notes-list .note-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.order-notes-list .note-type {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.order-notes-list .note-type.system {
  color: #8a6d3b;
}

.order-notes-list .note-type.customer {
  color: #135e96;
}

.totals-table {
  width: 100%;
  font-size: 0.8125rem;
}

.totals-table td {
  padding: 0.35rem 0;
}

.totals-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.totals-table .label {
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  main {
    padding: 1.5rem 2rem;
  }

  .topbar {
    padding: 0 2rem;
  }
}

