Files
govoplan-core/webui/src/styles/components.css
2026-06-26 01:39:19 +02:00

1344 lines
28 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;
}
.policy-source-path {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 10px;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: var(--surface);
color: var(--muted);
font-size: 12px;
line-height: 1.35;
}
.policy-source-path-label {
font-weight: 800;
text-transform: uppercase;
}
.policy-source-path ol {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin: 0;
padding: 0;
list-style: none;
}
.policy-source-path li {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--text-strong);
font-weight: 700;
}
.policy-source-path li small {
max-width: 180px;
overflow: hidden;
color: var(--muted);
font-weight: 600;
text-overflow: ellipsis;
white-space: nowrap;
}
.policy-source-path li small::before {
content: "(";
}
.policy-source-path li small::after {
content: ")";
}
.policy-source-path li + li::before {
content: ">";
color: var(--muted);
font-weight: 700;
}
.password-field {
position: relative;
width: 100%;
}
.password-field.has-toggle input {
padding-right: 42px;
}
.password-field.is-saved-empty input::placeholder {
color: var(--muted);
opacity: 1;
}
.password-field-toggle {
position: absolute;
top: 50%;
right: 7px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 0;
border-radius: 4px;
background: transparent;
color: var(--muted);
cursor: pointer;
padding: 0;
transform: translateY(-50%);
}
.password-field-toggle:hover {
background: rgba(0, 0, 0, .06);
color: var(--text-strong);
}
.password-field-toggle:focus-visible {
outline: 2px solid color-mix(in srgb, var(--blue) 55%, #fff);
outline-offset: 1px;
}
/* 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);
}
.policy-path-help {
display: grid;
gap: 3px;
}
.policy-path-help-line {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
white-space: pre-wrap;
}
/* Shared policy table structure. Feature styles keep only layout-specific grid tracks. */
.policy-table {
display: grid;
gap: 0;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
overflow: hidden;
}
.policy-row {
display: grid;
align-items: center;
gap: 14px;
padding: 12px 14px;
background: var(--surface);
border-top: 1px solid var(--line);
}
.policy-row:first-child {
border-top: 0;
}
.policy-row-header {
background: var(--surface-subtle);
color: var(--muted);
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.policy-field-label {
display: grid;
gap: 3px;
min-width: 0;
}
.policy-field-label strong,
.policy-field-title {
color: var(--text-strong);
font-weight: 800;
}
.policy-field-label small,
.policy-effective-note {
color: var(--muted);
}
.policy-control select,
.policy-control input,
.policy-row textarea {
width: 100%;
}
.policy-effective-cell,
.policy-lower-cell {
min-width: 0;
}
.policy-effective-value {
color: var(--text-strong);
font-size: 13px;
font-weight: 800;
}
.policy-effective-note {
margin: 0;
}
@media (max-width: 900px) {
.policy-row,
.policy-table.with-effective-column .policy-row,
.policy-table.with-allow-column .policy-row,
.policy-table.with-effective-column.with-allow-column .policy-row {
grid-template-columns: 1fr;
}
.policy-row-header {
display: none;
}
}
.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-collapsible.is-collapsed {
align-self: start;
}
.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);
}
/* Shared explorer tree and message display surfaces. */
.explorer-tree-children {
display: grid;
gap: 1px;
}
.explorer-tree-node-wrap {
display: grid;
grid-template-columns: 26px minmax(0, 1fr);
align-items: center;
gap: 2px;
border-radius: 9px;
}
.explorer-tree-node,
.explorer-tree-toggle {
border: 0;
background: transparent;
color: var(--text);
cursor: pointer;
}
.explorer-tree-toggle {
display: grid;
place-items: center;
width: 26px;
height: 32px;
border-radius: 9px;
color: var(--muted);
}
.explorer-tree-toggle:disabled {
cursor: default;
opacity: .55;
}
.explorer-tree-node {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
width: 100%;
padding: 8px 9px;
border-radius: 9px;
font: inherit;
text-align: left;
user-select: none;
}
.explorer-tree-node span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.explorer-tree-node-wrap:hover,
.explorer-tree-node-wrap:focus-within,
.explorer-tree-node-wrap.is-active {
background: rgba(13, 110, 253, .08);
outline: none;
}
.explorer-tree-node:focus-visible,
.explorer-tree-toggle:focus-visible {
outline: none;
}
.message-display-panel {
display: grid;
gap: 14px;
min-width: 0;
}
.message-display-header {
display: grid;
gap: 10px;
}
.message-display-header h3 {
margin: 0;
color: var(--text-strong);
overflow-wrap: anywhere;
}
.message-display-fields {
display: table;
width: 100%;
margin: 0;
background: transparent;
overflow: hidden;
}
.message-display-fields div,
.message-display-headers dl div {
display: table-row;
}
.message-display-fields dt,
.message-display-fields dd,
.message-display-headers dt,
.message-display-headers dd {
display: table-cell;
padding: 7px 0px;
vertical-align: baseline;
}
.message-display-fields div:last-child dt,
.message-display-fields div:last-child dd,
.message-display-headers dl div:last-child dt,
.message-display-headers dl div:last-child dd {
border-bottom: 0;
}
.message-display-fields dt,
.message-display-headers dt {
width: 96px;
color: var(--muted);
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
white-space: nowrap;
}
.message-display-fields dd,
.message-display-headers dd {
margin: 0;
min-width: 0;
overflow-wrap: anywhere;
}
.message-display-body-section {
display: grid;
gap: 8px;
}
.message-display-section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.message-display-section-heading h4,
.message-display-attachments h4 {
margin: 0;
}
.message-display-body-switch {
display: inline-flex;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
overflow: hidden;
background: var(--surface);
}
.message-display-body-switch button {
border: 0;
border-right: 1px solid var(--line);
background: transparent;
color: var(--muted);
padding: 5px 10px;
font: inherit;
font-size: 12px;
font-weight: 700;
cursor: pointer;
}
.message-display-body-switch button:last-child {
border-right: 0;
}
.message-display-body-switch button.active {
background: var(--surface-subtle);
color: var(--text-strong);
}
.message-display-body,
.message-display-html-frame {
width: 100%;
min-height: 220px;
max-height: 420px;
margin: 0;
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: var(--surface-subtle);
color: var(--text);
}
.message-display-body {
padding: 12px;
font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.message-display-html-frame {
height: 420px;
background: #fff;
}
.message-display-attachments {
display: grid;
gap: 9px;
min-height: 0;
}
.message-display-attachments-scroll {
display: grid;
gap: 9px;
max-height: min(360px, 38vh);
min-height: 0;
overflow: auto;
padding: 0 6px;
scrollbar-gutter: stable;
}
.message-display-attachment-list {
display: grid;
gap: 7px;
}
.message-display-attachment-row {
display: grid;
grid-template-columns: 18px minmax(0, 1fr);
gap: 8px;
align-items: start;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: var(--surface);
}
.message-display-attachment-row > span {
display: grid;
gap: 3px;
min-width: 0;
}
.message-display-attachment-row strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.message-display-attachment-row small,
.message-display-attachment-archive header span,
.message-display-attachment-archive header small {
color: var(--muted);
}
.message-display-attachment-detail {
overflow-wrap: anywhere;
}
.message-display-attachment-meta {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
}
.message-display-attachment-meta span + span::before {
content: "";
}
.message-display-attachment-archive {
display: grid;
gap: 8px;
padding: 10px;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: var(--surface-subtle);
}
.message-display-attachment-archive header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.message-display-attachment-archive header div {
display: grid;
gap: 2px;
}
.message-display-attachment-archive header strong,
.message-display-attachment-archive header small {
display: inline-flex;
align-items: center;
gap: 5px;
}
.message-display-attachment-protection {
justify-items: end;
text-align: right;
}
.message-display-attachment-protection-note {
display: block;
max-width: 240px;
overflow-wrap: anywhere;
}
.message-display-headers summary {
cursor: pointer;
font-weight: 700;
color: var(--text-strong);
}
.message-display-headers dl {
display: table;
width: 100%;
max-height: 280px;
margin: 8px 0 0;
overflow: auto;
}
/* Shared SMTP/IMAP server settings panel. */
.mail-server-settings-panel {
display: grid;
gap: 12px;
}
.mail-server-segmented-control {
display: inline-grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
justify-self: center;
width: min(420px, 100%);
overflow: hidden;
border: 1px solid #c9c3b9;
border-radius: 8px;
background: #c9c3b9;
box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 1px rgba(0,0,0,.05);
}
.mail-server-segmented-tab {
min-height: 32px;
border: 0;
border-radius: 0;
background: linear-gradient(#ffffff, #f1efeb);
color: #4f4a43;
cursor: pointer;
font: inherit;
font-size: 13px;
font-weight: 800;
box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 1px rgba(0,0,0,.05);
transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}
.mail-server-segmented-tab + .mail-server-segmented-tab {
border-left: 1px solid #c9c3b9;
}
.mail-server-segmented-tab:first-child {
border-radius: 7px 0 0 7px;
}
.mail-server-segmented-tab:last-child {
border-radius: 0 7px 7px 0;
}
.mail-server-segmented-tab:hover,
.mail-server-segmented-tab:focus-visible {
background: linear-gradient(#ffffff, #e8e5df);
color: #4f4a43;
box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 2px 5px rgba(0,0,0,.08);
}
.mail-server-segmented-tab:focus-visible {
outline: 3px solid rgba(82, 130, 177, .22);
outline-offset: -1px;
}
.mail-server-segmented-tab.is-active {
background: var(--line);
color: var(--text-strong);
box-shadow: inset 0 2px 5px rgba(0,0,0,.12), inset 0 -1px 0 rgba(255,255,255,.45);
}
.mail-server-segmented-tab.is-active:hover,
.mail-server-segmented-tab.is-active:focus-visible {
background: var(--line);
box-shadow: inset 0 2px 5px rgba(0,0,0,.14), inset 0 -1px 0 rgba(255,255,255,.45);
}
.mail-server-settings-view {
min-width: 0;
}
.mail-server-settings-grid {
display: grid;
grid-template-columns: repeat(2, minmax(280px, 1fr));
gap: 22px;
}
.mail-server-subsection {
display: grid;
align-content: start;
gap: 12px;
}
.mail-server-section-heading.split {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.mail-server-section-heading h3 {
margin: 0;
color: var(--text-strong);
font-size: 14px;
letter-spacing: .01em;
}
.form-grid.compact.mail-server-form-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mail-server-form-grid {
align-items: start;
}
.mail-server-field-heading {
grid-column: 1 / -1;
margin: 2px 0 -4px;
color: var(--text-strong);
font-size: 13px;
font-weight: 800;
}
.mail-server-field-span {
grid-column: 1 / -1;
}
.mail-server-toggle-row {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel-soft);
}
.mail-server-plain-toggle-row {
border: 0;
border-radius: 0;
background: transparent;
}
.mail-server-actions {
justify-content: flex-end;
margin-top: 12px;
}
.mail-server-folder-field {
align-items: stretch;
}
.mail-server-folder-field .btn,
.mail-server-folder-field .button {
min-height: 36px;
}
.mail-server-folder-chip-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.mail-server-folder-chip {
display: inline-flex;
align-items: center;
min-height: 24px;
border: 1px solid var(--line);
border-radius: 99px;
background: var(--panel-soft);
padding: 3px 9px;
color: var(--text-strong);
font-size: 12px;
font-weight: 700;
}
@media (max-width: 1000px) {
.mail-server-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
.form-grid.compact.mail-server-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
.form-grid.compact.mail-server-form-grid { grid-template-columns: 1fr; }
.mail-server-section-heading.split { align-items: flex-start; flex-direction: column; }
.mail-server-segmented-control { width: 100%; }
}
.unsaved-changes-dialog {
max-width: 520px;
}
.unsaved-changes-actions {
justify-content: flex-end;
}
.file-drop-zone {
display: grid;
place-items: center;
gap: 8px;
min-height: 170px;
border: 1px dashed var(--line-dark);
border-radius: 8px;
background: var(--panel-soft);
color: var(--muted);
text-align: center;
cursor: pointer;
transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.file-drop-zone:hover,
.file-drop-zone:focus-visible,
.file-drop-zone.is-active {
border-color: #0d6efd;
background: rgba(13, 110, 253, .08);
}
.file-drop-zone:focus-visible {
outline: none;
box-shadow: 0 0 0 3px rgba(13, 110, 253, .18);
}
.file-drop-zone[aria-disabled="true"] {
cursor: not-allowed;
opacity: .65;
}
.file-drop-zone.is-busy {
border-color: #0d6efd;
background: rgba(13, 110, 253, .08);
cursor: progress;
opacity: 1;
}
.file-drop-progress {
--file-drop-progress: 0%;
position: relative;
display: grid;
place-items: center;
width: 58px;
height: 58px;
border-radius: 50%;
background: conic-gradient(#0d6efd var(--file-drop-progress), rgba(13, 110, 253, .16) 0);
color: var(--text-strong);
font-size: 12px;
font-weight: 800;
line-height: 1;
}
.file-drop-progress::before {
content: "";
position: absolute;
inset: 6px;
border-radius: 50%;
background: var(--panel-soft);
box-shadow: inset 0 0 0 1px rgba(13, 110, 253, .12);
}
.file-drop-progress > span {
position: relative;
z-index: 1;
}
.file-drop-progress.is-indeterminate {
background: conic-gradient(#0d6efd 0 32%, rgba(13, 110, 253, .16) 32% 100%);
animation: file-drop-progress-spin .85s linear infinite;
}
@keyframes file-drop-progress-spin {
to { transform: rotate(360deg); }
}