Files
Fil-A-Management/filament/static/filament/app.css
T

977 lines
17 KiB
CSS

/* Self-hosted, dependency-free UI. */
:root {
color-scheme: light;
--ink: #172833;
--muted: #4d6069;
--green: #095d50;
--light: #dff2e9;
--line: #27455424;
--paper: #edf3f5;
--danger: #a12f40;
--surface: rgb(255 255 255 / 72%);
--surface-solid: #f8fbfc;
--radius: 20px;
--shadow: 0 14px 36px rgb(28 62 83 / 8%), inset 0 1px 0 rgb(255 255 255 / 85%);
font-family:
Inter,
ui-sans-serif,
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
color: var(--ink);
background: var(--paper);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background:
radial-gradient(ellipse at 88% 2%, #d9dffb, transparent 55%),
radial-gradient(ellipse at 24% 5%, #d3efe4, transparent 52%), var(--paper);
background-repeat: no-repeat;
background-size: 100% 56rem;
}
a {
color: var(--green);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
button,
input,
select,
textarea {
font: inherit;
}
button,
a,
input,
select {
touch-action: manipulation;
}
button {
cursor: pointer;
}
:focus-visible {
outline: 3px solid #2864ab;
outline-offset: 3px;
}
.shell {
display: grid;
grid-template-columns: 238px minmax(0, 1fr);
align-items: start;
gap: clamp(24px, 3.5vw, 54px);
min-height: 100svh;
max-width: 1640px;
margin-inline: auto;
padding: clamp(16px, 2.3vw, 34px);
}
.sidebar {
position: sticky;
top: 24px;
max-height: calc(100vh - 48px);
overflow: auto;
padding: 22px 16px 16px;
display: flex;
flex-direction: column;
background: var(--surface-solid);
border: 1px solid rgb(255 255 255 / 90%);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(16px)) {
.sidebar,
.login-card {
background: var(--surface);
backdrop-filter: blur(16px);
}
}
.brand {
display: flex;
align-items: center;
gap: 8px;
font-size: 16px;
font-weight: 800;
color: var(--ink);
line-height: 1.1;
white-space: nowrap;
margin: 0 0 24px;
}
.brand:hover {
text-decoration: none;
}
.brand-icon {
display: grid;
place-items: center;
flex: 0 0 34px;
height: 34px;
border-radius: 10px;
background: linear-gradient(145deg, #197f6b, #134b50);
box-shadow: 0 5px 12px rgb(12 88 76 / 23%);
font-size: 21px;
color: #fff;
}
.nav-label {
font-size: 10px;
letter-spacing: 1.6px;
font-weight: 700;
color: var(--muted);
margin: 20px 10px 7px;
}
nav > a {
display: flex;
gap: 9px;
align-items: center;
padding: 9px 10px;
color: var(--muted);
font-size: 13px;
font-weight: 550;
border-radius: 11px;
margin: 3px 0;
}
nav > a[aria-current] {
background: linear-gradient(120deg, #d4ede2, #e6f3ee);
color: var(--green);
box-shadow: inset 0 0 0 1px #16756026;
font-weight: 700;
}
nav > a:hover,
.profile-link:hover,
.profile-link[aria-current] {
background-color: #145e5710;
text-decoration: none;
}
.nav-icon {
display: grid;
flex: 0 0 26px;
width: 26px;
height: 26px;
place-items: center;
border-radius: 8px;
background: rgb(255 255 255 / 68%);
color: var(--green);
font-size: 15px;
}
.sidebar-bottom {
margin-top: 24px;
padding-top: 12px;
border-top: 1px solid var(--line);
}
.profile-link {
display: flex;
gap: 12px;
align-items: center;
color: var(--ink);
padding: 7px;
min-width: 0;
border-radius: 11px;
overflow-wrap: anywhere;
}
.profile-link small,
td small {
display: block;
margin-top: 4px;
font-size: 11px;
color: var(--muted);
}
.avatar {
flex-shrink: 0;
background: #d7eee3;
color: var(--green);
width: 38px;
height: 38px;
border-radius: 12px;
display: grid;
place-items: center;
font-size: 15px;
font-weight: 700;
}
.profile-link strong {
font-size: 13px;
}
.logout {
border: 0;
background: none;
color: var(--muted);
padding: 10px 12px;
margin-left: 44px;
border-radius: 9px;
font-size: 12px;
}
.logout:hover {
background: #145e5710;
color: var(--ink);
}
.main-wrap {
min-width: 0;
}
.badge {
display: inline-block;
background: #11645712;
padding: 5px 10px;
border-radius: 999px;
color: #305e54;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
main {
padding: clamp(16px, 3vw, 42px) 0 36px;
}
.page-heading {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
margin-bottom: clamp(22px, 3vw, 36px);
}
.eyebrow {
letter-spacing: 2px;
font-size: 10px;
font-weight: 750;
color: var(--green);
margin: 0 0 12px;
}
h1 {
font-size: clamp(1.85rem, 3.4vw, 3rem);
letter-spacing: -0.045em;
line-height: 1.08;
margin: 0 0 10px;
font-weight: 760;
}
h2 {
font-size: 17px;
margin: 0;
}
h3 {
font-size: 19px;
margin: 12px 0;
}
p {
line-height: 1.65;
}
.muted {
font-size: 14px;
color: var(--muted);
margin: 0;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 44px;
padding: 10px 16px;
border-radius: 11px;
background: linear-gradient(145deg, #117765, #09584e);
box-shadow: 0 4px 12px rgb(10 87 71 / 20%);
color: #fff;
border: 1px solid var(--green);
font-size: 13px;
font-weight: 700;
text-align: center;
flex-shrink: 0;
}
.button:hover {
background: #105542;
text-decoration: none;
}
.secondary {
background: var(--surface);
box-shadow: none;
color: var(--green);
border-color: var(--line);
}
.secondary:hover {
background: var(--light);
}
.danger {
background: var(--danger);
border-color: var(--danger);
}
.danger:hover {
background: #812232;
}
.stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
margin-bottom: 28px;
}
.stat,
.panel,
.login-card {
border: 1px solid rgb(255 255 255 / 95%);
border-radius: var(--radius);
background: var(--surface);
box-shadow: var(--shadow);
}
.stat {
padding: clamp(16px, 2vw, 25px);
}
.stat > span {
font-size: 12px;
color: var(--muted);
}
.stat strong {
display: block;
font-size: clamp(1.75rem, 3vw, 2.6rem);
font-variant-numeric: tabular-nums;
line-height: 1;
letter-spacing: -0.04em;
margin: 12px 0 8px;
}
.stat small {
font-size: 11px;
color: var(--muted);
}
.privacy {
background: linear-gradient(125deg, #e8f8ee, #def2eaad);
}
.privacy strong {
font-size: clamp(1.55rem, 2.6vw, 2.1rem);
color: var(--green);
}
.panel {
overflow: hidden;
margin-bottom: 22px;
}
.panel-heading {
padding: 22px 24px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
border-bottom: 1px solid var(--line);
}
.stock-panel-heading {
flex-wrap: wrap;
}
.stock-search {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
max-width: 100%;
}
.stock-search input {
width: min(13rem, 100%);
min-width: 0;
flex: 1 1 10rem;
min-height: 44px;
padding: 8px 12px;
border: 1px solid #7c979e;
border-radius: 10px;
background: var(--surface-solid);
color: var(--ink);
font-size: 13px;
font-weight: 500;
}
.stock-search a {
font-size: 13px;
}
.table-wrap {
/* Keep absolute screen-reader labels inside the horizontally scrolling table. */
position: relative;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
text-align: left;
font-size: 13px;
}
th {
padding: 14px 22px;
background: #e8eff487;
color: var(--muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 650;
}
td {
padding: 17px 22px;
border-top: 1px solid var(--line);
}
tbody tr:hover,
tbody tr:focus-within {
background: #dcefe870;
}
td.quantity {
font-size: 18px;
font-weight: 700;
color: var(--green);
}
.variant-preview {
display: flex;
align-items: center;
gap: 10px;
min-width: 8rem;
}
.article-number {
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.history-date {
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.history-pagination {
border-top: 1px solid var(--line);
font-size: 13px;
}
.order-row--unavailable,
.order-row--unavailable:hover,
.order-row--unavailable:focus-within {
background: #e5eaee;
color: #4d6069;
}
.order-row--ordered,
.order-row--ordered:hover,
.order-row--ordered:focus-within {
background: #ffe6ce;
}
.order-row--arrived,
.order-row--arrived:hover,
.order-row--arrived:focus-within {
background: #d6efdd;
}
.order-status-form {
display: grid;
gap: 6px;
min-width: 10rem;
}
.order-status-form select {
width: 100%;
min-height: 36px;
padding: 6px 8px;
border: 1px solid #7c979e;
border-radius: 8px;
background: white;
color: var(--ink);
}
.order-status-form button {
justify-self: start;
min-height: 34px;
padding: 5px 10px;
}
.inventory-table .stock-color {
border-top: 1px solid var(--line);
background: transparent;
color: var(--ink);
font-size: inherit;
letter-spacing: normal;
text-transform: none;
}
.stock-sort-link {
display: inline-flex;
align-items: center;
gap: 0.4rem;
color: inherit;
text-decoration: none;
}
.stock-sort-link:hover,
.stock-sort-link:focus-visible {
text-decoration: underline;
}
.inventory-table th[aria-sort] .stock-sort-link {
color: var(--green);
}
.inventory-table .stock-group + .stock-group tr:first-child > * {
border-top-width: 2px;
}
.inventory-table .actions {
min-width: 11rem;
}
.inventory-table .actions > a + a {
display: block;
margin: 6px 0 0;
}
.consume-button {
min-height: 36px;
padding: 6px 10px;
font-size: 12px;
}
.consume-dialog {
width: min(34rem, calc(100% - 2rem));
padding: clamp(18px, 4vw, 30px);
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--surface-solid);
color: var(--ink);
box-shadow: var(--shadow);
}
.consume-dialog::backdrop {
background: rgb(23 40 51 / 45%);
}
.consume-dialog h2 {
margin-bottom: 8px;
}
.consume-options {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 16px 0;
}
.consume-options button:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.variant-thumbnail {
position: relative;
display: grid;
place-items: center;
flex: 0 0 48px;
width: 48px;
height: 48px;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--surface-solid);
color: var(--green);
}
.variant-thumbnail-placeholder {
font-size: 22px;
}
.variant-thumbnail img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
background: #fff;
}
.actions {
white-space: nowrap;
font-size: 12px;
}
.actions a + a {
margin-left: 14px;
}
.danger-link,
.warning {
color: var(--danger);
}
.empty {
max-width: 480px;
margin: auto;
text-align: center;
padding: 60px 28px;
}
.empty p {
font-size: 13px;
color: var(--muted);
margin: 12px 0 24px;
}
.empty-icon {
display: inline-grid;
place-items: center;
width: 56px;
height: 56px;
border-radius: 18px;
background: var(--light);
color: var(--green);
font-size: 31px;
}
.hint {
font-size: 12px;
color: var(--muted);
}
.form-panel {
padding: 28px;
max-width: 850px;
}
.variant-panel {
overflow: visible;
}
.article-lookup {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.article-lookup > :is(input, select) {
flex: 1 1 230px;
min-width: 0;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.field {
margin-bottom: 20px;
}
.form-grid .field {
margin: 0;
}
.field label {
display: block;
font-size: 13px;
font-weight: 650;
margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
width: 100%;
padding: 11px 12px;
border: 1px solid #7c979e;
border-radius: 10px;
background: rgb(255 255 255 / 84%);
color: var(--ink);
min-height: 44px;
}
.field textarea {
display: block;
resize: vertical;
}
.field input:disabled {
background: var(--paper);
}
.color-picker {
position: relative;
}
.color-trigger,
.color-choices button {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
min-height: 44px;
padding: 9px 12px;
color: var(--ink);
text-align: left;
}
.color-trigger {
border: 1px solid #7c979e;
border-radius: 10px;
background: rgb(255 255 255 / 84%);
}
.color-trigger::after {
content: "";
flex: 0 0 7px;
height: 7px;
margin: 0 4px 4px auto;
border-right: 2px solid var(--muted);
border-bottom: 2px solid var(--muted);
transform: rotate(45deg);
}
.color-choices {
position: absolute;
z-index: 2;
inset: calc(100% + 6px) 0 auto;
max-height: min(16rem, 50vh);
overflow-y: auto;
padding: 5px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--surface-solid);
box-shadow: var(--shadow);
}
.color-choices button {
border: 0;
border-radius: 7px;
background: transparent;
}
.color-choices button:hover,
.color-choices button[aria-pressed="true"] {
background: var(--light);
}
.color-choices button:focus-visible {
outline-offset: -3px;
}
.color-dot {
display: inline-block;
flex: 0 0 16px;
width: 16px;
height: 16px;
border: 1px solid rgb(20 47 55 / 40%);
border-radius: 50%;
}
.color-dot--unknown {
border: 1px dashed #7c979e;
}
.field small,
.helptext {
color: var(--muted);
font-size: 11px;
line-height: 1.6;
}
.form-actions {
display: flex;
gap: 12px;
border-top: 1px solid var(--line);
padding-top: 22px;
margin-top: 22px;
}
.back-link {
display: inline-block;
font-size: 12px;
margin-bottom: 24px;
}
.errorlist {
font-size: 12px;
color: var(--danger);
padding-left: 18px;
}
.message {
padding: 14px 18px;
background: #e1f0e6;
color: #24613f;
font-size: 13px;
border-radius: 12px;
margin-bottom: 24px;
}
.shell--guest {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: auto 1fr;
gap: 0;
}
.shell--guest .sidebar {
position: static;
justify-self: start;
padding: 10px 14px;
}
.shell--guest .brand {
margin: 0;
}
.shell--guest main {
display: grid;
align-content: center;
min-height: min(68svh, 45rem);
}
.login-card {
width: min(100%, 440px);
padding: clamp(22px, 4vw, 42px);
margin: 0 auto;
}
.login-card h1 {
font-size: clamp(1.85rem, 4vw, 2.4rem);
}
.login-card form {
margin-top: 28px;
}
.full {
width: 100%;
}
.sr-only,
.skip:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.skip:focus {
position: absolute;
z-index: 9;
background: #fff;
padding: 15px;
}
.split {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 22px;
}
.people {
display: flex;
gap: 7px;
flex-wrap: wrap;
}
.person {
background: var(--paper);
border-radius: 8px;
padding: 5px 8px;
font-size: 11px;
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
gap: 18px;
}
.printer-card {
padding: 24px;
}
.printer-card h2,
.printer-card h3 {
font-size: 20px;
margin: 10px 0;
}
.printer-card .actions {
margin-top: 22px;
}
.profile-settings,
.shared-member {
overflow-wrap: anywhere;
}
.profile-settings .form-panel {
min-width: 0;
}
.profile-printers,
.shared-printers {
padding: 18px;
}
.profile-printers .printer-card,
.shared-printers ul {
margin-bottom: 0;
}
.shared-printers h3 {
margin: 0;
font-size: 1rem;
}
.sharing-options {
display: grid;
gap: 6px;
margin: 16px 0;
}
.sharing-option {
display: flex;
align-items: center;
gap: 10px;
min-height: 44px;
cursor: pointer;
}
.sharing-option input {
width: 18px;
height: 18px;
flex-shrink: 0;
accent-color: var(--green);
}
.notice {
padding: 20px 24px;
background: var(--light);
border-radius: 12px;
font-size: 12px;
color: var(--green);
margin-bottom: 24px;
}
@media (max-width: 1100px) {
.shell:not(.shell--guest) {
grid-template-columns: 204px minmax(0, 1fr);
}
.brand {
font-size: 14px;
}
.page-heading {
align-items: flex-start;
}
td,
th {
padding-left: 15px;
padding-right: 15px;
}
.stats {
gap: 12px;
}
}
@media (max-width: 760px) {
.shell {
display: block;
padding: 12px;
}
.sidebar {
position: static;
max-height: none;
overflow: visible;
padding: 14px;
}
.brand {
font-size: 18px;
margin-bottom: 12px;
}
.sidebar > .nav-label,
nav .nav-label {
display: none;
}
nav {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 3px 5px;
}
nav > a {
padding: 6px;
min-height: 44px;
margin: 0;
font-size: 12px;
gap: 6px;
overflow-wrap: anywhere;
}
.sidebar-bottom {
padding: 7px 0 0;
margin-top: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.profile-link small {
display: none;
}
.avatar {
width: 28px;
height: 28px;
}
.logout {
margin-left: 0;
min-height: 44px;
}
main {
padding: 26px 2px 18px;
}
.page-heading {
display: block;
margin-bottom: 22px;
}
.page-heading > .button {
margin-top: 16px;
}
.stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.privacy {
grid-column: 1/-1;
}
.privacy > span {
display: block;
}
.privacy strong {
font-size: 22px;
display: block;
margin: 7px 0;
}
.privacy small {
display: block;
}
.stat {
padding: 17px;
}
.stat strong {
font-size: 28px;
}
.panel-heading {
padding: 18px;
}
.form-grid,
.split {
grid-template-columns: 1fr;
}
.form-panel {
padding: 22px;
}
.form-actions {
flex-wrap: wrap;
}
.shell--guest .sidebar {
display: inline-flex;
}
.empty {
padding: 40px 20px;
}
}