1646 lines
50 KiB
CSS
1646 lines
50 KiB
CSS
/* ============================================================
|
|
НЕОН CRM — дизайн-система макета
|
|
Тема: тёмная, неон циан + фиолет (по мотивам neon-bar86.ru)
|
|
============================================================ */
|
|
|
|
:root {
|
|
--bg: #0a0a0f;
|
|
--bg-soft: #0e0e16;
|
|
--panel: #12121c;
|
|
--panel-2: #171724;
|
|
--panel-3: #1c1c2c;
|
|
--line: rgba(255, 255, 255, 0.08);
|
|
--line-strong: rgba(255, 255, 255, 0.14);
|
|
|
|
--text: #f2f3f8;
|
|
--muted: #9aa0b4;
|
|
--muted-2: #6b7186;
|
|
|
|
--cyan: #00f0ff;
|
|
--cyan-dim: rgba(0, 240, 255, 0.14);
|
|
--purple: #b44dff;
|
|
--purple-dim: rgba(180, 77, 255, 0.16);
|
|
--green: #2ee6a8;
|
|
--green-dim: rgba(46, 230, 168, 0.14);
|
|
--red: #ff4d6d;
|
|
--red-dim: rgba(255, 77, 109, 0.14);
|
|
--amber: #ffc857;
|
|
|
|
--radius: 16px;
|
|
--radius-sm: 10px;
|
|
|
|
--font-head: 'Unbounded', system-ui, sans-serif;
|
|
--font-body: 'Manrope', system-ui, sans-serif;
|
|
|
|
--shadow-neon-cyan: 0 0 24px rgba(0, 240, 255, 0.35);
|
|
--shadow-neon-purple: 0 0 24px rgba(180, 77, 255, 0.35);
|
|
|
|
/* тёмная тема для нативных виджетов: выпадающий календарь у input[type=date],
|
|
списки select, полосы прокрутки */
|
|
color-scheme: dark;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
html, body { height: 100%; }
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
-webkit-font-smoothing: antialiased;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background:
|
|
radial-gradient(900px 500px at 85% -10%, rgba(180, 77, 255, 0.10), transparent 60%),
|
|
radial-gradient(800px 500px at -10% 110%, rgba(0, 240, 255, 0.08), transparent 60%);
|
|
z-index: 0;
|
|
}
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.01em; }
|
|
em { font-style: normal; }
|
|
|
|
button { font-family: inherit; cursor: pointer; }
|
|
input, select { font-family: inherit; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Логотип
|
|
---------------------------------------------------------- */
|
|
.logo-neon {
|
|
flex: none;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 12px;
|
|
font-family: var(--font-head);
|
|
font-weight: 800;
|
|
font-size: 20px;
|
|
color: var(--cyan);
|
|
background: rgba(0, 240, 255, 0.06);
|
|
border: 1px solid rgba(0, 240, 255, 0.45);
|
|
box-shadow: var(--shadow-neon-cyan), inset 0 0 14px rgba(0, 240, 255, 0.18);
|
|
text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
|
|
}
|
|
|
|
/* ----------------------------------------------------------
|
|
Экран входа
|
|
---------------------------------------------------------- */
|
|
.login {
|
|
position: relative;
|
|
z-index: 1;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 22px;
|
|
padding: 24px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.glow {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
filter: blur(120px);
|
|
opacity: 0.35;
|
|
pointer-events: none;
|
|
}
|
|
.glow-cyan {
|
|
width: 420px;
|
|
height: 420px;
|
|
background: rgba(0, 240, 255, 0.22);
|
|
top: -120px;
|
|
left: -100px;
|
|
animation: drift 9s ease-in-out infinite alternate;
|
|
}
|
|
.glow-purple {
|
|
width: 480px;
|
|
height: 480px;
|
|
background: rgba(180, 77, 255, 0.22);
|
|
bottom: -160px;
|
|
right: -120px;
|
|
animation: drift 11s ease-in-out infinite alternate-reverse;
|
|
}
|
|
@keyframes drift {
|
|
from { transform: translate(0, 0) scale(1); }
|
|
to { transform: translate(50px, 35px) scale(1.12); }
|
|
}
|
|
|
|
.login-card {
|
|
position: relative;
|
|
width: min(440px, 100%);
|
|
background: linear-gradient(160deg, rgba(23, 23, 36, 0.92), rgba(14, 14, 22, 0.94));
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: 22px;
|
|
padding: 34px 32px 26px;
|
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.login-logo {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
margin-bottom: 26px;
|
|
}
|
|
.login-logo .logo-neon { width: 54px; height: 54px; font-size: 26px; border-radius: 14px; }
|
|
.login-logo h1 { font-size: 24px; line-height: 1.2; }
|
|
.login-logo h1 em { color: var(--cyan); text-shadow: 0 0 14px rgba(0, 240, 255, 0.55); }
|
|
.login-logo p { color: var(--muted); font-size: 13px; margin-top: 4px; }
|
|
|
|
.role-picker {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 6px;
|
|
background: var(--bg-soft);
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
padding: 5px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.role-pill {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-weight: 700;
|
|
font-size: 13.5px;
|
|
padding: 10px;
|
|
border-radius: 9px;
|
|
transition: all 0.2s;
|
|
}
|
|
.role-pill.active {
|
|
background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(180, 77, 255, 0.16));
|
|
color: var(--text);
|
|
box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.35);
|
|
}
|
|
|
|
.field { display: block; margin-bottom: 14px; }
|
|
.field span {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--muted);
|
|
margin-bottom: 7px;
|
|
}
|
|
.field input {
|
|
width: 100%;
|
|
background: var(--bg-soft);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
padding: 12px 14px;
|
|
outline: none;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
.field input:focus {
|
|
border-color: rgba(0, 240, 255, 0.6);
|
|
box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
|
|
}
|
|
|
|
.login-foot { color: var(--muted-2); font-size: 12.5px; position: relative; }
|
|
|
|
.login-demo {
|
|
margin-top: 22px;
|
|
padding-top: 18px;
|
|
border-top: 1px dashed var(--line-strong);
|
|
text-align: center;
|
|
}
|
|
.login-demo > span { display: block; color: var(--muted-2); font-size: 12.5px; margin-bottom: 10px; }
|
|
.login-demo-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Каркас приложения
|
|
---------------------------------------------------------- */
|
|
.app {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
grid-template-columns: 264px 1fr;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
padding: 22px 18px;
|
|
background: rgba(14, 14, 22, 0.7);
|
|
border-right: 1px solid var(--line);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 20px; }
|
|
.brand-txt strong { font-family: var(--font-head); font-size: 16px; display: block; }
|
|
.brand-txt strong em { color: var(--cyan); }
|
|
.brand-txt small { color: var(--muted); font-size: 12px; }
|
|
|
|
.nav { display: flex; flex-direction: column; gap: 4px; }
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 14.5px;
|
|
font-weight: 600;
|
|
padding: 11px 12px;
|
|
border-radius: 12px;
|
|
transition: all 0.18s;
|
|
text-align: left;
|
|
}
|
|
.nav-item .ico { font-size: 17px; width: 22px; text-align: center; }
|
|
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
|
|
.nav-item.active {
|
|
color: var(--text);
|
|
background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(180, 77, 255, 0.10));
|
|
border-color: rgba(0, 240, 255, 0.3);
|
|
}
|
|
.nav-item .nav-badge {
|
|
margin-left: auto;
|
|
min-width: 22px;
|
|
height: 22px;
|
|
padding: 0 6px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 999px;
|
|
background: var(--red-dim);
|
|
color: var(--red);
|
|
font-size: 11.5px;
|
|
font-weight: 800;
|
|
border: 1px solid rgba(255, 77, 109, 0.35);
|
|
}
|
|
|
|
.side-bottom { display: flex; flex-direction: column; gap: 10px; }
|
|
.user-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
padding: 10px 12px;
|
|
}
|
|
.user-card strong { display: block; font-size: 14px; }
|
|
.user-card small { color: var(--muted); font-size: 12px; }
|
|
.user-card .icon-btn { margin-left: auto; }
|
|
.avatar {
|
|
flex: none;
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 10px;
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 800;
|
|
font-size: 15px;
|
|
background: var(--purple-dim);
|
|
color: var(--purple);
|
|
border: 1px solid rgba(180, 77, 255, 0.4);
|
|
}
|
|
|
|
.main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
padding: 24px 28px 40px;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.topbar h2 { font-size: 21px; }
|
|
.topbar h2::after {
|
|
content: '';
|
|
display: block;
|
|
width: 46px;
|
|
height: 3px;
|
|
border-radius: 3px;
|
|
margin-top: 8px;
|
|
background: linear-gradient(90deg, var(--cyan), var(--purple));
|
|
box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
|
|
}
|
|
.topbar p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
|
|
|
|
.topbar-right { display: flex; align-items: center; gap: 12px; }
|
|
.shift {
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
padding: 7px 13px;
|
|
background: var(--panel);
|
|
}
|
|
.clock {
|
|
font-family: var(--font-head);
|
|
font-size: 17px;
|
|
color: var(--cyan);
|
|
text-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
|
|
min-width: 64px;
|
|
text-align: right;
|
|
}
|
|
.icon-btn {
|
|
position: relative;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
border-radius: 10px;
|
|
width: 38px;
|
|
height: 38px;
|
|
font-size: 15px;
|
|
transition: all 0.2s;
|
|
}
|
|
.icon-btn:hover { border-color: var(--line-strong); background: var(--panel-2); }
|
|
.bell { font-size: 16px; }
|
|
.bell-count {
|
|
position: absolute;
|
|
top: -7px;
|
|
right: -7px;
|
|
min-width: 19px;
|
|
height: 19px;
|
|
padding: 0 5px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 999px;
|
|
background: var(--red);
|
|
color: #fff;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
box-shadow: 0 0 10px rgba(255, 77, 109, 0.7);
|
|
}
|
|
.bell.has-new { border-color: rgba(255, 77, 109, 0.5); box-shadow: 0 0 14px rgba(255, 77, 109, 0.25); }
|
|
|
|
/* ----------------------------------------------------------
|
|
Кнопки
|
|
---------------------------------------------------------- */
|
|
.btn {
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
padding: 12px 18px;
|
|
transition: all 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
.btn:active { transform: scale(0.98); }
|
|
|
|
.btn-neon {
|
|
background: linear-gradient(135deg, var(--cyan), #6a7bff);
|
|
color: #051018;
|
|
box-shadow: 0 6px 20px rgba(0, 240, 255, 0.28);
|
|
}
|
|
.btn-neon:hover { box-shadow: 0 6px 26px rgba(0, 240, 255, 0.45); }
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
border-color: var(--line-strong);
|
|
color: var(--muted);
|
|
}
|
|
.btn-ghost:hover { color: var(--text); border-color: rgba(0, 240, 255, 0.45); }
|
|
|
|
.btn-danger {
|
|
background: var(--red-dim);
|
|
color: var(--red);
|
|
border-color: rgba(255, 77, 109, 0.35);
|
|
}
|
|
.btn-danger:hover { background: rgba(255, 77, 109, 0.22); }
|
|
|
|
.btn-green {
|
|
background: var(--green-dim);
|
|
color: var(--green);
|
|
border-color: rgba(46, 230, 168, 0.35);
|
|
}
|
|
.btn-green:hover { background: rgba(46, 230, 168, 0.22); }
|
|
|
|
.btn-sm { padding: 8px 14px; font-size: 13px; }
|
|
.btn-block { width: 100%; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Формы владельца (сотрудники, новые позиции) и отчёты
|
|
---------------------------------------------------------- */
|
|
.user-form {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
.user-form input,
|
|
.user-form select,
|
|
.report-controls input {
|
|
background-color: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
color: var(--text);
|
|
padding: 10px 12px;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
min-width: 0;
|
|
}
|
|
/* под кастомную стрелку селекта (см. глобальное правило select) */
|
|
.user-form select { padding-right: 32px; }
|
|
|
|
/* выпадающие списки: у всех селектов кастомная неоновая стрелка вместо
|
|
нативной (та рисуется браузером и выбивается из тёмной темы). Сам
|
|
раскрытый список темнит color-scheme: dark на :root */
|
|
select {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa0b4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
padding-right: 30px;
|
|
cursor: pointer;
|
|
}
|
|
select:hover { border-color: rgba(0, 240, 255, 0.35); }
|
|
select option { background: var(--panel-2); color: var(--text); }
|
|
|
|
/* календарные поля (отчёты): тот же стиль коробки, курсор-рука и неоновый
|
|
hover; значок-календарик стилизован ниже (::calendar-picker-indicator) */
|
|
input[type="date"] {
|
|
cursor: pointer;
|
|
}
|
|
input[type="date"]:hover { border-color: rgba(0, 240, 255, 0.35); }
|
|
.user-form input:focus,
|
|
.user-form select:focus,
|
|
.report-controls input:focus {
|
|
outline: none;
|
|
border-color: rgba(0, 240, 255, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
|
|
}
|
|
/* ошибки валидации формы микса: подсветка поля и сообщение под ним */
|
|
.user-form .field-error {
|
|
border-color: rgba(255, 77, 109, 0.65) !important;
|
|
box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.12);
|
|
}
|
|
.form-error {
|
|
grid-column: 1 / -1;
|
|
color: var(--red);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
.form-error:first-letter { text-transform: uppercase; }
|
|
.chips.field-error-block {
|
|
border: 1px solid rgba(255, 77, 109, 0.55);
|
|
border-radius: 10px;
|
|
padding: 8px 10px;
|
|
box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.08);
|
|
}
|
|
/* ошибка на целой панели (ручной заказ без стола/позиций) */
|
|
.panel.panel-error {
|
|
border-color: rgba(255, 77, 109, 0.6);
|
|
box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.09);
|
|
}
|
|
/* сообщение об ошибке вне grid-формы (под панелью) */
|
|
.dash-grid .form-error { grid-column: auto; }
|
|
.check-inline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
}
|
|
.report-controls {
|
|
display: flex;
|
|
gap: 14px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
.report-controls label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
/* поля с календарём (input[type=date]): видимый значок-календарик на тёмном
|
|
фоне и неоновая подсветка при наведении; сам выпадающий календарь
|
|
затемняется через color-scheme: dark на :root */
|
|
input[type="date"]::-webkit-calendar-picker-indicator {
|
|
filter: invert(0.75);
|
|
opacity: 0.55;
|
|
cursor: pointer;
|
|
transition: opacity 0.15s, filter 0.15s;
|
|
}
|
|
input[type="date"]::-webkit-calendar-picker-indicator:hover {
|
|
opacity: 1;
|
|
filter: invert(0.75) drop-shadow(0 0 5px rgba(0, 240, 255, 0.65));
|
|
}
|
|
input[type="date"]::-webkit-datetime-edit {
|
|
color: var(--text);
|
|
}
|
|
input[type="date"]::-webkit-datetime-edit-fields-wrapper:hover,
|
|
input[type="date"]::-webkit-datetime-edit-year-field:hover,
|
|
input[type="date"]::-webkit-datetime-edit-month-field:hover,
|
|
input[type="date"]::-webkit-datetime-edit-day-field:hover {
|
|
background: rgba(0, 240, 255, 0.08);
|
|
border-radius: 4px;
|
|
}
|
|
.report-table {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
.report-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto auto auto;
|
|
gap: 14px;
|
|
padding: 9px 12px;
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
font-size: 13px;
|
|
}
|
|
.report-row.head {
|
|
background: transparent;
|
|
color: var(--muted-2);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
.report-row.three { grid-template-columns: 1fr auto auto; }
|
|
.report-row.staff { grid-template-columns: 1.4fr auto auto auto auto auto; gap: 12px; }
|
|
.report-row.staff .ri-name { white-space: normal; }
|
|
.report-row.staff .ri-name small { color: var(--muted-2); font-weight: 400; }
|
|
.report-row .ri-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* селект сортировки списков (меню/табаки/миксы) — как поля отчёта */
|
|
.sort-select {
|
|
background-color: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
color: var(--text);
|
|
padding: 9px 30px 9px 12px;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
.sort-select:focus {
|
|
outline: none;
|
|
border-color: rgba(0, 240, 255, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
|
|
}
|
|
|
|
.topbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.shift-countdown {
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ----------------------------------------------------------
|
|
Панели, сетки, статистика
|
|
---------------------------------------------------------- */
|
|
.panel {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
}
|
|
|
|
.panel-title {
|
|
font-family: var(--font-head);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
.panel-title small { font-family: var(--font-body); color: var(--muted-2); font-weight: 500; }
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 14px;
|
|
margin-bottom: 22px;
|
|
}
|
|
.stat {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 18px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.stat::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
}
|
|
.stat.c-cyan::after { background: linear-gradient(90deg, var(--cyan), transparent); }
|
|
.stat.c-purple::after { background: linear-gradient(90deg, var(--purple), transparent); }
|
|
.stat.c-green::after { background: linear-gradient(90deg, var(--green), transparent); }
|
|
.stat.c-red::after { background: linear-gradient(90deg, var(--red), transparent); }
|
|
|
|
.stat .num {
|
|
font-family: var(--font-head);
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
line-height: 1.15;
|
|
}
|
|
.stat.c-cyan .num { color: var(--cyan); text-shadow: 0 0 16px rgba(0, 240, 255, 0.45); }
|
|
.stat.c-purple .num { color: var(--purple); text-shadow: 0 0 16px rgba(180, 77, 255, 0.45); }
|
|
.stat.c-green .num { color: var(--green); text-shadow: 0 0 16px rgba(46, 230, 168, 0.45); }
|
|
.stat.c-red .num { color: var(--red); text-shadow: 0 0 16px rgba(255, 77, 109, 0.45); }
|
|
.stat .num.txt {
|
|
font-size: 19px;
|
|
line-height: 1.3;
|
|
padding-top: 5px;
|
|
}
|
|
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 4px; }
|
|
.stat .sub { color: var(--muted-2); font-size: 12px; margin-top: 8px; }
|
|
|
|
.dash-grid {
|
|
display: grid;
|
|
grid-template-columns: 1.6fr 1fr;
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
|
|
/* ----------------------------------------------------------
|
|
Чипсы-фильтры, поиск
|
|
---------------------------------------------------------- */
|
|
.toolbar {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
margin-bottom: 18px;
|
|
}
|
|
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.chip {
|
|
border: 1px solid var(--line);
|
|
background: var(--panel);
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
padding: 8px 14px;
|
|
border-radius: 999px;
|
|
transition: all 0.18s;
|
|
}
|
|
.chip:hover { color: var(--text); }
|
|
.chip.active {
|
|
color: var(--cyan);
|
|
border-color: rgba(0, 240, 255, 0.5);
|
|
background: var(--cyan-dim);
|
|
box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
|
|
}
|
|
.chip .cnt { opacity: 0.65; font-weight: 600; margin-left: 4px; }
|
|
|
|
.search {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
max-width: 340px;
|
|
position: relative;
|
|
}
|
|
.search::before {
|
|
content: '⌕';
|
|
position: absolute;
|
|
left: 13px;
|
|
top: 50%;
|
|
transform: translateY(-56%);
|
|
font-size: 18px;
|
|
color: var(--muted-2);
|
|
}
|
|
.search input {
|
|
width: 100%;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
padding: 9px 16px 9px 36px;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.search input:focus { border-color: rgba(0, 240, 255, 0.5); }
|
|
.search input::placeholder { color: var(--muted-2); }
|
|
|
|
/* ----------------------------------------------------------
|
|
Бейджи
|
|
---------------------------------------------------------- */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11.5px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
border-radius: 999px;
|
|
padding: 4px 11px;
|
|
border: 1px solid;
|
|
white-space: nowrap;
|
|
}
|
|
.b-new { background: var(--cyan-dim); color: var(--cyan); border-color: rgba(0, 240, 255, 0.4); }
|
|
.b-active { background: var(--purple-dim); color: var(--purple); border-color: rgba(180, 77, 255, 0.4); }
|
|
.b-done { background: var(--green-dim); color: var(--green); border-color: rgba(46, 230, 168, 0.4); }
|
|
.b-stop { background: var(--red-dim); color: var(--red); border-color: rgba(255, 77, 109, 0.4); }
|
|
.b-cancel { background: rgba(255, 255, 255, 0.06); color: var(--muted); border-color: rgba(255, 255, 255, 0.18); }
|
|
.menu-row.row-deleted { opacity: 0.55; }
|
|
.menu-row.row-deleted .m-name { text-decoration: line-through; }
|
|
.b-mut { background: rgba(255,255,255,0.05); color: var(--muted); border-color: var(--line-strong); }
|
|
.b-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Список меню (админ)
|
|
---------------------------------------------------------- */
|
|
.menu-list { display: flex; flex-direction: column; gap: 8px; }
|
|
|
|
.menu-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto auto auto;
|
|
align-items: center;
|
|
gap: 14px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
padding: 13px 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
.menu-row:hover { border-color: var(--line-strong); }
|
|
.menu-row .m-name { font-weight: 700; font-size: 14.5px; }
|
|
.menu-row .m-cat { color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }
|
|
.menu-row .m-price { font-weight: 800; font-size: 14.5px; color: var(--text); white-space: nowrap; }
|
|
.menu-row.stopped {
|
|
background: linear-gradient(90deg, rgba(255, 77, 109, 0.09), var(--panel) 55%);
|
|
border-color: rgba(255, 77, 109, 0.35);
|
|
}
|
|
.menu-row.stopped .m-name { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 77, 109, 0.6); }
|
|
|
|
/* ----------------------------------------------------------
|
|
Тумблер стоп-листа
|
|
---------------------------------------------------------- */
|
|
.switch { position: relative; display: inline-block; width: 48px; height: 27px; flex: none; }
|
|
.switch input { opacity: 0; width: 0; height: 0; }
|
|
.switch .track {
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: 999px;
|
|
background: var(--green-dim);
|
|
border: 1px solid rgba(46, 230, 168, 0.45);
|
|
transition: all 0.22s;
|
|
}
|
|
.switch .track::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 19px;
|
|
height: 19px;
|
|
border-radius: 50%;
|
|
top: 3px;
|
|
left: 4px;
|
|
background: var(--green);
|
|
box-shadow: 0 0 10px rgba(46, 230, 168, 0.7);
|
|
transition: all 0.22s;
|
|
}
|
|
.switch input:checked + .track {
|
|
background: var(--red-dim);
|
|
border-color: rgba(255, 77, 109, 0.55);
|
|
}
|
|
.switch input:checked + .track::before {
|
|
left: 24px;
|
|
background: var(--red);
|
|
box-shadow: 0 0 10px rgba(255, 77, 109, 0.7);
|
|
}
|
|
.switch-label { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Сетка табаков
|
|
---------------------------------------------------------- */
|
|
.tobacco-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.tob-card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
transition: all 0.2s;
|
|
}
|
|
.tob-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
|
|
.tob-card .t-brand { font-family: var(--font-head); font-size: 15px; font-weight: 600; }
|
|
.tob-card .t-line { color: var(--muted); font-size: 13px; margin-top: 4px; }
|
|
.tob-card .t-foot {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-top: auto;
|
|
padding-top: 12px;
|
|
border-top: 1px dashed var(--line);
|
|
}
|
|
.tob-card.stopped {
|
|
background: linear-gradient(160deg, rgba(255, 77, 109, 0.10), var(--panel) 70%);
|
|
border-color: rgba(255, 77, 109, 0.4);
|
|
}
|
|
.tob-card.stopped .t-brand { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 77, 109, 0.6); }
|
|
|
|
/* ----------------------------------------------------------
|
|
Заказы — канбан (официант) и таблица (админ)
|
|
---------------------------------------------------------- */
|
|
.kanban {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
.kan-col {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 14px;
|
|
min-height: 220px;
|
|
}
|
|
.kan-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 2px 6px 12px;
|
|
font-weight: 800;
|
|
font-size: 13.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
.kan-head .cnt {
|
|
font-size: 12px;
|
|
padding: 2px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid;
|
|
}
|
|
.kan-new .kan-head { color: var(--cyan); }
|
|
.kan-new .cnt { background: var(--cyan-dim); border-color: rgba(0, 240, 255, 0.4); }
|
|
.kan-active .kan-head { color: var(--purple); }
|
|
.kan-active .cnt { background: var(--purple-dim); border-color: rgba(180, 77, 255, 0.4); }
|
|
.kan-done .kan-head { color: var(--green); }
|
|
.kan-done .cnt { background: var(--green-dim); border-color: rgba(46, 230, 168, 0.4); }
|
|
|
|
.kan-col .stack { display: flex; flex-direction: column; gap: 12px; }
|
|
.kan-empty {
|
|
border: 1px dashed var(--line);
|
|
border-radius: 12px;
|
|
color: var(--muted-2);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
padding: 26px 10px;
|
|
}
|
|
|
|
.order-card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
padding: 14px 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
.order-card:hover { border-color: var(--line-strong); }
|
|
.order-card.is-new { border-color: rgba(0, 240, 255, 0.35); box-shadow: 0 0 18px rgba(0, 240, 255, 0.07); }
|
|
.order-card.is-cancelled { opacity: 0.55; border-color: rgba(255, 255, 255, 0.12); }
|
|
.order-card.is-cancelled:hover { border-color: rgba(255, 255, 255, 0.2); }
|
|
.order-card.is-new .o-num::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--cyan);
|
|
box-shadow: 0 0 10px var(--cyan);
|
|
margin-right: 8px;
|
|
animation: pulse 1.6s ease-in-out infinite;
|
|
vertical-align: 1px;
|
|
}
|
|
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
|
|
|
|
.o-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.o-num { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
|
|
.o-table {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--muted);
|
|
border: 1px solid var(--line-strong);
|
|
padding: 3px 9px;
|
|
border-radius: 999px;
|
|
}
|
|
.o-time { margin-left: auto; color: var(--muted-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
|
|
|
|
.o-items { list-style: none; margin: 0 0 12px; display: flex; flex-direction: column; gap: 5px; }
|
|
.o-items li {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
font-size: 13.5px;
|
|
color: var(--muted);
|
|
}
|
|
.o-items .q {
|
|
color: var(--text);
|
|
font-weight: 700;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: 6px;
|
|
padding: 0 6px;
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
display: inline-block;
|
|
}
|
|
.o-items .p { white-space: nowrap; color: var(--muted-2); }
|
|
/* длинное название переносится, а не распирает строку состава */
|
|
.o-items li > span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
|
|
|
|
.o-foot {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
border-top: 1px dashed var(--line);
|
|
padding-top: 11px;
|
|
}
|
|
/* левый блок (сумма, источник, гость) сжимаемым не даём: без этого
|
|
на узких экранах текст «заказ с сайта» ломается в вертикальный столбик */
|
|
.o-foot > div:first-child { flex: 1 1 auto; min-width: 0; }
|
|
.o-total { font-weight: 800; font-size: 15px; white-space: nowrap; }
|
|
.o-waiter { color: var(--muted-2); font-size: 12.5px; overflow-wrap: anywhere; }
|
|
.o-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
|
|
.o-actions .btn-sm { padding: 10px 14px; }
|
|
|
|
/* Таблица заказов (админ) */
|
|
.order-table { display: flex; flex-direction: column; gap: 8px; }
|
|
.ot-row {
|
|
display: grid;
|
|
grid-template-columns: 70px 80px 1fr 100px 90px 130px 130px;
|
|
gap: 12px;
|
|
align-items: center;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
}
|
|
.ot-row.head {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--muted-2);
|
|
font-size: 11.5px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.07em;
|
|
padding: 0 16px;
|
|
}
|
|
.ot-row:not(.head):hover { border-color: var(--line-strong); }
|
|
.ot-num { font-family: var(--font-head); font-weight: 700; }
|
|
.ot-time-cell { color: var(--muted); font-weight: 600; }
|
|
.ot-items-cell { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.ot-total-cell { font-weight: 800; }
|
|
.ot-waiter-cell { color: var(--muted); }
|
|
.ot-dur-cell { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
|
|
|
|
/* Выпадающий статус (админ) */
|
|
.status-select {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
border: 1px solid var(--line-strong);
|
|
background-color: var(--panel-2);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
font-weight: 800;
|
|
font-size: 11.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
border-radius: 999px;
|
|
padding: 8px 30px 8px 14px;
|
|
cursor: pointer;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa0b4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
.status-select:hover { border-color: rgba(0, 240, 255, 0.5); }
|
|
.status-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12); }
|
|
.status-select option { background: var(--panel-2); color: var(--text); }
|
|
.status-select.s-new { color: var(--cyan); border-color: rgba(0, 240, 255, 0.4); background-color: var(--cyan-dim); }
|
|
.status-select.s-active { color: var(--purple); border-color: rgba(180, 77, 255, 0.4); background-color: var(--purple-dim); }
|
|
.status-select.s-done { color: var(--green); border-color: rgba(46, 230, 168, 0.4); background-color: var(--green-dim); }
|
|
.status-select.s-cancelled { color: var(--muted); border-color: rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.06); }
|
|
|
|
/* Длительность выполнения в карточке заказа */
|
|
.o-dur { color: var(--green); font-size: 12px; font-weight: 700; margin-top: 3px; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Виджеты дашборда
|
|
---------------------------------------------------------- */
|
|
.hall-list { display: flex; flex-direction: column; gap: 8px; }
|
|
.hall {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: var(--bg-soft);
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
padding: 11px 14px;
|
|
}
|
|
.hall .h-name { font-weight: 700; font-size: 14px; }
|
|
.hall .h-sub { color: var(--muted-2); font-size: 12px; margin-top: 1px; }
|
|
.hall .badge { margin-left: auto; }
|
|
|
|
.mini-orders { display: flex; flex-direction: column; gap: 8px; }
|
|
.mini-order {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: var(--bg-soft);
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
padding: 11px 14px;
|
|
font-size: 13.5px;
|
|
}
|
|
.mini-order .mo-num { font-weight: 800; white-space: nowrap; }
|
|
.mini-order .mo-info { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.mini-order .badge { margin-left: auto; }
|
|
|
|
.stop-now { display: flex; flex-direction: column; gap: 8px; }
|
|
.stop-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: rgba(255, 77, 109, 0.06);
|
|
border: 1px solid rgba(255, 77, 109, 0.25);
|
|
border-radius: 12px;
|
|
padding: 10px 13px;
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
}
|
|
.stop-item .si-ico { font-size: 15px; }
|
|
.stop-item .si-type { color: var(--muted-2); font-size: 12px; font-weight: 600; margin-left: auto; padding-right: 8px; }
|
|
.stop-item .btn { padding: 6px 11px; font-size: 12px; }
|
|
.stop-empty {
|
|
border: 1px dashed var(--line);
|
|
border-radius: 12px;
|
|
color: var(--muted-2);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
padding: 20px 10px;
|
|
}
|
|
|
|
.note {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
background: var(--cyan-dim);
|
|
border: 1px solid rgba(0, 240, 255, 0.25);
|
|
border-radius: 12px;
|
|
padding: 12px 15px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
margin-bottom: 18px;
|
|
}
|
|
.note b { color: var(--text); }
|
|
.note .n-ico { font-size: 15px; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Тосты
|
|
---------------------------------------------------------- */
|
|
.toast-wrap {
|
|
position: fixed;
|
|
right: 20px;
|
|
bottom: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
z-index: 50;
|
|
}
|
|
.toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line-strong);
|
|
border-left: 3px solid var(--cyan);
|
|
border-radius: 12px;
|
|
padding: 13px 18px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
|
|
animation: toast-in 0.25s ease;
|
|
max-width: 360px;
|
|
}
|
|
.toast.t-red { border-left-color: var(--red); }
|
|
.toast.t-green { border-left-color: var(--green); }
|
|
.toast.out { opacity: 0; transform: translateX(20px); transition: all 0.3s; }
|
|
@keyframes toast-in {
|
|
from { opacity: 0; transform: translateY(12px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ----------------------------------------------------------
|
|
Адаптив
|
|
---------------------------------------------------------- */
|
|
@media (max-width: 1100px) {
|
|
.kanban { grid-template-columns: 1fr; }
|
|
.dash-grid { grid-template-columns: 1fr; }
|
|
.ot-row { grid-template-columns: 60px 90px 1fr 90px 120px; }
|
|
.ot-row .ot-waiter-cell, .ot-row .ot-dur-cell,
|
|
.ot-row.head .h-waiter, .ot-row.head .h-dur { display: none; }
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.app { grid-template-columns: 1fr; }
|
|
.sidebar {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px 14px;
|
|
padding: 12px 16px;
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.brand { padding: 0; }
|
|
.brand-txt small, .side-bottom .btn { display: none; }
|
|
.nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
|
|
.nav-item { padding: 8px 12px; font-size: 13px; width: auto; }
|
|
.nav-item .ico { width: auto; }
|
|
.side-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1 1 100%; }
|
|
.side-bottom { flex: 1 1 auto; justify-content: flex-end; }
|
|
.user-card { padding: 6px 10px; gap: 8px; }
|
|
.user-card > div { display: none; }
|
|
.user-card .icon-btn { margin-left: 0; }
|
|
.main { padding: 18px 16px 32px; }
|
|
.menu-row { grid-template-columns: 1fr auto; row-gap: 10px; }
|
|
.menu-row .m-price { order: 3; }
|
|
.menu-row .m-stopcell { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
|
|
.menu-row .badge { grid-column: 1 / -1; justify-self: start; }
|
|
.clock { display: none; }
|
|
.shift { display: none; }
|
|
#simOrderBtn { display: none; }
|
|
.ot-row { grid-template-columns: 56px 1fr 90px 118px; }
|
|
.ot-row .ot-time-cell, .ot-row .ot-waiter-cell, .ot-row .ot-dur-cell,
|
|
.ot-row.head .h-waiter, .ot-row.head .h-dur, .ot-row.head span:nth-child(2) { display: none; }
|
|
}
|
|
|
|
/* ---- продакшн-дополнения: ошибка входа и кнопка переподключения ---- */
|
|
.login-error {
|
|
margin: 14px 0 0;
|
|
padding: 10px 14px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 82, 82, 0.4);
|
|
background: rgba(255, 82, 82, 0.08);
|
|
color: #ff8a8a;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
.login-error.hidden { display: none; }
|
|
.offline-retry { color: #ffb14d; border-color: rgba(255, 177, 77, 0.4); }
|
|
|
|
/* ---- залы: занятость столов и зон ---- */
|
|
.hall-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.hall-card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
.hall-card.is-busy { border-color: rgba(255, 77, 109, 0.35); }
|
|
.hall-card .h-top { display: flex; align-items: flex-start; gap: 10px; }
|
|
.hall-card .h-top .badge { margin-left: auto; white-space: nowrap; }
|
|
.hall-card .h-name { font-weight: 800; font-size: 15px; }
|
|
.hall-card .h-sub { color: var(--muted-2); font-size: 12.5px; margin-top: 1px; }
|
|
.hall-card .h-busyby { color: var(--muted); font-size: 12.5px; }
|
|
.hall-card .h-timer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 9px 12px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--red-dim);
|
|
border: 1px solid rgba(255, 77, 109, 0.3);
|
|
}
|
|
.hall-card .h-timer .busy-timer {
|
|
font-family: var(--font-head);
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: var(--red);
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.hall-card .h-timer .busy-timer.expired {
|
|
color: var(--amber);
|
|
font-size: 13px;
|
|
letter-spacing: 0;
|
|
}
|
|
.hall-card .h-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
|
|
.hall-busy { border-color: rgba(255, 77, 109, 0.35); }
|
|
|
|
/* брони столов и зон: окно «со скольки до скольки» + отсчёт до прихода гостя */
|
|
.h-reserve {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 4px 10px;
|
|
padding: 9px 12px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--purple-dim);
|
|
border: 1px solid rgba(180, 77, 255, 0.3);
|
|
font-size: 12.5px;
|
|
color: var(--muted);
|
|
}
|
|
.h-reserve.is-ongoing { border-color: rgba(180, 77, 255, 0.6); color: var(--text); }
|
|
.h-reserve-what { font-weight: 700; color: var(--text); }
|
|
.h-reserve-count { display: inline-flex; align-items: baseline; gap: 4px; }
|
|
.h-reserve .busy-timer {
|
|
font-family: var(--font-head);
|
|
font-weight: 700;
|
|
color: var(--purple);
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.h-reserve .icon-btn { margin-left: auto; flex: none; }
|
|
.h-reserve-more { color: var(--muted-2); font-size: 12px; margin-top: 5px; }
|
|
|
|
/* ---- игры: библиотека PS5 и настолок ---- */
|
|
.games-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.game-card {
|
|
display: flex;
|
|
gap: 12px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 12px;
|
|
}
|
|
.game-card.is-deleted { opacity: 0.5; }
|
|
.game-card.is-deleted .g-title { text-decoration: line-through; }
|
|
.g-cover { flex: none; width: 86px; }
|
|
.g-cover-img {
|
|
width: 86px;
|
|
height: 118px;
|
|
object-fit: cover;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--line);
|
|
display: block;
|
|
background: var(--panel-2);
|
|
}
|
|
.g-cover-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 34px;
|
|
color: var(--muted-2);
|
|
}
|
|
.g-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
|
|
.g-body .badge { align-self: flex-start; }
|
|
.g-title { font-weight: 800; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
|
|
.g-note { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
|
|
.g-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
|
|
@media (max-width: 620px) {
|
|
.games-grid { grid-template-columns: 1fr; }
|
|
.game-card { padding: 10px; }
|
|
|
|
/* --- телефон официанта: плотные отступы, канбан одной колонкой --- */
|
|
.main { padding: 14px 12px 64px; }
|
|
.topbar { margin-bottom: 14px; gap: 10px; }
|
|
.topbar h2 { font-size: 18px; }
|
|
.kanban { gap: 10px; }
|
|
.kan-col { min-height: 0; padding: 12px 10px; }
|
|
.order-card { padding: 12px; }
|
|
|
|
/* карточка заказа: сумма и источник — своей строкой, кнопки — ниже
|
|
равными рядами, в пределах карточки и под палец */
|
|
.o-actions { flex: 1 1 100%; margin-left: 0; }
|
|
.o-actions .btn { flex: 1 1 auto; white-space: nowrap; }
|
|
.o-actions .btn-sm { padding: 12px 10px; font-size: 13.5px; }
|
|
.o-total { font-size: 16px; }
|
|
.n-move { padding: 10px 16px; }
|
|
|
|
/* таблица заказов, если админ заглянул с телефона */
|
|
.ot-row { grid-template-columns: 40px 1fr 78px 104px; gap: 8px; padding: 10px 12px; font-size: 13px; }
|
|
.ot-row.head { padding: 0 12px; }
|
|
.status-select { padding: 8px 24px 8px 10px; font-size: 10.5px; background-position: right 8px center; }
|
|
|
|
/* тосты во всю ширину экрана, а не за правым краем */
|
|
.toast-wrap { left: 16px; right: 16px; }
|
|
.toast { max-width: none; }
|
|
}
|
|
.accent-dot {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
margin-right: 5px;
|
|
vertical-align: -1px;
|
|
box-shadow: 0 0 8px currentColor;
|
|
}
|
|
.menu-row .accent-palette {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
/* таймер в бейджах («Занят · 12:34») */
|
|
.badge .busy-timer {
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 800;
|
|
}
|
|
|
|
/* стол занят — чип в выборе стола ручного заказа */
|
|
.chip-busy {
|
|
border-color: rgba(255, 77, 109, 0.45);
|
|
color: #ff8fa3;
|
|
}
|
|
|
|
/* комментарий к заказу: карточка и ячейка таблицы */
|
|
/* строка кальяна в составе заказа — мгновенно цепляет глаз на планшете */
|
|
.o-items .is-hookah {
|
|
color: var(--cyan);
|
|
}
|
|
|
|
.o-comment { color: var(--amber); font-size: 12.5px; margin-top: 3px; overflow-wrap: anywhere; }
|
|
.order-comment {
|
|
width: 100%;
|
|
margin-top: 12px;
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--line-strong);
|
|
background: var(--panel-2);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
font-size: 13.5px;
|
|
resize: vertical;
|
|
min-height: 52px;
|
|
}
|
|
.order-comment:focus { outline: none; border-color: rgba(0, 240, 255, 0.5); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12); }
|
|
|
|
/* ---- заметки и задачи: канбан досок ---- */
|
|
.note-card { cursor: pointer; }
|
|
.note-card.dragging { opacity: 0.45; transform: rotate(1.5deg); }
|
|
.note-card.is-done { opacity: 0.55; }
|
|
.note-card.is-done .o-num { text-decoration: line-through; text-decoration-color: rgba(46, 230, 168, 0.6); }
|
|
.note-card.is-important { border-color: rgba(255, 200, 87, 0.45); box-shadow: 0 0 16px rgba(255, 200, 87, 0.08); }
|
|
.note-card.is-overdue { border-color: rgba(255, 77, 109, 0.4); }
|
|
.n-body {
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
margin-top: 6px;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.n-flag-imp,
|
|
.n-flag-over {
|
|
flex: none;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.03em;
|
|
padding: 3px 8px;
|
|
border-radius: 999px;
|
|
white-space: nowrap;
|
|
}
|
|
.n-flag-imp { background: rgba(255, 200, 87, 0.14); color: var(--amber); }
|
|
.n-flag-over { background: var(--red-dim); color: var(--red); }
|
|
.n-moves { display: flex; gap: 6px; flex: none; margin-left: auto; }
|
|
/* кнопки перемещения — только там, где drag&drop недоступен (телефон) */
|
|
.n-move { display: none; }
|
|
@media (hover: none), (max-width: 860px) {
|
|
.n-move { display: inline-flex; }
|
|
}
|
|
.kan-col.drag-over { border-color: var(--cyan); box-shadow: var(--shadow-neon-cyan); }
|
|
.nt-imp {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--amber);
|
|
font-size: 13.5px;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
}
|
|
.nt-imp input { width: 17px; height: 17px; accent-color: var(--amber); }
|
|
.act-feed { display: flex; flex-direction: column; gap: 8px; }
|
|
.act-row {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: 12px;
|
|
align-items: baseline;
|
|
font-size: 13px;
|
|
padding: 7px 0;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.act-row:last-child { border-bottom: none; }
|
|
.act-who { font-weight: 700; white-space: nowrap; }
|
|
.act-what { color: var(--muted); overflow-wrap: anywhere; }
|
|
.act-when { color: var(--muted-2); font-variant-numeric: tabular-nums; }
|
|
@media (max-width: 860px) {
|
|
.act-row { grid-template-columns: 1fr auto; }
|
|
.act-what { grid-column: 1 / -1; order: 3; }
|
|
}
|
|
|
|
/* Полная остановка анимаций для пользователей с вестибулярной
|
|
чувствительностью: бесконечные неон-анимации (kenburns, marquee,
|
|
floaty, pulse…) не должны крутиться, если система просит их убрать. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
|
|
/* ----------------------------------------------------------
|
|
Карточка аккаунта (имя, роль, выход) стоит в сайдбаре перед
|
|
списком вкладок — см. index.html; special-cases ниже.
|
|
---------------------------------------------------------- */
|
|
.side-top { display: flex; flex-direction: column; gap: 14px; }
|
|
.side-top .brand { padding: 0 6px 0; }
|
|
.side-top .nav { margin-top: 4px; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Кнопки автопрокрутки страницы (правый нижний угол)
|
|
---------------------------------------------------------- */
|
|
.scroll-nav {
|
|
position: fixed;
|
|
right: 18px;
|
|
bottom: 18px;
|
|
z-index: 60;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.scroll-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--line-strong);
|
|
background: rgba(14, 14, 22, 0.88);
|
|
color: var(--cyan);
|
|
font-size: 15px;
|
|
font-weight: 800;
|
|
box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 14px rgba(0, 240, 255, 0.12);
|
|
transition: all 0.18s;
|
|
}
|
|
.scroll-btn:hover {
|
|
border-color: rgba(0, 240, 255, 0.55);
|
|
box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 240, 255, 0.35);
|
|
transform: translateY(0);
|
|
}
|
|
.scroll-btn.is-edge { opacity: 0.35; }
|
|
.scroll-btn.is-edge:hover { opacity: 1; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Поштучный учёт: бейдж остатка в строке меню
|
|
---------------------------------------------------------- */
|
|
.stock-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 5px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(0, 240, 255, 0.35);
|
|
background: var(--cyan-dim);
|
|
color: var(--cyan);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
white-space: nowrap;
|
|
}
|
|
.stock-badge.is-zero {
|
|
border-color: rgba(255, 77, 109, 0.45);
|
|
background: var(--red-dim);
|
|
color: var(--red);
|
|
}
|
|
/* в ячейке управления бейдж соседствует с кнопками/тумблером */
|
|
.menu-row .m-stopcell { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
|
|
|
|
/* ----------------------------------------------------------
|
|
Модальные окна подтверждения и ввода (uiConfirm / uiPrompt)
|
|
---------------------------------------------------------- */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 70;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
background: rgba(4, 5, 9, 0.7);
|
|
backdrop-filter: blur(6px);
|
|
animation: modal-fade 0.16s ease;
|
|
}
|
|
.modal {
|
|
width: 100%;
|
|
max-width: 440px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
padding: 22px 22px 18px;
|
|
box-shadow:
|
|
0 24px 70px rgba(0, 0, 0, 0.55),
|
|
0 0 0 1px rgba(0, 240, 255, 0.05),
|
|
0 0 36px rgba(0, 240, 255, 0.08);
|
|
animation: modal-pop 0.16s ease;
|
|
}
|
|
/* «опасные» подтверждения (удаление, отмена) — красная рамка и подсветка */
|
|
.modal.danger {
|
|
border-color: rgba(255, 77, 109, 0.4);
|
|
box-shadow:
|
|
0 24px 70px rgba(0, 0, 0, 0.55),
|
|
0 0 36px rgba(255, 77, 109, 0.1);
|
|
}
|
|
.modal-title {
|
|
font-family: var(--font-head);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
}
|
|
.modal.danger .modal-title { color: var(--red); }
|
|
.modal-text {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
line-height: 1.55;
|
|
white-space: pre-line;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.modal-input {
|
|
width: 100%;
|
|
margin-top: 14px;
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
padding: 11px 13px;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
}
|
|
.modal-input:focus {
|
|
outline: none;
|
|
border-color: rgba(0, 240, 255, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
|
|
}
|
|
.modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
@keyframes modal-fade { from { opacity: 0; } }
|
|
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
|
|
@media (max-width: 620px) {
|
|
.modal-overlay { padding: 12px; }
|
|
.modal { padding: 18px 16px 14px; }
|
|
.modal-actions { flex-direction: column-reverse; }
|
|
.modal-actions .btn { width: 100%; }
|
|
}
|