loopable / web /src /apps /collection.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
c920df3 verified
Raw History Blame Contribute Delete
7.38 kB
.collection-page {
display: flex;
flex-direction: column;
gap: 16px;
width: 100%;
height: 100%;
min-height: 0;
min-width: 0;
padding: 32px;
overflow: auto;
color: var(--lp-ink);
background: var(--lp-wash);
font: 400 var(--lp-fs-sm)/var(--lp-lh) "Inter", sans-serif;
font-variant-numeric: tabular-nums;
}
.collection-page h1,
.collection-overlay h2,
.collection-overlay h3 { margin: 0; font-weight: 600; line-height: var(--lp-lh-tight); }
.collection-page h1 { font-size: var(--lp-fs-lg); }
.collection-overlay h2 { font-size: var(--lp-fs-md); }
.collection-overlay h3 { font-size: var(--lp-fs-sm); }
.collection-page p,
.collection-overlay p { margin: 0; }
.collection-muted { color: var(--lp-muted); }
.collection-header,
.collection-toolbar,
.collection-dialog-header,
.collection-dialog-actions { display: flex; align-items: center; gap: 16px; }
.collection-header,
.collection-dialog-header { justify-content: space-between; }
.collection-header,
.collection-toolbar { flex: 0 0 auto; }
.collection-toolbar { align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.collection-selection { display: flex; flex-direction: column; margin-right: auto; padding: 0 8px; font-size: var(--lp-fs-2xs); color: var(--lp-muted); }
.collection-field { display: flex; flex-direction: column; gap: 4px; color: var(--lp-muted); font-size: var(--lp-fs-2xs); }
.collection-field input,
.collection-field select { height: 36px; max-width: 100%; min-width: 0; padding: 0 8px; border: 1px solid var(--lp-line-strong); border-radius: var(--lp-r-md); background: var(--lp-surface); color: var(--lp-ink); font: inherit; }
.collection-button {
border: 0;
background: transparent;
font: inherit;
color: inherit;
min-height: 36px;
padding: 8px 12px;
border-radius: var(--lp-r-md);
font-weight: 500;
cursor: pointer;
}
.collection-button--primary { background: var(--lp-primary); color: var(--lp-surface); }
.collection-button--send { background: var(--lp-red-deep); color: var(--lp-surface); }
.collection-button:disabled,
.collection-page input:disabled { opacity: 0.5; cursor: not-allowed; }
.collection-button:focus-visible,
.collection-field input:focus-visible,
.collection-field select:focus-visible,
.collection-page input[type="checkbox"]:focus-visible,
.collection-table-scroll:focus-visible,
.collection-document-scroll:focus-visible,
.collection-preview-scroll:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; }
.collection-notice { color: var(--lp-yellow-deep); font-size: var(--lp-fs-xs); }
.collection-table-scroll {
flex: 1 1 320px;
min-height: 240px;
min-width: 0;
overflow: auto;
isolation: isolate;
scrollbar-gutter: stable;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
}
.collection-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--lp-fs-xs); }
.collection-table th,
.collection-table td { padding: 12px; border-bottom: 1px solid var(--lp-line); text-align: left; white-space: nowrap; }
.collection-table th { position: sticky; top: 0; z-index: var(--cg-z-editor); background: var(--lp-surface-2); color: var(--lp-muted); font-weight: 500; }
.collection-table tr:last-child td { border-bottom: 0; }
.collection-table .collection-number,
.collection-number { text-align: right; font-variant-numeric: tabular-nums; }
.collection-overdue { color: var(--lp-red-deep); }
.collection-check { width: 40px; }
.collection-check input { width: 16px; height: 16px; margin: 0; vertical-align: middle; accent-color: var(--lp-blue-solid); }
.collection-customer { padding: 0; min-height: 24px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.collection-row--selected td { background: var(--lp-blue-tint); }
.collection-data-row { cursor: pointer; }
.collection-empty { padding: 24px 0; display: flex; align-items: center; gap: 16px; color: var(--lp-muted); }
.collection-result { flex: 0 0 auto; padding: 12px 0; border-block: 1px solid var(--lp-line); }
.collection-refusals { margin-top: 8px; }
.collection-refusals summary { cursor: pointer; }
.collection-refusals ul { margin: 8px 0 0; padding-left: 24px; max-height: 160px; overflow: auto; }
.collection-refusals li { margin: 4px 0; }
.collection-refusals strong { font-weight: 500; }
.collection-overlay {
position: fixed;
inset: 0;
z-index: var(--cg-z-record);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background: color-mix(in srgb, var(--lp-ink) 24%, transparent);
color: var(--lp-ink);
font: 400 var(--lp-fs-sm)/var(--lp-lh) "Inter", sans-serif;
font-variant-numeric: tabular-nums;
}
.collection-overlay--drawer { justify-content: flex-end; align-items: stretch; padding: 0; z-index: var(--cg-z-drawer); }
.collection-modal,
.collection-drawer { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--lp-surface); border: 1px solid var(--lp-line); }
.collection-modal { width: min(880px, 100%); max-height: 100%; border-radius: var(--lp-r-lg); }
.collection-drawer { width: min(760px, 100%); height: 100%; }
.collection-dialog-header { flex-shrink: 0; padding: 16px 24px; border-bottom: 1px solid var(--lp-line); }
.collection-dialog-header h2 { overflow-wrap: anywhere; }
.collection-dialog-body { min-height: 0; padding: 24px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.collection-dialog-footer { flex-shrink: 0; padding: 16px 24px; border-top: 1px solid var(--lp-line); display: flex; flex-direction: column; gap: 12px; }
.collection-dialog-actions { justify-content: flex-end; gap: 8px; }
.collection-details,
.collection-preview-details { margin: 0; }
.collection-details > div,
.collection-preview-details > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 8px 0; }
.collection-details dt,
.collection-preview-details dt { color: var(--lp-muted); }
.collection-details dd,
.collection-preview-details dd { margin: 0; overflow-wrap: anywhere; }
.collection-document-scroll { overflow: auto; min-height: 160px; }
.collection-preview-scroll { overflow: auto; max-height: 400px; flex-shrink: 0; }
.collection-statement { display: block; width: 100%; height: 240px; border: 0; background: var(--lp-surface); pointer-events: none; }
.collection-skeleton,
.collection-preview-skeleton { display: block; background: var(--lp-surface-2); border-radius: var(--lp-r-md); }
.collection-skeleton { height: 16px; min-width: 48px; }
.collection-preview-skeleton { height: 320px; }
@media (hover: hover) and (pointer: fine) {
.collection-button:hover:not(:disabled) { background: var(--lp-surface-2); }
.collection-button--primary:hover:not(:disabled) { background: var(--lp-primary-hover); }
.collection-button--send:hover:not(:disabled) { background: var(--lp-red-deep); }
.collection-table tbody tr:hover td { background: var(--lp-blue-tint); }
}
@media (max-width: 720px) {
.collection-page { padding: 16px; }
.collection-header { align-items: flex-start; }
.collection-toolbar .collection-field { flex: 1; min-width: 128px; }
.collection-selection { width: 100%; padding: 4px 0; }
.collection-overlay { padding: 8px; }
.collection-overlay--drawer { padding: 0; }
.collection-dialog-header,
.collection-dialog-body,
.collection-dialog-footer { padding: 16px; }
}