/* V36.7.30 — portrait header label, landscape welcome surface and dialog contrast. */

/* The portrait header intentionally replaces the original button label with a shorter
   pseudo-label. Keep the source text visually hidden so it cannot render twice. */
@media (max-width: 600px) and (orientation: portrait) {
  .app-header #theme-gallery-toggle {
    justify-self: end !important;
    margin: 0 !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  .app-header #theme-gallery-toggle > span {
    display: inline-block !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
  .app-header #theme-gallery-toggle > span::after {
    content: "Giao diện" !important;
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }
  .app-header .notification-center {
    margin-left: 0 !important;
    justify-self: start !important;
  }
  .app-header .notification-bell {
    margin-left: 0 !important;
  }
  .app-header {
    column-gap: 6px !important;
  }
}

/* Keep the landscape header's existing two-row layout. The welcome copy is a
   lightweight introduction, not a boxed card that competes with the dashboard. */
@media (orientation: landscape) {
  body.dashboard-home .seasonal-welcome {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

/* Theme-aware prompt/confirm dialogs: ensure the message remains readable in
   dark seasonal themes and in the light default theme. */
.theme-dialog-card,
.theme-dialog-card .theme-dialog-message {
  color: #f1f5fb !important;
}
.theme-dialog-card .theme-dialog-message {
  opacity: 1 !important;
  text-shadow: none !important;
}
body.theme-default.default-light-mode .theme-dialog-card,
body.theme-default.default-light-mode .theme-dialog-card .theme-dialog-message {
  color: #172235 !important;
}
body.theme-default.default-light-mode .theme-dialog-card .theme-dialog-message {
  background: transparent !important;
}
