.rashed-scan-page .rashed-camera-wrap {
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rashed-camera, .rashed-preview {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.rashed-scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rashed-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rashed-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .85rem;
}
.rashed-form-grid input {
  padding: 8px 10px;
  border: 1px solid #d5dae3;
  border-radius: 8px;
}

.rashed-status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f4f6fb;
  font-size: .9rem;
}
.rashed-status.is-error { background: #fef2f2; color: #b91c1c; }
.rashed-status.is-success { background: #ecfdf5; color: #047857; }

.rashed-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rashed-tab {
  border: 1px solid #d5dae3;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: .9rem;
}
.rashed-tab.is-active {
  background: #f59e0b;
  border-color: #f59e0b;
  font-weight: 600;
}
.rashed-tab-panel { display: none; }
.rashed-tab-panel.is-active { display: block; }

.rashed-muted { color: #5c6370; margin: 0 0 12px; }
.rashed-form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rashed-form-full { grid-column: 1 / -1; }

.rashed-validation-box { margin-bottom: 12px; }
.rashed-validation {
  border-radius: 10px;
  padding: 12px;
  font-size: .9rem;
}
.rashed-validation.is-valid { background: #ecfdf5; color: #047857; }
.rashed-validation.is-invalid { background: #fef2f2; color: #b91c1c; }
.rashed-validation.is-neutral { background: #f4f6fb; color: #374151; }
.rashed-validation ul { margin: 8px 0 0; padding-right: 18px; }

.rashed-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .8rem;
  background: #eef1f6;
}
.rashed-badge-ok { background: #d1fae5; color: #065f46; }
.rashed-badge-bad { background: #fee2e2; color: #991b1b; }

.rashed-btn-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
  padding: 6px 10px;
  font-size: .85rem;
}

.rashed-archive-table tr.is-voided td {
  text-decoration: line-through;
  opacity: .65;
}

.rashed-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  white-space: nowrap;
}
.rashed-btn-small {
  padding: 5px 8px;
  font-size: .8rem;
}

.rashed-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rashed-modal[hidden] { display: none !important; }
.rashed-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.rashed-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow: auto;
  z-index: 1;
}

@media (max-width: 560px) {
  .rashed-form-grid { grid-template-columns: 1fr; }
}