638 lines
11 KiB
CSS
638 lines
11 KiB
CSS
:root {
|
|
/*
|
|
* The visual system uses a warm industrial palette instead of generic neutral
|
|
* SaaS colors. The goal is to make the PoC feel closer to an operational tool
|
|
* used in inspection environments than to a stock admin dashboard.
|
|
*/
|
|
--bg: #f3efe6;
|
|
--bg-strong: #e8dcc7;
|
|
--panel: rgba(255, 252, 247, 0.92);
|
|
--panel-border: rgba(93, 67, 35, 0.16);
|
|
--text: #1c1a18;
|
|
--muted: #685f53;
|
|
--accent: #9d3d2e;
|
|
--accent-strong: #7f2c20;
|
|
--accent-soft: #f4d2bf;
|
|
--success: #25624c;
|
|
--warning: #8a6119;
|
|
--danger: #8b2e34;
|
|
--shadow: 0 20px 50px rgba(77, 48, 18, 0.12);
|
|
--radius-lg: 24px;
|
|
--radius-md: 16px;
|
|
--radius-sm: 12px;
|
|
--font-ui: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 35%),
|
|
linear-gradient(135deg, #f8f2e8 0%, #ead9bb 44%, #e9d8c5 100%);
|
|
color: var(--text);
|
|
font-family: var(--font-ui);
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.portal-body {
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
.app-shell {
|
|
/*
|
|
* The main layout keeps navigation and report context visible at the same time.
|
|
* This is important for a checklist workflow where users often switch reports
|
|
* and need immediate awareness of save state, sync state, and current draft.
|
|
*/
|
|
display: grid;
|
|
grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
|
|
min-height: 100vh;
|
|
gap: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.panel {
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 24px;
|
|
gap: 22px;
|
|
}
|
|
|
|
.brand-block h1,
|
|
.hero h2,
|
|
.section-heading-row h2,
|
|
.empty-state h3,
|
|
.validation-block h3,
|
|
.attachment-policy h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 8px;
|
|
color: var(--accent-strong);
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
font-size: 0.74rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.lede,
|
|
.hero-copy,
|
|
.panel-note,
|
|
.summary-note,
|
|
.policy-copy,
|
|
.empty-state p,
|
|
.meta-list dd,
|
|
.validation-list,
|
|
.report-list-item__meta {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.sidebar-section {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.sidebar-link {
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sidebar-link.is-active {
|
|
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
|
|
color: #fff8f0;
|
|
}
|
|
|
|
.portal-shell {
|
|
/*
|
|
* The chooser page is intentionally sparse. Its only job is to separate entry
|
|
* points for operators and administrators without forcing a more complex auth
|
|
* design into the PoC before roles and identity are finalized.
|
|
*/
|
|
width: min(1100px, 100%);
|
|
display: grid;
|
|
gap: 24px;
|
|
}
|
|
|
|
.portal-hero {
|
|
padding: 32px;
|
|
}
|
|
|
|
.portal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.portal-card {
|
|
display: grid;
|
|
gap: 16px;
|
|
padding: 28px;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.portal-copy {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.portal-button {
|
|
width: fit-content;
|
|
}
|
|
|
|
.grow-section {
|
|
min-height: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.status-row,
|
|
.section-heading-row,
|
|
.hero-actions,
|
|
.field-header,
|
|
.attachment-toolbar,
|
|
.report-list-item__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.section-heading-row {
|
|
align-items: baseline;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
border-radius: 999px;
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.badge-neutral {
|
|
background: rgba(28, 26, 24, 0.08);
|
|
color: var(--text);
|
|
}
|
|
|
|
.badge-online,
|
|
.status-in_progress,
|
|
.status-ready_for_export {
|
|
background: rgba(37, 98, 76, 0.12);
|
|
color: var(--success);
|
|
}
|
|
|
|
.badge-offline,
|
|
.status-draft,
|
|
.status-archived {
|
|
background: rgba(138, 97, 25, 0.12);
|
|
color: var(--warning);
|
|
}
|
|
|
|
.badge-error,
|
|
.status-exported {
|
|
background: rgba(139, 46, 52, 0.12);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.button {
|
|
border: 0;
|
|
border-radius: 999px;
|
|
padding: 12px 16px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
|
|
}
|
|
|
|
.button:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.button-primary {
|
|
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
|
|
color: #fff8f0;
|
|
box-shadow: 0 12px 24px rgba(157, 61, 46, 0.25);
|
|
}
|
|
|
|
.button-secondary {
|
|
background: rgba(28, 26, 24, 0.08);
|
|
color: var(--text);
|
|
}
|
|
|
|
.button-ghost {
|
|
background: transparent;
|
|
color: var(--danger);
|
|
border: 1px solid rgba(139, 46, 52, 0.18);
|
|
}
|
|
|
|
.button-small {
|
|
padding: 8px 12px;
|
|
font-size: 0.84rem;
|
|
}
|
|
|
|
.workspace {
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
|
|
.workspace-view {
|
|
/*
|
|
* User and admin workspaces share one HTML document. Hidden sections let the
|
|
* route control which workspace is visible while still reusing common styling
|
|
* and keeping asset delivery simple.
|
|
*/
|
|
display: none;
|
|
gap: 20px;
|
|
}
|
|
|
|
.workspace-view-active {
|
|
display: grid;
|
|
}
|
|
|
|
.hero {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
padding: 24px 28px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.hero::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: auto -80px -80px auto;
|
|
width: 220px;
|
|
height: 220px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle, rgba(157, 61, 46, 0.18), transparent 70%);
|
|
}
|
|
|
|
.hero-actions {
|
|
align-items: end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.status-picker {
|
|
display: grid;
|
|
gap: 6px;
|
|
min-width: 220px;
|
|
}
|
|
|
|
.summary-grid,
|
|
.editor-grid {
|
|
/*
|
|
* These grids create a consistent rhythm between overview cards and working
|
|
* panels so the operator can scan status quickly before dropping into detail.
|
|
*/
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
|
|
.summary-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.summary-card {
|
|
padding: 20px 22px;
|
|
}
|
|
|
|
.accent-card {
|
|
background: linear-gradient(145deg, rgba(157, 61, 46, 0.12), rgba(255, 252, 247, 0.96));
|
|
}
|
|
|
|
.summary-label,
|
|
.field-label,
|
|
.meta-list dt {
|
|
margin: 0 0 8px;
|
|
color: var(--muted);
|
|
font-size: 0.84rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.editor-grid {
|
|
grid-template-columns: minmax(0, 1.7fr) minmax(300px, 380px);
|
|
}
|
|
|
|
.editor-panel,
|
|
.inspector-panel {
|
|
padding: 24px;
|
|
}
|
|
|
|
.admin-form {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.admin-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.report-form {
|
|
/*
|
|
* The form styles are generic on purpose because fields are generated from
|
|
* template JSON. The same primitives must support report editing and admin
|
|
* configuration without each field type needing a dedicated page-specific skin.
|
|
*/
|
|
display: grid;
|
|
gap: 20px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.template-section {
|
|
display: grid;
|
|
gap: 16px;
|
|
padding: 20px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(243, 239, 230, 0.68);
|
|
border: 1px solid rgba(93, 67, 35, 0.12);
|
|
}
|
|
|
|
.field-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.field-header {
|
|
align-items: baseline;
|
|
}
|
|
|
|
.required-pill {
|
|
color: var(--accent-strong);
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.text-input,
|
|
.select-input,
|
|
.text-area,
|
|
.file-input {
|
|
width: 100%;
|
|
border: 1px solid rgba(93, 67, 35, 0.18);
|
|
background: rgba(255, 255, 255, 0.82);
|
|
color: var(--text);
|
|
border-radius: 14px;
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.text-input:focus,
|
|
.select-input:focus,
|
|
.text-area:focus,
|
|
.file-input:focus {
|
|
outline: 2px solid rgba(157, 61, 46, 0.22);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.text-area {
|
|
min-height: 120px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.checkbox-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, 0.82);
|
|
border: 1px solid rgba(93, 67, 35, 0.18);
|
|
}
|
|
|
|
.field-help {
|
|
margin: 0;
|
|
font-size: 0.86rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.report-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
max-height: 420px;
|
|
overflow: auto;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
/* F4 — Search and filter controls above the report list */
|
|
.report-filter-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 8px;
|
|
}
|
|
|
|
.text-input-small,
|
|
.select-input-small {
|
|
padding: 8px 12px;
|
|
font-size: 0.88rem;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.select-input-small {
|
|
min-width: 120px;
|
|
}
|
|
|
|
.report-list-item {
|
|
width: 100%;
|
|
text-align: left;
|
|
border: 1px solid rgba(93, 67, 35, 0.12);
|
|
background: rgba(255, 255, 255, 0.74);
|
|
border-radius: 16px;
|
|
padding: 14px;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.report-list-item.is-active {
|
|
border-color: rgba(157, 61, 46, 0.36);
|
|
box-shadow: inset 0 0 0 1px rgba(157, 61, 46, 0.16);
|
|
background: rgba(244, 210, 191, 0.36);
|
|
}
|
|
|
|
.report-list-item__title {
|
|
font-size: 0.96rem;
|
|
}
|
|
|
|
.muted-count {
|
|
color: var(--muted);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.empty-state {
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 240px;
|
|
text-align: center;
|
|
padding: 24px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(243, 239, 230, 0.68);
|
|
border: 1px dashed rgba(93, 67, 35, 0.24);
|
|
}
|
|
|
|
.meta-list {
|
|
display: grid;
|
|
gap: 14px;
|
|
margin: 0;
|
|
}
|
|
|
|
.meta-list div {
|
|
display: grid;
|
|
gap: 4px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid rgba(93, 67, 35, 0.1);
|
|
}
|
|
|
|
.meta-list dd {
|
|
margin: 0;
|
|
}
|
|
|
|
.validation-block,
|
|
.attachment-policy {
|
|
margin-top: 26px;
|
|
}
|
|
|
|
.validation-list {
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.validation-list li + li {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.attachment-list {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.attachment-card {
|
|
/*
|
|
* Attachments need enough visual weight to confirm that a photo is really tied
|
|
* to a report item. The card layout reserves space for preview, metadata, and
|
|
* removal action without requiring a modal or separate gallery screen.
|
|
*/
|
|
display: grid;
|
|
grid-template-columns: 88px minmax(0, 1fr) auto;
|
|
gap: 12px;
|
|
align-items: center;
|
|
padding: 12px;
|
|
border-radius: 16px;
|
|
background: rgba(255, 255, 255, 0.86);
|
|
border: 1px solid rgba(93, 67, 35, 0.12);
|
|
}
|
|
|
|
.attachment-preview {
|
|
width: 88px;
|
|
height: 88px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
background: rgba(93, 67, 35, 0.08);
|
|
}
|
|
|
|
.attachment-card__copy {
|
|
display: grid;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.attachment-card__copy strong,
|
|
.attachment-card__copy span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
/*
|
|
* Tablet and narrow laptop layouts collapse the two-column structure into a
|
|
* single column so the editing surface remains usable without horizontal scroll.
|
|
*/
|
|
.app-shell,
|
|
.editor-grid,
|
|
.summary-grid,
|
|
.portal-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.sidebar {
|
|
min-height: auto;
|
|
}
|
|
|
|
.report-list {
|
|
max-height: 260px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
/*
|
|
* Mobile layout prioritizes single-column readability and larger preview areas.
|
|
* This matters because one of the project requirements is viable use on phones
|
|
* where camera capture and image attachment happen directly in the browser.
|
|
*/
|
|
.app-shell {
|
|
padding: 14px;
|
|
gap: 14px;
|
|
}
|
|
|
|
.hero,
|
|
.hero-actions,
|
|
.field-grid,
|
|
.attachment-card {
|
|
grid-template-columns: 1fr;
|
|
display: grid;
|
|
}
|
|
|
|
.field-grid {
|
|
gap: 14px;
|
|
}
|
|
|
|
.attachment-card {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.attachment-preview {
|
|
width: 100%;
|
|
height: 180px;
|
|
}
|
|
} |