/* UtilBase — компактные формы (язык «Быстрой заявки») */

.ub-form-page {
  max-width: 1100px;
}

.ub-form-page > .ub-form-lead {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.ub-form-section {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  background: #ffffff;
}

.ub-form-section .card-header {
  background: #f8fafb;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.5rem 1rem;
}

.ub-form-section .card-body {
  padding: 1rem;
}

.ub-form-section .form-label {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
  color: #495057;
}

.ub-form-section .form-text,
.ub-form-section small.text-muted {
  font-size: 0.75rem;
}

.ub-form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.75rem 0;
}

.ub-form-divider::before,
.ub-form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

.ub-form-footer {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ub-form-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.ub-form-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.ub-form-chip i {
  font-size: 1.25rem;
  opacity: 0.85;
}

.ub-form-chip span {
  font-weight: 600;
  font-size: 0.95rem;
}

.ub-form-chip small {
  color: #6c757d;
  font-size: 0.75rem;
}

.ub-form-chip:hover {
  border-color: #adb5bd;
  background: #f8f9fa;
}

.ub-form-chip.active[data-type="emergency"] {
  border-color: #dc3545;
  background: #fff5f5;
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25);
}

.ub-form-chip.active[data-type="repair"] {
  border-color: #fd7e14;
  background: #fff8f0;
  box-shadow: 0 0 0 1px rgba(253, 126, 20, 0.25);
}

.ub-form-chip.active[data-type="planned"] {
  border-color: #198754;
  background: #f0faf4;
  box-shadow: 0 0 0 1px rgba(25, 135, 84, 0.25);
}

.ub-form-known-panel {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #f0faf4;
  border: 1px solid rgba(25, 135, 84, 0.2);
}

/* Alias для существующей быстрой заявки */
.req-quick-create {
  max-width: 1100px;
}

.req-quick-section .card-header {
  background: #f8fafb;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.req-type-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.req-type-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.req-type-chip i {
  font-size: 1.25rem;
  opacity: 0.85;
}

.req-type-chip span {
  font-weight: 600;
  font-size: 0.95rem;
}

.req-type-chip small {
  color: #6c757d;
  font-size: 0.75rem;
}

.req-type-chip:hover {
  border-color: #adb5bd;
  background: #f8f9fa;
}

.req-type-chip.active[data-type="emergency"] {
  border-color: #dc3545;
  background: #fff5f5;
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25);
}

.req-type-chip.active[data-type="repair"] {
  border-color: #fd7e14;
  background: #fff8f0;
  box-shadow: 0 0 0 1px rgba(253, 126, 20, 0.25);
}

.req-type-chip.active[data-type="inspection"] {
  border-color: #0dcaf0;
  background: #f0fbff;
  box-shadow: 0 0 0 1px rgba(13, 202, 240, 0.25);
}

.req-type-chip.active[data-type="commercial"] {
  border-color: #0d6efd;
  background: #f0f5ff;
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.25);
}

.req-type-chip.active[data-type="planned"] {
  border-color: #198754;
  background: #f0faf4;
  box-shadow: 0 0 0 1px rgba(25, 135, 84, 0.25);
}

.req-quick-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.req-quick-divider::before,
.req-quick-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

.req-quick-footer {
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}

.req-known-panel {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #f0faf4;
  border: 1px solid rgba(25, 135, 84, 0.2);
}

@media (max-width: 768px) {
  .req-type-chips,
  .ub-form-chips {
    grid-template-columns: 1fr;
  }
}

.ub-worker-photo-box {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  overflow: hidden;
  background: #e9ecef;
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ub-worker-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ub-worker-photo-placeholder {
  font-size: 3.25rem;
  color: #adb5bd;
  line-height: 1;
}
