/* H83_PLATFORM_CONSOLIDATION_SECURITY: generated CSS bundle. Source order is intentional. */

/* ===== BEGIN assets/css/v2-h77-layout-settings.css ===== */
/* H77 - ticket view actions, settings labels, closed queue search relief */

/* Ticket meta card: remove remaining blue shell */
html body.ui-v2-shell main.ticket-view-page .form-card.ticket-main-details-card,
html body.ui-v2-shell main.customer-ticket-view-page .form-card.ticket-main-details-card,
html body.ui-v2-shell .ticket-view-page .ticket-main-details-card.form-card,
html body.ui-v2-shell .customer-ticket-view-page .ticket-main-details-card.form-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)) !important;
  background-color: rgba(25, 28, 34, .92) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.035) !important;
}
html[data-theme="dark"] body.ui-v2-shell main.ticket-view-page .form-card.ticket-main-details-card,
html[data-theme="dark"] body.ui-v2-shell main.customer-ticket-view-page .form-card.ticket-main-details-card,
html[data-theme="dark"] body.ui-v2-shell .ticket-view-page .ticket-main-details-card.form-card,
html[data-theme="dark"] body.ui-v2-shell .customer-ticket-view-page .ticket-main-details-card.form-card {
  background: linear-gradient(180deg, rgba(31,34,40,.96), rgba(22,24,29,.96)) !important;
  background-color: #1b1e24 !important;
  border-color: rgba(255,255,255,.105) !important;
}
html[data-theme="light"] body.ui-v2-shell main.ticket-view-page .form-card.ticket-main-details-card,
html[data-theme="light"] body.ui-v2-shell main.customer-ticket-view-page .form-card.ticket-main-details-card,
html[data-theme="light"] body.ui-v2-shell .ticket-view-page .ticket-main-details-card.form-card,
html[data-theme="light"] body.ui-v2-shell .customer-ticket-view-page .ticket-main-details-card.form-card {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,247,250,.92)) !important;
  background-color: #f7f8fb !important;
  border-color: rgba(15,23,42,.12) !important;
}
html body.ui-v2-shell .ticket-main-details-card::before,
html body.ui-v2-shell .ticket-main-details-card::after { display:none !important; }

/* Sticky header action relocation */
body.ui-v2-shell .page-header-ticket .ticket-title-row { position: relative !important; }
body.ui-v2-shell .ticket-title-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}
body.ui-v2-shell .ticket-title-status-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-right: 4px !important;
  white-space: nowrap !important;
}
body.ui-v2-shell .ticket-title-status-actions form,
body.ui-v2-shell .ticket-title-status-actions .status-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}
body.ui-v2-shell .ticket-title-status-actions .status-button,
body.ui-v2-shell .h77-conversation-actions .status-button,
body.ui-v2-shell .h77-conversation-actions .btn {
  min-height: 34px !important;
  padding: 7px 11px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
body.ui-v2-shell .page-header-ticket h1,
body.ui-v2-shell .ticket-title-row h1,
body.ui-v2-shell .ticket-title-row .ticket-title,
body.ui-v2-shell .ticket-title-row .page-title-with-icon {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  max-width: none !important;
}

/* Hide old bottom action strip after moving actions to header/conversation */
body.ui-v2-shell .ticket-status-footer { display: none !important; }

/* Conversation action row */
body.ui-v2-shell .h77-conversation-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
}
body.ui-v2-shell .h77-conversation-head h3 { margin: 0 !important; }
body.ui-v2-shell .h77-conversation-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
body.ui-v2-shell .h77-conversation-actions .status-workorder { text-decoration: none !important; }

/* Left nav portal switch truly at bottom of main nav block */
body.ui-v2-shell .topbar-center { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; min-height: 0 !important; }
body.ui-v2-shell .topbar-center > [data-h62-portal-switch] { margin-top: auto !important; order: 999 !important; }
body.ui-v2-shell .topbar-center > [data-h62-portal-switch] + [data-h62-portal-switch] { margin-top: 7px !important; }

/* List settings / department kick helpers */
body.ui-v2-shell .h77-kick-department-form { display: inline-flex !important; margin: 0 !important; }
body.ui-v2-shell .h77-kick-department-form .btn { white-space: nowrap !important; }
body.ui-v2-shell .h77-user-password-admin-disabled {
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px dashed color-mix(in srgb, var(--v2-border) 80%, transparent) !important;
  background: color-mix(in srgb, var(--v2-control-2) 55%, transparent) !important;
}

/* Closed queue delayed search hint */
body.ui-v2-shell .h77-closed-search-status {
  font-size: 12px !important;
  opacity: .78 !important;
  margin-top: 6px !important;
  text-align: right !important;
}

@media (max-width: 980px) {
  body.ui-v2-shell .page-header-ticket .ticket-title-row,
  body.ui-v2-shell main.ticket-view-page > .page-header-ticket .ticket-title-row {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }
  body.ui-v2-shell .ticket-title-actions {
    position: static !important;
    transform: none !important;
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-top: 6px !important;
    scrollbar-width: thin !important;
  }
  body.ui-v2-shell .ticket-title-status-actions { flex: 0 0 auto !important; }
}

@media (max-width: 720px) {
  body.ui-v2-shell .h77-conversation-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  body.ui-v2-shell .h77-conversation-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 3px !important;
  }
  body.ui-v2-shell .ticket-title-status-actions .status-button,
  body.ui-v2-shell .h77-conversation-actions .status-button,
  body.ui-v2-shell .h77-conversation-actions .btn {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}
/* ===== END assets/css/v2-h77-layout-settings.css ===== */

/* ===== BEGIN assets/css/v2-h77b-responsive-followup.css ===== */
/* H77b - customer account icon, responsive ticket header, compact queue columns */

/* Customer portal account control: icon-only, same visual language as the agent portal. */
body.ui-v2-shell.customer-v2-portal .topbar-right > a[href$="account.php"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
body.ui-v2-shell.customer-v2-portal .topbar-right > a[href$="account.php"] .topbar-icon-wrap {
  font-size: initial !important;
  line-height: normal !important;
}
body.ui-v2-shell.customer-v2-portal .topbar-right {
  grid-template-columns: repeat(3, auto) !important;
  justify-content: end !important;
}

/* Ticket header: title and all action buttons participate in normal document flow. */
body.ui-v2-shell .page-header-ticket .ticket-title-row,
body.ui-v2-shell main.ticket-view-page > .page-header-ticket .ticket-title-row,
body.ui-v2-shell main.customer-ticket-view-page > .page-header-ticket .ticket-title-row {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 10px 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
body.ui-v2-shell .page-header-ticket .ticket-title,
body.ui-v2-shell .page-header-ticket h1,
body.ui-v2-shell .ticket-title-row .ticket-title {
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
body.ui-v2-shell .page-header-ticket .ticket-title-status {
  display: inline !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body.ui-v2-shell .page-header-ticket .ticket-title-actions,
body.ui-v2-shell .ticket-view-page .ticket-title-actions {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}
body.ui-v2-shell .page-header-ticket .ticket-title-status-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 !important;
  min-width: 0 !important;
  white-space: normal !important;
}
body.ui-v2-shell .page-header-ticket .ticket-title-actions form,
body.ui-v2-shell .page-header-ticket .ticket-title-actions button,
body.ui-v2-shell .page-header-ticket .ticket-title-actions a {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
}
body.ui-v2-shell .page-header-ticket .ticket-delete-form {
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 1100px) {
  body.ui-v2-shell.customer-v2-portal .topbar-right {
    grid-template-columns: repeat(3, minmax(40px, 1fr)) !important;
    justify-content: stretch !important;
  }

  body.ui-v2-shell .page-header-ticket .ticket-title-row,
  body.ui-v2-shell main.ticket-view-page > .page-header-ticket .ticket-title-row,
  body.ui-v2-shell main.customer-ticket-view-page > .page-header-ticket .ticket-title-row {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }
  body.ui-v2-shell .page-header-ticket .ticket-title-actions,
  body.ui-v2-shell .ticket-view-page .ticket-title-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    padding-top: 2px !important;
  }
  body.ui-v2-shell .page-header-ticket .ticket-title-status-actions {
    display: contents !important;
  }
  body.ui-v2-shell .page-header-ticket .ticket-title-status-actions form,
  body.ui-v2-shell .page-header-ticket .ticket-title-actions > form,
  body.ui-v2-shell .page-header-ticket .ticket-title-actions > button,
  body.ui-v2-shell .page-header-ticket .ticket-title-actions > a {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 720px) {
  body.ui-v2-shell main.ticket-view-page > .page-header-ticket,
  body.ui-v2-shell main.customer-ticket-view-page > .page-header-ticket {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body.ui-v2-shell .page-header-ticket .ticket-title-actions {
    gap: 6px !important;
  }
  body.ui-v2-shell .page-header-ticket .ticket-title-actions .status-button,
  body.ui-v2-shell .page-header-ticket .ticket-title-actions .btn {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }
  body.ui-v2-shell .page-header-ticket .ticket-title-actions .btn-icon {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
  }
}

/* Queue/list pages: disable configured percentage widths on narrow screens and let
   the table size itself from actual cell content instead of forcing huge empty columns. */
@media (max-width: 1180px) {
  body.ui-v2-shell .table-wrapper--queue,
  body.ui-v2-shell .table-wrapper--priority,
  body.ui-v2-shell main.app-container .table-wrapper--queue,
  body.ui-v2-shell main.app-container .table-wrapper--priority {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }

  body.ui-v2-shell table.ticket-table[data-queue-columns],
  body.ui-v2-shell .table-wrapper--queue table.ticket-table[data-queue-columns],
  body.ui-v2-shell .table-wrapper--priority table.ticket-table[data-queue-columns] {
    display: table !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  body.ui-v2-shell table.ticket-table[data-queue-columns] colgroup col {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.ui-v2-shell table.ticket-table[data-queue-columns] th,
  body.ui-v2-shell table.ticket-table[data-queue-columns] td {
    width: auto !important;
    min-width: 0 !important;
    max-width: 34ch !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-overflow: clip !important;
  }

  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="subject"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="location"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="customer"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="organization"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="assignees"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="inprogress"] {
    width: 26ch !important;
    max-width: 30ch !important;
  }

  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="work_action"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="priority"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="number"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="status"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="tig_required"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="administration_type"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] th[data-col-key="attachments"],
  body.ui-v2-shell table.ticket-table[data-queue-columns] td.queue-work-action-cell,
  body.ui-v2-shell table.ticket-table[data-queue-columns] td.ticket-priority-col,
  body.ui-v2-shell table.ticket-table[data-queue-columns] td.queue-attachments-cell {
    width: 1% !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  body.ui-v2-shell table.ticket-table[data-queue-columns] .queue-work-action-btn {
    max-width: none !important;
  }
}
/* ===== END assets/css/v2-h77b-responsive-followup.css ===== */

/* ===== BEGIN assets/css/v2-h80-core.css ===== */
/* H80 consolidation foundation. Loaded after legacy Hxx layers. */

body.ui-v2-shell .hvsza-busy {
  cursor: progress !important;
}

body.ui-v2-shell .hvsza-busy > * {
  pointer-events: none;
}

/*
 * Conversation actions: replace H77's horizontal mobile scroller with a
 * wrapping, touch-friendly grid. This is the first rule moved into the final
 * component layer instead of adding another isolated page workaround.
 */
@media (max-width: 720px) {
  body.ui-v2-shell .h77-conversation-head {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.ui-v2-shell .h77-conversation-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
  }

  body.ui-v2-shell .h77-conversation-actions > .status-button,
  body.ui-v2-shell .h77-conversation-actions > .btn,
  body.ui-v2-shell .h77-conversation-actions > a,
  body.ui-v2-shell .h77-conversation-actions > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 360px) {
  body.ui-v2-shell .h77-conversation-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
/* ===== END assets/css/v2-h80-core.css ===== */

/* HVSZ_H83_CORE_SECURITY_UI */
body.ui-v2-shell .hvsza-core-toast,
.hvsza-core-toast {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  max-width: min(92vw, 620px);
  padding: 11px 15px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 12px;
  background: rgba(15, 23, 42, .96);
  color: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
}
.hvsza-core-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.hvsza-core-toast.is-success { border-color: rgba(34, 197, 94, .55); }
.hvsza-core-toast.is-warning { border-color: rgba(245, 158, 11, .65); }
.hvsza-core-toast.is-error { border-color: rgba(239, 68, 68, .72); }

/* HVSZ_H86_CUSTOMER_TITLE_STATUS_ALIGNMENT_BEGIN
   Customer ticket status icon and label must remain one inline flex unit.
   This specifically overrides the old generic `display:inline` rule that
   made the block-level PNG icon force the Nyitva/Lezárva label onto a new line. */
body.ui-v2-shell.customer-v2-portal .customer-ticket-view-page .customer-ticket-title .ticket-title-status,
body.ui-v2-shell .customer-ticket-view-page .customer-ticket-title .ticket-title-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: .28em !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
body.ui-v2-shell.customer-v2-portal .customer-ticket-view-page .customer-ticket-title .ticket-status-title-icon,
body.ui-v2-shell .customer-ticket-view-page .customer-ticket-title .ticket-status-title-icon {
  display: inline-block !important;
  flex: 0 0 1em !important;
  width: 1em !important;
  height: 1em !important;
  min-width: 1em !important;
  min-height: 1em !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
/* HVSZ_H86_CUSTOMER_TITLE_STATUS_ALIGNMENT_END */


/* HVSZ_H91_COMPACT_SIDEBAR_LIGHT_STATUS_BEGIN */

/* -------------------------------------------------------------------------
   1. Kompakt asztali / böngészőnagyítás miatti oldalsáv-átfedések
   ------------------------------------------------------------------------- */

body.ui-v2-shell .topbar{
  overflow:hidden!important;
}

body.ui-v2-shell .topbar-inner{
  box-sizing:border-box!important;
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  align-content:stretch!important;
  overflow:hidden!important;
}

body.ui-v2-shell .topbar .brand{
  grid-row:1!important;
  min-height:0!important;
}

body.ui-v2-shell .topbar .topbar-center{
  grid-row:2!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  padding-right:3px!important;
}

body.ui-v2-shell .topbar .topbar-right{
  grid-row:3!important;
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  align-self:end!important;
  margin:0!important;
  flex:0 0 auto!important;
  z-index:4!important;
}

body.ui-v2-shell .topbar .topbar-center > .topbar-pill,
body.ui-v2-shell .topbar .topbar-center > a.topbar-pill,
body.ui-v2-shell .topbar .topbar-center > button.topbar-pill{
  flex:0 0 auto!important;
}

/* Az Agent/Ügyfélportál váltó a navigáció végén marad, de nem kerülhet
   a fix alsó ikonsáv mögé. */
body.ui-v2-shell .topbar .topbar-center > [data-h62-portal-switch],
body.ui-v2-shell .topbar .topbar-center > a[href*="customer_portal"],
body.ui-v2-shell .topbar .topbar-center > a[href*="admin_portal"]{
  margin-top:auto!important;
}

/* Alacsony, de még asztali szélességű viewport:
   a böngésző nagyítása tipikusan ezt az állapotot hozza létre. */
@media (min-width:1101px) and (max-height:900px){
  body.ui-v2-shell .topbar-inner{
    padding:10px 9px!important;
    gap:6px!important;
  }

  body.ui-v2-shell .topbar .brand{
    padding:7px 8px!important;
    border-radius:15px!important;
  }

  body.ui-v2-shell .topbar .brand-logo{
    height:38px!important;
    max-height:38px!important;
    max-width:148px!important;
  }

  body.ui-v2-shell .topbar .version-badge{
    margin-top:3px!important;
    padding:2px 7px!important;
    font-size:9px!important;
  }

  body.ui-v2-shell .topbar .topbar-center{
    gap:5px!important;
  }

  body.ui-v2-shell .topbar .topbar-pill,
  body.ui-v2-shell .topbar button.topbar-pill{
    min-height:34px!important;
    padding:6px 8px!important;
    border-radius:11px!important;
    font-size:11.5px!important;
    line-height:1.15!important;
  }

  body.ui-v2-shell .topbar .topbar-img,
  body.ui-v2-shell .topbar .topbar-icon-wrap{
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
  }

  body.ui-v2-shell .topbar .topbar-right{
    gap:5px!important;
    padding-top:7px!important;
  }

  body.ui-v2-shell .topbar .topbar-icon,
  body.ui-v2-shell .topbar .topbar-right .topbar-icon{
    height:32px!important;
    min-height:32px!important;
    border-radius:10px!important;
  }
}

@media (min-width:1101px) and (max-height:700px){
  body.ui-v2-shell .topbar-inner{
    padding:7px 8px!important;
    gap:4px!important;
  }

  body.ui-v2-shell .topbar .brand{
    padding:5px 7px!important;
  }

  body.ui-v2-shell .topbar .brand-logo{
    height:31px!important;
    max-height:31px!important;
  }

  body.ui-v2-shell .topbar .topbar-center{
    gap:4px!important;
  }

  body.ui-v2-shell .topbar .topbar-pill,
  body.ui-v2-shell .topbar button.topbar-pill{
    min-height:31px!important;
    padding:5px 7px!important;
    font-size:11px!important;
  }

  body.ui-v2-shell .topbar .topbar-right{
    padding-top:5px!important;
  }

  body.ui-v2-shell .topbar .topbar-icon,
  body.ui-v2-shell .topbar .topbar-right .topbar-icon{
    height:30px!important;
    min-height:30px!important;
  }
}

/* Off-canvas / telefonos oldalsáv: az alsó gombsor ne lebegjen a menü fölött. */
@media (max-width:1100px){
  body.ui-v2-shell .topbar-inner{
    height:100dvh!important;
    max-height:100dvh!important;
    padding:14px 12px!important;
    gap:10px!important;
  }

  body.ui-v2-shell .topbar .topbar-center{
    width:100%!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:4px!important;
    padding-bottom:4px!important;
  }

  body.ui-v2-shell:not(.customer-v2-portal) .topbar .topbar-right{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(38px,1fr))!important;
    gap:7px!important;
    padding-top:9px!important;
    margin:0!important;
    border-top:1px solid var(--v2-border,rgba(255,255,255,.1))!important;
    background:var(--v2-card,#1d1f22)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  body.ui-v2-shell .topbar .topbar-right .topbar-icon{
    width:100%!important;
    min-width:0!important;
  }
}

@media (max-width:460px){
  body.ui-v2-shell .topbar-inner{
    padding:10px 9px!important;
    gap:8px!important;
  }

  body.ui-v2-shell:not(.customer-v2-portal) .topbar .topbar-right{
    gap:5px!important;
  }
}

/* Köztes szélességnél a queue a saját konténerében görgessen,
   ne szélesítse ki az egész dokumentumot. */
@media (min-width:761px) and (max-width:1250px){
  body.ui-v2-shell .table-wrapper--queue,
  body.ui-v2-shell .table-wrapper--priority,
  body.ui-v2-shell .tickets-table-wrap,
  body.ui-v2-shell .ticket-table-wrap{
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overscroll-behavior-inline:contain!important;
  }

  body.ui-v2-shell .table-toolbar,
  body.ui-v2-shell .page-header{
    min-width:0!important;
    max-width:100%!important;
    flex-wrap:wrap!important;
  }
}

/* -------------------------------------------------------------------------
   2. Világos módú státuszbadge-ek kontrasztja
   ------------------------------------------------------------------------- */

html[data-theme="light"] .customer-status-badge,
html[data-theme="light"] .h88-ticket-status,
html[data-theme="light"] .ticket-status-badge,
html[data-theme="light"] .status-badge,
body[data-theme="light"] .customer-status-badge,
body[data-theme="light"] .h88-ticket-status,
body[data-theme="light"] .ticket-status-badge,
body[data-theme="light"] .status-badge,
body.light-mode .customer-status-badge,
body.light-mode .h88-ticket-status,
body.light-mode .ticket-status-badge,
body.light-mode .status-badge,
body.theme-light .customer-status-badge,
body.theme-light .h88-ticket-status,
body.theme-light .ticket-status-badge,
body.theme-light .status-badge{
  opacity:1!important;
  text-shadow:none!important;
  font-weight:750!important;
}

/* Nyitva: sötétzöld szöveg világos/zöld badge-en */
html[data-theme="light"] .customer-status-badge--open,
html[data-theme="light"] .h88-ticket-status--open,
body[data-theme="light"] .customer-status-badge--open,
body[data-theme="light"] .h88-ticket-status--open,
body.light-mode .customer-status-badge--open,
body.light-mode .h88-ticket-status--open,
body.theme-light .customer-status-badge--open,
body.theme-light .h88-ticket-status--open{
  color:#064e3b!important;
}

/* Folyamatban: sötétbarna szöveg sárga badge-en */
html[data-theme="light"] .customer-status-badge--inprogress,
html[data-theme="light"] .customer-status-badge--pending,
html[data-theme="light"] .h88-ticket-status--inprogress,
html[data-theme="light"] .h88-ticket-status--pending,
body[data-theme="light"] .customer-status-badge--inprogress,
body[data-theme="light"] .customer-status-badge--pending,
body[data-theme="light"] .h88-ticket-status--inprogress,
body[data-theme="light"] .h88-ticket-status--pending,
body.light-mode .customer-status-badge--inprogress,
body.light-mode .customer-status-badge--pending,
body.light-mode .h88-ticket-status--inprogress,
body.light-mode .h88-ticket-status--pending,
body.theme-light .customer-status-badge--inprogress,
body.theme-light .customer-status-badge--pending,
body.theme-light .h88-ticket-status--inprogress,
body.theme-light .h88-ticket-status--pending{
  color:#3f2a00!important;
}

/* Lezárva: sötétbordó szöveg világos/piros badge-en */
html[data-theme="light"] .customer-status-badge--closed,
html[data-theme="light"] .h88-ticket-status--closed,
body[data-theme="light"] .customer-status-badge--closed,
body[data-theme="light"] .h88-ticket-status--closed,
body.light-mode .customer-status-badge--closed,
body.light-mode .h88-ticket-status--closed,
body.theme-light .customer-status-badge--closed,
body.theme-light .h88-ticket-status--closed{
  color:#7f1d1d!important;
}

/* A státuszikonok ne örököljenek opacity/filter hibát világos módban. */
html[data-theme="light"] .customer-status-badge__icon,
html[data-theme="light"] .h88-ticket-status__icon,
body[data-theme="light"] .customer-status-badge__icon,
body[data-theme="light"] .h88-ticket-status__icon,
body.light-mode .customer-status-badge__icon,
body.light-mode .h88-ticket-status__icon,
body.theme-light .customer-status-badge__icon,
body.theme-light .h88-ticket-status__icon{
  opacity:1!important;
  filter:none!important;
}

/* HVSZ_H91_COMPACT_SIDEBAR_LIGHT_STATUS_END */

/* HVSZ_H95D_CALENDAR_VISUAL_LIFECYCLE_FIX */
body.ui-v2-shell .calendar-department-row > input[type="checkbox"]{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    min-width:1px !important;
    min-height:1px !important;
    inset:auto !important;
    margin:0 !important;
    padding:0 !important;
    opacity:0 !important;
    pointer-events:none !important;
    overflow:hidden !important;
    clip:rect(0 0 0 0) !important;
    clip-path:inset(50%) !important;
    white-space:nowrap !important;
    border:0 !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    background:transparent !important;
}
body.ui-v2-shell .calendar-page .calendar-shell{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    padding:0 !important;
}
body.ui-v2-shell .calendar-page .calendar-main-card,
body.ui-v2-shell .calendar-page .calendar-side-card{
    background:linear-gradient(
        180deg,
        color-mix(in srgb, var(--v2-card, #1b1e24) 96%, transparent),
        color-mix(in srgb, var(--v2-card-2, #171a20) 94%, transparent)
    ) !important;
    border:1px solid var(--v2-border, rgba(148,163,184,.18)) !important;
    color:var(--v2-text, #e5e7eb) !important;
    box-shadow:var(--v2-shadow-soft, 0 14px 38px rgba(0,0,0,.18)) !important;
}
html[data-theme="light"] body.ui-v2-shell .calendar-page .calendar-main-card,
html[data-theme="light"] body.ui-v2-shell .calendar-page .calendar-side-card{
    background:#fff !important;
}

/* HVSZ_H97_CLOSED_QUEUE_PAGINATION */
body.ui-v2-shell .queue-pagination{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    margin-top:14px;
    padding:12px 14px;
    border:1px solid var(--v2-border, rgba(148,163,184,.18));
    border-radius:14px;
    background:color-mix(in srgb, var(--v2-card, #1b1e24) 96%, transparent);
    box-shadow:var(--v2-shadow-soft, 0 14px 38px rgba(0,0,0,.18));
}
body.ui-v2-shell .queue-pagination__summary{
    color:var(--v2-muted, #94a3b8);
    font-size:.92rem;
}
body.ui-v2-shell .queue-pagination__links{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
    flex-wrap:wrap;
}
body.ui-v2-shell .queue-pagination__link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    min-height:36px;
    padding:7px 10px;
    border:1px solid var(--v2-border, rgba(148,163,184,.18));
    border-radius:10px;
    background:color-mix(in srgb, var(--v2-card-2, #171a20) 94%, transparent);
    color:var(--v2-text, #e5e7eb);
    text-decoration:none;
    font-weight:650;
    line-height:1;
}
body.ui-v2-shell a.queue-pagination__link:hover{
    transform:translateY(-1px);
    border-color:color-mix(in srgb, var(--v2-accent, #60a5fa) 60%, var(--v2-border, rgba(148,163,184,.18)));
}
body.ui-v2-shell .queue-pagination__link.is-active{
    background:var(--v2-accent, #2563eb);
    border-color:var(--v2-accent, #2563eb);
    color:#fff;
}
body.ui-v2-shell .queue-pagination__link.is-disabled{
    opacity:.45;
    cursor:not-allowed;
}
body.ui-v2-shell .queue-pagination__link--wide{
    min-width:92px;
}
body.ui-v2-shell .queue-pagination__ellipsis{
    color:var(--v2-muted, #94a3b8);
    padding:0 3px;
}
body.ui-v2-shell .stats-dataset-loading,
body.ui-v2-shell .stats-dataset-error{
    min-height:360px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:var(--v2-muted, #94a3b8);
    font-weight:650;
}
body.ui-v2-shell .stats-dataset-error{
    color:var(--v2-danger, #ef4444);
}
@media (max-width: 760px){
    body.ui-v2-shell .queue-pagination{
        align-items:stretch;
    }
    body.ui-v2-shell .queue-pagination__summary{
        width:100%;
        text-align:center;
    }
    body.ui-v2-shell .queue-pagination__links{
        justify-content:center;
        width:100%;
    }
}



/* HVSZ_H106_NEW_TICKET_NAV_STATE
   A nem aktív Új hibajegy modalnyitó fókusz/hover állapota korábban
   összetéveszthető volt az active menüponttal. */
body.ui-v2-shell nav.topbar-center .topbar-pill--new-ticket {
  width: 100% !important;
  justify-content: flex-start !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.ui-v2-shell nav.topbar-center
.topbar-pill--new-ticket:not(.active):not(.is-active) {
  background: color-mix(in srgb, var(--v2-control-2) 76%, transparent) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.ui-v2-shell nav.topbar-center
.topbar-pill--new-ticket:not(.active):not(.is-active):hover {
  transform: translateX(1px) !important;
  background: color-mix(in srgb, var(--v2-elevated) 72%, var(--v2-control-2)) !important;
  border-color: var(--v2-border) !important;
  box-shadow: none !important;
}

body.ui-v2-shell nav.topbar-center
.topbar-pill--new-ticket:not(.active):not(.is-active):focus,
body.ui-v2-shell nav.topbar-center
.topbar-pill--new-ticket:not(.active):not(.is-active):focus-visible {
  transform: none !important;
  background: color-mix(in srgb, var(--v2-control-2) 76%, transparent) !important;
  border-color: var(--v2-border) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--v2-accent) 30%, transparent) !important;
  outline: none !important;
}

body.ui-v2-shell nav.topbar-center
.topbar-pill--new-ticket.active,
body.ui-v2-shell nav.topbar-center
.topbar-pill--new-ticket.is-active {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--v2-accent) 18%, var(--v2-control-2)),
    color-mix(in srgb, var(--v2-accent-2) 9%, var(--v2-control-2))
  ) !important;
  border-color: color-mix(in srgb, var(--v2-accent) 42%, transparent) !important;
  box-shadow: inset 3px 0 0 var(--v2-accent) !important;
}
