loopable / web /src /styles /sdlc74 /customer-card.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
c72f0a1 verified
Raw History Blame Contribute Delete
5.26 kB
.customer-card-page {
width: 100%;
min-width: 0;
min-height: 100%;
height: 100%;
overflow-y: auto;
padding: 32px 24px;
background: var(--lp-wash);
color: var(--lp-ink);
font-size: var(--lp-fs-sm);
line-height: 1.5;
}
.customer-card-column { width: min(100%, 640px); margin: 0 auto; }
.customer-card-tools { display: flex; align-items: end; gap: 12px; margin-bottom: 24px; }
.customer-card-search { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 8px; }
.customer-card-tools .customer-card-button { flex: 0 0 auto; }
.customer-card-view, .customer-card-loading { display: flex; flex-direction: column; gap: 16px; }
.customer-card-section {
padding: 24px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-lg);
background: var(--lp-surface);
}
.customer-card-section h1, .customer-card-section h2 { margin: 0; font-weight: 600; }
.customer-card-section h1 { font-size: var(--lp-fs-lg); overflow-wrap: anywhere; }
.customer-card-section h2 { margin-bottom: 16px; font-size: var(--lp-fs-md); }
.customer-card-label { margin: 0 0 8px; font-size: var(--lp-fs-2xs); color: var(--lp-muted); }
.customer-card-invoices { width: 100%; border-collapse: collapse; table-layout: fixed; }
.customer-card-invoices th { padding: 0 0 8px; color: var(--lp-muted); font-size: var(--lp-fs-2xs); font-weight: 500; text-align: left; }
.customer-card-invoices th:first-child { width: 38%; }
.customer-card-invoices th:nth-child(2) { width: 34%; }
.customer-card-invoices td { padding: 12px 8px 12px 0; border-top: 1px solid var(--lp-line); vertical-align: top; overflow-wrap: anywhere; }
.customer-card-invoices td:nth-child(2) { color: var(--lp-muted); font-size: var(--lp-fs-xs); }
.customer-card-invoices th:last-child, .customer-card-invoices td:last-child { padding-right: 0; text-align: right; }
.customer-card-invoices, .customer-card-total, .customer-card-price { font-variant-numeric: tabular-nums; }
.customer-card-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--lp-line); }
.customer-card-total strong { font-size: var(--lp-fs-lg); font-weight: 600; text-align: right; }
.customer-card-products { list-style: none; padding: 0; margin: 0; }
.customer-card-products li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 12px 0; border-top: 1px solid var(--lp-line); }
.customer-card-products li:first-child { padding-top: 0; border-top: 0; }
.customer-card-products li:last-child { padding-bottom: 0; }
.customer-card-product-name { min-width: 0; overflow-wrap: anywhere; }
.customer-card-price { flex: 0 0 auto; text-align: right; }
.customer-card-meta { display: block; color: var(--lp-muted); font-size: var(--lp-fs-2xs); }
.customer-card-contact { display: flex; flex-direction: column; gap: 4px; font-style: normal; overflow-wrap: anywhere; }
.customer-card-contact + .customer-card-contact { margin-top: 16px; }
.customer-card-contact a { width: fit-content; color: var(--lp-ink); text-decoration-color: var(--lp-line-strong); text-underline-offset: 4px; }
.customer-card-contact a:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; }
.customer-card-empty, .customer-card-message { margin: 0; color: var(--lp-muted); }
.customer-card-message { padding: 8px 0; }
.customer-card-message p { margin: 0 0 8px; }
.customer-card-picker { padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid var(--lp-line); }
.customer-card-choice { border: 0; background: transparent; font: inherit; color: inherit; display: block; width: 100%; padding: 8px 12px; border-radius: var(--lp-r-sm); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.customer-card-choice[aria-pressed="true"] { background: var(--lp-blue-tint); }
.customer-card-choice:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: -2px; }
.customer-card-button { transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing), opacity var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing); }
.customer-card-button:active:enabled { transform: scale(0.97); }
.customer-card-button:disabled { cursor: not-allowed; }
.customer-card-more { margin-top: 12px; }
.customer-card-skeleton { display: block; height: 16px; width: 100%; margin: 12px 0; border-radius: var(--lp-r-sm); background: var(--lp-surface-2); }
.customer-card-skeleton-title { width: 40%; height: 24px; margin-bottom: 24px; }
.customer-card-skeleton-short { width: 65%; }
.customer-card-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
.customer-card-choice:hover { background: var(--lp-surface-2); }
}
@media (max-width: 480px) {
.customer-card-page { padding: 24px 16px; }
.customer-card-section { padding: 20px 16px; }
.customer-card-tools { gap: 8px; }
.customer-card-products li { gap: 16px; }
.customer-card-total strong { font-size: var(--lp-fs-md); }
}
@media (prefers-reduced-motion: reduce) {
.customer-card-button { transition: none; }
.customer-card-button:active:enabled { transform: none; }
}