/* DeepView Control: additions to the product stylesheet (/shared/css/app.css).
   Colours come only from that stylesheet's variables, so a restyle there carries over. No hex values here. */

/* sidebar */
.brand small { text-transform: uppercase; }
.sidebar-foot form { display: inline; }
.linklike { background: none; border: 0; padding: 0; margin: 0 10px 0 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.who .role { display: block; font-size: 11px; opacity: .8; }

/* status badges: tinted pill, coloured dot, normal text colour (so contrast never depends on the status colour) */
.badge.st { color: var(--text); border: 1px solid var(--border); background: color-mix(in srgb, var(--st, var(--muted)) 14%, var(--surface)); }
.badge.st::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px;
  background: var(--st, var(--muted)); vertical-align: 0; }
.st-running { --st: var(--success); }
.st-requested, .st-provisioning, .st-suspending, .st-resuming, .st-deleting { --st: var(--warning); }
.st-failed { --st: var(--danger); }
.st-suspended, .st-deleted { --st: var(--muted); }
.st-ok { --st: var(--success); } .st-started { --st: var(--warning); }
.st-refused { --st: var(--danger); } .st-failed-outcome { --st: var(--danger); }
.badge-demo { border: 1px solid var(--border); color: var(--muted); background: transparent; }

/* page head */
.page-head .sub { color: var(--muted); margin-top: 2px; }
.page-head .head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spaced { margin-top: 14px; }
.spaced-lg { margin-top: 22px; }
.flush { margin: 0; }
.right { text-align: right; }
.wrap { overflow-wrap: break-word; }
td.detail { min-width: 240px; }
td.slug, a.slug { font-size: 12.5px; }
.pre { white-space: pre-wrap; }
.empty { color: var(--muted); padding: 22px 4px; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 22px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input[type=text], .form-grid input[type=email], .form-grid select, .form-grid textarea { max-width: none; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 4px; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
legend { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600;
  padding: 0; margin: 18px 0 2px; }
fieldset:first-of-type legend { margin-top: 0; }
input[disabled], select[disabled] { opacity: .65; }
label.inline input { margin: 0; }
textarea.short { min-height: 64px; }
.filters input[type=text], .filters input[type=search], .filters select { max-width: 220px; }

/* notes and warnings inside cards (the product's .callout is laid out for one-line links) */
.note { border: 1px solid var(--border); border-left: 4px solid var(--st, var(--accent)); border-radius: 8px; padding: 10px 14px;
  margin: 0 0 14px; background: color-mix(in srgb, var(--st, var(--accent)) 8%, var(--surface)); }
.note-warn { --st: var(--warning); }
.note-danger { --st: var(--danger); }
.note b { font-weight: 650; }

/* cost estimate */
table.estimate { max-width: 520px; }
table.estimate td { padding: 6px 10px; }
table.estimate tr.total td { font-weight: 700; border-top: 2px solid var(--border); border-bottom: 0; }

/* progress of an operation */
ul.steps { list-style: none; margin: 10px 0 0; padding: 0; max-width: 720px; }
ul.steps li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; overflow-wrap: anywhere; }
ul.steps .step-state { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* actions */
.action-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.action-row form { display: inline; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
details.danger { margin-top: 18px; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
details.danger > summary { cursor: pointer; font-weight: 600; color: var(--danger); }
details.danger[open] > summary { margin-bottom: 8px; }
details.danger input[type=text] { max-width: 360px; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn-danger-solid:hover { background: var(--danger); filter: brightness(.92); }

/* set-up instructions */
ol.howto { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
ol.howto li { margin: 4px 0; }
.kv.wide-keys { grid-template-columns: 190px 1fr; }
.codebox { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.codebox code { flex: 1; font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; background: var(--bg, transparent);
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 9px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .kv, .kv.wide-keys { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }

/* costs chart: one £ axis from zero, two series told apart by colour, legend and value labels */
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-legend .k-cost, .cost-chart .bar-cost { background: var(--chart-1, var(--accent)); fill: var(--chart-1, var(--accent)); }
.chart-legend .k-price, .cost-chart .bar-price { background: var(--chart-2, var(--warning)); fill: var(--chart-2, var(--warning)); }
.cost-chart { width: 100%; max-width: 760px; height: auto; display: block; }
.cost-chart text { font-family: inherit; font-size: 11.5px; fill: var(--text); }
.cost-chart .tick text, .cost-chart .axis-note { fill: var(--muted); font-size: 10.5px; }
.cost-chart .grid-line { stroke: var(--border); stroke-width: 1; }
.cost-chart .value { font-variant-numeric: tabular-nums; }
.stat .n.neg { color: var(--danger); }
td.neg { color: var(--danger); font-weight: 600; }
tr.total-row td { font-weight: 700; border-top: 2px solid var(--border); }
.cost-table th { white-space: normal; vertical-align: bottom; line-height: 1.35; }
.cost-table th .small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cost-table td:first-child { min-width: 170px; }
.slug { font-family: var(--mono, ui-monospace, monospace); white-space: nowrap; }
fieldset + fieldset { margin-top: 10px; }

/* sign-in and error pages */
body.centre { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.signin { width: 100%; max-width: 380px; text-align: center; }
.signin img { width: 64px; height: 64px; margin-bottom: 10px; }
.signin h1 { margin-bottom: 2px; }
.signin .kicker { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); margin-bottom: 16px; }
.signin .btn { display: block; width: 100%; text-align: center; padding: 10px 14px; margin-top: 12px; }
.signin .flash { text-align: left; }
.signin p { color: var(--muted); line-height: 1.5; }

.inline-form { display: inline; margin: 0; }
