/* app/static/css/app.css */
/* --- Brand Fonts --- */
@font-face {
font-family: "Questrial";
src: url("../fonts/Questrial-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "PalatinoWeb";
src: url("../fonts/Palatino-Roman.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Azo Sans";
src: url("../fonts/AzoSans-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* --- Theme & Grid Vars --- */
:root {
--dm-navy: #0f2238;
--dm-orange: #e95037;
--dm-storm: #6a6a6a;
--dm-harbor: #d3d3d3;
--dm-white: #ffffff;
--dm-sky: #53b4ff;
--dm-radius: 14px;
--dm-line: #e6edf2;
--dm-page: #f7fafc;
--font-serif: "PalatinoWeb", "Palatino", Georgia, serif;
--font-ui: "Questrial", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
--font-para: "Azo Sans", var(--font-ui);
--fs-hero: clamp(26px, 3.4vw, 36px);
--fs-h1: clamp(22px, 2.6vw, 30px);
--fs-h2: clamp(18px, 2vw, 24px);
--fs-body: 16px;
--lh: 1.45;
/* Columns for the list */
--col-check: 28px;
--col-opt: 360px;
--col-qty: 90px;
}
/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis-weight: none; font-synthesis-style: none; }
html, body { margin: 0; padding: 0; background: var(--dm-page); color: var(--dm-navy); font: var(--fs-body)/var(--lh) var(--font-ui); -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) { * { scroll-behavior: smooth; } }
/* Checkbox styling */
input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: var(--dm-orange);
}
input[type="checkbox"]:checked {
accent-color: #16a34a;
}
/* Focus ring */
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--dm-sky);
box-shadow: 0 0 0 3px rgba(83,180,255,.2);
}
@supports (color:color-mix(in srgb, white, black)) {
input:focus, select:focus, textarea:focus {
box-shadow: 0 0 0 3px color-mix(in srgb, var(--dm-sky) 20%, transparent);
}
}
/* --- Layout --- */
.wrap { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
header { margin-bottom: 18px; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.brand .logo { height: 50px; width: auto; display: block; }
h1 { margin: 0; font-size: var(--fs-h1); font-family: var(--font-serif); letter-spacing: .3px; }
h2, h3 { font-family: var(--font-ui); color: var(--dm-navy); }
.card { background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-radius); }
.pad { padding: 16px; }
.grid { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 240px; }
/* --- Inputs --- */
label.block { display: block; font-size: 14px; color: var(--dm-navy); font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
width: 100%; background: #fff; border: 1px solid var(--dm-line);
border-radius: 10px; padding: 10px 12px; font-size: 16px; color: var(--dm-navy);
}
textarea { min-height: 44px; resize: vertical; }
select { color: var(--dm-storm); }
select option { color: var(--dm-navy); }
input::placeholder, textarea::placeholder { color: var(--dm-storm); }
.field-help { font-size: 12px; color: var(--dm-storm); margin-top: 6px; }
/* --- Sections --- */
.cat { border: 1px solid var(--dm-line); border-radius: var(--dm-radius); background: #fff; overflow: visible; }
.cat__head {
position: static;
top: auto;
background: var(--dm-navy);
color: #fff;
padding: 14px 16px;
font-weight: 600;
letter-spacing: .2px;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
border-radius: var(--dm-radius) var(--dm-radius) 0 0;
min-height: 56px;
}
.cat__head-title { display: flex; align-items: center; gap: 10px; flex-grow: 1; }
.cat__toggle-icon { width: 20px; height: 20px; transition: transform 0.2s; }
.is-open .cat__toggle-icon { transform: rotate(180deg); }
/* Section master checkbox (left of title) */
.cat__head-title .master-toggle-left { display: inline-flex; align-items: center; justify-content: center; padding: 4px; border-radius: 8px; margin-right: 2px; }
.cat__head-title .master-toggle-left input[type="checkbox"] { width: 18px; height: 18px; }
@media (max-width: 640px) { .cat__head-title .master-toggle-left { display: none; } }
.cat__head-status {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
margin-right: 12px;
}
.completion-status {
padding: 4px 12px;
border-radius: 999px;
background: rgba(255,255,255,0.15);
color: #fff;
font-size: 13px;
font-weight: 500;
white-space: nowrap;
transition: background 0.2s ease;
}
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12px; white-space: nowrap; }
/* --- List grid --- */
.legend, .item { display: grid; grid-template-columns: var(--col-check) 1fr var(--col-opt); gap: 10px; align-items: center; }
.legend { padding: 10px 14px; background: #f2f6fa; border-bottom: 1px solid var(--dm-line); font-size: 13px; color: var(--dm-navy); font-weight: 600; }
.item {
padding: 14px 16px;
border-top: 1px solid var(--dm-line);
align-items: start;
position: relative;
transition: background-color 0.2s ease;
}
.item:hover { background-color: rgba(0,0,0,0.01); }
.item:first-child { border-top: none; }
.name {
font-weight: 800;
font-size: 17px;
color: var(--dm-navy);
line-height: 1.3;
margin: 2px 0;
}
.hint { font-size: 12px; color: var(--dm-storm); margin-top: 2px; }
.present.on { background: #e7f8ef; color: #166534; }
.present.off { background: #fdecec; color: #991b1b; }
/* Error state */
.item.has-error { outline: 2px solid var(--dm-orange); outline-offset: -2px; }
.error { color: var(--dm-orange); font-size: 12px; margin-top: 6px; }
input.is-invalid, select.is-invalid, textarea.is-invalid {
border-color: var(--dm-orange) !important;
box-shadow: 0 0 0 3px rgba(233,80,55,.15) !important;
}
/* --- Options/Qty --- */
.optWrap { display: none; grid-column: 3/4; }
.optWrap.show { display: grid; }
.optWrap.flash { animation: dm-flash 0.8s ease-out; }
@keyframes dm-flash { 0% { background: #fff7cc; } 100% { background: transparent; } }
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.8; }
}
.optCell { display: grid; grid-template-columns: 1fr var(--col-qty) 36px; align-items: start; gap: 10px; min-width: 0; }
.optCell .combo, .repeat-row .combo { width: 100%; min-width: 0; }
.optCell > .repeat { grid-column: 1 / -1; width: 100%; }
.simple-qty-wrapper { grid-column: 2/3; justify-self: end; }
.optSelect { grid-column: 1/2; }
.qtyInput { grid-column: 2/3; justify-self: start; width: var(--col-qty); max-width: var(--col-qty); }
.qtyCell { justify-self: end; }
.optSelect, .repeat-row select, .qtyInput, .repeat-qty {
height: 48px; padding: 12px 14px; border: 1px solid var(--dm-line);
border-radius: 10px; background: #fff; font-size: 16px;
}
.optSelect, .repeat-row select { width: 100%; min-width: 0; line-height: 1.2; min-inline-size: 220px; }
/* --- Repeater --- */
.repeat { display: grid; gap: 8px; margin-top: 6px; grid-template-columns: 1fr var(--col-qty) 36px; align-items: start; }
.repeat-rows { min-width: 0; grid-column: 1 / -1; }
.repeat-row { display: grid; grid-template-columns: 1fr var(--col-qty) 36px; gap: 8px; align-items: center; }
.repeat-qty { width: var(--col-qty); max-width: var(--col-qty); height: 48px; justify-self: start; font-size: 16px; }
/* Remove button */
.repeat-row button, .repeat-row .remove-btn {
border: 1px solid var(--dm-harbor); background: #fff; border-radius: 8px;
padding: 10px; cursor: pointer; -webkit-appearance: none; appearance: none;
font: inherit; line-height: 1;
}
.repeat-row .remove-btn.is-placeholder {
visibility: hidden !important; opacity: 0 !important; pointer-events: none !important;
}
/* Add button */
.repeat .add-btn {
grid-column: 1 / 3; width: 100%;
border: 1px solid var(--dm-harbor); background: #fff; border-radius: 10px;
padding: 12px 16px; cursor: pointer; font-weight: 600; height: 48px;
font-size: 15px; transition: all 0.2s ease;
}
.repeat .add-btn:not(:disabled):hover {
background: var(--dm-navy);
color: white;
border-color: var(--dm-navy);
}
.add-btn:hover { border-color: var(--dm-navy); }
.section-controls { display: flex; justify-content: flex-end; margin-bottom: -10px; }
/* --- Toolbar & buttons --- */
.toolbar { /* desktop/tablet default: non-sticky */
position: static;
background: transparent;
padding: 16px 0;
margin: 0;
border-top: 0;
display: flex; gap: 10px; align-items: center; justify-content: flex-end;
}
@media (max-width: 900px) {
.toolbar {
position: fixed;
left: 0; right: 0; bottom: 0;
z-index: 1000;
background: linear-gradient(to top, var(--dm-page), rgba(247,250,252,0.98));
padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
margin: 0;
border-top: 2px solid var(--dm-line);
box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
flex-direction: column;
gap: 12px;
}
body { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
.toolbar .btn { width: 100%; min-height: 52px; font-size: 17px; }
.progress-section { width: 100%; margin-bottom: 8px; }
}
/* Also ensure fixed toolbar on touch devices regardless of width */
@media (hover: none) and (pointer: coarse) {
.toolbar {
position: fixed;
left: 0; right: 0; bottom: 0;
z-index: 1000;
background: linear-gradient(to top, var(--dm-page), rgba(247,250,252,0.98));
padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
border-top: 2px solid var(--dm-line);
box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
flex-direction: column;
}
body { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
}
/* Disable sticky section headers on desktop for cleaner scroll */
@media (min-width: 901px) {
.cat__head { position: static; top: auto; }
}
.toolbar .error { margin-right: auto; }
.toolbar .success { margin-right: auto; }
.toolbar .remaining {
margin-right: auto;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border-radius: 999px;
background: #f2f6fa;
border: 1px solid var(--dm-line);
color: #334155;
font-size: 13px;
font-weight: 700;
cursor: pointer;
}
.toolbar .remaining .count { min-width: 1.75em; text-align: center; background: #fff; border-radius: 999px; padding: 2px 8px; border: 1px solid var(--dm-harbor); }
.success { color: #166534; background: #e7f8ef; padding: 8px 12px; border-radius: 10px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.success .dismiss { background: transparent; border: 0; color: var(--dm-storm); cursor: pointer; font-weight: 700; }
.success .dismiss:hover { text-decoration: underline; }
.btn { appearance: none; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.btn.primary {
background: var(--dm-orange);
color: #fff;
box-shadow: 0 2px 8px rgba(233, 80, 55, 0.3);
transition: all 0.2s ease;
}
.btn.primary:not(:disabled):hover {
background: #d64330;
box-shadow: 0 4px 12px rgba(233, 80, 55, 0.4);
transform: translateY(-1px);
}
.btn.secondary { background: #fff; color: var(--dm-navy); border: 1px solid var(--dm-harbor); }
.btn.large { font-size: 16px; padding: 14px 20px; border-radius: 14px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
/* --- Links --- */
a { color: var(--dm-sky); text-decoration: none; }
a:hover { text-decoration: underline; }
/* --- Responsive --- */
@media (max-width: 900px) {
.legend { display: none; }
.item { grid-template-columns: var(--col-check) 1fr; }
.optWrap { grid-column: 1/-1; }
.optCell, .repeat-row { grid-template-columns: 1fr var(--col-qty) 36px; }
}
@media (max-width: 500px) {
:root { --col-qty: 72px; }
/* Stack toolbar content nicely on mobile */
.toolbar { flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.toolbar .btn { width: 100%; }
.toolbar .remaining { padding: 6px 10px; font-size: 12px; }
.toolbar .remaining .label { display: none; }
}
@media (max-width: 640px) {
/* Let selects shrink naturally on small screens and avoid iOS zoom */
.optSelect, .repeat-row select { min-inline-size: 0; font-size: 16px; }
}
/* --- Combobox --- */
[x-cloak] { display: none !important; }
.combo { position: relative; width: 100%; }
.combo-input {
width: 100%; background: #fff; border: 1px solid var(--dm-line); border-radius: 10px;
padding: 14px 40px 14px 14px; font-size: 16px; color: var(--dm-navy);
height: 48px; min-height: 48px;
}
.combo button.combo-input { text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.combo-list {
position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 1000;
max-height: 280px; overflow: auto; background: #fff; border: 1px solid var(--dm-line);
border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.08); padding: 6px;
}
.combo-list[hidden] { display: none; }
.combo-option {
display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
cursor: pointer; user-select: none; line-height: 1.2; min-height: 44px; font-size: 15px; color: var(--dm-navy);
}
.combo-option:hover, .combo-option[aria-selected="true"], .combo-option.is-active { background: #f2f6fa; }
.combo-option.is-active { border-left: 3px solid var(--dm-sky); }
.combo-option.is-empty { color: var(--dm-storm); justify-content: center; }
.combo-option .sub { color: var(--dm-storm); font-size: 13px; }
.combo::after {
content: ""; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px;
border-right: 2px solid var(--dm-storm); border-bottom: 2px solid var(--dm-storm);
transform: translateY(-50%) rotate(45deg); pointer-events: none;
}
@media (max-width: 900px) { .combo-list { max-height: 60vh; overscroll-behavior: contain; } }
/* --- Extras --- */
#house_company_hint { margin-top: 6px; font-size: 12px; color: var(--dm-storm); }
.required-star { color: var(--dm-orange); font-weight: bold; margin-left: 2px; }
/* --- Receipt Page --- */
.receipt-container { max-width: 500px; margin: 40px auto; text-align: center; }
.receipt-content { display: grid; gap: 16px; justify-items: center; }
.receipt-content h2 { font-size: var(--fs-h1); margin: 0; }
.receipt-content p { margin: 0; color: var(--dm-storm); }
/* --- Print --- */
@media print {
@page { size: A4 portrait; margin: 14mm; }
html, body { background: #fff; color: #000; }
.wrap { max-width: 100%; margin: 0; padding: 0; }
.card, .toolbar { display: none !important; }
.brand .logo { filter: grayscale(100%); }
h1 { font-size: 22px; }
.cat { break-inside: avoid; margin: 0 0 10mm 0; border: 1px solid #ddd; }
.cat__head { position: static; color: #000; background: #f4f6f8; border-bottom: 1px solid #ddd; }
.legend { background: #fafafa; border-bottom: 1px solid #eee; }
.item { border-top: 1px solid #eee; padding: 8px 10px; }
.presentHint { display: inline-block; margin-left: 6px; font-size: 12px; }
.present.on::before { content: "✓ Present"; color: #0a5f39; background: none; }
.present.off::before { content: "✗ Missing"; color: #8c1b1b; background: none; }
}
/* --- Progress Bar --- */
.progress-section {
margin-bottom: 20px;
order: -1; /* Ensure progress appears above other toolbar content */
width: 100%;
}
/* Desktop: Card-style progress bar */
@media (min-width: 901px) {
.progress-section {
padding: 20px 24px;
background: #fff;
border-radius: var(--dm-radius);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
border: 1px solid rgba(0, 0, 0, 0.04);
margin: 24px 0 20px;
}
}
.progress-bar {
width: 100%;
height: 10px;
background: #f1f5f9;
border-radius: 5px;
overflow: hidden;
margin-bottom: 12px;
position: relative;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--dm-orange) 0%, #ff6b4a 100%);
border-radius: 5px;
transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
position: relative;
box-shadow: 0 2px 4px rgba(233, 80, 55, 0.2);
}
.progress-fill::after {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 8px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
border-radius: 0 3px 3px 0;
}
.progress-info {
display: flex;
justify-content: center;
align-items: center;
font-size: 16px;
color: var(--dm-navy);
font-weight: 600;
text-align: center;
padding: 8px;
background: rgba(233, 80, 55, 0.05);
border-radius: 8px;
margin-top: 4px;
}
.progress-complete {
color: #16a34a;
font-weight: 700;
display: flex;
align-items: center;
gap: 6px;
animation: pulse 2s infinite;
}
.progress-complete::before {
content: '✓';
font-size: 16px;
color: var(--dm-orange);
}
/* Mobile: Sleek progress bar in sticky toolbar */
@media (max-width: 900px) {
.progress-section {
margin: 0 0 16px;
padding: 0;
background: transparent;
box-shadow: none;
border-radius: 0;
width: 100%;
}
.progress-bar {
height: 4px;
background: rgba(0, 0, 0, 0.05);
margin-bottom: 10px;
border-radius: 2px;
}
.progress-fill {
background: var(--dm-orange);
box-shadow: 0 1px 3px rgba(233, 80, 55, 0.3);
border-radius: 2px;
}
.progress-fill::after {
width: 4px;
}
.progress-info {
font-size: 13px;
color: var(--dm-navy);
opacity: 0.8;
font-weight: 500;
justify-content: center;
}
.progress-complete {
color: var(--dm-orange);
font-weight: 600;
}
.progress-complete::before {
font-size: 14px;
}
}
/* Touch devices: Enhanced mobile styling */
@media (hover: none) and (pointer: coarse) {
.progress-bar {
height: 3px;
}
.progress-fill {
box-shadow: 0 0 6px rgba(233, 80, 55, 0.4);
}
.progress-info {
font-size: 12px;
}
}
