/* Hand-authored utility CSS for the console/login pages.

Not a Tailwind build - deliberately: Tailwind's CDN ("Play") script injects
an unnoncedstyle tag at runtime via JS, which Readiness's nonce-based CSP
(no 'unsafe-inline' for style-src, matching V3.5's csp_config.json) blocks
outright. Rather than add a Node/Tailwind build toolchain to a Python-only
project, this file hand-implements the specific utility classes the
templates actually use - same class names, so template markup didn't need
to change, just this file grows if a template needs a class that isn't
here yet.
*/

* { box-sizing: border-box; }
body { margin: 0; color: #111827; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }

:root {
  --riz-orange: #E74726;
  --riz-navy: #00294A;
  --riz-navy-light: #242E65;
  --riz-blue: #80C9EB;
}

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.flex-1 { flex: 1 1 0%; }
.grow { flex-grow: 1; }
.flex-col { flex-direction: column; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.min-h-screen { min-height: 100vh; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* Spacing (Tailwind's 0.25rem scale) */
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pt-2 { padding-top: .5rem; }
.mt-1 { margin-top: .25rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-4 { margin-left: 1rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Sizing */
.h-5 { height: 1.25rem; } .h-6 { height: 1.5rem; } .h-8 { height: 2rem; } .h-10 { height: 2.5rem; }
.h-auto { height: auto; }
.w-5 { width: 1.25rem; } .w-8 { width: 2rem; } .w-16 { width: 4rem; } .w-64 { width: 16rem; }
.w-full { width: 100%; } .w-auto { width: auto; }
.max-w-sm { max-width: 24rem; } .max-w-lg { max-width: 32rem; } .max-w-2xl { max-width: 42rem; }

/* Borders / radius / shadow */
.border { border: 1px solid #d1d5db; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.divide-y > * + * { border-top: 1px solid #f3f4f6; }
.divide-gray-100 > * + * { border-color: #f3f4f6; }
hr.border-gray-100 { border: none; border-top: 1px solid #f3f4f6; }

/* Colour */
.bg-white { background: #fff; }
.bg-gray-50 { background: #f9fafb; }
.bg-red-50 { background: #fef2f2; }
.bg-green-50 { background: #f0fdf4; }
.bg-amber-50 { background: #fffbeb; }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-green-700 { color: #15803d; }
.text-amber-800 { color: #92400e; }
.text-blue-600 { color: #2563eb; }

/* Typography */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: .025em; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.align-top { vertical-align: top; }

/* Interactive */
a.hover\:bg-gray-50:hover, .hover\:bg-gray-50:hover { background: #f9fafb; }
.hover\:underline:hover { text-decoration: underline; }

/* Console-specific components (fixed colours - console isn't white-labelled) */
.sidebar { background: var(--riz-navy); }
.nav-link { color: #cfe3f2; text-decoration: none; }
.nav-link:hover, .nav-link.active { background: var(--riz-navy-light); color: #fff; }
.nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: .5rem .75rem; border-radius: .375rem;
  font-size: .875rem; font-weight: 500;
  color: #cfe3f2;
}
.nav-group-toggle:hover { background: var(--riz-navy-light); color: #fff; }
.nav-group-chevron { display: inline-block; font-size: .625rem; transition: transform .15s ease; }
.nav-group.expanded .nav-group-chevron { transform: rotate(90deg); }
.nav-group-children { display: none; }
.nav-group.expanded .nav-group-children { display: block; }
.btn-primary { background: var(--riz-orange); color: #fff; border: none; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { opacity: .9; }
.bg-navy { background: var(--riz-navy); }
.filter-tab {
  color: #6b7280;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.filter-tab:hover { background: #f9fafb; border-color: #d1d5db; }
.filter-tab.active { background: #f3f4f6; color: #111827; font-weight: 600; border-color: #9ca3af; }

/* Resource filter panel: each row gets its own accent so three stacked rows
of similar-looking buttons stay visually distinct rather than blurring into
one block - accent (orange) for the top-level Domain split, secondary
(blue) for Audience, and Topic chips keep the navy already used for
"selected" elsewhere (nav, etc). */
.domain-tab, .audience-tab {
  color: #6b7280;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.domain-tab:hover, .audience-tab:hover { background: #f9fafb; border-color: #d1d5db; }
.domain-tab.active { background: var(--riz-orange); color: #fff; font-weight: 600; border-color: var(--riz-orange); }
.audience-tab.active { background: var(--riz-blue); color: #00294A; font-weight: 600; border-color: var(--riz-blue); }
.filter-row-label { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #9ca3af; margin-bottom: .375rem; }
.topic-chip {
  color: #6b7280;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.topic-chip:hover { background: #f9fafb; border-color: #d1d5db; }
.topic-chip.selected { background: var(--riz-navy); color: #fff; border-color: var(--riz-navy); }
.resource-icon-thumb { width: 60px; height: 45px; object-fit: cover; }
/* Same domain/audience/topic accents as the filter strip (see resource_list.html),
reused here as soft pill badges so a single resource's own metadata reads
consistently with how it was found. */
.badge-domain { background: rgba(231, 71, 38, .1); color: var(--riz-orange); }
.badge-audience { background: rgba(128, 201, 235, .25); color: var(--riz-navy); }
.badge-topic { background: rgba(0, 41, 74, .08); color: var(--riz-navy); }
.badge { display: inline-block; border-radius: .25rem; padding: .125rem .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* Schedule's 84-day grid: a plain gray "active" cell (the old .filter-tab
treatment) didn't stand out at a glance across 84 repeated cells - accent
(orange) tint marks a populated day the same way badge-domain does for a
resource, so the grid scans at a glance. */
.schedule-day {
  color: #6b7280;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.schedule-day:hover { background: #f9fafb; border-color: #d1d5db; }
.schedule-day.has-entries { background: rgba(231, 71, 38, .1); border-color: rgba(231, 71, 38, .3); }
.schedule-day.has-entries .schedule-day-label { color: var(--riz-orange); }
.schedule-day.has-entries .schedule-day-count { color: var(--riz-orange); font-weight: 600; }
.resource-tile-mock { max-width: 320px; overflow: hidden; background: #fff; }
.resource-tile-mock-placeholder { width: 100%; aspect-ratio: 240 / 180; background: #f3f4f6; }

/* Media library */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.media-grid-item { display: block; overflow: hidden; text-decoration: none; }
.media-grid-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.media-grid-thumb-placeholder { display: flex; align-items: center; justify-content: center; background: #f3f4f6; color: #9ca3af; font-size: .75rem; font-weight: 600; text-transform: uppercase; }

/* Media picker overlay (page editor's Image block) */
.media-picker-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.media-picker-panel { background: #fff; border-radius: .5rem; padding: 1.5rem; width: 90%; max-width: 640px; max-height: 80vh; overflow-y: auto; }
.media-picker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.media-picker-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.media-picker-close { background: none; border: none; color: #6b7280; font-size: .875rem; cursor: pointer; }
.media-picker-close:hover { color: #111827; }
.media-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.media-picker-item { border: 1px solid #e5e7eb; border-radius: .375rem; padding: 0; background: #fff; cursor: pointer; overflow: hidden; }
.media-picker-item:hover { border-color: var(--riz-orange); }
.media-picker-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.media-picker-upload-row { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid #f3f4f6; }

/* Page editor blocks */
#editorjs-holder { min-height: 200px; }
.page-block-image-tool { border: 1px dashed #d1d5db; border-radius: .375rem; padding: 1rem; }
.page-block-image-tool-preview { max-width: 100%; max-height: 240px; display: block; margin-bottom: .5rem; border-radius: .375rem; }
.page-block-image-tool-caption { display: block; width: 100%; margin-bottom: .5rem; border: 1px solid #d1d5db; border-radius: .375rem; padding: .375rem .5rem; font-size: .875rem; }
.page-block-image-tool-button { border: 1px solid #d1d5db; border-radius: .375rem; padding: .375rem .75rem; font-size: .8125rem; font-weight: 500; background: #fff; cursor: pointer; }
.page-block-image-tool-button:hover { background: #f9fafb; }
.page-block-brand-logo-tool { border: 1px dashed #d1d5db; border-radius: .375rem; padding: 1rem; display: flex; align-items: center; gap: .75rem; }
.page-block-brand-logo-tool-label { font-size: .8125rem; color: #6b7280; }

/* Rendered page output (console preview / eventual portal view) */
.page-render h1, .page-render h2, .page-render h3 { font-weight: 600; margin: 1rem 0 .5rem; }
.page-render p { margin: 0 0 1rem; line-height: 1.6; }
.page-render ul, .page-render ol { margin: 0 0 1rem 1.25rem; }
.page-block-image { margin: 0 0 1rem; }
.page-block-image img { max-width: 100%; border-radius: .375rem; }
.page-block-image figcaption { font-size: .8125rem; color: #6b7280; margin-top: .375rem; }
.page-block-brand-logo { max-height: 60px; width: auto; display: block; margin-bottom: 1rem; }

/* Form controls */
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], select, textarea {
  display: block; width: 100%; margin-top: .25rem; border-radius: .375rem; border: 1px solid #d1d5db;
  padding: .5rem .75rem; font-size: .875rem; font-family: inherit;
}
input[type="color"] { display: block; margin-top: .25rem; height: 2.5rem; width: 4rem; border-radius: .375rem; border: 1px solid #d1d5db; padding: 2px; }
input[type="checkbox"] { margin-top: .25rem; border-radius: .25rem; border: 1px solid #d1d5db; }
input[type="file"] { display: block; width: 100%; margin-top: .25rem; font-size: .875rem; color: #4b5563; }
input[type="file"]::file-selector-button {
  margin-right: .75rem; border-radius: .375rem; border: 0; background: #f3f4f6;
  padding: .5rem .75rem; font-size: .875rem; font-weight: 500; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: #e5e7eb; }

/* Page editor: Table block */
/* The editor's tools for the Picture and text block and the divider */
.page-block-columns-tool { border: 1px dashed #d1d5db; border-radius: .375rem; padding: 1rem; display: grid; gap: .75rem; }
.page-block-columns-tool-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; font-size: .8125rem; color: #374151; }
.page-block-columns-tool-row label { display: inline-flex; align-items: center; gap: .3rem; }
.page-block-columns-tool-text { width: 100%; min-height: 8rem; border: 1px solid #d1d5db; border-radius: .375rem; padding: .5rem; font: inherit; font-size: .875rem; line-height: 1.5; }
.page-block-columns-tool-hint { font-size: .75rem; color: #6b7280; margin: 0; }
.page-block-divider-tool { border: 0; border-top: 1px solid #d1d5db; margin: .75rem 0; }
.page-block-table-tool-grid { border-collapse: collapse; margin-bottom: .5rem; }
.page-block-table-tool-grid td { border: 1px solid #e5e7eb; padding: 0; }
.page-block-table-tool-grid input[type="text"] {
  margin-top: 0; min-width: 90px; border: none; border-radius: 0;
  padding: .375rem .5rem; font-size: .875rem;
}
.page-block-table-tool-grid input[type="text"]:focus { outline: 2px solid var(--riz-orange); outline-offset: -2px; }
.page-block-table-tool-row-action { border: none !important; padding: 0 0 0 .375rem !important; }
.page-block-table-tool-row-action button {
  border: none; background: none; color: #9ca3af; cursor: pointer; font-size: 1rem; line-height: 1; padding: .25rem;
}
.page-block-table-tool-row-action button:hover { color: #dc2626; }
.page-block-table-tool-controls { display: flex; gap: .5rem; }
.page-block-table-tool-button {
  border: 1px solid #d1d5db; border-radius: .375rem; padding: .375rem .75rem;
  font-size: .8125rem; font-weight: 500; background: #fff; cursor: pointer;
}
.page-block-table-tool-button:hover { background: #f9fafb; }

/* Rendered page output: Table block */
.page-block-table { border-collapse: collapse; margin: 0 0 1rem; width: 100%; }
.page-block-table td { border: 1px solid #e5e7eb; padding: .5rem .75rem; font-size: .875rem; }

/* Rendered page output: Quote block */
/* The "Picture and text" block: a picture beside some words, on the left or the right (stacked, picture first, on a phone). */
.page-block-columns { display: grid; gap: 1rem 1.75rem; margin: 0 0 1.25rem; align-items: center; }
.page-block-columns.is-top { align-items: start; }
.page-block-columns-media { margin: 0; }
.page-block-columns-media img { display: block; width: 100%; height: auto; border-radius: 12px; }
.page-block-columns-text > :first-child { margin-top: 0; } .page-block-columns-text > :last-child { margin-bottom: 0; }
.page-block-columns-text p { margin: 0 0 .75rem; } .page-block-columns-text ul, .page-block-columns-text ol { margin: 0 0 .75rem; padding-left: 1.3rem; }
@media (min-width: 720px) { .page-block-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .page-block-columns.is-right .page-block-columns-media { order: 2; } }
.page-block-divider { border: 0; border-top: 1px solid #d1d5db; margin: 1.25rem 0; }
.page-block-quote { margin: 0 0 1rem; padding: .5rem 0 .5rem 1rem; border-left: 3px solid var(--brand-primary, var(--riz-orange)); }  /* the brand's primary colour wherever the brand is loaded (the portal); the console keeps its orange */
.page-block-quote p { margin: 0; font-size: 1.0625rem; font-style: italic; color: var(--brand-link, #374151); }
.page-block-quote cite:not(:empty)::before { content: "\2014\00a0"; }
.page-block-quote cite { display: block; margin-top: .375rem; font-size: .8125rem; font-style: normal; color: #6b7280; }

/* Rendered page output: Embed block */
.page-block-embed { margin: 0 0 1rem; }
.page-block-embed-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.page-block-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: .375rem; }
.page-block-embed figcaption { font-size: .8125rem; color: #6b7280; margin-top: .375rem; }

/* Organisation tree: one row per unit, indented by depth via classes (no
   inline styles, per the CSP) - depth 1 is directly under the company. */
.badge-kind { background: #f3f4f6; color: #4b5563; }
.org-depth-1 { padding-left: 2.75rem; }
.org-depth-2 { padding-left: 4.75rem; }
.org-depth-3 { padding-left: 6.75rem; }
.org-inactive { opacity: .6; }

/* Sidebar section heading: when staff are inside a company, the sidebar
   shows that company's client admin menu under the company's name and the
   platform menu under "Platform". */
.nav-section-heading { padding: 1rem .75rem .25rem; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8fb3cf; overflow-wrap: anywhere; }

/* Who you are signed in as: shown at the top of every console sidebar. */
.identity-block { margin: 0 .75rem 1rem; padding: .625rem .75rem; border-radius: .375rem; background: var(--riz-navy-light); color: #cfe3f2; }
.identity-role { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8fb3cf; }
.identity-scope { font-size: .9375rem; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.identity-user { font-size: .75rem; margin-top: .125rem; overflow-wrap: anywhere; }
.message-warning { background: #fef3c7; color: #92400e; }
.message-info { background: #e0f2fe; color: #075985; }

/* A form button that should read as an inline text link (e.g. "Sign in as"
   next to a "Set password" link) - keeps the POST/CSRF a link can't do. */
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Users: onboarding stage badges, sortable column headers, pagination. */
.badge-stage-active { background: #dcfce7; color: #166534; }
.badge-stage-invited { background: #fef3c7; color: #92400e; }
.badge-stage-none { background: #f3f4f6; color: #4b5563; }
.badge-stage-disabled { background: #fee2e2; color: #991b1b; margin-right: .25rem; }
/* Practitioner Hub: onboarding state badges (active/invited reuse the stage badges above). */
.badge-state-submitted { background: #dbeafe; color: #1e40af; }
.badge-state-changes { background: #ffedd5; color: #9a3412; }
.badge-state-suspended { background: #fee2e2; color: #991b1b; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link.active { color: var(--riz-navy); }
.sort-arrow { margin-left: .25rem; font-size: .625rem; }
.page-link { display: inline-block; min-width: 2rem; text-align: center; padding: .25rem .5rem; border-radius: .375rem; color: #374151; text-decoration: none; }
.page-link:hover { background: #f3f4f6; }
.page-link.active { background: var(--riz-navy); color: #fff; }
.hidden { display: none; }

/* Utilities the users, activation and password pages need that the
   hand-maintained subset above didn't yet have. */
.flex-wrap { flex-wrap: wrap; }
.gap-6 { gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.inline-block { display: inline-block; }
.max-w-4xl { max-width: 56rem; }
.min-w-0 { min-width: 0; }
.overflow-x-auto { overflow-x: auto; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-5 { margin-top: 1.25rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-auto { margin-left: auto; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.pl-4 { padding-left: 1rem; }
.pr-2 { padding-right: .5rem; }
.pr-4 { padding-right: 1rem; }
.pt-4 { padding-top: 1rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-center { text-align: center; }
.text-blue-800 { color: #1e40af; }
.underline { text-decoration: underline; }
.bg-blue-50 { background-color: #eff6ff; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.w-10 { width: 2.5rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-72 { width: 18rem; }
.h-12 { height: 3rem; }
@media (min-width: 768px) {
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Practitioner Hub: entitlement usage bars (a <progress> so no inline width is needed). */
.usage-bar { width: 100%; height: .5rem; border-radius: .25rem; overflow: hidden; background: #e5e7eb; appearance: none; -webkit-appearance: none; border: 0; }
.usage-bar::-webkit-progress-bar { background: #e5e7eb; }
.usage-bar::-webkit-progress-value { background: #3b82f6; }
.usage-bar::-moz-progress-bar { background: #3b82f6; }
.usage-bar.near::-webkit-progress-value { background: #f59e0b; }
.usage-bar.near::-moz-progress-bar { background: #f59e0b; }
.usage-bar.over::-webkit-progress-value { background: #dc2626; }
.usage-bar.over::-moz-progress-bar { background: #dc2626; }
.badge-state-over { background: #fee2e2; color: #991b1b; }
.ledger-voided { color: #9ca3af; text-decoration: line-through; }

/* Utilities the Hub and portal client screens use that the console never needed. */
.border-orange-200 { border-color: #fed7aa; }
.break-all { word-break: break-all; }
.cursor-pointer { cursor: pointer; }
.font-normal { font-weight: 400; }
.gap-8 { gap: 2rem; }
.inline { display: inline; }
.items-baseline { align-items: baseline; }
.max-w-md { max-width: 28rem; } .max-w-xl { max-width: 36rem; } .max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; } .max-w-6xl { max-width: 72rem; }
.ml-2 { margin-left: .5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.normal-case { text-transform: none; }
.p-2 { padding: .5rem; }
.pb-2 { padding-bottom: .5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.space-y-0\.5 > * + * { margin-top: .125rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.text-gray-800 { color: #1f2937; }
.text-right { text-align: right; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.whitespace-pre-line { white-space: pre-line; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Buttons that should look like the links around them (sidebar Sign out, Remove, Void). */
button.nav-link { background: transparent; border: 0; font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
button.text-red-600, button.text-blue-600 { background: none; border: 0; padding: 0; font: inherit; font-size: inherit; cursor: pointer; }
.w-28 { width: 7rem; }

/* More utilities used by the rate screens. */
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.list-disc { list-style-type: disc; }
.ml-5 { margin-left: 1.25rem; }
.pl-3 { padding-left: .75rem; } .pr-3 { padding-right: .75rem; } .pt-3 { padding-top: .75rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.text-amber-700 { color: #b45309; }

/* Printable induction pack. */
.pack { background: #f3f4f6; margin: 0; }
.pack-toolbar { display: flex; justify-content: space-between; align-items: center; max-width: 48rem; margin: 0 auto; padding: 1rem; }
.pack-warning { max-width: 48rem; margin: 0 auto .5rem; background: #fee2e2; color: #991b1b; padding: .75rem 1rem; border-radius: .375rem; font-size: .875rem; }
.pack-note { max-width: 48rem; margin: 0 auto .5rem; background: #fef3c7; color: #92400e; padding: .5rem 1rem; border-radius: .375rem; font-size: .8125rem; }
.pack-page { background: #fff; max-width: 48rem; margin: 0 auto 2rem; padding: 3rem; box-shadow: 0 1px 3px rgba(0,0,0,.1); font-size: 1rem; line-height: 1.6; color: #111827; }
.pack-logo { height: 2.75rem; margin-bottom: 1.5rem; }
.pack-title { font-size: 1.875rem; font-weight: 700; color: var(--riz-navy); margin: 0 0 .5rem; }
.pack-lead { font-size: 1.125rem; color: #374151; margin: 0 0 1.5rem; }
.pack-box { background: var(--riz-navy); color: #fff; border-radius: .5rem; padding: 1.5rem; text-align: center; margin: 1.5rem 0 2rem; }
.pack-box-label { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin: .5rem 0; }
.pack-phone { font-size: 2.25rem; font-weight: 700; }
.pack-code { font-size: 2.25rem; font-weight: 700; letter-spacing: .2em; color: var(--riz-blue); }
.pack-h2 { font-size: 1.25rem; font-weight: 600; color: var(--riz-navy); margin: 1.75rem 0 .5rem; }
.pack-list { margin: 0; padding-left: 1.5rem; }
.pack-list li { margin: .35rem 0; }
@media print {
  .no-print { display: none !important; }
  .pack { background: #fff; }
  .pack-page { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .pack-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.max-w-xs { max-width: 20rem; }
.border-red-200 { border-color: #fecaca; }
.p-3 { padding: .75rem; }
.pt-5 { padding-top: 1.25rem; }
.border-orange-200 { border-color: #fed7aa; }
.text-orange-700 { color: #c2410c; }
.text-orange-800 { color: #9a3412; }

/* The embedded resource (console preview and portal viewer). Height was previously a class that did not exist, so the frame was tiny. */
.res-embed { display: block; width: 100%; height: 70vh; min-height: 360px; border: 1px solid #f3f4f6; border-radius: 8px; }

/* Icon picker (console): a grid of the shared icons; the radio input is hidden and its box is highlighted when chosen. */
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; margin-top: .25rem; }
.icon-picker-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; cursor: pointer; }
.icon-picker-item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.icon-picker-box { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 1px solid #d1d5db; border-radius: .75rem; background: #fff; color: #374151; }
.icon-picker-none { font-size: .65rem; color: #6b7280; }
.icon-picker-label { font-size: .7rem; color: #6b7280; text-align: center; line-height: 1.1; }
.icon-picker-item:hover .icon-picker-box { border-color: #9ca3af; }
.icon-picker-item input:checked + .icon-picker-box { border-color: #2563eb; box-shadow: 0 0 0 2px #bfdbfe; color: #1d4ed8; }
.icon-picker-item input:focus-visible + .icon-picker-box { outline: 3px solid #2563eb; outline-offset: 2px; }

/* The editor's Quote block looks like the quote it will be on the page: the brand-coloured bar, the words in italics, the author small underneath, and no boxes. */
.codex-editor .cdx-quote { margin: .5rem 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--brand-primary, var(--riz-orange)); }
.codex-editor .cdx-quote .cdx-quote__text, .codex-editor .cdx-quote .cdx-quote__caption { min-height: 0; border: 0; box-shadow: none; background: transparent; padding: .125rem 0; }
.codex-editor .cdx-quote .cdx-quote__text { margin: 0; font-size: 1.0625rem; font-style: italic; color: var(--brand-link, #374151); }
.codex-editor .cdx-quote .cdx-quote__caption { margin-top: .125rem; font-size: .8125rem; color: #6b7280; }
.codex-editor .cdx-quote .cdx-quote__caption[data-placeholder]:not(:empty)::before { content: "\2014\00a0"; position: static; opacity: 1; color: inherit; }
