/* Diabolical Pricing inside Hangar. Generated from the old Pricing app.css: its
   palette is mapped onto Hangar's tokens (app.css) and every rule is scoped to
   .pricing. The old header and nav are gone; PricingTabs replaces the nav. */
.pricing {
  --surface: var(--panel); --brand: var(--side); --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08); --tap: 52px;
}
.main:has(.pricing) { max-width: 1200px; }
.pricing .pricing-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.pricing .pricing-tab { color: var(--muted); text-decoration: none; padding: .4rem .75rem; border-radius: 8px; font-weight: 600; }
.pricing .pricing-tab.active { color: var(--ink); background: var(--bg); box-shadow: inset 0 -2px 0 var(--accent); }
@media (prefers-color-scheme: dark) { .pricing { --brand: #3a3936; } }
@media print { .shell:has(.pricing) .side, .shell:has(.pricing) .toast { display: none !important; } .shell:has(.pricing) { display: block; } }
.pricing .page-title { font-size: 20px; margin: 4px 0 16px; }
.pricing .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; }
.pricing .muted { color: var(--muted); }
.pricing .small { font-size: 12px; }
.pricing .tag-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pricing .chip { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.pricing .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pricing .search-bar { margin-bottom: 14px; }
.pricing .search-input { width: 100%; height: var(--tap); padding: 0 14px; font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pricing .product-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pricing .product-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--line); }
.pricing .product-title { font-weight: 600; font-size: 15px; }
.pricing .product-head.clickable { cursor: pointer; }
.pricing .product-chevron { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; }
.pricing .detail-back { margin: 2px 0 6px; }
.pricing .gallery { margin-bottom: 14px; }
.pricing .gallery-main { width: 100%; max-height: 360px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pricing .gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.pricing .gallery-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); opacity: 0.6; cursor: pointer; flex: 0 0 auto; }
.pricing .gallery-thumb.active { opacity: 1; border-color: var(--brand); }
.pricing .product-desc { font-size: 14px; line-height: 1.55; }
.pricing .product-desc img { max-width: 100%; height: auto; }
.pricing .product-desc table { max-width: 100%; }
.pricing .ship-box { font-size: 13px; color: var(--muted); margin: -2px 0 10px; }
.pricing .variant-list { display: flex; flex-direction: column; gap: 8px; }
.pricing .variant-row { display: flex; gap: 8px; align-items: stretch; }
.pricing .variant-row .variant { flex: 1; }
.pricing .btn-quote { flex: 0 0 auto; min-width: 84px; min-height: var(--tap); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.pricing .btn-quote.added { background: var(--ok); color: #fff; border-color: var(--ok); }
.pricing .cart-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.pricing .qty-sm { width: 76px; height: 46px; font-size: 16px; text-align: right; }
.pricing .price-was { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pricing .link-inline { display: inline; min-height: 0; min-width: 0; padding: 0 2px; font-size: 12px; }
.pricing .quote-doc { margin-top: 6px; }
.pricing .quote-doc-head { margin-bottom: 10px; }
.pricing .quote-totals { margin: 14px 0 6px; margin-left: auto; max-width: 320px; }
.pricing .qt-row { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.pricing .qt-row.qt-grand { font-weight: 800; font-size: 18px; border-bottom: none; border-top: 2px solid var(--ink); }
.pricing .quote-notes { margin-top: 12px; font-size: 14px; }
.pricing .card-h { font-size: 16px; margin: 0 0 10px; }
.pricing .book-sections, .pricing .book-editor { list-style: none; margin: 6px 0; padding: 0; }
.pricing .book-row, .pricing .be-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pricing .book-name, .pricing .be-name { flex: 1; font-size: 14px; }
.pricing .be-inputs { display: inline-flex; align-items: center; gap: 6px; }
.pricing .book-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pricing .be-cat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.pricing .be-cat-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.pricing .be-cat-head .search-input { flex: 1; font-weight: 600; }
.pricing .be-title { flex: 1; min-width: 120px; }
.pricing .be-row { flex-wrap: wrap; }
.pricing .reader { position: fixed; inset: 0; display: flex; flex-direction: column; background: #1f2937; z-index: 50; }
.pricing .reader-bar { display: flex; align-items: center; justify-content: space-between; padding: env(safe-area-inset-top) 14px 0; height: calc(50px + env(safe-area-inset-top)); background: var(--brand); color: #fff; flex: 0 0 auto; }
.pricing .reader-btn { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 10px; }
.pricing .reader-btn-spacer { width: 44px; }
.pricing .reader-title { font-size: 14px; opacity: 0.85; }
.pricing .reader-frame { flex: 1 1 auto; width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #525659; padding: 8px; }
.pricing .reader-frame .pdf-page { display: block; margin: 0 auto 10px; max-width: 100%; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); background: #fff; }
.pricing .reader-image-wrap { text-align: center; }
.pricing .reader-image { max-width: 100%; height: auto; background: #fff; }
.pricing .cad-remove { margin: 8px 0 0; }
.pricing .model-stage { overflow: hidden; padding: 0; background: #2b2f36; touch-action: none; }
.pricing .slot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pricing .slot-label { font-weight: 600; font-size: 14px; }
.pricing .slot-manage { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.pricing .slot-manage .book-upload { margin-top: 4px; }
.pricing .slot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pricing .empty { text-align: center; padding: 32px 16px; }
.pricing .empty .btn { margin-top: 12px; }
.pricing .variant { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: var(--tap); padding: 8px 12px; text-align: left; background: #fafafa; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; cursor: pointer; }
.pricing .variant.active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #fff; }
.pricing .variant-name { font-weight: 600; }
.pricing .variant-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pricing .variant-meta .price { font-weight: 700; }
.pricing .variant-meta .stock { font-size: 12px; color: var(--ok); }
.pricing .variant-meta .stock.out { color: var(--accent); }
.pricing .variant-meta .sku { font-size: 12px; color: var(--muted); }
.pricing .quote-panel { position: sticky; bottom: 0; }
.pricing .quote-selected { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pricing .quote-name { font-weight: 700; }
.pricing .quote-price { color: var(--muted); font-size: 14px; }
.pricing .field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pricing .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.pricing .field > span { font-size: 13px; color: var(--muted); }
.pricing .field input, .pricing .field .qty { height: var(--tap); padding: 0 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); width: 100%; }
.pricing .rate-list { list-style: none; margin: 14px 0 6px; padding: 0; }
.pricing .rate { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.pricing .rate:last-child { border-bottom: none; }
.pricing .rate-title { font-weight: 600; }
.pricing .rate-amount { font-weight: 800; font-size: 18px; }
.pricing .btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 18px; font-size: 16px; font-weight: 600; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.pricing .btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.pricing .btn-primary:disabled { opacity: 0.6; }
.pricing .btn-block { width: 100%; }
.pricing .btn-block + .btn-block, .pricing .btn-block + .link-btn, .pricing .link-btn + .btn-block { margin-top: 10px; }
.pricing .link-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; background: none; border: none; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; padding: 8px 10px; }
.pricing .alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; }
.pricing .alert.info { background: #eff6ff; color: #1e3a8a; }
.pricing .alert.error { background: #fef2f2; color: #991b1b; }
.pricing .alert.success { background: #f0fdf4; color: #166534; }
.pricing .login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--brand); }
.pricing .login-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.pricing .login-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pricing .login-brand h1 { font-size: 20px; margin: 0; }
.pricing .login-form { margin-top: 16px; }
.pricing .select { height: var(--tap); padding: 0 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); width: 100%; }
.pricing .report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.pricing .report-title { font-weight: 700; font-size: 17px; }
.pricing .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing .report-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.pricing .report-table th, .pricing .report-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricing .report-table thead th { position: sticky; top: 0; background: #f9fafb; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.pricing .report-table .num { text-align: right; white-space: nowrap; }
.pricing .report-table .strong { font-weight: 800; }
.pricing .report-table .grp-head td { background: #f3f4f6; }
.pricing .grp-title { font-weight: 700; }
.pricing .grp-box { margin-left: 8px; font-weight: 500; font-size: 13px; color: var(--muted); }
.pricing .report-table .grp-single .grp-title { font-weight: 600; }
.pricing .report-table td.indent { padding-left: 22px; }
.pricing .report-table .prod-sub td { font-weight: 600; padding-top: 12px; }
.pricing .toggle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 4px; }
.pricing .tgl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.pricing .tgl input { width: 22px; height: 22px; }
.pricing .add-group { display: flex; gap: 8px; margin: 12px 0; }
.pricing .add-group .search-input { flex: 1; }
.pricing .group-editor { list-style: none; margin: 8px 0; padding: 0; }
.pricing .ge-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pricing .ge-inc { display: inline-flex; }
.pricing .ge-inc input { width: 20px; height: 20px; }
.pricing .ge-title { flex: 1; font-size: 14px; }
.pricing .ge-select { width: auto; min-width: 140px; height: 40px; }
.pricing .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
@media print {
  .pricing .no-print { display: none !important; }
  .pricing .card { box-shadow: none; border: none; }
  .pricing .report-table thead th { position: static; background: #fff; color: #000; }
  .pricing .report-table th, .pricing .report-table td { border-bottom: 1px solid #ccc; }
  .pricing .report-table .grp-head td { background: #fff; border-top: 2px solid #000; font-weight: 700; }
  .pricing .table-scroll { overflow: visible; }
}
.pricing .saved-list { list-style: none; margin: 0; padding: 0; }
.pricing .saved-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.pricing .saved-main { min-width: 0; }
.pricing .saved-name { font-weight: 600; }
.pricing .saved-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.pricing .check-row { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 8px 0 14px; cursor: pointer; font-size: 15px; }
.pricing .check-row input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 auto; }
.pricing .tag-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 11px; font-weight: 600; line-height: 1.6; color: var(--muted); background: var(--line); border-radius: 999px; vertical-align: middle; }
