fns-receipt-service/public/styles.css
romantarkin 87f6f35572 fix
2026-06-08 14:58:11 +05:00

356 lines
4.9 KiB
CSS

:root {
color-scheme: light;
--bg: #f4f7f6;
--surface: #ffffff;
--surface-2: #eef3f1;
--text: #16211e;
--muted: #63716d;
--line: #d9e1de;
--accent: #0f766e;
--accent-2: #c2410c;
--ok: #15803d;
--warn: #b45309;
--bad: #b91c1c;
--shadow: 0 12px 30px rgba(28, 45, 40, 0.08);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button,
input,
select {
font: inherit;
}
button {
min-height: 38px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--surface);
color: var(--text);
cursor: pointer;
padding: 0 14px;
}
button:hover {
border-color: var(--accent);
}
button[type="submit"],
#sync-fns {
background: var(--accent);
border-color: var(--accent);
color: #ffffff;
}
input,
select {
width: 100%;
min-height: 38px;
border: 1px solid var(--line);
border-radius: 6px;
background: #ffffff;
color: var(--text);
padding: 8px 10px;
}
input:focus {
outline: 2px solid rgba(15, 118, 110, 0.2);
border-color: var(--accent);
}
.topbar {
display: grid;
grid-template-columns: 1fr minmax(280px, 420px);
gap: 18px;
align-items: center;
padding: 22px 28px;
background: var(--surface);
border-bottom: 1px solid var(--line);
}
h1,
h2,
p {
margin: 0;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 18px;
}
#subtitle,
.settings-head p {
color: var(--muted);
margin-top: 4px;
}
.login,
.session-actions,
.toolbar,
.form-footer,
.settings-head {
display: flex;
gap: 10px;
align-items: center;
}
.session-actions {
justify-content: flex-end;
}
.tabs {
display: flex;
gap: 4px;
padding: 10px 28px 0;
}
.tab {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
background: transparent;
}
.tab.active {
background: var(--surface);
border-bottom-color: var(--surface);
color: var(--accent);
}
main {
padding: 22px 28px 34px;
}
.view {
display: none;
}
.view.active {
display: block;
}
.toolbar {
justify-content: flex-end;
margin-bottom: 14px;
}
.search {
flex: 1;
min-width: 220px;
}
.metrics {
display: grid;
grid-template-columns: repeat(3, minmax(120px, 1fr));
gap: 12px;
margin-bottom: 14px;
}
.metrics div,
.panel,
.table-wrap,
.output {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
}
.metrics div {
padding: 16px;
}
.metrics span {
display: block;
font-size: 24px;
font-weight: 700;
}
.metrics small {
color: var(--muted);
}
.table-wrap {
overflow: auto;
}
table {
width: 100%;
min-width: 860px;
border-collapse: collapse;
}
th,
td {
padding: 11px 12px;
border-bottom: 1px solid var(--line);
text-align: left;
vertical-align: top;
}
th {
color: var(--muted);
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
}
td a {
color: var(--accent);
text-decoration: none;
}
.muted {
color: var(--muted);
}
.badge {
display: inline-flex;
align-items: center;
min-height: 24px;
border-radius: 999px;
padding: 2px 9px;
background: var(--surface-2);
color: var(--muted);
white-space: nowrap;
}
.badge.ok {
background: #dcfce7;
color: var(--ok);
}
.badge.warn {
background: #ffedd5;
color: var(--warn);
}
.badge.bad {
background: #fee2e2;
color: var(--bad);
}
.panel {
padding: 18px;
}
.form-grid {
display: grid;
gap: 16px;
}
.items-head {
display: flex;
justify-content: space-between;
align-items: center;
}
.items-list {
display: grid;
gap: 8px;
}
.item-row {
display: grid;
grid-template-columns: minmax(90px, 0.7fr) minmax(180px, 2fr) minmax(90px, 0.8fr) minmax(80px, 0.6fr) 38px;
gap: 8px;
align-items: center;
}
.remove-item {
padding: 0;
}
.form-footer {
justify-content: space-between;
}
.settings-head {
justify-content: space-between;
margin-bottom: 16px;
}
.settings-list {
display: grid;
grid-template-columns: repeat(2, minmax(240px, 1fr));
gap: 14px;
}
.setting label {
display: flex;
justify-content: space-between;
gap: 8px;
color: var(--muted);
margin-bottom: 5px;
}
.source {
font-size: 12px;
}
.output {
min-height: 320px;
overflow: auto;
padding: 16px;
white-space: pre-wrap;
}
.toast {
position: fixed;
right: 22px;
bottom: 22px;
max-width: min(420px, calc(100vw - 44px));
padding: 12px 14px;
background: var(--text);
color: #ffffff;
border-radius: 8px;
box-shadow: var(--shadow);
}
.hidden {
display: none;
}
@media (max-width: 760px) {
.topbar {
grid-template-columns: 1fr;
padding: 18px;
}
.tabs {
padding-inline: 18px;
overflow-x: auto;
}
main {
padding: 18px;
}
.toolbar,
.login,
.form-footer,
.settings-head {
align-items: stretch;
flex-direction: column;
}
.metrics,
.settings-list,
.item-row {
grid-template-columns: 1fr;
}
}