39818-vm/static/css/custom.css
2026-04-26 16:42:14 +00:00

598 lines
10 KiB
CSS

/* Restaurant POS custom theme */
:root {
--pos-primary: #0f766e;
--pos-primary-dark: #0b5d57;
--pos-secondary: #16324f;
--pos-accent: #f97316;
--pos-accent-soft: #fff1e8;
--pos-surface: #ffffff;
--pos-surface-soft: #f5f8fb;
--pos-surface-muted: #eef4f7;
--pos-border: #d6e1e8;
--pos-text: #11243d;
--pos-muted: #61728a;
--pos-success: #15803d;
--pos-shadow: 0 26px 65px rgba(17, 36, 61, 0.12);
--pos-radius-xl: 32px;
--pos-radius-lg: 24px;
--pos-radius-md: 18px;
--pos-radius-sm: 12px;
}
html {
scroll-behavior: smooth;
}
body.pos-app {
margin: 0;
min-height: 100vh;
font-family: 'Inter', sans-serif;
color: var(--pos-text);
background:
radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 32%),
radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.14), transparent 25%),
linear-gradient(180deg, #fcfefd 0%, #f4f8fb 100%);
}
h1,
h2,
h3,
h4,
.navbar-brand strong {
font-family: 'Manrope', sans-serif;
letter-spacing: -0.03em;
}
p,
span,
a,
button,
label,
input,
select,
textarea {
font-family: 'Inter', sans-serif;
}
.page-shell {
position: relative;
overflow: hidden;
}
.site-header {
background: rgba(255, 255, 255, 0.82);
backdrop-filter: blur(18px);
border-bottom: 1px solid rgba(214, 225, 232, 0.72);
}
.navbar {
padding: 1rem 0;
}
.navbar-brand {
display: inline-flex;
align-items: center;
gap: 0.85rem;
color: var(--pos-text);
text-decoration: none;
}
.navbar-brand small {
display: block;
color: var(--pos-muted);
font-size: 0.8rem;
font-weight: 600;
}
.brand-mark {
width: 48px;
height: 48px;
border-radius: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 800;
color: #fff;
background: linear-gradient(135deg, var(--pos-primary) 0%, #15b39d 100%);
box-shadow: 0 16px 30px rgba(15, 118, 110, 0.28);
}
.nav-link {
color: var(--pos-muted);
font-weight: 600;
border-radius: 999px;
padding: 0.7rem 1rem !important;
}
.nav-link:hover,
.nav-link:focus {
color: var(--pos-secondary);
background: rgba(15, 118, 110, 0.08);
}
.navbar-toggler {
border: 1px solid var(--pos-border);
}
.pos-alert {
border-radius: var(--pos-radius-sm);
border: none;
box-shadow: var(--pos-shadow);
}
.hero-section,
.dashboard-section,
.content-section {
padding: 2.5rem 0 5rem;
}
.hero-grid {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
gap: 2rem;
align-items: center;
}
.hero-copy {
padding: 2rem 0 1rem;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.55rem 0.9rem;
border-radius: 999px;
color: var(--pos-primary-dark);
background: rgba(15, 118, 110, 0.11);
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.hero-copy h1,
.page-intro h1 {
font-size: clamp(2.8rem, 5vw, 4.7rem);
line-height: 0.97;
margin: 1.25rem 0 1rem;
}
.hero-text,
.page-intro p,
.section-heading p,
.empty-state-card p,
.stack-item p,
.receipt-line p,
.kds-card p,
.table-order-preview p,
.empty-mini,
.metric-card span {
color: var(--pos-muted);
}
.hero-text {
max-width: 56ch;
font-size: 1.05rem;
line-height: 1.7;
}
.hero-actions,
.page-actions,
.action-stack {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.hero-actions {
margin: 2rem 0;
}
.btn {
border-radius: 16px;
font-weight: 700;
padding: 0.88rem 1.35rem;
border: none;
}
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
textarea:focus {
outline: 0;
box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.18);
}
.btn-pos-primary {
color: #fff;
background: linear-gradient(135deg, var(--pos-primary) 0%, #18a58f 100%);
box-shadow: 0 18px 32px rgba(15, 118, 110, 0.24);
}
.btn-pos-primary:hover,
.btn-pos-primary:focus {
color: #fff;
background: linear-gradient(135deg, var(--pos-primary-dark) 0%, #108d79 100%);
}
.btn-pos-soft {
color: var(--pos-secondary);
background: rgba(255, 255, 255, 0.88);
border: 1px solid rgba(214, 225, 232, 0.95);
box-shadow: 0 14px 30px rgba(17, 36, 61, 0.08);
}
.btn-pos-soft:hover,
.btn-pos-soft:focus {
color: var(--pos-secondary);
background: #fff;
}
.hero-kpis {
max-width: 760px;
}
.metric-card,
.side-panel-card,
.panel-card,
.kds-card,
.empty-state-card,
.floating-card {
background: rgba(255, 255, 255, 0.92);
border: 1px solid rgba(214, 225, 232, 0.84);
box-shadow: var(--pos-shadow);
}
.metric-card {
height: 100%;
padding: 1.2rem 1.25rem;
border-radius: var(--pos-radius-md);
}
.metric-card strong {
display: block;
margin-top: 0.5rem;
font-size: 1.65rem;
}
.hero-visual {
position: relative;
min-height: 500px;
display: flex;
align-items: center;
justify-content: center;
}
.floating-card {
position: absolute;
width: min(100%, 320px);
padding: 1.5rem;
border-radius: 28px;
}
.primary-card {
top: 2rem;
right: 2rem;
}
.secondary-card {
left: 0;
bottom: 5rem;
}
.floating-card strong {
font-size: 1.6rem;
}
.floating-card p,
.stack-item p,
.kitchen-ticket p,
.receipt-line p,
.kds-items p {
margin: 0.4rem 0 0;
}
.floating-label,
.table-label,
.text-link {
color: var(--pos-accent);
font-weight: 700;
text-decoration: none;
}
.shape {
position: absolute;
border-radius: 28px;
filter: blur(0.2px);
}
.shape-sphere {
width: 180px;
height: 180px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #ffffff 0%, #a7f3d0 42%, rgba(15, 118, 110, 0.1) 72%, transparent 75%);
bottom: 0;
right: 18%;
}
.shape-cube {
width: 120px;
height: 120px;
background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(22, 50, 79, 0.12));
transform: rotate(18deg);
top: 0;
left: 20%;
}
.section-muted {
background: linear-gradient(180deg, rgba(238, 244, 247, 0.55), rgba(255, 255, 255, 0));
}
.section-heading,
.page-intro {
display: flex;
justify-content: space-between;
align-items: end;
gap: 1rem;
margin-bottom: 1.75rem;
}
.section-heading.compact h2,
.panel-card h2,
.kds-card h2,
.table-card h3 {
margin: 0.45rem 0 0;
font-size: 1.45rem;
}
.table-grid,
.kds-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.15rem;
}
.table-card,
.stack-item-link {
text-decoration: none;
color: inherit;
}
.table-card {
padding: 1.3rem;
border-radius: 24px;
min-height: 190px;
border: 1px solid transparent;
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
background: rgba(255, 255, 255, 0.88);
box-shadow: 0 18px 42px rgba(17, 36, 61, 0.08);
}
.table-card:hover,
.stack-item-link:hover,
.stack-item-link:focus {
transform: translateY(-3px);
box-shadow: 0 22px 46px rgba(17, 36, 61, 0.12);
}
.table-card.is-free {
border-color: rgba(21, 128, 61, 0.16);
background: linear-gradient(180deg, #ffffff 0%, #f5fff8 100%);
}
.table-card.is-occupied {
border-color: rgba(249, 115, 22, 0.18);
background: linear-gradient(180deg, #ffffff 0%, #fff8f3 100%);
}
.table-card-top,
.receipt-line,
.receipt-footer,
.stack-item,
.kitchen-ticket,
.workflow-steps {
display: flex;
justify-content: space-between;
gap: 1rem;
}
.table-card-top {
align-items: start;
}
.table-order-preview,
.empty-mini {
margin-top: 2.5rem;
}
.status-pill {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 0.85rem;
border-radius: 999px;
font-size: 0.82rem;
font-weight: 800;
}
.status-free {
color: var(--pos-primary-dark);
background: rgba(15, 118, 110, 0.12);
}
.status-busy {
color: #b45309;
background: rgba(249, 115, 22, 0.14);
}
.status-ready {
color: var(--pos-success);
background: rgba(21, 128, 61, 0.13);
}
.side-panel-card,
.panel-card {
padding: 1.5rem;
border-radius: var(--pos-radius-lg);
height: 100%;
}
.stack-list,
.kitchen-preview-list,
.receipt-lines,
.kds-items {
display: grid;
gap: 0.95rem;
}
.stack-item,
.kitchen-ticket,
.receipt-line,
.workflow-step,
.kds-items li {
padding: 1rem 1.1rem;
border-radius: 18px;
background: var(--pos-surface-soft);
border: 1px solid rgba(214, 225, 232, 0.7);
}
.receipt-line,
.stack-item,
.kitchen-ticket {
align-items: center;
}
.receipt-line strong,
.stack-item strong,
.kds-items strong,
.kitchen-ticket strong {
font-size: 1.02rem;
}
.receipt-footer {
align-items: center;
margin-top: 1.2rem;
padding-top: 1.2rem;
border-top: 1px solid rgba(214, 225, 232, 0.8);
}
.receipt-footer.large strong {
font-size: 1.7rem;
}
.page-intro {
align-items: center;
margin-bottom: 2rem;
}
.panel-card .form-control,
.panel-card .form-select {
border-radius: 14px;
border-color: var(--pos-border);
padding: 0.95rem 1rem;
}
.form-label {
font-weight: 700;
color: var(--pos-secondary);
}
.workflow-steps {
flex-direction: column;
margin-bottom: 1.2rem;
}
.workflow-step {
font-weight: 700;
color: var(--pos-muted);
}
.workflow-step.active {
color: var(--pos-primary-dark);
background: rgba(15, 118, 110, 0.12);
}
.kds-items {
list-style: none;
padding: 0;
margin: 0 0 1rem;
}
.kds-card {
padding: 1.4rem;
border-radius: 28px;
}
.empty-state-card {
padding: 2rem;
border-radius: 28px;
}
.empty-state-card.small {
padding: 1.5rem;
}
.empty-state-card.centered {
text-align: center;
}
.paid-state {
background: linear-gradient(180deg, #ffffff 0%, #f4fff7 100%);
}
@media (max-width: 991px) {
.hero-grid,
.section-heading,
.page-intro {
grid-template-columns: 1fr;
display: grid;
align-items: start;
}
.hero-visual {
min-height: 360px;
margin-top: 1rem;
}
.primary-card {
right: 1rem;
}
}
@media (max-width: 767px) {
.hero-copy h1,
.page-intro h1 {
font-size: 2.5rem;
}
.hero-section,
.dashboard-section,
.content-section {
padding: 1.5rem 0 3rem;
}
.hero-actions,
.page-actions,
.action-stack {
flex-direction: column;
}
.primary-card,
.secondary-card {
position: relative;
inset: auto;
width: 100%;
}
.hero-visual {
display: grid;
gap: 1rem;
min-height: auto;
}
.shape {
display: none;
}
}