/* ============================================================
   DIPON STUDIO NEXT-GEN — Smart Inspector Styles
   Precision millimeter property controls & alerts
   ============================================================ */

.inspector-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.panel-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hardware Guard Status Card */
.guard-status-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
}

.guard-status-card.safe {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.guard-status-card.danger {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.4);
}

.guard-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.06em;
}

.guard-badge.danger {
  color: #fda4af;
}

.guard-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guard-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.guard-indicator.safe {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.guard-indicator.danger {
  background: #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.8);
}

.guard-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.inspector-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.card-label {
  color: var(--text-secondary);
}

.card-value {
  color: var(--text-primary);
  font-weight: 600;
}

.card-value.highlight {
  color: var(--accent);
}

.inspector-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-heading {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Margin Inputs Grid */
.margin-grid-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.margin-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  gap: 6px;
}

.margin-input-wrap label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 36px;
}

.margin-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 4px 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.margin-input-wrap span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Coordinate Inputs Grid in Pure MM */
.coord-grid-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.coord-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.coord-field label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.input-with-unit {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  min-height: 34px;
  gap: 6px;
}

.input-with-unit input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 4px 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.input-with-unit span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}

/* Warning Callout */
.warning-callout {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.warn-icon {
  font-size: 1.25rem;
}

.warn-text b {
  font-size: 0.86rem;
  color: #fda4af;
  display: block;
}

.warn-text p {
  font-size: 0.78rem;
  color: #fecdd3;
  line-height: 1.4;
  margin-top: 3px;
}

/* Actions list */
.inspector-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

/* ============================================================
   Auto-Pack (Nesting) & Paper Efficiency Inspector Styles
   ============================================================ */
.auto-pack-card {
  background: linear-gradient(135deg, rgba(212, 169, 106, 0.08) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(212, 169, 106, 0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.auto-pack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}

.auto-pack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auto-pack-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-pack-execute {
  background: linear-gradient(135deg, #d4a96a 0%, #b8860b 100%);
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 169, 106, 0.3);
  transition: all 0.15s ease;
}

.btn-pack-execute:hover {
  background: linear-gradient(135deg, #e5be82 0%, #d4a96a 100%);
  box-shadow: 0 4px 14px rgba(212, 169, 106, 0.45);
  transform: translateY(-1px);
}

.btn-pack-execute:active {
  transform: translateY(0);
}

.pack-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Efficiency Meter */
.efficiency-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.efficiency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.efficiency-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.86rem;
  color: #10b981;
}

.efficiency-track {
  width: 100%;
  height: 7px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.efficiency-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 100%);
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.efficiency-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.76rem;
}

.eff-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eff-stat-item .stat-lbl {
  color: var(--text-muted);
}

.eff-stat-item .stat-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.eff-stat-item .stat-val.green {
  color: #34d399;
}

/* Cashier Quick Card */
.billing-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.billing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.billing-total-preview {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.btn-open-cashier {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-open-cashier:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

