@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: #1a1d23; color: #e4e6eb; min-height: 100vh; }
/* --- Страница входа 365 Soft --- */
.login-page { font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif; }
.login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding: 0;
}
.login-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  overflow: hidden;
}
.login-hero-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1200&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.login-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,29,35,0.85) 0%, rgba(26,29,35,0.5) 50%, rgba(255,193,7,0.15) 100%);
}
.login-hero-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 12px;
}
.login-brand-number {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffc107 0%, #ffecb3 50%, #ffc107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255,193,7,0.3);
}
.login-brand-soft {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin-left: 4px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.login-hero-tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}
.login-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  background: linear-gradient(180deg, #1a1d23 0%, #16191e 100%);
}
.login-box {
  background: #25282e;
  padding: 2.5rem;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,193,7,0.12);
}
.login-title {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.login-title-365 {
  background: linear-gradient(135deg, #ffc107, #ffecb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-title-soft { color: #e4e6eb; font-weight: 700; letter-spacing: 0.06em; }
.login-subtitle {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
}
.login-box input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid #3a3f47;
  border-radius: 10px;
  background: #1a1d23;
  color: #e4e6eb;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-box input:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
}
.login-box input::placeholder { color: #6b7280; }
.login-box button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ffc107 0%, #e6ac00 100%);
  color: #1a1d23;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.login-box button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,193,7,0.35); }
.login-box button:active { transform: translateY(0); }
.login-box button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-err { color: #f44336; margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }
.login-tabs { display: flex; margin-bottom: 1.25rem; gap: 0; border-bottom: 1px solid #3a3f47; }
.login-tabs button {
  padding: 10px 18px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s;
}
.login-tabs button:hover { color: #e4e6eb; }
.login-tabs button.active { color: #ffc107; border-bottom-color: #ffc107; }
.login-panel { display: none; }
.login-panel.active { display: block; }
.login-box a.switch-link {
  display: block;
  margin-top: 14px;
  color: #ffc107;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
}
.login-box a.switch-link:hover { opacity: 0.9; text-decoration: underline; }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero {
    min-height: 38vh;
    padding: 28px 20px;
  }
  .login-hero-image { background-position: center center; }
  .login-brand-number, .login-brand-soft { font-size: 2.75rem; }
  .login-hero-tagline { font-size: 0.95rem; }
  .login-form-section {
    min-height: auto;
    padding: 28px 16px 40px;
    width: 100%;
  }
  .login-box {
    max-width: 100%;
    min-width: 0;
    padding: 2rem 1.5rem;
  }
}

.app.ready { display: block; min-height: 100vh; }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 272px;
  background: linear-gradient(180deg, #25282e 0%, #1f2228 100%);
  border-right: 1px solid #3a3f47;
  padding: 20px 0;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}
.sidebar h2 {
  padding: 0 20px;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 0 8px;
  margin-bottom: 2px;
  color: #b0b4bb;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sidebar a:hover { background: #2d3139; color: #e4e6eb; }
.sidebar a.active { background: rgba(255,193,7,0.12); border-left-color: #ffc107; color: #ffc107; }
.sidebar .material-icons.sidebar-icon {
  font-size: 1.35rem;
  margin-right: 14px;
  opacity: 0.9;
  flex-shrink: 0;
}
.sidebar a.active .sidebar-icon { opacity: 1; }
.sidebar a#logoutLink .sidebar-icon { opacity: 0.85; }
.sidebar .user-info {
  padding: 12px 20px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #6b7280;
  border-bottom: 1px solid #3a3f47;
  line-height: 1.3;
}
.main {
  margin-left: 272px;
  min-height: 100vh;
  padding: 24px 32px 32px;
  overflow: auto;
  background: #1a1d23;
}
.main h1 { margin: 0 0 20px; font-size: 1.5rem; color: #ffc107; }
.card { background: #25282e; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #3a3f47; }
th { color: #888; font-weight: 600; font-size: 0.85rem; }
.btn { display: inline-block; padding: 8px 14px; border-radius: 8px; border: none; cursor: pointer; font-size: 0.9rem; text-decoration: none; }
.btn-primary { background: #ffc107; color: #1a1d23; font-weight: 600; }
.btn-secondary { background: #3a3f47; color: #e4e6eb; margin-left: 8px; }
.btn-delete { background: #c62828; color: #fff; margin-left: 0; }
.btn-delete:hover { background: #b71c1c; }
.btn-small { padding: 4px 10px; font-size: 0.8rem; }
.toolbar { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; }
.badge-ok { background: #2e7d32; color: #fff; }
.badge-warn { background: #ed6c02; color: #fff; }
.badge-error { background: #c62828; color: #fff; }
.loading { color: #888; padding: 20px; }
.error-msg { color: #f44336; padding: 12px; background: rgba(244,67,54,0.1); border-radius: 8px; margin-bottom: 16px; }
.user-info { padding: 8px 16px; font-size: 0.85rem; color: #888; border-bottom: 1px solid #3a3f47; }
.page-section { width: 100%; }
.page-section .card { margin-bottom: 20px; }
.page-section .card h3 { margin: 0 0 12px; font-size: 1.1rem; color: #e4e6eb; }
.page-icon { font-size: 1.25rem !important; color: #ffc107; margin-right: 2px; vertical-align: middle; }
.btn-icon { font-size: 1.1rem !important; margin-right: 4px; vertical-align: middle; }
.btn .material-icons.btn-icon { margin-right: 4px; }
th .th-icon { font-size: 1rem !important; color: #ffc107; margin-right: 6px; vertical-align: middle; opacity: 0.9; }
.tables-qr-cell { vertical-align: middle; }
.tables-qr-thumb { display: block; border-radius: 8px; margin-bottom: 6px; background: #1a1d23; }
.tables-qr-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tables-qr-actions .btn { white-space: nowrap; }
.tables-waiters-cell { max-width: 180px; font-size: 0.9rem; color: #b0b4bb; vertical-align: top; }
.tables-waiters-list { margin: 4px 0 0 0; padding: 0 0 0 18px; list-style: none; }
.tables-waiters-list li { margin: 2px 0; padding: 0; position: relative; }
.tables-waiters-list li::before { content: '·'; position: absolute; left: -12px; color: #ffc107; }
.tables-waiters-edit { vertical-align: top; }
.tables-waiters-checkboxes { display: flex; flex-wrap: wrap; gap: 10px 16px; max-width: 280px; }
.tables-waiter-cb { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.9rem; white-space: nowrap; }
.tables-waiter-cb input { margin: 0; }
.tables-view-toggle .btn { margin-left: 0; }

/* Orders filter */
.orders-filter-card { margin-bottom: 20px; }
.orders-filter-toolbar { display: flex; flex-direction: column; gap: 12px; }
.orders-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.orders-filter-row label { font-size: 0.9rem; color: #9ca3af; min-width: 60px; }
.orders-filter-select, .orders-filter-input {
  padding: 8px 12px;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  background: #1a1d23;
  color: #e4e6eb;
  font-size: 0.9rem;
}
.orders-filter-select { min-width: 140px; }
.orders-filter-select:focus, .orders-filter-input:focus { outline: none; border-color: #ffc107; }
.orders-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.orders-quick-dates { display: flex; gap: 8px; margin-left: 12px; }
.orders-quick-btn {
  padding: 6px 12px;
  border: 1px solid #3a3f47;
  border-radius: 6px;
  background: #25282e;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.orders-quick-btn:hover { background: #2d3139; color: #ffc107; border-color: #ffc107; }
.tables-cards-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 16px; }
.tables-card { background: #25282e; border: 1px solid #3a3f47; border-radius: 12px; overflow: hidden; }
.tables-card-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #1a1d23; border-bottom: 1px solid #3a3f47; }
.tables-card-number { font-weight: 700; font-size: 1.1rem; color: #ffc107; }
.tables-card-body { padding: 16px; }
.tables-card-meta { font-size: 0.85rem; color: #9ca3af; margin-bottom: 12px; }
.tables-card-qr-wrap { margin-bottom: 12px; }
.tables-card-qr { display: block; border-radius: 8px; background: #1a1d23; }
.tables-card-qr-empty { color: #6b7280; font-size: 0.9rem; }
.tables-card-waiters { font-size: 0.9rem; color: #e4e6eb; }
.tables-card-waiters strong { display: block; margin-bottom: 4px; color: #9ca3af; font-size: 0.8rem; }
.tables-card-waiters .tables-waiters-list { padding-left: 16px; margin-top: 4px; }
.tables-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tables-card-actions .btn { margin-left: 0; }
.tables-card-edit-form .tables-waiters-checkboxes { margin-top: 8px; }
.tables-card-edit-form .tables-card-edit-waiters { margin-bottom: 12px; }
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.dashboard-card {
  margin-bottom: 0;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dashboard-cards .card { min-height: 120px; }
.dashboard-cards .card:hover,
.dashboard-card:hover { border-color: #454a52; box-shadow: 0 6px 24px rgba(0,0,0,0.28); }
.dashboard-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.dashboard-card-icon {
  font-size: 1.25rem !important;
  color: #ffc107;
  opacity: 0.95;
}
.dashboard-cards .card h3.dashboard-card-title { margin: 0 0 12px; }
.dashboard-card-value { font-size: 2rem; font-weight: 700; color: #ffc107; line-height: 1.2; margin: 0; }
.dashboard-infographic { margin-top: 14px; }
.dashboard-infobar { height: 8px; background: #1a1d23; border-radius: 4px; overflow: hidden; }
.dashboard-infobar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffc107, #ffca28); transition: width 0.3s ease; }
.dashboard-infobar-fill.orders { background: linear-gradient(90deg, #2196f3, #42a5f5); }
.dashboard-infobar-fill.tables { background: linear-gradient(90deg, #4caf50, #66bb6a); }
.dashboard-infobar-fill.queue { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.dashboard-infobar-label { font-size: 0.75rem; color: #888; margin-top: 4px; }
.dashboard-minichart { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-top: 12px; }
.dashboard-minichart-bar { flex: 1; min-width: 20px; background: #3a3f47; border-radius: 4px 4px 0 0; position: relative; }
.dashboard-minichart-bar span { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 4px 4px 0 0; background: #ffc107; min-height: 4px; transition: height 0.3s ease; }
.dashboard-cash-visual { margin: 12px 0; height: 12px; background: #1a1d23; border-radius: 6px; overflow: hidden; }
.dashboard-cash-visual-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2e7d32, #4caf50); transition: width 0.4s ease; max-width: 100%; }
.dashboard-cash-card {
  min-height: 180px;
  grid-column: 1 / -1;
  max-width: 100%;
}
.dashboard-cash-card .dashboard-card-title { margin: 0 0 16px; font-size: 1.1rem; color: #e4e6eb; text-transform: none; letter-spacing: 0; }
.dashboard-cash-form .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dashboard-cash-form .btn .material-icons { font-size: 1.1rem !important; }
.dashboard-cash-balance { font-size: 1.5rem; margin: 0 0 8px; font-weight: 600; color: #e4e6eb; }
.dashboard-cash-balance strong { color: #ffc107; font-size: 1.15em; }
.dashboard-cash-meta { font-size: 0.85rem; color: #888; margin-bottom: 16px; line-height: 1.4; }
.dashboard-cash-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #3a3f47; align-items: flex-end; }
.dashboard-cash-form { display: flex; gap: 10px; align-items: center; }
.dashboard-cash-form input { width: 120px; padding: 10px 12px; border: 1px solid #3a3f47; border-radius: 10px; background: #1a1d23; color: #e4e6eb; font-size: 0.95rem; }
.dashboard-cash-form input:focus { outline: none; border-color: #ffc107; }
.dashboard-cash-link { margin-top: 16px !important; display: inline-block; }
.dashboard-finance-card { grid-column: 1 / -1; max-width: 100%; }
.dashboard-finance-card h3 { margin: 0 0 16px; font-size: 1.1rem; color: #e4e6eb; text-transform: none; }
.dashboard-finance-total { font-size: 1.75rem; font-weight: 700; color: #4caf50; margin: 0 0 8px; }
.dashboard-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
@media (max-width: 900px) { .dashboard-charts { grid-template-columns: 1fr; } }
.dashboard-chart-block { background: #1a1d23; border-radius: 12px; padding: 20px; border: 1px solid #3a3f47; }
.dashboard-chart-block h4 { margin: 0 0 16px; font-size: 0.95rem; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.dashboard-chart-svg { width: 100%; height: 220px; display: block; }
.dashboard-chart-svg .axis { stroke: #3a3f47; stroke-width: 1; }
.dashboard-chart-svg .grid { stroke: #2d3139; stroke-width: 1; stroke-dasharray: 4 2; }
.dashboard-chart-svg .bar { fill: url(#barGradient); rx: 4; }
.dashboard-chart-svg .line { fill: none; stroke: #ffc107; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-chart-svg .area { fill: url(#lineGradient); opacity: 0.4; }
.dashboard-chart-svg text { fill: #888; font-size: 11px; font-family: inherit; }
.dashboard-finance-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #3a3f47; }
.dashboard-finance-bar-wrap { flex: 1; min-width: 24px; display: flex; flex-direction: column; align-items: center; }
.dashboard-finance-bar { width: 100%; max-width: 40px; background: linear-gradient(180deg, #4caf50, #66bb6a); border-radius: 6px 6px 0 0; min-height: 4px; transition: height 0.3s ease; }
.dashboard-finance-bar-label { font-size: 0.7rem; color: #888; margin-top: 6px; white-space: nowrap; }
.dashboard-finance-summary { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 0.85rem; color: #888; }
.dashboard-finance-summary span { color: #e4e6eb; }
.empty-state { color: #888; padding: 24px; text-align: center; }
.form-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.form-row label { min-width: 72px; color: #888; font-size: 0.9rem; }
.form-row input, .form-row select { padding: 10px 14px; border: 1px solid #3a3f47; border-radius: 12px; background: #1a1d23; color: #e4e6eb; font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.form-row input:focus, .form-row select:focus { border-color: #ffc107; }
.form-row input { flex: 1; min-width: 160px; }
.form-row select { min-width: 160px; cursor: pointer; }
.card .form-inline { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #3a3f47; }
.staff-add-block { display: none; margin: 0 0 24px; padding: 0; width: 100%; background: #25282e; border-radius: 16px; border: 1px solid #3a3f47; box-shadow: 0 8px 32px rgba(0,0,0,0.35); }
.staff-add-block.show { display: block; }
.staff-add-form-full { padding: 32px; }
.staff-form-section { margin-bottom: 28px; }
.staff-form-section:last-of-type { margin-bottom: 0; }
.staff-form-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1rem; font-weight: 600; color: #e4e6eb; }
.staff-form-section-title .section-icon { font-size: 1.2rem; color: #ffc107; }
.staff-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .staff-form-grid { grid-template-columns: 1fr; } }
.staff-form-field { display: flex; flex-direction: column; gap: 8px; }
.staff-form-field label { font-size: 0.9rem; font-weight: 500; color: #9ca3af; }
.staff-form-input, .staff-form-select-copy { width: 100%; height: 48px; padding: 0 16px; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.staff-form-input:focus, .staff-form-select-copy:focus { border-color: #ffc107; box-shadow: 0 0 0 2px rgba(255,193,7,0.15); }
.staff-form-input.error { border-color: #f44336; }
.staff-form-salary-type { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.staff-radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95rem; color: #e4e6eb; }
.staff-radio-input { width: 18px; height: 18px; accent-color: #ffc107; cursor: pointer; }
.staff-form-copy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.staff-form-select-copy { flex: 1; min-width: 200px; height: 48px; }
.staff-form-footer { margin-top: 28px; padding-top: 24px; border-top: 1px solid #3a3f47; display: flex; flex-direction: column; gap: 16px; }
.staff-form-buttons { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.staff-form-err { padding: 12px 16px; background: rgba(244,67,54,0.12); border: 1px solid rgba(244,67,54,0.4); border-radius: 8px; color: #f48fb1; font-size: 0.95rem; }
.staff-form-field-toggle .staff-toggle-wrap { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.staff-toggle-input { display: none; }
.staff-toggle-slider { width: 48px; height: 26px; background: #3a3f47; border-radius: 13px; position: relative; transition: background 0.2s; }
.staff-toggle-slider::after { content: ''; position: absolute; width: 22px; height: 22px; background: #9ca3af; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.2s; }
.staff-toggle-input:checked + .staff-toggle-slider { background: rgba(76,175,80,0.5); }
.staff-toggle-input:checked + .staff-toggle-slider::after { transform: translateX(22px); background: #66bb6a; }
.staff-toggle-label { font-size: 0.95rem; color: #e4e6eb; }
.btn-success { background: #2e7d32; color: #fff; border: none; }
.btn-success:hover { background: #388e3c; }
@media (max-width: 768px) {
  .staff-add-form-full { padding: 20px; }
  .staff-form-buttons { flex-direction: column; }
  .staff-form-buttons .btn { width: 100%; justify-content: center; }
}
.staff-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.staff-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.staff-modal-content { position: relative; background: #25282e; border-radius: 16px; border: 1px solid #3a3f47; padding: 24px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.staff-modal-content h4 { margin: 0 0 16px; font-size: 1.1rem; color: #e4e6eb; }
.staff-reports-block table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.staff-reports-block th, .staff-reports-block td { padding: 10px; border-bottom: 1px solid #3a3f47; text-align: left; }
.staff-reports-block th { color: #9ca3af; font-weight: 600; }
.reports-empty { color: #9ca3af; font-size: 0.95rem; }
.staff-salary-cell { font-weight: 500; color: #ffc107; }
.staff-salary-btn { margin-right: 4px; }
.staff-payment-block .staff-payment-form { max-width: 400px; }
.staff-payment-block .form-row { margin-bottom: 14px; }
.staff-payment-block .form-row label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: #9ca3af; }
.staff-payment-block .form-row input, .staff-payment-block .form-row select { width: 100%; max-width: 280px; padding: 10px 12px; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; font-size: 0.95rem; }
.staff-payment-block .form-row input:focus, .staff-payment-block .form-row select:focus { outline: none; border-color: #ffc107; }
.staff-collapsible-block details { display: block; }
.staff-collapsible-summary { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 1.05rem; font-weight: 600; color: #e4e6eb; cursor: pointer; list-style: none; user-select: none; }
.staff-collapsible-summary::-webkit-details-marker { display: none; }
.staff-collapsible-summary::before { content: "▶"; font-size: 0.7rem; margin-right: 6px; transition: transform 0.2s; }
.staff-collapsible-block details[open] .staff-collapsible-summary::before { transform: rotate(90deg); }
.staff-collapsible-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid #3a3f47; }
.staff-fines-block .staff-payment-form { max-width: 400px; }
.staff-fine-btn { color: #ff9800 !important; }
.staff-fine-btn:hover { color: #ffb74d !important; }
.staff-payment-success { margin-top: 20px; padding: 18px 20px; background: rgba(76, 175, 80, 0.12); border: 1px solid rgba(76, 175, 80, 0.4); border-radius: 12px; }
.staff-payment-success-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: #66bb6a; margin-bottom: 12px; }
.staff-payment-success-details p { margin: 0 0 6px; font-size: 0.95rem; color: #e4e6eb; }
.staff-payment-success-note { font-size: 0.88rem; color: #9ca3af; margin-top: 10px !important; margin-bottom: 14px !important; }
.staff-payment-success-details .btn { margin-top: 4px; }

/* --- Страница «Отдел кадров» — сбалансированный интерфейс --- */
.staff-page { max-width: 1200px; }
.staff-page .page-intro { font-size: 0.95rem; color: #9ca3af; margin: 0 0 24px; line-height: 1.5; }
.staff-page .staff-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 28px; }
.staff-page .staff-collapsible-block { margin-bottom: 0; }
.staff-page .staff-collapsible-block .card { padding: 20px 24px; border-radius: 16px; border: 1px solid #3a3f47; height: 100%; }
.staff-page .staff-collapsible-summary { padding: 8px 0; font-size: 1.05rem; }
.staff-page .staff-collapsible-body { margin-top: 16px; padding-top: 16px; }
.staff-page .staff-block-desc { font-size: 0.9rem; color: #9ca3af; margin: 0 0 16px; line-height: 1.45; }
.staff-page .staff-payment-form .form-row label { font-weight: 500; color: #e4e6eb; }
.staff-page .staff-period-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.staff-page .staff-period-row label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: #9ca3af; }
.staff-page .staff-period-row input[type="date"] {
  width: 100%; padding: 12px 14px; border: 1px solid #3a3f47; border-radius: 10px;
  background: #1a1d23; color: #e4e6eb; font-size: 1rem;
}
.staff-page .staff-period-row input[type="date"]:focus {
  outline: none; border-color: #ffc107; box-shadow: 0 0 0 2px rgba(255,193,7,0.2);
}
.staff-page .staff-table-card .card { padding: 24px; border-radius: 16px; border: 1px solid #3a3f47; overflow-x: auto; }
.staff-page .staff-table-card h3 { font-size: 1.2rem; margin: 0 0 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.staff-page table { width: 100%; border-collapse: collapse; }
.staff-page table th {
  text-align: left; padding: 12px 14px; font-size: 0.8rem; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #3a3f47;
}
.staff-page table td { padding: 14px; border-bottom: 1px solid #2a2d33; font-size: 0.95rem; vertical-align: middle; }
.staff-page table tbody tr:hover { background: rgba(255,255,255,0.02); }
.staff-page .badge-role { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; }
.staff-page .badge-role.role-waiter { background: rgba(76,175,80,0.2); color: #81c784; }
.staff-page .badge-role.role-cook { background: rgba(255,152,0,0.2); color: #ffb74d; }
.staff-page .badge-role.role-bartender { background: rgba(156,39,176,0.2); color: #ce93d8; }
.staff-page .badge-role.role-hostess { background: rgba(33,150,243,0.2); color: #64b5f6; }
.staff-page .badge-role.role-admin { background: rgba(33,150,243,0.25); color: #90caf9; }
.staff-page .badge-role.role-super_admin { background: rgba(255,193,7,0.2); color: #ffc107; }
.staff-page .staff-actions-cell { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.staff-page .staff-actions-cell .btn { margin: 0; }
.staff-payroll-filters .staff-filter-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.staff-payroll-filters .staff-filter-item input[type="month"],
.staff-payroll-filters .staff-filter-item select { padding: 8px 12px; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; font-size: 0.9rem; }
.staff-payroll-filters .staff-filter-item input[type="checkbox"] { margin-right: 4px; }
.staff-page .staff-total-cell { font-weight: 700; color: #66bb6a; }
.staff-status-active { color: #66bb6a; font-size: 0.9rem; }
.staff-status-inactive { color: #f44336; font-size: 0.9rem; }
.staff-payroll-table { width: 100%; border-collapse: collapse; }
.btn-add { display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; padding: 10px 16px; }
.menu-dish-photo-cell { width: 64px; min-width: 64px; vertical-align: middle; }
.menu-dish-photo-wrap { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #1a1d23; border-radius: 8px; overflow: hidden; }
.menu-dish-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.menu-dish-photo-placeholder { font-size: 0.75rem; color: #666; }
.menu-dish-no-stock { opacity: 0.85; }
.menu-dish-no-stock .dish-name { color: #9ca3af; }
.menu-stock-ok { color: #2e7d32; font-weight: 500; }
.menu-stock-warn { display: inline-block; margin-bottom: 2px; }
.menu-stock-shortage-text { display: block; font-size: 0.75rem; color: #b0b4bb; max-width: 220px; margin-top: 2px; line-height: 1.3; }

/* Ячейка с формой редактирования — без боковых отступов, карточка на всю ширину */
.menu-edit-dish-cell { padding: 12px 0 0 !important; vertical-align: top; border-bottom: none; }

/* Редактирование блюда — как на всех страницах: стандартная карточка .card */
.menu-edit-dish-wrap {
  width: 100%;
  padding: 20px;
  background: #25282e;
  border-radius: 12px;
  border: 1px solid #3a3f47;
  margin-bottom: 0;
}
.menu-edit-dish-wrap .form-label {
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #888;
}
.menu-edit-dish-wrap .form-control,
.menu-edit-dish-wrap .form-select {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #3a3f47;
  background: #1a1d23;
  color: #e4e6eb;
}
.menu-edit-dish-wrap .form-control:focus {
  border-color: #ffc107;
  outline: none;
}

/* Выпадающий список «Категория» — в стиле тёмной темы */
.menu-edit-dish-wrap select.menu-edit-dish-cat,
.menu-edit-dish-wrap .menu-edit-dish-cat {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
  font-weight: 500;
}
.menu-edit-dish-wrap select.menu-edit-dish-cat:focus,
.menu-edit-dish-wrap .menu-edit-dish-cat:focus {
  border-color: #ffc107;
  outline: none;
}
.menu-edit-dish-wrap select.menu-edit-dish-cat option {
  background: #25282e;
  color: #e4e6eb;
  padding: 10px 12px;
}

/* Блок «Режим цены» — как вложенная карточка */
.menu-edit-price-section {
  margin: 16px 0;
  padding: 16px;
  background: #1f2228;
  border-radius: 12px;
  border: 1px solid #3a3f47;
}
.menu-edit-price-section > p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e4e6eb;
}
.menu-edit-price-section .form-check-inline {
  margin-right: 20px;
}
.menu-edit-price-section .form-check-label {
  font-weight: 500;
  color: #e4e6eb;
  cursor: pointer;
}

/* Две таблицы: Калькуляция и Ручной ввод — как карточки на всех страницах */
.menu-edit-price-card {
  background: #25282e;
  border: 1px solid #3a3f47;
  border-radius: 12px;
  overflow: hidden;
}
.menu-edit-price-card .card-header {
  padding: 10px 16px;
  background: #1a1d23;
  border-bottom: 1px solid #3a3f47;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e4e6eb;
}
.menu-edit-price-card .card-body {
  padding: 16px;
}
.menu-edit-price-card .card-body .table { color: inherit; }
.menu-edit-price-card .card-body td {
  padding: 6px 0;
  vertical-align: top;
  border: none;
}
.menu-edit-price-card .card-body .text-muted { color: #888; font-size: 0.8rem; }
.menu-edit-calc-price-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffc107;
}
.menu-edit-price-card .form-control {
  max-width: 160px;
  padding: 10px 12px;
}

.menu-edit-price-stats {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #3a3f47;
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}
.menu-edit-dish-wrap .btn-primary { border-radius: 8px; }
.menu-edit-dish-wrap .btn-outline-secondary { border-radius: 8px; }

/* Блоки «В продаже» и «Фото» — как карточки */
.menu-edit-blocks { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 16px; }
.menu-edit-block {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  background: #1f2228;
  border: 1px solid #3a3f47;
  border-radius: 12px;
  overflow: hidden;
}
.menu-edit-block-header {
  padding: 10px 16px;
  background: #1a1d23;
  border-bottom: 1px solid #3a3f47;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e4e6eb;
}
.menu-edit-block-body { padding: 16px; }
.menu-edit-avail-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #e4e6eb;
}
.menu-edit-avail-label input { margin: 0; width: 18px; height: 18px; cursor: pointer; accent-color: #ffc107; }
.menu-edit-photo-block-inner { display: flex; flex-direction: column; gap: 12px; }
.menu-edit-photo-preview-wrap {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid #3a3f47;
  background: #1a1d23;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.menu-edit-photo-preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}
.menu-edit-photo-placeholder {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  padding: 8px;
}
.menu-edit-photo-btn { display: inline-block; cursor: pointer; position: relative; }
.menu-edit-photo-btn .btn { margin: 0; }
.menu-edit-photo-btn input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.purchase-select { min-width: 220px; max-width: 320px; padding: 8px 12px; }
.purchase-supplier-name { font-weight: 500; color: #e4e6eb; }
.purchase-product-names { max-width: 320px; font-size: 0.9rem; color: #b0b4bb; line-height: 1.4; word-wrap: break-word; vertical-align: top; }
.purchase-products-empty { color: #6b7280; }
.purchase-products-inline { display: inline; }
.purchase-products-collapsible { display: block; }
.purchase-products-preview { display: block; margin-bottom: 4px; }
.purchase-products-more { color: #9ca3af; font-size: 0.85em; }
.purchase-products-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; margin-top: 4px; background: transparent; border: 1px solid #4b5563; border-radius: 6px; color: #9ca3af; font-size: 0.8rem; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.purchase-products-toggle:hover { border-color: #6b7280; color: #d1d5db; }
.purchase-products-toggle .material-icons { font-size: 1rem; }
.purchase-products-full { display: block; margin-top: 6px; line-height: 1.45; }
.purchase-products-full[hidden] { display: none; }
.purchase-products-preview[hidden] { display: none; }
.purchase-products-toggle[hidden] { display: none; }
.purchase-products-list { display: flex; flex-direction: column; gap: 4px; }
.purchase-product-item { display: block; padding: 6px 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; font-size: 0.88rem; color: #b0b4bb; line-height: 1.3; }
.purchase-product-item + .purchase-product-item { margin-top: 0; }
.purchases-items-table { margin-top: 0; }
.purchases-items-table th { font-size: 0.85rem; }
.purchases-items-table .purchase-select { min-width: 200px; }

/* ========== Закупки — современный интерфейс ========== */
.main--purchases h1 { margin-bottom: 24px; text-align: center; }
.purchases-page {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}
.purchases-icon {
  font-size: 1.1em;
  vertical-align: -0.25em;
  margin-right: 6px;
  color: #ffc107;
}
.purchases-stats-card {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}
.purchases-stats-heading {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffc107;
  display: flex;
  align-items: center;
}
.purchases-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .purchases-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .purchases-stats-grid { grid-template-columns: 1fr; } }
.purchases-stat-box {
  padding: 16px;
  border-radius: 12px;
  background: #1a1d23;
  border: 1px solid #3a3f47;
  min-height: 88px;
}
.purchases-stat-box.alert { border-color: #ffb74d; background: rgba(255,183,77,0.08); }
.purchases-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.purchases-stat-value { font-size: 1.2rem; font-weight: 700; display: block; margin-bottom: 8px; }
.purchases-stat-cash .purchases-stat-value { color: #66bb6a; }
.purchases-stat-received .purchases-stat-value { color: #64b5f6; }
.purchases-stat-sum .purchases-stat-value { color: #ffb74d; }
.purchases-stat-draft .purchases-stat-value { color: #9ca3af; }
.purchases-stat-draft.alert .purchases-stat-value { color: #ffb74d; }
.purchases-stat-bar {
  height: 6px;
  background: #25282e;
  border-radius: 3px;
  overflow: hidden;
}
.purchases-stat-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.purchases-stat-cash .purchases-stat-bar-fill { background: linear-gradient(90deg, #43a047, #66bb6a); }
.purchases-stat-received .purchases-stat-bar-fill { background: linear-gradient(90deg, #42a5f5, #64b5f6); }
.purchases-stat-sum .purchases-stat-bar-fill { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.purchases-stat-draft .purchases-stat-bar-fill { background: #3a3f47; }
.purchases-stat-draft.alert .purchases-stat-bar-fill { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.purchases-stat-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #ffc107;
  text-decoration: none;
}
.purchases-stat-link:hover { text-decoration: underline; }

.purchases-chart-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #3a3f47;
}
.purchases-chart-title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}
.purchases-chart-title .purchases-icon { margin-right: 8px; }
.purchases-chart-bars { display: flex; flex-direction: column; gap: 10px; }
.purchases-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.purchases-chart-label {
  width: 120px;
  font-size: 0.85rem;
  color: #9ca3af;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.purchases-chart-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.purchases-chart-bar {
  height: 22px;
  border-radius: 6px;
  min-width: 4px;
  background: linear-gradient(90deg, #43a047, #66bb6a);
  transition: width 0.4s ease;
}
.purchases-chart-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e6eb;
  min-width: 72px;
  text-align: right;
}

.purchases-main-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  background: #25282e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.purchases-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #3a3f47;
}
.purchases-toolbar-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}
.purchases-toolbar .btn-primary {
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  box-shadow: 0 2px 12px rgba(255,193,7,0.25);
  transition: transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.purchases-toolbar .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,193,7,0.35); }
.purchases-list-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid #3a3f47; }
.purchases-list-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}
.purchases-page .card { padding: 24px; border-radius: 16px; border: 1px solid #3a3f47; }
.purchases-summary-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.purchases-summary-card { background: #1a1d23; border-radius: 12px; padding: 18px; border: 1px solid #3a3f47; }
.purchases-summary-card-title { font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.purchases-summary-card-value { font-size: 1.5rem; font-weight: 700; color: #ffc107; line-height: 1.2; }
.purchases-summary-unit { font-size: 0.85rem; font-weight: 500; color: #9ca3af; }
.purchases-summary-meta { font-size: 0.85rem; color: #6b7280; margin: 6px 0 0; line-height: 1.4; }
.purchases-summary-link { display: inline-block; margin-top: 10px; font-size: 0.9rem; color: #ffc107; text-decoration: none; }
.purchases-summary-link:hover { text-decoration: underline; }
.purchases-cash-block .purchases-summary-card-value { color: #4caf50; }
.purchases-page .toolbar { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #3a3f47; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.purchases-page .toolbar h3 { margin: 0; font-size: 1.35rem; font-weight: 600; color: #e4e6eb; letter-spacing: -0.02em; }
.purchases-page .toolbar .btn-primary { border-radius: 12px; padding: 12px 20px; font-size: 0.95rem; box-shadow: 0 2px 12px rgba(255,193,7,0.25); transition: transform 0.15s, box-shadow 0.2s; }
.purchases-page .toolbar .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,193,7,0.35); }
.purchases-page .purchases-table { margin: 0; }
.purchases-page .purchases-table thead { background: #1a1d23; }
.purchases-page .purchases-table th { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #3a3f47; }
.purchases-page .purchases-table td { padding: 12px 16px; border-bottom: 1px solid #2d3139; }
.purchases-page .purchases-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.purchases-form { margin-bottom: 28px; padding: 28px; background: linear-gradient(180deg, #1e2128 0%, #1a1d23 100%); border-radius: 16px; border: 1px solid #3a3f47; box-shadow: 0 4px 24px rgba(0,0,0,0.3); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease; }
.purchases-form.is-open { max-height: 1200px; opacity: 1; }
.purchases-form-header { margin: 0 0 24px; font-size: 1.15rem; font-weight: 600; color: #ffc107; letter-spacing: -0.01em; padding-bottom: 16px; border-bottom: 1px solid #3a3f47; display: flex; align-items: center; }
.purchases-form-header .purchases-icon { margin-right: 8px; }
.purchases-form-section { margin-bottom: 22px; }
.purchases-form-section label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 500; color: #9ca3af; }
.purchases-form-section .form-row { margin-bottom: 12px; }
.purchases-form-section .form-row:last-child { margin-bottom: 0; }
.purchases-form-section input[type="date"] { max-width: 200px; }
.purchases-supplier-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.purchases-supplier-row select { min-width: 240px; padding: 10px 14px; border: 1px solid #3a3f47; border-radius: 10px; background: #25282e; color: #e4e6eb; font-size: 0.95rem; }
.purchases-supplier-row select:focus { outline: none; border-color: #ffc107; }
.purchases-btn-outline { padding: 10px 16px; border-radius: 10px; border: 1px solid #3a3f47; background: transparent; color: #b0b4bb; font-size: 0.9rem; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.purchases-btn-outline:hover { border-color: #ffc107; color: #ffc107; background: rgba(255,193,7,0.06); }

.purchases-inline-block { display: none; margin-top: 16px; margin-bottom: 20px; padding: 20px; background: #25282e; border-radius: 12px; border: 1px solid #3a3f47; }
.purchases-inline-block.is-open { display: block; }
.purchases-inline-block .form-row { margin-bottom: 14px; }
.purchases-inline-block .form-row:last-of-type { margin-bottom: 16px; }
.purchases-inline-block input[type="text"], .purchases-inline-block input[type="number"], .purchases-inline-block select { padding: 10px 12px; border: 1px solid #3a3f47; border-radius: 10px; background: #1a1d23; color: #e4e6eb; font-size: 0.9rem; }
.purchases-inline-block input:focus, .purchases-inline-block select:focus { outline: none; border-color: #ffc107; }
.purchases-inline-block .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.purchases-inline-block .error-msg { margin-left: 0; margin-top: 8px; display: inline-block; }

.purchases-products-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.purchases-products-head label { margin: 0; }
.purchases-items-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #3a3f47; background: #1a1d23; }
.purchases-items-table { margin: 0; width: 100%; }
.purchases-items-table thead { background: #25282e; }
.purchases-items-table th { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #3a3f47; }
.purchases-items-table td { padding: 10px 16px; border-bottom: 1px solid #2d3139; vertical-align: middle; }
.purchases-items-table tbody tr:last-child td { border-bottom: none; }
.purchases-items-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.purchases-items-table .purchase-item-product { width: 100%; min-width: 180px; padding: 8px 12px; border: 1px solid #3a3f47; border-radius: 8px; background: #25282e; color: #e4e6eb; }
.purchases-items-table .purchase-item-qty, .purchases-items-table .purchase-item-price { width: 90px; max-width: 100%; padding: 8px 12px; border: 1px solid #3a3f47; border-radius: 8px; background: #25282e; color: #e4e6eb; font-size: 0.9rem; text-align: right; }
.purchases-items-table .purchase-item-total { font-weight: 600; color: #ffc107; min-width: 80px; text-align: right; }
.purchases-items-table .purchase-item-remove { padding: 6px 10px; border-radius: 8px; font-size: 1.1rem; line-height: 1; }

.purchases-grand-total-wrap { margin-top: 16px; padding: 16px 20px; background: #25282e; border-radius: 12px; border: 1px solid #3a3f47; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.purchases-grand-total-label { font-size: 1rem; color: #9ca3af; }
.purchases-grand-total-value { font-size: 1.5rem; font-weight: 700; color: #ffc107; }
.purchases-add-row-wrap { margin-top: 12px; }
.purchases-add-row-wrap .btn { border-radius: 10px; padding: 8px 14px; }

.purchases-form-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid #3a3f47; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.purchases-form-actions .btn-primary { padding: 12px 24px; border-radius: 12px; font-size: 0.95rem; }
.purchases-form-actions .btn-secondary { padding: 10px 20px; border-radius: 10px; }
.purchases-form .error-msg { margin-top: 12px; }

.purchases-list-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #3a3f47; }
.purchases-page table { margin: 0; }
.purchases-page table thead { background: #25282e; }
.purchases-page table th { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #3a3f47; }
.purchases-page table td { padding: 12px 16px; border-bottom: 1px solid #2d3139; }
.purchases-page table tbody tr:hover { background: rgba(255,255,255,0.03); }
.purchases-page .empty-state { padding: 48px 24px; color: #6b7280; font-size: 0.95rem; text-align: center; }
.purchases-page .empty-state::before { content: ''; display: block; width: 64px; height: 64px; margin: 0 auto 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233a3f47'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E") center no-repeat; opacity: 0.7; }
.purchases-page .badge { padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: 500; }
.purchases-page .purchase-receive { border-radius: 8px; padding: 6px 12px; font-size: 0.85rem; }

/* Purchases v2: header, search, modal, toast, empty state */
.purchases-page-v2 .purchases-header { padding: 20px 24px; margin-bottom: 20px; }
.purchases-page-v2 .purchases-header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.purchases-page-v2 .purchases-title { margin: 0; font-size: 1.5rem; font-weight: 600; color: #e4e6eb; letter-spacing: -0.02em; }
.purchases-balance { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(129, 199, 132, 0.15); border: 1px solid rgba(129, 199, 132, 0.4); border-radius: 10px; }
.purchases-balance-label { font-size: 0.9rem; color: #9ca3af; }
.purchases-balance-value { font-weight: 700; font-size: 1.1rem; color: #81c784; }
.purchases-page-v2 .purchases-header .btn-primary { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 20px; }
.purchases-page-v2 .purchases-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.purchases-page-v2 .purchases-search label { margin: 0; font-size: 0.9rem; color: #9ca3af; }
.purchases-page-v2 .purchases-search input[type="text"],
.purchases-page-v2 .purchases-search input[type="date"] { padding: 10px 14px; border: 1px solid #3a3f47; border-radius: 10px; background: #25282e; color: #e4e6eb; font-size: 0.9rem; min-width: 140px; }
.purchases-page-v2 .purchases-search input:focus { outline: none; border-color: #ffc107; }

.purchases-page-v2 .purchases-table-card { margin-bottom: 20px; }
.purchases-bar-card { margin-top: 24px; }
.purchases-bar-title { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; color: #c9a227; display: flex; align-items: center; gap: 8px; }
.purchases-bar-desc { margin: 0 0 16px; font-size: 0.9rem; color: #9ca3af; }
.purchases-table--bar { margin-top: 0; }
.purchases-page-v2 .purchases-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #3a3f47; }
.purchases-page-v2 .purchases-pagination-info { font-size: 0.9rem; color: #9ca3af; }
.purchases-page-v2 .purchases-pagination-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.purchases-empty { padding: 48px 24px; text-align: center; }
.purchases-empty-icon { margin-bottom: 16px; }
.purchases-empty-icon .material-icons { font-size: 64px; color: #3a3f47; }
.purchases-empty-title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; color: #e4e6eb; }
.purchases-empty-desc { margin: 0 0 24px; font-size: 0.95rem; color: #9ca3af; line-height: 1.4; }
.purchases-empty .btn-primary { display: inline-flex; align-items: center; gap: 8px; }

.purchases-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.purchases-modal-overlay.purchases-modal--open { opacity: 1; visibility: visible; }
.purchases-modal { background: linear-gradient(180deg, #1e2128 0%, #1a1d23 100%); border-radius: 16px; border: 1px solid #3a3f47; box-shadow: 0 8px 32px rgba(0,0,0,0.4); width: 100%; max-width: 100%; max-height: 90vh; overflow-y: auto; }
.purchases-modal--sm { max-width: 420px; }
.purchases-modal-content { padding: 24px; }
.purchases-modal-title { margin: 0 0 20px; font-size: 1.2rem; font-weight: 600; color: #ffc107; display: flex; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid #3a3f47; }
.purchases-modal-field { margin-bottom: 18px; }
.purchases-modal-field label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 500; color: #9ca3af; }
.purchases-modal-field .purchase-select,
.purchases-modal-field input[type="date"],
.purchases-modal-field input[type="text"],
.purchases-modal-field input[type="number"],
.purchases-modal-field textarea { width: 100%; max-width: 100%; padding: 10px 14px; border: 1px solid #3a3f47; border-radius: 10px; background: #25282e; color: #e4e6eb; font-size: 0.95rem; box-sizing: border-box; }
.purchases-modal-field textarea { resize: vertical; min-height: 60px; font-family: inherit; }
.purchases-modal-field .purchase-select:focus,
.purchases-modal-field input:focus { outline: none; border-color: #ffc107; }
.purchases-modal-field .purchase-select.input-error,
.purchases-modal-field input.input-error { border-color: #ef4444; }
.purchases-modal-positions-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.purchases-modal-positions-head label { margin: 0; }
.purchases-new-product-block { display: none; margin-bottom: 16px; padding: 16px; background: #25282e; border-radius: 12px; border: 1px solid #3a3f47; }
.purchases-new-product-block.is-open { display: block; }
.purchases-new-product-fields { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: end; flex-wrap: wrap; }
.purchases-new-product-fields .purchases-modal-field { margin-bottom: 0; }
.purchases-new-product-fields .purchases-modal-field label { margin-bottom: 6px; }
.purchases-new-product-fields input[type="text"],
.purchases-new-product-fields input[type="number"],
.purchases-new-product-fields select { padding: 8px 12px; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; font-size: 0.9rem; min-width: 0; }
.purchases-new-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.purchases-new-product-actions .error-msg { margin: 0; }
@media (max-width: 640px) {
  .purchases-new-product-fields { grid-template-columns: 1fr; }
}
.purchases-modal .purchases-items-wrap { margin-top: 8px; }
.purchases-modal .purchases-grand-total-wrap { margin-top: 12px; }
.purchases-modal-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid #3a3f47; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.purchases-modal-actions .btn-primary { padding: 12px 24px; border-radius: 12px; }
.purchases-modal-actions .btn-secondary { padding: 10px 20px; border-radius: 10px; }
.purchases-modal .error-msg { margin-top: 12px; }

.purchases-items-table .purchase-item-qty.input-error,
.purchases-items-table .purchase-item-price.input-error { border-color: #ef4444; }

.purchases-toast { position: fixed; bottom: 24px; right: 24px; z-index: 1001; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 12px; font-size: 0.95rem; font-weight: 500; box-shadow: 0 4px 20px rgba(0,0,0,0.3); opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.purchases-toast .material-icons { font-size: 22px; }
.purchases-toast--show { opacity: 1; transform: translateY(0); }
.purchases-toast--success { background: #1a3d2b; color: #86efac; border: 1px solid #22c55e; }
.purchases-toast--success .material-icons { color: #22c55e; }
.purchases-toast--error { background: #3d1a1a; color: #fca5a5; border: 1px solid #ef4444; }
.purchases-toast--error .material-icons { color: #ef4444; }

@media (max-width: 640px) {
  .purchases-modal-overlay { padding: 16px; }
  .purchases-modal { max-height: 85vh; }
  .purchases-page-v2 .purchases-search { flex-direction: column; align-items: stretch; }
  .purchases-page-v2 .purchases-search input { min-width: 0; }
}

/* ========== Инвентаризация ========== */
.inventory-page .card { padding: 24px; border-radius: 16px; border: 1px solid #3a3f47; margin-bottom: 20px; }
.inventory-page .card h3 { margin: 0 0 8px; font-size: 1.2rem; color: #e4e6eb; }
.inventory-intro { font-size: 0.9rem; color: #9ca3af; margin: 0 0 20px; line-height: 1.4; }
.inventory-chart-wrap { margin-bottom: 24px; padding: 20px; background: #1a1d23; border-radius: 12px; border: 1px solid #3a3f47; overflow-x: auto; }
.inventory-chart-svg { width: 100%; min-width: 320px; height: auto; max-height: 280px; display: block; }
.inventory-chart-svg .inventory-chart-axis { stroke: #3a3f47; stroke-width: 1; }
.inventory-chart-svg .inventory-chart-bar { fill: url(#inventoryBarGrad); }
.inventory-chart-svg .inventory-chart-bar:hover { opacity: 0.9; }
.inventory-chart-svg .inventory-chart-label { fill: #888; font-size: 11px; font-family: inherit; text-anchor: middle; }
.inventory-products-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #3a3f47; }
.inventory-products-table { width: 100%; margin: 0; border-collapse: collapse; }
.inventory-products-table th { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #3a3f47; background: #25282e; }
.inventory-products-table td { padding: 10px 16px; border-bottom: 1px solid #2d3139; }
.inventory-products-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.inventory-products-table .product-stock { font-weight: 600; color: #4caf50; }
.inventory-products-table tr.inventory-low .product-stock { color: #ff9800; }
.inventory-page table th { padding: 10px 12px; }
.inventory-page table td { padding: 10px 12px; }

/* ========== Прогнозы ========== */
.forecasts-page .card { padding: 24px; border-radius: 16px; border: 1px solid #3a3f47; }
.forecasts-page .card h3 { margin: 0 0 8px; font-size: 1.2rem; color: #e4e6eb; }
.forecasts-intro { font-size: 0.9rem; color: #9ca3af; margin: 0 0 16px; line-height: 1.4; }
.forecasts-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #3a3f47; }
.forecasts-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.forecasts-filters label { color: #9ca3af; font-size: 0.9rem; }
.forecasts-filters input[type="date"], .forecasts-filters select { padding: 8px 12px; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; }
.forecasts-list-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #3a3f47; }
.forecasts-table { width: 100%; margin: 0; border-collapse: collapse; }
.forecasts-table th { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #3a3f47; background: #25282e; }
.forecasts-table td { padding: 10px 16px; border-bottom: 1px solid #2d3139; }
.forecasts-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.forecasts-table .forecast-qty { font-weight: 500; color: #ffc107; }

/* ========== Налоги / Настройки ========== */
.settings-page .card { padding: 24px; border-radius: 16px; border: 1px solid #3a3f47; }
.settings-page .card h3 { margin: 0 0 8px; font-size: 1.2rem; color: #e4e6eb; }
.settings-intro { font-size: 0.9rem; color: #9ca3af; margin: 0 0 16px; line-height: 1.4; }
.settings-toolbar { margin-bottom: 16px; }
.settings-list-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #3a3f47; }
.settings-table { width: 100%; margin: 0; border-collapse: collapse; }
.settings-table th { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #3a3f47; background: #25282e; }
.settings-table td { padding: 10px 16px; border-bottom: 1px solid #2d3139; }
.settings-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.settings-table .tax-percent { font-weight: 500; color: #ffc107; }

/* Графики на странице настроек */
.settings-charts-card { margin-bottom: 20px; }
.settings-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
@media (max-width: 700px) { .settings-charts-row { grid-template-columns: 1fr; } }
.settings-chart-block { background: #1a1d23; border-radius: 12px; padding: 20px; border: 1px solid #3a3f47; }
.settings-chart-block h4 { margin: 0 0 8px; font-size: 0.95rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.settings-chart-meta { font-size: 0.85rem; color: #6b7280; margin: 0 0 12px; }
.settings-chart-svg { width: 100%; height: auto; max-height: 220px; display: block; }
.settings-chart-bar:hover { opacity: 0.9; }
.settings-payment-block { background: #1a1d23; border-radius: 12px; padding: 20px; border: 1px solid #3a3f47; }
.settings-payment-block h4 { margin: 0 0 8px; font-size: 0.95rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.settings-payment-table { width: 100%; margin: 0; border-collapse: collapse; }
.settings-payment-table th { padding: 8px 0; font-size: 0.8rem; color: #6b7280; text-align: left; border-bottom: 1px solid #3a3f47; }
.settings-payment-table td { padding: 10px 0; border-bottom: 1px solid #2d3139; }
.settings-provider-total { font-weight: 600; color: #4caf50; }

/* ========== Касса ========== */
.main--cash h1 { text-align: center; margin-bottom: 24px; }
.main--cash #content { width: 100%; max-width: 100%; }
.cash-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
.cash-main-card {
  padding: 28px 32px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  margin-bottom: 24px;
}
.cash-title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffc107;
  letter-spacing: 0.02em;
}
.cash-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px 32px;
  margin-bottom: 12px;
}
.cash-balance-block { margin-right: 8px; }
.cash-balance-label {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.cash-balance-value {
  font-size: 2rem;
  font-weight: 700;
  color: #e4e6eb;
  line-height: 1.2;
}
.cash-balance-value .cash-currency { font-size: 1rem; font-weight: 500; color: #9ca3af; }
.cash-salary-block-inline {
  padding: 12px 18px;
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.35);
  border-radius: 12px;
}
.cash-salary-label {
  display: block;
  font-size: 0.75rem;
  color: #81c784;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.cash-salary-value { font-size: 1.15rem; font-weight: 600; color: #a5d6a7; }
.cash-meta {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0 0 24px;
  line-height: 1.4;
}
.cash-page .material-icons.cash-icon {
  font-family: 'Material Icons';
  font-size: 1.2em;
  vertical-align: -0.3em;
  margin-right: 6px;
  color: #ffc107;
  -webkit-font-smoothing: antialiased;
}
.cash-salary-block-inline .cash-icon,
.cash-salary-label .cash-icon { color: #81c784; }
.cash-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #3a3f47;
}
@media (max-width: 768px) { .cash-detail-section { grid-template-columns: 1fr; } }
.cash-detail-card {
  padding: 20px;
  background: #1a1d23;
  border-radius: 12px;
  border: 1px solid #3a3f47;
}
.cash-detail-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}
.cash-detail-title .cash-icon { margin-right: 6px; }
.cash-detail-table-wrap { overflow-x: auto; border-radius: 8px; }
.cash-detail-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.9rem; }
.cash-detail-table th { padding: 10px 12px; text-align: left; color: #9ca3af; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #3a3f47; }
.cash-detail-table td { padding: 10px 12px; border-bottom: 1px solid #2d3139; }
.cash-detail-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.cash-detail-table .cash-in { color: #81c784; font-weight: 500; }
.cash-detail-table .cash-out { color: #ef9a9a; font-weight: 500; }
.cash-actions-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid #3a3f47;
}
@media (max-width: 640px) { .cash-actions-section { grid-template-columns: 1fr; } }
.cash-pay-salary-box,
.cash-close-box {
  padding: 20px;
  background: #1a1d23;
  border-radius: 12px;
  border: 1px solid #3a3f47;
}
.cash-box-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e4e6eb;
}
.cash-salary-form .form-row,
.cash-close-box .form-row,
.cash-open-form .form-row { margin-bottom: 12px; }
.cash-salary-form label,
.cash-close-box label,
.cash-open-form label { display: block; font-size: 0.85rem; color: #9ca3af; margin-bottom: 4px; }
.cash-salary-form select,
.cash-salary-form input,
.cash-close-box input,
.cash-open-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  background: #25282e;
  color: #e4e6eb;
  font-size: 0.95rem;
}
.cash-salary-form select:focus,
.cash-salary-form input:focus,
.cash-close-box input:focus,
.cash-open-form input:focus { outline: none; border-color: #ffc107; }
.cash-salary-form button,
.cash-close-box button,
.cash-open-form button { margin-top: 4px; }
.cash-no-session {
  padding: 24px 0 0;
}
.cash-no-session-text {
  font-size: 1.1rem;
  color: #e4e6eb;
  margin: 0 0 4px;
}
.cash-no-session-hint {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0 0 20px;
  line-height: 1.4;
}
.cash-open-form {
  max-width: 360px;
  padding: 20px;
  background: #1a1d23;
  border-radius: 12px;
  border: 1px solid #3a3f47;
}
.cash-sessions-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
}
.cash-sessions-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e4e6eb;
}
.cash-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #3a3f47; }
.cash-sessions-table { width: 100%; margin: 0; border-collapse: collapse; }
.cash-sessions-table th {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #3a3f47;
  background: #25282e;
}
.cash-sessions-table td { padding: 10px 16px; border-bottom: 1px solid #2d3139; }
.cash-sessions-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.cash-sessions-table .empty-state { color: #6b7280; padding: 24px; text-align: center; }
.cash-sessions-table .cash-in { color: #81c784; font-weight: 500; }
.cash-sessions-table .cash-out { color: #ef9a9a; font-weight: 500; }
.cash-page .error-msg { margin-top: 12px; }
.cash-report-link { margin-top: 20px; padding-top: 20px; border-top: 1px solid #3a3f47; }
.cash-report-link .btn { text-decoration: none; }

/* Страница «Отчёт по кассе» */
.main--cash-report h1 { margin-bottom: 24px; text-align: center; }
.cash-report-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
.cash-report-icon {
  font-size: 1.1em;
  vertical-align: -0.25em;
  margin-right: 6px;
  color: #ffc107;
}
.cash-report-card {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}
.cash-report-toolbar { margin-bottom: 20px; }
.cash-report-heading {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffc107;
  display: flex;
  align-items: center;
}
.cash-report-filters { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; }
.cash-report-date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cash-report-date-row label { font-size: 0.85rem; color: #9ca3af; margin: 0; }
.cash-report-date-row input[type="date"] {
  padding: 10px 12px;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  background: #1a1d23;
  color: #e4e6eb;
  font-size: 0.95rem;
}
.cash-report-date-row input[type="date"]:focus { outline: none; border-color: #ffc107; }
.cash-report-session-row { display: flex; align-items: center; gap: 10px; }
.cash-report-session-row label { font-size: 0.85rem; color: #9ca3af; margin: 0; }
.cash-report-card select {
  padding: 10px 14px;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  background: #1a1d23;
  color: #e4e6eb;
  font-size: 0.95rem;
  min-width: 280px;
}
.cash-report-card select:focus { outline: none; border-color: #ffc107; }

/* Сводка и графики */
.cash-report-stats-card { margin-bottom: 20px; }
.cash-report-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px) { .cash-report-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cash-report-stats-grid { grid-template-columns: 1fr 1fr; } }
.cash-report-stat-box {
  padding: 16px;
  border-radius: 12px;
  background: #1a1d23;
  border: 1px solid #3a3f47;
  min-height: 88px;
}
.cash-report-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.cash-report-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.cash-report-stat-in .cash-report-stat-value { color: #66bb6a; }
.cash-report-stat-salary .cash-report-stat-value { color: #ffb74d; }
.cash-report-stat-purchase .cash-report-stat-value { color: #64b5f6; }
.cash-report-stat-out .cash-report-stat-value { color: #ef9a9a; }
.cash-report-stat-balance .cash-report-stat-value { color: #81c784; }
.cash-report-stat-balance.negative .cash-report-stat-value { color: #ef9a9a; }
.cash-report-stat-bar {
  height: 6px;
  background: #25282e;
  border-radius: 3px;
  overflow: hidden;
}
.cash-report-stat-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.cash-report-stat-in .cash-report-stat-bar-fill { background: linear-gradient(90deg, #43a047, #66bb6a); }
.cash-report-stat-salary .cash-report-stat-bar-fill { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.cash-report-stat-purchase .cash-report-stat-bar-fill { background: linear-gradient(90deg, #42a5f5, #64b5f6); }
.cash-report-stat-out .cash-report-stat-bar-fill { background: linear-gradient(90deg, #e57373, #ef9a9a); }
.cash-report-stat-balance .cash-report-stat-bar-fill { background: linear-gradient(90deg, #66bb6a, #81c784); }
.cash-report-stat-balance.negative .cash-report-stat-bar-fill { background: linear-gradient(90deg, #e57373, #ef9a9a); }

.cash-report-chart-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #3a3f47;
}
.cash-report-chart-title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}
.cash-report-chart-title .cash-report-icon { margin-right: 8px; }
.cash-report-chart-bars { display: flex; flex-direction: column; gap: 12px; }
.cash-report-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cash-report-chart-label {
  width: 80px;
  font-size: 0.85rem;
  color: #9ca3af;
  flex-shrink: 0;
}
.cash-report-chart-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cash-report-chart-bar {
  height: 24px;
  border-radius: 6px;
  min-width: 4px;
  transition: width 0.4s ease;
}
.cash-report-chart-bar.chart-in { background: linear-gradient(90deg, #43a047, #66bb6a); }
.cash-report-chart-bar.chart-salary { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.cash-report-chart-bar.chart-purchase { background: linear-gradient(90deg, #42a5f5, #64b5f6); }
.cash-report-chart-bar.chart-out { background: linear-gradient(90deg, #e57373, #ef9a9a); }
.cash-report-chart-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e6eb;
  min-width: 70px;
  text-align: right;
}

.cash-report-tabs-card { padding: 0 0 24px; }
.cash-report-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #3a3f47;
  padding: 0 24px;
  margin-bottom: 0;
}
.cash-report-tab {
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: #9ca3af;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: inherit;
}
.cash-report-tab:hover { color: #e4e6eb; }
.cash-report-tab.active { color: #ffc107; border-bottom-color: #ffc107; }
.cash-report-panel { padding: 24px; }
.cash-report-panel-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}
.cash-report-panel-title .cash-report-icon { margin-right: 8px; }
.cash-report-type-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cash-report-filter-label { font-size: 0.9rem; color: #9ca3af; margin-right: 8px; display: flex; align-items: center; }
.cash-report-filter-btn {
  padding: 8px 14px;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  background: #25282e;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.cash-report-filter-btn:hover { background: #2d3139; color: #e4e6eb; border-color: #454a52; }
.cash-report-filter-btn.active { background: rgba(255,193,7,0.15); color: #ffc107; border-color: #ffc107; }
.cash-report-panel .cash-table-wrap { margin-top: 0; border-radius: 12px; overflow: hidden; }
.cash-report-panel .cash-sessions-table { font-size: 0.9rem; }
.cash-report-panel .cash-sessions-table th { padding: 12px 16px; font-size: 0.75rem; }
.cash-report-panel .cash-sessions-table td { padding: 10px 16px; }
.cash-report-card .form-row label { display: block; font-size: 0.9rem; color: #9ca3af; margin-bottom: 6px; }
.cash-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 768px) { .cash-report-grid { grid-template-columns: 1fr; } }
.cash-report-block { padding: 16px; background: #1a1d23; border-radius: 12px; border: 1px solid #3a3f47; }
.cash-report-title { margin: 0 0 12px; font-size: 1rem; font-weight: 600; color: #e4e6eb; }
.cash-report-block .cash-table-wrap { margin-top: 8px; }
.cash-report-block .cash-sessions-table { font-size: 0.9rem; }
.cash-report-block .cash-sessions-table th { padding: 8px 12px; font-size: 0.75rem; }
.cash-report-block .cash-sessions-table td { padding: 8px 12px; }

/* ========== Отчёты (полная система) ========== */
.main--reports h1 { margin-bottom: 24px; }
.reports-page {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  max-width: 1400px;
  margin: 0 auto;
}
.reports-icon {
  font-size: 1.1em;
  vertical-align: -0.25em;
  margin-right: 8px;
  color: #ffc107;
}
.reports-toolbar-card {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.reports-section-title {
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffc107;
  display: flex;
  align-items: center;
}
.reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.reports-toolbar label { font-size: 0.9rem; color: #9ca3af; }
.reports-toolbar input[type="date"] {
  padding: 10px 14px;
  border: 1px solid #3a3f47;
  border-radius: 10px;
  background: #1a1d23;
  color: #e4e6eb;
  font-size: 0.95rem;
}
.reports-toolbar input[type="date"]:focus { outline: none; border-color: #ffc107; }
.reports-quick-dates { display: flex; gap: 8px; margin-left: 12px; }
.reports-quick-btn {
  padding: 8px 14px;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  background: #25282e;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.reports-quick-btn:hover { background: #2d3139; color: #ffc107; border-color: #ffc107; }

.reports-calendar-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px solid #3a3f47; }
.reports-calendar-title { margin: 0 0 12px; font-size: 1rem; color: #e4e6eb; font-weight: 600; }
.reports-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 320px; }
.reports-calendar-weekday { font-size: 0.7rem; color: #9ca3af; text-align: center; padding: 4px 0; }
.reports-calendar-day { width: 100%; aspect-ratio: 1; max-width: 36px; max-height: 36px; padding: 0; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; font-size: 0.8rem; cursor: pointer; transition: background .15s, border-color .15s; }
.reports-calendar-day:hover { background: #25282e; border-color: #ffc107; color: #ffc107; }
.reports-calendar-day--empty { cursor: default; opacity: 0.3; aspect-ratio: 1; max-width: 36px; max-height: 36px; }
.reports-calendar-day--range { background: rgba(255, 193, 7, 0.15); border-color: rgba(255, 193, 7, 0.4); }
.reports-calendar-day--from { background: #ffc107; color: #1a1d23; border-color: #ffc107; font-weight: 600; }
.reports-calendar-day--to { background: #ffc107; color: #1a1d23; border-color: #ffc107; font-weight: 600; }
.reports-calendar-hint { margin: 10px 0 0; font-size: 0.8rem; color: #9ca3af; }

.reports-dish-infographic { background: linear-gradient(135deg, rgba(255,193,7,0.06) 0%, transparent 50%); border-radius: 16px; padding: 20px 24px; border: 1px solid rgba(255,193,7,0.2); }
.reports-dish-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.reports-dish-kpi-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: #1a1d23; border-radius: 12px; border: 1px solid #3a3f47; }
.reports-dish-kpi-card--best { border-color: rgba(255,193,7,0.4); background: rgba(255,193,7,0.08); }
.reports-dish-kpi-icon { font-size: 1.8rem; color: #ffc107; flex-shrink: 0; }
.reports-dish-kpi-body { min-width: 0; }
.reports-dish-kpi-label { display: block; font-size: 0.8rem; color: #9ca3af; margin-bottom: 4px; }
.reports-dish-kpi-value { display: block; font-size: 1.25rem; font-weight: 700; color: #e4e6eb; }
.reports-dish-kpi-meta { display: block; font-size: 0.85rem; color: #9ca3af; margin-top: 4px; }
.reports-best-dish-detail { margin-top: 20px; padding: 22px 24px; border: 1px solid #3a3f47; }
.reports-best-dish-title { margin: 0 0 16px; font-size: 1.15rem; color: #e4e6eb; display: flex; align-items: center; gap: 8px; }
.reports-best-dish-finance { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #3a3f47; }
.reports-best-dish-block { padding: 14px 18px; background: #25282e; border-radius: 10px; min-width: 140px; }
.reports-best-dish-block.reports-best-dish-revenue { border-left: 4px solid #81c784; }
.reports-best-dish-block.reports-best-dish-cost { border-left: 4px solid #ffb74d; }
.reports-best-dish-block.reports-best-dish-profit { border-left: 4px solid #64b5f6; }
.reports-best-dish-block.reports-best-dish-profit.negative { border-left-color: #e57373; }
.reports-best-dish-label { display: block; font-size: 0.8rem; color: #9ca3af; margin-bottom: 4px; }
.reports-best-dish-value { font-size: 1.2rem; font-weight: 700; color: #e4e6eb; }
.reports-best-dish-meta { display: block; font-size: 0.8rem; color: #9ca3af; margin-top: 4px; }
.reports-best-dish-subtitle { margin: 0 0 12px; font-size: 1rem; color: #b0b4bb; display: flex; align-items: center; gap: 8px; }

.reports-section {
  margin-bottom: 36px;
}
.reports-section-head {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e4e6eb;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #3a3f47;
  display: flex;
  align-items: center;
}
.reports-salaries-hint { margin: 14px 0 0; padding: 12px 16px; background: rgba(255,193,7,0.08); border-radius: 10px; border: 1px solid rgba(255,193,7,0.25); font-size: 0.9rem; color: #b0b4bb; }
.reports-salaries-hint a { color: #ffc107; font-weight: 500; }
.reports-salaries-hint a:hover { text-decoration: underline; }
.reports-section-desc {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: -8px 0 16px 0;
}

.reports-overview { margin-top: 8px; }
.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.reports-kpi {
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  border: 1px solid #3a3f47;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.reports-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.reports-kpi-icon .material-icons {
  font-size: 2rem !important;
  color: #ffc107;
  opacity: 0.9;
}
.reports-kpi-body { flex: 1; min-width: 0; }
.reports-kpi-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.reports-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.reports-kpi-value small { font-size: 0.75rem; font-weight: 500; color: #6b7280; }
.reports-kpi-revenue .reports-kpi-value { color: #66bb6a; }
.reports-kpi-purchases .reports-kpi-value { color: #64b5f6; }
.reports-kpi-expenses .reports-kpi-value { color: #ffb74d; }
.reports-kpi-salary .reports-kpi-value { color: #ba68c8; }
.reports-kpi-profit .reports-kpi-value { color: #81c784; }
.reports-kpi-balance .reports-kpi-value { color: #81c784; }
.reports-kpi-balance.negative .reports-kpi-value { color: #ef9a9a; }
.reports-kpi-bar {
  height: 6px;
  background: #1a1d23;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.reports-kpi-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.reports-kpi-revenue .reports-kpi-bar-fill { background: linear-gradient(90deg, #2e7d32, #66bb6a); }
.reports-kpi-purchases .reports-kpi-bar-fill { background: linear-gradient(90deg, #1976d2, #64b5f6); }
.reports-kpi-expenses .reports-kpi-bar-fill { background: linear-gradient(90deg, #f57c00, #ffb74d); }
.reports-kpi-salary .reports-kpi-bar-fill { background: linear-gradient(90deg, #7b1fa2, #ba68c8); }
.reports-kpi-profit .reports-kpi-bar-fill { background: linear-gradient(90deg, #388e3c, #81c784); }
.reports-kpi-balance .reports-kpi-bar-fill { background: linear-gradient(90deg, #388e3c, #81c784); }
.reports-kpi-balance.negative .reports-kpi-bar-fill { background: linear-gradient(90deg, #c62828, #ef9a9a); }
.reports-kpi-meta { font-size: 0.8rem; color: #6b7280; }

.reports-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .reports-two-col { grid-template-columns: 1fr; } }
.reports-chart-block {
  background: #1a1d23;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #3a3f47;
}
.reports-chart-block h4 {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.reports-chart-svg { width: 100%; height: 220px; display: block; }
.reports-chart-svg .axis { stroke: #3a3f47; stroke-width: 1; }
.reports-chart-svg .grid { stroke: #2d3139; stroke-width: 1; stroke-dasharray: 4 2; }
.reports-chart-svg .bar { fill: url(#barGradReports); rx: 4; }
.reports-chart-svg .bar.chart-purchase { fill: #64b5f6; }
.reports-chart-svg .bar.chart-cost { fill: #ffb74d; }
.reports-chart-svg .line { fill: none; stroke: #ffc107; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.reports-chart-svg .area { fill: url(#lineGradReports); }
.reports-chart-svg text { fill: #888; font-size: 11px; font-family: inherit; }

.reports-chart-canvas-wrap { position: relative; width: 100%; min-height: 220px; }
.reports-chart-canvas-wrap canvas { display: block; width: 100% !important; height: auto !important; max-height: 280px; }
.reports-empty-chart { margin: 0; padding: 24px 16px; color: #9ca3af; font-size: 0.9rem; text-align: center; }
.reports-empty-chart { color: #6b7280; padding: 20px; text-align: center; margin: 0; }

.reports-table-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.reports-table-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.reports-table-header .reports-table-caption { margin: 0; }
.reports-export-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reports-export-label { font-size: 0.8rem; color: #9ca3af; margin-right: 4px; }
.reports-export-pdf { background: #c62828; color: #fff; }
.reports-export-pdf:hover { background: #b71c1c; }
.reports-export-excel { background: #2e7d32; color: #fff; }
.reports-export-excel:hover { background: #1b5e20; }
.reports-table-caption {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}

/* Стилизованные таблицы отчётов: формат, сетка, чередование строк */
.reports-table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #3a3f47;
  background: #1a1d23;
}
.reports-table {
  width: 100%;
  font-size: 0.9rem;
  border-collapse: collapse;
  border-spacing: 0;
}
.reports-table th,
.reports-table td {
  padding: 12px 16px;
  border: 1px solid #2d3139;
  text-align: left;
}
.reports-table thead {
  background: linear-gradient(180deg, #2d3139 0%, #25282e 100%);
}
.reports-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffc107;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  border-bottom: 2px solid #ffc107;
  white-space: nowrap;
}
.reports-table tbody tr {
  transition: background 0.15s ease;
}
.reports-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}
.reports-table tbody tr:hover {
  background: rgba(255,193,7,0.08);
}
.reports-table tbody td {
  color: #e4e6eb;
  vertical-align: middle;
}
.reports-table .reports-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: #b0b4bb;
}
.reports-table .reports-num.negative {
  color: #ef9a9a;
  font-weight: 600;
}
.reports-table .empty-state {
  color: #6b7280;
  font-style: italic;
  text-align: center;
  padding: 24px 16px !important;
}
.reports-table tfoot tr {
  background: linear-gradient(180deg, #25282e 0%, #1f2228 100%);
  border-top: 2px solid #3a3f47;
}
.reports-table tfoot td {
  padding: 14px 16px;
  font-weight: 700;
  color: #ffc107;
  border: 1px solid #2d3139;
  border-top-width: 2px;
}
.reports-table tfoot .reports-num {
  color: #ffc107;
}
.reports-table-card .cash-table-wrap {
  border-radius: 12px;
  overflow: hidden;
}

.reports-donut-wrap { overflow: visible; }
.reports-donut-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.reports-donut-svg { width: 240px; height: 240px; flex-shrink: 0; }
.reports-donut-svg .donut-center-val { fill: #ffc107; font-size: 1.25rem; font-weight: 700; }
.reports-donut-svg .donut-center-label { fill: #9ca3af; font-size: 0.8rem; }
.reports-donut-legend { display: flex; flex-direction: column; gap: 8px; }
.reports-donut-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e4e6eb;
}
.reports-donut-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.reports-donut-legend-val { margin-left: auto; font-weight: 600; color: #ffc107; }

.reports-balance-section { margin-top: 32px; }
.reports-balance-infographic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #1a1d23 0%, #25282e 100%);
  border-radius: 20px;
  border: 1px solid #3a3f47;
}
.reports-balance-block {
  padding: 16px 24px;
  border-radius: 14px;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.reports-balance-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.reports-balance-value {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}
.reports-balance-unit { font-size: 0.8rem; color: #6b7280; margin-left: 4px; }
.reports-balance-in {
  background: linear-gradient(145deg, #2e7d32 0%, #388e3c 100%);
  color: #fff;
  border: 1px solid #43a047;
}
.reports-balance-out {
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  border: 1px solid #3a3f47;
  color: #e4e6eb;
}
.reports-balance-result {
  background: linear-gradient(145deg, #388e3c 0%, #43a047 100%);
  color: #fff;
  border: 1px solid #66bb6a;
  min-width: 180px;
}
.reports-balance-result.negative {
  background: linear-gradient(145deg, #c62828 0%, #d32f2f 100%);
  border-color: #ef9a9a;
}
.reports-balance-arrow, .reports-balance-eq {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffc107;
}
@media (max-width: 700px) {
  .reports-balance-infographic { flex-direction: column; }
  .reports-balance-arrow { transform: rotate(90deg); }
}

.reports-links-card {
  padding: 20px 24px;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.reports-links-card .reports-section-title { margin: 0; margin-right: 12px; }

.reports-lowstock-infographic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: #1a1d23;
  border-radius: 14px;
  border: 1px solid #3a3f47;
}
.reports-lowstock-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 16px 24px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2e7d32 0%, #388e3c 100%);
  color: #fff;
}
.reports-lowstock-badge.alert {
  background: linear-gradient(145deg, #c62828 0%, #d32f2f 100%);
}
.reports-lowstock-num { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.reports-lowstock-label { font-size: 0.8rem; opacity: 0.95; }
.reports-lowstock-hint {
  font-size: 0.9rem;
  color: #ffb74d;
}

/* ========== Продукты ========== */
.main--products h1 { margin-bottom: 24px; text-align: center; }
.products-page {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}
.products-icon {
  font-size: 1.1em;
  vertical-align: -0.25em;
  margin-right: 6px;
  color: #ffc107;
}
.products-stats-card {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  background: linear-gradient(145deg, #25282e 0%, #1f2228 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}
.products-stats-heading {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffc107;
  display: flex;
  align-items: center;
}
.products-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .products-stats-grid { grid-template-columns: 1fr; } }
.products-stat-box {
  padding: 16px;
  border-radius: 12px;
  background: #1a1d23;
  border: 1px solid #3a3f47;
  min-height: 88px;
}
.products-stat-box.alert { border-color: #e57373; background: rgba(229,115,115,0.08); }
.products-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.products-stat-value { font-size: 1.25rem; font-weight: 700; display: block; margin-bottom: 8px; }
.products-stat-total .products-stat-value { color: #64b5f6; }
.products-stat-below .products-stat-value { color: #81c784; }
.products-stat-below.alert .products-stat-value { color: #ef9a9a; }
.products-stat-box.products-stat-value .products-stat-value { color: #ffb74d; }
.products-stat-bar {
  height: 6px;
  background: #25282e;
  border-radius: 3px;
  overflow: hidden;
}
.products-stat-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.products-stat-total .products-stat-bar-fill { background: linear-gradient(90deg, #42a5f5, #64b5f6); }
.products-stat-below .products-stat-bar-fill { background: linear-gradient(90deg, #66bb6a, #81c784); }
.products-stat-below.alert .products-stat-bar-fill { background: linear-gradient(90deg, #e57373, #ef9a9a); }
.products-stat-box.products-stat-value .products-stat-bar-fill { background: linear-gradient(90deg, #ff9800, #ffb74d); }

.products-chart-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #3a3f47;
}
.products-chart-title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}
.products-chart-title .products-icon { margin-right: 8px; }
.products-chart-bars { display: flex; flex-direction: column; gap: 10px; }
.products-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.products-chart-label {
  width: 140px;
  font-size: 0.85rem;
  color: #9ca3af;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.products-chart-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.products-chart-bar {
  height: 22px;
  border-radius: 6px;
  min-width: 4px;
  background: linear-gradient(90deg, #43a047, #66bb6a);
  transition: width 0.4s ease;
}
.products-chart-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e6eb;
  min-width: 72px;
  text-align: right;
}

.products-main-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #3a3f47;
  background: #25282e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.products-toolbar-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e4e6eb;
  display: flex;
  align-items: center;
}
.products-toolbar-filters { display: flex; align-items: center; gap: 8px; }
.products-toolbar-filters label { color: #9ca3af; font-size: 0.9rem; }
.products-filter-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #3a3f47;
  background: #1a1d23;
  color: #e4e6eb;
  font-size: 0.9rem;
}
.products-filter-select:focus { outline: none; border-color: #ffc107; }
.products-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #3a3f47;
}
.products-table { width: 100%; margin: 0; border-collapse: collapse; }
.products-table th {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #3a3f47;
  background: #1a1d23;
}
.products-table td { padding: 10px 16px; border-bottom: 1px solid #2d3139; }
.products-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.products-table .empty-state { color: #6b7280; padding: 24px; text-align: center; }
.products-add-block {
  margin-bottom: 16px;
  padding: 16px;
  background: #1a1d23;
  border-radius: 12px;
  border: 1px solid #3a3f47;
}
.products-add-block .form-row { margin-bottom: 12px; }
.products-add-block label { display: block; font-size: 0.85rem; color: #9ca3af; margin-bottom: 4px; }
.products-add-block input,
.products-add-block select {
  padding: 8px 12px;
  border: 1px solid #3a3f47;
  border-radius: 8px;
  background: #25282e;
  color: #e4e6eb;
  font-size: 0.9rem;
}

/* Портала поваров — без сайдбара */
.cooks-portal { margin: 0; background: #1a1d23; min-height: 100vh; }
.cooks-portal .cooks-header { background: linear-gradient(180deg, #25282e 0%, #1f2228 100%); border-bottom: 1px solid #3a3f47; padding: 12px 24px; }
.cooks-portal .cooks-header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; }
.cooks-portal .cooks-header h1 { margin: 0; font-size: 1.25rem; color: #ffc107; display: flex; align-items: center; gap: 8px; }
.cooks-portal .cooks-header .material-icons { font-size: 1.5rem; }
.cooks-portal .cooks-user { font-size: 0.95rem; color: #9ca3af; }
.cooks-portal .cooks-logout { color: #f44336; margin-left: 12px; text-decoration: none; }
.cooks-portal .cooks-logout:hover { text-decoration: underline; }
.cooks-portal .cooks-main { padding: 24px; max-width: 1400px; margin: 0 auto; }
.cooks-portal .page-section { margin-bottom: 0; }
.ki-assigned { font-size: 0.8rem; color: #9ca3af; font-style: italic; }
.ki-cook-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; font-weight: 600; color: #ffc107;
  background: rgba(255, 193, 7, 0.15); padding: 4px 10px; border-radius: 8px;
  margin-right: 8px; white-space: nowrap;
}
.ki-cook-badge .material-icons { font-size: 1rem !important; }
.ki-cook-badge--cooking { background: rgba(255, 152, 0, 0.2); color: #ffb74d; }
.ki-cook-badge--done { background: rgba(76, 175, 80, 0.15); color: #81c784; font-size: 0.8rem; }

/* Кухня: 3 колонки */
.kitchen-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
@media (max-width: 900px) { .kitchen-columns { grid-template-columns: 1fr; } }
.kitchen-col { background: #25282e; border: 1px solid #3a3f47; border-radius: 12px; padding: 16px; min-height: 280px; }
.kitchen-col h3 { margin: 0 0 12px; font-size: 1rem; color: #ffc107; display: flex; align-items: center; gap: 8px; }
.kitchen-col.col-new { border-top: 3px solid #2196f3; }
.kitchen-col.col-cooking { border-top: 3px solid #ff9800; }
.kitchen-col.col-ready { border-top: 3px solid #4caf50; }
.kitchen-badge-client { display: inline-block; background: #7c3aed; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }
.ki-col-count { font-size: 0.8rem; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 10px; margin-left: 4px; }

/* Stats bar */
.ki-stats { display: flex; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.ki-stat-item { display: flex; flex-direction: column; align-items: center; background: #25282e; border: 1px solid #3a3f47; border-radius: 12px; padding: 14px 20px; min-width: 100px; }
.ki-stat-value { font-size: 1.6rem; font-weight: 700; color: #e4e6eb; }
.ki-stat-value.ki-stat-ready { color: #4caf50; }
.ki-stat-label { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.ki-stat-pct-ring {
  width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(#ffc107 calc(var(--pct) * 1%), #3a3f47 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ki-stat-pct-ring::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #25282e;
}
.ki-stat-pct-ring span { position: relative; z-index: 1; font-size: 0.8rem; font-weight: 700; color: #ffc107; }

/* Order card */
.ki-order-card { background: #1a1d23; border-radius: 12px; padding: 16px; margin-bottom: 14px; border: 1px solid #3a3f47; transition: border-color 0.2s; }
.ki-order-card:hover { border-color: #4a4f57; }
.ki-order-header { margin-bottom: 10px; }
.ki-order-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ki-order-title h4 { margin: 0; font-size: 1.05rem; color: #e4e6eb; white-space: nowrap; }
.ki-order-badge { display: inline-block; font-size: 0.7rem; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.ki-obadge-accepted { background: rgba(33,150,243,0.15); color: #64b5f6; border: 1px solid rgba(33,150,243,0.3); }
.ki-obadge-cooking { background: rgba(255,152,0,0.15); color: #ffb74d; border: 1px solid rgba(255,152,0,0.3); }
.ki-obadge-ready { background: rgba(76,175,80,0.15); color: #81c784; border: 1px solid rgba(76,175,80,0.3); }
.ki-order-meta { font-size: 0.82rem; color: #9ca3af; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.ki-order-cooks {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px;
  background: rgba(255, 193, 7, 0.2); border-radius: 8px; font-weight: 700; font-size: 0.95rem; color: #ffc107;
}
.ki-order-cooks .material-icons { font-size: 1.1rem !important; }
.ki-order-meta .material-icons { font-size: 0.95rem !important; }

/* Progress bar */
.ki-progress-wrap { margin-bottom: 12px; }
.ki-progress-bar { height: 6px; background: #3a3f47; border-radius: 3px; overflow: hidden; }
.ki-progress-fill { height: 100%; background: linear-gradient(90deg, #ff9800, #ffc107); border-radius: 3px; transition: width 0.4s ease; }
.ki-progress-done .ki-progress-fill { background: linear-gradient(90deg, #4caf50, #81c784); }
.ki-progress-text { font-size: 0.75rem; color: #9ca3af; margin-top: 4px; display: block; }

/* Item rows */
.ki-items-list { display: flex; flex-direction: column; gap: 6px; }
.ki-item-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 8px; border: 1px solid #3a3f47;
  background: #25282e; transition: background 0.2s, border-color 0.2s;
  flex-wrap: wrap;
}
.ki-item-row.item-pending { border-left: 3px solid #6b7280; }
.ki-item-row.item-cooking { border-left: 3px solid #ff9800; background: rgba(255,152,0,0.05); }
.ki-item-row.item-ready { border-left: 3px solid #4caf50; background: rgba(76,175,80,0.08); }
.ki-item-row.item-served { border-left: 3px solid #2196f3; background: rgba(33,150,243,0.05); opacity: 0.7; }
.ki-item-row.ki-item-foreign { opacity: 0.55; }
.ki-item-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; flex: 1; }
.ki-item-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.item-pending .ki-item-status-dot { background: #6b7280; }
.item-cooking .ki-item-status-dot { background: #ff9800; box-shadow: 0 0 6px rgba(255,152,0,0.5); animation: ki-pulse 1.5s infinite; }
.item-ready .ki-item-status-dot { background: #4caf50; }
.item-served .ki-item-status-dot { background: #2196f3; }
@keyframes ki-pulse { 0%,100%{opacity:1}50%{opacity:0.4} }
.ki-item-name { font-size: 0.9rem; color: #e4e6eb; font-weight: 500; }
.ki-item-qty { color: #9ca3af; font-weight: 400; font-size: 0.85rem; }
.ki-station-label { font-size: 0.7rem; background: rgba(255,193,7,0.12); color: #ffc107; padding: 2px 6px; border-radius: 4px; }
.ki-cook-label { font-size: 0.75rem; color: #9ca3af; display: inline-flex; align-items: center; gap: 2px; }
.ki-cook-label .ki-cook-icon { font-size: 0.85rem !important; }
.ki-item-comment { font-size: 0.75rem; color: #9ca3af; font-style: italic; display: inline-flex; align-items: center; gap: 2px; }
.ki-item-comment .ki-comment-icon { font-size: 0.85rem !important; }
.ki-item-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ki-item-badge { font-size: 0.72rem; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.ki-item-badge .material-icons { font-size: 0.85rem !important; }
.item-pending .ki-item-badge { background: rgba(107,114,128,0.15); color: #9ca3af; }
.item-cooking .ki-item-badge { background: rgba(255,152,0,0.15); color: #ffb74d; }
.item-ready .ki-item-badge { background: rgba(76,175,80,0.15); color: #81c784; }
.item-served .ki-item-badge { background: rgba(33,150,243,0.15); color: #64b5f6; }

/* Item action buttons */
.btn-item-cooking { background: #ff9800 !important; color: #1a1d23 !important; font-weight: 600; margin-left: 0 !important; }
.btn-item-cooking:hover { background: #f57c00 !important; }
.btn-item-ready { background: #4caf50 !important; color: #fff !important; font-weight: 600; margin-left: 0 !important; }
.btn-item-ready:hover { background: #388e3c !important; }

/* Bulk actions */
.ki-bulk-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid #3a3f47; }
.ki-bulk-actions .btn { margin-left: 0; }
/* Чек кухни — вид как печатный чек-билетик (картинка для печати) */
.kitchen-print-slip {
  position: absolute; left: -9999px; top: 0;
  width: 320px; min-height: 200px;
  background: #fff; color: #000;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px; line-height: 1.35;
  box-sizing: border-box;
}
.kitchen-slip-inner {
  border: 2px solid #000;
  padding: 14px 16px;
  width: 100%; box-sizing: border-box;
}
.kitchen-slip-header {
  text-align: center; font-weight: bold; font-size: 18px; letter-spacing: 0.2em;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed #000;
}
.kitchen-slip-number {
  font-weight: bold; font-size: 16px; margin-bottom: 4px;
}
.kitchen-slip-meta {
  font-size: 12px; color: #333; margin-bottom: 10px;
}
.kitchen-slip-items {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.kitchen-slip-items td { padding: 3px 0; border-bottom: 1px dotted #ccc; }
.kitchen-slip-items td:first-child { padding-right: 12px; }
.kitchen-slip-footer {
  text-align: center; font-size: 11px; margin-top: 10px; padding-top: 6px;
}
@media print {
  body * { visibility: hidden; }
  .kitchen-print-slip, .kitchen-print-slip * { visibility: visible; }
  .kitchen-print-slip {
    position: absolute; left: 0; top: 0; width: 320px; margin: 0;
    background: #fff; color: #000;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .kitchen-slip-inner { border: 2px solid #000; }
}

/* ---------- Калькуляция блюд: профессиональный интерфейс ---------- */
.cc-page { max-width: 1100px; margin: 0 auto; }
.cc-section { margin-bottom: 24px; }
.cc-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.1rem; font-weight: 600; color: #ffc107; }
.cc-section-header .material-icons { font-size: 1.3rem; }

/* Top row: select + create */
.cc-top-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .cc-top-row { grid-template-columns: 1fr; } }
.cc-top-row label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: #9ca3af; }
.cc-select { width: 100%; padding: 10px 14px; border: 1px solid #3a3f47; border-radius: 10px; background: #1a1d23; color: #e4e6eb; font-size: 0.95rem; }
.cc-select:focus { outline: none; border-color: #ffc107; }
.cc-cat-select { max-width: 200px; }
.cc-input { padding: 8px 12px; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; font-size: 0.95rem; }
.cc-input:focus { outline: none; border-color: #ffc107; }
.cc-new-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.cc-new-form .btn { margin-left: 0; }

/* Add ingredient */
.cc-add-section { background: #25282e; border-radius: 12px; padding: 16px 20px; border: 1px solid #3a3f47; }
.cc-add-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.cc-add-form .cc-select { max-width: 280px; }
.cc-product-search-wrap { position: relative; max-width: 320px; }
.cc-product-search-wrap .cc-product-search { width: 100%; padding: 10px 14px; border: 1px solid #3a3f47; border-radius: 10px; background: #1a1d23; color: #e4e6eb; font-size: 0.95rem; }
.cc-product-search-wrap .cc-product-search:focus { outline: none; border-color: #ffc107; }
.cc-add-product-list { display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 280px; overflow-y: auto; background: #25282e; border: 1px solid #3a3f47; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 100; }
.cc-add-product-list.cc-add-product-list--open { display: block; }
.cc-add-product-item { padding: 10px 14px; cursor: pointer; color: #e4e6eb; font-size: 0.9rem; border-bottom: 1px solid #2d3139; transition: background 0.15s; }
.cc-add-product-item:hover { background: #3a3f47; }
.cc-add-product-item:last-child { border-bottom: none; }
.cc-add-product-item-sub { color: #9ca3af; font-size: 0.8rem; margin-left: 6px; }
.cc-add-product-list-empty { padding: 12px 14px; color: #9ca3af; font-size: 0.9rem; }
.cc-add-qty-wrap { display: flex; align-items: center; gap: 6px; }
.cc-add-qty-wrap .cc-input { width: 100px; }
.cc-add-unit-select { padding: 6px 8px; border-radius: 6px; border: 1px solid #3a3f47; background: #25282e; color: #e4e6eb; font-size: 0.9rem; min-width: 56px; }
.cc-qty-unit-select { padding: 4px 6px; border-radius: 6px; border: 1px solid #3a3f47; background: #25282e; color: #e4e6eb; font-size: 0.85rem; margin-left: 4px; }
.cc-add-form .btn { margin-left: 0; }

/* N порций (сколько нужно ингредиентов и денег) — внизу, сворачиваемый */
.cc-portions-section { margin-top: 8px; border: 1px solid #3a3f47; border-radius: 12px; overflow: hidden; }
.cc-portions-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #25282e; cursor: pointer; user-select: none; }
.cc-portions-header:hover { background: #2d3139; }
.cc-portions-header-title { display: flex; align-items: center; gap: 8px; color: #e4e6eb; font-size: 0.95rem; font-weight: 600; }
.cc-portions-header-sum { font-weight: 700; color: #ffc107; font-size: 1rem; }
.cc-portions-arrow { color: #9ca3af; font-size: 1.25rem !important; transition: transform 0.2s; }
.cc-portions-section--collapsed .cc-portions-body { display: none; }
.cc-portions-body { padding: 16px; background: #25282e; border-top: 1px solid #3a3f47; }
.cc-portions-desc { color: #9ca3af; font-size: 0.9rem; margin: 0 0 14px 0; line-height: 1.4; }
.cc-portions-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cc-portions-input-row label { color: #e4e6eb; font-size: 0.95rem; }
.cc-portions-input { width: 100px; padding: 8px 12px; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; font-size: 1rem; }
.cc-portions-input:focus { outline: none; border-color: #ffc107; }
.cc-portions-total-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 18px; background: #1a1d23; border: 1px solid #ffc107; border-radius: 10px; }
.cc-portions-total-label { color: #9ca3af; font-size: 0.95rem; }
.cc-portions-total-som { font-size: 1.35rem; font-weight: 700; color: #ffc107; }

/* Ingredients table */
.cc-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #3a3f47; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cc-table thead { background: #1a1d23; }
.cc-table th { padding: 12px 14px; text-align: left; color: #9ca3af; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid #3a3f47; white-space: nowrap; }
.cc-table td { padding: 10px 14px; border-bottom: 1px solid #3a3f47; color: #e4e6eb; }
.cc-td-num { width: 40px; color: #6b7280; text-align: center; }
.cc-td-name { font-weight: 500; min-width: 120px; }
.cc-td-unit { color: #9ca3af; font-size: 0.85rem; }
.cc-td-brutto { min-width: 140px; white-space: nowrap; }
.cc-brutto-input { width: 80px; padding: 6px 10px; border: 1px solid #3a3f47; border-radius: 6px; background: #25282e; color: #ffc107; font-size: 0.95rem; font-weight: 600; text-align: center; }
.cc-brutto-input:focus { outline: none; border-color: #ffc107; }
.cc-td-waste { white-space: nowrap; min-width: 100px; }
.cc-waste-input { width: 70px; padding: 6px 10px; border: 1px solid #3a3f47; border-radius: 6px; background: #25282e; color: #e4e6eb; font-size: 0.9rem; text-align: center; }
.cc-waste-input:focus { outline: none; border-color: #ffc107; }
.cc-td-waste span { color: #9ca3af; margin-left: 2px; font-size: 0.85rem; }
.cc-td-netto { text-align: right; }
.cc-netto-input { width: 80px; padding: 6px 10px; border: 1px solid #3a3f47; border-radius: 6px; background: #25282e; color: #81c784; font-size: 0.95rem; font-weight: 600; text-align: center; }
.cc-netto-input:focus { outline: none; border-color: #81c784; }
.cc-td-price { color: #9ca3af; text-align: right; white-space: nowrap; }
.cc-td-price small { color: #6b7280; }
.cc-td-cost { font-weight: 600; color: #ffc107; text-align: right; }
.cc-td-actions { text-align: center; }
.cc-del-btn { margin-left: 0 !important; }
.cc-total-label { font-weight: 600; color: #e4e6eb; }
.cc-total-brutto-weight, .cc-total-netto-weight { font-weight: 600; color: #9ca3af; text-align: right; }
.cc-total-cost { font-weight: 700; color: #ffc107; font-size: 1.05rem; text-align: right; }
.cc-table-excel th { text-align: right; }
.cc-table-excel th:first-child { text-align: left; }
.cc-table-excel .cc-th-brutto { text-align: center; }
.cc-table-excel .cc-th-waste { text-align: center; }
.cc-stock-warn .material-icons { font-size: 0.95rem !important; }
.cc-total-row { background: #1a1d23; }
.cc-total-row td { padding: 14px; font-weight: 600; border-top: 2px solid #ffc107; }
.cc-total-label { text-align: right; color: #e4e6eb; font-size: 0.95rem; }
.cc-total-cost { color: #ffc107; font-size: 1.15rem; }
.cc-total-weight { color: #9ca3af; font-size: 0.9rem; }
.cc-empty { padding: 24px; text-align: center; color: #9ca3af; font-size: 0.9rem; border: 1px dashed #3a3f47; border-radius: 12px; background: #1a1d23; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Margin cards */
.cc-margin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cc-margin-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #25282e; border-radius: 12px; border: 1px solid #3a3f47; }
.cc-mc-icon { color: #ffc107; flex-shrink: 0; }
.cc-mc-icon .material-icons { font-size: 1.4rem; }
.cc-mc-body { min-width: 0; }
.cc-mc-label { display: block; font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.cc-mc-value { display: block; font-size: 1.15rem; font-weight: 700; color: #e4e6eb; }
.cc-mc-value small { font-size: 0.8rem; font-weight: 400; color: #9ca3af; }
.cc-mc-cost .cc-mc-value { color: #ffb74d; }
.cc-mc-profit .cc-mc-value { color: #81c784; }
.cc-mc-markup .cc-mc-value { color: #64b5f6; }
.cc-mc-foodcost .cc-mc-value { color: #ce93d8; }
.cc-mc-margin .cc-mc-value { color: #4fc3f7; }

/* TTK block */
.cc-ttk-block { padding: 20px; }
.cc-ttk-block h3 { margin: 0 0 10px; font-size: 1rem; color: #ffc107; display: flex; align-items: center; gap: 8px; }
.cc-ttk-desc { margin: 0 0 16px; font-size: 0.88rem; color: #9ca3af; line-height: 1.45; }
.cc-ttk-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cc-ttk-row label { min-width: 160px; font-size: 0.9rem; color: #b0b4bb; }
.cc-ttk-input { width: 72px; padding: 8px 10px; border-radius: 8px; border: 1px solid #3a3f47; background: #25282e; color: #e4e6eb; font-size: 0.95rem; }
.cc-ttk-sum { font-weight: 600; color: #81c784; font-size: 0.95rem; }
.cc-ttk-total { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,193,7,0.25); font-size: 1.05rem; color: #e4e6eb; }
.cc-ttk-total strong { color: #ffc107; font-size: 1.15rem; }
.cc-ttk-apply { margin-top: 14px; }
.cc-ttk-apply .btn { margin-left: 0; }

/* Price calculator */
.cc-price-calc { padding: 20px; }
.cc-price-calc h3 { margin: 0 0 16px; font-size: 1rem; color: #ffc107; display: flex; align-items: center; gap: 8px; }
.cc-price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.cc-price-row label { min-width: 180px; color: #9ca3af; font-size: 0.9rem; }
.cc-price-input { width: 100px; }
.cc-price-result { font-size: 0.95rem; color: #e4e6eb; }
.cc-price-result strong { color: #81c784; font-size: 1.1rem; }

/* Actions */
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.cc-actions .btn { margin-left: 0; }

/* Analytics */
.cc-analytics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cc-analytics-card { padding: 0; overflow: hidden; }
.cc-analytics-card h4 { margin: 0; padding: 14px 18px; background: #1a1d23; border-bottom: 1px solid #3a3f47; font-size: 0.95rem; color: #ffc107; display: flex; align-items: center; gap: 8px; }
.cc-analytics-card h4 .material-icons { font-size: 1.1rem; }
.cc-analytics-card > div { padding: 14px 18px; max-height: 300px; overflow-y: auto; }
.cc-report-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 0.8fr; gap: 8px; padding: 8px 0; font-size: 0.75rem; color: #6b7280; text-transform: uppercase; border-bottom: 1px solid #3a3f47; margin-bottom: 6px; }
.cc-report-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 0.8fr; gap: 8px; padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid rgba(58,63,71,0.5); }
.cc-rr-name { color: #e4e6eb; font-weight: 500; }
.cc-rr-cost { color: #ffb74d; }
.cc-rr-price { color: #e4e6eb; }
.cc-rr-margin { color: #81c784; }
.cc-rr-fc { color: #ce93d8; }
.cc-top-item, .cc-lowstock-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(58,63,71,0.5); font-size: 0.85rem; color: #e4e6eb; }
.cc-lowstock-item { color: #ffb74d; }
.cc-no-data { color: #9ca3af; font-size: 0.9rem; padding: 12px 0; }
.cc-ok-msg { color: #81c784; display: flex; align-items: center; gap: 6px; }
.input-error { border-color: #f44336 !important; background: rgba(244,67,54,0.08) !important; }
@media (max-width: 640px) {
  .cc-margin-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-analytics-grid { grid-template-columns: 1fr; }
}

/* Бармен */
.bar-page .bar-card { padding: 24px; border-radius: 16px; border: 1px solid #3a3f47; margin-bottom: 20px; }
.bar-page .bar-card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.2rem; color: #e4e6eb; }
.bar-page .bar-icon { font-size: 1.35rem; color: #ffc107; }
.bar-intro { margin: 0 0 16px; font-size: 0.9rem; color: #9ca3af; }
.bar-table-wrap { overflow-x: auto; }
.bar-table { width: 100%; border-collapse: collapse; }
.bar-table th, .bar-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #3a3f47; }
.bar-table th { color: #888; font-weight: 600; font-size: 0.85rem; }
.bar-stock-qty, .bar-move-qty { font-weight: 500; color: #ffc107; }
.bar-date { font-size: 0.85rem; color: #9ca3af; }
.bar-load-form { max-width: 480px; }
.bar-form-row { margin-bottom: 14px; }
.bar-form-row label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: #9ca3af; }
.bar-form-row input, .bar-form-row select { width: 100%; max-width: 320px; padding: 10px 14px; border: 1px solid #3a3f47; border-radius: 8px; background: #1a1d23; color: #e4e6eb; font-size: 0.95rem; }
.bar-form-row input:focus, .bar-form-row select:focus { outline: none; border-color: #ffc107; }
.bar-form-row .btn { margin-right: 12px; }
.bar-load-err { margin-left: 8px; }
.badge.bar-move-in { background: #2e7d32; color: #fff; }
.badge.bar-move-out { background: #c62828; color: #fff; }
.bar-stats-card { margin-bottom: 20px; }
.bar-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 12px; }
.bar-stat-box { background: #1a1d23; border-radius: 10px; padding: 14px 18px; border: 1px solid #3a3f47; }
.bar-stat-box.bar-stat-alert { border-color: #ed6c02; background: rgba(237, 108, 2, 0.08); }
.bar-stat-label { display: block; font-size: 0.8rem; color: #9ca3af; margin-bottom: 4px; }
.bar-stat-value { font-size: 1.35rem; font-weight: 700; color: #ffc107; }
.bar-stat-alert .bar-stat-value { color: #ed6c02; }

/* ═══════════════════════════════════════════════════════
   MENU ADMIN — modal, table, toggles, photo, toast
   ═══════════════════════════════════════════════════════ */

/* ── overlay & modal ── */
.km-overlay {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65);
  padding: 24px;
  opacity: 0; transition: opacity 0.2s ease;
}
.km-overlay--open { opacity: 1; }
.km-modal {
  background: linear-gradient(180deg, #1e2128 0%, #1a1d23 100%);
  border-radius: 16px;
  border: 1px solid #3a3f47;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto;
  padding: 0;
}
.km-modal-header {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 24px 16px;
  font-size: 1.15rem; font-weight: 600; color: #ffc107;
  border-bottom: 1px solid #3a3f47;
}
.km-modal-header .material-icons { font-size: 1.3rem; }
.km-modal-close {
  margin-left: auto; background: none; border: none;
  color: #888; cursor: pointer; padding: 4px;
  border-radius: 6px; transition: background 0.15s;
}
.km-modal-close:hover { background: #3a3f47; color: #e4e6eb; }
.km-modal-footer {
  display: flex; gap: 12px; align-items: center;
  padding-top: 18px; margin-top: 8px;
  border-top: 1px solid #3a3f47;
}

/* ── form ── */
.km-form { padding: 20px 24px 24px; }
.km-field { margin-bottom: 16px; }
.km-field label { display: block; font-size: 0.85rem; font-weight: 500; color: #9ca3af; margin-bottom: 6px; }
.km-field input[type="text"],
.km-field input[type="number"],
.km-field select,
.km-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid #3a3f47; border-radius: 10px;
  background: #25282e; color: #e4e6eb;
  font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.km-field input:focus, .km-field select:focus, .km-field textarea:focus { border-color: #ffc107; }
.km-field textarea { resize: vertical; min-height: 56px; }
.km-field select { cursor: pointer; appearance: none; }

/* ── grid ── */
.km-row { display: flex; gap: 16px; }
.km-col { flex: 1; min-width: 0; }
@media (max-width: 600px) { .km-row { flex-direction: column; gap: 0; } }

.km-divider { height: 1px; background: #3a3f47; margin: 8px 0 16px; }

/* ── checkbox ── */
.km-checkbox-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: #e4e6eb; cursor: pointer;
  padding: 8px 0;
}
.km-checkbox-label input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: #ffc107; cursor: pointer;
}
.km-cooks-checkboxes { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.km-hint { font-size: 0.8rem; color: #6b7280; margin-top: 6px; }

/* ── photo ── */
.km-photo-area { display: flex; align-items: flex-start; gap: 16px; }
.km-photo-preview {
  width: 120px; height: 120px;
  border-radius: 12px; overflow: hidden;
  background: #25282e; border: 1px solid #3a3f47;
  display: flex; align-items: center; justify-content: center;
}
.km-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.km-photo-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #555; font-size: 0.75rem; }
.km-photo-icon { font-size: 2rem !important; color: #555; }
.km-photo-btn { cursor: pointer; align-self: center; }

/* ── final price display ── */
.km-final-display {
  padding: 10px 14px;
  background: rgba(255,193,7,0.08);
  border: 1px solid rgba(255,193,7,0.25);
  border-radius: 10px;
  font-size: 1.1rem; font-weight: 700;
  color: #ffc107;
}

/* ── error ── */
.km-err {
  color: #f44336; font-size: 0.9rem;
  margin-top: 12px; padding: 10px 14px;
  background: rgba(244,67,54,0.08);
  border-radius: 8px;
}

/* ── toast ── */
.km-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 12px 24px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 500;
  z-index: 1200; pointer-events: none;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.km-toast--ok { background: #2e7d32; color: #fff; }
.km-toast--err { background: #c62828; color: #fff; }
.km-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── table ── */
.km-table-wrap { overflow-x: auto; }
.km-table-wrap table { min-width: 800px; }
.km-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.km-no-photo { font-size: 0.8rem; color: #555; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #25282e; border-radius: 8px; }
.km-photo-cell { width: 64px; min-width: 64px; }
.km-dish-name { font-weight: 500; }
.km-dish-name-cell { cursor: pointer; }
.km-dish-name-cell:hover { color: #ffc107; }
.km-cat-row { cursor: pointer; transition: background 0.15s; }
.km-cat-row:hover { background: rgba(255,193,7,0.08); }
.km-dish-row { cursor: pointer; transition: background 0.15s; }
.km-dish-row:hover { background: rgba(255,193,7,0.08); }
.km-dish-desc { font-size: 0.8rem; color: #888; line-height: 1.3; }
.km-old-price { text-decoration: line-through; color: #888; font-size: 0.85rem; margin-right: 4px; }
.km-final-price { font-weight: 600; color: #e4e6eb; }
.km-stock-ok { color: #2e7d32; font-weight: 500; font-size: 0.85rem; }
.km-stock-warn { color: #c62828; font-weight: 500; font-size: 0.85rem; }
.km-actions { white-space: nowrap; }

/* ── toggle button ── */
.km-toggle {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; border: 1px solid #3a3f47;
  background: #25282e; color: #888;
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.km-toggle:hover { border-color: #ffc107; }
.km-toggle--on { background: rgba(46,125,50,0.15); color: #4caf50; border-color: #4caf50; }

/* ── badges ── */
.badge-bar { background: #1565c0; color: #fff; }
.badge-kitchen { background: #5d4037; color: #fff; }
.badge-discount { background: #c62828; color: #fff; font-size: 0.7rem; padding: 1px 6px; }

/* ── hidden/unavailable rows ── */
.km-row-hidden { opacity: 0.7; }
.km-row-hidden .km-dish-name { text-decoration: line-through; }
.km-row-unavail { background: rgba(198,40,40,0.04); }

@media (max-width: 640px) {
  .km-overlay { padding: 12px; }
  .km-modal { max-height: 85vh; }
  .km-form { padding: 16px; }
  .km-modal-header { padding: 16px; }
}
