/* Gina-wide form density. The Terms screen's sizing is the canonical scale —
   every Gina window opts in with these classes instead of per-screen overrides. */

.gina-panel {
    padding: 0.35rem 0.4rem 0.75rem;
    font-size: 0.72rem;
}

/* Bootstrap's form-control-sm is roomier than it looks, so squeeze inputs and
   selects screen-wide to fit whole windows without scrolling. */
.gina-panel .form-control,
.gina-panel .form-select {
    font-size: 0.72rem;
    padding: 0.08rem 0.4rem;
    min-height: 0;
    height: auto;
    line-height: 1.35;
}

.gina-panel .form-select {
    padding-right: 1.4rem;
    background-position: right 0.35rem center;
}

/* Buttons and addons inside input groups (date pickers, calculators, sparkles)
   get the same squeeze so their rows match plain-input rows. */
.gina-panel .input-group .btn,
.gina-panel .input-group .input-group-text {
    font-size: 0.72rem;
    padding: 0.08rem 0.4rem;
    min-height: 0;
    line-height: 1.35;
}

.gina-panel .form-check {
    font-size: 0.72rem;
    line-height: 1.35;
}

/* Bootstrap row/col form screens (Property, Parties) — labels match the grids. */
.gina-panel .col-form-label,
.gina-panel .col-form-label-sm {
    font-size: 0.7rem;
    color: var(--falcon-700);
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

/* Tab strips inside a window (Parties, Property, credit bureaus). */
.gina-tabs .nav-link {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
}

/* Compact standalone button (Pick, Change, feature openers). */
.gina-btn {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    line-height: 1.35;
    white-space: nowrap;
}

.gina-section-bar {
    background: var(--falcon-700, #5e6e82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    margin: 0 0 0.35rem;
}

.gina-section-bar--mid {
    margin-top: 0.5rem;
}

/* Compact two-column label/input grid. Screens tune the label column with
   --gina-label-w rather than diverging on grid definitions. */
.gina-grid {
    display: grid;
    grid-template-columns: var(--gina-label-w, 8.25rem) 1fr;
    gap: 0.1rem 0.35rem;
    align-items: center;
}

.gina-grid > label {
    font-size: 0.7rem;
    color: var(--falcon-700);
    text-align: right;
    margin: 0;
}

.gina-grid > label.gina-link {
    color: var(--falcon-primary);
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
}

.gina-grid > label.gina-link:hover {
    color: var(--falcon-blue, #0a58ca);
}

/* Every single-value input fills its grid cell so inputs are uniform width
   across columns; inputs sharing a row flex beside their suffix or button. */
.gina-grid > .combobox-container,
.gina-grid > .combobox-container .input-group,
.gina-grid > .d-flex {
    min-width: 0;
    width: 100%;
}

.gina-grid > .d-flex > .combobox-container {
    flex: 1 1 auto;
    min-width: 0;
}

/* Dense input tables (Closing matrices). Scoped under .gina-panel so the cell
   padding beats Bootstrap's .table > :not(caption) > * > * without !important. */
.gina-panel .gina-matrix td,
.gina-panel .gina-matrix th {
    padding: 2px 4px;
    vertical-align: middle;
}

.gina-panel .gina-matrix .form-control,
.gina-panel .gina-matrix .form-select {
    padding: 1px 4px;
    height: auto;
}

@media (max-width: 575.98px) {
    .gina-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .gina-grid > label {
        text-align: left;
    }
}
