/* MC-5885 — Lean & Compact shared stylesheet.
   These rules started life in invoice.css as the MC-5485 waiting-for-payment scene (Proto 1,
   compact card layout) and were MOVED here unchanged when the quotation webview adopted the same
   look; MC-5886/5887/5888/5889 consume the same file. Every selector is prefixed `pp-` because
   each consuming page mounts all of its status scenes as sibling x-if blocks in one document —
   nothing here may widen the reach of a shared selector.
   Page-specific geometry deliberately stayed behind: `.container` / `.footer` / `.container.pp-has-dock`
   live with the page that owns its scroller model (invoice.css, quotation.css), because the dock
   rules are meaningless without the height/overflow model they were written against.
   Do NOT add transform / filter / backdrop-filter / will-change / contain to .container or to any
   dock wrapper: each of those makes it a containing block and traps the position:fixed dialogs. */

:root {
  --pp-ink: #1b1f24;
  --pp-muted: #55636e;
  --pp-line: #dbe1e5;
  --pp-line-soft: #eef2f5;
  --pp-surface: #ffffff;
  --pp-surface-sunken: #f6f8fa;
  --pp-brand: #27a2ff;
  --pp-brand-line: #1489e0;
  --pp-brand-ink: #0b63a8;
  --pp-brand-strong: #0b6fbe;
  --pp-brand-soft: #eff7ff;
  --pp-danger: #f5303a;
  --pp-danger-ink: #c3262e;
  --pp-ok: #18c177;
  --pp-radius: 12px;
  --pp-radius-sm: 8px;
  --pp-dur: 180ms;
  --pp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* semantic layers — the bank dropdown has to clear the sticky dock (.footer, z-index 5) */
  --pp-z-dropdown: 6;
}

.pp-shop-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pp-brand-ink);
  padding-bottom: 2px;
  word-break: break-word;
}

.pp-inv-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}

.pp-inv-id {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pp-ink);
  letter-spacing: 0.01em;
  word-break: break-all;
}

.pp-expires {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pp-brand-soft);
  border: 1px solid #cfe7fb;
  color: var(--pp-brand-ink);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pp-inv-meta {
  color: var(--pp-muted);
}

/* section headers — plain rows, not full-width solid banner bars */

.pp-section-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0px 2px 6px 2px;
}

.pp-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pp-ink);
}

.pp-section-aside {
  font-size: 0.8125rem;
  color: var(--pp-muted);
  white-space: nowrap;
}

.pp-linkbtn {
  flex: 0 0 auto;
  padding: 4px 8px;
  margin: -4px -8px -4px 0px;
  border: none;
  border-radius: var(--pp-radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pp-brand-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--pp-dur) var(--pp-ease);
}

.pp-linkbtn:hover {
  background: var(--pp-brand-soft);
}

.pp-linkbtn:focus-visible,
.pp-tab:focus-visible,
.pp-btn:focus-visible,
.pp-select:focus-visible,
.pp-dropdown-item:focus-visible,
.pp-iconbtn:focus-visible,
.pp-slip-remove:focus-visible,
.pp-dock-toggle:focus-visible,
.pp-btn-cancel:focus-visible,
.pp-btn-confirm:focus-visible {
  outline: 2px solid var(--pp-brand-ink);
  outline-offset: 2px;
}

/* section / dock shells shared by every lean page */

.pp-section-body {
  display: flex;
  flex-flow: column;
}

.pp-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-sm);
  background: var(--pp-surface);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pp-ink);
  cursor: pointer;
  transition:
    background-color var(--pp-dur) var(--pp-ease),
    border-color var(--pp-dur) var(--pp-ease);
}

.pp-btn:hover {
  border-color: var(--pp-brand-line);
  background: var(--pp-brand-soft);
}

.pp-btn span {
  overflow-wrap: anywhere;
}

.pp-dock-toggle-row {
  display: flex;
  justify-content: center;
}

.pp-dock-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pp-brand-ink);
  cursor: pointer;
  transition: background-color var(--pp-dur) var(--pp-ease);
}

.pp-dock-toggle:hover {
  background: var(--pp-brand-soft);
}

.pp-dock-caret {
  display: flex;
  transition: transform var(--pp-dur) var(--pp-ease);
}

.pp-dock-caret.is-open {
  transform: rotate(180deg);
}

.pp-total-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pp-total-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pp-ink);
}

.pp-total-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pp-ink);
  white-space: nowrap;
}

.pp-total-row.is-plain .pp-total-label,
.pp-total-row.is-plain .pp-total-value {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--pp-muted);
}

.pp-dock-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.pp-btn-cancel,
.pp-btn-confirm {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color var(--pp-dur) var(--pp-ease),
    border-color var(--pp-dur) var(--pp-ease),
    color var(--pp-dur) var(--pp-ease);
}

.pp-btn-cancel {
  flex: 1 1 0;
  border: 1px solid var(--pp-danger);
  background: var(--pp-surface);
  color: var(--pp-danger-ink);
}

.pp-btn-cancel:hover {
  background: #fff5f5;
}

.pp-btn-confirm {
  flex: 1.4 1 0;
  border: 1px solid var(--pp-brand-strong);
  background: var(--pp-brand-strong);
  color: #ffffff;
}

.pp-btn-confirm:hover {
  border-color: #095c9e;
  background: #095c9e;
}

.pp-btn-confirm:disabled,
.pp-btn-confirm.disabled {
  border-color: #e7ecf0;
  background: #e7ecf0;
  color: #8a97a3;
  cursor: default;
  pointer-events: none;
}

/* MC-5485 D6: Plus-Connect copyright, inside the sticky dock (kept small — the dock must stay
   compact). */
.pp-copyright {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* the wordmark asset is white-on-transparent (quick-pay renders it on blue), so it sits on a
   small brand chip here — the dock itself is white */
.pp-copyright-link {
  display: flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--pp-brand-strong);
}

.pp-copyright-logo {
  height: 10px;
  width: auto;
}

.pp-copyright-text {
  font-size: 0.625rem;
  color: var(--pp-muted);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .pp-btn,
  .pp-linkbtn,
  .pp-dock-toggle,
  .pp-dock-caret,
  .pp-btn-cancel,
  .pp-btn-confirm {
    transition-duration: 1ms;
  }
}
