/* ============================================================
   ALJAWAL CAR - Utilities
   ============================================================ */

/* ── Display ── */
.hidden {
    display: none !important;
}

.d-inline-block {
    display: inline-block;
}

.overflow-x-auto {
    overflow-x: auto;
}

.display-contents {
    display: contents;
}

/* ── Width ── */
.w-full {
    width: 100%;
}

/* ── Text Alignment ── */
.text-center {
    text-align: center;
}

/* ── Flex ── */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.flex-1-no-min {
    flex: 1;
    min-width: 0;
}

.flex-wrap-gap {
    gap: 4px;
    flex-wrap: wrap;
}

.flex-gap-4 {
    gap: 4px;
    flex-shrink: 0;
}

.flex-center-8 {
    align-items: center;
    gap: 8px;
}

.flex-center-12 {
    align-items: center;
    gap: 12px;
}

/* ── Gap ── */
.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

/* ── Margin Top ── */
.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

/* ── Margin Bottom ── */
.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

/* ── Padding ── */
.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

/* ── Typography ── */
.text-sm {
    margin: 0;
    font-size: var(--fs-sm);
}

.text-sm-muted {
    font-size: var(--fs-sm);
    color: var(--text-2);
}

.text-sm-2 {
    color: var(--text-2);
    font-size: var(--fs-sm);
}

.text-muted {
    color: var(--text-3);
}

.text-muted-sm {
    color: var(--text-muted);
    font-size: 13px;
}

.text-muted-xs {
    color: var(--text-3);
    font-size: 12px;
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-gold {
    color: var(--gold, #F5B800);
}

.font-mono-sm {
    font-family: monospace;
    font-size: 12px;
}

.code-display {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* ── State ── */
.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Grid helpers ── */
.col-full {
    grid-column: 1 / -1;
}

/* ── Checkbox ── */
.checkbox-row {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
}

/* ── Label variants ── */
.label-xs {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 3px;
}

.label-bold {
    font-weight: 600;
}

.label-inline {
    margin: 0;
    font-weight: normal;
}

/* ── Stat mini ── */
.stat-mini {
    padding: 6px 14px;
    border: 1px solid var(--border, #ccc);
    background: var(--surface, #fff);
    font-size: var(--fs-sm);
    border-radius: var(--radius-s, 4px);
}

.stat-mini span {
    font-weight: 700;
    font-size: var(--fs-base);
    margin-right: 4px;
}

/* ── Table helpers ── */
.row-actions-nowrap {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

/* ── Section Title ── */
.section-title {
    font-size: var(--fs-base);
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

/* ── Detail Grid ── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-grid>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Inline Edit ── */
.inline-edit-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.inline-edit-row .form-input {
    flex: 1;
    min-width: 120px;
}

/* ── Misc ── */
.btn-mr-2 {
    margin-right: 8px;
}

.spinner-centered {
    margin: 0 auto;
}

.spinner-mb {
    margin-bottom: 12px;
}

.cursor-zoom {
    cursor: zoom-in;
}

.vehicle-item-cursor {
    cursor: pointer;
}

.select-auto {
    width: auto;
}

/* ── Ticker body offset ── */
body:has(#ticker-bar) {
    padding-bottom: 44px;
}