/* ══════════════════════════════════════════════════════════════════
   Manuals module — local styles
   ══════════════════════════════════════════════════════════════════ */

/* Required-field asterisk */
.required { color: #dc2626; font-weight: 700; }

/* Form hint text */
.form-hint { color: var(--text-light); }

/* Department / branch chips in the table */
.chip {
  display: inline-block;
  padding: 2px 8px;
  margin: 1px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary, #0a3d47);
  background: #EBF2F0;
  border: 1px solid #cfe3df;
  border-radius: 999px;
  white-space: nowrap;
}

/* File upload area */
.file-upload-area {
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius, 8px);
  background: #f8fafc;
  transition: border-color .15s, background .15s;
}
.file-upload-area:hover { border-color: #2E5E5A; background: #f1f7f6; }
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
}

/* Toggle switch (Show in Staff Portal) */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  vertical-align: middle;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .2s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .slider { background: #2E5E5A; }
.switch input:checked + .slider::before { transform: translateX(18px); }
