/* Экомир — дополнения к UI-киту (ecomir-dashboard.css) */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.login-card {
  width: 100%;
  max-width: 400px;
}
.login-brand.brand--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.login-brand-sub {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}
.brand-logo {
  height: 38px;
  width: auto;
  max-width: 100%;
  display: block;
}
.login-brand .brand-logo {
  height: 44px;
}
.brand--sidebar {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  width: calc(100% + 40px);
  height: var(--shell-header-height);
  min-height: var(--shell-header-height);
  max-height: var(--shell-header-height);
  box-sizing: border-box;
  margin: 0 -20px;
  padding: 0 20px !important;
  background: #fff;
  border-bottom: 1px solid rgba(22, 36, 28, 0.08);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar .brand-logo {
  height: 36px;
}
.sidebar .brand-logo-wrap {
  display: block;
  background: transparent;
  border-radius: 0;
  padding: 0;
  line-height: 0;
  box-shadow: none;
}
.sidebar .brand-sub {
  padding-left: 2px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.2;
}
.sidebar .sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--dark-green-3);
  background: rgba(22, 36, 28, 0.06);
}
.login-title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.login-lead {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.45;
}
.login-form-inner .field {
  margin-bottom: 16px;
}
.btn-block-login {
  width: 100%;
  margin-top: 4px;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.alert-success {
  background: #e2f3e6;
  color: var(--success);
  border: 1px solid #c5e6cf;
}
.alert-danger {
  background: #fbe7e5;
  color: var(--danger);
  border: 1px solid #f0ccc8;
}

.inline-form {
  display: inline;
  margin: 0;
}

.topbar-title {
  flex: 1;
  max-width: none;
}
.topbar-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.app-section {
  scroll-margin-top: 88px;
}
.app-section + .app-section {
  margin-top: 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.section-actions--dock {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width, 272px);
  right: 0;
  z-index: 35;
  margin: 0;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(20, 40, 26, 0.08);
  backdrop-filter: blur(10px);
  transition: left 0.24s ease;
}

.has-docked-actions {
  padding-bottom: 72px;
}

@media (max-width: 980px) {
  .section-actions--dock {
    left: 0;
  }
}

.warehouse-row-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.warehouse-row-form:last-child {
  border-bottom: none;
}
.warehouse-name {
  min-width: 160px;
  font-weight: 700;
  font-size: 14px;
}

.warehouse-messenger-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}
.warehouse-messenger-inline label.warehouse-messenger-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.warehouse-messenger-inline label.warehouse-messenger-label:hover {
  background: var(--surface-2);
}
.warehouse-messenger-inline label.warehouse-messenger-label:has(input:checked) {
  background: var(--lime-light);
  border-color: var(--lime-2);
}

.warehouse-row-form .input {
  max-width: 200px;
  min-width: 140px;
  flex: 1;
}

.status-ok {
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
}
.status-warn {
  color: var(--warning);
  font-weight: 700;
  font-size: 13px;
}

.user-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 16px;
  background: var(--lime-light-2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.user-stats-bar strong {
  color: var(--text);
}

.empty-note {
  font-size: 14px;
  color: var(--text-soft);
  padding: 8px 0;
}

/* Таблицы: вложенные формы */
.user-table .input {
  min-width: 120px;
  padding: 8px 10px;
  font-size: 13px;
}
.user-table .btn-icon {
  padding: 6px 10px;
  min-width: auto;
}

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  filter: brightness(1.05);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  filter: brightness(1.05);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  vertical-align: middle;
}
.channel-badge .channel-icon-svg,
.channel-badge .channel-icon-tg-img {
  display: block;
  flex-shrink: 0;
}
.channel-badge .channel-icon-img {
  display: block;
  flex-shrink: 0;
  height: 18px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
}

/* Совместимость */
.message.success { background: #e2f3e6; color: var(--success); padding: 12px 14px; border-radius: var(--radius-sm); }
.message.error { background: #fbe7e5; color: var(--danger); padding: 12px 14px; border-radius: var(--radius-sm); }
.container { display: contents; }
