/* Phone navigation with a "Más" sheet (shared/nav.js). The bar itself is styled by each app (partner: .tabbar, merchant + admin: .pnav below); the sheet is shared.
   Knobs: --pn-h (height of the bar), --pn-w (max width of bar + sheet, partner = 480px), --pn-z (z-index of the bar). The sheet stops ABOVE the bar so the bar stays reachable. */
:root { --pn-h: 64px; --pn-z: 6; }
.pn-bg { position: fixed; left: 0; right: 0; top: 0; bottom: calc(var(--pn-h) + env(safe-area-inset-bottom, 0px)); z-index: calc(var(--pn-z) + 1); background: rgba(0,0,0,.35); }
.pn-sheet { position: fixed; left: 0; right: 0; bottom: calc(var(--pn-h) + env(safe-area-inset-bottom, 0px)); z-index: calc(var(--pn-z) + 2); max-width: var(--pn-w, none); margin: 0 auto;
  max-height: calc(100vh - var(--pn-h) - 72px); overflow-y: auto; background: var(--paper, #fff); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.2); padding: 14px 12px 12px; }
.pn-h { margin: 0 4px 10px; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2, #4a505a); }
.pn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pn-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line, #e3e5e8); background: var(--paper, #fff);
  color: var(--ink, #14161a); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2; }
.pn-item .ico { font-size: 20px; width: 24px; text-align: center; flex: none; } .pn-item .pn-t { min-width: 0; overflow-wrap: anywhere; }
.pn-item.on { background: #e6f2ee; color: var(--brand, #1f6f5c); border-color: var(--brand, #1f6f5c); font-weight: 800; }
.pn-item .badge { position: static; margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--bad, #b42318); color: #fff; font: 700 13px/22px system-ui, sans-serif; text-align: center; font-style: normal; padding: 0 6px; }
.pn-more { background: none; border: 0; border-radius: 0; cursor: pointer; }
.pn-item:focus-visible, .pn-more:focus-visible { outline: 3px solid var(--accent, #f2b23a); outline-offset: -3px; }
/* the bar for the two dashboards (partner has its own .tabbar): only on a phone, the sidebar takes over from 801 px */
.pnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--pn-z); display: grid; grid-template-columns: repeat(var(--pn, 5), minmax(0, 1fr)); background: var(--paper, #fff);
  border-top: 1px solid var(--line, #e3e5e8); box-shadow: 0 -4px 14px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom, 0px); }
.pnav a, .pnav .pn-more { position: relative; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 2px; font-size: 12px; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink-2, #4a505a); text-decoration: none; font-family: inherit; text-align: center; line-height: 1.15; } /* long names ("Requiere atención") wrap to two lines instead of colliding */
.pnav .ico { font-size: 20px; line-height: 1; }
.pnav a.on, .pnav .pn-more.on { color: var(--brand, #1f6f5c); font-weight: 700; box-shadow: inset 0 3px 0 var(--brand, #1f6f5c); }
.pnav .badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 20px; height: 20px; border-radius: 10px; background: var(--bad, #b42318); color: #fff; font: 700 12px/20px system-ui, sans-serif; text-align: center; font-style: normal; padding: 0 5px; }
@media (min-width: 801px) { .pnav { display: none; } }
