/* SladMir — extracted from styles.css → Shared base / utilities. Do not edit styles.css for new rules. */
@import url("/css/shared/ui-states.css?v=20260722deploy1315");
@import url("/css/shared/ui-tokens.css?v=20260722deploy1315");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 20px 0 90px;
}

.page-title {
  margin: 0 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.required-mark {
  color: #dc2626;
  font-weight: 700;
}

input,
select,
textarea,
button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.muted {
  color: var(--muted);
}

.card-select {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-select input {
  width: 14px;
  height: 14px;
  margin: 0;
}

body.order-pick-open {
  overflow: hidden;
}

body.pick-waybill-open {
  overflow: hidden;
}

body.mini-client-cabinet #mini-support-section,
body.mini-client-cabinet #mgr-support-open-btn {
  display: none !important;
}

.switch-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.switch-track--warn {
  background: #fecaca;
}

.switch-input:checked + .switch-track--warn {
  background: #f97316;
}

.actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actions-row > button {
  width: auto;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #111827;
  font-size: 13px;
}

.switch-text {
  color: #111827;
}

.switch {
  position: relative;
  width: 33px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.switch-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(to bottom, #c92933 0%, #b41f29 100%);
  border: 2px solid #7a7a7a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

.switch-thumb {
  position: absolute;
  top: 50%;
  left: 1px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #dddddd 78%, #c8c8c8 100%);
  border: 1px solid #bfbfbf;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: left 0.2s ease;
}

.switch-input:checked + .switch-track {
  background: linear-gradient(to bottom, #28c238 0%, #1fad2f 100%);
}

.switch-input:checked + .switch-track .switch-thumb {
  left: 16px;
}
