@import url("./app-pricing.css?v=2");

/* App 06 - QAPM Cat Nat Pricer */

.topnav-right {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.usage-chips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.usage-chips .chip {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .13);
}

.usage-chips .chip.empty {
  background: rgba(255, 255, 255, .20);
  box-shadow: none;
}

.main {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content {
  gap: 1.35rem;
  padding: 1rem 0 1rem 1rem;
}

.sidebar {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 8, 8, .92);
  box-shadow: none;
}

.sidebar-block {
  border-bottom-color: rgba(255, 255, 255, .06);
}

.sidebar .blk-label,
.sidebar .portfolio-summary span,
.sidebar .portfolio-header span,
.sidebar .hazard-header span,
.sidebar .parameter-header span {
  color: rgba(255, 255, 255, .34);
}

.sidebar .portfolio-summary strong,
.sidebar .ref-title {
  color: #FACC15;
}

.sidebar .peril-select {
  color-scheme: dark;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
}

.sidebar .parameter-label,
.sidebar .hazard-label,
.sidebar .cell-inp,
.sidebar .parameter-inp,
.sidebar .hazard-inp {
  color: rgba(255, 255, 255, .72);
}

.sidebar .field-hint,
.sidebar .parameter-label .field-hint,
.sidebar .hazard-label .field-hint {
  color: rgba(255, 255, 255, .34);
}

.sidebar .parameter-header,
.sidebar .hazard-header,
.sidebar .portfolio-header,
.sidebar .portfolio-list {
  border-color: rgba(255, 255, 255, .08);
}

.sidebar .add-btn {
  box-shadow: none;
}

.sidebar .example-btn {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .62);
}

.sidebar .book-ref {
  color: rgba(255, 255, 255, .42);
}

.sidebar .run-btn {
  box-shadow: none;
}

.comp-table,
.pol-table {
  width: 100%;
  border-collapse: collapse;
}

.kpi-strip {
  gap: 1rem;
}

.result-context {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(8, 8, 8, .92);
}

.result-context span {
  color: rgba(255, 255, 255, .42);
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.result-context strong {
  color: #FACC15;
  font-family: var(--f-ui);
  font-size: .95rem;
  font-weight: 800;
}

.kpi {
  min-height: 138px;
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(8, 8, 8, .92);
  border-color: rgba(255, 255, 255, .08);
}

.kpi-val {
  color: #fff;
  font-size: 1.9rem;
}

.kpi-meta-white,
.kpi-val-white {
  color: #fff;
}

.kpi-unit {
  color: rgba(255, 255, 255, .42);
}

.interp {
  background: rgba(8, 8, 8, .92);
  border-color: rgba(255, 255, 255, .08);
}

.interp .interp-lbl {
  color: #FACC15;
}

.interp .interp-body {
  color: rgba(255, 255, 255, .62);
}

.interp .interp-body strong {
  color: #fff;
}

.card {
  border: 1px solid rgba(17, 17, 17, .08);
  box-shadow: none;
}

.comp-table th,
.pol-table th {
  padding: .52rem .58rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.comp-table th:first-child,
.comp-table th:nth-child(2),
.pol-table th:first-child {
  text-align: left;
}

.comp-table td,
.pol-table td {
  padding: .58rem .58rem;
  border-bottom: 1px solid var(--border-s);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .72rem;
  text-align: right;
  vertical-align: middle;
}

.comp-table td:first-child,
.comp-table td:nth-child(2),
.pol-table td:first-child {
  text-align: left;
}

.comp-table tr:last-child td,
.pol-table tr:last-child td {
  border-bottom: 0;
}

.portfolio-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portfolio-summary span {
  color: var(--dim);
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.portfolio-summary strong {
  color: #A16207;
  font-family: var(--f-ui);
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.portfolio-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) .475fr .475fr;
  gap: .45rem;
  margin-bottom: .35rem;
  padding: 0 0 .35rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-header span {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portfolio-header span:nth-child(2),
.portfolio-header span:nth-child(3) {
  text-align: center;
}

.portfolio-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(118px, .95fr);
  gap: .65rem;
  padding: .28rem 0;
  border-bottom: 0;
  background: transparent;
}

.portfolio-item:last-child {
  border-bottom: 0;
}

.portfolio-name,
.portfolio-field {
  min-width: 0;
}

.portfolio-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}

.cell-inp {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .72rem;
  padding: .12rem 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.portfolio-field .cell-inp {
  text-align: center;
}

.cell-inp:focus {
  color: #A16207;
  box-shadow: inset 0 -1px 0 rgba(249, 115, 22, .65);
}

.locked-row {
  opacity: .35;
  pointer-events: none;
}

.port-lock-row {
  padding: .5rem;
  color: #A16207;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.hazard-header,
.parameter-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: .65rem;
  padding: 0 0 .35rem;
  border-bottom: 1px solid var(--border);
}

.hazard-header span,
.parameter-header span {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hazard-header span:last-child,
.parameter-header span:last-child {
  text-align: center;
}

.hazard-row,
.parameter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: .65rem;
  padding: .34rem 0;
}

.hazard-label,
.parameter-label {
  min-width: 0;
  color: var(--dim);
  font-family: var(--f-mono);
  font-size: .66rem;
  line-height: 1.35;
}

.hazard-label .field-hint,
.parameter-label .field-hint {
  color: var(--muted);
  font-size: .58rem;
  white-space: nowrap;
}

.hazard-inp,
.parameter-inp {
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: .12rem 0;
  text-align: center;
}

.hazard-inp:focus,
.parameter-inp:focus {
  box-shadow: inset 0 -1px 0 rgba(249, 115, 22, .65);
}

.portfolio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: .75rem;
}

.add-btn {
  width: 100%;
  min-height: 40px;
  border: 1px dashed rgba(249, 115, 22, .32);
  border-radius: 12px;
  background: rgba(249, 115, 22, .06);
  color: #A16207;
  cursor: pointer;
  font-family: var(--f-ui);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.example-btn {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--dim);
  cursor: pointer;
  font-family: var(--f-ui);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.add-btn:hover:not(:disabled) {
  border-color: rgba(249, 115, 22, .58);
  background: rgba(249, 115, 22, .10);
}

.example-btn:hover {
  border-color: rgba(249, 115, 22, .35);
  color: #A16207;
  background: rgba(249, 115, 22, .04);
}

.add-btn:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.example-link {
  color: #A16207;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .06em;
}

.example-link:hover {
  color: var(--orange);
}

@media (max-width: 420px) {
  .portfolio-item,
  .portfolio-actions {
    grid-template-columns: 1fr;
  }
}

.ct-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 1rem;
}

.comparison {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.comp-head {
  padding: 1rem 1.15rem;
  background: #111;
  color: #fff;
}

.comp-title {
  color: #fff;
  font-family: var(--f-mono);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.comp-sub {
  margin-top: .3rem;
  color: rgba(255, 255, 255, .48);
  font-family: var(--f-mono);
  font-size: .62rem;
  line-height: 1.55;
}

.comp-table {
  min-width: 760px;
  background: rgba(255, 255, 255, .93);
}

.comparison {
  overflow-x: auto;
}

.tag-b,
.level-tag {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .54rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-this {
  background: rgba(249, 115, 22, .13);
  color: #A16207;
}

.tag-std {
  background: rgba(17, 17, 17, .06);
  color: var(--dim);
}

.qrow {
  background: rgba(249, 115, 22, .045);
}

.qrow td:first-child {
  color: #A16207;
  font-weight: 700;
}

.ratio-cell {
  font-weight: 800;
}

.ratio-hi {
  color: #A16207 !important;
}

.ratio-lo {
  color: var(--muted) !important;
}

.mbar,
.bi {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}

.mbar-bg {
  width: 64px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, .10);
}

.mbar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
}

.mbar-fill.d {
  background: var(--muted);
}

.bi-bg {
  width: 48px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, .10);
}

.bi-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
}

.delta-pos {
  color: var(--danger) !important;
  font-weight: 700;
}

.delta-neg {
  color: var(--safe) !important;
  font-weight: 700;
}

.card-action {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--dim);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  padding: .35rem .7rem;
  text-transform: uppercase;
}

.card-action:hover {
  border-color: rgba(249, 115, 22, .35);
  color: #A16207;
}

@media (max-width: 1180px) {
  .ct-row {
    grid-template-columns: 1fr;
  }
}
