bff6d70b17
Aplicatie Flask + SQLite pentru productie alimentara: cantarirea componentelor unui produs finit si tiparirea etichetei prin QZ Tray. - produse finite (retete) formate din componente cantarite - designer vizual de etichete (mm/px, zona sigura, campuri variabile, cod QR cu continut din mai multe bucati) - legare produs finit -> sablon de eticheta - navigare pe doua taburi: Cantarire / Setari - administrare: componente, produse finite, sabloane, campuri, istoric - backup, resetare baza de date, checklist de pregatire, /healthz - CLI de administrare si serviciu systemd pentru productie - vendor/syncpulse-scale-bridge (GPL-3.0-or-later) pentru citirea cantarului
727 lines
19 KiB
CSS
727 lines
19 KiB
CSS
:root {
|
|
--bg: #eef2f6;
|
|
--panel: #ffffff;
|
|
--panel-soft: #f7f9fb;
|
|
--ink: #0f172a;
|
|
--muted: #64748b;
|
|
--line: #dbe3ec;
|
|
--brand: #0f766e;
|
|
--brand-dark: #115e59;
|
|
--brand-soft: #ccfbf1;
|
|
--ok: #15803d;
|
|
--ok-soft: #dcfce7;
|
|
--warn: #b45309;
|
|
--warn-soft: #fef3c7;
|
|
--err: #b91c1c;
|
|
--err-soft: #fee2e2;
|
|
--radius: 12px;
|
|
--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
}
|
|
|
|
a { color: var(--brand-dark); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
code, .code, pre, .code-block {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: .9em;
|
|
}
|
|
|
|
/* -- layout -------------------------------------------------------------- */
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
padding: 12px 24px;
|
|
background: #0b1220;
|
|
color: #e2e8f0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
}
|
|
|
|
.brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: #fff;
|
|
font-weight: 700;
|
|
letter-spacing: .2px;
|
|
}
|
|
.brand:hover { text-decoration: none; }
|
|
|
|
.brand-mark {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
background: linear-gradient(135deg, #14b8a6, #0f766e);
|
|
color: #04211d;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
.nav a {
|
|
color: #cbd5e1;
|
|
padding: 8px 12px;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
}
|
|
.nav a:hover { background: #1e293b; color: #fff; text-decoration: none; }
|
|
.nav a.active { background: #14532d; color: #d1fae5; }
|
|
|
|
/* -- subnavigatie pentru sectiunea Setari -------------------------------- */
|
|
.subnav {
|
|
position: sticky;
|
|
top: 62px; /* inaltimea topbar-ului */
|
|
z-index: 19;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.subnav-inner {
|
|
max-width: 1180px;
|
|
margin: 0 auto;
|
|
padding: 8px 24px;
|
|
display: flex;
|
|
gap: 4px;
|
|
overflow-x: auto;
|
|
scrollbar-width: thin;
|
|
}
|
|
.subnav a {
|
|
flex: none;
|
|
padding: 7px 14px;
|
|
border-radius: 999px;
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: #475569;
|
|
white-space: nowrap;
|
|
}
|
|
.subnav a:hover { background: #e2e8f0; color: var(--ink); text-decoration: none; }
|
|
.subnav a.active { background: var(--brand); color: #fff; }
|
|
|
|
/* -- carduri de administrare (hub in Setari) ----------------------------- */
|
|
.hub-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
|
|
gap: 12px;
|
|
margin: 0 0 18px;
|
|
}
|
|
.hub-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
color: inherit;
|
|
}
|
|
.hub-card:hover { border-color: var(--brand); background: #fff; text-decoration: none; }
|
|
.hub-title { font-weight: 700; font-size: 15px; }
|
|
.hub-meta { font-size: 12.5px; color: var(--muted); }
|
|
|
|
/* -- QZ Tray status ------------------------------------------------------ */
|
|
.qz-pill {
|
|
margin-left: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 7px 13px;
|
|
border: 1px solid #334155;
|
|
border-radius: 999px;
|
|
background: #111c2e;
|
|
color: #cbd5e1;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
.qz-pill:hover { background: #1e293b; }
|
|
.qz-pill:disabled { cursor: default; opacity: 1; }
|
|
.qz-pill[data-qz-state="ready"] { border-color: #15803d; color: #bbf7d0; }
|
|
.qz-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #94a3b8;
|
|
flex: none;
|
|
}
|
|
.qz-pill[data-qz-state="ready"] .qz-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
|
|
.qz-pill[data-qz-state="connecting"] .qz-dot { background: #f59e0b; }
|
|
.qz-pill[data-qz-state="offline"] .qz-dot,
|
|
.qz-pill[data-qz-state="missing"] .qz-dot { background: #ef4444; }
|
|
|
|
.qz-hint {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
padding-top: 12px;
|
|
margin-top: 10px;
|
|
border-top: 1px dashed var(--line);
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
.qz-state-line { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
|
|
|
|
.container {
|
|
max-width: 1240px;
|
|
margin: 0 auto;
|
|
padding: 24px 24px 56px;
|
|
}
|
|
|
|
.footer {
|
|
max-width: 1240px;
|
|
margin: 0 auto;
|
|
padding: 20px 24px 32px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.page-head {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
margin-bottom: 18px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.page-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.4px; }
|
|
.subtitle { margin: 0; color: var(--muted); }
|
|
|
|
.stats { display: flex; gap: 10px; }
|
|
.stat {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 10px 16px;
|
|
min-width: 110px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.stat-value { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
|
|
.stat-label { display: block; color: var(--muted); font-size: 12px; }
|
|
|
|
/* -- cards --------------------------------------------------------------- */
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
box-shadow: var(--shadow);
|
|
min-width: 0;
|
|
}
|
|
.card h2 { margin: 0 0 14px; font-size: 17px; }
|
|
.card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.card-head h2 { margin: 0; }
|
|
.card.narrow { max-width: 620px; }
|
|
|
|
.grid { display: grid; gap: 18px; }
|
|
.weigh-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); margin-bottom: 18px; }
|
|
.template-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: start; }
|
|
.settings-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
|
|
|
|
@media (max-width: 900px) {
|
|
.weigh-grid, .template-grid, .settings-grid { grid-template-columns: 1fr; }
|
|
/* cele doua taburi principale raman vizibile si pe ecrane mici */
|
|
.topbar { gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
|
|
.brand-text { display: none; }
|
|
.nav a { padding: 7px 10px; font-size: 14px; }
|
|
.subnav { top: 54px; }
|
|
.subnav-inner { padding: 6px 14px; }
|
|
.subnav a { padding: 6px 11px; font-size: 12.5px; }
|
|
}
|
|
|
|
/* -- forms --------------------------------------------------------------- */
|
|
.form, .filters { display: flex; flex-direction: column; gap: 14px; }
|
|
.filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
|
|
|
|
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
.field > label { font-weight: 600; font-size: 13px; color: #334155; }
|
|
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
|
.field.grow { flex: 1 1 220px; }
|
|
.actions-field { flex-direction: row; gap: 8px; }
|
|
|
|
input[type="text"], input[type="search"], input[type="date"], input[type="number"],
|
|
select, textarea {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid #c8d3e0;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
color: var(--ink);
|
|
font: inherit;
|
|
}
|
|
input:focus, select:focus, textarea:focus {
|
|
outline: none;
|
|
border-color: var(--brand);
|
|
box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
|
|
}
|
|
textarea { resize: vertical; }
|
|
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.45; }
|
|
|
|
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; }
|
|
.req { color: var(--err); }
|
|
.inline-select { width: auto; padding: 6px 10px; font-size: 13px; }
|
|
.inline { display: inline; }
|
|
|
|
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
|
|
|
|
/* Formularul de creare sablon: nume + buton, pe un singur rand. */
|
|
.new-template-form { display: flex; align-items: center; gap: 8px; }
|
|
.new-template-form input[type="text"] { width: 190px; padding: 9px 11px; }
|
|
.new-template-form .btn { flex: none; }
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
border: 1px solid #c8d3e0;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
color: var(--ink);
|
|
font: inherit;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
.btn:hover { background: var(--panel-soft); text-decoration: none; }
|
|
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
|
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
|
|
.btn.primary:hover { background: var(--brand-dark); }
|
|
.btn.ghost { background: transparent; }
|
|
.btn.danger { color: var(--err); }
|
|
.btn.warn {
|
|
background: #fffbeb;
|
|
border-color: #f59e0b;
|
|
color: #92400e;
|
|
font-weight: 600;
|
|
}
|
|
.btn.warn:hover { background: #fef3c7; border-color: #d97706; }
|
|
|
|
.link {
|
|
background: none;
|
|
border: 0;
|
|
padding: 0 6px;
|
|
color: var(--brand-dark);
|
|
font: inherit;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
.link:hover { text-decoration: underline; }
|
|
.link.danger { color: var(--err); }
|
|
|
|
/* -- scale display ------------------------------------------------------- */
|
|
.scale-card { display: flex; flex-direction: column; }
|
|
.scale-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
}
|
|
.dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
|
|
.dot.ok { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
|
|
.dot.off { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
|
|
.chip {
|
|
margin-left: auto;
|
|
background: var(--panel-soft);
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
padding: 3px 10px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.weight-display {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 26px 12px 18px;
|
|
background:
|
|
radial-gradient(circle at 50% 0%, rgba(20, 184, 166, .12), transparent 62%),
|
|
var(--panel-soft);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
}
|
|
#weight-value {
|
|
font-size: clamp(48px, 9vw, 88px);
|
|
font-weight: 800;
|
|
letter-spacing: -2px;
|
|
line-height: 1;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
#weight-value.unstable { color: #b45309; }
|
|
#weight-value.error { color: #b91c1c; }
|
|
.weight-unit { font-size: 24px; font-weight: 700; color: var(--muted); }
|
|
|
|
.weight-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin: 12px 0 4px;
|
|
min-height: 28px;
|
|
}
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
background: #e2e8f0;
|
|
color: #334155;
|
|
}
|
|
.badge.ok { background: var(--ok-soft); color: var(--ok); }
|
|
.badge.warn { background: var(--warn-soft); color: var(--warn); }
|
|
.badge.err { background: var(--err-soft); color: var(--err); }
|
|
.badge.off { background: #e2e8f0; color: var(--muted); }
|
|
.raw { margin-left: auto; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
|
|
|
|
.scale-hint {
|
|
margin-top: auto;
|
|
padding-top: 14px;
|
|
border-top: 1px dashed var(--line);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* -- messages ------------------------------------------------------------ */
|
|
.message { margin: 12px 0 0; min-height: 20px; font-weight: 500; }
|
|
.message.error { color: var(--err); }
|
|
.message.success { color: var(--ok); }
|
|
.message.info { color: var(--muted); }
|
|
.muted { color: var(--muted); }
|
|
.small { font-size: 12.5px; }
|
|
|
|
.notice {
|
|
padding: 14px 16px;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--line);
|
|
margin-bottom: 16px;
|
|
background: var(--panel);
|
|
}
|
|
.notice.warning { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }
|
|
.notice a { color: inherit; text-decoration: underline; }
|
|
|
|
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
|
|
.flash {
|
|
padding: 12px 16px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel);
|
|
font-weight: 500;
|
|
}
|
|
.flash-success { background: var(--ok-soft); border-color: #bbf7d0; color: #14532d; }
|
|
.flash-error { background: var(--err-soft); border-color: #fecaca; color: #7f1d1d; }
|
|
|
|
/* -- tables -------------------------------------------------------------- */
|
|
.table-wrap { overflow-x: auto; }
|
|
.table { width: 100%; border-collapse: collapse; }
|
|
.table th, .table td {
|
|
text-align: left;
|
|
padding: 11px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
vertical-align: middle;
|
|
}
|
|
.table th {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .4px;
|
|
color: var(--muted);
|
|
background: var(--panel-soft);
|
|
}
|
|
.table tbody tr:hover { background: #f8fafc; }
|
|
.table.compact th, .table.compact td { padding: 8px 10px; }
|
|
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
.table .right { text-align: right; }
|
|
.nowrap { white-space: nowrap; }
|
|
.row-muted td { color: var(--muted); }
|
|
|
|
/* -- help / settings ----------------------------------------------------- */
|
|
.help-card { background: var(--panel-soft); }
|
|
.help-card h2:not(:first-child) { margin-top: 22px; }
|
|
.var-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
|
|
.var-list code { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; }
|
|
.code-block {
|
|
margin: 0;
|
|
padding: 12px;
|
|
background: #0b1220;
|
|
color: #d1fae5;
|
|
border-radius: 8px;
|
|
overflow-x: auto;
|
|
font-size: 12.5px;
|
|
line-height: 1.5;
|
|
}
|
|
.profile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
|
|
.profile-list li { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
|
|
|
|
/* -- monitor serial ------------------------------------------------------ */
|
|
.monitor-options {
|
|
display: flex;
|
|
gap: 18px;
|
|
flex-wrap: wrap;
|
|
margin-top: 14px;
|
|
padding-top: 14px;
|
|
border-top: 1px dashed var(--line);
|
|
}
|
|
.monitor-options .check { font-size: 13px; }
|
|
.card h3 { margin: 20px 0 10px; font-size: 15px; color: #1e293b; }
|
|
code.hex {
|
|
display: inline-block;
|
|
max-width: 420px;
|
|
overflow-wrap: anywhere;
|
|
font-size: 11.5px;
|
|
color: #0f766e;
|
|
}
|
|
|
|
/* -- fluxul de cântărire ------------------------------------------------ */
|
|
.flow-card { display: flex; flex-direction: column; }
|
|
.flow-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.flow-head h2 { margin: 0; }
|
|
.flow-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
|
|
|
|
.step {
|
|
padding: 18px;
|
|
border-radius: var(--radius);
|
|
background:
|
|
radial-gradient(circle at 50% 0%, rgba(20, 184, 166, .14), transparent 65%),
|
|
var(--panel-soft);
|
|
border: 1px solid var(--line);
|
|
text-align: center;
|
|
}
|
|
.step-label {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: .6px;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
.step-component {
|
|
font-size: clamp(28px, 4.4vw, 44px);
|
|
font-weight: 800;
|
|
letter-spacing: -.6px;
|
|
line-height: 1.1;
|
|
margin: 4px 0 2px;
|
|
}
|
|
.step-target { color: var(--brand-dark); font-weight: 700; }
|
|
|
|
.plan {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 14px;
|
|
color: #334155;
|
|
}
|
|
.plan li {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
border-radius: 8px;
|
|
background: var(--panel-soft);
|
|
border: 1px solid var(--line);
|
|
}
|
|
.plan .w {
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 700;
|
|
min-width: 74px;
|
|
color: var(--ink);
|
|
}
|
|
.plan.accepted li { background: #f0fdf4; border-color: #bbf7d0; }
|
|
|
|
.done { text-align: center; padding: 8px 0 2px; }
|
|
.done-mark {
|
|
width: 52px;
|
|
height: 52px;
|
|
margin: 0 auto 8px;
|
|
border-radius: 50%;
|
|
display: grid;
|
|
place-items: center;
|
|
background: var(--ok-soft);
|
|
color: var(--ok);
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
}
|
|
.done-total { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
|
|
.done-total .value { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
|
|
.done-total .unit { font-size: 18px; font-weight: 700; color: var(--muted); }
|
|
|
|
.component-row {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: var(--panel-soft);
|
|
}
|
|
.component-index {
|
|
flex: none;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 50%;
|
|
background: var(--brand);
|
|
color: #fff;
|
|
font-weight: 800;
|
|
font-size: 13px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.component-target { flex: none; width: 110px; }
|
|
|
|
.hint { margin: 0; }
|
|
|
|
/* -- print / toast ------------------------------------------------------- */
|
|
.print-frame {
|
|
position: fixed;
|
|
width: 1px;
|
|
height: 1px;
|
|
left: -9999px;
|
|
top: -9999px;
|
|
border: 0;
|
|
visibility: hidden;
|
|
}
|
|
.hidden { display: none !important; }
|
|
|
|
.toast {
|
|
position: fixed;
|
|
right: 24px;
|
|
bottom: 24px;
|
|
max-width: 420px;
|
|
padding: 12px 16px;
|
|
border-radius: 10px;
|
|
background: #0b1220;
|
|
color: #e2e8f0;
|
|
box-shadow: 0 12px 32px rgba(15, 23, 42, .3);
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
transition: opacity .18s ease, transform .18s ease;
|
|
pointer-events: none;
|
|
font-weight: 500;
|
|
z-index: 50;
|
|
}
|
|
.toast.show { opacity: 1; transform: translateY(0); }
|
|
.toast.error { background: #7f1d1d; color: #fee2e2; }
|
|
.toast.warn { background: #78350f; color: #fef3c7; }
|
|
.toast.success { background: #14532d; color: #dcfce7; }
|
|
|
|
/* -- campuri variabile --------------------------------------------------- */code.field-template {
|
|
display: inline-block;
|
|
max-width: 320px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
vertical-align: bottom;
|
|
padding: 2px 6px;
|
|
border-radius: 5px;
|
|
background: var(--panel-soft);
|
|
font-size: 12px;
|
|
}
|
|
.field-preview {
|
|
padding: 10px 12px;
|
|
border: 1px dashed #c8d3e0;
|
|
border-radius: 8px;
|
|
background: var(--panel-soft);
|
|
font-size: 15px;
|
|
min-height: 42px;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
.field-preview.error { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; font-size: 13px; }
|
|
.field-chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.field-chip {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 7px 11px;
|
|
border: 1px solid #c8d3e0;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.field-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
|
|
.chip-label { font-size: 12.5px; font-weight: 600; }
|
|
.chip-sample { font-size: 11px; color: var(--muted); }
|
|
|
|
/* -- checklist de pornire ------------------------------------------------ */
|
|
.setup-card { margin-bottom: 18px; border-left: 4px solid #f59e0b; }
|
|
.setup-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.setup-head h2 { margin: 0 0 2px; }
|
|
.setup-head p { margin: 0; }
|
|
.setup-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
|
|
.setup-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: var(--panel-soft);
|
|
}
|
|
.setup-mark {
|
|
flex: none;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: #fde68a;
|
|
color: #92400e;
|
|
font-weight: 800;
|
|
font-size: 13px;
|
|
}
|
|
.setup-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
|
|
.setup-item .btn { flex: none; padding: 7px 12px; font-size: 13px; }
|
|
|
|
.system-list { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 4px; }
|
|
.system-list code { word-break: break-all; font-size: 11.5px; }
|