﻿.mw-30 {
    max-width: 30rem !important;
}

.mw-35 {
    max-width: 35rem !important;
}

.mw-40 {
    max-width: 40rem !important;
}

mh-35 {
    max-height: 35rem !important;
}

.no-hover:focus, .no-hover:hover {
    background-color: transparent;
}

.toast-container > :not(:last-child) {
    margin-bottom: .5rem;
}

.markdown > table thead th, .table thead th {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

/* No header → round top of table */
.card:not(:has(.card-header)) .table-responsive {
    border-radius: var(--tblr-card-border-radius) var(--tblr-card-border-radius) 0 0;
}

/* No footer → round bottom of table */
.card:not(:has(.card-footer)) .table-responsive {
    border-radius: 0 0 var(--tblr-card-border-radius) var(--tblr-card-border-radius);
}

/* Neither header nor footer → full radius */
.card:not(:has(.card-header)):not(:has(.card-footer)) .table-responsive {
    border-radius: var(--tblr-card-border-radius);
}

/* ── Remove last row bottom border ── */
.card:not(:has(.card-footer)) .table-responsive .table > tbody > tr:last-child > td,
.card > .table-responsive:last-child .table > tbody > tr:last-child,
.modal-body:has(.table-responsive) .card:not(:has(.card-footer)) .table-responsive .table > tbody > tr:last-child,
.modal-body:has(.table-responsive) .card:not(:has(.card-footer)) .table-responsive .table > tbody > tr:last-child > td,
.modal-body:has(> .table-responsive) .table > tbody > tr:last-child,
.modal-body:has(> .table-responsive) .table > tbody > tr:last-child > td,
.accordion-body:has(.table-responsive) .table > tbody > tr:last-child,
.accordion-body:has(.table-responsive) .table > tbody > tr:last-child > td,
.card:not(:has(.card-footer)) .list-group.list-group-flush {
    border-bottom-width: 0;
}

.modal-body:has(.table-responsive), .modal-body:has(.list-group-flush), .accordion-body:has(.table-responsive) {
    padding: 0;
}

/* Credit report PDF preview — keep modal padding (flush rule above is for datatable/list modals). */
#creditPreviewModal .modal-body,
#conditionPreviewModal .modal-body {
    padding: var(--tblr-modal-padding);
}

.accordion-body:has(.table-responsive) {
    border-top: var(--tblr-card-border-width) solid var(--tblr-card-border-color);
}

.modal-content-body:has(.placeholder-glow) {
    padding: var(--tblr-modal-padding);
}

.modal-body:has(.placeholder-glow) {
    padding: var(--tblr-modal-padding);
}

.table td.fit, .table th.fit {
    white-space: nowrap;
    width: 1%;
}

.table .handle {
    padding: .5rem !important;
}

.rounded-bottom {
    border-bottom-right-radius: 7px !important;
    border-bottom-left-radius: 7px !important;
}

.dropdown-menu {
    max-height: 25rem;
    overflow: auto;
}

.card-actions {
    margin: 0;
    margin-left: auto;
}

.chat-bubbles {
    gap: .5rem;
}

.condition-card--library .remove-btn svg {
    width: 1rem;
    height: 1rem;
}

.form-control-sm, .form-select-sm {
    font-size: inherit;
}

.avatar {
    border: 0;
}

.mylease-accordion-no-chevron .accordion-button::after,
.mylease-accordion-no-chevron .accordion-button-toggle {
    display: none !important;
}

.mylease-accordion-no-chevron .accordion-item:first-child {
    border-top: var(--tblr-border-width) solid var(--tblr-accordion-border-color) !important;
}

.card.card-sm .table td,
.card.card-sm .table th,
.card.card-sm .accordion-button,
.card.card-sm .list-group-item {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

/* Integer/decimal fields use type="text" + inputmode — hide spinners if type="number" slips in */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}