/* Utility Classes */

/* Spacing */
.ess-spacer-xs {
    height: 4px;
    clear: both;
}

.ess-spacer-sm {
    height: 8px;
    clear: both;
}

.ess-spacer-md {
    height: 16px;
    clear: both;
}

.ess-spacer-lg {
    height: 24px;
    clear: both;
}

.ess-spacer-xl {
    height: 32px;
    clear: both;
}

/* Clearfix */
.ess-clearfix {
    clear: both;
}

.ess-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Card Elevation */
.ess-card-elevated {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.ess-card-elevated-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ess-card-elevated-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

/* Display */
.ess-block {
    display: block;
}

.ess-inline-block {
    display: inline-block;
}

.ess-flex {
    display: flex;
}

.ess-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Width */
.ess-w-full {
    width: 100%;
}

.ess-w-auto {
    width: auto;
}

/* Common fixed widths for form fields */
.ess-w-120 {
    width: 120px;
}

.ess-w-150 {
    width: 150px;
}

.ess-w-180 {
    width: 180px;
}

.ess-w-200 {
    width: 200px;
}

/* Text */
.ess-text-error {
    color: #dc2626;
}

.ess-text-success {
    color: #16a34a;
}

.ess-text-warning {
    color: #ca8a04;
}

.ess-text-muted {
    color: #6b7280;
}

/* Loading Overlay (Processing State) */
.ess-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
