/* Shared presentation for every Draxeen edition. Screen only: receipt and PDF rules retain their typography. */
/* Secondary POS choices keep usable columns instead of shrinking into one row. */
@media screen and (max-width:767px){
 body .view-section :is(.md-tools,.vd-sale-tools>.vd-tools,.av-cart-tools,.ch-cart-tools,.t-sale-fiscal-actions){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0}
 body .view-section :is(.md-tools,.vd-sale-tools>.vd-tools,.av-cart-tools,.ch-cart-tools,.t-sale-fiscal-actions)>button{display:flex!important;align-items:center;justify-content:center;gap:8px!important;min-width:0!important;width:100%;min-height:48px!important;padding:10px!important;font-size:14px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
 body .view-section :is(.md-tools,.vd-sale-tools>.vd-tools,.av-cart-tools,.ch-cart-tools,.t-sale-fiscal-actions)>button i{flex:0 0 auto}
}
@media screen {
  :root {
    --dx-font-ui: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    --dx-type-title: clamp(1.625rem, 1.3rem + .8vw, 2.25rem);
    --dx-type-section: clamp(1.0625rem, 1rem + .22vw, 1.25rem);
    --dx-type-copy: .9375rem;
    --dx-type-meta: .8125rem;
    --dx-focus: #009ca6;
  }

  html body {
    font-family: var(--dx-font-ui);
    font-kerning: normal;
    text-rendering: optimizeLegibility;
  }

  /* These roots previously mixed Arial, an unavailable Inter and system fonts. */
  body :is(#view-dashboard, #view-restaurant, #view-gastrobar, #view-hardware,
    #view-tech, #view-repuestos, #view-agrovet, #view-moda, #view-market,
    #view-charcuteria, #view-variedades, #view-cotizaciones),
  body .view-section :is(.administration-page, .op-page, .cf-page, .ml-page, .gt-pos, .t-workspace),
  body :is(.r-dialog, .g-dialog, .t-dialog, .rp-dialog, .av-dialog, .ch-dialog,
    .md-dialog, .vd-dialog, .mk-dialog, .op-dialog, .h-more-dialog,
    .rpf-panel, .tpf-panel, .hpf-panel, .dataico-dialog),
  body :is(#sidebar, #desktop-header, #mobile-topbar, #mobile-bottom-nav) {
    font-family: var(--dx-font-ui) !important;
  }

  body .view-section :is(button, input, select, textarea),
  body dialog :is(button, input, select, textarea),
  body [id^='modal-'] :is(button, input, select, textarea) {
    font-family: var(--dx-font-ui);
    font-kerning: normal;
  }

  body .view-section label,
  body dialog label,
  body [id^='modal-'] label {
    font-size: .875rem !important;
    line-height: 1.45;
    font-weight: 600;
  }

  body :is(.op-heading, .ad-heading, .cf-heading, .qt-heading, .t-heading,
    .h-heading, .rp-heading, .av-heading, .ch-heading, .md-heading, .mk-heading,
    .vd-heading, .mkp-heading, .mki-heading, .mks-heading, .mkh-heading) h1 {
    font-size: var(--dx-type-title);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
    text-wrap: balance;
  }

  body :is(.op-heading, .ad-heading, .cf-heading, .qt-heading, .t-heading,
    .h-heading, .rp-heading, .av-heading, .ch-heading, .md-heading, .mk-heading,
    .vd-heading, .mkh-heading) > p,
  body :is(.op-heading, .t-heading, .rp-heading, .av-heading, .ch-heading,
    .md-heading, .mk-heading, .vd-heading) > div > p {
    font-size: var(--dx-type-copy);
    line-height: 1.6;
  }

  body .view-section :is(.op-card, .ad-card, .cf-card, .h-card, .t-card,
    .rp-card, .av-card, .ch-card, .md-card, .vd-card, .mk-card) > h2,
  body :is(.dh-heading, .r-home-panel-heading, .mkx-panel-heading) h3 {
    font-size: var(--dx-type-section);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.015em;
  }

  /* Names are primary reading content, rather than small metadata. */
  body .view-section :is(.md-product-copy, .vd-product-copy, .av-product-copy,
    .ch-product-copy, .mk-product-copy, .mks-product-copy, .h-product-copy) h3,
  body .view-section :is(.t-product-name, .av-product-name, .mkh-product-name),
  body .view-section .t-product-name strong {
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
  }

  body :is(.dh-product, .dh-event) strong {
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.4;
  }

  body .view-section :is(.op-metric, .h-metric, .rp-metric, .av-metric,
    .ch-metric, .md-metric, .mk-metric, .vd-metric, .mkh-metric, .mki-metric,
    .mkx-metric, .avc-metric, .chc-metric, .mkc-metric, .mdc-metric, .vdc-metric) :is(h3, small),
  body .t-metrics article > div > span {
    font-size: var(--dx-type-meta);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .005em;
  }

  body :is(.op-metric, .h-metric, .rp-metric, .av-metric, .ch-metric,
    .md-metric, .mk-metric, .vd-metric, .t-metrics, .mkh-metric, .mki-metric,
    .mkx-metric, .avc-metric, .chc-metric, .mkc-metric, .mdc-metric, .vdc-metric) strong,
  body :is(.op-ledger, .gt-total, .md-total, .vd-total, .av-total, .ch-total,
    .mk-total, .rp-total, .mks-total, .dh-week-total, #sidebar-caja-total) {
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -.025em;
  }

  body .view-section :is(.op-badge, .r-badge, .t-badge, .ho-badge, .rp-badge,
    .av-badge, .ch-badge, .md-badge, .vd-badge, .mk-badge, .mki-badge,
    .mkx-badge, .avc-badge, .chc-badge, .mkc-badge, .mdc-badge, .vdc-badge) {
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .01em;
    border-radius: 999px;
  }

  body :is(.t-ranking article > em, .r-home-ranked > em, .h-alert-rank,
    .mkh-product-rank) {
    font-family: var(--dx-font-ui);
    font-style: normal;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  body .view-section :is(.op-metric, .h-metric, .av-metric, .ch-metric,
    .md-metric, .vd-metric, .mk-metric, .mkh-metric, .mki-metric, .mkx-metric),
  body .t-metrics > article {
    border-radius: 14px;
    box-shadow: 0 3px 14px rgb(15 45 65 / 4%);
  }

  body #sidebar nav button,
  body :is(#r-sidebar-nav, #g-sidebar-nav, #h-sidebar-nav, #t-sidebar-nav,
    #rp-sidebar-nav, #av-sidebar-nav, #ch-sidebar-nav, #md-sidebar-nav,
    #mk-sidebar-nav, #vd-sidebar-nav) button {
    font-weight: 700;
    letter-spacing: -.005em;
  }

  body .view-section :is(.op-btn, .op-link, .h-button, .t-button, .rp-button,
    .av-button, .ch-button, .md-button, .mk-button, .vd-button),
  body dialog :is(.op-btn, .h-button, .t-button, .rp-button, .av-button,
    .ch-button, .md-button, .mk-button, .vd-button) {
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
  }

  body .view-section :is(button, input, select, textarea):focus-visible,
  body dialog :is(button, input, select, textarea):focus-visible {
    outline: 2px solid var(--gt-accent, var(--dx-focus));
    outline-offset: 3px;
  }

  /* Form text stays readable on touch devices and avoids automatic input zoom. */
  @media (max-width: 767px), (pointer: coarse) {
    body :is(#mobile-bottom-nav, #r-mobile-nav, #g-mobile-nav, #h-mobile-nav,
      #t-mobile-nav, #rp-mobile-nav, #av-mobile-nav, #ch-mobile-nav,
      #md-mobile-nav, #mk-mobile-nav, #vd-mobile-nav) button > span {
      font-size: .75rem;
      font-weight: 700;
      line-height: 1.25;
    }

    body .view-section :is(input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='range']), select, textarea),
    body dialog :is(input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='range']), select, textarea),
    body [id^='modal-'] :is(input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='range']), select, textarea) {
      font-size: 1rem !important;
    }

    body .view-section :is(.md-product-copy, .vd-product-copy, .av-product-copy,
      .ch-product-copy, .mk-product-copy, .mks-product-copy, .h-product-copy) h3 {
      font-size: 1rem !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .view-section.active { animation: none; opacity: 1; transform: none; }
    .pulse-soft { animation: none; }
    .hover-scale:hover { transform: none; }
  }
}
