/* StayPD v6 – egységes belső felületek */
body.pd-internal-body:not(.pd-portal-body) {
  --pd-page-gap: 16px;
  --pd-card-radius: 17px;
}

/* A régi globális select szabály levágta a kiválasztott értéket. */
body.pd-internal-body:not(.pd-portal-body) select,
body.pd-internal-body:not(.pd-portal-body) .pd-select {
  width: 100%;
  height: auto !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px 40px 10px 13px !important;
  color-scheme: light;
  border: 1px solid var(--pd-line) !important;
  border-radius: 11px !important;
  background-color: var(--pd-surface-2) !important;
  color: var(--pd-text) !important;
  box-shadow: none !important;
  line-height: 1.35;
}
[data-theme="dark"] body.pd-internal-body:not(.pd-portal-body) select { color-scheme: dark; }
body.pd-internal-body:not(.pd-portal-body) select option { background: var(--pd-surface); color: var(--pd-text); }

/* Public forms share the same legacy 30px select rule as internal forms.
   Restore the text area without changing the portal's colors or layout. */
body.pd-portal-body .pd-select {
  height: auto;
  min-height: 46px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  line-height: 1.35;
  box-shadow: none;
  color-scheme: light;
}
[data-theme="dark"] body.pd-portal-body .pd-select { color-scheme: dark; }
body.pd-portal-body .pd-select option {
  background-color: var(--pd-surface);
  color: var(--pd-text);
}
.pd-form, .pd-form-row, .pd-field { min-width: 0; }

/* Nyilvános főoldal új hero képe */
body.pd-portal-body .pd-hero {
  background-image: linear-gradient(90deg,var(--pd-surface) 0%,color-mix(in srgb,var(--pd-surface) 91%,transparent) 38%,transparent 67%),url('../images/pd-gta-hero-v4.png') !important;
}

/* Közös oldalváz */
body.pd-internal-body:not(.pd-portal-body) main.pd-internal-content {
  width: min(100%, 1540px) !important;
  max-width: 1540px !important;
  min-width: 0 !important;
}
body.pd-internal-body:not(.pd-portal-body) :is(.pd-page-forms,.pd-page-database,.pd-page-requests,.pd-page-profile,.pd-page-leader) > .main-text {
  margin-bottom: 14px;
}
body.pd-internal-body:not(.pd-portal-body) .nav-navbar {
  position: relative;
  width: 100%;
  flex-wrap: wrap;
  overflow: visible;
  scrollbar-width: none;
}
body.pd-internal-body:not(.pd-portal-body) .nav-navbar > a { flex: 0 1 auto; min-width: 0; }
body.pd-internal-body:not(.pd-portal-body) .nav-navbar :is(.nav-active,.nav-inactive) { justify-content: center; white-space: nowrap; }

/* Jelentések */
.pd-page-forms .pd-report-form { width: 100%; }
.pd-page-forms .form-main.pd-report-form-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 22px !important;
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 14px !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: var(--pd-card-radius) !important;
  background: var(--pd-surface) !important;
  box-shadow: var(--pd-shadow);
}
.pd-page-forms .pd-report-form-card .form-row {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  border: 1px solid var(--pd-line);
  border-radius: 13px;
  background: var(--pd-surface-2);
}
.pd-page-forms .pd-report-form-card .form-desc { display: none; }
.pd-page-forms .pd-report-form-card .form-row:nth-child(2) { grid-column: 1 / -1; }
.pd-page-forms .pd-report-form-card .form-row:nth-child(2) + .form-row { grid-column: auto; }
.pd-page-forms .pd-report-form-card input.form-body,
.pd-page-forms .pd-report-form-card .form-other input { width: 100% !important; min-height: 44px; margin: 0 !important; }
.pd-page-forms .pd-report-form-card .form-grid { width: 100%; display: grid !important; grid-template-columns: repeat(6,minmax(0,1fr)) !important; gap: 9px; }
.pd-page-forms .pd-report-form-card .cb-cont {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  min-width: 0;
  min-height: 50px;
  margin: 0 !important;
  padding: 11px 12px !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pd-line);
  border-radius: 11px;
  background: var(--pd-surface);
  color: var(--pd-text);
}
.pd-page-forms .pd-report-form-card .cb-cont .cb-cm { position: relative !important; inset: auto !important; flex: 0 0 auto; }
.pd-page-forms .pd-report-form-card .cb-cont b { min-width: 0; overflow-wrap: anywhere; }
.pd-page-forms .pd-report-form-card .form-other { grid-column: span 2; width: 100%; min-width: 0; min-height: 50px; margin: 0; padding: 7px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--pd-line); border-radius: 11px; background: var(--pd-surface); color: var(--pd-text); font-weight: 750; }
.pd-page-forms .pd-report-form-card .form-other input { flex: 1; min-width: 0; }
.pd-page-forms .pd-report-form-card > br { display: none; }
.pd-page-forms .pd-report-form-card > div:last-child { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.pd-page-forms .pd-report-form-card > div:last-child button { min-width: 190px; }
.pd-page-forms .pd-report-stats { width: 100%; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.pd-page-forms .pd-report-stat { min-width: 0; padding: 17px; border: 1px solid var(--pd-line); border-radius: 14px; background: var(--pd-surface); }
.pd-page-forms .pd-report-list { display: grid; grid-template-columns: 1fr; gap: 11px; }
.pd-page-forms .pd-report-card { width: 100%; min-width: 0; margin: 0; padding: 16px; display: grid; grid-template-columns: minmax(145px,.8fr) minmax(145px,.8fr) minmax(230px,1.4fr) minmax(160px,.8fr); gap: 10px; border: 1px solid var(--pd-line); border-radius: 15px; background: var(--pd-surface); box-shadow: 0 7px 22px rgba(16,41,77,.055); transition: transform .18s ease,border-color .18s ease; }
.pd-page-forms .pd-report-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--pd-blue-2) 38%,var(--pd-line)); }
.pd-page-forms .pd-report-field { min-width: 0; padding: 10px 11px; border-radius: 10px; background: var(--pd-surface-2); }
.pd-page-forms .pd-report-field span { display: block; margin-bottom: 4px; color: var(--pd-muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.pd-page-forms .pd-report-field strong { display: block; color: var(--pd-text); overflow-wrap: anywhere; }
.pd-page-forms .pd-report-charges { grid-column: auto; }
.pd-page-forms .profile-figyu2 { grid-column: span 3; }
.pd-page-forms .pd-report-search { width: 100% !important; margin: 0 0 14px !important; padding: 13px !important; border: 1px solid var(--pd-line); border-radius: 14px; background: var(--pd-surface); }
.pd-page-forms .pd-report-search form { display: flex; gap: 9px; }
.pd-page-forms .pd-report-search input { flex: 1; min-width: 0; }
.pd-page-forms .pd-report-period { margin: 0 0 14px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--pd-line); border-radius: 15px; background: linear-gradient(135deg,color-mix(in srgb,var(--pd-blue-2) 9%,var(--pd-surface)),var(--pd-surface)); box-shadow: var(--pd-shadow); }
.pd-page-forms .pd-report-period div { display: grid; gap: 3px; }
.pd-page-forms .pd-report-period span { color: var(--pd-muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pd-page-forms .pd-report-period strong { color: var(--pd-text); font-size: 1.05rem; }
.pd-page-forms .pd-report-period em { padding: 8px 11px; border-radius: 999px; background: var(--pd-surface-2); color: var(--pd-blue-2); font-size: .72rem; font-style: normal; font-weight: 800; }
.pd-page-forms .pd-report-main-tabs { margin-bottom: 8px; }
.pd-page-forms .pd-report-week-tabs { margin-bottom: 15px; background: color-mix(in srgb,var(--pd-surface) 88%,var(--pd-blue-2) 12%); }
.pd-page-forms .pd-report-week-tabs > a { flex: 1 1 150px !important; }
.pd-page-forms .pd-report-close-card { width: 100%; }
.pd-page-forms .pd-report-close-state { padding: 22px; border: 1px dashed var(--pd-line); border-radius: 13px; background: var(--pd-surface-2); color: var(--pd-muted); text-align: center; font-weight: 750; }
.pd-page-forms .pd-empty { padding: 26px; border: 1px dashed var(--pd-line); border-radius: 14px; background: var(--pd-surface); color: var(--pd-muted); text-align: center; }

/* Aktivitás */
.pd-page-activity .pd-activity-period { margin: 0 0 14px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--pd-line); border-radius: 16px; background: linear-gradient(135deg,color-mix(in srgb,var(--pd-blue-2) 10%,var(--pd-surface)),var(--pd-surface)); box-shadow: var(--pd-shadow); }
.pd-page-activity .pd-activity-period span { color: var(--pd-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pd-page-activity .pd-activity-period strong { color: var(--pd-text); font-size: 1.12rem; }
.pd-page-activity .pd-activity-period em { margin-left: auto; padding: 8px 11px; border-radius: 999px; background: var(--pd-surface-2); color: var(--pd-blue-2); font-size: .74rem; font-style: normal; font-weight: 800; }
.pd-page-activity .default-table { width: 100% !important; margin: 14px 0 30px !important; border-collapse: separate !important; border-spacing: 0 7px !important; background: transparent !important; }
.pd-page-activity .default-table tr { background: var(--pd-surface); box-shadow: 0 5px 15px rgba(16,41,77,.04); }
.pd-page-activity .default-table th { padding: 12px 10px !important; background: var(--pd-surface-2) !important; color: var(--pd-muted) !important; font-size: .68rem; text-transform: uppercase; }
.pd-page-activity .default-table td { padding: 12px 10px !important; border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); color: var(--pd-text); }
.pd-page-activity .default-table :is(th,td):first-child { border-radius: 11px 0 0 11px; border-left: 1px solid var(--pd-line); }
.pd-page-activity .default-table :is(th,td):last-child { border-radius: 0 11px 11px 0; border-right: 1px solid var(--pd-line); }
.pd-page-activity .perc-zaras-container { overflow-x: auto; padding: 16px; border: 1px solid var(--pd-line); border-radius: 16px; background: var(--pd-surface); }
.pd-page-activity .percek-input { min-width: 100px; min-height: 40px; border: 1px solid var(--pd-line); border-radius: 9px; background: var(--pd-surface-2); color: var(--pd-text); }

/* Állományi adatbázis */
.pd-page-database .main-text { justify-content: flex-start !important; }
.pd-page-database .main-text-db {
  width: 100%;
  margin: 0 0 15px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 13px;
  border: 1px solid var(--pd-line);
  border-radius: 15px;
  background: var(--pd-surface);
}
.pd-page-database .main-text-db .main-text-dot { display: none; }
.pd-page-database .main-db-content,.pd-page-database .db-wrapper { width: 100%; min-width: 0; }
.pd-page-database .db-wrapper { display: grid; gap: 9px; }
.pd-page-database :is(.db-rank-div-name,.db-rank-div-namelader,.db-rank-div-namenyug) {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100% !important;
  margin: 13px 0 2px !important;
  padding: 10px 14px !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb,var(--pd-surface) 94%,var(--pd-blue-2) 6%) !important;
  color: var(--pd-text) !important;
  backdrop-filter: blur(12px);
}
.pd-page-database .db-cont {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: 100% !important;
  min-height: 78px;
  margin: 0 !important;
  padding: 11px 13px !important;
  display: grid !important;
  grid-template-columns: 52px 52px minmax(180px,1.35fr) minmax(130px,.72fr) minmax(160px,1fr) minmax(90px,.5fr) minmax(105px,.62fr) !important;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--pd-line) !important;
  border-radius: 14px !important;
  background: var(--pd-surface) !important;
  box-shadow: 0 6px 18px rgba(16,41,77,.045);
}
.pd-page-database .db-cont > * { min-width: 0; }
.pd-page-database .db-cont:hover { border-color: color-mix(in srgb,var(--pd-blue-2) 38%,var(--pd-line)) !important; transform: translateY(-1px); }
.pd-page-database :is(.db-avatar,.db-rank-img) { width: 52px !important; height: 52px !important; margin: 0 !important; border-radius: 11px; object-fit: cover; }
.pd-page-database .db-nev-cont { width: auto !important; margin: 0 !important; }
.pd-page-database .db-rank { width: auto !important; color: var(--pd-text); }
.pd-page-database :is(.db-date-cont,.db-warn-cont,.db-inac-online) { width: auto !important; margin: 0 !important; }

/* Igénylések és kérelmek */
.pd-page-requests .igenyles-two-div { width: 100%; display: block; }
.pd-page-requests .igenyles-button-div,
.pd-page-requests .nv-bg,
.pd-page-requests .igenyles-active-div {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}
.pd-page-requests .igenyles-button-div { padding: 18px; border: 1px solid var(--pd-line); border-radius: var(--pd-card-radius); background: var(--pd-surface); overflow-x: auto; }
.pd-page-requests .nv-cont { width: min(100%,820px) !important; margin: 0 auto 18px !important; display: block !important; }
.pd-page-requests .nv-bg { padding: 20px !important; display: grid; gap: 11px; border: 1px solid var(--pd-line); border-radius: var(--pd-card-radius); background: var(--pd-surface); }
.pd-page-requests .nv-row { width: 100% !important; min-width: 0; margin: 0 !important; display: grid !important; grid-template-columns: minmax(150px,.42fr) minmax(0,1fr); gap: 12px; align-items: center; }
.pd-page-requests .nv-row :is(input,textarea,select),.pd-page-requests .igenyles-input { width: 100% !important; min-height: 44px; margin: 0 !important; }
.pd-page-requests .igenyles-active-div { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.pd-page-requests .igenyles-aktiv { width: 100% !important; min-width: 0; margin: 0 !important; overflow: hidden; border: 1px solid var(--pd-line); border-radius: 15px; background: var(--pd-surface); }
.pd-page-requests .igenyles-aktiv-header { padding: 13px 15px; background: var(--pd-surface-2); color: var(--pd-text); font-weight: 800; }
.pd-page-requests .igenyles-aktiv-body { padding: 14px; }
.pd-page-requests .igenyles-aktiv-element1 { width: 100%; display: grid; grid-template-columns: minmax(120px,.38fr) minmax(0,1fr); gap: 10px; }
.pd-page-requests .igenyles-aktiv-element3 { min-width: 0; overflow-wrap: anywhere; }

/* Profil */
.pd-page-profile :is(.index-profile-bg,.index-profile-bg-edit) {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 20px !important;
  display: grid !important;
  grid-template-columns: minmax(240px,310px) minmax(0,1fr) !important;
  gap: 18px !important;
  align-items: start;
  white-space: normal !important;
  overflow: visible !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 18px !important;
  background: var(--pd-surface) !important;
  box-shadow: var(--pd-shadow);
}
.pd-page-profile .index-maininfo-p { position: relative; width: 100% !important; min-height: 280px; height: auto !important; margin: 0 !important; overflow: hidden; border-radius: 16px; }
.pd-page-profile .profile-background { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; margin: 0 !important; background-position: center !important; background-size: cover !important; }
.pd-page-profile .profile-edit-details2,.pd-page-profile .profile-details2 { width: 100% !important; min-width: 0; margin: 0 !important; }
.pd-page-profile .profile-grid { width: 100% !important; margin: 0 !important; display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.pd-page-profile .profile-grid-element { width: 100% !important; min-width: 0; margin: 0 !important; padding: 13px !important; border: 1px solid var(--pd-line) !important; border-radius: 12px !important; background: var(--pd-surface-2) !important; }
.pd-page-profile :is(.edit-info,.profile-edit-user,.profile-edit-old-password,.profile-edit-info) { width: 100% !important; margin: 0 !important; }
.pd-page-profile .profile-edit-info { padding: 16px; display: grid !important; grid-template-columns: minmax(160px,.4fr) minmax(0,1fr); gap: 10px 14px; border: 1px solid var(--pd-line); border-radius: 14px; background: var(--pd-surface-2); }
.pd-page-profile .profile-edit-element2 { min-width: 0; width: 100%; display: flex; align-items: center; gap: 8px; }
.pd-page-profile .edit-profile-input { width: 100% !important; min-height: 44px; margin: 0 !important; }
.pd-page-profile .profile-edit-save { display: flex; justify-content: flex-end; }

/* Leader és választók */
.pd-page-leader .pd-grid { gap: 14px; }
.pd-page-leader .pd-card { min-width: 0; overflow: hidden; }
.pd-page-leader .pd-form { gap: 11px; }
.pd-admin-tabs { width: 100%; margin: 0 0 16px; padding: 7px; display: flex; flex-wrap: wrap; gap: 7px; border: 1px solid var(--pd-line); border-radius: 15px; background: var(--pd-surface); box-shadow: var(--pd-shadow); }
.pd-admin-tabs a { flex: 1 1 150px; min-height: 42px; padding: 10px 13px; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; color: var(--pd-muted); font-size: .76rem; font-weight: 800; text-align: center; transition: .18s ease; }
.pd-admin-tabs a:hover { color: var(--pd-text); background: var(--pd-surface-2); }
.pd-admin-tabs a.is-active { color: #fff; border-color: color-mix(in srgb,var(--pd-blue-2) 75%,white); background: linear-gradient(135deg,var(--pd-blue),var(--pd-blue-2)); box-shadow: 0 7px 18px color-mix(in srgb,var(--pd-blue-2) 24%,transparent); }
.pd-form--narrow { width: min(100%,720px); }
.pd-command-form { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; }
.pd-command-form .pd-selected-person { grid-column: span 2; }
.pd-admin-section-grid { grid-template-columns: minmax(0,1fr) !important; min-width: 0; }
.pd-admin-section-grid > .pd-card { grid-column: 1 / -1; }
.pd-selected-person { min-height: 34px; padding: 8px 10px; border: 1px solid color-mix(in srgb,var(--pd-blue-2) 30%,var(--pd-line)); border-radius: 9px; background: color-mix(in srgb,var(--pd-blue-2) 7%,var(--pd-surface)); color: var(--pd-text); font-size: .78rem; font-weight: 750; }
.pd-admin-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.pd-admin-card-heading h3 { margin: 2px 0 0; }
.pd-robot-registry > .pd-form { grid-template-columns: minmax(190px,1fr) minmax(160px,.72fr) minmax(160px,.72fr) auto; display: grid; align-items: end; }
.pd-robot-registry > .pd-form .pd-selected-person { grid-column: 1; }
.pd-robot-registry > .pd-form button { grid-column: 4; grid-row: 1 / span 2; align-self: stretch; }
.pd-admin-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--pd-line); border-radius: 13px; }
.pd-admin-table-wrap .pd-table { border: 0 !important; border-radius: 0 !important; }
.pd-application-history .pd-table td { vertical-align:middle; }
.pd-application-module { display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:16px; }
.pd-application-module > * { grid-column: 1 / -1; min-width: 0; }
.pd-application-history .pd-table td:last-child { width:1%;white-space:nowrap; }
.pd-application-history .pd-table form { margin:0; }
.pd-command-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.pd-command-grid article { min-width: 0; padding: 12px; display: grid; gap: 6px; border: 1px solid var(--pd-line); border-radius: 11px; background: var(--pd-surface-2); }
.pd-command-grid article strong { color: var(--pd-text); }
.pd-command-grid article span { color: var(--pd-muted); font-size: .72rem; overflow-wrap: anywhere; }
.pd-icon-button--danger { color: var(--pd-bad) !important; }

@media(max-width:1180px) {
  .pd-page-forms .pd-report-form-card .form-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  .pd-page-forms .pd-report-card { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pd-page-forms .profile-figyu2 { grid-column: span 2; }
  .pd-page-database .db-cont { grid-template-columns: 52px 52px minmax(180px,1fr) minmax(130px,.7fr) !important; }
  .pd-page-database :is(.db-date-cont,.db-warn-cont,.db-inac-online) { padding: 8px; border-radius: 9px; background: var(--pd-surface-2); }
  .pd-robot-registry > .pd-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pd-robot-registry > .pd-form button { grid-column: auto; grid-row: auto; }
  .pd-command-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:820px) {
  .pd-page-forms .pd-report-form-card .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  .pd-page-forms .form-main.pd-report-form-card,.pd-page-forms .pd-report-stats,.pd-page-forms .pd-report-list,.pd-page-requests .igenyles-active-div { grid-template-columns: 1fr !important; }
  .pd-page-forms .pd-report-form-card .form-row:nth-child(2) { grid-column: auto; }
  .pd-page-database .db-cont { grid-template-columns: 48px 48px minmax(0,1fr) !important; }
  .pd-page-database :is(.db-rank,.db-date-cont,.db-warn-cont,.db-inac-online) { grid-column: 1 / -1; }
  .pd-page-profile :is(.index-profile-bg,.index-profile-bg-edit) { grid-template-columns: 1fr !important; }
  .pd-page-profile .index-maininfo-p { min-height: 235px; }
  .pd-command-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pd-command-form { grid-template-columns: 1fr !important; }
  .pd-command-form .pd-selected-person { grid-column: auto; }
  .pd-page-activity .pd-activity-period { align-items: flex-start; flex-direction: column; }
  .pd-page-activity .pd-activity-period em { margin-left: 0; }
}
@media(max-width:560px) {
  .pd-page-forms .pd-report-form-card .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .pd-page-forms .pd-report-period { align-items: flex-start; flex-direction: column; }
  body.pd-internal-body:not(.pd-portal-body) .nav-navbar > a { flex: 1 1 calc(50% - 8px); }
  body.pd-internal-body:not(.pd-portal-body) .nav-navbar :is(.nav-active,.nav-inactive) { white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .pd-page-forms .form-main.pd-report-form-card,.pd-page-requests .nv-bg,.pd-page-profile :is(.index-profile-bg,.index-profile-bg-edit) { padding: 14px !important; }
  .pd-page-database .db-cont { grid-template-columns: 48px minmax(0,1fr) !important; }
  .pd-page-database .db-rank-img { display: none; }
  .pd-page-requests .nv-row,.pd-page-requests .igenyles-aktiv-element1,.pd-page-profile .profile-edit-info,.pd-page-profile .profile-grid,.pd-robot-registry > .pd-form,.pd-command-grid { grid-template-columns: 1fr !important; }
  .pd-page-profile .profile-edit-element2 { align-items: stretch; flex-direction: column; }
  .pd-page-forms .pd-report-card { grid-template-columns: 1fr; }
  .pd-page-forms .profile-figyu2 { grid-column: auto; }
  .pd-page-forms .pd-report-search form { flex-direction: column; }
}

/* v17 – szolgálati egységek, PDCOIN és PDShop */
.pd-db-member { grid-template-columns:52px 52px minmax(145px,1.2fr) minmax(115px,.75fr) minmax(85px,.5fr) minmax(135px,.8fr) minmax(145px,.85fr) 70px minmax(88px,.5fr); }
.pd-db-member__division { min-width:0;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--pd-line);border-radius:10px;background:var(--pd-surface); }
.pd-db-member__division img { width:25px;height:25px;object-fit:contain;color:var(--group-color); }
.pd-db-member__division span { overflow-wrap:anywhere;color:var(--pd-text);font-size:.68rem;font-weight:750; }
.pd-page-service,.pd-page-shop { display:grid;gap:16px; }
.pd-duty-hero,.pd-duty-current,.pd-duty-start,.pd-duty-units,.pd-shop-head,.pd-cart,.pd-shop-admin,.pd-receipt { border:1px solid var(--pd-line);border-radius:var(--pd-card-radius);background:var(--pd-surface);box-shadow:var(--pd-shadow); }
.pd-duty-hero { padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(125deg,color-mix(in srgb,var(--pd-blue-2) 9%,var(--pd-surface)),var(--pd-surface)); }
.pd-duty-hero h1,.pd-shop-head h1 { margin:4px 0;color:var(--pd-text);font-size:clamp(1.4rem,3vw,2.2rem); }
.pd-duty-hero p { margin:0;color:var(--pd-muted); }
.pd-kicker { color:var(--pd-blue-2);font-size:.69rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase; }
.pd-duty-donut { --progress:0;position:relative;width:128px;aspect-ratio:1;flex:0 0 auto;display:grid;place-content:center;text-align:center;border-radius:50%;background:radial-gradient(circle at center,var(--pd-surface) 58%,transparent 60%),conic-gradient(var(--pd-blue-2) calc(var(--progress)*1%),var(--pd-surface-3) 0); }
.pd-duty-donut strong { color:var(--pd-text);font-size:1.35rem; }.pd-duty-donut span { color:var(--pd-muted);font-size:.64rem; }
.pd-duty-current { padding:22px;display:grid;grid-template-columns:minmax(230px,1fr) auto auto;align-items:center;gap:18px;border-left:4px solid var(--pd-good); }
.pd-live-dot { display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:50%;background:var(--pd-good);box-shadow:0 0 0 5px color-mix(in srgb,var(--pd-good) 13%,transparent); }
.pd-duty-current h2 { margin:7px 0;color:var(--pd-text); }.pd-duty-vehicle { display:flex;align-items:center;gap:12px;color:var(--pd-muted); }
.pd-license-plate { display:inline-flex;align-items:center;padding:6px 11px;border:2px solid #152234;border-left:8px solid #2478d4;border-radius:5px;background:#f7f8f3;color:#111827!important;font-family:Consolas,monospace;font-weight:900;letter-spacing:.08em;box-shadow:inset 0 0 0 1px #b8bec5;white-space:nowrap; }
.pd-duty-timer { color:var(--pd-text);font:800 clamp(1.35rem,3vw,2.2rem)/1 'Roboto Mono',Consolas,monospace;letter-spacing:.04em; }
.pd-duty-end-form { grid-column:1/-1;padding-top:16px;display:grid;grid-template-columns:minmax(200px,1fr) auto minmax(220px,1fr) auto;align-items:end;gap:10px;border-top:1px solid var(--pd-line); }.pd-duty-end-form label{display:grid;gap:5px;color:var(--pd-muted);font-size:.72rem;font-weight:750;}
.pd-duty-start { overflow:hidden; }.pd-duty-start>header,.pd-duty-units>header,.pd-shop-admin>header{padding:17px 20px;border-bottom:1px solid var(--pd-line);}.pd-duty-start h2,.pd-duty-units h2,.pd-shop-admin h2{margin:3px 0 0;color:var(--pd-text);}
.pd-duty-start-form { padding:20px;display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:end;gap:12px; }.pd-duty-start-form label{display:grid;gap:6px;color:var(--pd-muted);font-size:.72rem;font-weight:750;}
.pd-duty-units>header { display:flex;align-items:center;justify-content:space-between; }.pd-duty-units>header>span{color:var(--pd-muted);font-weight:750;}
.pd-duty-grid { padding:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.pd-duty-unit { min-width:0;padding:15px;display:grid;gap:14px;border:1px solid var(--pd-line);border-radius:14px;background:var(--pd-surface-2); }
.pd-duty-unit__head { display:flex;align-items:flex-start;justify-content:space-between;gap:10px; }.pd-duty-unit__head>div{display:grid;gap:3px;}.pd-duty-unit__head>div span{color:var(--pd-blue-2);font-weight:850;}.pd-duty-unit__head strong{color:var(--pd-text);}
.pd-duty-members { display:grid;gap:8px; }.pd-duty-members>div{display:flex;align-items:center;gap:9px;}.pd-duty-members>div>span:last-child{display:grid;}.pd-duty-members strong{color:var(--pd-text);font-size:.78rem;}.pd-duty-members small{color:var(--pd-muted);font-size:.68rem;}.pd-duty-avatar{width:32px;height:32px;display:grid;place-content:center;border-radius:9px;background:color-mix(in srgb,var(--pd-blue-2) 14%,var(--pd-surface));color:var(--pd-blue-2);font-weight:900;}
.pd-duty-join summary { cursor:pointer;color:var(--pd-blue-2);font-weight:800; }.pd-duty-join form{margin-top:10px;display:grid;gap:8px;}
.pd-shop-head { padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(120deg,color-mix(in srgb,#8b5cf6 8%,var(--pd-surface)),var(--pd-surface)); }
.pd-wallet { min-width:210px;padding:13px 16px;display:grid;gap:3px;border:1px solid color-mix(in srgb,#8b5cf6 30%,var(--pd-line));border-radius:13px;background:var(--pd-surface-2); }.pd-wallet span{color:var(--pd-muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:850;}.pd-wallet strong{color:var(--pd-text);font-size:1.25rem;}.pd-wallet small{color:#8b5cf6;}
.pd-shop-layout { min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 330px;align-items:start;gap:16px; }.pd-shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.pd-product { min-width:0;overflow:hidden;border:1px solid var(--pd-line);border-radius:15px;background:var(--pd-surface);box-shadow:var(--pd-shadow); }.pd-product.is-disabled{opacity:.65;}.pd-product__image{aspect-ratio:1;overflow:hidden;background:var(--pd-surface-3);}.pd-product__image img{width:100%;height:100%;object-fit:cover;}.pd-product__body{position:relative;padding:14px;display:grid;gap:8px;}.pd-product__body h3{margin:0;color:var(--pd-text);}.pd-product__body p{min-height:2.8em;margin:0;color:var(--pd-muted);font-size:.72rem;}.pd-product__body>strong{color:#8b5cf6;}.pd-product__stock{position:absolute;right:12px;top:-32px;padding:4px 8px;border-radius:999px;background:rgba(9,20,34,.82);color:#fff;font-size:.66rem;font-weight:800;}.pd-product__buy{display:grid;grid-template-columns:64px 1fr;gap:7px;}.pd-product__admin{padding-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:7px;border-top:1px solid var(--pd-line);}.pd-product__admin label{display:grid;gap:4px;color:var(--pd-muted);font-size:.65rem;}.pd-check{display:flex!important;align-items:center;gap:5px;}
.pd-cart { position:sticky;top:98px;padding:16px;display:grid;gap:14px; }.pd-cart>header{display:flex;justify-content:space-between;align-items:center;}.pd-cart h2{margin:0;color:var(--pd-text);}.pd-cart>header span{color:var(--pd-muted);}.pd-cart form{display:grid;gap:9px;}.pd-cart__item{display:grid;grid-template-columns:minmax(0,1fr) 70px;align-items:center;gap:8px;}.pd-cart__item>span{display:grid;}.pd-cart__item strong{color:var(--pd-text);}.pd-cart__item small{color:var(--pd-muted);}.pd-cart__total{padding-top:13px;display:flex;justify-content:space-between;border-top:1px solid var(--pd-line);color:var(--pd-text);}.pd-btn--wide{width:100%;}
.pd-shop-admin { overflow:hidden; }.pd-shop-admin form{padding:18px;display:grid;grid-template-columns:1fr 1.4fr .55fr .55fr 1fr 1fr auto;align-items:end;gap:10px;}.pd-shop-admin label{display:grid;gap:5px;color:var(--pd-muted);font-size:.7rem;font-weight:750;}.pd-shop-admin small{font-size:.58rem;}
.pd-receipt { width:min(100%,720px);margin:auto;padding:22px;display:grid;gap:12px;border-top:5px solid #8b5cf6; }.pd-receipt header,.pd-receipt footer,.pd-receipt__line{display:flex;align-items:center;justify-content:space-between;gap:14px;}.pd-receipt header>div{display:grid;}.pd-receipt header span,.pd-receipt__buyer{color:var(--pd-muted);}.pd-receipt header strong,.pd-receipt__line strong,.pd-receipt footer strong{color:var(--pd-text);}.pd-receipt__line{padding:10px 0;border-bottom:1px dashed var(--pd-line);color:var(--pd-text);}.pd-receipt footer{padding-top:10px;font-size:1.15rem;}.pd-receipt__notice{padding:13px;border-radius:10px;background:color-mix(in srgb,var(--pd-blue-2) 9%,var(--pd-surface-2));color:var(--pd-text);font-size:.78rem;}
@media(max-width:1350px){.pd-db-member{grid-template-columns:48px 48px minmax(145px,1fr) minmax(115px,.8fr) minmax(120px,.8fr) minmax(140px,.8fr)}.pd-db-member__badge,.pd-db-member__dates,.pd-db-member__points,.pd-db-member__status{display:none}.pd-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.pd-duty-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pd-shop-admin form{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:900px){.pd-duty-current{grid-template-columns:1fr auto}.pd-duty-end-form,.pd-duty-start-form{grid-template-columns:1fr 1fr}.pd-shop-layout{grid-template-columns:1fr}.pd-cart{position:static}.pd-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pd-duty-grid{grid-template-columns:1fr}.pd-db-member__division{grid-column:1/-1}.pd-shop-admin form{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.pd-duty-hero,.pd-shop-head{align-items:flex-start;flex-direction:column}.pd-duty-current,.pd-duty-end-form,.pd-duty-start-form,.pd-shop-admin form{grid-template-columns:1fr}.pd-duty-timer{justify-self:start}.pd-shop-grid{grid-template-columns:1fr}.pd-wallet{width:100%;box-sizing:border-box}}

.pd-page-service { max-width:1480px;margin:0 auto;padding-bottom:34px; }
.pd-duty-hero { position:relative;isolation:isolate;overflow:hidden;min-height:150px;padding:26px 30px;border-color:color-mix(in srgb,var(--pd-blue-2) 22%,var(--pd-line));background:linear-gradient(125deg,color-mix(in srgb,var(--pd-blue-2) 13%,var(--pd-surface)),var(--pd-surface) 58%,color-mix(in srgb,#54a3ab 8%,var(--pd-surface))); }
.pd-duty-hero::after { content:"";position:absolute;z-index:-1;right:-70px;bottom:-110px;width:310px;height:310px;border:52px solid color-mix(in srgb,var(--pd-blue-2) 7%,transparent);border-radius:50%; }
.pd-duty-hero__copy { min-width:0;display:grid;gap:3px; }
.pd-duty-hero__stats { margin-top:16px;display:flex;flex-wrap:wrap;gap:9px; }
.pd-duty-hero__stats>span { min-width:112px;padding:9px 12px;display:grid;gap:2px;border:1px solid color-mix(in srgb,var(--pd-blue-2) 18%,var(--pd-line));border-radius:11px;background:color-mix(in srgb,var(--pd-surface) 82%,transparent); }
.pd-duty-hero__stats small { color:var(--pd-muted);font-size:.6rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase; }
.pd-duty-hero__stats strong { color:var(--pd-text);font-size:.78rem; }
.pd-duty-current { position:relative;overflow:hidden;padding:23px 24px;grid-template-columns:minmax(260px,1fr) minmax(210px,.6fr) auto;border-left:0;background:linear-gradient(110deg,color-mix(in srgb,var(--pd-good) 6%,var(--pd-surface)),var(--pd-surface) 45%); }
.pd-duty-current::before { content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(var(--pd-good),#54a3ab); }
.pd-duty-current__identity,.pd-duty-current__time { min-width:0;display:grid;gap:6px; }
.pd-duty-status { width:max-content;display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--pd-good) 12%,var(--pd-surface));color:var(--pd-good);font-size:.65rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em; }
.pd-duty-current__time { padding:11px 15px;border:1px solid var(--pd-line);border-radius:13px;background:var(--pd-surface-2); }
.pd-duty-current__time small,.pd-duty-current__time>span { color:var(--pd-muted);font-size:.63rem;font-weight:700; }
.pd-duty-current__time>span { color:var(--pd-blue-2); }
.pd-duty-current__actions { min-width:190px;display:grid;gap:8px;align-content:center; }
.pd-duty-watcher { display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--pd-good) 26%,var(--pd-line));border-radius:999px;background:color-mix(in srgb,var(--pd-good) 8%,var(--pd-surface));color:var(--pd-muted);font-size:.62rem;font-weight:800; }
.pd-duty-watcher i { width:7px;height:7px;border-radius:50%;background:var(--pd-good);box-shadow:0 0 0 4px color-mix(in srgb,var(--pd-good) 12%,transparent); }
.pd-duty-watcher.is-error { border-color:color-mix(in srgb,var(--pd-bad) 35%,var(--pd-line));color:var(--pd-bad); }
.pd-duty-watcher.is-error i { background:var(--pd-bad);box-shadow:0 0 0 4px color-mix(in srgb,var(--pd-bad) 12%,transparent); }
[data-duty-notify-enable].is-enabled { border-color:color-mix(in srgb,var(--pd-good) 35%,var(--pd-line));color:var(--pd-good); }
.pd-duty-launch { overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease; }
.pd-duty-launch[open] { border-color:color-mix(in srgb,var(--pd-blue-2) 32%,var(--pd-line)); }
.pd-duty-launch>summary { min-height:76px;padding:14px 19px;display:grid;grid-template-columns:42px minmax(0,1fr) auto 20px;align-items:center;gap:13px;cursor:pointer;list-style:none;background:linear-gradient(110deg,color-mix(in srgb,var(--pd-blue-2) 7%,var(--pd-surface)),var(--pd-surface)); }
.pd-duty-launch>summary::-webkit-details-marker { display:none; }
.pd-duty-launch>summary:hover { background:linear-gradient(110deg,color-mix(in srgb,var(--pd-blue-2) 11%,var(--pd-surface)),var(--pd-surface)); }
.pd-duty-launch__icon { width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,var(--pd-blue-2),#54a3ab);color:#fff;font-size:1.45rem;font-weight:500;box-shadow:0 8px 20px color-mix(in srgb,var(--pd-blue-2) 24%,transparent); }
.pd-duty-launch>summary>span:nth-child(2) { display:grid;gap:2px; }
.pd-duty-launch>summary small { color:var(--pd-muted);font-size:.61rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase; }
.pd-duty-launch>summary strong { color:var(--pd-text);font-size:.94rem; }
.pd-duty-launch>summary em { color:var(--pd-blue-2);font-size:.7rem;font-style:normal;font-weight:800; }
.pd-duty-launch>summary>i { width:9px;height:9px;border-right:2px solid var(--pd-muted);border-bottom:2px solid var(--pd-muted);transform:rotate(45deg);transition:transform .25s ease; }
.pd-duty-launch[open]>summary>i { transform:rotate(225deg); }
.pd-duty-launch__content { border-top:1px solid var(--pd-line);animation:pdDutyReveal .32s ease both; }
.pd-duty-launch__content>header { padding:20px 22px 0; }
.pd-duty-launch__content h2 { margin:4px 0 0;color:var(--pd-text); }
.pd-duty-start-form { grid-template-columns:minmax(180px,.7fr) minmax(260px,1.15fr) minmax(320px,1.4fr) auto;padding:18px 22px 22px; }
.pd-duty-proof { min-width:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:8px; }
.pd-duty-proof label { min-width:0; }
.pd-duty-proof>span { padding-bottom:12px;color:var(--pd-muted);font-size:.62rem;font-weight:750;text-transform:uppercase; }
.pd-duty-start-submit { min-height:44px;white-space:nowrap; }
.pd-duty-units { overflow:hidden; }
.pd-duty-units>header { background:linear-gradient(100deg,color-mix(in srgb,var(--pd-blue-2) 6%,var(--pd-surface)),var(--pd-surface)); }
.pd-duty-unit { position:relative;overflow:hidden;padding:17px;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.pd-duty-unit::before { content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--pd-blue-2),#54a3ab);opacity:.72; }
.pd-duty-unit:hover { transform:translateY(-2px);border-color:color-mix(in srgb,var(--pd-blue-2) 34%,var(--pd-line));box-shadow:0 12px 28px color-mix(in srgb,#071527 11%,transparent); }
.pd-duty-check { position:fixed;z-index:10050;top:88px;left:50%;width:min(calc(100% - 28px),760px);padding:14px 16px;display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:14px;transform:translateX(-50%);border:1px solid color-mix(in srgb,#f5b942 55%,var(--pd-line));border-radius:16px;background:color-mix(in srgb,var(--pd-surface) 94%,#f5b942);box-shadow:0 20px 55px rgba(5,15,28,.28);animation:pdDutyCheckIn .38s cubic-bezier(.2,.8,.2,1) both; }
.pd-duty-check[hidden] { display:none!important; }
.pd-duty-check__pulse { width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,#f5b942 14%,var(--pd-surface)); }
.pd-duty-check__pulse span { width:13px;height:13px;border-radius:50%;background:#f5b942;box-shadow:0 0 0 0 rgba(245,185,66,.48);animation:pdDutyPulse 1.45s infinite; }
.pd-duty-check__body { min-width:0;display:grid;gap:2px; }
.pd-duty-check__eyebrow { color:#d59618;font-size:.6rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase; }
.pd-duty-check__body strong { color:var(--pd-text);font-size:.94rem; }
.pd-duty-check__body small { color:var(--pd-muted);font-size:.68rem; }
.pd-duty-check.is-error { border-color:color-mix(in srgb,var(--pd-bad) 58%,var(--pd-line));background:color-mix(in srgb,var(--pd-surface) 94%,var(--pd-bad)); }
.pd-duty-check.is-error .pd-duty-check__pulse { background:color-mix(in srgb,var(--pd-bad) 14%,var(--pd-surface)); }
.pd-duty-check.is-error .pd-duty-check__pulse span { background:var(--pd-bad);animation:none; }
.pd-duty-check.is-error .pd-duty-check__eyebrow { color:var(--pd-bad); }
@keyframes pdDutyReveal { from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none} }
@keyframes pdDutyCheckIn { from{opacity:0;transform:translate(-50%,-24px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)} }
@keyframes pdDutyPulse { 70%{box-shadow:0 0 0 12px rgba(245,185,66,0)}100%{box-shadow:0 0 0 0 rgba(245,185,66,0)} }
@media(max-width:1100px){.pd-duty-start-form{grid-template-columns:1fr 1fr}.pd-duty-proof{grid-column:1/-1}.pd-duty-start-submit{grid-column:1/-1}.pd-duty-current{grid-template-columns:1fr auto}.pd-duty-current__time{justify-self:end}}
@media(max-width:700px){.pd-duty-hero{padding:21px}.pd-duty-hero__stats{display:grid;grid-template-columns:1fr 1fr}.pd-duty-hero__stats>span:last-child{grid-column:1/-1}.pd-duty-current{grid-template-columns:1fr}.pd-duty-current__time{justify-self:stretch}.pd-duty-launch>summary{grid-template-columns:42px 1fr 18px}.pd-duty-launch>summary em{display:none}.pd-duty-start-form,.pd-duty-proof{grid-template-columns:1fr}.pd-duty-proof>span{padding:0;text-align:center}.pd-duty-check{top:74px;grid-template-columns:38px 1fr;padding:12px}.pd-duty-check__pulse{width:38px;height:38px}.pd-duty-check .pd-btn{grid-column:1/-1;width:100%}}
@media print{.sidebar,.pd-shop-head,.pd-shop-layout,.pd-shop-admin,.main-text{display:none!important}.pd-receipt{box-shadow:none;border:1px solid #ddd}.pd-receipt button{display:none}}

/* v7 – egységes állományi főoldal, adatbázis és egysoros navigáció */
body.pd-internal-body:not(.pd-portal-body) .sidebar {
  grid-template-columns: auto minmax(0,1fr) auto !important;
  grid-template-areas: "brand menu account" !important;
  align-items: center;
  gap: 13px !important;
}
body.pd-internal-body:not(.pd-portal-body) .sidebar-rows {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 5px !important;
  min-width: 0;
}
body.pd-internal-body:not(.pd-portal-body) .sidebar-rows > a,
body.pd-internal-body:not(.pd-portal-body) .pd-division-menu { flex: 1 1 auto; min-width: 0; position: relative; }
body.pd-internal-body:not(.pd-portal-body) .sidebar-row { min-width: 0 !important; padding-inline: 8px !important; white-space: nowrap; }
body.pd-internal-body:not(.pd-portal-body) .sidebar-row[style*="background-color"],
body.pd-internal-body:not(.pd-portal-body) .sidebar-row.is-current {
  background: color-mix(in srgb,var(--pd-blue-2) 18%,var(--pd-surface)) !important;
  color: var(--pd-text) !important;
}
body.pd-internal-body:not(.pd-portal-body) .sidebar-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pd-division-menu > summary { list-style: none; cursor: pointer; }
.pd-division-menu > summary::-webkit-details-marker { display: none; }
.pd-division-menu > summary i { margin-left: 2px; color: var(--pd-muted); font-style: normal; transition: transform .18s ease; }
.pd-division-menu[open] > summary i { transform: rotate(180deg); }
.pd-division-menu__panel { position: absolute; z-index: 120; top: calc(100% + 10px); left: 50%; width: 260px; padding: 8px; display: grid; gap: 5px; border: 1px solid var(--pd-line); border-radius: 14px; background: var(--pd-surface); box-shadow: 0 18px 48px rgba(3,20,42,.22); transform: translateX(-50%); }
.pd-division-menu__panel a { min-height: 44px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border-radius: 10px; color: var(--pd-text); text-decoration: none; font-size: .78rem; font-weight: 750; }
.pd-division-menu__panel a:hover,.pd-division-menu__panel a.is-active { background: color-mix(in srgb,var(--pd-blue-2) 12%,var(--pd-surface)); color: var(--pd-blue-2); }
.pd-division-menu__panel img { width: 24px; height: 24px; object-fit: contain; }

.pd-page-main .pd-home-profile { width: 100%; margin: 0 0 15px; padding: 17px; display: grid; gap: 14px; border: 1px solid var(--pd-line); border-radius: 18px; background: var(--pd-surface); box-shadow: var(--pd-shadow); }
.pd-home-profile__identity { min-width: 0; padding: 15px; display: flex; align-items: center; gap: 15px; border: 1px solid color-mix(in srgb,#54a3ab 55%,var(--pd-line)); border-left: 4px solid #54a3ab; border-radius: 13px; background: linear-gradient(110deg,color-mix(in srgb,#54a3ab 7%,var(--pd-surface)),var(--pd-surface)); }
.pd-home-profile__identity img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 13px; object-fit: cover; }
.pd-home-profile__identity div { min-width: 0; }
.pd-home-profile__identity span { color: #54a3ab; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.pd-home-profile__identity h1 { margin: 4px 0; color: var(--pd-text); font-size: clamp(1.25rem,2vw,1.65rem); }
.pd-home-profile__identity p { margin: 0; color: var(--pd-muted); font-size: .8rem; overflow-wrap: anywhere; }
.pd-home-profile__stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.pd-home-profile__stats > div { min-width: 0; padding: 14px 15px; display: grid; gap: 5px; border: 1px solid var(--pd-line); border-radius: 12px; background: var(--pd-surface-2); }
.pd-home-profile__stats span { color: var(--pd-muted); font-size: .7rem; font-weight: 750; }
.pd-home-profile__stats strong { color: var(--pd-text); font-size: 1rem; overflow-wrap: anywhere; }

.pd-page-database .pd-db-title { justify-content: flex-start !important; text-transform: uppercase; }
.pd-page-database .pd-db-title > span { color: var(--pd-blue-2); }
.pd-db-overview { margin: 0 0 14px; padding: 18px; display: flex; align-items: center; gap: 22px; border: 1px solid var(--pd-line); border-radius: 17px; background: var(--pd-surface); box-shadow: var(--pd-shadow); }
.pd-db-overview__heading { flex: 0 0 auto; display: grid; gap: 2px; }
.pd-db-overview__heading span { color: var(--pd-muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pd-db-overview__heading strong { color: var(--pd-text); font-size: 1.55rem; }
.pd-db-overview__chips { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-db-chip { padding: 7px 11px; border: 1px solid var(--pd-line); border-radius: 999px; background: var(--pd-surface-2); color: var(--pd-muted); font-size: .75rem; font-weight: 750; }
.pd-db-chip b { margin-right: 4px; color: var(--pd-text); }
.pd-db-chip--command { border-color: color-mix(in srgb,#54a3ab 55%,var(--pd-line)); color: #54a3ab; }
.pd-db-chip--chief { border-color: color-mix(in srgb,#0278ff 55%,var(--pd-line)); color: #0278ff; }
.pd-db-chip--officer,.pd-db-chip--member { border-color: color-mix(in srgb,#3498db 52%,var(--pd-line)); color: #3498db; }
.pd-db-chip--inactive { color: var(--pd-bad); }
.pd-db-search { margin: 0 0 15px; display: flex; gap: 9px; }
.pd-db-search .pd-input { flex: 1; }
.pd-db-groups { display: grid; gap: 16px; }
.pd-db-group { overflow: hidden; border: 1px solid var(--pd-line); border-radius: 17px; background: var(--pd-surface); box-shadow: var(--pd-shadow); --group-color:#3498db; }
.pd-db-group--command { --group-color:#54a3ab; }
.pd-db-group--chief { --group-color:#0278ff; }
.pd-db-group--officer,.pd-db-group--member { --group-color:#3498db; }
.pd-db-group > header { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--pd-line); border-left: 4px solid var(--group-color); background: color-mix(in srgb,var(--group-color) 7%,var(--pd-surface)); }
.pd-db-group > header h2 { margin: 0; color: var(--group-color); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; }
.pd-db-group > header span { color: var(--pd-muted); font-size: .74rem; font-weight: 800; }
.pd-db-member-list { padding: 9px; display: grid; gap: 7px; }
.pd-db-member { min-width: 0; min-height: 78px; padding: 10px 12px; display: grid; grid-template-columns: 52px 52px minmax(150px,1.25fr) minmax(125px,.8fr) minmax(92px,.55fr) minmax(170px,1fr) 75px minmax(92px,.55fr); gap: 11px; align-items: center; border: 1px solid var(--pd-line); border-left: 3px solid var(--group-color); border-radius: 13px; background: var(--pd-surface-2); color: var(--pd-text); text-decoration: none; transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.pd-db-member:hover { transform: translateY(-1px); border-color: color-mix(in srgb,var(--group-color) 55%,var(--pd-line)); box-shadow: 0 9px 24px rgba(10,40,75,.08); }
.pd-db-member__avatar,.pd-db-member__rank-image { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; }
.pd-db-member__rank-image { padding: 3px; box-sizing: border-box; background: color-mix(in srgb,var(--group-color) 8%,var(--pd-surface)); object-fit: contain; }
.pd-db-member__identity,.pd-db-member__rank,.pd-db-member__badge,.pd-db-member__points,.pd-db-member__status { min-width: 0; display: grid; gap: 3px; }
.pd-db-member strong { color: var(--pd-text); overflow-wrap: anywhere; }
.pd-db-member__identity > strong { color: var(--group-color); }
.pd-db-member span { color: var(--pd-muted); font-size: .7rem; }
.pd-db-member__rank > span,.pd-db-member__badge > span,.pd-db-member__points > span { font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pd-db-member__dates { min-width: 0; display: grid; gap: 5px; }
.pd-db-member__status { grid-template-columns: 8px minmax(0,1fr); align-items: center; }
.pd-db-member__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--pd-muted); }
.pd-db-member__status.is-online i { background: var(--pd-good); box-shadow: 0 0 0 4px color-mix(in srgb,var(--pd-good) 14%,transparent); }

@media(max-width:1500px) {
  body.pd-internal-body:not(.pd-portal-body) .sidebar-text { font-size: .68rem; }
  body.pd-internal-body:not(.pd-portal-body) .sidebar-row { padding-inline: 6px !important; }
  .pd-db-member { grid-template-columns: 48px 48px minmax(150px,1.2fr) minmax(120px,.8fr) 90px minmax(140px,.9fr); }
  .pd-db-member__points,.pd-db-member__status { padding: 7px; border-radius: 8px; background: var(--pd-surface); }
}
@media(max-width:1100px) {
  body.pd-internal-body:not(.pd-portal-body) .sidebar { grid-template-columns: auto minmax(0,1fr) auto !important; grid-template-areas: "brand menu account" !important; }
  body.pd-internal-body:not(.pd-portal-body) .sidebar-text { display: none; }
  body.pd-internal-body:not(.pd-portal-body) .sidebar-row { justify-content: center !important; }
  .pd-db-member { grid-template-columns: 48px 48px minmax(150px,1fr) minmax(120px,.75fr); }
  .pd-db-member__badge,.pd-db-member__dates,.pd-db-member__points,.pd-db-member__status { padding: 8px; border-radius: 8px; background: var(--pd-surface); }
}
@media(max-width:760px) {
  .pd-home-profile__stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pd-db-overview { align-items: flex-start; flex-direction: column; }
  .pd-db-search { flex-direction: column; }
  .pd-db-member { grid-template-columns: 48px minmax(0,1fr); }
  .pd-db-member__rank-image { grid-column: 1; grid-row: 2; }
  .pd-db-member__rank,.pd-db-member__badge,.pd-db-member__dates,.pd-db-member__points,.pd-db-member__status { grid-column: 1 / -1; }
  .pd-division-menu__panel { left: 0; transform: none; }
}

/* v8 – jármű-hozzáadás és jogosultságalapú igénylés */
.pd-page-leader .add-bg {
  color: var(--pd-text) !important;
  white-space: normal !important;
}
.pd-page-leader .add-grid > div:not(.pd-form-section-title):not(.pd-vehicle-add-actions) {
  color: var(--pd-muted) !important;
  font-weight: 750;
}
.pd-page-leader .add-grid :is(input,select) {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  color-scheme: light;
  background: var(--pd-surface-2) !important;
  color: var(--pd-text) !important;
  -webkit-text-fill-color: var(--pd-text);
}
[data-theme="dark"] .pd-page-leader .add-grid :is(input,select) { color-scheme: dark; }
.pd-vehicle-add-form {
  width: 100%;
  padding: 3px !important;
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 14px !important;
}
.pd-vehicle-add-form .pd-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--pd-text);
}
.pd-vehicle-add-form .pd-field > span {
  color: var(--pd-muted);
  font-size: .76rem;
  font-weight: 800;
}
.pd-vehicle-add-form .pd-form-section-title {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 13px 2px 7px;
  border-bottom: 1px solid var(--pd-line);
  color: var(--pd-text);
  font-size: .92rem;
  font-weight: 850;
}
.pd-vehicle-add-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 5px;
}
.pd-vehicle-add-actions .button-green { min-width: 190px; margin: 0 !important; }

.pd-vehicle-request-page {
  overflow: hidden;
  padding: 22px !important;
  background: linear-gradient(145deg,var(--pd-surface),color-mix(in srgb,var(--pd-blue-2) 4%,var(--pd-surface))) !important;
  box-shadow: var(--pd-shadow);
}
.pd-request-summary {
  margin: 16px 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: var(--pd-surface-2);
}
.pd-request-summary > span {
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border-radius: 10px;
  background: var(--pd-surface);
}
.pd-request-summary small { color: var(--pd-muted); font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pd-request-summary strong { color: var(--pd-text); overflow-wrap: anywhere; }
.pd-request-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
.pd-request-vehicle {
  position: relative;
  overflow: hidden;
  padding: 18px !important;
  background: var(--pd-surface-2) !important;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.pd-request-vehicle::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--pd-blue-2); }
.pd-request-vehicle:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--pd-blue-2) 42%,var(--pd-line)); box-shadow: 0 14px 30px rgba(8,42,77,.09); }
.pd-request-vehicle.is-disabled::before { background: var(--pd-bad); }
.pd-request-vehicle__head strong { color: var(--pd-text); font-size: 1rem; }
.pd-requirement-chips { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-requirement-chips span { padding: 6px 9px; border: 1px solid color-mix(in srgb,var(--pd-blue-2) 28%,var(--pd-line)); border-radius: 999px; background: color-mix(in srgb,var(--pd-blue-2) 7%,var(--pd-surface)); color: var(--pd-blue-2); font-size: .65rem; font-weight: 800; }
.pd-request-empty { grid-column: 1 / -1; background: var(--pd-surface-2); }

@media(max-width:820px) {
  .pd-vehicle-add-form,.pd-request-grid { grid-template-columns: 1fr !important; }
  .pd-request-summary { grid-template-columns: 1fr; }
}

/* v9 – jelentésnézetek és leader fegyverbejelentés-kezelő */
.pd-page-forms .pd-report-main-tabs > a { flex: 1 1 190px; }
.pd-page-forms .pd-report-main-tabs .nav-active { box-shadow: 0 8px 20px color-mix(in srgb,var(--pd-blue-2) 22%,transparent); }
.pd-weapon-admin-search { width: 100%; margin-bottom: 14px; }
.pd-weapon-admin-list { display: grid; gap: 12px; }
.pd-weapon-admin-row {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  align-items: end;
  border: 1px solid var(--pd-line);
  border-left: 4px solid var(--pd-blue-2);
  border-radius: 14px;
  background: var(--pd-surface-2);
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.pd-weapon-admin-row:hover { transform: translateY(-1px); border-color: color-mix(in srgb,var(--pd-blue-2) 45%,var(--pd-line)); box-shadow: 0 10px 28px rgba(7,35,68,.09); }
.pd-weapon-admin-row > label,.pd-weapon-admin-row__meta { min-width: 0; display: grid; gap: 6px; }
.pd-weapon-admin-row > label > span,.pd-weapon-admin-row__meta > span { color: var(--pd-muted); font-size: .66rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.pd-weapon-admin-row__meta strong { color: var(--pd-text); overflow-wrap: anywhere; }
.pd-weapon-admin-row__meta small { color: var(--pd-muted); }
.pd-weapon-admin-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pd-weapon-admin-row__actions .pd-btn { min-width: 120px; }
.pd-weapon-admin-row__actions .pd-icon-button { flex: 0 0 auto; }
.pd-weapon-admin-row[hidden] { display: none !important; }

@media(max-width:1050px) {
  .pd-weapon-admin-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .pd-weapon-admin-row { grid-template-columns: 1fr; }
  .pd-weapon-admin-row__actions { justify-content: stretch; }
  .pd-weapon-admin-row__actions .pd-btn { flex: 1; }
}

/* v11 – modern névváltás, inaktivitás és Login névváltás */
.pd-page-requests .pd-request-type-tabs {
  width: 100%;
  margin-bottom: 16px;
  padding: 7px;
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
  border: 1px solid var(--pd-line);
  border-radius: 15px;
  background: var(--pd-surface);
  box-shadow: var(--pd-shadow);
}
.pd-page-requests .pd-request-type-tabs > a { min-width: 0; margin: 0 !important; text-decoration: none; }
.pd-page-requests .pd-request-type-tabs > a > div {
  width: 100% !important;
  min-height: 43px;
  margin: 0 !important;
  padding: 10px 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: var(--pd-muted) !important;
  background: transparent !important;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  transition: color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.pd-page-requests .pd-request-type-tabs > a:hover > div { color: var(--pd-text) !important; background: var(--pd-surface-2) !important; }
.pd-page-requests .pd-request-type-tabs > a > .nav-active {
  color: #fff !important;
  background: linear-gradient(135deg,var(--pd-blue),var(--pd-blue-2)) !important;
  box-shadow: 0 8px 20px color-mix(in srgb,var(--pd-blue-2) 24%,transparent);
}
.pd-page-requests .pd-request-panel {
  width: min(100%,980px);
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid var(--pd-line);
  border-radius: 20px;
  background: linear-gradient(145deg,var(--pd-surface),color-mix(in srgb,var(--pd-blue-2) 3%,var(--pd-surface)));
  box-shadow: var(--pd-shadow);
  animation: pdRequestPanelIn .28s ease both;
}
@keyframes pdRequestPanelIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.pd-request-panel__heading {
  padding: 19px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--pd-line);
  background: color-mix(in srgb,var(--pd-blue-2) 6%,var(--pd-surface));
}
.pd-request-panel__heading h2 { margin: 3px 0 0; color: var(--pd-text); font-size: clamp(1.15rem,2vw,1.45rem); }
.pd-request-panel__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb,var(--pd-blue-2) 34%,var(--pd-line));
  border-radius: 13px;
  color: var(--pd-blue-2);
  background: color-mix(in srgb,var(--pd-blue-2) 9%,var(--pd-surface));
  font-size: .9rem;
  font-weight: 900;
}
.pd-page-requests .pd-request-modern-form { margin: 0; padding: 20px; }
.pd-page-requests .pd-request-form-card.nv-cont { width: 100% !important; max-width: none; margin: 0 !important; }
.pd-page-requests .pd-request-form-card .nv-bg {
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.pd-page-requests .pd-request-form-card .pd-request-status-card,
.pd-page-requests .pd-request-form-card .pd-request-info-card {
  grid-column: 1 / -1;
  min-height: 70px;
  padding: 15px 17px;
  display: block !important;
  border: 1px solid color-mix(in srgb,var(--pd-blue-2) 28%,var(--pd-line));
  border-left: 4px solid var(--pd-blue-2);
  border-radius: 13px;
  color: var(--pd-muted);
  background: color-mix(in srgb,var(--pd-blue-2) 7%,var(--pd-surface-2));
  font-size: .8rem;
  line-height: 1.65;
}
.pd-page-requests .pd-request-status-card > span { margin-top: 4px; display: block !important; color: var(--pd-text); font-weight: 750; }
.pd-page-requests .pd-request-status-card span span { display: inline !important; color: var(--pd-good) !important; }
.pd-page-requests .pd-request-status-card > .pd-request-status-value { color: var(--pd-good) !important; }
.pd-page-requests .pd-request-form-card .pd-request-info-card { border-left-color: var(--pd-good); }
.pd-page-requests .pd-request-form-card .pd-request-field {
  min-width: 0;
  padding: 14px;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  align-content: start;
  border: 1px solid var(--pd-line);
  border-radius: 13px;
  background: var(--pd-surface-2);
}
.pd-page-requests .pd-request-form-card .pd-request-field--wide { grid-column: 1 / -1; }
.pd-page-requests .pd-request-form-card .nv-row1 { color: var(--pd-text); font-size: .75rem; font-weight: 850; }
.pd-page-requests .pd-request-form-card .nv-row-input {
  width: 100% !important;
  min-width: 0;
  min-height: 46px;
  margin: 0 !important;
  padding: 11px 13px;
  border: 1px solid var(--pd-line) !important;
  border-radius: 10px !important;
  outline: none;
  color: var(--pd-text) !important;
  -webkit-text-fill-color: var(--pd-text);
  background: var(--pd-surface) !important;
  color-scheme: light;
  transition: border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
[data-theme="dark"] .pd-page-requests .pd-request-form-card .nv-row-input { color-scheme: dark; }
.pd-page-requests .pd-request-form-card .nv-row-input:focus { border-color: var(--pd-blue-2) !important; box-shadow: 0 0 0 3px color-mix(in srgb,var(--pd-blue-2) 15%,transparent) !important; }
.pd-page-requests .pd-request-form-card textarea.nv-row-input { min-height: 112px; resize: vertical; }
.pd-page-requests .pd-request-submit {
  width: 100% !important;
  min-height: 48px;
  margin: 14px 0 0 !important;
  border-radius: 11px !important;
  font-weight: 850;
  box-shadow: 0 9px 22px color-mix(in srgb,var(--pd-blue-2) 20%,transparent);
}

@media(max-width:760px) {
  .pd-page-requests .pd-request-type-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pd-page-requests .pd-request-form-card .nv-bg { grid-template-columns: 1fr; }
  .pd-page-requests .pd-request-form-card .pd-request-field--wide { grid-column: auto; }
}
@media(max-width:480px) {
  .pd-page-requests .pd-request-type-tabs { grid-template-columns: 1fr; }
  .pd-request-panel__heading,.pd-page-requests .pd-request-modern-form { padding: 15px; }
}

/* v12 – alosztályhoz rendelt járművek */
.pd-page-vehicles .pd-fleet-stats { flex-wrap: wrap; justify-content: flex-end; }
.pd-page-vehicles .pd-fleet-section { position: relative; overflow: hidden; }
.pd-page-vehicles .pd-fleet-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--pd-blue-2),color-mix(in srgb,var(--pd-blue-2) 25%,transparent));
}
.pd-division-vehicle-badge {
  max-width: 100%;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb,var(--pd-blue-2) 34%,var(--pd-line));
  border-radius: 999px;
  color: var(--pd-blue-2);
  background: color-mix(in srgb,var(--pd-blue-2) 8%,var(--pd-surface));
  font-size: .65rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}
.pd-request-vehicle__identity { min-width: 0; display: grid; justify-items: end; gap: 7px; }
.pd-request-vehicle__identity .pd-license-plate { max-width: 100%; }
.pd-vehicle-division-panel { align-content: start; }
.pd-vehicle-division-form { margin-top: 13px; }
.pd-vehicle-division-form select { min-width: min(100%,280px); flex: 1 1 260px; }
.pd-page-leader .pd-vehicle-add-form > .pd-field:has(select[name="addVehicleDivision"]) {
  border-color: color-mix(in srgb,var(--pd-blue-2) 30%,var(--pd-line));
  border-radius: 12px;
  background: color-mix(in srgb,var(--pd-blue-2) 5%,var(--pd-surface));
}

@media(max-width:720px) {
  .pd-page-vehicles .pd-fleet-stats { justify-content: flex-start; }
  .pd-request-vehicle__identity { justify-items: start; }
  .pd-request-vehicle__head { align-items: flex-start; flex-direction: column; }
}

/* v13 – biztonságos járműtörlés */
.pd-page-vehicles .pd-vehicle-danger-zone {
  border-color: color-mix(in srgb,var(--pd-bad) 38%,var(--pd-line));
  background: linear-gradient(135deg,color-mix(in srgb,var(--pd-bad) 8%,var(--pd-surface)),var(--pd-surface) 68%);
  box-shadow: 0 14px 34px color-mix(in srgb,var(--pd-bad) 8%,transparent);
}
.pd-page-vehicles .pd-vehicle-danger-zone .pd-kicker,
.pd-page-vehicles .pd-vehicle-danger-zone h2 { color: var(--pd-bad); }
.pd-page-vehicles .pd-vehicle-delete-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
}
.pd-page-vehicles .pd-vehicle-delete-form > span {
  max-width: 660px;
  color: var(--pd-muted);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.55;
}
.pd-button--danger {
  flex: 0 0 auto;
  border-color: color-mix(in srgb,var(--pd-bad) 82%,#000) !important;
  color: #fff !important;
  background: var(--pd-bad) !important;
  box-shadow: 0 9px 20px color-mix(in srgb,var(--pd-bad) 22%,transparent);
}
.pd-button--danger:hover {
  transform: translateY(-1px);
  filter: brightness(.94);
  box-shadow: 0 12px 25px color-mix(in srgb,var(--pd-bad) 30%,transparent);
}

@media(max-width:720px) {
  .pd-page-vehicles .pd-vehicle-delete-form { align-items: stretch; flex-direction: column; }
  .pd-page-vehicles .pd-vehicle-delete-form .pd-button { width: 100%; }
}

/* v14 – profil áttekintő és egységes alosztály-megjelenítés */
.pd-page-profile .index-profile-bg {
  grid-template-columns: minmax(250px,300px) minmax(0,1fr) !important;
  gap: 20px !important;
  padding: 20px !important;
  align-items: stretch !important;
}
.pd-page-profile .profile-left {
  width: 100% !important;
  min-width: 0;
  display: grid !important;
  grid-template-rows: auto auto;
  gap: 12px;
}
.pd-page-profile .index-maininfo-p {
  min-height: 245px !important;
  padding: 25px 18px !important;
  display: grid !important;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border-width: 1px !important;
  background-color: var(--pd-surface-2) !important;
}
.pd-page-profile .index-main-row {
  width: 100% !important;
  min-width: 0;
  padding: 4px !important;
  display: flex !important;
  justify-content: center;
}
.pd-page-profile .index-avatar2 {
  width: 96px !important;
  height: 96px !important;
  margin: 0 0 8px !important;
  border-radius: 24px !important;
  object-fit: cover;
}
.pd-page-profile .welcome-text-nev { color: var(--pd-text) !important; font-size: 1.15rem !important; font-weight: 850; }
.pd-page-profile .welcome-text-alnev { color: var(--pd-blue-2) !important; font-size: 1rem !important; font-weight: 750; }
.pd-page-profile .profile-left2 {
  height: auto !important;
  display: grid !important;
  gap: 10px;
  align-content: start;
}
.pd-page-profile .lastseen-badges { min-width: 0; display: grid !important; gap: 8px; }
.pd-page-profile .lastseen { color: var(--pd-muted) !important; text-align: center; }
.pd-page-profile .badges {
  min-width: 0;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pd-page-profile .badge-template {
  width: auto !important;
  min-height: 28px;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  line-height: 1.2;
}
.pd-page-profile .profile-edit-button { margin: 0; }
.pd-page-profile .profile-edit-button button { width: 100%; min-height: 42px; margin: 0 !important; }
.pd-page-profile .pd-profile-facts {
  align-content: start;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 11px !important;
}
.pd-page-profile .pd-profile-facts .profile-grid-element {
  min-height: 82px;
  padding: 14px 15px !important;
  justify-content: center;
  border-color: color-mix(in srgb,var(--pd-blue-2) 18%,var(--pd-line)) !important;
  background: linear-gradient(145deg,var(--pd-surface-2),color-mix(in srgb,var(--pd-blue-2) 4%,var(--pd-surface))) !important;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.pd-page-profile .pd-profile-facts .profile-grid-element:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb,var(--pd-blue-2) 42%,var(--pd-line)) !important;
  box-shadow: 0 10px 24px color-mix(in srgb,var(--pd-blue-2) 9%,transparent) !important;
}
.pd-page-profile .pd-profile-facts .profile-grid-element1 {
  color: var(--pd-muted) !important;
  font-size: .7rem !important;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.pd-page-profile .pd-profile-facts .profile-grid-element2 {
  color: var(--pd-text) !important;
  font-size: .92rem !important;
  font-weight: 760;
  line-height: 1.35;
}
.pd-page-profile .pd-profile-facts .profile-grid-element2 small {
  margin-top: 3px;
  display: block;
  color: var(--pd-blue-2);
  font-size: .72rem;
  font-weight: 800;
}
.pd-page-profile > .profile-grid {
  margin: 0 0 14px !important;
  padding: 15px !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 16px;
  background: var(--pd-surface) !important;
  box-shadow: var(--pd-shadow);
}
.pd-page-profile .leader-footer-cont {
  width: 100% !important;
  min-width: 0;
  margin-top: 16px;
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px !important;
  align-items: start;
}
.pd-page-profile .leader-footer-cont1 {
  width: 100% !important;
  min-width: 0;
  display: grid !important;
  gap: 15px;
}
.pd-page-profile .leader-panel {
  position: relative;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 18px !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  overflow: visible !important;
}
.pd-page-profile .leader-panel-header {
  position: static !important;
  width: 100%;
  margin: 0 0 5px !important;
  flex: 0 0 100%;
}
.pd-page-profile .leader-panel form { min-width: 0; margin: 0; }
.pd-page-profile .leader-panel :is(input,select,textarea) { min-width: 0; max-width: 100%; color: var(--pd-text) !important; background: var(--pd-surface-2) !important; border-color: var(--pd-line) !important; }
.pd-page-profile .leader-panel-cont,.pd-page-profile .jelveny-wrapper { width: 100% !important; min-width: 0; }
.pd-page-profile .jelveny-row { min-width: 0; display: grid !important; grid-template-columns: minmax(120px,.45fr) minmax(0,1fr); gap: 9px; }

@media(max-width:940px) {
  .pd-page-profile .index-profile-bg { grid-template-columns: 1fr !important; }
  .pd-page-profile .profile-left { grid-template-columns: minmax(220px,300px) minmax(0,1fr); grid-template-rows: auto; align-items: center; }
  .pd-page-profile .leader-footer-cont { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
  .pd-page-profile .index-profile-bg { padding: 13px !important; }
  .pd-page-profile .profile-left { grid-template-columns: 1fr; }
  .pd-page-profile .pd-profile-facts { grid-template-columns: 1fr !important; }
  .pd-page-profile .index-maininfo-p { min-height: 220px !important; }
  .pd-page-profile .leader-footer-cont { grid-template-columns: 1fr; }
  .pd-page-profile .jelveny-row { grid-template-columns: 1fr; }
}

/* v15 – profil méretezés és a kezelőűrlapok kártyán belüli elrendezése */
.pd-page-profile .index-profile-bg {
  align-items: start !important;
}
.pd-page-profile .profile-left {
  align-self: start;
}
.pd-page-profile .pd-profile-facts {
  align-self: start;
}
.pd-page-profile > .profile-grid {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  align-items: start;
}
.pd-page-profile > .profile-grid .profile-grid-element {
  min-height: 78px;
  justify-content: center;
}
.pd-page-profile .leader-panel,
.pd-page-profile .leader-panel-cont,
.pd-page-profile .leader-figyu-cont,
.pd-page-profile .pd-plus-points-panel,
.pd-page-profile .figyuadd,
.pd-page-profile .figyuaddwrapper,
.pd-page-profile .pd-profile-entry-form,
.pd-page-profile .pd-profile-action-form {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.pd-page-profile .leader-panel {
  overflow: hidden !important;
}
.pd-page-profile .leader-figyu-cont {
  margin: 0 !important;
  align-items: stretch !important;
}
.pd-page-profile .pd-profile-entry-form + .pd-profile-entry-form {
  margin-top: 7px;
}
.pd-page-profile .pd-profile-entry-row {
  width: 100% !important;
  min-width: 0;
  display: grid !important;
  grid-template-columns: auto 48px minmax(0,1fr) auto auto;
  justify-content: stretch !important;
  gap: 7px !important;
}
.pd-page-profile .pd-plus-points-panel .pd-profile-entry-row {
  grid-template-columns: auto minmax(0,1fr) auto;
}
.pd-page-profile .pd-profile-action-stack {
  width: 100% !important;
  min-width: 0;
  display: grid !important;
  gap: 7px !important;
}
.pd-page-profile .pd-profile-action-row {
  width: 100%;
  min-width: 0;
  display: grid !important;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 7px;
  align-items: center;
}
.pd-page-profile .pd-plus-points-panel .pd-profile-action-row {
  grid-template-columns: minmax(0,1fr) auto;
}
.pd-page-profile :is(.pd-profile-entry-row,.pd-profile-action-row) .figyuinput,
.pd-page-profile :is(.pd-profile-entry-row,.pd-profile-action-row) .figyuinput-m {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.pd-page-profile .pd-profile-action-stack > .figyuinput {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.pd-page-profile :is(.pd-profile-entry-row,.pd-profile-action-row) .leader-panel-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 8px !important;
  display: inline-grid !important;
  place-items: center;
}
.pd-page-profile .leader-footer-cont {
  align-items: start !important;
}
.pd-page-profile .leader-footer-cont1 {
  align-content: start;
}

@media(max-width:1120px) {
  .pd-page-profile .leader-footer-cont { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .pd-page-profile > .profile-grid { grid-template-columns: 1fr !important; }
  .pd-page-profile .leader-footer-cont { grid-template-columns: 1fr; }
  .pd-page-profile .pd-profile-entry-row {
    grid-template-columns: auto 48px minmax(0,1fr) auto auto;
  }
}
@media(max-width:520px) {
  .pd-page-profile .pd-profile-entry-row,
  .pd-page-profile .pd-plus-points-panel .pd-profile-entry-row {
    grid-template-columns: 1fr auto;
  }
  .pd-page-profile .pd-profile-entry-row > :is(div,span):first-child {
    grid-column: 1 / -1;
  }
  .pd-page-profile .pd-profile-entry-row .figyuinput-m {
    width: 58px !important;
  }
  .pd-page-profile .pd-profile-action-row {
    grid-template-columns: 58px minmax(0,1fr) auto;
  }
  .pd-page-profile .pd-plus-points-panel .pd-profile-action-row {
    grid-template-columns: minmax(0,1fr) auto;
  }
}

/* v16 – egységes profiladat-módosítás és közvetlen képfeltöltés */
.pd-page-profile .pd-profile-edit-shell {
  grid-template-columns: minmax(230px,290px) minmax(0,1fr) !important;
  gap: 20px !important;
  align-items: start !important;
  overflow: hidden !important;
}
.pd-page-profile .pd-profile-edit-preview {
  width: 100%;
  min-width: 0;
}
.pd-page-profile .pd-profile-edit-preview .index-maininfo-p {
  min-height: 260px !important;
  padding: 22px 16px !important;
  display: grid !important;
  align-content: center;
  justify-items: center;
  background-color: var(--pd-surface-2) !important;
}
.pd-page-profile .pd-profile-edit-content {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
}
.pd-page-profile .pd-profile-edit-card {
  width: 100% !important;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--pd-line);
  border-radius: 15px;
  background: var(--pd-surface-2);
  box-sizing: border-box;
}
.pd-page-profile .pd-profile-edit-card-title {
  margin: 0 0 14px;
  color: var(--pd-text);
  font-size: .94rem;
  font-weight: 850;
  letter-spacing: -.01em;
}
.pd-page-profile .pd-profile-edit-card form {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 12px;
}
.pd-page-profile .pd-profile-edit-card .edit-info,
.pd-page-profile .pd-profile-edit-card .profile-edit-info,
.pd-page-profile .pd-profile-edit-card .profile-edit-user,
.pd-page-profile .pd-profile-edit-card .profile-edit-old-password {
  min-width: 0;
  box-sizing: border-box;
}
.pd-page-profile .pd-profile-edit-card .profile-edit-info,
.pd-page-profile .pd-profile-edit-card .profile-edit-old-password {
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(155px,.28fr) minmax(0,1fr) !important;
  gap: 10px 14px !important;
  border: 0 !important;
  background: transparent !important;
}
.pd-page-profile .pd-profile-edit-card .profile-edit-element1 {
  min-width: 0;
  justify-content: flex-start !important;
  color: var(--pd-muted) !important;
  font-size: .76rem;
  font-weight: 800;
}
.pd-page-profile .pd-profile-edit-card .profile-edit-element2,
.pd-page-profile .pd-profile-edit-card .edit-profile-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
}
.pd-page-profile .pd-profile-edit-card .edit-profile-input {
  min-height: 44px;
  padding: 10px 12px !important;
  color: var(--pd-text) !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 10px !important;
  background: var(--pd-surface) !important;
  box-shadow: none !important;
}
.pd-page-profile .pd-profile-edit-card .edit-profile-input:focus {
  outline: 2px solid color-mix(in srgb,var(--pd-blue-2) 30%,transparent);
  border-color: var(--pd-blue-2) !important;
}
.pd-page-profile .pd-profile-edit-card .profile-edit-save {
  width: 100%;
  margin: 0 !important;
  justify-content: flex-end !important;
}
.pd-page-profile .pd-profile-edit-card .profile-edit-save button {
  min-height: 42px;
  margin: 0 !important;
}
.pd-page-profile .pd-profile-media-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.pd-page-profile .pd-profile-media-field {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  background: var(--pd-surface);
}
.pd-page-profile .pd-profile-media-field > label:not(.pd-profile-upload-control) {
  color: var(--pd-muted);
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pd-page-profile .pd-profile-media-url-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
}
.pd-page-profile .pd-profile-media-url-row .button-red-small2 {
  min-height: 44px;
  margin: 0 !important;
  white-space: nowrap;
}
.pd-page-profile .pd-profile-upload-control {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  gap: 7px;
  border: 1px dashed color-mix(in srgb,var(--pd-blue-2) 48%,var(--pd-line));
  border-radius: 10px;
  color: var(--pd-text);
  background: color-mix(in srgb,var(--pd-blue-2) 6%,var(--pd-surface-2));
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  box-sizing: border-box;
}
.pd-page-profile .pd-profile-upload-control:hover {
  border-color: var(--pd-blue-2);
  background: color-mix(in srgb,var(--pd-blue-2) 10%,var(--pd-surface-2));
}
.pd-page-profile .pd-profile-upload-control input[type=file] {
  width: 100%;
  min-width: 0;
  color: var(--pd-muted);
  font: inherit;
}
.pd-page-profile .pd-profile-upload-control input[type=file]::file-selector-button {
  margin-right: 9px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--pd-blue-2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.pd-page-profile .pd-profile-back-button {
  min-height: 40px;
  margin: 0 !important;
  padding: 9px 14px;
  color: var(--pd-text);
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: var(--pd-surface);
}

@media(max-width:960px) {
  .pd-page-profile .pd-profile-edit-shell { grid-template-columns: 1fr !important; }
  .pd-page-profile .pd-profile-edit-preview { width: min(100%,320px); margin: 0 auto; }
}
@media(max-width:720px) {
  .pd-page-profile .pd-profile-media-grid { grid-template-columns: 1fr; }
}
@media(max-width:560px) {
  .pd-page-profile .pd-profile-edit-card .profile-edit-info,
  .pd-page-profile .pd-profile-edit-card .profile-edit-old-password {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .pd-page-profile .pd-profile-edit-card .profile-edit-element2 { margin-bottom: 5px; }
  .pd-page-profile .pd-profile-media-url-row { grid-template-columns: 1fr; }
  .pd-page-profile .pd-profile-media-url-row .button-red-small2 { width: 100%; }
  .pd-page-profile .pd-profile-edit-card .profile-edit-save button { width: 100%; }
}

/* Az alosztály oszlop a korábbi adatbázis-rács után kap végleges helyet. */
.pd-page-database .pd-db-member { grid-template-columns:52px 52px minmax(145px,1.2fr) minmax(115px,.75fr) minmax(85px,.5fr) minmax(135px,.8fr) minmax(145px,.85fr) 70px minmax(88px,.5fr); }
.pd-page-database .pd-db-member__division { min-width:0;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--pd-line);border-radius:10px;background:var(--pd-surface); }
.pd-page-database .pd-db-member__division img { width:25px;height:25px;object-fit:contain;filter:invert(51%) sepia(85%) saturate(1220%) hue-rotate(169deg) brightness(92%) contrast(82%); }
.pd-page-database .pd-db-member__division span { overflow-wrap:anywhere;color:var(--pd-text);font-size:.68rem;font-weight:750; }
[hidden] { display:none !important; }
.sidebar-rows > a:has(.sidebar-row--public-home){flex:0 0 auto!important}
.sidebar-row--public-home{border:1px solid color-mix(in srgb,var(--pd-accent) 42%,var(--pd-line))!important;background:color-mix(in srgb,var(--pd-accent) 12%,var(--pd-surface))!important}
.sidebar-row--public-home:hover{background:color-mix(in srgb,var(--pd-accent) 21%,var(--pd-surface))!important}
@media(max-width:1350px){.pd-page-database .pd-db-member{grid-template-columns:48px 48px minmax(145px,1fr) minmax(115px,.8fr) minmax(120px,.8fr) minmax(140px,.8fr)}.pd-page-database .pd-db-member__badge,.pd-page-database .pd-db-member__dates,.pd-page-database .pd-db-member__points,.pd-page-database .pd-db-member__status{display:none}}
@media(max-width:900px){.pd-page-database .pd-db-member{grid-template-columns:48px minmax(0,1fr)}.pd-page-database .pd-db-member__rank-image{grid-column:1;grid-row:2}.pd-page-database .pd-db-member__rank,.pd-page-database .pd-db-member__division{grid-column:1/-1}}

/* <---> */

.pd-page-shop{--shop-purple:#7758e8;--shop-purple-2:#9b83f4;--shop-gold:#f0b64a;--shop-ink:#171329;gap:15px!important}
.pd-shop-market-head{position:relative;min-height:190px;padding:25px 28px 25px 230px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;overflow:hidden;border:1px solid var(--pd-line);border-radius:22px;background:radial-gradient(circle at 85% -30%,color-mix(in srgb,var(--shop-purple-2) 25%,transparent),transparent 48%),linear-gradient(115deg,color-mix(in srgb,var(--shop-purple) 9%,var(--pd-surface)),var(--pd-surface));box-shadow:var(--pd-shadow)}
.pd-shop-market-head:after{content:"";position:absolute;right:-70px;bottom:-125px;width:320px;height:220px;border:42px solid color-mix(in srgb,var(--shop-purple) 8%,transparent);border-radius:50%;transform:rotate(-12deg);pointer-events:none}
.pd-shop-market-copy{position:relative;z-index:1;min-width:0}
.pd-shop-market-copy .pd-kicker{color:var(--shop-purple);font-size:.7rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.pd-shop-market-copy h1{margin:4px 0 5px;color:var(--pd-text);font-size:clamp(2rem,4vw,3.3rem);line-height:1;letter-spacing:-.05em}
.pd-shop-market-copy p{margin:0;color:var(--pd-muted);font-size:.84rem}
.pd-shop-head-actions{position:relative;z-index:1;display:flex;align-items:stretch;gap:9px}
.pd-shop-head-actions .pd-wallet{min-width:210px;border-color:color-mix(in srgb,var(--shop-purple) 30%,var(--pd-line));background:color-mix(in srgb,var(--shop-purple) 7%,var(--pd-surface-2))}
.pd-shop-head-actions .pd-wallet small{color:var(--shop-purple)}
.pd-shop-new-product{white-space:nowrap;background:linear-gradient(135deg,var(--shop-purple),#5b3fd1)!important;border-color:transparent!important;box-shadow:0 12px 26px color-mix(in srgb,var(--shop-purple) 28%,transparent)}
.pd-shop-sign{position:absolute;z-index:2;left:38px;top:47px;width:150px;height:96px;padding:19px 12px 10px;display:grid;grid-template-columns:auto 1fr;align-content:center;gap:0 6px;border:2px solid color-mix(in srgb,var(--shop-gold) 75%,#7a4b0b);border-radius:10px;background:linear-gradient(160deg,#302456,#17172d);color:#fff;box-shadow:0 17px 30px rgba(8,8,24,.3),inset 0 0 0 3px rgba(255,255,255,.05);transform-origin:50% -36px;animation:pdShopSignSwing 5.5s ease-in-out infinite}
.pd-shop-sign:before,.pd-shop-sign:after{content:"";position:absolute;top:-37px;width:2px;height:38px;background:linear-gradient(#7b6b4e,#d3b978)}
.pd-shop-sign:before{left:30px;transform:rotate(10deg)}.pd-shop-sign:after{right:30px;transform:rotate(-10deg)}
.pd-shop-sign i{position:absolute;top:-41px;width:8px;height:8px;border:2px solid #9d865c;border-radius:50%;background:var(--pd-surface)}
.pd-shop-sign i:first-child{left:25px}.pd-shop-sign i:nth-child(2){right:25px}
.pd-shop-sign span{align-self:end;color:var(--shop-gold);font-size:1.75rem;font-weight:950;letter-spacing:-.08em}.pd-shop-sign strong{align-self:end;font-size:1.15rem;letter-spacing:.08em}.pd-shop-sign small{grid-column:1/-1;margin-top:3px;color:#bfb7da;font-size:.52rem;font-weight:800;letter-spacing:.18em;text-align:center}
@keyframes pdShopSignSwing{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.2deg)}}
.pd-shop-toolbar{padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--pd-line);border-radius:15px;background:var(--pd-surface);box-shadow:0 8px 24px rgba(14,37,66,.055)}
.pd-shop-tabs{min-width:0;display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}.pd-shop-tabs::-webkit-scrollbar{display:none}
.pd-shop-tabs button{flex:0 0 auto;padding:9px 12px;border:0;border-radius:10px;background:transparent;color:var(--pd-muted);font:inherit;font-size:.75rem;font-weight:750;white-space:nowrap;cursor:pointer;transition:.16s}
.pd-shop-tabs button:hover{background:var(--pd-surface-2);color:var(--pd-text)}
.pd-shop-tabs button.is-active{background:color-mix(in srgb,var(--shop-purple) 13%,var(--pd-surface-2));color:var(--shop-purple)}
.pd-shop-tabs button b{min-width:20px;margin-left:5px;padding:2px 5px;display:inline-grid;place-items:center;border-radius:999px;background:color-mix(in srgb,currentColor 10%,transparent);font-size:.65rem}
.pd-shop-search{position:relative;flex:0 1 300px}.pd-shop-search svg{position:absolute;z-index:1;left:12px;top:50%;width:17px;height:17px;transform:translateY(-50%);fill:none;stroke:var(--pd-muted);stroke-width:2;stroke-linecap:round}.pd-shop-search input{height:40px;padding-left:38px}
.pd-shop-market-layout{grid-template-columns:minmax(0,1fr) 340px!important;gap:15px!important}
.pd-shop-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px!important}
.pd-market-product{position:relative;border-radius:17px!important;box-shadow:0 9px 26px rgba(11,34,62,.07)!important;animation:pdShopCardIn .42s cubic-bezier(.2,.8,.2,1) both;animation-delay:min(calc(var(--shop-index) * 45ms),360ms);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important}
.pd-market-product:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--shop-purple) 42%,var(--pd-line));box-shadow:0 18px 38px rgba(20,28,72,.13)!important}
.pd-market-product[hidden]{display:none!important}
@keyframes pdShopCardIn{from{opacity:0;transform:translateY(16px) scale(.975)}to{opacity:1;transform:none}}
.pd-market-product .pd-product__image{position:relative;aspect-ratio:1.08/1;background:linear-gradient(145deg,var(--pd-surface-2),color-mix(in srgb,var(--shop-purple) 7%,var(--pd-surface-2)))}
.pd-market-product .pd-product__image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 58%,rgba(7,11,28,.38));pointer-events:none}
.pd-market-product .pd-product__image img{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.pd-market-product:hover .pd-product__image img{transform:scale(1.055)}
.pd-product__state{position:absolute;z-index:2;left:10px;top:10px;padding:5px 8px;border-radius:999px;background:rgba(12,18,31,.78);backdrop-filter:blur(8px);color:#fff;font-size:.62rem;font-weight:800;letter-spacing:.03em}
.pd-product__state--available:before{content:"";width:6px;height:6px;margin-right:5px;display:inline-block;border-radius:50%;background:#55d99a;box-shadow:0 0 0 3px rgba(85,217,154,.18)}
.pd-product__state--soldout{background:rgba(151,54,54,.86)}.pd-product__state--inactive{background:rgba(76,85,101,.88)}
.pd-market-product .pd-product__body{padding:14px;gap:10px!important}
.pd-product__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.pd-product__heading h3{min-width:0;font-size:.98rem;line-height:1.25;overflow-wrap:anywhere}
.pd-market-product .pd-product__stock{position:static;flex:0 0 auto;padding:4px 7px;background:var(--pd-surface-2);color:var(--pd-muted);font-size:.61rem}
.pd-market-product .pd-product__body>p{min-height:3.6em;display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical;color:var(--pd-muted);font-size:.72rem;line-height:1.55}
.pd-product__price{position:relative;width:max-content;min-width:118px;padding:8px 17px 8px 13px;display:grid;grid-template-columns:auto auto;align-items:end;gap:0 5px;border-radius:5px 2px 2px 5px;background:linear-gradient(135deg,var(--shop-purple),#5f45cb);color:#fff;box-shadow:0 7px 16px color-mix(in srgb,var(--shop-purple) 22%,transparent);transform:rotate(-1deg)}
.pd-product__price:before{content:"";position:absolute;right:-12px;top:0;border-top:25px solid transparent;border-bottom:25px solid transparent;border-left:13px solid #5f45cb}.pd-product__price:after{content:"";position:absolute;right:-7px;top:50%;width:5px;height:5px;border-radius:50%;background:#eee;transform:translateY(-50%)}
.pd-product__price small{grid-column:1/-1;color:#ddd5ff;font-size:.54rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.pd-product__price strong{font-size:1.05rem;line-height:1}.pd-product__price span{font-size:.56rem;font-weight:800}
.pd-market-product .pd-product__buy{grid-template-columns:70px minmax(0,1fr);align-items:end;gap:7px}.pd-market-product .pd-product__buy label{display:grid;gap:3px;color:var(--pd-muted);font-size:.58rem;font-weight:750}.pd-market-product .pd-product__buy input{height:40px}.pd-market-product .pd-product__buy button{height:40px;padding-inline:9px;background:linear-gradient(135deg,var(--shop-purple),#5f45cb)!important;border-color:transparent!important;font-size:.73rem}
.pd-product__manage{margin-top:2px;border-top:1px solid var(--pd-line)}.pd-product__manage summary{padding:10px 0 0;display:flex;align-items:center;justify-content:space-between;color:var(--pd-muted);font-size:.67rem;font-weight:750;list-style:none;cursor:pointer}.pd-product__manage summary::-webkit-details-marker{display:none}.pd-product__manage summary span{transition:transform .18s}.pd-product__manage[open] summary span{transform:rotate(180deg)}
.pd-market-product .pd-product__admin{padding-top:10px;grid-template-columns:1fr 1fr;gap:7px;animation:pdShopManageIn .18s ease-out}.pd-market-product .pd-product__admin .pd-check,.pd-market-product .pd-product__admin button{grid-column:1/-1}.pd-market-product .pd-product__admin input{min-width:0}
@keyframes pdShopManageIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.pd-shop-empty{grid-column:1/-1;min-height:290px;display:grid;place-items:center;align-content:center;gap:5px;border:1px dashed var(--pd-line);border-radius:18px;background:var(--pd-surface);color:var(--pd-muted);text-align:center}.pd-shop-empty>span{font-size:2rem;color:var(--shop-purple)}.pd-shop-empty strong{color:var(--pd-text)}.pd-shop-empty p{margin:0;font-size:.75rem}
.pd-market-cart{top:92px!important;padding:17px!important;border-radius:17px!important;background:linear-gradient(160deg,var(--pd-surface),color-mix(in srgb,var(--shop-purple) 5%,var(--pd-surface)))!important}
.pd-market-cart>header{padding-bottom:12px;border-bottom:1px solid var(--pd-line)}.pd-market-cart>header>div{display:grid;gap:2px}.pd-market-cart>header .pd-kicker{color:var(--shop-purple);font-size:.62rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.pd-market-cart>header h2{font-size:1.35rem}.pd-market-cart>header>b{min-width:34px;height:34px;padding:0 8px;display:grid;place-items:center;border-radius:11px;background:var(--shop-purple);color:#fff;font-size:.8rem}
.pd-cart__form{gap:8px!important}.pd-market-cart .pd-cart__item{padding:9px;border:1px solid var(--pd-line);border-radius:11px;background:var(--pd-surface-2)}.pd-market-cart .pd-cart__item>span{gap:2px}.pd-market-cart .pd-cart__item label{position:relative}.pd-market-cart .pd-cart__item label input{height:38px;padding-right:26px}.pd-market-cart .pd-cart__item label small{position:absolute;right:8px;top:50%;transform:translateY(-50%);color:var(--pd-muted);font-size:.58rem}.pd-cart__update{padding:9px!important;font-size:.7rem!important}
.pd-cart__empty{min-height:170px;display:grid;place-items:center;align-content:center;gap:5px;color:var(--pd-muted);text-align:center}.pd-cart__empty>span{font-size:2.2rem;color:color-mix(in srgb,var(--shop-purple) 70%,var(--pd-muted))}.pd-cart__empty strong{color:var(--pd-text);font-size:.85rem}.pd-cart__empty small{font-size:.67rem}
.pd-market-cart .pd-cart__total{align-items:flex-end}.pd-market-cart .pd-cart__total strong{color:var(--shop-purple);font-size:1.15rem}.pd-market-cart .pd-cart__total small{font-size:.62rem}.pd-market-cart .pd-btn--primary{background:linear-gradient(135deg,var(--shop-purple),#5f45cb)!important;border-color:transparent!important}.pd-cart__warning{margin:0;padding:9px;border-radius:9px;background:color-mix(in srgb,var(--pd-bad) 12%,transparent);color:var(--pd-bad);font-size:.68rem;text-align:center}
.pd-shop-modal{position:fixed;z-index:600;inset:0;padding:54px 18px 18px;display:grid;place-items:start center;overflow-y:auto;background:rgba(5,11,24,.62);backdrop-filter:blur(8px);opacity:0;transition:opacity .25s ease}.pd-shop-modal.is-open{opacity:1}.pd-shop-modal.is-closing{opacity:0}.pd-shop-modal__panel{position:relative;width:min(100%,820px);margin-top:0;overflow:visible;border:1px solid color-mix(in srgb,var(--shop-purple) 35%,var(--pd-line));border-radius:20px;background:var(--pd-surface);box-shadow:0 30px 90px rgba(0,0,0,.35);transform:translateY(-130%) rotateX(-7deg);transform-origin:50% 0;transition:transform .5s cubic-bezier(.18,.89,.26,1.18)}.pd-shop-modal.is-open .pd-shop-modal__panel{transform:translateY(0) rotateX(0)}.pd-shop-modal.is-closing .pd-shop-modal__panel{transform:translateY(-125%) rotateX(-6deg)}
.pd-shop-modal__cord{position:absolute;z-index:-1;top:-78px;width:3px;height:80px;background:linear-gradient(#a28860,#d7c19a)}.pd-shop-modal__cord:before{content:"";position:absolute;top:-6px;left:50%;width:10px;height:10px;border:2px solid #a88e65;border-radius:50%;background:#152030;transform:translateX(-50%)}.pd-shop-modal__cord--left{left:72px}.pd-shop-modal__cord--right{right:72px}
.pd-shop-modal__panel>header{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--pd-line);border-radius:20px 20px 0 0;background:linear-gradient(120deg,color-mix(in srgb,var(--shop-purple) 11%,var(--pd-surface)),var(--pd-surface))}.pd-shop-modal__panel>header .pd-kicker{color:var(--shop-purple);font-size:.63rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.pd-shop-modal__panel>header h2{margin:3px 0 0;color:var(--pd-text);font-size:1.35rem}.pd-shop-modal__panel>header button{width:36px;height:36px;border:1px solid var(--pd-line);border-radius:10px;background:var(--pd-surface);color:var(--pd-muted);font-size:1.3rem;cursor:pointer}.pd-shop-modal__panel>header button:hover{color:var(--pd-bad);border-color:color-mix(in srgb,var(--pd-bad) 45%,var(--pd-line))}
.pd-shop-product-form{padding:20px;display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px}.pd-shop-product-form__preview{aspect-ratio:1;align-self:start;display:grid;place-items:center;align-content:center;gap:4px;overflow:hidden;border:1px dashed color-mix(in srgb,var(--shop-purple) 48%,var(--pd-line));border-radius:16px;background:linear-gradient(145deg,var(--pd-surface-2),color-mix(in srgb,var(--shop-purple) 9%,var(--pd-surface-2)));background-position:center;background-size:cover;color:var(--shop-purple)}.pd-shop-product-form__preview.has-image span,.pd-shop-product-form__preview.has-image small{display:none}.pd-shop-product-form__preview span{font-size:.7rem;font-weight:850;letter-spacing:.08em}.pd-shop-product-form__preview small{font-size:1.5rem;font-weight:900}.pd-shop-product-form__fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}.pd-shop-product-form__description{grid-column:1/-1}.pd-shop-product-form__description textarea{min-height:90px}.pd-shop-product-form .pd-field>span{color:var(--pd-text);font-size:.7rem;font-weight:750}.pd-shop-product-form .pd-field>small{color:var(--pd-muted);font-size:.58rem}.pd-shop-product-form>footer{grid-column:1/-1;padding-top:14px;display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--pd-line)}
body.pd-shop-modal-open{overflow:hidden}
@media(max-width:1450px){.pd-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.pd-shop-market-head{padding-left:205px}.pd-shop-sign{left:26px}.pd-shop-market-layout{grid-template-columns:1fr!important}.pd-market-cart{position:static!important}.pd-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.pd-shop-market-head{min-height:0;padding:22px;grid-template-columns:1fr}.pd-shop-sign{position:relative;left:auto;top:auto;width:140px;margin:30px 0 4px}.pd-shop-head-actions{align-items:stretch;flex-direction:column}.pd-shop-head-actions .pd-wallet{width:100%;box-sizing:border-box}.pd-shop-toolbar{align-items:stretch;flex-direction:column}.pd-shop-search{flex-basis:auto}.pd-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-shop-modal{padding-top:34px}.pd-shop-product-form{grid-template-columns:150px minmax(0,1fr)}.pd-shop-product-form__fields{grid-template-columns:1fr}.pd-shop-product-form__description{grid-column:auto}}
@media(max-width:520px){.pd-shop-grid{grid-template-columns:1fr}.pd-shop-product-form{grid-template-columns:1fr}.pd-shop-product-form__preview{width:150px}.pd-shop-modal__cord--left{left:40px}.pd-shop-modal__cord--right{right:40px}}
@media(prefers-reduced-motion:reduce){.pd-shop-sign,.pd-market-product{animation:none}.pd-shop-modal,.pd-shop-modal__panel,.pd-market-product,.pd-market-product .pd-product__image img{transition:none}}
