/* Shared management workspace, deliberately scoped away from public forms. */
.admin main nav[aria-label="CL Creates navigation"] { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 18px 0 24px; }
.admin main nav[aria-label="CL Creates navigation"] a.btn { flex: 0 0 auto; width: auto; min-height: 38px; padding: 8px 13px; border: 1px solid #10213f; border-radius: 8px; background: #10213f; color: #fff; font-size: .875rem; font-weight: 750; line-height: 1.4; }
.admin main nav[aria-label="CL Creates navigation"] a.btn:hover { background: #243e65; border-color: #243e65; }
.admin.creates-order-popup { grid-template-columns: minmax(0, 1fr); }
.admin .creates-items-wrap { width: 100%; overflow-x: auto; margin: 20px 0; }
.admin .creates-items-table { width: 100%; min-width: 520px; table-layout: fixed; border-collapse: collapse; background: white; line-height: 1.6; }
.admin .creates-items-table th, .admin .creates-items-table td { border: 1px solid #aebbd0; padding: 16px 18px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.admin .creates-items-table th { background: #edf1f7; font-weight: 750; }
.admin .creates-items-table td:nth-child(2) { white-space: pre-wrap; }
.admin .creates-items-table th:nth-child(3), .admin .creates-items-table td:nth-child(3) { text-align: center; }
.admin .creates-items-table th:nth-child(4), .admin .creates-items-table td:nth-child(4) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin .creates-orders-wrap { width: 100%; overflow-x: auto; margin: 24px 0; background: white; border: 1px solid var(--border); border-radius: 14px; }
.admin .creates-orders-table { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 1rem; line-height: 1.6; }
.admin .creates-orders-table th, .admin .creates-orders-table td { padding: 20px 22px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.admin .creates-orders-table th { background: #edf1f7; font-weight: 750; white-space: nowrap; }
.admin .creates-orders-table td:nth-child(3) { min-width: 240px; overflow-wrap: anywhere; }
.admin .creates-orders-table td:nth-child(4), .admin .creates-orders-table td:nth-child(5) { white-space: nowrap; }
.admin .creates-orders-table tbody tr:hover { background: #fafbfe; }
.admin .creates-orders-table tbody tr:last-child td { border-bottom: 0; }
.admin .creates-orders-table td > a { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.admin .creates-orders-table form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0; }
.admin .creates-orders-table label { display: grid; gap: 6px; }
.admin .creates-orders-table select { min-width: 185px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: white; }
.admin { --bg: #f4f6fa; --border: #dde3ec; --muted: #59677d; background: var(--bg); }
.portal-high-contrast .admin { --muted: #334155; --border: #52637d; --pink: #aa0750; --green: #006d40; }
.admin main { min-width: 0; padding: clamp(20px, 3vw, 40px); }
.admin .panel { border-radius: 16px; box-shadow: 0 3px 14px #10213f04; }
.admin main h1 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 8px; }
.admin main h2 { font-size: 1.13rem; letter-spacing: -.015em; }
.admin main h3 { font-size: 1rem; }
.admin main > .top, .admin .admin-clients-heading, .admin .workspace-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.admin .top p, .admin .admin-clients-heading p { margin: 8px 0 0; color: var(--muted); max-width: 65ch; }
.admin .btn { border-radius: 9px; padding: 10px 15px; font-size: .9rem; align-items: center; justify-content: center; min-height: 42px; }
.admin .btn:hover { border-color: #aebbd0; background: #f3f6fc; }
.admin .btn.primary:hover { background: #d9226e; border-color: #d9226e; }
.admin :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #f52f8366; outline-offset: 3px; }
.admin aside .brand { margin: 8px 0 24px; }
.admin .portal-admin-toolbar { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.admin .portal-admin-toolbar .btn { background: transparent; color: var(--muted); border: 0; padding: 6px 10px; min-height: 36px; }
.admin .stats article { border-radius: 14px; padding: 18px; }
.admin .stats strong { font-size: 1.9rem; letter-spacing: -.035em; }
.admin .stats small { display: block; line-height: 1.5; margin-top: 8px; }
.admin .waiver-table th { background: #f6f8fc; color: var(--muted); font-size: .75rem; letter-spacing: .035em; text-transform: uppercase; }
.admin .waiver-table tbody tr:hover { background: #fafbfe; }
.admin .waiver-table td { vertical-align: top; }
.workspace-list-tools, .workspace-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.workspace-list-tools label { display: grid; gap: 6px; font-size: .85rem; font-weight: 650; }
.workspace-list-tools input, .workspace-list-tools select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: white; min-height: 42px; }
.workspace-pagination { justify-content: flex-end; font-size: .88rem; color: var(--muted); }
.workspace-pagination [role=status] { margin-right: auto; }
.workspace-empty { padding: 24px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); }
.workspace-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 750; line-height: 1.3; background: #edf1f7; color: #43516a; }
.workspace-badge[data-tone=success] { background: #e8f5ef; color: #12663e; }
.workspace-badge[data-tone=warning] { background: #fff3da; color: #805508; }
.workspace-badge[data-tone=danger] { background: #fce9ee; color: #a51b40; }
.settings-fold { padding: 0 !important; overflow: hidden; }
.settings-fold > summary { padding: 20px; cursor: pointer; font-weight: 750; font-size: 1rem; }
.settings-fold[open] > summary { border-bottom: 1px solid var(--border); background: #fafbfe; }
.settings-fold > .settings-fold-body { padding: 20px; }
.settings-fold .panel { box-shadow: none; padding: 0; border: 0; background: transparent; }
.settings-fold .settings-fold-body > .panel > h2 { display: none; }
.settings-fold-hint { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: 5px; }
.workspace-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.workspace-shortcuts a { padding: 18px; background: white; border: 1px solid var(--border); border-radius: 14px; }
.workspace-shortcuts strong, .workspace-shortcuts span { display: block; }
.workspace-shortcuts span { color: var(--muted); font-size: .85rem; margin-top: 8px; line-height: 1.45; }
.workspace-shortcuts a:hover { border-color: var(--pink); }
.qr-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qr-record { border: 1px solid var(--border); padding: 20px; border-radius: 14px; }
.qr-record h3 { margin: 12px 0; }
.qr-record .paint-actions { margin: 14px 0; }
.qr-record details { margin-top: 14px; }
.admin [hidden] { display: none !important; }
@media(min-width: 801px) { .admin > aside { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
@media(max-width: 1050px) { .workspace-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 700px) {
  .admin main { padding: 18px 12px; }
  .admin .qr-record-grid { grid-template-columns: minmax(0, 1fr); }
  .admin .waiver-table.workspace-card-table, .admin .workspace-card-table tbody, .admin .workspace-card-table tr, .admin .workspace-card-table td { display: block; width: 100%; min-width: 0; max-width: none; white-space: normal; }
  .admin .workspace-card-table thead { display: none; }
  .admin .workspace-card-table tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px; margin: 12px 0; background: white; }
  .admin .workspace-card-table td { border: 0; padding: 10px; overflow-wrap: anywhere; }
  .admin .workspace-card-table td::before { content: attr(data-column-label); display: block; font-size: .73rem; color: var(--muted); font-weight: 750; margin-bottom: 5px; text-transform: uppercase; }
  .workspace-list-tools { align-items: stretch; }
  .workspace-list-tools label { flex: 1 1 150px; }
  .workspace-list-tools input { width: 100%; min-width: 0; }
  .workspace-pagination .btn { flex: 1; }
}
@media print { .admin aside, .portal-admin-toolbar, .workspace-pagination, .workspace-list-tools, .portal-display-controls { display: none !important; } .admin { display: block; } }
.website-enquiries-scroll {
  max-height: 65vh;
  overflow-y: auto;
  overflow-wrap: anywhere;
  scrollbar-gutter: stable;
  padding-inline: 4px 12px;
}
.website-enquiries-scroll:focus-visible {
  outline: 2px solid #f52f83;
  outline-offset: 3px;
}

.admin-tool-search { margin-bottom: 16px; }
.admin-tool-search label { display: block; color: white; font-size: .85rem; margin-bottom: 8px; }
.admin-tool-search input { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid #9aa9bf; border-radius: 8px; background: white; color: #183354; }
.admin-tool-search [role=status] { color: white; font-size: .8rem; margin: 8px 0 0; }
