OverviewFilesCommitsIssuesDocsReleasesPeers

electrical-review / design / app.css

204 lines · css ref:
/* ============================================================================
   PRSM SOLAR — LAYOUT & COMPONENTS
   ========================================================================== */

#root { position: relative; z-index: 1; min-height: 100%; }
.app { max-width: 1180px; margin: 0 auto; padding: 0 28px 96px; }

/* ------------------------------ MASTHEAD ------------------------------ */
.masthead { padding: 30px 0 18px; border-bottom: 2px solid var(--ink); }
.mast-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.mast-id { display: flex; align-items: center; gap: 16px; }
.mast-mark {
  width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; flex: none; position: relative;
}
.mast-mark::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--lead); }
.mast-mark::after { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--rule-2); border-radius: 50%; }
.mast-title { font-size: 30px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.mast-sub { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 6px; }
.mast-meta { text-align: right; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); line-height: 1.7; }
.mast-meta b { color: var(--ink); }
.mast-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; }
.fact { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 3px; padding: 4px 9px; background: var(--surface); }
.fact b { color: var(--ink); }

/* -------------------------------- NAV --------------------------------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 2px; background: color-mix(in oklch, var(--paper) 86%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule-2); margin: 0 -28px 0; padding: 0 28px; }
.nav-in { display: flex; gap: 4px; max-width: 1180px; margin: 0 auto; width: 100%; }
.nav-btn {
  font-family: var(--f-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-3); background: none; border: 0; padding: 15px 16px 13px; cursor: pointer;
  border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 8px;
}
.nav-btn .n { font-family: var(--f-mono); font-size: 10px; opacity: 0.6; }
.nav-btn:hover { color: var(--ink); }
.nav-btn.on { color: var(--ink); border-bottom-color: var(--lead); }

/* ------------------------------ TAB WRAP ------------------------------ */
.tab-wrap { padding: 30px 0 0; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sheet.pad { padding: 24px; }
.sec-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.sec-num { font-size: 11px; color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 3px; padding: 3px 6px; margin-top: 3px; }
.sec-title { font-size: 20px; }
.sec-sub { font-size: 13px; color: var(--ink-2); margin-top: 5px; max-width: 60ch; }
.tab-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 3px; flex: none; }
.seg button { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: none; border: 0; padding: 7px 14px; border-radius: 3px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg.seg-line { background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0; margin-bottom: 14px; }
.seg.seg-line button { border-radius: 0; border-bottom: 2px solid transparent; padding: 9px 14px; }
.seg.seg-line button.on { background: none; box-shadow: none; border-bottom-color: var(--lead); color: var(--ink); }

/* ----------------------------- OVERVIEW ------------------------------- */
.ov-hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: end; margin-bottom: 30px; }
.ov-title { font-size: 31px; line-height: 1.12; letter-spacing: -0.02em; margin-top: 8px; }
.ov-lede { font-size: 14.5px; color: var(--ink-2); margin-top: 14px; max-width: 56ch; line-height: 1.6; }
.ov-combined { padding: 20px; }
.ov-big { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; margin: 6px 0 14px; color: var(--ink); }
.ov-combined-rows { display: flex; flex-direction: column; gap: 8px; }
.ov-combined-rows > div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--rule-2); padding-top: 8px; }
.ov-combined-rows b { font-size: 13px; }
.ov-combined-foot { font-size: 10px; color: var(--ink-3); margin-top: 12px; }

.phase-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; margin-bottom: 30px; }
.phase-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.phase-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.phase-card.p1::before { background: var(--amber); }
.phase-card.p2::before { background: var(--pine); }
.phase-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.phase-landed { text-align: right; font-size: 15px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; }
.phase-landed em { font-style: normal; font-size: 9.5px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.phase-name { font-size: 19px; margin: 14px 0 8px; }
.phase-blurb { font-size: 13px; color: var(--ink-2); line-height: 1.55; min-height: 60px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 3px; margin-top: 16px; overflow: hidden; }
.stat { background: var(--surface); padding: 11px 13px; }
.stat-k { margin-bottom: 4px; }
.stat-v { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.stat-n { font-size: 9.5px; color: var(--ink-3); margin-top: 2px; }
.flow-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink-3); }
.flow-arrow .mono { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; writing-mode: vertical-rl; }
.arrow-line { width: 2px; flex: 1; background: repeating-linear-gradient(var(--ink-3) 0 4px, transparent 4px 8px); }
.arrow-head { color: var(--pine); font-size: 12px; }

.ov-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.spec { background: var(--surface); padding: 13px 14px; }
.spec-top { display: flex; justify-content: space-between; align-items: center; }
.spec-label { font-size: 12px; color: var(--ink-2); }
.spec-code { font-size: 9px; color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 2px; padding: 1px 4px; }
.spec-val { font-size: 17px; font-weight: 600; color: var(--ink); margin: 5px 0 3px; }
.spec-note { font-size: 10.5px; color: var(--ink-3); line-height: 1.4; }
.legend { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.legend-txt { font-size: 11px; color: var(--ink-3); }
.ov-side { display: flex; flex-direction: column; gap: 20px; }
.dec-list { list-style: none; display: flex; flex-direction: column; }
.dec-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--rule-2); }
.dec-list li:first-child { border-top: 0; }
.dec-k { font-size: 10.5px; color: var(--pine); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 1px; }
.dec-v { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.oos-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.oos-list li { font-size: 12px; color: var(--ink-2); display: flex; gap: 9px; line-height: 1.45; }
.oos-x { color: var(--clay); font-weight: 700; flex: none; }

/* ------------------------------- BOM ---------------------------------- */
.basis-note { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-left: 3px solid var(--pine); padding: 12px 16px; border-radius: 0 3px 3px 0; margin-bottom: 22px; line-height: 1.55; }
.flag-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 22px; }
.bom-group { margin-bottom: 26px; }
.bom-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.bom-group-head .mono { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 500; white-space: nowrap; }
.hairline-grow { height: 1px; background: var(--rule-2); flex: 1; }
.bom-rows { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.bom-row { display: grid; grid-template-columns: 1.5fr 1.7fr 0.5fr 1.3fr 0.9fr 0.7fr 1.5fr; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--rule); background: var(--surface); align-items: start; }
.bom-row:first-child { border-top: 0; }
.bom-head { background: var(--surface-2); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.bom-head .r, .r { text-align: right; }
.bom-item { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.bom-spec { font-size: 11px; color: var(--ink-2); line-height: 1.4; }
.bom-qty { font-size: 11.5px; color: var(--ink); }
.bom-vendor { font-size: 11px; color: var(--ink-2); line-height: 1.35; display: flex; flex-direction: column; gap: 2px; }
.bom-sku { font-size: 9.5px; color: var(--ink-3); }
.bom-goods { font-size: 12px; font-weight: 600; color: var(--ink); }
.bom-ship { font-size: 11px; color: var(--ink-2); }
.bom-status { display: flex; flex-direction: column; gap: 4px; }
.bom-note { font-size: 10px; color: var(--ink-3); line-height: 1.4; }
.fine { font-size: 10.5px; color: var(--ink-3); margin-top: 18px; line-height: 1.5; }

/* ------------------------------ COSTS --------------------------------- */
.est-banner { display: flex; gap: 14px; align-items: flex-start; background: var(--amber-soft); border: 1px solid color-mix(in oklch, var(--amber) 30%, transparent); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; }
.est-banner p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.cost-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.cost-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cost-total { font-size: 17px; font-weight: 600; color: var(--ink); }
.cost-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-family: var(--f-mono); font-weight: 500; margin-bottom: 8px; }
.roll { display: flex; flex-direction: column; }
.roll-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px dashed var(--rule-2); }
.roll-row:first-child { border-top: 0; }
.roll-k { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.roll-v { font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.roll-row.strong { border-top: 1px solid var(--ink); margin-top: 4px; padding-top: 10px; }
.roll-row.strong .roll-k { color: var(--ink); font-weight: 600; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.roll-row.strong .roll-v { font-size: 14px; font-weight: 700; }
.two-phase { margin-bottom: 22px; }
.tp-grid { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.tp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--rule); align-items: center; }
.tp-row:first-child { border-top: 0; }
.tp-head { background: var(--surface-2); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tp-row > div:first-child { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.tp-row .mono { font-size: 12px; color: var(--ink-2); }
.tp-total { background: var(--pine-soft); }
.tp-total > div { color: var(--ink) !important; font-weight: 700 !important; }
.tp-total .mono { color: var(--ink); font-weight: 700; }
.trans-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.trans-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.trans-blurb { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 14px 0 16px; max-width: 74ch; }
.trans-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trans-item { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 3px; padding: 12px 13px; }
.trans-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.trans-item-top b { font-size: 12px; white-space: nowrap; }
.trans-item-spec { font-size: 10px; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
.trans-rule { font-size: 12px; color: var(--ink-2); line-height: 1.55; margin-top: 16px; border-top: 1px dashed var(--rule-2); padding-top: 14px; }
.trans-rule .mono { font-size: 10px; color: var(--slate); letter-spacing: 0.1em; margin-right: 10px; border: 1px solid color-mix(in oklch, var(--slate) 30%, transparent); padding: 2px 6px; border-radius: 3px; }

/* --------------------------- SCHEMATICS ------------------------------- */
.sch-notes { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.sch-notes p { font-size: 11px; color: var(--ink-3); line-height: 1.5; max-width: 86ch; }

/* ----------------------------- FLYOVER -------------------------------- */
.fly-slot { position: relative; border: 1.5px dashed var(--rule-2); border-radius: var(--radius); background:
  repeating-linear-gradient(135deg, var(--surface) 0 18px, var(--surface-2) 18px 36px);
  min-height: 440px; display: grid; place-items: center; overflow: hidden; }
.fly-inner { text-align: center; padding: 30px; max-width: 460px; }
.fly-play { width: 64px; height: 64px; margin: 0 auto 18px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--ink); padding-left: 5px; background: var(--surface); }
.fly-title { font-size: 13px; letter-spacing: 0.18em; color: var(--ink); }
.fly-sub { font-size: 13px; color: var(--ink-2); margin-top: 10px; line-height: 1.55; }
.fly-specs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.fly-specs .tag { border: 1px solid var(--rule-2); border-radius: 3px; padding: 4px 9px; background: var(--surface); }
.fly-corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--ink-3); }
.fly-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.fly-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.fly-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.fly-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 920px) {
  .ov-hero, .ov-cols, .cost-cols { grid-template-columns: 1fr; }
  .phase-flow { grid-template-columns: 1fr; }
  .flow-arrow { flex-direction: row; padding: 4px 0; }
  .flow-arrow .mono { writing-mode: horizontal-tb; }
  .arrow-line { width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px); }
  .trans-items { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { padding: 0 16px 80px; }
  .nav { margin: 0 -16px; padding: 0 16px; overflow-x: auto; }
  .bom-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .bom-row > div { padding: 1px 0; }
  .bom-head { display: none; }
  .bom-row .r { text-align: left; }
  .tp-row { grid-template-columns: 1fr 1fr; }
}