/* YURA Tổng vụ v2.20.9 · Screen typography system
 * One consistent scale after the legacy theme/readability layers.
 * IMPORTANT: no @media print rules, no print document selectors, and no
 * overrides to Mail's rich-text editor/contenteditable or email body HTML.
 */
@media screen {
  #app {
    --yv-text-page-title: 21px;
    --yv-text-section: 16px;
    --yv-text-primary: 14px;
    --yv-text-secondary: 13px;
    --yv-text-caption: 12px;
    --yv-text-control: 13.5px;
  }

  /* Sidebar brand: readable two-line subtitle instead of an 8.5px single line. */
  #app .side-brand { min-height: 70px !important; height: auto !important; flex-basis: auto !important; }
  #app .side-brand > div:last-child { min-width: 0; flex: 1 1 auto; }
  #app .side-brand .brand-symbol.yura-sidebar-logo {
    width: 106px !important; min-width: 106px !important; max-width: 106px !important;
  }
  #app .side-brand strong {
    font-size: 14px !important; font-weight: 750 !important;
    line-height: 1.3 !important; letter-spacing: 0 !important;
  }
  #app .side-brand small {
    font-size: 10.5px !important; line-height: 1.3 !important;
    font-weight: 500 !important; white-space: normal !important;
    overflow-wrap: normal; letter-spacing: 0 !important;
  }

  /* Main navigation: a consistent 13–14px scale on every section. */
  #app #navigation .nav-group-title {
    font-size: 13px !important; line-height: 1.45 !important; font-weight: 700 !important;
  }
  #app #navigation .nav-submenu .nav-text {
    font-size: 13.5px !important; line-height: 1.45 !important; font-weight: 600 !important;
  }
  #app #navigation .nav-group-toggle,
  #app #navigation .nav-submenu a { min-height: 38px !important; }
  #app #navigation .nav-group-icon,
  #app #navigation .nav-icon { flex-shrink: 0; }

  /* Left account card. Previous 10px buttons were difficult to read. */
  #app .side-user strong {
    font-size: 14px !important; line-height: 1.42 !important; font-weight: 700 !important;
  }
  #app .side-user small {
    font-size: 12px !important; line-height: 1.45 !important; font-weight: 450 !important;
    margin: 4px 0 10px !important;
  }
  #app .side-user button:not([hidden]) {
    font-size: 13px !important; line-height: 1.35 !important;
    font-weight: 600 !important; min-height: 36px !important;
    padding: 8px 10px !important; white-space: normal;
  }

  /* Topbar and search: scale labels, not decorative icons. */
  #app .topbar #pageTrail { font-size: 16px !important; line-height: 1.4 !important; font-weight: 700 !important; letter-spacing: 0 !important; }
  #app .topbar .yv-global-search input { font-size: 13px !important; line-height: 1.45 !important; }
  #app .topbar .yv-business-search-label { font-size: 13px !important; font-weight: 650 !important; }
  #app .topbar .yv-user-name { font-size: 13px !important; line-height: 1.35 !important; }
  #app .topbar .yv-user-copy small { font-size: 12px !important; line-height: 1.35 !important; }
  #app .yv-search-results { font-size: 13px !important; }
  #app .yv-search-results button { font-size: 13px !important; line-height: 1.45 !important; }

  /* General module pages, forms, and data tables. */
  #pageContent .page-title h1 {
    font-size: var(--yv-text-page-title) !important; line-height: 1.32 !important;
    font-weight: 700 !important; letter-spacing: 0 !important;
  }
  #pageContent .page-title p,
  #pageContent .panel .it-subtitle,
  #pageContent .table-note { font-size: var(--yv-text-secondary) !important; line-height: 1.5 !important; }
  #pageContent .panel-title { font-size: var(--yv-text-section) !important; line-height: 1.4 !important; }
  #pageContent .panel label { font-size: 13px !important; line-height: 1.5 !important; }
  #pageContent .panel input:not([type="checkbox"]):not([type="radio"]),
  #pageContent .panel select,
  #pageContent .panel textarea {
    font-size: var(--yv-text-primary) !important; line-height: 1.5 !important;
  }
  #pageContent .toolbar button,
  #pageContent .toolbar-actions button,
  #pageContent .panel button:not(.yv-combobox-option),
  #pageContent .panel .btn,
  #pageContent .page-title button {
    font-size: var(--yv-text-control) !important; line-height: 1.4 !important;
  }
  #pageContent .panel table th {
    font-size: 13px !important; line-height: 1.5 !important; font-weight: 700 !important;
  }
  #pageContent .panel table td {
    font-size: 14px !important; line-height: 1.55 !important;
  }
  #pageContent .panel table td small,
  #pageContent .panel table td .muted {
    font-size: 13px !important; line-height: 1.45 !important;
  }
  #pageContent .panel table td .title { font-size: 14px !important; line-height: 1.45 !important; }
  #pageContent .panel table td.actions button { font-size: 13px !important; line-height: 1.35 !important; }
  #pageContent .panel .badge { font-size: 12px !important; line-height: 1.35 !important; }
  #app .main-content > .footer { font-size: 12px !important; font-weight: 500 !important; letter-spacing: .2px !important; }

  /* Dashboard: headings, notifications, stock alerts, and feature cards. */
  #pageContent .yc-v42-root .yc-panel-head h2 {
    font-size: 16px !important; line-height: 1.4 !important; font-weight: 700 !important;
  }
  #pageContent .yc-v42-root .yc-panel-head p {
    font-size: 13px !important; line-height: 1.5 !important;
  }
  #pageContent .yc-v42-root .yc-notice strong,
  #pageContent .yc-v42-root .yc-stock-details strong {
    font-size: 14px !important; line-height: 1.48 !important; font-weight: 700 !important;
  }
  #pageContent .yc-v42-root .yc-notice small,
  #pageContent .yc-v42-root .yc-stock-details small {
    font-size: 13px !important; line-height: 1.45 !important;
  }
  #pageContent .yc-v42-root .yc-stock-row b,
  #pageContent .yc-v42-root .yc-status { font-size: 12px !important; line-height: 1.4 !important; }
  #pageContent .yc-v42-root .yc-notice-filters button {
    font-size: 13px !important; line-height: 1.4 !important;
    min-height: 34px; font-weight: 650 !important;
  }
  #pageContent .yc-v42-root .yc-panel-link {
    font-size: 13px !important; line-height: 1.45 !important; font-weight: 650 !important;
  }
  #pageContent .yc-v42-root .yc-feature-card {
    font-size: 14px !important; min-height: 128px !important; line-height: 1.45 !important;
  }
  #pageContent .yc-v42-root .yc-feature-card strong {
    font-size: 14px !important; line-height: 1.4 !important; font-weight: 700 !important;
  }
  #pageContent .yc-v42-root .yc-feature-card small,
  #pageContent .yc-v42-root .yc-feature-card .yc-feature-count {
    font-size: 12.5px !important; line-height: 1.42 !important;
  }
  #pageContent .yc-v42-root .yc-search input { font-size: 13.5px !important; line-height: 1.45 !important; }
  #pageContent .yc-v42-root .yc-feed-meta { font-size: 12px !important; }
  #pageContent .yc-v42-root .yc-more-functions > summary,
  #pageContent .yc-v42-root .yc-operations > summary {
    font-size: 13px !important; line-height: 1.5 !important;
  }
  #pageContent .yc-v42-root .yc-quick-group h3 { font-size: 15px !important; line-height: 1.4 !important; }
  #pageContent .yc-v42-root .yc-quick-group h3 small { font-size: 12px !important; }
  #pageContent .yc-v42-root .yc-shortcut { font-size: 13px !important; line-height: 1.45 !important; }
  #pageContent .yc-v42-root .yc-operations-toolbar { font-size: 12px !important; }
  #pageContent .yc-v42-root .yc-day-head span,
  #pageContent .yc-v42-root .yc-day-head b { font-size: 13px !important; }
  #pageContent .yc-v42-root .yc-event { font-size: 12.5px !important; }
  #pageContent .yc-v42-root .yc-event small { font-size: 12px !important; }

  /* Account/data-edit dialogs, explicitly excluding Mail editor and print preview. */
  #editDialog label, #editDialog .help,
  #vaultUnlockDialog label { font-size: 13px !important; line-height: 1.55 !important; }
  #editDialog input, #editDialog textarea, #editDialog select,
  #editDialog button, #vaultUnlockDialog button { font-size: 14px !important; line-height: 1.45 !important; }
  #login .login-card label, #login .login-card button { font-size: 14px !important; line-height: 1.45 !important; }
}

@media screen and (max-width: 750px) {
  #app .side-brand .brand-symbol.yura-sidebar-logo { width: 100px !important; min-width: 100px !important; max-width: 100px !important; }
  #app .side-brand strong { font-size: 13.5px !important; }
  #app .side-brand small { font-size: 10px !important; }
  #app #navigation .nav-group-title { font-size: 13px !important; }
  #app #navigation .nav-submenu .nav-text { font-size: 13px !important; }
  #app .topbar #pageTrail { font-size: 15px !important; line-height: 1.4 !important; }
  #app .side-user button:not([hidden]) { min-height: 40px !important; }
  #pageContent .page-title h1 { font-size: 20px !important; }
  #app.shell #pageContent .yc-v42-root .yc-panel-head h2 { font-size: 16px !important; }
  #app.shell #pageContent .yc-v42-root .yc-feature-card { min-height: 116px !important; }
  #pageContent .yc-v42-root .yc-notice-filters button { font-size: 12.5px !important; padding: 8px 5px !important; }
  #pageContent .panel table td { font-size: 13.5px !important; }
  #pageContent .panel table th { font-size: 12.5px !important; }
}
