﻿/* Applies to ANY density class */
.cruder-density-compact .mud-input-control,
.cruder-density-compact .mud-input,
.cruder-density-compact .mud-input-slot,
.cruder-density-compact .mud-input-root,
.cruder-density-compact input.mud-input-root {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Extreme density — same padding (or adjust if needed) */
.cruder-density-extreme .mud-input-control,
.cruder-density-extreme .mud-input,
.cruder-density-extreme .mud-input-slot,
.cruder-density-extreme .mud-input-root,
.cruder-density-extreme input.mud-input-root {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

.cruder-density-extreme
.mud-input-control-input-container > .mud-input:not(.mud-shrink) + .mud-input-label {
    /* Centered state corrections */
    transform: translateY(.3rem) scale(1) !important; /* tweak value */
    left: 12px !important; /* tweak X if needed */
}