initial commit after split

This commit is contained in:
2026-06-24 01:43:10 +02:00
parent b1d6c0150f
commit 30c11a6dcf
173 changed files with 25380 additions and 0 deletions

View File

@@ -0,0 +1,164 @@
/* Auth gate + titlebar/tenant/help hover refinements */
.public-shell {
grid-template-columns: 58px 1fr;
}
.public-main {
grid-template-rows: 64px 1fr;
}
.icon-rail.compact .brand-mark {
margin-top: 15px;
}
.public-content {
min-height: calc(100vh - 64px);
background:
radial-gradient(circle at 18% 18%, rgba(239, 107, 58, .13), transparent 24rem),
radial-gradient(circle at 78% 14%, rgba(126, 166, 197, .15), transparent 22rem),
var(--bg);
}
.public-landing {
min-height: calc(100vh - 64px);
display: grid;
place-items: center;
padding: 42px;
}
.public-card {
width: min(720px, 100%);
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 42px 48px;
}
.public-kicker {
color: var(--accent);
text-transform: uppercase;
font-weight: 800;
font-size: 13px;
letter-spacing: .08em;
margin-bottom: 14px;
}
.public-card h1 {
margin: 0;
max-width: 620px;
font-size: clamp(30px, 4vw, 46px);
line-height: 1.08;
color: var(--text-strong);
letter-spacing: -.035em;
}
.public-card p {
margin: 18px 0 0;
max-width: 560px;
color: var(--muted);
font-size: 17px;
line-height: 1.55;
}
.public-actions {
margin-top: 28px;
display: flex;
gap: 12px;
}
.public-footnote {
margin-top: 22px;
color: var(--muted);
font-size: 13px;
}
/* Tenant: no field border. Only Titlebar decides whether it is rendered/dropdown. */
.tenant-selector {
position: relative;
height: auto;
min-width: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
padding: 0;
gap: 15px;
}
.tenant-name-button {
border: 0;
background: transparent;
color: var(--text-strong);
display: inline-flex;
align-items: center;
gap: 5px;
font: inherit;
font-weight: 700;
padding: 8px 10px;
margin: -8px -10px;
border-radius: 7px;
cursor: pointer;
transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
/* Help/account should feel button-like only on interaction. */
.titlebar-link,
.account-pill {
padding: 8px 10px;
margin: -8px -10px;
border-radius: 7px;
transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
cursor: pointer;
}
.tenant-name-button:hover,
.titlebar-link:hover,
.account-pill:hover,
.context-menu-wrap:focus-within .account-pill {
background: rgba(0,0,0,.055);
color: var(--text-strong);
box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.dropdown-menu {
animation: dropdown-in .08s ease-out;
padding: 6px;
}
.dropdown-item {
border-radius: 6px;
transition: background-color .12s ease, color .12s ease;
}
.dropdown-item:hover,
.dropdown-item.active {
background: rgba(239, 107, 58, .10);
color: var(--text-strong);
}
.dropdown-item.active {
font-weight: 700;
}
.tenant-menu {
min-width: 230px;
right: inherit;
left: 0;
}
.tenant-menu .dropdown-item {
justify-content: space-between;
}
@keyframes dropdown-in {
from {
opacity: 0;
transform: translateY(-3px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

View File

@@ -0,0 +1,5 @@
.status-badge { display: inline-flex; align-items: center; height: 24px; border-radius: 99px; padding: 0 9px; font-size: 12px; font-weight: 800; background: #e7e4df; color: #666; text-transform: uppercase; }
.status-ready, .status-sent, .status-appended { background: #d6eee9; color: #34796d; }
.status-warning, .status-needs-review, .status-pending { background: #ffedc6; color: #a06b00; }
.status-blocked, .status-failed, .status-failed-permanent { background: #f8d1cc; color: #b13e35; }
.status-queued, .status-sending { background: #d8e8f4; color: #386a90; }

View File

@@ -0,0 +1,629 @@
/* Shared application components: loading indicator, mail-address editor and toggle switch. */
.page-title-with-loader {
display: inline-flex;
align-items: center;
gap: 10px;
}
.loading-indicator {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
vertical-align: middle;
}
.loading-indicator-sm { width: 22px; height: 22px; }
.loading-indicator-md { width: 30px; height: 30px; }
.loading-envelope {
position: relative;
display: inline-block;
width: 18px;
height: 13px;
border: 2px solid #8c8881;
border-radius: 3px;
background: rgba(255,255,255,.7);
animation: loading-envelope-float .74s ease-in-out infinite alternate;
}
.loading-envelope::before,
.loading-envelope::after {
content: "";
position: absolute;
top: 1px;
width: 10px;
height: 10px;
border-top: 2px solid #8c8881;
}
.loading-envelope::before {
left: 1px;
transform: rotate(36deg);
transform-origin: top left;
}
.loading-envelope::after {
right: 1px;
transform: rotate(-36deg);
transform-origin: top right;
}
@keyframes loading-envelope-float {
from { transform: translateY(0) rotate(-3deg); opacity: .62; }
to { transform: translateY(-2px) rotate(3deg); opacity: 1; }
}
.email-address-input {
display: grid;
gap: 10px;
}
.email-chip-list {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
min-height: 34px;
}
.email-chip {
display: inline-flex;
align-items: center;
gap: 7px;
max-width: 100%;
border: 1px solid #c9c5bd;
border-radius: 999px;
background: linear-gradient(#ffffff, #f2f1ef);
box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 1px rgba(0,0,0,.05);
padding: 5px 8px 5px 11px;
color: var(--text-strong);
font-size: 13px;
line-height: 1.2;
}
.email-chip.invalid {
border-color: #c96b63;
background: #f6e3df;
color: #873c35;
}
.email-chip-main {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 700;
}
.email-chip-address {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
font-size: 12px;
}
.email-chip-remove {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border: 0;
border-radius: 999px;
background: rgba(0,0,0,.08);
color: #57534d;
cursor: pointer;
font-size: 14px;
line-height: 1;
padding: 0;
}
.email-chip-remove:hover { background: rgba(0,0,0,.15); }
.email-chip-empty {
color: var(--muted);
font-size: 13px;
}
.email-address-hint {
margin-top: 8px;
color: var(--muted);
font-size: 12px;
line-height: 1.35;
}
.recipient-editor-table th:nth-child(2),
.recipient-editor-table td:nth-child(2) { min-width: 430px; }
.recipient-editor-table th:last-child,
.recipient-editor-table td:last-child { width: 92px; text-align: right; }
.recipient-field-input,
.recipient-attachments-input {
min-width: 150px;
font-size: 12px;
}
.recipient-attachments-input {
min-width: 260px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.card-title-node,
.card-heading-with-loader {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--text-strong);
font-weight: 800;
}
.card-heading-with-loader {
font-size: 18px;
}
/* Mail-style address editor: textarea surface + pills + add dialog. */
.email-address-editor {
position: relative;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 7px;
min-height: 44px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(0,0,0,.035);
padding: 7px 8px;
}
.email-address-editor:focus-within {
border-color: #9bb7d3;
box-shadow: 0 0 0 3px rgba(82, 130, 177, .14), inset 0 1px 0 rgba(255,255,255,.8);
}
.email-address-editor.has-error {
border-color: #c96b63;
box-shadow: 0 0 0 3px rgba(201, 107, 99, .13);
}
.email-address-editor .email-chip-list {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 7px;
min-height: 0;
}
.email-address-textarea {
flex: 1 1 230px;
min-width: 190px;
min-height: 26px;
max-height: 96px;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
resize: none;
overflow: hidden;
padding: 4px 2px;
font: inherit;
line-height: 1.35;
}
.email-address-textarea:focus {
outline: none;
box-shadow: none;
}
.email-address-input.has-add-button .email-address-editor {
padding-right: 42px;
}
.email-address-plus {
position: absolute;
top: 8px;
right: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 1px solid #c7c2b8;
border-radius: 999px;
background: linear-gradient(#fff, #f0efec);
color: #4f4b46;
cursor: pointer;
font-size: 19px;
font-weight: 800;
line-height: 1;
padding: 0;
}
.email-address-plus:hover {
border-color: #aaa49a;
background: linear-gradient(#fff, #e9e7e3);
}
.email-address-popover {
position: absolute;
z-index: 12;
top: calc(100% + 7px);
right: 0;
width: min(360px, calc(100vw - 64px));
display: grid;
gap: 10px;
border: 1px solid var(--line-dark);
border-radius: 8px;
background: #fff;
box-shadow: var(--shadow-popover);
padding: 14px;
}
.email-address-popover h4 {
margin: 0;
color: var(--text-strong);
font-size: 15px;
}
.email-address-popover label {
display: grid;
gap: 5px;
color: var(--muted);
font-size: 12px;
font-weight: 700;
}
.email-address-popover input {
font-size: 14px;
}
.email-address-suggestions {
display: grid;
gap: 4px;
max-width: 560px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: 0 8px 24px rgba(0,0,0,.08);
padding: 6px;
}
.email-address-suggestions button {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--text-strong);
cursor: pointer;
padding: 7px 8px;
text-align: left;
}
.email-address-suggestions button:hover {
background: var(--panel-soft);
}
.email-address-suggestions small {
color: var(--muted);
}
.email-address-input.compact {
min-width: 420px;
}
.email-address-input.compact .email-address-editor {
min-height: 40px;
}
.email-address-input.compact .email-address-textarea {
flex-basis: 180px;
min-width: 150px;
}
.email-address-input.disabled .email-address-editor {
background: var(--panel-soft);
}
.email-address-input.disabled .email-address-plus,
.email-address-input.disabled .email-address-textarea,
.email-address-input.disabled .email-address-suggestions,
.email-address-input.disabled .email-address-popover {
display: none;
}
/* Bootstrap-like switch controls without importing Bootstrap. */
.toggle-switch-row {
display: flex;
align-items: center;
gap: 10px;
min-height: 42px;
color: var(--text);
cursor: pointer;
font-weight: 700;
}
.toggle-switch-row.disabled {
cursor: default;
opacity: .72;
}
.toggle-switch-input {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.toggle-switch-track {
position: relative;
flex: 0 0 auto;
width: 42px;
height: 24px;
border: 1px solid #aeb4bb;
border-radius: 999px;
background: #cfd4da;
box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.toggle-switch-thumb {
position: absolute;
top: 2px;
left: 2px;
width: 18px;
height: 18px;
border-radius: 999px;
background: #fff;
box-shadow: 0 1px 2px rgba(0,0,0,.22);
transition: transform .16s ease;
}
.toggle-switch-input:checked + .toggle-switch-track {
border-color: #0d6efd;
background: #0d6efd;
}
.toggle-switch-input:checked + .toggle-switch-track .toggle-switch-thumb {
transform: translateX(18px);
}
.toggle-switch-input:focus-visible + .toggle-switch-track {
box-shadow: 0 0 0 3px rgba(13,110,253,.2), inset 0 1px 2px rgba(0,0,0,.12);
}
.toggle-switch-input:disabled + .toggle-switch-track {
filter: grayscale(.15);
opacity: .7;
}
.toggle-switch-copy {
display: grid;
gap: 2px;
}
.toggle-switch-label {
color: var(--text-strong);
}
.toggle-switch-help {
color: var(--muted);
font-size: 12px;
font-weight: 500;
line-height: 1.3;
}
@media (max-width: 900px) {
.email-address-input.compact { min-width: 260px; }
.email-address-input.has-add-button .email-address-editor { padding-right: 39px; }
.email-address-popover {
left: 0;
right: auto;
width: min(340px, calc(100vw - 48px));
}
}
/* Reusable inline help markers for form labels and compact contextual hints. */
.field-label {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.field-label-text {
min-width: 0;
}
.inline-help {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
outline: none;
}
.inline-help-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
border-radius: 999px;
color: #686560;
background: var(--line-dark);
font-size: 11px;
font-weight: 800;
line-height: 1;
cursor: context-menu;
}
.inline-help:focus-visible .inline-help-mark {
box-shadow: var(--focus-ring);
}
.inline-help-bubble {
position: absolute;
z-index: 40;
left: 50%;
bottom: calc(100% + 9px);
width: max-content;
max-width: min(320px, calc(100vw - 48px));
transform: translate(-50%, 3px);
border: 1px solid var(--line-dark);
border-radius: 7px;
background: var(--surface);
box-shadow: var(--shadow-popover);
color: var(--text);
font-size: 12px;
font-weight: 500;
line-height: 1.4;
padding: 9px 10px;
white-space: normal;
visibility: hidden;
opacity: 0;
pointer-events: none;
transition: opacity .14s ease .35s, transform .14s ease .35s, visibility 0s linear .49s;
}
.inline-help-bubble::after {
content: "";
position: absolute;
left: 50%;
top: 100%;
width: 9px;
height: 9px;
border-right: 1px solid var(--line-dark);
border-bottom: 1px solid var(--line-dark);
background: var(--surface);
transform: translate(-50%, -5px) rotate(45deg);
}
.inline-help:hover .inline-help-bubble,
.inline-help:focus-within .inline-help-bubble {
visibility: visible;
opacity: 1;
transform: translate(-50%, 0);
transition-delay: .35s, .35s, .35s;
}
.field-with-action {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
}
.field-with-action input,
.field-with-action select,
.field-with-action textarea {
flex: 1 1 auto;
min-width: 0;
}
.field-with-action button,
.field-with-action .button {
flex: 0 0 auto;
white-space: nowrap;
}
.loading-frame {
position: relative;
}
.loading-frame.is-loading {
min-height: 120px;
}
.loading-frame.is-loading > :not(.loading-frame-overlay) {
pointer-events: none;
user-select: none;
}
.loading-frame-overlay {
position: absolute;
inset: 0;
z-index: 30;
display: grid;
place-items: center;
min-height: 120px;
padding: 1.25rem;
border-radius: var(--radius-lg, 18px);
background: rgba(255, 255, 255, 0.00);
backdrop-filter: blur(1.5px);
margin: -10px;
}
.loading-frame-panel {
display: inline-flex;
align-items: center;
gap: 0.65rem;
padding: 0.75rem 1rem;
border: 1px solid var(--border-soft, rgba(15, 23, 42, 0.12));
border-radius: 999px;
color: var(--text, #172033);
background: rgba(255, 255, 255, 0.86);
box-shadow: var(--shadow-soft, 0 10px 28px rgba(15, 23, 42, 0.12));
font-size: 0.9rem;
font-weight: 600;
}
/* Collapsible cards */
.card-collapsible .card-header {
gap: 12px;
}
.card-collapsible .card-actions {
align-items: center;
}
.card-collapse-toggle {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border: 1px solid #c9c3b9;
border-radius: 999px;
background: linear-gradient(#ffffff, #f1efeb);
color: #4f4a43;
cursor: pointer;
box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 1px rgba(0,0,0,.05);
transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card-collapse-toggle:hover {
border-color: #aaa299;
background: linear-gradient(#ffffff, #e8e5df);
box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 2px 5px rgba(0,0,0,.08);
}
.card-collapse-toggle:focus-visible {
outline: 3px solid rgba(82, 130, 177, .22);
outline-offset: 2px;
}
.card-collapse-toggle svg {
transform: rotate(-180deg);
transition: transform .22s ease;
}
.card-collapsible.is-collapsed .card-collapse-toggle svg {
transform: none;
}
.card-collapse-region {
display: block;
width: 100%;
min-width: 0;
}
.card-collapsible.is-collapsed .card-collapse-region {
display: none;
}
.card-collapse-region > .card-body {
width: 100%;
min-width: 0;
}
@media (prefers-reduced-motion: reduce) {
.card-collapse-toggle,
.card-collapse-toggle svg,
.card-collapse-region {
transition: none;
}
}
/* Reusable dismissible page alerts */
.alert-dismissible {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
position: relative;
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.alert-dismissible .alert-message {
min-width: 0;
flex: 1 1 auto;
}
.alert-floating-stack {
position: fixed;
top: 131px;
left: 50%;
z-index: 1200;
display: grid;
gap: 10px;
width: min(640px, calc(100vw - 32px));
transform: translateX(-50%);
pointer-events: none;
}
.alert-floating {
position: relative;
top: auto;
width: 100%;
margin: 0;
border: 1px solid rgba(15, 23, 42, 0.14);
border-radius: 12px;
box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
pointer-events: auto;
}
.alert-dismiss {
border: 0;
background: transparent;
color: currentColor;
opacity: 0.78;
cursor: pointer;
line-height: 1;
padding: 2px;
border-radius: 999px;
flex: 0 0 auto;
}
.alert-dismiss:hover,
.alert-dismiss:focus-visible {
opacity: 1;
background: rgba(255, 255, 255, 0.45);
}

View File

@@ -0,0 +1,165 @@
/* Shared overlay, modal and Dialog component styles. */
.overlay-backdrop {
position: fixed;
inset: 0;
z-index: 9000;
display: grid;
place-items: center;
padding: 24px;
background: rgba(37, 40, 42, 0.38);
}
.modal-panel {
width: min(560px, 100%);
max-height: calc(100vh - 48px);
overflow: hidden;
display: flex;
flex-direction: column;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}
.modal-header {
min-height: 58px;
display: flex;
align-items: center;
flex: 0 0 auto;
padding: 0 22px;
border-bottom: 1px solid var(--line);
}
.modal-header h2 {
margin: 0;
color: var(--text-strong);
font-size: 18px;
}
.modal-close {
margin-left: auto;
border: 0;
background: transparent;
color: var(--muted);
cursor: pointer;
font-size: 22px;
line-height: 1;
}
.modal-body {
min-height: 0;
overflow: auto;
padding: 22px;
}
.modal-footer {
flex: 0 0 auto;
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 16px 22px;
border-top: 1px solid var(--line);
background: var(--panel-soft);
}
.dialog-backdrop {
position: fixed;
inset: 0;
z-index: 12000;
display: grid;
place-items: center;
padding: 1.5rem;
background: rgba(15, 23, 42, 0.36);
backdrop-filter: blur(2px);
}
.dialog-panel {
width: min(560px, 100%);
max-height: min(760px, calc(100vh - 3rem));
overflow: hidden;
display: flex;
flex-direction: column;
border: 1px solid var(--line, rgba(15, 23, 42, 0.14));
border-radius: var(--radius-lg, 18px);
background: var(--surface, #fff);
color: var(--text, #172033);
box-shadow: var(--shadow-strong, 0 24px 64px rgba(15, 23, 42, 0.25));
}
.dialog-header {
flex: 0 0 auto;
min-height: 58px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 14px 18px;
border-bottom: 1px solid var(--line);
background: var(--bar, #f5f4f1);
}
.dialog-title {
margin: 0;
color: var(--text-strong, #111827);
font-size: 1.05rem;
}
.dialog-close {
width: 2rem;
height: 2rem;
border: 0;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
color: var(--muted, #5f6b7a);
cursor: pointer;
font-size: 1.5rem;
line-height: 1;
}
.dialog-close:hover,
.dialog-close:focus-visible {
background: rgba(15, 23, 42, 0.07);
color: var(--text-strong, #111827);
outline: none;
}
.dialog-close:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.dialog-body {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
padding: 20px;
color: var(--text, #172033);
}
.dialog-footer {
flex: 0 0 auto;
display: flex;
justify-content: flex-end;
gap: 0.6rem;
padding: 12px 18px;
border-top: 1px solid var(--line);
background: var(--bar, #f5f4f1);
}
.confirm-dialog {
width: min(460px, calc(100vw - 40px));
}
.confirm-dialog > .dialog-header,
.confirm-dialog > .dialog-footer {
background: var(--panel, #fff);
}
.confirm-dialog p {
margin: 0;
color: var(--muted, #5f6b7a);
line-height: 1.5;
}

View File

@@ -0,0 +1,12 @@
.form-grid { display: grid; gap: 18px; }
.form-grid.compact { grid-template-columns: 1fr 1fr; }
.form-field { display: grid; gap: 7px; }
.form-label { font-weight: 700; font-size: 13px; color: #6b6863; }
.form-help { font-size: 12px; color: var(--muted); }
input, select, textarea { border: 1px solid var(--line); border-radius: 5px; background: #fff; font: inherit; padding: 10px 12px; color: var(--text); width: 100%; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
textarea { resize: vertical; }
.btn { border: 1px solid var(--line-dark); border-radius: 4px; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; background: #f8f8f7; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.btn-primary { background: var(--green); border-color: #5aa99b; color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-danger { background: var(--red); color: #fff; border-color: #c94d43; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

144
webui/src/styles/layout.css Normal file
View File

@@ -0,0 +1,144 @@
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 58px 1fr; }
.icon-rail { background: var(--rail-bg); color: #c7c6c0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; box-shadow: inset -1px 0 rgba(0,0,0,.35); z-index: 1000; }
.brand-mark { width: 34px; height: 34px; margin: 15px 0 14px; border-radius: 50%; background: conic-gradient(#ef6b3a 0 20%, #f2c66d 0 40%, #80b9b0 0 60%, #7e9fc0 0 80%, #56545f 0); color: transparent; font-size: 0; position: relative; }
.brand-mark::after { position: absolute;
top: 9px;
left: 9px;
width: 15px;
height: 15px;
border-radius: 50%;
content: "";
background-color: var(--rail-bg);
}
.icon-nav { width: 100%; display: flex; flex-direction: column; }
.icon-nav-item { height: 52px; display: grid; place-items: center; color: #a7a49f; border-left: 3px solid transparent; text-decoration: none; }
.icon-nav-item:hover, .icon-nav-item.active { background: var(--rail-bg-active); color: #fff; border-left-color: var(--accent); }
.app-main { min-width: 0; display: grid; grid-template-rows: 64px 51px 1fr; min-height: 100vh; }
.titlebar { background: #fbfbfa; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 18px; gap: 36px; z-index: 100; box-shadow: 0px 0px 10px 0px darkgrey; }
.tenant-selector { height: 40px; min-width: 210px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: flex; align-items: center; padding: 0 12px; gap: 5px; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.05); }
.tenant-label, .tenant-caret, .muted { color: var(--muted); }
.titlebar-spacer { flex: 1; }
.titlebar-link, .account-pill { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: inherit; }
.account-pill { color: var(--text); }
.api-mini { display: flex; gap: 6px; }
.api-mini input { width: 155px; height: 30px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 8px; }
.breadcrumb-bar { background: var(--bar); border-bottom: 1px solid var(--line-dark); display: flex; align-items: center; padding: 0 22px; box-shadow: 0px 0px 10px 0px darkgrey; z-index: 90; }
.breadcrumbs { display: flex; gap: 6px; text-transform: uppercase; font-weight: 700; font-size: 13px; color: #615f5c; }
.crumb { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb-actions { margin-left: auto; display: flex; gap: 10px; }
.ghost-button { border: 0; background: transparent; color: #77736d; font-weight: 700; }
.workspace { height: calc(100vh - 112px); display: grid; grid-template-columns: 198px 1fr; }
.section-sidebar { background: #c8c4bf; border-right: 1px solid var(--line-dark); padding: 18px 0; border-left: 3px solid #afada9; box-shadow: 0px 0px 10px 0px darkgrey; z-index: 80; overflow-y: scroll; }
.section-title { font-size: 12px; font-weight: 800; color: #7f7b75; padding: 0 22px 14px; letter-spacing: .06em; }
.section-title-lower { margin-top: 28px; }
.section-link { width: calc(100% + 3px); height: 48px; border: 0; padding: 0 10px 0 22px; background: transparent; text-align: left; color: #686560; font: inherit; cursor: pointer; margin-left: -3px; }
.section-link:hover, .section-link.active { background: rgba(255,255,255,.35); color: #3e3e3f; }
.section-link.active { border-left: 3px solid var(--accent); font-weight: 700; }
.section-link.subtle { font-size: 13px; }
.workspace-content { min-width: 0; max-width: 100%; overflow: auto; }
.content-pad { min-width: 0; max-width: 100%; box-sizing: border-box; padding: 28px 34px; }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { margin: 0; font-size: 26px; color: var(--text-strong); font-weight: 600; }
.page-heading p { margin: 6px 0 0; color: var(--muted); }
.page-heading.split { display: flex; align-items: center; justify-content: space-between; }
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: scroll; }
.card-header { min-height: 56px; padding: 0 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; background: var(--panel-header); border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.card-header h2 { margin: 0; font-size: 16px; color: var(--text-strong); }
.card-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap;}
.card-body { padding: 22px 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-grid.inside { margin: 14px 0; }
.metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--line-dark); }
.metric-good { border-top-color: var(--green); } .metric-warning { border-top-color: var(--amber); } .metric-danger { border-top-color: var(--red); } .metric-info { border-top-color: var(--blue); }
.metric-label { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .05em; }
.metric-value { margin-top: 7px; font-size: 30px; color: var(--text-strong); font-weight: 700; }
.metric-detail { margin-top: 4px; color: var(--muted); font-size: 13px; }
.dashboard-grid, .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wizard-page { min-height: calc(100vh - 112px); display: grid; place-items: start center; padding: 42px; }
.wizard-card { width: min(980px, 100%); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); display: grid; grid-template-columns: 290px 1fr; overflow: hidden; }
.wizard-body { background: var(--panel-soft); padding: 28px; min-height: 620px; }
.wizard-heading { display: flex; justify-content: space-between; margin-bottom: 18px; }
.wizard-heading h1 { margin: 0; }
.save-state { color: var(--green); font-size: 13px; font-weight: 700; }
.wizard-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.stepper { list-style: none; padding: 22px 0; margin: 0; background: #f6f5f3; border-right: 1px solid var(--line); }
.step button { width: 100%; min-height: 72px; border: 0; background: transparent; display: flex; gap: 14px; text-align: left; padding: 12px 20px; color: #999; cursor: pointer; }
.step.active button { background: #fff; color: var(--text-strong); }
.step-number { width: 32px; height: 32px; border-radius: 50%; background: #d8d6d2; color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.step.active .step-number { background: var(--accent); }
.step small { display: block; margin-top: 3px; color: var(--muted); }
.step-intro h2 { margin: 0; color: var(--text-strong); }
.step-intro p { margin-top: 6px; color: var(--muted); }
.button-row { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert.warning { background: #ffe1a3; } .alert.danger { background: #f3c5be; }
.table-like { border: 1px solid var(--line); }
.table-row-link { display: grid; grid-template-columns: 1fr auto; text-decoration: none; color: var(--text); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-row-link:hover { background: var(--panel-soft); }
.mono-small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.code-panel { background: #292929; color: #f1f1f1; padding: 18px; border-radius: 4px; overflow: auto; }
@media (max-width: 900px) {
.api-mini { display: none; }
.workspace { grid-template-columns: 1fr; }
.section-sidebar { display: none; }
.wizard-card { grid-template-columns: 1fr; }
.metric-grid, .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
}
/* Layout additions: login and help dropdown */
.tenant-selector.disabled { opacity: .86; cursor: default; }
.context-menu-wrap { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-menu); padding: 8px; z-index: 5000; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.dropdown-item { width: 100%; min-height: 34px; border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 4px; text-align: left; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
.dropdown-item:hover { background: var(--panel-soft); color: var(--text-strong); }
.dropdown-item small { margin-left: auto; color: var(--muted); }
.account-menu { min-width: 260px; }
.account-menu-header { padding: 8px 9px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-menu-header strong { display: block; color: var(--text-strong); }
.account-menu-header span { color: var(--muted); font-size: 13px; }
.login-hint { background: #f6f5f3; border: 1px solid var(--line); padding: 10px 12px; border-radius: 4px; color: var(--muted); font-size: 13px; }
.help-panel-section { margin-bottom: 16px; }
.help-panel-section h3 { margin: 0 0 7px; color: var(--text-strong); }
.about-logo { width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(#ef6b3a 0 20%, #f2c66d 0 40%, #80b9b0 0 60%, #7e9fc0 0 80%, #56545f 0); margin-bottom: 12px; }
.kbd { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; background: #fff; font-size: 12px; font-weight: 700; color: #666; }
.titlebar .tenant-selector strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Campaign workspace polish */
.crumb-link { color: inherit; text-decoration: none; border-radius: 4px; padding: 4px 5px; margin: -4px -5px; }
.crumb-link:hover { background: rgba(255,255,255,.35); color: var(--text-strong); }
.compact-actions { margin: 0; align-items: center; }
.below-grid { margin-top: 18px; }
.detail-list { display: grid; gap: 12px; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.detail-list dd { margin: 0; min-width: 0; }
.next-action-card { border-left: 4px solid var(--blue); padding-left: 16px; }
.next-action-card h2 { margin: 0; color: var(--text-strong); font-size: 19px; }
.next-action-card p { margin: 8px 0 0; color: var(--muted); }
.next-action-good { border-left-color: var(--green); }
.next-action-warning { border-left-color: var(--amber); }
.next-action-info { border-left-color: var(--blue); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.summary-tile { background: var(--panel-soft); border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.summary-tile span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.summary-tile strong { display: block; margin-top: 6px; color: var(--text-strong); font-size: 24px; }
.empty-state { min-height: 220px; display: grid; place-items: center; text-align: center; padding: 32px; }
.empty-state h2 { margin: 0; color: var(--text-strong); }
.empty-state p { max-width: 520px; margin: 8px auto 18px; color: var(--muted); }
@media (max-width: 900px) {
.page-heading.split { align-items: flex-start; flex-direction: column; }
.summary-grid, .detail-list div { grid-template-columns: 1fr; }
}
/* Side rail: settings lives as the bottom utility entry. */
.icon-rail-bottom {
width: 100%;
margin-top: auto;
padding: 12px 0 20px;
}
.icon-rail-bottom .icon-nav-item {
width: 100%;
}

View File

@@ -0,0 +1,124 @@
.retention-policy-manager {
display: grid;
gap: 18px;
}
.retention-policy-target-row {
max-width: 520px;
}
.retention-policy-editor {
display: grid;
gap: 18px;
}
.retention-policy-description {
margin: 0;
}
.retention-policy-section {
display: grid;
gap: 12px;
padding-top: 4px;
}
.retention-policy-section h3 {
margin: 0;
color: var(--text-strong);
}
.retention-policy-table {
display: grid;
gap: 0;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
overflow: hidden;
}
.retention-policy-row {
display: grid;
grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1fr);
align-items: center;
gap: 14px;
padding: 12px 14px;
background: var(--surface);
border-top: 1px solid var(--line);
}
.retention-policy-table.with-allow-column .retention-policy-row {
grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1fr) minmax(170px, 0.65fr);
}
.retention-policy-row:first-child {
border-top: 0;
}
.retention-policy-row-header {
background: var(--surface-subtle);
color: var(--muted);
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.retention-policy-field-label {
display: grid;
gap: 3px;
min-width: 0;
}
.retention-policy-field-label strong {
color: var(--text-strong);
}
.retention-policy-field-label small {
color: var(--muted);
}
.retention-run-card .admin-json-preview {
margin-top: 14px;
}
.retention-policy-effective {
border-top: 1px solid var(--line);
padding-top: 14px;
}
.retention-policy-effective-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.retention-policy-effective-grid div {
display: grid;
gap: 3px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: var(--surface-subtle);
}
.retention-policy-effective-grid span {
color: var(--muted);
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
}
.retention-policy-effective-grid strong {
color: var(--text-strong);
}
@media (max-width: 900px) {
.retention-policy-effective-grid,
.retention-policy-row,
.retention-policy-table.with-allow-column .retention-policy-row {
grid-template-columns: 1fr;
}
.retention-policy-row-header {
display: none;
}
}

712
webui/src/styles/tables.css Normal file
View File

@@ -0,0 +1,712 @@
/* Legacy mapping / rule tables used by early wizard surfaces. */
.mapping-table {
margin-top: 18px;
border: 1px solid var(--line);
border-radius: 6px;
overflow: hidden;
}
.mapping-header,
.mapping-row {
display: grid;
grid-template-columns: 1.3fr 1.3fr .8fr 1fr .6fr;
align-items: center;
}
.mapping-header {
background: var(--bar);
color: #6b6863;
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.mapping-header span,
.mapping-row span {
padding: 12px 14px;
border-right: 1px solid var(--line);
}
.mapping-row {
background: #fff;
border-top: 1px solid var(--line);
}
.attachment-rule-card {
margin: 18px 0;
background: #fff;
border: 1px solid var(--line);
border-radius: 6px;
padding: 18px;
}
.attachment-rule-header {
display: flex;
justify-content: space-between;
margin-bottom: 16px;
}
/* Application data tables, visually aligned with the SaaS-style reference table. */
.app-table-wrap {
margin: -22px -24px;
overflow-x: auto;
}
.app-table {
width: 100%;
border-collapse: collapse;
background: #fff;
}
.app-table thead {
background: var(--bar);
color: #625f5a;
font-size: 12px;
letter-spacing: .04em;
text-transform: uppercase;
}
.app-table th {
height: 40px;
padding: 0 16px;
border-right: 1px solid var(--line-dark);
font-weight: 800;
text-align: left;
white-space: nowrap;
}
.app-table th:last-child { border-right: 0; }
.app-table td {
min-height: 56px;
padding: 16px;
border-top: 1px solid var(--line);
vertical-align: middle;
}
.app-table tbody tr:hover { background: var(--panel-soft); }
.table-primary-link,
.table-action-link {
color: var(--text-strong);
font-weight: 800;
text-decoration: none;
}
.table-primary-link:hover,
.table-action-link:hover { text-decoration: underline; }
.table-subline {
margin-top: 4px;
color: var(--muted);
font-size: 13px;
}
/* Campaign list table; the containing card/sticky behavior lives in campaign-workspace.css. */
.campaign-table-wrap {
margin: 0;
overflow-x: auto;
overflow-y: visible;
}
.campaign-table {
table-layout: fixed;
}
.campaign-table thead tr {
box-shadow: 0 12px 16px -18px rgba(45, 43, 40, .8);
}
.campaign-table thead th {
background: var(--bar);
border-right: 1px solid var(--line-dark);
}
.campaign-table th:nth-child(1),
.campaign-table td:nth-child(1) { width: auto; min-width: 360px; }
.campaign-table th:nth-child(2),
.campaign-table td:nth-child(2) { width: 150px; }
.campaign-table th:nth-child(3),
.campaign-table td:nth-child(3) { width: 230px; }
.campaign-table th:nth-child(4),
.campaign-table td:nth-child(4) { width: 230px; }
.campaign-table th:nth-child(5),
.campaign-table td:nth-child(5) { width: 105px; text-align: right; }
.campaign-table td.updated-cell {
color: #696660;
font-size: 12px;
line-height: 1.35;
white-space: nowrap;
}
.campaign-table td.version-cell {
overflow: hidden;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Reusable data grid */
.data-grid-shell {
width: 100%;
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--surface);
}
.data-grid-scroll-region {
width: 100%;
max-width: 100%;
min-width: 0;
overflow: auto;
scrollbar-gutter: stable;
}
.card-body > .data-grid-shell:only-child {
margin: -22px -24px;
width: calc(100% + 48px);
border: 0;
border-radius: 0;
}
.data-grid-container {
height: 100%;
}
.data-grid {
display: grid;
align-items: stretch;
min-width: 0;
}
.data-grid-fit-container,
.data-grid-fit-content,
.data-grid-has-flex,
.data-grid-fixed-only {
max-width: none;
}
/* initialFit controls only the first layout. resizeBehavior controls the
persistent width invariant after that initial measurement. */
.data-grid-resize-free {
width: max-content;
min-width: 0;
}
.data-grid-resize-free.data-grid-initial-fit-container {
min-width: 100%;
}
.data-grid-resize-cover,
.data-grid-resize-constrained {
width: 100%;
min-width: 100%;
}
.data-grid-buffer-cell {
min-width: 0;
max-width: none;
padding: 0;
gap: 0;
border-right: 0;
pointer-events: none;
}
.data-grid-container .data-grid {
min-height: 100%;
}
.data-grid-cell {
min-width: 0;
max-width: 100%;
overflow: hidden;
padding: 11px 12px;
border-right: 1px solid rgba(189, 184, 176, 0.32);
border-bottom: 1px solid var(--border-soft, var(--line));
background: var(--surface);
display: flex;
align-items: center;
gap: 8px;
}
.data-grid-cell:last-child {
border-right: 0;
}
.data-grid-cell > * {
min-width: 0;
max-width: 100%;
}
.data-grid-body-cell.is-last-row {
border-bottom: 0;
}
.data-grid-header-cell {
position: sticky;
top: 0;
z-index: 4;
background: var(--bar);
border-bottom: 1px solid var(--line-dark);
color: #625f5a;
font-size: 12px;
font-weight: 800;
letter-spacing: .04em;
text-transform: uppercase;
box-shadow: none;
}
.data-grid-body-cell {
color: var(--text);
}
.data-grid-body-cell.data-grid-row-odd {
background: #fbfaf8;
}
.data-grid-body-cell.data-grid-row-even {
background: var(--surface);
}
.data-grid-body-cell.align-center,
.data-grid-header-cell.align-center {
justify-content: center;
text-align: center;
}
.data-grid-body-cell.align-right,
.data-grid-header-cell.align-right {
justify-content: flex-end;
text-align: right;
}
.data-grid-header-button {
all: unset;
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 7px;
flex: 1 1 auto;
min-width: 0;
color: inherit;
cursor: default;
}
.data-grid-header-button span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.data-grid-header-label {
display: inline-flex;
align-items: center;
flex: 1 1 auto;
min-width: 0;
}
.data-grid-header-label > span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.data-grid-header-cell.is-sortable .data-grid-header-button {
cursor: pointer;
}
.data-grid-header-cell.is-sorted .data-grid-header-button {
color: var(--text-strong);
}
.data-grid-resize-handle,
.data-grid-filter-trigger {
border: 0;
background: transparent;
color: rgba(98, 95, 90, .68);
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
border-radius: 999px;
}
.data-grid-resize-handle {
cursor: col-resize;
width: 16px;
align-self: stretch;
}
.data-grid-filter-trigger {
width: 24px;
height: 24px;
cursor: pointer;
}
.data-grid-filter-trigger:hover,
.data-grid-filter-trigger:focus-visible,
.data-grid-filter-trigger.is-open {
color: var(--text-strong);
background: rgba(255, 255, 255, .45);
outline: none;
}
.data-grid-filter-trigger.has-filter {
color: var(--text-strong);
background: rgba(255, 255, 255, .62);
box-shadow: inset 0 0 0 1px rgba(98, 95, 90, .24);
}
.data-grid-filter-popover {
position: fixed;
z-index: 12000;
border: 1px solid var(--line-dark);
border-radius: var(--radius-sm);
background: var(--surface);
box-shadow: var(--shadow-menu);
padding: 12px;
color: var(--text);
}
.data-grid-filter-popover-header {
display: flex;
align-items: center;
gap: 12px;
justify-content: space-between;
margin-bottom: 10px;
color: var(--text-strong);
}
.data-grid-filter-popover-header strong {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.data-grid-filter-popover-header button,
.data-grid-filter-input-wrap button {
border: 0;
background: transparent;
color: var(--muted);
cursor: pointer;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.data-grid-filter-popover-header button:hover,
.data-grid-filter-input-wrap button:hover,
.data-grid-filter-popover-header button:focus-visible,
.data-grid-filter-input-wrap button:focus-visible {
color: var(--text-strong);
background: var(--panel-soft);
outline: none;
}
.data-grid-filter-stack {
display: grid;
gap: 10px;
}
.data-grid-filter-field {
display: grid;
gap: 5px;
font-size: 12px;
color: var(--muted);
font-weight: 700;
}
.data-grid-filter-field input,
.data-grid-filter-field select {
width: 100%;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: #fff;
color: var(--text);
font: inherit;
font-weight: 500;
padding: 8px 10px;
}
.data-grid-filter-field input:focus,
.data-grid-filter-field select:focus {
outline: none;
box-shadow: var(--focus-ring);
border-color: var(--blue);
}
.data-grid-filter-input-wrap {
position: relative;
}
.data-grid-filter-input-wrap input {
padding-right: 32px;
}
.data-grid-filter-input-wrap button {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
width: 22px;
height: 22px;
}
.data-grid-empty {
grid-column: 1 / -1;
padding: 20px;
color: var(--muted);
background: var(--surface);
border-bottom: 1px solid var(--line);
}
.data-grid-cell.is-sticky-start,
.data-grid-cell.is-sticky-end {
position: sticky;
z-index: 2;
background-clip: padding-box;
}
.data-grid-cell.is-sticky-start {
border-right: 1px solid var(--line-dark);
box-shadow: 8px 0 14px -14px rgba(45, 43, 40, .6);
}
.data-grid-cell.is-sticky-end {
border-left: 1px solid var(--line-dark);
box-shadow: -8px 0 14px -14px rgba(45, 43, 40, .6);
}
.data-grid-header-cell.is-sticky-start,
.data-grid-header-cell.is-sticky-end {
z-index: 5;
border-bottom: 1px solid var(--line-dark);
background: var(--bar);
}
.data-grid-body-cell.current-version-row,
.data-grid-body-cell.current-recipient-row,
.data-grid-body-cell.current-row {
font-weight: 700;
}
/* List-valued DataGrid columns and checkbox filters. */
.data-grid-list-select {
width: 100%;
min-width: 0;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: #fff;
color: var(--text);
font: inherit;
padding: 6px 28px 6px 8px;
}
.data-grid-list-select:focus {
outline: none;
border-color: var(--blue);
box-shadow: var(--focus-ring);
}
.data-grid-list-filter {
display: grid;
gap: 10px;
}
.data-grid-list-filter-actions {
display: flex;
align-items: center;
gap: 8px;
}
.data-grid-list-filter-actions button {
border: 0;
background: transparent;
color: var(--blue);
padding: 0;
font: inherit;
font-size: 12px;
font-weight: 750;
cursor: pointer;
}
.data-grid-list-filter-actions button:hover,
.data-grid-list-filter-actions button:focus-visible {
color: var(--text-strong);
text-decoration: underline;
outline: none;
}
.data-grid-list-filter-options {
max-height: 230px;
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: #fff;
}
.data-grid-list-filter-row {
display: flex;
align-items: center;
gap: 8px;
min-height: 38px;
padding: 6px 8px;
border-bottom: 1px solid var(--line);
}
.data-grid-list-filter-row:last-child {
border-bottom: 0;
}
.data-grid-list-filter-row > label {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 1 1 auto;
cursor: pointer;
}
.data-grid-list-filter-row input[type="checkbox"] {
width: 16px;
height: 16px;
margin: 0;
flex: 0 0 auto;
}
.data-grid-list-option-remove,
.data-grid-list-option-add button {
border: 0;
border-radius: 999px;
background: transparent;
color: var(--muted);
width: 28px;
height: 28px;
display: inline-grid;
place-items: center;
cursor: pointer;
}
.data-grid-list-option-remove:hover,
.data-grid-list-option-remove:focus-visible,
.data-grid-list-option-add button:hover,
.data-grid-list-option-add button:focus-visible {
color: var(--text-strong);
background: var(--panel-soft);
outline: none;
}
.data-grid-list-option-add {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 6px;
}
.data-grid-list-option-add input {
width: 100%;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: #fff;
color: var(--text);
font: inherit;
padding: 8px 10px;
}
/* Consistent row-level collection actions for editable DataGrid tables. */
.data-grid-row-actions {
display: grid;
grid-template-columns: repeat(4, 36px);
align-items: center;
justify-content: end;
gap: 4px;
width: 100%;
}
.data-grid-row-action.btn {
display: inline-grid;
place-items: center;
width: 36px;
height: 36px;
min-width: 36px;
padding: 0;
}
.data-grid-row-action.btn:disabled {
opacity: .45;
}
.data-grid-empty-message {
color: var(--muted);
min-height: 64px;
}
.data-grid-empty-action-cell {
justify-content: flex-end;
min-height: 64px;
}
.data-grid-empty-row-actions {
justify-content: end;
}
.data-grid-pagination {
min-height: 52px;
padding: 8px 12px;
border-top: 1px solid var(--border-soft, var(--line));
background: var(--panel);
display: flex;
align-items: center;
justify-content: flex-end;
gap: 18px;
color: var(--muted);
font-size: 13px;
}
.data-grid-pagination-summary {
margin-right: auto;
font-variant-numeric: tabular-nums;
}
.data-grid-page-size,
.data-grid-page-controls {
display: grid;
align-items: center;
gap: 8px;
grid-auto-flow: column;
}
.data-grid-page-size select {
min-width: 72px;
height: 34px;
}
.data-grid-page-controls > span {
min-width: 88px;
text-align: center;
font-variant-numeric: tabular-nums;
}
.data-grid-page-controls button {
width: 32px;
height: 32px;
border: 1px solid var(--border);
border-radius: var(--radius-xs, 5px);
background: var(--surface);
color: var(--text);
display: inline-grid;
place-items: center;
}
.data-grid-page-controls button:hover:not(:disabled),
.data-grid-page-controls button:focus-visible {
border-color: var(--line-dark);
background: var(--surface-strong, #f5f3ef);
}
.data-grid-page-controls button:disabled {
opacity: .42;
cursor: not-allowed;
}
@media (max-width: 700px) {
.data-grid-pagination {
flex-wrap: wrap;
justify-content: space-between;
}
.data-grid-pagination-summary {
width: 100%;
}
}

View File

@@ -0,0 +1,50 @@
:root {
--rail-bg: #25282a;
--rail-bg-active: #1c1e20;
--accent: #ef6b3a;
--accent-soft: rgba(239, 107, 58, .35);
--bg: #e9e7e4;
--bar: #d4d0ca;
--panel: #f7f6f4;
--panel-soft: #ffffff;
--panel-header: #ffffff;
--surface: #ffffff;
--surface-subtle: var(--panel-soft);
--line: #d6d2cc;
--line-dark: #bdb8b0;
--border: var(--line);
--text: #48494c;
--text-strong: #303135;
--muted: #8a8781;
--muted-text: var(--muted);
--green: #7bbcaf;
--amber: #f5c56c;
--red: #e06a5f;
--blue: #7ea6c5;
--success-bg: #d8eee8;
--success-text: #315f55;
--info-bg: #dce9f3;
--info-text: #365c76;
--danger-text: #a64840;
--focus-ring: 0 0 0 3px rgba(82, 130, 177, .14);
--shadow: 0 1px 2px rgba(0,0,0,.15), 0 10px 30px rgba(0,0,0,.04);
--shadow-menu: 0 16px 40px rgba(0,0,0,.18);
--shadow-popover: 0 3px 8px -3px rgba(0,0,0,.16);
--radius: 8px;
--radius-sm: 4px;
--radius-md: var(--radius);
--radius-lg: 12px;
--radius-pill: 999px;
--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; }