.reg-page {
  --reg-border: #e2e8f0; --reg-muted: #475569; --reg-brand: var(--brand,#113255);
  display:flex; flex-direction:column; gap:16px; min-height:100%; min-width:0; padding:20px;
  background:#f8fafc; color:#0f172a; font:14px/1.45 "Segoe UI",Arial,sans-serif;
}
.reg-page *, .reg-page *::before, .reg-page *::after {box-sizing:border-box}
.reg-heading h1 {margin:0; font-size:20px; font-weight:700; line-height:28px}
.reg-heading p {margin:0; font-size:12px; color:#566475}
.reg-stats {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
.reg-stat {border:1px solid var(--reg-border); border-top:4px solid var(--stat); border-radius:10px; background:white; padding:16px 18px}
.reg-stat span {display:block; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#59697d; margin-bottom:6px}
.reg-stat strong {display:block; color:var(--stat); font-size:26px; line-height:1; font-weight:900}
.reg-card {border:1px solid var(--reg-border); border-radius:8px; background:white; min-width:0; overflow:hidden; margin-bottom:16px}
.reg-tools,.reg-controls,.reg-bulk,.reg-filter-foot,.reg-chip-row,.reg-pagination,.reg-pagination>div,.reg-actions,.reg-split,.reg-person,.reg-column-all,.reg-th {display:flex; align-items:center}
.reg-tools {justify-content:space-between; padding:12px 16px; flex-wrap:wrap; gap:16px; border-bottom:1px solid var(--reg-border)}
.reg-controls {flex-wrap:wrap; gap:12px}
.reg-search {display:inline-flex; align-items:center; min-width:220px; height:34px; border:1px solid #aeb6c1; border-bottom-color:#697786; background:white; border-radius:4px; padding:0 9px; gap:6px}
.reg-search:focus-within {outline:2px solid var(--reg-brand); outline-offset:1px}
.reg-search input {outline:0; padding:0; border:0; background:transparent; width:100%; font:inherit; color:inherit}
.reg-btn {display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; background:white; color:#253347; border:1px solid #d1d5db; border-radius:5px; font:600 13px/18px "Segoe UI",Arial,sans-serif; min-height:32px; padding:5px 11px; cursor:pointer}
.reg-btn:hover:not(:disabled) {background:#f2f5f8}
.reg-btn[data-primary],.reg-btn.reg-primary,.reg-btn[data-action=apply] {color:white; background:var(--reg-brand); border-color:var(--reg-brand)}
.reg-btn[data-primary]:hover:not(:disabled),.reg-btn.reg-primary:hover:not(:disabled),.reg-btn[data-action=apply]:hover:not(:disabled) {background:#244a72}
.reg-btn.reg-danger {background:#b91c1c; border-color:#b91c1c; color:white}
.reg-btn.reg-request {background:#036fa6; border-color:#036fa6; color:white}
.reg-btn.reg-request:hover:not(:disabled) {background:#035c8a}
.reg-btn:disabled {border-color:#e1e4e9; background:#f4f5f6; color:#9299a1; cursor:not-allowed}
.reg-btn[aria-label]:empty,.reg-btn svg {flex:none}
.reg-split {gap:0}
.reg-split .reg-btn:first-child {border-radius:5px 0 0 5px}
.reg-split .reg-btn:last-child {border-left:0; border-radius:0 5px 5px 0; padding:5px}
.reg-grid-scroll {max-width:100%; overflow-x:auto; scrollbar-width:thin}
.reg-grid {width:100%; border-collapse:collapse; table-layout:fixed; font-size:12px}
.reg-grid th,.reg-grid td {height:48px; text-align:left; padding:6px 12px; overflow-wrap:anywhere}
.reg-grid thead th {position:relative; background:#f8fafc; height:42px; font-size:11px; letter-spacing:.4px; text-transform:uppercase; color:#4a5664; font-weight:600; border-bottom:1px solid var(--reg-border); border-right:1px solid var(--reg-border)}
.reg-grid th:first-child,.reg-grid td:first-child {text-align:center}
.reg-grid tr+tr td {border-top:1px solid var(--reg-border)}
.reg-grid tr.reg-selected {background:#eef5ff}
.reg-grid tbody tr:hover {background:#f6f8fc}
.reg-th {gap:2px; justify-content:space-between; white-space:nowrap}
.reg-th .reg-btn,.reg-actions .reg-btn,.reg-pagination .reg-btn,.reg-dialog header .reg-btn {padding:4px; min-width:26px; min-height:26px; border-color:transparent; background:transparent}
.reg-th .reg-btn {color:var(--reg-brand)}
.reg-resize {position:absolute; height:100%; right:0; top:0; width:5px; cursor:col-resize; touch-action:none}
.reg-resize:hover,.reg-resize:focus-visible {background:#94b8db}
.reg-actions {gap:2px}
.reg-person {gap:10px}
.reg-avatar {display:grid; place-items:center; background:#e6ecf5; color:#234a73; width:32px; height:32px; flex:none; border-radius:50%; font-weight:600}
.reg-person span small {display:block; color:#59697d; font-size:10px}
.reg-name {padding:0; font:600 13px "Segoe UI",Arial,sans-serif; border:0; text-align:left; background:none; color:inherit; cursor:pointer}
.reg-name:hover {text-decoration:underline}
.reg-badge,.reg-stage {display:inline-block; padding:3px 9px; border-radius:20px; font-weight:600; font-size:11px}
.reg-badge {color:var(--badge); background:color-mix(in srgb,var(--badge) 8%,white); border:1px solid color-mix(in srgb,var(--badge) 26%,white)}
.reg-stage {background:#eef5ff; color:#075985; padding:2px 7px; font-size:10px}
.reg-muted,.reg-grid small {color:#5c6877}
.reg-steps {display:flex; gap:3px; margin-bottom:4px}
.reg-steps i {height:4px; flex:1; border-radius:3px; background:#e2e8f0}
.reg-steps i[data-state=complete] {background:#0284c7}
.reg-steps i[data-state=current] {background:#8fc9ea}
.reg-empty>div {display:flex; align-items:center; flex-direction:column; gap:10px; padding:48px 16px; color:#4b5563}
.reg-empty img {width:140px; height:auto}
.reg-pagination {border-top:1px solid var(--reg-border); justify-content:space-between; gap:12px; padding:6px 16px; font-size:12px; color:var(--reg-muted); flex-wrap:wrap}
.reg-pagination>div {gap:8px}
.reg-page input[type=checkbox] {width:16px; height:16px; accent-color:var(--reg-brand)}
.reg-pagination select,.reg-builder select,.reg-builder input,.reg-column-menu input[type=search],.reg-field input {font:inherit; background:white; color:#253347; border:1px solid #acb5c1; border-radius:4px; min-height:32px; padding:5px 8px}
.reg-pagination select {margin-left:4px}
.reg-pop {position:fixed; inset:auto; margin:0; z-index:9; background:white; color:inherit; padding:5px; border:1px solid var(--reg-border); border-radius:7px; min-width:155px; max-width:calc(100vw - 12px); max-height:70vh; overflow:auto; box-shadow:0 5px 22px #172d4926}
.reg-pop>.reg-btn {border:0; width:100%; display:flex; justify-content:flex-start}
.reg-sort-heading,.reg-sort-caption {display:block; padding:3px 8px}
.reg-sort-caption {color:#55677b; font-size:11px}
.reg-pop>[aria-pressed=true] {background:#eaf2fb; color:#183e68}
.reg-column-menu {display:grid; min-width:198px; gap:2px}
.reg-column-menu input[type=search] {margin:4px}
.reg-column-menu label {display:flex; align-items:center; gap:8px; min-height:30px; padding:2px 5px}
.reg-column-all {justify-content:space-between; border-bottom:1px solid var(--reg-border); font-size:11px}
.reg-column-all .reg-btn {min-height:auto; border:0; font-size:11px}
.reg-bulk,.reg-chip-row,.reg-builder {padding:12px 16px; border-bottom:1px solid var(--reg-border)}
.reg-chip-row,.reg-bulk {flex-wrap:wrap; gap:8px}
.reg-bulk {background:#f1f6fb}
.reg-filter-head,.reg-clause {display:grid; grid-template-columns:62px minmax(58px,.55fr) minmax(98px,1.15fr) minmax(90px,.9fr) minmax(95px,1.2fr); gap:8px; align-items:center}
.reg-filter-head {font-size:12px; color:#46566b; margin-bottom:6px}
.reg-clause {margin-block:6px}
.reg-clause>div:first-child {display:flex; gap:2px}
.reg-clause .reg-btn {padding:3px; min-width:26px; min-height:26px}
.reg-clause select,.reg-clause input {width:100%; min-width:0; font-size:13px}
.reg-filter-foot {margin-top:12px; flex-wrap:wrap; gap:8px}
.reg-filter-foot span {flex:1}
.reg-chip-row .reg-btn {border-radius:16px; min-height:26px; padding:2px 8px}
.reg-dialog {background:white; color:inherit; border:0; padding:0; box-shadow:0 6px 40px #172a4726}
.reg-dialog::backdrop {background:rgba(15,23,42,.36)}
.reg-dialog header {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; padding:16px 24px; border-bottom:1px solid #d6dce3}
.reg-dialog header>div {display:flex; align-items:center; gap:12px}
.reg-dialog h2 {font-size:19px; line-height:1.35; margin:0}
.reg-dialog header p {flex-basis:100%; margin:0; color:#5c6877; font-size:14px}
.reg-dialog footer {display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:14px 24px; border-top:1px solid #d6dce3; flex:none}
.reg-drawer {position:fixed; inset:0 0 0 auto; margin:0; min-height:100dvh; height:100dvh; max-height:100dvh; width:45vw; max-width:100vw}
.reg-drawer-form {height:100%; display:flex; flex-direction:column}
.reg-form-icon {display:grid; place-items:center; width:36px; height:36px; border-radius:9px; color:#03699f; background:#eaf4ff}
.reg-form-icon svg {width:22px; height:22px}
.reg-form-body {overflow-y:auto; flex:1; min-height:0; padding:16px 24px}
.reg-form-grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px}
.reg-field {display:flex; min-width:0; flex-direction:column; gap:4px}
.reg-field label {font-size:14px; font-weight:500; color:#263547}
.reg-field label>span,.reg-field small:not(:empty) {color:#b91c1c}
.reg-field input {width:100%}
.reg-input-wrap {position:relative}
.reg-input-wrap:has(.reg-combo-tools)>input {padding-right:56px}
.reg-combo-tools {display:flex; align-items:center; position:absolute; right:3px; top:50%; transform:translateY(-50%)}
.reg-combo-tools button {display:grid; place-items:center; width:25px; height:26px; padding:2px; background:transparent; color:#4d6073; border:0; border-radius:4px}
.reg-combo-tools button:hover:not(:disabled) {background:#f1f5f9}
.reg-listbox {position:absolute; inset:calc(100% + 2px) 0 auto; max-height:200px; overflow-y:auto; background:white; border:1px solid #d2d8e0; border-radius:5px; padding:4px; z-index:6; box-shadow:0 4px 12px #0f172a26}
.reg-listbox.reg-above {inset:auto 0 calc(100% + 2px)}
.reg-listbox>div {padding:6px 8px; border-radius:3px}
.reg-listbox [role=option] {cursor:pointer}
.reg-listbox [role=option]:hover,.reg-listbox [data-active] {background:#edf3fa}
.reg-listbox [aria-selected=true] {font-weight:600}
.reg-input-wrap:has(.reg-native-date)>input:first-child {padding-right:34px}
.reg-field input.reg-native-date {position:absolute; inset:1px 2px 1px auto; width:28px; min-height:0; border:0; background:transparent; color:transparent; padding:0; cursor:pointer}
.reg-native-date::-webkit-datetime-edit {display:none}
.reg-native-date::-webkit-calendar-picker-indicator {cursor:pointer; margin:0; padding:4px; width:18px; height:18px}
.reg-field input:disabled {color:#687380; background:#f4f5f7}
.reg-field small:empty {display:none}
.reg-save-error {color:#991b1b; background:#fff4f4; border:1px solid #fecaca; border-radius:5px; padding:8px 12px}
.reg-field input[aria-invalid=true] {border-color:#b91c1c}
.reg-consent {grid-column:1/-1; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--reg-border); border-radius:10px; background:#f8fafc; font-size:13px}
.reg-consent input[type=checkbox] {appearance:none; width:34px; height:19px; flex:none; border-radius:10px; border:1px solid #8998a8; background:white; position:relative}
.reg-consent input::after {content:''; display:block; position:absolute; left:3px; top:3px; width:11px; height:11px; border-radius:50%; background:#6b7787}
.reg-consent input:checked {background:var(--reg-brand); border-color:var(--reg-brand)}
.reg-consent input:checked::after {left:18px; background:white}
.reg-confirm {width:min(460px,calc(100% - 32px)); border-radius:12px; margin:auto}
.reg-confirm-body {padding:14px 24px}
.reg-confirm-body p {margin:0 0 8px}
.reg-page :is(button,input,select,[tabindex]):focus-visible {outline:2px solid #1761a5; outline-offset:2px}
@media(max-width:767px) {
  .reg-drawer {width:100vw}
  .reg-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
  .reg-tools {gap:10px}
  .reg-controls {gap:6px}
}
@media(max-width:600px) {
  .reg-page {padding:12px}
  .reg-stat {padding:12px}
  .reg-form-grid {grid-template-columns:1fr}
  .reg-tools,.reg-bulk,.reg-chip-row,.reg-builder {padding:10px}
  .reg-search {width:100%; min-width:0}
  .reg-controls {width:100%}
  .reg-controls .reg-btn {padding:5px 8px}
  .reg-pagination {padding:8px 10px; gap:5px; align-items:flex-start; flex-direction:column}
  .reg-pagination>div {align-self:stretch; justify-content:space-between; gap:4px}
  .reg-filter-head {display:none}
  .reg-clause {grid-template-columns:1fr 1fr; border-bottom:1px solid var(--reg-border); padding-bottom:8px}
  .reg-clause>:last-child {grid-column:1/-1}
  .reg-dialog header,.reg-dialog footer {padding:12px 16px}
  .reg-form-body {padding:14px 16px}
  .reg-dialog footer {flex-wrap:wrap}
  .reg-drawer header>div {gap:6px; flex:1; min-width:0}
  .reg-dialog h2 {font-size:17px}
}
