/* Powerlab Black Edition. Original logo silhouette; no external fonts or assets. */
:root { color-scheme:dark; --bg:#08090b; --panel:#111215; --text:#eeece6; --muted:#a09f9c; --line:#2a2b2e; --brand:#ff6800; --brand-hover:#ff8129; --orange:#ff6800; --tint:#211910; --good:#191b1d; --green:#cecec6; --danger:#ff9292; --sidebar:#0c0d0f; --shadow:0 12px 32px #0000001c; }
body { background:var(--bg); letter-spacing:.05px; }
.app-shell { grid-template-columns:226px minmax(0,1fr); }
.sidebar { background:linear-gradient(105deg,#101113,#0b0c0e); border-right:1px solid #242527; padding:30px 16px 24px; }
.sidebar .brand-image { background:transparent; padding:0; border-radius:0; }
.sidebar-caption { color:#777875; margin:12px 0 40px; letter-spacing:2.3px; }
.nav-group-label { color:#858582; font-size:9px; letter-spacing:1.7px; }
.nav-link { border-radius:3px; color:#aaa9a5; padding:12px; font-weight:450; }
.nav-link.active { color:var(--brand); background:#ffffff05; box-shadow:inset 2px 0 var(--brand); }
.nav-link:hover { background:#191a1d; }
.sidebar-bottom { color:#b5b3ad; }
.sidebar-bottom small { color:#7f807d; }
.sidebar-mark { background:#151618; border-color:#2a2b2d; border-radius:3px; }
.app-header { min-height:82px; padding:18px 32px; background:#0d0e10; border-bottom-color:#242527; }
.header-overline { color:#8d8c88; font-size:8px; letter-spacing:1.9px; }
.header-title { font-size:13px; font-weight:500; }
.avatar { background:#1d1e21; color:#dedcd6; border:1px solid #37383b; border-radius:50%; }
.main-content { max-width:1800px; padding:34px 32px 24px; }
.app-footer { color:#80817d; padding-left:32px; padding-right:32px; }
h1 { font-size:32px; font-weight:500; letter-spacing:-1px; }
h2,h3 { font-weight:500; }
small,.muted { color:var(--muted); }
.eyebrow { font-size:9px; letter-spacing:1.8px; color:#a3a19b; }
section { border-radius:5px; background:linear-gradient(120deg,#141518,#101113); box-shadow:none; }
section > h2:first-child:before { width:2px; border-radius:0; }
button,.button { color:#d1cfc9; background:#191a1d; border-color:#36373a; border-radius:4px; box-shadow:inset 0 1px #ffffff05; font-weight:500; }
button:hover,.button:hover { color:var(--text); background:#232427; border-color:#535458; box-shadow:none; transform:none; }
.primary { color:#100e0b; background:var(--brand); border-color:var(--brand); box-shadow:inset 0 1px #ffffff28; font-weight:650; }
.primary:hover { color:#100e0b; background:var(--brand-hover); border-color:var(--brand-hover); box-shadow:none; }
.button-quiet { color:#a3a19c; background:transparent; border-color:transparent; box-shadow:none; }
.button-quiet:hover { background:#1b1c1f; border-color:transparent; }
label,.field-label { color:#c2c0bb; }
input:not([type=checkbox]):not([type=radio]),select,textarea,.materials-picker { background:#0d0e10; border-color:#37383b; border-radius:4px; color:var(--text); }
input::placeholder,textarea::placeholder { color:#83847f; }
input:hover,select:hover,textarea:hover { border-color:#646461; }
input:focus,select:focus,textarea:focus { background:#111215; box-shadow:0 0 0 2px #ff68001a; }
input:disabled,select:disabled { background:#1b1c1f; color:#a2a29d; }
.selected-teeth-field input { background:#19150f; border-color:#75401a; color:var(--brand); }
.materials-picker[open] { box-shadow:0 0 0 2px #ff68001a; }
.message,.warning { background:#1b1b18; border-color:#45433a; color:#ded9c9; border-radius:4px; }
.message.error,.form-error-summary,.calendar-warning { background:#221719; border-color:#734044; color:#ff9292; border-radius:4px; }
.calendar-warning { border-left-color:#ff9292; }
.badge,.badge--queued,.badge--sent { color:#b7b7af; background:#202124; border:1px solid #38393b; border-radius:3px; font-size:10px; padding:4px 7px; }
.badge--running { color:#ff913f; background:#21170f; border-color:#65391b; }
.badge--ready { color:#e2e1d9; background:#242522; border-color:#50514a; }
.badge--paused { color:#ddbe9e; background:#241e18; border-color:#564536; }
.search-toolbar { background:#111215; border-radius:4px; border-color:var(--line); }
.search-toolbar input { background:#0b0c0e; }
.table-wrap { background:#111215; border-radius:4px; box-shadow:none; }
th,td { border-color:#28292c; }
th { background:#151619; color:#a4a39d; font-size:9px; letter-spacing:1px; text-transform:uppercase; }
tbody tr:hover { background:#191a1d; }
.work-row + .work-row { border-color:var(--line); }
.empty-state strong { color:#d1cfc9; }
.empty-state > .icon { color:#8d8e87; }
.steps li,.route-row,.route-row.off { background:#191a1d; border-color:#303134; border-radius:4px; }
.steps li:before { background:#303134; color:#b7b7af; }
.steps li.current { background:#21170f; }
.steps li.current:before { background:var(--brand); color:#100e0b; }
.steps li.done { background:#1b1d1d; }
.steps li.done:before { background:#3a3c39; color:#e5e5dc; }
.route-row.off label { color:#9a9a95; }
.history { border-color:#3b3c3e; }
.history:before { background:#656660; }
.dental { background:#0c0d0f; border-color:#303134; border-radius:4px; }
.tooth { background:#151619; color:#aaa9a3; border-color:#3b3c3e; border-radius:4px; }
.tooth:hover { color:var(--brand); background:#21170f; border-color:#b05012; }
.tooth[aria-pressed=true] { background:#21170f; color:var(--brand); }
.profile-avatar { background:#212225; color:#dedcd6; box-shadow:0 0 0 6px #111215,0 0 0 7px #3a3b3e; border-radius:6px; }
.profile-link:hover { color:var(--text); }
.login-layout { border-radius:6px; background:#111215; border-color:#333437; box-shadow:0 30px 90px #0006; }
.login-story { background:repeating-linear-gradient(110deg,#ffffff02 0 1px,transparent 1px 5px),linear-gradient(130deg,#1c1d20,#0c0d0f); }
.login-story .eyebrow { color:#b3b1aa; }
.login-symbol { background:#1d1d1b; color:var(--brand); border-color:#4a392b; border-radius:5px; }
.login-story h1 { font-weight:450; color:var(--text); }
.login-story h1 span { color:var(--brand); }
.login-story p,.story-signature { color:#aaa9a2; }
.login { background:transparent; }
/* Preserve the supplied PNG contours, adapting its black lettering to ivory. */
@supports (mask-image:url('brand/powerlab-logo.png')) {
 .logo-window::after { content:''; position:absolute; width:220px; height:73.333px; left:-37.5px; top:-14.7px; background:linear-gradient(90deg,#eeece6 0 61.7%,#ff6800 61.7% 83%,#eeece6 83%); mask-image:url('brand/powerlab-logo.png'); mask-size:100% 100%; mask-repeat:no-repeat; }
 .brand-logo { opacity:0; }
 .guest-header .logo-window::after { width:275px; height:91.667px; left:-47px; top:-18.3px; }
}
.registry-heading { margin:0 0 18px; }
.registry-heading h1 { font-weight:700; }
.registry-heading .primary { border-radius:8px; }
.registry-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.registry-metrics > div { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; column-gap:12px; padding:12px; border:1px solid #343538; border-radius:8px; background:linear-gradient(115deg,#18191b,#111214); }
.registry-metrics .icon { grid-row:span 2; color:#d8d7d3; }
.registry-metrics strong { font-size:24px; font-weight:700; line-height:1.1; font-variant-numeric:tabular-nums; }
.registry-metrics span { color:#b8b8b3; font-size:11px; }
.registry-filters { display:grid; grid-template-columns:minmax(164px,2.4fr) repeat(3,minmax(110px,1fr)) auto; gap:8px; margin:0 0 12px; }
.registry-search { position:relative; }
.registry-search .icon { position:absolute; width:16px; height:16px; inset-inline-start:10px; top:10px; pointer-events:none; }
.registry-search input[name="q"] { padding-inline-start:34px; }
.registry-filters input[name="q"],.registry-filters select,.registry-filters button { min-height:36px; padding-block:6px; border-radius:6px; background:#18191b; }
.registry-filters select { width:100%; min-width:0; text-overflow:ellipsis; }
.registry-table { margin:0; border:1px solid #2c2d30; border-radius:8px; background:#101113; }
.registry-table table { min-width:665px; }
.registry-table td { padding:7px 12px; vertical-align:middle; font-size:13px; }
.registry-table th { padding:8px 12px; background:#1c1d1f; color:#dddcd7; font-size:11px; letter-spacing:0; text-transform:none; }
.registry-table th a { color:inherit; white-space:nowrap; }
.registry-table th a span { color:#ffab75; margin-inline-start:3px; }
.registry-table tr:last-child td { border-bottom:0; }
.registry-table td strong { font-weight:650; overflow-wrap:anywhere; }
.registry-table td small { margin-top:2px; }
.registry-table .order-number { margin-bottom:0; }
.registry-table .badge { margin-top:3px; }
.registry-stage > strong { display:block; }
.due-cell { white-space:nowrap; font-variant-numeric:tabular-nums; }
.registry-actions { display:flex; gap:10px; align-items:center; white-space:nowrap; }
.registry-actions .button { font-size:11px; min-height:30px; padding:4px 8px; }
.registry-edit { color:#161616; background:#fff; border-color:#fff; }
.registry-edit:hover { color:#161616; background:#e7e7e7; border-color:#e7e7e7; }
.registry-delete { display:inline-flex; align-items:center; min-height:30px; color:#ff9955; font-size:11px; }
.registry-delete:hover { color:#ffbc91; text-decoration:underline; }
.registry-pages { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:12px; color:var(--muted); font-size:12px; }
.order-dialog { width:min(460px,calc(100% - 28px)); padding:24px; background:#161719; color:var(--text); border:1px solid #414246; border-radius:10px; box-shadow:0 16px 55px #0009; }
.order-dialog::backdrop { background:#000a; }
.order-dialog h2 { margin:0 0 12px; font-size:21px; }
.order-dialog p { color:#c5c3bc; margin:0 0 20px; }
.order-dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
@media(max-width:1050px) {
  .registry-filters { grid-template-columns:repeat(3,minmax(0,1fr)) auto; }
  .registry-search { grid-column:1/-1; }
}
@media(max-width:780px) {
  .registry-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:540px) {
  .registry-heading { align-items:stretch; }
  .registry-heading .primary { width:100%; }
  .registry-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .registry-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .registry-table table { min-width:0; }
  .registry-table table,.registry-table thead,.registry-table tbody { display:block; }
  .registry-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .registry-table th { display:none; }
  .registry-table th[aria-sort],.registry-table th:has(a) { display:block; }
  .registry-table td { min-width:0; padding:6px 10px; border-bottom:0; }
  .registry-table tbody tr { padding-block:4px; border-top:1px solid var(--line); }
  .registry-table td:last-child { grid-column:1/-1; }
}
.deadline-badges { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.deadline-badge { padding:2px 6px; border:1px solid #42434a; border-radius:4px; background:#26272b; color:#e0dfdb; font-size:10px; line-height:1.3; white-space:nowrap; }
.deadline-overdue { border-color:#7e3d44; background:#361d22; color:#ffacb0; }
.deadline-urgent { border-color:#834722; background:#392114; color:#ffad72; }
.work-progress li { border:1px solid #303134; border-top:3px solid #414246; }
.work-progress li.done { border-top-color:#7a7c72; }
.work-progress li.current { border-color:#81502b; border-top-color:var(--brand); }
.work-progress .step-assignee { display:block; margin-top:4px; font-size:11px; color:#e5e3dc; overflow-wrap:anywhere; }
.clinic-contact { display:flex; align-items:flex-start; gap:7px; margin:0 0 5px; color:inherit; text-align:left; overflow-wrap:anywhere; }
.clinic-contact .icon { flex:none; width:15px; height:15px; margin-top:1px; color:#a8a8a4; }
button.contact-copy { min-height:0; padding:3px 6px; margin-left:-6px; font:inherit; font-weight:400; background:transparent; box-shadow:none; border:1px solid transparent; border-radius:5px; justify-content:flex-start; }
button.contact-copy:hover { background:#26272b; border-color:#3d3e43; }
.clinic-contact span { min-width:0; }
.clinic-doctor + .clinic-doctor { border-top:1px solid #303134; margin-top:8px; padding-top:8px; }
.clinic-doctor > strong { display:block; margin-bottom:4px; }
.contact-copy-status { position:fixed; z-index:10; bottom:18px; right:18px; padding:9px 14px; border:1px solid #515256; border-radius:6px; background:#242529; color:#eeede8; font-size:13px; pointer-events:none; }
.contact-copy-status:empty { opacity:0; }
@media(max-width:1100px) { .app-shell { grid-template-columns:210px minmax(0,1fr); } .main-content { padding:26px 24px 20px; } .app-header { padding:18px 24px; } @supports(mask-image:url('brand/powerlab-logo.png')) { .logo-window::after { width:201px; height:67px; left:-34.3px; top:-13.4px; } } }
@media(max-width:780px) { .app-shell { display:block; } .sidebar { padding:19px 20px; border-bottom:1px solid var(--line); border-right:0; } .sidebar .brand-image { padding:0; } .main-content { padding:26px 20px; } h1 { font-size:28px; } }
@media(max-width:540px) { .main-content { padding:24px 14px; } .app-header { padding:14px; } h1 { font-size:26px; } section { border-radius:4px; } .login-layout { border-radius:4px; } @supports(mask-image:url('brand/powerlab-logo.png')) { .guest-header .logo-window::after { width:201px; height:67px; left:-34.3px; top:-13.4px; } } }
@media print { :root { color-scheme:light; --text:#111; --muted:#555; --bg:#fff; --panel:#fff; --line:#ccc; } .sidebar,.app-header,.app-footer,.search-toolbar,.registry-filters,.registry-actions,.registry-pages,.heading > .button { display:none; } body,section,.table-wrap,th,.registry-table th { background:#fff; color:#111; } .app-shell { display:block; } .main-content { padding:0; } }
.order-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.print-data-row + .print-data-row { margin-top: 16px; }
