/* Portal-only styles (app.dueflag.com). Loaded after dueflag.css. */

:root {
  --df-line: #E8E6E1;
  --df-line-soft: #F0EEEA;
  --df-hover: #F6F5F2;
  --df-sidebar-width: 16rem;
}

body.portal { background: var(--df-canvas); }
main:focus { outline: none; }

/* ------------------------------------------------------------------ shell */

/* One layout for every page: a menu on the left (a drawer on phones and tablets) and the page. */
.app-shell { min-height: 100vh; }
.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.app-content { flex: 1 0 auto; width: 100%; max-width: 80rem; padding: 1.25rem 1rem 3rem; }
.app-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  max-width: 80rem; padding: 1.25rem 1rem 1.5rem; font-size: .85rem; color: var(--df-muted);
}
@media (min-width: 992px) {
  .app-shell { display: grid; grid-template-columns: var(--df-sidebar-width) minmax(0, 1fr); }
  .app-content { padding: 2rem 2.5rem 3.5rem; }
  .app-footer { padding-inline: 2.5rem; }
  .app-topbar { display: none !important; }
}

/* Phones and tablets: a slim bar with the logo, search and the menu button. */
.app-topbar {
  position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .75rem .5rem 1rem; background: #fff; border-bottom: 1px solid var(--df-line);
}
.app-topbar-brand img { height: 30px; width: auto; display: block; }
.btn-icon {
  --bs-btn-padding-x: 0; --bs-btn-padding-y: 0;
  width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: .7rem; font-size: 1.35rem; color: var(--df-navy); border: 0;
}
.btn-icon:hover, .btn-icon:focus-visible { background: var(--df-hover); color: var(--df-navy); }

/* The menu. Bootstrap's offcanvas-lg makes it a drawer below 992px and a plain column above. */
.app-sidebar { --bs-offcanvas-width: min(86vw, 19rem); }
.sidebar-inner {
  display: flex; flex-direction: column; height: 100%; width: 100%;
  padding: 1rem .85rem; background: #fff; overflow-y: auto;
}
@media (min-width: 992px) {
  .app-sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--df-line); }
  .sidebar-inner { padding: 1.35rem 1rem 1rem; }
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 .35rem; margin-bottom: 1.25rem; }
.sidebar-brand img { height: 32px; width: auto; display: block; }

.sidebar-search { position: relative; margin-bottom: 1.1rem; }
.sidebar-search .bi { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #858A98; pointer-events: none; }
.sidebar-search .form-control {
  padding: .55rem .75rem .55rem 2.25rem; background: var(--df-hover); border-color: transparent; font-size: .95rem; border-radius: .7rem;
}
.sidebar-search .form-control:focus { background: #fff; border-color: var(--df-teal); }
.search-kbd {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); pointer-events: none;
  padding: .05rem .4rem; border-radius: .35rem; border: 1px solid #D6D3CB; background: #fff;
  color: var(--df-muted); font-size: .75rem; font-family: inherit; box-shadow: none;
}
.sidebar-search .form-control:focus ~ .search-kbd { display: none !important; }

.sidebar-nav ul { margin: 0; padding: 0; display: grid; gap: .15rem; }
.sidebar-heading {
  margin: 1.35rem .7rem .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #686D7C;
}
.sidebar-link {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: .65rem;
  color: #393E54; font-weight: 500; text-decoration: none;
}
.sidebar-link .bi { font-size: 1.1rem; color: #7A7F8E; }
.sidebar-link:hover { background: var(--df-hover); color: var(--df-navy); }
.sidebar-link.active { background: var(--df-teal-tint); color: var(--df-teal-dark); font-weight: 600; }
.sidebar-link.active .bi { color: var(--df-teal-dark); }
.nav-count {
  min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; text-align: center;
  font-size: .75rem; font-weight: 700; background: #ECEAE5; color: var(--df-navy);
}
.nav-count-danger { background: var(--df-error-bg); color: var(--df-error-text); }
.nav-count-warning { background: var(--df-warning-bg); color: var(--df-warning-text); }

.sidebar-foot { margin-top: auto; padding-top: 1.25rem; }
.sidebar-user { padding-top: .5rem; }
.sidebar-user-button {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .5rem;
  border: 1px solid var(--df-line); background: #fff; border-radius: .8rem; text-align: left; color: var(--df-muted);
}
.sidebar-user-button:hover { background: var(--df-hover); }
.sidebar-user-text { flex: 1; min-width: 0; line-height: 1.3; }
.sidebar-user-name, .sidebar-user-org { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-name { font-weight: 600; color: var(--df-navy); }
.sidebar-user-org { font-size: .82rem; color: var(--df-muted); }
.sidebar-user .dropdown-menu { width: 100%; }
.avatar {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--df-navy); color: #fff; font-weight: 700;
}

.view-as-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .55rem 1rem; background: var(--df-warning-bg); color: var(--df-warning-text);
  border-bottom: 1px solid #F2D49B; font-weight: 500;
}
@media (min-width: 992px) { .view-as-bar { padding-inline: 2.5rem; } }

/* Pages that need the whole window (the screen editor). */
.focus-content { min-height: 100vh; padding: 1rem; }
@media (min-width: 992px) { .focus-content { padding: 1.25rem 1.75rem 2rem; } }

/* Signed-out pages that use the portal layout (errors). */
.guest-bar { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; background: #fff; border-bottom: 1px solid var(--df-line); }
.guest-bar img { height: 30px; width: auto; }
.guest-main { max-width: 60rem; margin: 0 auto; padding: 2.5rem 1rem; }

/* ------------------------------------------------------------------ page furniture */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.page-title { font-size: clamp(1.45rem, 2.6vw, 1.8rem); font-weight: 700; letter-spacing: -.015em; margin: 0; }
.page-subtitle { margin: .3rem 0 0; color: var(--df-muted); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--df-muted); --bs-breadcrumb-item-active-color: var(--df-muted); font-size: .9rem; margin-bottom: .6rem; }

.card { border: 1px solid rgba(32, 36, 63, .07); }
.card-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .9rem 1.25rem; background: transparent; font-weight: 400; color: var(--df-ink);
}
.panel-title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--df-navy); }
.panel-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
.panel-link:hover { text-decoration: underline; }
.card-footer { background: transparent; border-top: 1px solid var(--df-line-soft); padding: .8rem 1.25rem; }
.section-gap { margin-bottom: 1.5rem; }

.empty-state { text-align: center; color: var(--df-muted); padding: 2.25rem 1.5rem; }
.empty-state .bi { display: block; font-size: 1.9rem; color: #A7ABB8; margin-bottom: .5rem; }
.empty-state p { max-width: 32rem; margin-inline: auto; }

/* ------------------------------------------------------------------ states */

/* A chip carries an icon as well as a colour, so a state never relies on colour alone. */
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.chip .bi { font-size: .85em; }
.chip-danger { background: var(--df-error-bg); color: var(--df-error-text); }
.chip-warning { background: var(--df-warning-bg); color: var(--df-warning-text); }
.chip-ok { background: var(--df-teal-tint); color: var(--df-teal-dark); }
.chip-muted { background: #ECEAE5; color: #474B57; }
.chip-navy { background: var(--df-navy); color: #fff; }

.due-cell { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.due-main { font-weight: 600; color: var(--df-navy); }
.due-sub { font-size: .82rem; color: var(--df-muted); }
.text-danger-strong { color: var(--df-error-text) !important; font-weight: 600; }
.text-warning-strong { color: var(--df-warning-text) !important; font-weight: 600; }

/* Kept for older markup. */
.due-overdue { color: var(--df-error-text); font-weight: 700; }
.due-soon { color: var(--df-warning-text); font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; padding: .35em .7em; }

/* ------------------------------------------------------------------ summary tiles */

/* Three numbers that answer "what needs doing?". A tile is only coloured when its number needs action. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.25rem 1.2rem;
  background: #fff; border: 1px solid rgba(32, 36, 63, .07); border-radius: var(--df-radius-card);
  box-shadow: var(--df-shadow); color: var(--df-ink); text-decoration: none; transition: box-shadow .12s ease, transform .12s ease;
}
.tile:hover, .tile:focus-visible { box-shadow: var(--df-shadow-lg); transform: translateY(-1px); color: var(--df-ink); }
.tile-top { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--df-muted); }
.tile-icon {
  flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: .65rem; display: inline-flex; align-items: center; justify-content: center;
  background: #EFEEEA; color: #7A7F8E; font-size: 1.05rem;
}
.tile-number { font-size: 2.3rem; font-weight: 700; line-height: 1.05; color: var(--df-navy); font-variant-numeric: tabular-nums; }
.tile-note { font-size: .85rem; color: var(--df-muted); }
.tile-danger.is-on { border-color: #F1C2BD; }
.tile-danger.is-on .tile-icon { background: var(--df-error-bg); color: var(--df-error-text); }
.tile-danger.is-on .tile-number, .tile-danger.is-on .tile-top { color: var(--df-error-text); }
.tile-warning.is-on { border-color: #F2D49B; }
.tile-warning.is-on .tile-icon { background: var(--df-warning-bg); color: var(--df-warning-text); }
.tile-warning.is-on .tile-number, .tile-warning.is-on .tile-top { color: var(--df-warning-text); }
.tile-ok.is-on .tile-icon { background: var(--df-teal-tint); color: var(--df-teal-dark); }
@media (max-width: 575.98px) {
  .tiles { grid-template-columns: 1fr; gap: .5rem; }
  .tile { flex-direction: row; align-items: center; justify-content: space-between; padding: .8rem 1rem; }
  .tile-number { font-size: 1.6rem; order: 2; }
  .tile-note { display: none; }
}

/* ------------------------------------------------------------------ lists */

/* Rows where the whole row is a link: what, where, and when it's due. */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list > li { position: relative; display: flex; align-items: center; gap: .5rem 1rem; padding: .8rem 1.25rem; border-top: 1px solid var(--df-line-soft); }
.row-list > li:first-child { border-top: 0; }
.row-list > li:not(.row-group):hover { background: #FAFAF8; }
.row-list > li.row-group {
  padding: .45rem 1.25rem; background: #F8F7F4; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--df-muted); border-top: 1px solid var(--df-line);
}
.row-list > li.row-group:first-child { border-top: 0; }
.row-main { flex: 1 1 auto; min-width: 0; }
.row-title { font-weight: 600; color: var(--df-navy); text-decoration: none; }
.row-title:hover { color: var(--df-teal-dark); text-decoration: underline; }
.row-meta { display: block; font-size: .86rem; color: var(--df-muted); }
.row-end { flex: 0 0 auto; text-align: right; }
.row-end .due-cell { align-items: flex-end; }
@media (max-width: 575.98px) {
  .row-list > li { align-items: flex-start; padding: .75rem 1rem; }
  .row-list > li.row-group { padding-inline: 1rem; }
}

/* Tabs across the top of a list, with counts. */
/* Scrolls sideways on narrow screens only: overflow-y must be hidden, or the tabs' borders make the
   browser add a tiny vertical scrollbar beside them. The focus ring is drawn inside so it isn't clipped. */
.tabs-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
.status-tabs .nav-link:focus-visible { box-shadow: inset 0 0 0 2px var(--df-teal); }
.status-tabs { flex-wrap: nowrap; gap: .15rem; border-bottom: 1px solid var(--df-line); }
.status-tabs .nav-link {
  white-space: nowrap; color: var(--df-muted); font-weight: 600; padding: .6rem .85rem;
  border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 0;
}
.status-tabs .nav-link:hover { color: var(--df-navy); }
.status-tabs .nav-link.active { color: var(--df-navy); border-bottom-color: var(--df-navy); }
.tab-count { display: inline-block; min-width: 1.6rem; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; background: #ECEAE5; color: var(--df-navy); font-size: .78rem; text-align: center; }
.tab-overdue .tab-count.is-on { background: var(--df-error-bg); color: var(--df-error-text); }
.tab-soon .tab-count.is-on { background: var(--df-warning-bg); color: var(--df-warning-text); }

/* Search and filter row. Filters apply as soon as they change (portal.js). */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar > div { flex: 0 1 14rem; }
.toolbar > div.toolbar-wide { flex-basis: 17rem; }
.toolbar .toolbar-search { flex: 1 1 18rem; position: relative; }
.toolbar-search .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--df-muted); pointer-events: none; }
.toolbar-search .form-control { padding-left: 2.4rem; }
.toolbar .toolbar-dates { flex: 0 1 auto; display: flex; align-items: center; gap: .4rem; }
.toolbar-dates .form-control { width: 10.5rem; }
@media (max-width: 575.98px) { .toolbar > div, .toolbar .toolbar-dates { flex: 1 1 100%; } }
.filter-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .4rem .3rem .85rem; border-radius: 999px; background: var(--df-teal-tint); color: var(--df-navy); font-size: .9rem; }
.filter-chip a { display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; border-radius: 50%; color: var(--df-navy); }
.filter-chip a:hover { background: rgba(0, 125, 107, .15); }
.list-count { font-size: .9rem; color: var(--df-muted); margin-bottom: .6rem; }

/* Tables where the whole row opens the item. */
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table > thead th { padding-block: .65rem; background: #FAFAF8; }
.table > tbody > tr:last-child > * { border-bottom: 0; }
.table-rows-link tbody tr { position: relative; }
.table-rows-link tbody tr:hover { cursor: pointer; }
.table .cell-title { font-weight: 600; color: var(--df-navy); text-decoration: none; }
.table .cell-title:hover { color: var(--df-teal-dark); text-decoration: underline; }
.table .cell-sub { display: block; font-size: .85rem; color: var(--df-muted); }
.row-muted td { color: var(--df-muted); }
.table tr.group-row th {
  padding: .5rem 1rem; background: #F8F7F4; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--df-muted);
}
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ label page */

.status-panel {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.35rem; border-radius: var(--df-radius-card);
  background: #fff; border: 1px solid rgba(32, 36, 63, .07); border-left: 6px solid #BDB9AF; box-shadow: var(--df-shadow);
}
.status-panel-icon { font-size: 1.6rem; line-height: 1.1; color: #8A8E9B; }
.status-panel h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.status-panel p { margin-bottom: .25rem; }
.status-panel p:last-child { margin-bottom: 0; }
.status-panel-danger { border-left-color: var(--df-error); background: var(--df-error-bg); }
.status-panel-danger .status-panel-icon, .status-panel-danger h2 { color: var(--df-error-text); }
.status-panel-warning { border-left-color: var(--df-warning); background: var(--df-warning-bg); }
.status-panel-warning .status-panel-icon, .status-panel-warning h2 { color: var(--df-warning-text); }
.status-panel-ok { border-left-color: var(--df-teal); }
.status-panel-ok .status-panel-icon { color: var(--df-teal-dark); }
.next-step { display: flex; gap: .5rem; align-items: baseline; margin-top: .5rem; font-weight: 500; }

/* Label page: status and history on the left, details and screens on the right. On a phone the
   details come straight after the status, because where the asset is matters most there. */
.label-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "status" "aside" "history"; align-items: start; }
.area-status { grid-area: status; }
.area-history { grid-area: history; }
.area-aside { grid-area: aside; }
@media (min-width: 992px) {
  .label-layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); grid-template-rows: auto 1fr; grid-template-areas: "status aside" "history aside"; }
}

/* Properties down the side of a page: label on the left, value on the right. */
.props { margin: 0; }
.props > div { display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); gap: .25rem 1rem; padding: .6rem 0; border-top: 1px solid var(--df-line-soft); }
.props > div:first-child { border-top: 0; padding-top: 0; }
.props dt { font-weight: 500; color: var(--df-muted); font-size: .9rem; }
.props dd { margin: 0; overflow-wrap: anywhere; }
.props .uid { font-size: .86rem; letter-spacing: .02em; }

.setup-details summary, .custom-access summary, .more-details summary { cursor: pointer; color: var(--df-teal-dark); font-weight: 600; }
.setup-details summary:hover, .custom-access summary:hover, .more-details summary:hover { text-decoration: underline; }

/* Both screens, the one the label should be showing marked. */
.screens-mini { display: grid; gap: 1rem; }
.screen-mini { margin: 0; }
.screen-mini .epaper { display: block; padding: 9px 10px 12px; border-radius: 11px; box-shadow: var(--df-shadow); }
.screen-mini .epaper-screen { width: 100%; }
.screen-mini figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .45rem; font-size: .85rem; color: var(--df-muted); }
.screen-mini.is-showing .epaper { outline: 3px solid var(--df-teal); outline-offset: 3px; }

/* History */
.timeline { padding: .35rem 0; }
.timeline-item, .activity-item { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; padding: .75rem 1.25rem; }
.timeline-item + .timeline-item { border-top: 1px solid var(--df-line-soft); }
.timeline-key, .activity-key { background: #FFFBF2; }
.timeline-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #ECEAE5; color: var(--df-navy);
}
.tone-ok { background: var(--df-teal-tint); color: var(--df-teal-dark); }
.tone-warning { background: #FBE6BE; color: var(--df-warning-text); }
.tone-danger { background: var(--df-error-bg); color: var(--df-error-text); }

/* ------------------------------------------------------------------ activity */

.activity-item + .activity-item { border-top: 1px solid var(--df-line-soft); }
.activity-day {
  padding: .5rem 1.25rem; background: #F8F7F4; font-size: .74rem; font-weight: 700; color: var(--df-muted);
  text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--df-line); border-bottom: 1px solid var(--df-line);
}
.activity-day:first-child { border-top: 0; border-radius: var(--df-radius-card) var(--df-radius-card) 0 0; }
.activity-body { min-width: 0; }
.activity-meta { font-size: .85rem; color: var(--df-muted); }

/* ------------------------------------------------------------------ people */

.access-list li { display: flex; gap: .65rem; padding: .45rem 0; }
.access-list .bi { font-size: 1.1rem; line-height: 1.4; }
.access-list .has .bi { color: var(--df-teal-dark); }
.access-list .has-not { color: var(--df-muted); }
.access-list .has-not .bi { color: #BDB9AF; }

.form-step { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 700; color: var(--df-navy); margin-bottom: 1rem; }
.step-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--df-navy); color: #fff; font-size: .85rem; }
.role-card { display: block; height: 100%; padding: .85rem 1rem; border: 2px solid #E3E1DB; border-radius: .9rem; background: #fff; cursor: pointer; }
.role-card:hover { border-color: #BDB9AF; }
.btn-check:checked + .role-card { border-color: var(--df-teal-dark); background: var(--df-teal-tint); }
.btn-check:focus-visible + .role-card { outline: 3px solid var(--df-teal); outline-offset: 2px; }
.custom-access { border-top: 1px solid var(--bs-border-color); padding-top: 1rem; }

/* ------------------------------------------------------------------ getting started */

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: .85rem; padding: .75rem 1.25rem; border-top: 1px solid var(--df-line-soft); }
.checklist li:first-child { border-top: 0; }
.check-dot {
  flex: 0 0 auto; width: 1.55rem; height: 1.55rem; border-radius: 50%; border: 2px solid #CFCCC4;
  display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; color: #fff;
}
.checklist li.done .check-dot { background: var(--df-teal-dark); border-color: var(--df-teal-dark); }
.checklist li.done .check-text { color: var(--df-muted); }
.check-text { flex: 1; min-width: 0; }
.check-text small { display: block; color: var(--df-muted); }
.progress-thin { height: .4rem; border-radius: 999px; background: #ECEAE5; }
.progress-thin .progress-bar { border-radius: 999px; }

/* ------------------------------------------------------------------ help */

.help { display: grid; gap: 1.25rem; max-width: 56rem; }
.help p { max-width: 46rem; }
.help-states { margin: 0; }
.help-states > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .35rem 1rem; align-items: baseline; padding: .8rem 1.25rem; border-top: 1px solid var(--df-line-soft); }
.help-states > div:first-child { border-top: 0; }
.help-states dd { margin: 0; }
@media (max-width: 575.98px) { .help-states > div { grid-template-columns: 1fr; } }
.help-list { margin: 0; padding: 0; list-style: none; }
.help-list li { padding: .8rem 1.25rem; border-top: 1px solid var(--df-line-soft); }
.help-list li:first-child { border-top: 0; }

/* ------------------------------------------------------------------ products */

.epaper-sm { padding: 7px 8px 9px; border-radius: 9px; }
.epaper-sm .epaper-screen { width: 148px; }
.product-thumbs { flex-wrap: wrap; }
.product-archived { opacity: .7; }
.preview-original { image-rendering: pixelated; background: #fff; max-width: 296px; width: 100%; height: auto; }

/* ------------------------------------------------------------------ misc */

.detail-list dt { font-weight: 600; color: var(--df-muted); }
.detail-list dd { margin-bottom: .6rem; }
.code-input { letter-spacing: .3em; font-weight: 700; font-variant-numeric: tabular-nums; }
.totp-secret { letter-spacing: .08em; }
.setup-steps { padding-left: 1.2rem; }
.error-icon { font-size: 2.5rem; color: var(--df-teal-dark); }
.enquiry-message { white-space: normal; word-break: break-word; }
.dropdown-menu { --bs-dropdown-border-color: var(--df-line); --bs-dropdown-link-hover-bg: var(--df-hover); }
.dropdown-item.text-danger:active { color: #fff !important; }

/* ------------------------------------------------------------------ sign-in pages */

/* A navy panel and a white form card, like the apps. */
body.auth-page { background: var(--df-canvas); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-panel {
  background: var(--df-navy); color: rgba(255, 255, 255, .78);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem;
}
.auth-panel img { height: 40px; width: auto; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 1.5rem 1rem 3rem; }
.auth-card { width: 100%; max-width: 30rem; }
@media (min-width: 768px) {
  .auth-wrap { flex-direction: row; }
  .auth-panel { width: 40%; max-width: 32rem; padding: 3rem; justify-content: space-between; }
  .auth-panel img { height: 52px; }
  .auth-panel-text { max-width: 24rem; }
  .auth-main { align-items: center; padding: 3rem; }
}
.auth-panel-foot { color: rgba(255, 255, 255, .6); }

/* Label firmware pages */
.text-prewrap { white-space: pre-line; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
