Files
bot-pontos/web/app/globals.css
2026-10-23 22:31:02 -03:00

386 lines
6.0 KiB
CSS

/* Estilo do painel: CSS próprio, sem framework (ARQUITETURA.md, decisão 27). */
:root {
--bg: #f5f6f8;
--surface: #ffffff;
--text: #1c2024;
--muted: #5f6b7a;
--border: #dde1e6;
--accent: #2457c5;
--accent-text: #ffffff;
--ok-bg: #e3f5e8;
--ok-text: #1d6b34;
--warn-bg: #fdf3d8;
--warn-text: #7a5300;
--error-bg: #fde8e8;
--error-text: #a61b1b;
--radius: 8px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #111418;
--surface: #1a1f25;
--text: #e6e9ed;
--muted: #9aa5b1;
--border: #2b323b;
--accent: #5b8cff;
--accent-text: #0b1020;
--ok-bg: #173a24;
--ok-text: #7fd89a;
--warn-bg: #3a3014;
--warn-text: #f0c96a;
--error-bg: #3d1a1a;
--error-text: #f39b9b;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
font-size: 15px;
line-height: 1.5;
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1 {
font-size: 1.5rem;
margin: 0 0 16px;
}
h2 {
font-size: 1.1rem;
margin: 0 0 12px;
}
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.85em;
}
/* --- estrutura --- */
.container {
max-width: 1100px;
margin: 0 auto;
padding: 24px 16px 48px;
}
.topbar {
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.topbar-inner {
max-width: 1100px;
margin: 0 auto;
padding: 10px 16px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 24px;
}
.brand {
font-weight: 700;
color: var(--text);
}
.topbar nav {
display: flex;
flex-wrap: wrap;
gap: 4px 16px;
flex: 1;
}
.whoami {
display: flex;
align-items: center;
gap: 8px;
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px 20px;
margin: 0 0 16px;
}
.login {
min-height: 100vh;
display: grid;
place-items: center;
padding: 16px;
}
.login .card {
width: 100%;
max-width: 360px;
}
.login .btn {
width: 100%;
}
/* --- textos e selos --- */
.muted {
color: var(--muted);
}
.small {
font-size: 0.85rem;
}
.nowrap {
white-space: nowrap;
}
.error-text {
color: var(--error-text);
}
.ok-text {
color: var(--ok-text);
}
.badge {
display: inline-block;
padding: 1px 8px;
border-radius: 999px;
font-size: 0.8rem;
font-weight: 600;
background: var(--border);
white-space: nowrap;
}
.badge.ok {
background: var(--ok-bg);
color: var(--ok-text);
}
.badge.warn {
background: var(--warn-bg);
color: var(--warn-text);
}
.badge.error {
background: var(--error-bg);
color: var(--error-text);
}
.alert {
border-radius: var(--radius);
padding: 12px 16px;
margin-bottom: 16px;
}
.alert.warn {
background: var(--warn-bg);
color: var(--warn-text);
}
.alert.error {
background: var(--error-bg);
color: var(--error-text);
}
/* --- botões e formulários --- */
.btn {
font: inherit;
border-radius: 6px;
padding: 6px 14px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
cursor: pointer;
}
.btn:disabled {
opacity: 0.6;
cursor: progress;
}
.btn.primary {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-text);
}
.btn.danger {
border-color: var(--error-text);
color: var(--error-text);
}
.btn.link {
border: none;
background: none;
color: var(--accent);
padding: 0;
}
.action {
display: inline-flex;
flex-direction: column;
gap: 4px;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: flex-start;
margin: 12px 0;
}
input,
select {
font: inherit;
color: var(--text);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 10px;
max-width: 100%;
}
.field {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 12px;
}
.field > span {
font-size: 0.9rem;
font-weight: 600;
}
.checkbox {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.fieldset {
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 16px;
margin: 8px 0 16px;
}
.grid-4 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0 16px;
}
.inline-form {
display: flex;
flex-wrap: wrap;
gap: 0 16px;
align-items: flex-end;
}
.inline-form .btn {
margin-bottom: 12px;
}
.inline-form p {
flex-basis: 100%;
margin: 0;
}
.filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
margin-bottom: 16px;
}
/* --- dados --- */
.table-wrap {
overflow-x: auto;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 16px;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
text-align: left;
padding: 8px 12px;
border-bottom: 1px solid var(--border);
vertical-align: top;
}
th {
font-size: 0.85rem;
color: var(--muted);
font-weight: 600;
}
tr:last-child td {
border-bottom: none;
}
.details {
word-break: break-word;
}
.kv {
display: grid;
grid-template-columns: max-content 1fr;
gap: 6px 16px;
margin: 0;
}
.kv dt {
color: var(--muted);
}
.kv dd {
margin: 0;
}
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.stat {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 16px;
}
.stat a {
color: inherit;
text-decoration: none;
}
.stat-value {
display: block;
font-size: 1.6rem;
font-weight: 700;
}
.stat-label {
color: var(--muted);
font-size: 0.85rem;
}
.stat.error .stat-value {
color: var(--error-text);
}
.inline-list {
display: flex;
flex-wrap: wrap;
gap: 8px 24px;
list-style: none;
margin: 0;
padding: 0;
}
.preview {
border-top: 1px solid var(--border);
margin-top: 12px;
padding-top: 12px;
}
@media (max-width: 600px) {
.kv {
grid-template-columns: 1fr;
}
.kv dd {
margin-bottom: 8px;
}
}