Files
steve 657de9e61a fix(ui): resolve deposit panel scroll and PDF open on iOS
- Switch #deposit-panel to 100dvh so iOS browser chrome doesn't clip the Save button
- Move overflow-y:auto to #deposit-panel-body so the actions footer stays pinned
- Replace window.open(blob:) with <a download> click to fix PDF opening in Firefox iOS
  (Firefox iOS blocks blob: URL navigation in new tabs)

Closes #7, closes #9
2026-04-28 08:32:07 -06:00

1034 lines
24 KiB
CSS

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #f5f5f5;
--surface: #ffffff;
--border: #d0d0d0;
--header-bg: #1a2b3c;
--header-fg: #ffffff;
--primary: #2563eb;
--primary-hover: #1d4ed8;
--danger: #dc2626;
--text: #1a1a1a;
--text-muted: #6b7280;
--row-hover: #f0f4ff;
--panel-width: 420px;
--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body {
font-family: var(--font);
font-size: 13px;
background: var(--bg);
color: var(--text);
height: 100vh;
overflow: hidden;
}
#main-app {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
#main-app[hidden] { display: none; }
/* ── Header ── */
header {
background: var(--header-bg);
color: var(--header-fg);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 1rem;
height: 44px;
flex-shrink: 0;
}
.header-brand { font-size: 15px; font-weight: 600; }
.header-info { font-size: 12px; color: rgba(255,255,255,0.7); }
.header-info strong { color: #fff; }
.header-left { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-username { font-size: 12px; color: rgba(255,255,255,0.7); }
.account-switcher {
background: rgba(255,255,255,0.15);
border: 1px solid rgba(255,255,255,0.3);
color: #fff;
border-radius: 4px;
padding: 2px 6px;
font-size: 12px;
cursor: pointer;
}
.account-switcher option { background: var(--header-bg); color: #fff; }
.btn-header-icon {
background: rgba(255,255,255,0.15);
border: 1px solid rgba(255,255,255,0.3);
color: #fff;
border-radius: 4px;
padding: 2px 7px;
font-size: 14px;
cursor: pointer;
line-height: 1.4;
}
.btn-header-icon:hover { background: rgba(255,255,255,0.28); }
.btn-header-inline {
background: none;
border: none;
color: rgba(255,255,255,0.5);
font-size: 11px;
cursor: pointer;
padding: 0 0 0 4px;
line-height: 1;
vertical-align: middle;
}
.btn-header-inline:hover { color: #fff; }
.warning-box {
background: #fef9c3;
border: 1px solid #ca8a04;
border-radius: 4px;
padding: 10px 12px;
font-size: 12px;
color: #713f12;
line-height: 1.5;
}
.modal-wide { width: min(720px, 96vw); }
.modal.modal-layout-editor { width: min(1400px, 96vw); height: 92vh; max-height: 92vh; }
.layout-editor-body { flex: 1; min-height: 0; flex-direction: column !important; padding: 0 !important; gap: 0; overflow: hidden; }
.layout-canvas-area { flex: 1; min-height: 0; display: grid; grid-template-columns: 24px 1fr; grid-template-rows: 24px 1fr; }
.layout-ruler-corner { background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#layout-ruler-top { background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
#layout-ruler-left { background: var(--surface); border-right: 1px solid var(--border); overflow: hidden; }
#layout-canvas-container { overflow: hidden; background: #d4d4d4; }
.layout-controls { flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.layout-coord { display: flex; align-items: center; gap: 4px; }
.layout-coord label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; margin: 0; }
.layout-coord input { width: 68px; }
.layout-coord .frac { font-size: 11px; color: var(--text-muted); min-width: 28px; }
.qbo-tabs {
display: flex;
border-bottom: 1px solid var(--border);
background: #f9f9f9;
padding: 0 16px;
}
.qbo-tab {
background: none;
border: none;
border-bottom: 2px solid transparent;
padding: 8px 16px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
color: var(--text-muted);
margin-bottom: -1px;
}
.qbo-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.qbo-tab:hover:not(.active) { color: var(--text); }
.qbo-preview-count { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.qbo-warnings { font-size: 11px; color: #b45309; background: #fef9c3; border: 1px solid #ca8a04; border-radius: 3px; padding: 6px 8px; margin-bottom: 8px; }
.qbo-preview-scroll { max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: 4px; }
.qbo-preview-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.qbo-preview-table th { background: #f5f5f5; padding: 5px 8px; text-align: left; font-weight: 600; position: sticky; top: 0; border-bottom: 1px solid var(--border); }
.qbo-preview-table td { padding: 4px 8px; border-bottom: 1px solid #f0f0f0; }
.qbo-preview-table tr:last-child td { border-bottom: none; }
.qbo-preview-table .text-muted { color: var(--text-muted); }
.import-result { font-size: 13px; color: #15803d; background: #f0fdf4; border: 1px solid #86efac; border-radius: 4px; padding: 8px 12px; margin-top: 8px; }
/* ── Toolbar ── */
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 1rem;
background: var(--surface);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.toolbar-left { display: flex; align-items: center; gap: 8px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.checks-summary {
padding: 3px 12px;
font-size: 12px;
color: var(--text-muted);
flex-shrink: 0;
min-height: 20px;
}
select {
border: 1px solid var(--border);
border-radius: 4px;
padding: 4px 8px;
font-size: 13px;
font-family: var(--font);
background: var(--surface);
cursor: pointer;
}
/* ── Buttons ── */
button {
cursor: pointer;
border: none;
border-radius: 4px;
font-size: 13px;
font-family: var(--font);
padding: 5px 12px;
line-height: 1.4;
transition: background 0.1s, opacity 0.1s;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; font-weight: 500; }
.btn-primary:not(:disabled):hover { background: var(--primary-hover); }
.btn-secondary {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg); }
.btn-danger { background: #dc2626; color: #fff; font-weight: 500; }
.btn-danger:not(:disabled):hover { background: #b91c1c; }
.delete-account-row { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.btn-icon {
background: transparent;
color: rgba(255,255,255,0.75);
font-size: 22px;
padding: 0 6px;
line-height: 1;
border-radius: 3px;
}
.btn-icon:hover { color: #fff; background: rgba(255,255,255,0.1); }
.btn-sm {
padding: 2px 8px;
font-size: 12px;
}
.btn-edit { background: transparent; color: var(--primary); }
.btn-edit:hover { background: #eff6ff; }
.btn-delete { background: transparent; color: var(--danger); }
.btn-delete:hover { background: #fee2e2; }
.btn-reprint { background: transparent; color: var(--text-muted); }
.btn-reprint:hover { background: var(--bg); }
.badge {
display: inline-block;
background: rgba(255,255,255,0.25);
border-radius: 10px;
padding: 1px 7px;
font-size: 11px;
min-width: 20px;
text-align: center;
font-weight: 600;
}
/* ── Table ── */
.table-wrap {
flex: 1;
overflow-y: auto;
background: var(--surface);
}
table {
width: 100%;
border-collapse: collapse;
}
thead th {
position: sticky;
top: 0;
z-index: 1;
background: #f8f8f8;
border-bottom: 2px solid var(--border);
padding: 6px 8px;
text-align: left;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted);
white-space: nowrap;
user-select: none;
}
thead th.sortable { cursor: pointer; }
thead th.sortable:hover { color: var(--text); }
thead th.sort-asc .sort-indicator::after { content: ' ↑'; }
thead th.sort-desc .sort-indicator::after { content: ' ↓'; }
tbody tr { border-bottom: 1px solid #f0f0f0; }
tbody tr:hover { background: var(--row-hover); }
tbody tr.printed { color: var(--text-muted); }
td {
padding: 6px 8px;
vertical-align: middle;
}
.col-select { width: 32px; }
.col-no { width: 60px; font-variant-numeric: tabular-nums; }
.col-date { width: 95px; white-space: nowrap; }
.col-amount { width: 95px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.col-memo { color: var(--text-muted); font-size: 12px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-status { width: 88px; text-align: center; }
.col-actions { width: 130px; text-align: right; white-space: nowrap; }
.status-badge {
display: inline-block;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 2px 7px;
border-radius: 10px;
}
.status-unprinted { background: #fef3c7; color: #92400e; }
.status-printed { background: #e0f2fe; color: #0369a1; }
.loading-row td,
.empty-row td { text-align: center; padding: 2rem; color: var(--text-muted); }
/* ── Slide-in panel ── */
#panel-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.3);
z-index: 100;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s;
}
#panel-overlay.open { opacity: 1; pointer-events: auto; }
#check-panel {
position: fixed;
top: 0;
right: 0;
width: var(--panel-width);
height: 100vh;
background: var(--surface);
z-index: 101;
box-shadow: -4px 0 24px rgba(0,0,0,0.15);
transform: translateX(100%);
transition: transform 0.2s ease;
display: flex;
flex-direction: column;
overflow-y: auto;
}
#check-panel.open { transform: translateX(0); }
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: var(--header-bg);
color: var(--header-fg);
flex-shrink: 0;
position: sticky;
top: 0;
z-index: 1;
}
.panel-header h2 { font-size: 14px; font-weight: 600; }
/* ── Form ── */
#check-form {
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
flex: 1;
}
.form-group {
display: flex;
flex-direction: column;
gap: 4px;
}
.form-group label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
}
.form-group.required label::after { content: ' *'; color: var(--danger); }
.form-group-check { flex-direction: row; align-items: center; }
.form-group-check label { text-transform: none; font-weight: normal; font-size: 12px; letter-spacing: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.form-group input {
border: 1px solid var(--border);
border-radius: 4px;
padding: 7px 10px;
font-size: 13px;
font-family: var(--font);
width: 100%;
background: var(--surface);
color: var(--text);
}
.form-group input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
.form-group input.error { border-color: var(--danger); }
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.address-section {
border: 1px solid var(--border);
border-radius: 4px;
}
.address-section summary {
padding: 8px 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
cursor: pointer;
user-select: none;
list-style: none;
}
.address-section summary::before { content: '▶ '; font-size: 9px; }
.address-section[open] summary::before { content: '▼ '; }
.address-section[open] summary { border-bottom: 1px solid var(--border); }
.address-fields {
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
.form-actions {
display: flex;
gap: 8px;
padding-top: 4px;
border-top: 1px solid var(--border);
margin-top: auto;
}
.form-actions .btn-primary { flex: 1; padding: 8px; }
/* ── Import modal ── */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.4);
z-index: 200;
opacity: 0;
pointer-events: none;
transition: opacity 0.15s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -48%);
width: 480px;
max-width: calc(100vw - 2rem);
max-height: calc(100vh - 40px);
background: var(--surface);
border-radius: 6px;
box-shadow: 0 8px 32px rgba(0,0,0,0.2);
z-index: 201;
display: flex;
flex-direction: column;
opacity: 0;
pointer-events: none;
transition: opacity 0.15s, transform 0.15s;
}
.modal.open {
opacity: 1;
pointer-events: auto;
transform: translate(-50%, -50%);
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: var(--header-bg);
color: var(--header-fg);
border-radius: 6px 6px 0 0;
flex-shrink: 0;
}
.modal-header h2 { font-size: 14px; font-weight: 600; }
.modal-body {
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
flex: 1;
min-height: 0;
overflow-y: auto;
}
.modal-desc {
font-size: 12px;
color: var(--text-muted);
line-height: 1.5;
}
.modal-desc code {
font-family: monospace;
background: var(--bg);
padding: 1px 4px;
border-radius: 3px;
}
input[type="file"] {
border: 1px solid var(--border);
border-radius: 4px;
padding: 6px 8px;
font-size: 13px;
font-family: var(--font);
width: 100%;
background: var(--surface);
cursor: pointer;
}
.import-log {
font-family: monospace;
font-size: 11px;
background: #0f172a;
color: #94a3b8;
border-radius: 4px;
padding: 10px 12px;
max-height: 200px;
overflow-y: auto;
white-space: pre-wrap;
word-break: break-all;
line-height: 1.5;
}
.import-log.success { color: #86efac; }
.import-log.error { color: #fca5a5; }
.modal-footer {
display: flex;
gap: 8px;
padding: 12px 16px;
border-top: 1px solid var(--border);
}
/* ── Setup wizard ── */
.wizard-modal { width: 520px; }
.wizard-steps-indicator {
display: flex;
align-items: center;
padding: 16px 24px 0;
background: var(--surface);
}
.wizard-step-dot {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
flex-shrink: 0;
}
.wizard-step-dot span {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--border);
color: var(--text-muted);
font-size: 12px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s, color 0.15s;
}
.wizard-step-dot.active span,
.wizard-step-dot.done span {
background: var(--primary);
color: #fff;
}
.wizard-step-dot label {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted);
white-space: nowrap;
}
.wizard-step-dot.active label { color: var(--primary); }
.wizard-step-line {
flex: 1;
height: 2px;
background: var(--border);
margin: 0 8px;
margin-bottom: 18px;
transition: background 0.15s;
}
.wizard-step-line.done { background: var(--primary); }
.wizard-body { min-height: 240px; }
.wizard-error {
margin-top: 4px;
padding: 8px 10px;
background: #fee2e2;
color: var(--danger);
border-radius: 4px;
font-size: 12px;
}
.wizard-footer { justify-content: flex-end; }
.wizard-footer .btn-ghost { margin-right: auto; font-size: 12px; }
.form-row-3 { grid-template-columns: 1fr 80px 100px; }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
.field-hint {
font-size: 11px;
color: var(--text-muted);
margin-top: 2px;
}
/* ── Account settings modal ── */
.settings-section-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
padding-bottom: 4px;
border-bottom: 1px solid var(--border);
margin-top: 4px;
}
.logo-preview {
margin-top: 6px;
}
.logo-preview img {
max-height: 60px;
max-width: 200px;
border: 1px solid var(--border);
border-radius: 3px;
padding: 3px;
}
#acct-settings-modal {
width: min(620px, calc(100vw - 2rem));
}
#acct-settings-modal .modal-body {
max-height: calc(100vh - 160px);
overflow-y: auto;
}
/* ── View nav tabs ── */
.view-nav {
display: flex;
gap: 0;
background: var(--surface);
border-bottom: 2px solid var(--border);
flex-shrink: 0;
padding: 0 1rem;
}
.view-tab {
background: transparent;
border: none;
border-bottom: 2px solid transparent;
border-radius: 0;
padding: 8px 16px;
font-size: 13px;
font-weight: 500;
color: var(--text-muted);
cursor: pointer;
margin-bottom: -2px;
}
.view-tab:hover { color: var(--text); }
.view-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
/* ── View panes ── */
.view-pane {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
}
.view-pane[hidden] { display: none; }
/* ── Deposit panel ── */
#dep-panel-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.3);
z-index: 100;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s;
}
#dep-panel-overlay.open { opacity: 1; pointer-events: auto; }
#deposit-panel {
position: fixed;
top: 0;
right: 0;
width: 560px;
max-width: 98vw;
height: 100dvh;
background: var(--surface);
z-index: 101;
box-shadow: -4px 0 24px rgba(0,0,0,0.15);
transform: translateX(100%);
transition: transform 0.2s ease;
display: flex;
flex-direction: column;
overflow: hidden;
}
#deposit-panel.open { transform: translateX(0); }
#deposit-panel-body {
padding: 16px;
display: flex;
flex-direction: column;
gap: 14px;
flex: 1;
overflow-y: auto;
min-height: 0;
}
.dep-summary {
display: flex;
flex-direction: column;
gap: 10px;
}
.dep-totals {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 4px;
padding: 8px 12px;
display: flex;
flex-direction: column;
gap: 3px;
}
.dep-total-row {
display: flex;
justify-content: space-between;
font-size: 12px;
color: var(--text-muted);
}
.dep-total-grand {
font-size: 13px;
font-weight: 600;
color: var(--text);
margin-top: 4px;
padding-top: 4px;
border-top: 1px solid var(--border);
}
/* Deposit check items table */
.dep-checks-section { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dep-checks-header {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
}
.dep-items-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.dep-items-table thead th {
background: #f8f8f8;
border-bottom: 1px solid var(--border);
padding: 4px 6px;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
color: var(--text-muted);
white-space: nowrap;
position: static;
}
.dep-items-table td {
padding: 2px 4px;
vertical-align: middle;
border-bottom: 1px solid #f0f0f0;
}
.dep-item-input {
border: 1px solid var(--border);
border-radius: 3px;
padding: 3px 6px;
font-size: 12px;
font-family: var(--font);
background: var(--surface);
color: var(--text);
}
.dep-item-input:focus {
outline: none;
border-color: var(--primary);
}
.dep-form-actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
padding-top: 4px;
border-top: 1px solid var(--border);
margin-top: auto;
flex-wrap: wrap;
}
.dep-pdf-btns { display: flex; gap: 6px; }
/* ── Login overlay ── */
.login-overlay {
position: fixed;
inset: 0;
background: var(--header-bg);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
}
.login-overlay.hidden { display: none; }
.login-card {
background: #fff;
border-radius: 8px;
padding: 32px;
width: 360px;
box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.login-logo {
font-size: 22px;
font-weight: 700;
color: var(--header-bg);
margin-bottom: 20px;
letter-spacing: -0.5px;
}
.login-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.login-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.login-divider {
display: flex;
align-items: center;
margin: 16px 0 12px;
gap: 12px;
}
.login-divider::before,
.login-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}
.login-divider span {
font-size: 11px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.btn-oidc {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 10px 16px;
border: 1px solid var(--border);
border-radius: 6px;
background: #fff;
color: var(--text);
font-size: 13px;
font-weight: 500;
text-decoration: none;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-oidc:hover {
background: var(--bg);
border-color: #b0b0b0;
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-oidc:active {
background: #e8e8e8;
}
.btn-oidc svg {
flex-shrink: 0;
color: var(--text-muted);
}
/* ── User management ── */
.account-checkboxes {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 6px;
margin-top: 4px;
}
.account-checkbox-label {
display: grid;
grid-template-columns: 20px 1fr auto;
align-items: center;
gap: 8px;
font-size: 12px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 10px;
cursor: pointer;
height: 64px;
}
.account-checkbox-label:hover { border-color: var(--primary); }
.account-checkbox-label input[type="checkbox"] {
justify-self: center;
}
.account-checkbox-label span {
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.3;
}
.account-checkbox-label select {
flex-shrink: 0;
}
.uf-oidc-section {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border);
}
.uf-oidc-section h4 {
font-size: 13px;
font-weight: 600;
margin-bottom: 10px;
color: var(--text-muted);
}
/* Hide layout editor button on portrait/mobile — canvas needs landscape space */
@media (max-width: 768px), (orientation: portrait) {
#btn-layout-editor { display: none !important; }
}
/* ── Settings Page ── */
.settings-page {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
.settings-page[hidden] { display: none; }
.settings-header {
background: var(--header-bg);
color: var(--header-fg);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 1.5rem;
height: 44px;
flex-shrink: 0;
}
.settings-header-left { display: flex; align-items: center; gap: 12px; }
.settings-header-right { display: flex; align-items: center; gap: 10px; }
.settings-back-link {
color: rgba(255,255,255,0.7);
text-decoration: none;
font-size: 13px;
font-weight: 500;
transition: color 0.15s;
}
.settings-back-link:hover { color: #fff; }
.settings-layout {
display: flex;
flex: 1;
overflow: hidden;
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
.settings-sidebar {
width: 220px;
flex-shrink: 0;
padding: 20px 0;
border-right: 1px solid var(--border);
overflow-y: auto;
background: var(--surface);
}
.settings-sidebar-title {
font-size: 15px;
font-weight: 700;
padding: 4px 20px 16px;
color: var(--text);
}
.settings-nav-group { margin-bottom: 8px; }
.settings-nav-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
padding: 12px 20px 6px;
}
.settings-nav-item {
display: block;
padding: 7px 20px;
font-size: 13px;
color: var(--text);
text-decoration: none;
border-radius: 6px;
margin: 1px 8px;
transition: background 0.12s;
}
.settings-nav-item:hover { background: var(--bg); }
.settings-nav-item.active {
background: var(--primary);
color: #fff;
font-weight: 500;
}
.settings-content {
flex: 1;
padding: 32px 48px;
overflow-y: auto;
max-width: 780px;
}
.settings-panel h2 {
font-size: 20px;
font-weight: 600;
margin-bottom: 4px;
color: var(--text);
}
.settings-panel h3 {
font-size: 14px;
font-weight: 600;
margin-bottom: 12px;
color: var(--text);
}
.settings-desc {
font-size: 13px;
color: var(--text-muted);
margin-bottom: 20px;
line-height: 1.5;
}
.settings-section {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 24px;
margin-bottom: 20px;
}
.settings-section .form-row { gap: 16px; }
.settings-section .form-group { margin-bottom: 4px; }