/* helmbridge's few additions to our earlier project's style sheet (web/asset/css,
   kept as it is). */

/* The Command column (a row's buttons, the last column) is as wide as
   its buttons: the free width goes to the other columns */
th.right:last-child,
td.right:last-child {
    width: 1%;
    white-space: nowrap;
}

td .button-group-fixed {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

/* A table's caption (counts about the list) under the table */
table caption {
    caption-side: bottom;
    padding: var(--u2) 0 0 0;
}

/* A long command (a node key, an access key) wraps instead of widening
   the page */
pre.wrap {
    white-space: pre-wrap;
    word-break: break-all;
}

/* The report (pages/report.zig): the cards, one per coin, in a flex
   container that wraps; each card starts as wide as its content and grows
   to fill the line, up to its max-width */
.report-info {
    margin-top: 0;
    color: var(--secondary);
    font-size: var(--f3);
    /* Wrapped on a narrow screen: lines close together */
    line-height: 1.4;
}

/* What the report is not: once, above the cards */
.report-note {
    margin-top: 0;
    color: var(--secondary);
    font-size: var(--f3);
    font-style: italic;
    /* Wrapped: lines as close as the info line above */
    line-height: 1.4;
}

/* The first visit's notice (web/spa/boot.js): a bar at the bottom until
   it is acknowledged */
.first-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    background: var(--surfaceColor);
    color: var(--textColor);
    border-top: 1px solid var(--borderColor);
    font-size: var(--f3);
    text-align: center;
}

.report-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--u4);
}

.report-card {
    flex: 1 1 auto;
    max-width: 24rem;
    border: 1px solid var(--borderColor);
    border-top: 4px solid var(--default);
    border-radius: var(--u2);
    padding: var(--u3);
    background: var(--surfaceColor);
}

.report-card.surge { border-top-color: #d98200; }
.report-card.accumulation { border-top-color: #1f883d; }
.report-card.distribution { border-top-color: #c92a2a; }

.report-card-head {
    display: flex;
    align-items: baseline;
    gap: var(--u2);
}

.report-mark {
    color: var(--secondary);
}

.report-eval {
    margin-left: auto;
    font-weight: 500;
}

.report-card.surge .report-eval { color: #d98200; }
.report-card.accumulation .report-eval { color: #1f883d; }
.report-card.distribution .report-eval { color: #c92a2a; }

/* The radar sets the card's least width and grows with it */
.report-radar {
    display: block;
    width: 100%;
    min-width: 16rem;
    height: auto;
}

.report-radar .ring { fill: none; stroke: var(--borderColor); stroke-width: 1; }
.report-radar .ring50 { stroke: var(--default); }
.report-radar .spoke { stroke: var(--borderColor); stroke-width: 1; }
.report-radar text { font-size: 10px; fill: var(--secondary); }
.report-radar text .v { fill: var(--textColor); font-weight: 500; }
.report-radar .area { fill-opacity: 0.25; stroke-width: 2; fill: var(--default); stroke: var(--default); }

/* The price chart under the radar: closes and their regression curves */
.report-chart { display: block; width: 100%; height: auto; margin-top: 0.25rem; }
.report-chart text { fill: var(--secondary); }
.report-chart .price { stroke: var(--textColor); }
.report-chart tspan.price { fill: var(--textColor); stroke: none; }
.report-card.surge .area { fill: #d98200; stroke: #d98200; }
.report-card.accumulation .area { fill: #1f883d; stroke: #1f883d; }
.report-card.distribution .area { fill: #c92a2a; stroke: #c92a2a; }

/* The last line: Volume, vMoment, Anomaly and Share; on a narrow screen
   it wraps between the values (each value stays whole) so that the card
   fits */
.report-card-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--u2) var(--u3);
    font-size: var(--f3);
}

.report-card-foot > span { white-space: nowrap; }

/* The values on the left; only Share on the right */
.report-share {
    margin-left: auto;
}

/* Share: the style sheet's small button, icon only, square */
.report-share {
    padding: var(--u2);
    line-height: 1;
}

/* The report's interval buttons, the subscription's end on their right */
.report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--u2);
}

.report-until {
    color: var(--secondary);
    font-size: var(--f3);
}

/* The interval shown: its button's text green */
.report-head .button.selected {
    color: var(--green);
}

/* A payment waiting: what to send where */
.pay-box { margin: var(--u3) 0; }
.pay-amount { font-size: var(--f5); }
.pay-address { word-break: break-all; }

/* A text content's body editor (Text Contents): HTML, monospace */
.text-body {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: var(--f3);
}

/* Statistics: the users' numbers and the sums' rows */
.stat-users { margin-top: 0; }
.stat-sum td { font-weight: 700; }

/* The report's market, right of the interval buttons (the room between
   them is the buttons' right margin) */
.report-head .button-group-fixed { margin-right: var(--u3); }
.report-market { margin: 0 auto 0 0; }
.report-market select { width: auto; }
