1492 lines
26 KiB
CSS
1492 lines
26 KiB
CSS
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");
|
|
|
|
:root {
|
|
--bg: #f3ece2;
|
|
--bg-deep: #d8cab6;
|
|
--surface: rgba(255, 250, 245, 0.84);
|
|
--surface-strong: #fff8f0;
|
|
--surface-contrast: #25313a;
|
|
--line: rgba(37, 49, 58, 0.12);
|
|
--text: #1d2428;
|
|
--muted: #6e766f;
|
|
--accent: #116d63;
|
|
--accent-soft: rgba(17, 109, 99, 0.12);
|
|
--accent-strong: #0d5b53;
|
|
--danger: #9d3c30;
|
|
--warning: #8a6500;
|
|
--success: #2d6a4f;
|
|
--shadow: 0 30px 80px rgba(54, 44, 27, 0.14);
|
|
--radius-xl: 28px;
|
|
--radius-lg: 22px;
|
|
--radius-md: 16px;
|
|
--radius-sm: 12px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Sora", "Avenir Next", sans-serif;
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(circle at top left, rgba(17, 109, 99, 0.18), transparent 32%),
|
|
radial-gradient(circle at bottom right, rgba(201, 129, 47, 0.18), transparent 28%),
|
|
linear-gradient(135deg, var(--bg) 0%, #efe4d5 52%, var(--bg-deep) 100%);
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
.app-shell {
|
|
display: grid;
|
|
grid-template-columns: minmax(228px, 280px) minmax(0, 1fr);
|
|
min-height: 100vh;
|
|
align-items: start;
|
|
}
|
|
|
|
.sidebar {
|
|
position: sticky;
|
|
top: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 28px 24px;
|
|
min-height: 100vh;
|
|
height: 100vh;
|
|
background: rgba(23, 34, 41, 0.92);
|
|
color: #f8f3ed;
|
|
backdrop-filter: blur(16px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar__brand {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.sidebar__brand h1,
|
|
.topbar__headline h2,
|
|
.section-card h3,
|
|
.login-hero h1,
|
|
.login-hero h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.sidebar__logo {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
min-height: 54px;
|
|
padding: 8px 24px;
|
|
border-radius: 28px;
|
|
background: linear-gradient(135deg, #1d9485, #0f5b53);
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.sidebar__nav {
|
|
display: grid;
|
|
gap: 10px;
|
|
margin: 32px 0 0;
|
|
flex: 1 1 auto;
|
|
align-content: start;
|
|
}
|
|
|
|
.nav-link {
|
|
padding: 14px 16px;
|
|
border-radius: 16px;
|
|
color: rgba(248, 243, 237, 0.78);
|
|
text-decoration: none;
|
|
transition: background 160ms ease, color 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.nav-group {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav-group__label {
|
|
padding: 10px 16px 0;
|
|
color: rgba(248, 243, 237, 0.5);
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
font-size: 0.74rem;
|
|
}
|
|
|
|
.nav-subnav {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding-left: 14px;
|
|
}
|
|
|
|
.nav-subgroup {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.nav-subgroup__label {
|
|
padding: 4px 14px 0;
|
|
color: rgba(248, 243, 237, 0.56);
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-subnav--nested {
|
|
gap: 6px;
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.nav-sublink {
|
|
padding: 10px 14px;
|
|
border-radius: 14px;
|
|
color: rgba(248, 243, 237, 0.72);
|
|
text-decoration: none;
|
|
transition: background 160ms ease, color 160ms ease, transform 160ms ease;
|
|
}
|
|
|
|
.nav-link:hover,
|
|
.nav-link.is-active {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #fff8f0;
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
.nav-sublink:hover,
|
|
.nav-sublink.is-active {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #fff8f0;
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
.sidebar__footer {
|
|
display: grid;
|
|
gap: 12px;
|
|
margin-top: auto;
|
|
padding-top: 24px;
|
|
}
|
|
|
|
.user-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 16px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
width: fit-content;
|
|
}
|
|
|
|
.user-chip--stacked {
|
|
display: grid;
|
|
gap: 4px;
|
|
width: 100%;
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.ghost-button,
|
|
.secondary-button,
|
|
.accent-button,
|
|
.menu-toggle,
|
|
.choice-chip,
|
|
.pathogen-button,
|
|
.matrix-button,
|
|
.eye-button,
|
|
.quarter-tile,
|
|
.user-card,
|
|
.table-link,
|
|
.tab-chip {
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
|
|
}
|
|
|
|
.ghost-button,
|
|
.menu-toggle,
|
|
.secondary-button {
|
|
padding: 12px 18px;
|
|
border-radius: 16px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: inherit;
|
|
}
|
|
|
|
.ghost-button:hover,
|
|
.menu-toggle:hover,
|
|
.secondary-button:hover,
|
|
.choice-chip:hover,
|
|
.pathogen-button:hover,
|
|
.matrix-button:hover,
|
|
.eye-button:hover,
|
|
.quarter-tile:hover,
|
|
.user-card:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.accent-button {
|
|
padding: 13px 20px;
|
|
border-radius: 16px;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
|
|
color: #fcf7f1;
|
|
box-shadow: 0 18px 30px rgba(17, 109, 99, 0.24);
|
|
}
|
|
|
|
.secondary-button {
|
|
background: var(--accent-soft);
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.shell-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
padding: 22px 36px;
|
|
}
|
|
|
|
.content-area {
|
|
padding: 0 36px 36px;
|
|
}
|
|
|
|
.page-stack {
|
|
display: grid;
|
|
gap: 24px;
|
|
}
|
|
|
|
.hero-card,
|
|
.section-card,
|
|
.login-hero__panel {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(255, 255, 255, 0.38);
|
|
border-radius: var(--radius-xl);
|
|
background: var(--surface);
|
|
box-shadow: var(--shadow);
|
|
backdrop-filter: blur(18px);
|
|
}
|
|
|
|
.section-card,
|
|
.hero-card {
|
|
padding: 28px;
|
|
}
|
|
|
|
.section-card--hero {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.hero-card {
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
|
|
.hero-card__form {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.metrics-grid,
|
|
.form-grid,
|
|
.portal-grid {
|
|
display: grid;
|
|
gap: 20px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.metrics-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.form-grid,
|
|
.portal-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.form-grid--stacked {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.portal-grid > :only-child {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.metric-card {
|
|
padding: 22px 24px;
|
|
border-radius: var(--radius-lg);
|
|
background: rgba(255, 248, 240, 0.68);
|
|
border: 1px solid rgba(255, 255, 255, 0.32);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.metric-card__label,
|
|
.eyebrow,
|
|
.muted-text,
|
|
.table-subtext {
|
|
display: block;
|
|
}
|
|
|
|
.metric-card strong {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 8px;
|
|
color: var(--muted);
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.muted-text,
|
|
.table-subtext {
|
|
color: var(--muted);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.field-grid {
|
|
display: grid;
|
|
gap: 16px;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.field-grid--stacked {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field--wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.field--spaced {
|
|
margin-top: 28px;
|
|
}
|
|
|
|
.field span {
|
|
font-size: 0.9rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.field--required span::after,
|
|
.required-label::after {
|
|
content: " *";
|
|
color: var(--danger);
|
|
}
|
|
|
|
.required-label {
|
|
margin: 0 0 12px;
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.field input,
|
|
.field select,
|
|
.field textarea,
|
|
.data-table input,
|
|
.data-table select {
|
|
width: 100%;
|
|
padding: 13px 14px;
|
|
border-radius: 14px;
|
|
border: 1px solid var(--line);
|
|
background: rgba(255, 255, 255, 0.9);
|
|
color: var(--text);
|
|
}
|
|
|
|
.field textarea {
|
|
min-height: 120px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.show-validation .field input:invalid,
|
|
.show-validation .field select:invalid,
|
|
.show-validation .field textarea:invalid,
|
|
.field input.is-invalid,
|
|
.field select.is-invalid,
|
|
.field textarea.is-invalid,
|
|
.data-table input.is-invalid,
|
|
.data-table select.is-invalid,
|
|
.pathogen-grid.is-invalid,
|
|
.choice-row.is-invalid,
|
|
.tab-chip.is-invalid {
|
|
border-color: rgba(157, 60, 48, 0.55);
|
|
box-shadow: 0 0 0 3px rgba(157, 60, 48, 0.12);
|
|
}
|
|
|
|
.choice-row,
|
|
.tab-row,
|
|
.page-actions,
|
|
.table-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.choice-row--wrap {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.choice-chip,
|
|
.tab-chip,
|
|
.pathogen-button,
|
|
.quarter-tile,
|
|
.user-card {
|
|
padding: 13px 16px;
|
|
border-radius: 16px;
|
|
background: rgba(255, 255, 255, 0.74);
|
|
color: var(--text);
|
|
}
|
|
|
|
.choice-chip.is-selected,
|
|
.tab-chip.is-active,
|
|
.pathogen-button.is-selected,
|
|
.matrix-button.is-selected,
|
|
.quarter-tile.is-flagged,
|
|
.user-card {
|
|
background: linear-gradient(135deg, rgba(17, 109, 99, 0.16), rgba(17, 109, 99, 0.08));
|
|
box-shadow: inset 0 0 0 1px rgba(17, 109, 99, 0.32);
|
|
}
|
|
|
|
.tab-chip.is-invalid {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.section-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.section-card__spacer {
|
|
margin-top: 28px;
|
|
}
|
|
|
|
.quarter-grid,
|
|
.pathogen-grid,
|
|
.user-grid,
|
|
.check-list,
|
|
.auth-grid {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.quarter-grid {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
.pathogen-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.pathogen-grid.is-invalid {
|
|
padding: 14px;
|
|
border: 1px solid rgba(157, 60, 48, 0.3);
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.user-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.auth-grid {
|
|
grid-template-columns: 1fr;
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.login-panel__section {
|
|
display: grid;
|
|
gap: 14px;
|
|
padding: 20px;
|
|
border-radius: 22px;
|
|
background: rgba(255, 255, 255, 0.56);
|
|
border: 1px solid rgba(37, 49, 58, 0.08);
|
|
}
|
|
|
|
.divider-label {
|
|
margin: 18px 0 6px;
|
|
color: var(--muted);
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.quarter-tile,
|
|
.user-card {
|
|
display: grid;
|
|
gap: 6px;
|
|
text-align: left;
|
|
}
|
|
|
|
.quarter-tile strong,
|
|
.user-card__code {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.check-list__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
border-radius: 16px;
|
|
background: rgba(255, 255, 255, 0.64);
|
|
}
|
|
|
|
.table-shell {
|
|
overflow: auto;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 14px 12px;
|
|
border-bottom: 1px solid rgba(37, 49, 58, 0.08);
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.data-table th {
|
|
color: var(--muted);
|
|
font-size: 0.82rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-pill,
|
|
.info-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-radius: 999px;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.status-pill {
|
|
background: rgba(17, 109, 99, 0.08);
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.status-pill--anamnesis {
|
|
background: rgba(34, 113, 190, 0.12);
|
|
color: #1a5f9c;
|
|
}
|
|
|
|
.status-pill--antibiogram {
|
|
background: rgba(151, 88, 202, 0.12);
|
|
color: #6c3fa2;
|
|
}
|
|
|
|
.status-pill--therapy {
|
|
background: rgba(214, 138, 6, 0.12);
|
|
color: #8a6500;
|
|
}
|
|
|
|
.status-pill--completed {
|
|
background: rgba(45, 106, 79, 0.12);
|
|
color: var(--success);
|
|
}
|
|
|
|
.info-chip {
|
|
background: var(--accent-soft);
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.matrix-button {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.eye-button {
|
|
padding: 10px 14px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.eye-button.is-active {
|
|
color: var(--accent-strong);
|
|
box-shadow: inset 0 0 0 1px rgba(17, 109, 99, 0.24);
|
|
}
|
|
|
|
.eye-button.is-inactive {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.table-link {
|
|
padding: 0;
|
|
background: none;
|
|
color: var(--accent-strong);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.table-link--danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.info-panel,
|
|
.empty-state,
|
|
.alert {
|
|
padding: 16px 18px;
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.info-panel,
|
|
.empty-state {
|
|
background: rgba(255, 255, 255, 0.58);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.info-panel--spaced {
|
|
margin-top: 28px;
|
|
}
|
|
|
|
.alert {
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.alert--error {
|
|
background: rgba(157, 60, 48, 0.12);
|
|
border-color: rgba(157, 60, 48, 0.18);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.alert--warning {
|
|
background: rgba(138, 101, 0, 0.12);
|
|
border-color: rgba(138, 101, 0, 0.16);
|
|
color: var(--warning);
|
|
}
|
|
|
|
.alert--success {
|
|
background: rgba(45, 106, 79, 0.12);
|
|
border-color: rgba(45, 106, 79, 0.16);
|
|
color: var(--success);
|
|
}
|
|
|
|
.login-page {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.login-hero {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 28px;
|
|
align-items: stretch;
|
|
width: min(960px, 100%);
|
|
}
|
|
|
|
.login-hero__copy {
|
|
position: relative;
|
|
padding: 56px;
|
|
border-radius: 34px;
|
|
overflow: hidden;
|
|
background:
|
|
linear-gradient(140deg, rgba(14, 33, 36, 0.92), rgba(13, 91, 83, 0.88)),
|
|
linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent);
|
|
color: #f8f3ed;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.login-hero__copy::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: auto -6% -18% auto;
|
|
width: 260px;
|
|
height: 260px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.login-hero__panel {
|
|
padding: 34px;
|
|
}
|
|
|
|
.panel-glow {
|
|
position: absolute;
|
|
top: -80px;
|
|
right: -60px;
|
|
width: 200px;
|
|
height: 200px;
|
|
border-radius: 50%;
|
|
background: rgba(17, 109, 99, 0.16);
|
|
filter: blur(8px);
|
|
}
|
|
|
|
.hero-text {
|
|
max-width: 520px;
|
|
font-size: 1.05rem;
|
|
line-height: 1.7;
|
|
color: rgba(248, 243, 237, 0.82);
|
|
}
|
|
|
|
.page-actions {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.page-actions--space-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.page-actions--align-end {
|
|
align-self: end;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.invoice-template-page {
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.invoice-template-page__card {
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
height: 100%;
|
|
padding: 20px;
|
|
background: var(--surface-strong);
|
|
box-shadow: none;
|
|
backdrop-filter: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.invoice-template-page__card .section-card__header {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.invoice-template-page__card .page-actions {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.invoice-template {
|
|
display: grid;
|
|
grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(260px, 320px);
|
|
gap: 24px;
|
|
align-items: start;
|
|
min-height: 0;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.invoice-template__panel,
|
|
.invoice-template__canvas-column {
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
gap: 18px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.invoice-template__panel {
|
|
position: sticky;
|
|
top: 18px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.invoice-template__panel-header,
|
|
.invoice-template__canvas-header {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.invoice-template__panel-header h4,
|
|
.invoice-template__canvas-header h4 {
|
|
margin: 0;
|
|
}
|
|
|
|
.invoice-template__panel-note {
|
|
color: var(--muted);
|
|
font-size: 0.82rem;
|
|
text-align: right;
|
|
}
|
|
|
|
.invoice-template__palette {
|
|
display: grid;
|
|
gap: 18px;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding-right: 6px;
|
|
align-content: start;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
.invoice-template__palette-group {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.invoice-template__palette-group-header h5 {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.invoice-template__palette-grid {
|
|
display: grid;
|
|
gap: 10px;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.invoice-template__tile {
|
|
display: grid;
|
|
gap: 6px;
|
|
padding: 12px 14px;
|
|
border: 1px solid rgba(37, 49, 58, 0.1);
|
|
border-radius: 18px;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
text-align: left;
|
|
cursor: grab;
|
|
transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
|
|
}
|
|
|
|
.invoice-template__tile:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 18px 36px rgba(54, 44, 27, 0.1);
|
|
border-color: rgba(17, 109, 99, 0.22);
|
|
}
|
|
|
|
.invoice-template__tile strong,
|
|
.invoice-template__tile span,
|
|
.invoice-template__tile small {
|
|
display: block;
|
|
}
|
|
|
|
.invoice-template__tile span {
|
|
color: var(--text);
|
|
font-size: 0.84rem;
|
|
line-height: 1.3;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.invoice-template__tile small {
|
|
color: var(--muted);
|
|
font-size: 0.8rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.invoice-template__canvas-shell {
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
height: 100%;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
padding: 0 0 10px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.invoice-template__canvas-stage {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
overflow: visible;
|
|
}
|
|
|
|
.invoice-template__canvas {
|
|
position: relative;
|
|
width: 794px;
|
|
min-width: 794px;
|
|
height: 1123px;
|
|
border: 1px dashed rgba(17, 109, 99, 0.22);
|
|
border-radius: 0;
|
|
background:
|
|
linear-gradient(180deg, rgba(17, 109, 99, 0.03), transparent 18%),
|
|
linear-gradient(transparent 31px, rgba(37, 49, 58, 0.05) 32px),
|
|
linear-gradient(90deg, transparent 31px, rgba(37, 49, 58, 0.05) 32px),
|
|
#fffdf9;
|
|
background-size: auto, 32px 32px, 32px 32px, auto;
|
|
overflow: hidden;
|
|
transform-origin: top left;
|
|
will-change: transform;
|
|
}
|
|
|
|
.invoice-template__canvas.is-active {
|
|
border-color: rgba(17, 109, 99, 0.48);
|
|
box-shadow: 0 0 0 6px rgba(17, 109, 99, 0.08);
|
|
}
|
|
|
|
.invoice-template__canvas::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 28px;
|
|
border: 1px solid rgba(37, 49, 58, 0.05);
|
|
border-radius: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.invoice-template__canvas-empty {
|
|
display: grid;
|
|
place-items: center;
|
|
height: 100%;
|
|
padding: 48px;
|
|
color: var(--muted);
|
|
text-align: center;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.invoice-template__canvas-element {
|
|
position: absolute;
|
|
display: grid;
|
|
gap: 0;
|
|
padding: 4px 5px;
|
|
border: 1px solid transparent;
|
|
border-radius: 16px;
|
|
background: transparent;
|
|
color: var(--text);
|
|
cursor: move;
|
|
box-shadow: none;
|
|
overflow: visible;
|
|
user-select: none;
|
|
}
|
|
|
|
.invoice-template__canvas-element--line,
|
|
.invoice-template__canvas-element--image {
|
|
padding: 0;
|
|
}
|
|
|
|
.invoice-template__canvas-element:hover,
|
|
.invoice-template__canvas-element.is-selected {
|
|
border-color: rgba(17, 109, 99, 0.28);
|
|
background: rgba(17, 109, 99, 0.08);
|
|
}
|
|
|
|
.invoice-template__canvas-element.is-selected {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.invoice-template__canvas-element.is-dragging {
|
|
cursor: grabbing;
|
|
z-index: 2;
|
|
}
|
|
|
|
.invoice-template__canvas-element.is-resizing {
|
|
cursor: nwse-resize;
|
|
z-index: 3;
|
|
}
|
|
|
|
.invoice-template__canvas-element-text {
|
|
display: block;
|
|
line-height: 1.35;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.invoice-template__canvas-line {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 999px;
|
|
background: rgba(37, 49, 58, 0.82);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.invoice-template__canvas-image {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 16px;
|
|
object-fit: contain;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.invoice-template__canvas-image-placeholder {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 100%;
|
|
padding: 12px;
|
|
border: 1px dashed rgba(17, 109, 99, 0.28);
|
|
border-radius: 18px;
|
|
background: rgba(17, 109, 99, 0.05);
|
|
color: var(--muted);
|
|
font-size: 0.82rem;
|
|
line-height: 1.4;
|
|
pointer-events: none;
|
|
text-align: center;
|
|
}
|
|
|
|
.invoice-template__canvas-element-resize-handle {
|
|
position: absolute;
|
|
right: -7px;
|
|
bottom: -7px;
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 1px solid rgba(17, 109, 99, 0.48);
|
|
border-radius: 999px;
|
|
background: var(--surface-strong);
|
|
box-shadow: 0 0 0 3px rgba(17, 109, 99, 0.12);
|
|
cursor: nwse-resize;
|
|
pointer-events: auto;
|
|
touch-action: none;
|
|
}
|
|
|
|
.invoice-template__inspector {
|
|
display: grid;
|
|
gap: 12px;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding-right: 6px;
|
|
align-content: start;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
.invoice-template__inspector-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.invoice-template-page .field-grid {
|
|
gap: 12px;
|
|
}
|
|
|
|
.invoice-template-page .field input,
|
|
.invoice-template-page .field select,
|
|
.invoice-template-page .field textarea {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.invoice-template-page .field textarea {
|
|
min-height: 88px;
|
|
}
|
|
|
|
/* Admin Dashboard Styles */
|
|
.admin-hero {
|
|
background: linear-gradient(135deg, rgba(90, 123, 168, 0.15) 0%, rgba(74, 124, 89, 0.1) 100%);
|
|
}
|
|
|
|
.admin-metrics {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.admin-metrics {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.admin-metrics {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.metric-card--primary {
|
|
background: linear-gradient(135deg, rgba(90, 123, 168, 0.25) 0%, rgba(90, 123, 168, 0.1) 100%);
|
|
border-color: rgba(90, 123, 168, 0.3);
|
|
}
|
|
|
|
.metric-card__value--large {
|
|
font-size: 2.5rem;
|
|
background: linear-gradient(135deg, var(--text) 0%, #5b7ba8 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.admin-modules-section {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.admin-modules-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 16px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.admin-modules-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.admin-modules-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.admin-module-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 24px;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
border-radius: var(--radius-xl);
|
|
box-shadow: var(--shadow);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-align: left;
|
|
border-left: 4px solid var(--module-color, #5b7ba8);
|
|
}
|
|
|
|
.admin-module-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
background: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.admin-module-card__icon {
|
|
font-size: 2rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.admin-module-card__content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
flex: 1;
|
|
}
|
|
|
|
.admin-module-card__content strong {
|
|
font-size: 1.1rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-module-card__content .muted-text {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.admin-module-card__arrow {
|
|
font-size: 1.5rem;
|
|
color: var(--muted);
|
|
opacity: 0.5;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.admin-module-card:hover .admin-module-card__arrow {
|
|
opacity: 1;
|
|
}
|
|
|
|
.quick-actions-section {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.quick-actions-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 12px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.quick-actions-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.quick-actions-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.quick-action-button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 16px 20px;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
border-radius: var(--radius-lg);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-size: 0.95rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.quick-action-button:hover {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.quick-action-button span:first-child {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
/* User Management Table Styles */
|
|
.table-row--inactive {
|
|
background-color: rgba(157, 60, 48, 0.05);
|
|
}
|
|
|
|
.status-pill--active {
|
|
background-color: rgba(74, 124, 89, 0.15);
|
|
color: #4a7c59;
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-pill--inactive {
|
|
background-color: rgba(157, 60, 48, 0.15);
|
|
color: #9d3c30;
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 8px 16px;
|
|
border-radius: 8px;
|
|
border: none;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.action-button--success {
|
|
background-color: rgba(74, 124, 89, 0.15);
|
|
color: #4a7c59;
|
|
}
|
|
|
|
.action-button--success:hover {
|
|
background-color: rgba(74, 124, 89, 0.25);
|
|
}
|
|
|
|
.action-button--danger {
|
|
background-color: rgba(157, 60, 48, 0.15);
|
|
color: #9d3c30;
|
|
}
|
|
|
|
.action-button--danger:hover {
|
|
background-color: rgba(157, 60, 48, 0.25);
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.metric-card--secondary {
|
|
background: linear-gradient(135deg, rgba(139, 90, 124, 0.2) 0%, rgba(139, 90, 124, 0.05) 100%);
|
|
border-color: rgba(139, 90, 124, 0.25);
|
|
}
|
|
|
|
.sample-count {
|
|
display: inline-block;
|
|
min-width: 32px;
|
|
padding: 4px 12px;
|
|
background: rgba(90, 123, 168, 0.15);
|
|
border-radius: 16px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
text-align: center;
|
|
}
|
|
|
|
/* Chart Container */
|
|
.chart-container {
|
|
position: relative;
|
|
height: 400px;
|
|
padding: 20px;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
border-radius: var(--radius-xl);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.chart-container {
|
|
height: 300px;
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
.dialog-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 28px;
|
|
background: rgba(29, 36, 40, 0.42);
|
|
backdrop-filter: blur(8px);
|
|
z-index: 50;
|
|
}
|
|
|
|
.dialog {
|
|
display: grid;
|
|
gap: 18px;
|
|
width: min(1120px, 100%);
|
|
max-height: calc(100vh - 56px);
|
|
padding: 24px;
|
|
border: 1px solid rgba(255, 255, 255, 0.42);
|
|
border-radius: var(--radius-xl);
|
|
background: rgba(255, 248, 240, 0.96);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.dialog--wide {
|
|
width: min(1180px, 100%);
|
|
}
|
|
|
|
.dialog__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
}
|
|
|
|
.dialog__header h4 {
|
|
margin: 0;
|
|
}
|
|
|
|
.dialog__actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.dialog__actions a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.dialog__body {
|
|
min-height: 0;
|
|
}
|
|
|
|
.dialog__body--pdf {
|
|
height: min(80vh, 900px);
|
|
}
|
|
|
|
.dialog__frame {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
border-radius: 20px;
|
|
background: white;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.invoice-template-page,
|
|
.invoice-template-page__card {
|
|
height: auto;
|
|
overflow: visible;
|
|
}
|
|
|
|
.app-shell {
|
|
grid-template-columns: 240px minmax(0, 1fr);
|
|
}
|
|
|
|
.login-hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.portal-grid,
|
|
.form-grid,
|
|
.field-grid,
|
|
.metrics-grid,
|
|
.invoice-template {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.invoice-template__panel {
|
|
position: static;
|
|
}
|
|
|
|
.invoice-template__palette,
|
|
.invoice-template__inspector {
|
|
overflow: visible;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.invoice-template__palette-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
}
|
|
|
|
.quarter-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.app-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.sidebar {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar.is-open {
|
|
display: flex;
|
|
}
|
|
|
|
.topbar,
|
|
.content-area {
|
|
padding-inline: 20px;
|
|
}
|
|
|
|
.user-grid,
|
|
.auth-grid,
|
|
.pathogen-grid,
|
|
.quarter-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.invoice-template__canvas-shell {
|
|
margin-inline: 0;
|
|
padding-inline: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dialog-backdrop {
|
|
padding: 16px;
|
|
}
|
|
|
|
.dialog {
|
|
padding: 18px;
|
|
}
|
|
|
|
.dialog__header {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.dialog__body--pdf {
|
|
height: 72vh;
|
|
}
|
|
}
|