Files

207 lines
12 KiB
CSS

:root {
--bg: #f3f5f4;
--surface: #ffffff;
--surface-2: #f7faf8;
--border: #e1e7e3;
--text: #16211c;
--muted: #5c6b63;
--faint: #8a978f;
--accent: #0f7a5a;
--accent-ink: #ffffff;
--accent-2: #2f6f8f;
--danger: #b23b3b;
--warn-bg: #fff4e0;
--warn-border: #e6bd76;
--warn-ink: #7a4d10;
--ok-bg: #e2f3ea;
--ok-ink: #14603f;
--err-bg: #fbe4e4;
--err-ink: #8f2626;
--shadow: 0 1px 2px rgba(16,33,26,.05), 0 10px 26px -18px rgba(16,33,26,.22);
--radius: 14px;
--radius-sm: 9px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0e1512; --surface: #141d19; --surface-2: #18231e; --border: #26332c;
--text: #e8efeb; --muted: #9db0a6; --faint: #6c7d74; --accent: #35c491;
--accent-ink: #06231a; --accent-2: #62b4d6; --danger: #e06a6a;
--warn-bg: #33270f; --warn-border: #6b5220; --warn-ink: #f0cd8a;
--ok-bg: #123528; --ok-ink: #7fe0b4; --err-bg: #3a1d1d; --err-ink: #f0a8a8;
--shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 30px -20px rgba(0,0,0,.7);
}
}
:root[data-theme="light"] {
--bg: #f3f5f4; --surface: #ffffff; --surface-2: #f7faf8; --border: #e1e7e3;
--text: #16211c; --muted: #5c6b63; --faint: #8a978f; --accent: #0f7a5a;
--accent-ink: #ffffff; --accent-2: #2f6f8f; --danger: #b23b3b;
--warn-bg: #fff4e0; --warn-border: #e6bd76; --warn-ink: #7a4d10;
--ok-bg: #e2f3ea; --ok-ink: #14603f; --err-bg: #fbe4e4; --err-ink: #8f2626;
--shadow: 0 1px 2px rgba(16,33,26,.05), 0 10px 26px -18px rgba(16,33,26,.22);
}
:root[data-theme="dark"] {
--bg: #0e1512; --surface: #141d19; --surface-2: #18231e; --border: #26332c;
--text: #e8efeb; --muted: #9db0a6; --faint: #6c7d74; --accent: #35c491;
--accent-ink: #06231a; --accent-2: #62b4d6; --danger: #e06a6a;
--warn-bg: #33270f; --warn-border: #6b5220; --warn-ink: #f0cd8a;
--ok-bg: #123528; --ok-ink: #7fe0b4; --err-bg: #3a1d1d; --err-ink: #f0a8a8;
--shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 30px -20px rgba(0,0,0,.7);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
line-height: 1.5;
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
a { color: var(--accent); }
.money { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
/* Topbar */
.topbar {
display: flex; align-items: center; gap: 18px;
padding: 12px 22px; background: var(--surface); border-bottom: 1px solid var(--border);
position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 680; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.brand-mark { font-size: 1.2rem; }
.brand-mark.lg { font-size: 2.2rem; }
.nav { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.nav a { padding: 7px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); font-weight: 550; font-size: .92rem; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { color: var(--accent); background: var(--surface-2); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user { font-size: .85rem; color: var(--muted); }
.theme-toggle { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; color: var(--text); font-size: 1rem; }
.theme-toggle:hover { border-color: var(--accent); }
.inline { display: inline; }
/* Layout */
.main { max-width: 1080px; margin: 0 auto; padding: 26px 20px 70px; display: flex; flex-direction: column; gap: 20px; }
.main-centered { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card h3 { font-size: 1rem; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 9px 15px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: .84rem; }
.btn-lg { padding: 12px 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.link { color: var(--accent); text-decoration: none; font-weight: 550; }
.link:hover { text-decoration: underline; }
.linkbtn { background: none; border: 0; padding: 0 0 0 10px; color: var(--accent); font: inherit; font-weight: 550; cursor: pointer; }
.linkbtn.danger { color: var(--danger); }
/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.field.grow { flex: 1; }
input[type=text], input[type=password], input[type=date], input[type=file] {
font: inherit; color: var(--text); background: var(--surface-2);
border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; min-height: 40px; width: 100%;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-actions, .filters-actions { display: flex; gap: 10px; align-items: center; }
.form-card { max-width: 520px; }
/* Login */
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; width: 100%; max-width: 380px; }
.login-head { text-align: center; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.login-head h1 { font-size: 1.4rem; }
/* Flash */
.flash-stack { display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 11px 14px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid transparent; }
.flash-success { background: var(--ok-bg); color: var(--ok-ink); }
.flash-error { background: var(--err-bg); color: var(--err-ink); }
.flash-info { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
/* Upload panel */
.upload-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.upload-panel h2 { font-size: 1.1rem; margin-bottom: 4px; }
.upload-form { display: flex; gap: 12px; align-items: center; }
.filedrop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); padding: 14px 22px; cursor: pointer; background: var(--surface-2); color: var(--muted); min-width: 240px; text-align: center; }
.filedrop.drag { border-color: var(--accent); color: var(--accent); }
.filedrop-icon { font-size: 1.2rem; }
.filedrop-text { font-size: .85rem; }
/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.kpi-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.kpi-value { display: block; font-size: 1.55rem; font-weight: 680; margin-top: 6px; letter-spacing: -.02em; }
.kpi-value.money { color: var(--accent); }
.kpi-foot { font-size: .78rem; color: var(--muted); }
/* Bar lists */
.barlist { display: flex; flex-direction: column; }
.barrow { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 7px 0; }
.barrow + .barrow { border-top: 1px solid var(--surface-2); }
.barlabel { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bartrack { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.barfill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.barfill.alt { background: var(--accent); }
.barval { font-size: .84rem; font-weight: 600; white-space: nowrap; }
/* Tables */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table thead th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table tbody td { padding: 11px 12px; border-bottom: 1px solid var(--surface-2); }
.table tbody tr:hover td { background: var(--surface-2); }
.table tfoot td { padding: 11px 12px; font-weight: 650; border-top: 2px solid var(--border); }
/* Filters */
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
/* Staging */
.summary-banner { display: flex; gap: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.summary-item { display: flex; flex-direction: column; gap: 2px; }
.summary-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.summary-value { font-size: 1.5rem; font-weight: 700; }
.summary-value.money { color: var(--accent); }
.summary-item.warn .summary-value { color: var(--warn-ink); }
.staging-list { display: flex; flex-direction: column; gap: 12px; }
.staging-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: end; }
.staging-row.row-warn { border-color: var(--warn-border); background: var(--warn-bg); }
.staging-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface-2); text-transform: uppercase; letter-spacing: .03em; }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-border); }
.badge-high { color: var(--ok-ink); }
.badge-low { color: var(--err-ink); }
.badge-fields { text-transform: none; letter-spacing: 0; }
.staging-form { grid-column: 1; display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.staging-form .field { min-width: 130px; }
.staging-actions { display: flex; gap: 8px; align-items: center; }
.staging-discard { grid-column: 2; }
.staging-source { grid-column: 1 / -1; font-size: .74rem; color: var(--faint); }
.confirm-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; }
@media (max-width: 820px) {
.grid-2, .kpis { grid-template-columns: 1fr; }
.upload-panel { grid-template-columns: 1fr; }
.staging-row { grid-template-columns: 1fr; }
.staging-discard { grid-column: 1; }
.nav a:not(.btn) { display: none; }
}