Files
multi-seal-mail-webui/src/styles/components.css

1221 lines
25 KiB
CSS

/* 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;
}
.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;
}
/* Reusable dialog -------------------------------------------------------- */
.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: auto;
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 {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.dialog-title {
margin: 0;
color: var(--text-strong, #111827);
font-size: 1.05rem;
}
.dialog-close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border: 0;
border-radius: 999px;
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 {
color: var(--text, #172033);
}
.dialog-footer {
display: flex;
justify-content: flex-end;
gap: 0.6rem;
}
/* Reusable confirm dialog ------------------------------------------------ */
.confirm-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);
}
.confirm-dialog {
width: min(460px, 100%);
padding: 1.25rem;
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));
}
.confirm-dialog-header {
margin-bottom: 0.55rem;
}
.confirm-dialog-header .dialog-title,
.confirm-dialog h2 {
margin: 0;
color: var(--text-strong, #111827);
font-size: 1.05rem;
}
.confirm-dialog p {
margin: 0;
color: var(--muted, #5f6b7a);
line-height: 1.5;
}
.confirm-dialog-actions {
justify-content: flex-end;
margin-top: 1.1rem;
}
/* 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 {
transition: transform .22s ease;
}
.card-collapsible.is-collapsed .card-collapse-toggle svg {
transform: rotate(-180deg);
}
.card-collapse-region {
display: grid;
grid-template-rows: 1fr;
transition: grid-template-rows .24s ease, opacity .18s ease;
}
.card-collapsible.is-collapsed .card-collapse-region {
display: none;
}
.card-collapse-region > .card-body {
min-height: 0;
overflow: hidden;
}
@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);
}
/* Reusable data grid */
.data-grid-shell {
width: 100%;
min-width: 0;
overflow: auto;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--surface);
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;
}
.data-grid-has-flex {
width: 100%;
min-width: max-content;
}
.data-grid-fixed-only {
width: 100%;
min-width: max-content;
}
.data-grid-container .data-grid {
min-height: 100%;
}
.data-grid-cell {
min-width: 0;
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-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;
}