/**
 * Treatments Module
 * - Split buttons and deepR sub-controls
 */

.treatment-split-button {
  display: flex;
  flex-direction: row;
  background: var(--rd-surface);
  border-radius: calc(var(--rd-radius) * .6);
  border: 1px solid var(--rd-border);
  overflow: hidden;
  box-shadow: var(--rd-elev-ring);
  transition: var(--transition-normal);
}

.treatment-option { flex: 1; padding: 0.75rem 1rem; cursor: pointer; transition: var(--transition-normal); position: relative; background: #edefff !important; }
.treatment-option:hover { background: rgba(255, 255, 255, 0.9) !important; }
.treatment-option .treatment-content { color: var(--text-secondary); }
.treatment-option .treatment-content i { color: var(--text-secondary); }
.treatment-option:hover .treatment-content { color: var(--text-primary); }
.treatment-option:hover .treatment-content i { color: var(--text-primary); }
.treatment-option.active { background: var(--primary) !important; border-top: 3px solid var(--primary-dark); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.treatment-option.active .treatment-content { color: white; font-weight: 600; }
.treatment-option.active .treatment-content i { color: white; }
.treatment-option.disabled { background: var(--surface-muted); cursor: not-allowed; opacity: 0.5; }
.treatment-option.disabled:hover { background: var(--surface-muted); }
.treatment-option.disabled .treatment-content, .treatment-option.disabled .treatment-content i { color: var(--text-disabled); }

.deepr-sub-buttons { position: absolute; right: 0; top: 0; bottom: 0; width: 28px; display: none; flex-direction: column; background: rgba(0, 0, 0, 0.1); border-left: 1px solid rgba(255, 255, 255, 0.2); }
.treatment-option.active .deepr-sub-buttons { display: flex; }
.deepr-sub-btn { flex: 1; background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.9); cursor: pointer; transition: all 0.2s ease; padding: 0; display: flex; align-items: center; justify-content: center; line-height: 1; }
.deepr-sub-btn:last-child { border-bottom: none; }
.deepr-sub-btn:hover { background: rgba(255, 255, 255, 0.15); color: white; }
.deepr-sub-btn:active { background: rgba(255, 255, 255, 0.25); }
.deepr-sub-btn.active { background: var(--primary-dark); color: white; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); }
.deepr-sub-btn.active:hover { background: var(--primary-dark); }
.treatment-option.active .deepr-sub-btn:not(.active) { background: rgba(255, 255, 255, 0.8); color: var(--text-secondary); }
.treatment-option.active .deepr-sub-btn:not(.active):hover { background: rgba(255, 255, 255, 0.9); color: var(--text-primary); }
.deepr-sub-btn.critical-warning { position: relative; }
.deepr-sub-btn.critical-warning::after { content: ''; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; background: #ef4444; border: 2px solid white; border-radius: 50%; animation: none; z-index: 5; pointer-events: none; }

.treatment-option.disabled .deepr-sub-buttons { display: none; }
.treatment-divider { width: 1px; background: var(--rd-border); margin: 0; }
.treatment-content { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font-size: 0.9rem; transition: var(--transition-normal); }
.treatment-option[data-treatment="deepRHardening"].active .treatment-content { padding-right: 32px; }
.treatment-name { font-weight: 500; text-align: center; }



