/* ==========================================================================
   bootstrap5-shims.css — the class vocabulary this application authors that
   Bootstrap 5 does not define, or sizes differently: the Bootstrap 3 → 5 bridge.
   --------------------------------------------------------------------------
   WHAT IT MAPS — three jobs:
     · TRUE SHIMS — classes Bootstrap 5 removed that the estate still authors:
       `.form-inline` (+ its control / button / input-group / checkbox children)
       and `.input-group-addon`. Without these the markup renders unstyled.
     · SIZE OVERRIDES — the application's 12px-dense form scale over Bootstrap
       5's defaults: `.form-control`, `.form-control-sm`, `.form-select(-sm)`,
       `.input-group-sm > *`, `.input-group .btn`, `.btn-sm`,
       `.btn-outline-secondary`, `.modal-*`, `.dropdown-menu`,
       `.dropdown-item`, `.table-responsive`, `.table-forms`,
       `.fade:not(.show)`, `.modal-backdrop`.
     · CARD / DASHBOARD VOCABULARY — `.card`, `.card-header` (+ h2 / button),
       `.desc`. `.card` COLLIDES with Bootstrap's own `.card` and must keep
       winning.

   LINK ORDER — LOAD-BEARING. Every rule here exists to BEAT
   `lib-v2\bootstrap\css\bootstrap.min.css`. `_Meta` and `_AuthMeta` link this
   sheet after that file (and immediately before `legacy-chrome.css`); link it
   earlier and `.form-control`, `.btn-sm`, `.card`, `.modal-*` and
   `.dropdown-item` all silently revert to stock Bootstrap. `_MobileLayout`
   does not link it.

   DEPENDENCIES: none — raw values throughout.

   NOT HERE: `.btn-block`, a further removed class, is currently declared in
   `lib-v2\css\entry-form.css`.
   ========================================================================== */

.form-control {
    padding: 3px 0.75rem;
    font-size: 12px;
}

.input-group-sm > .btn, .input-group-sm > .form-control {
    font-size: 12px;
    border-radius: .2rem;
    padding: 3px 10px;
}

.btn-sm {
    /*    padding: 2px 3px !important;*/
    border-radius: .2rem !important;
    font-size: 12px;
}

.btn-outline-secondary {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #000000;
    border-color: #d1d5db;
    background: #ffffff;
}

.input-group .btn {
    z-index: 0;
}

.btn-outline-secondary:hover {
    background-color: #f9fafb;
    color: #111827;
    border-color: #9ca3af;
}

.desc {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    height: 26px;
}

.card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    padding: 5px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-header h2 {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0;
        color: #111827;
    }

.card-header button {
        background: none;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        font-size: 1rem;
        padding: 0;
    }

.card-header button:hover {
            color: #6b7280;
        }

.form-select-sm {
    padding: 2px 0.75rem;
}

.modal-body {
    padding: 5px 10px;
}

.modal-header {
    padding: 5px 10px;
}

.modal-footer {
    padding: 5px 10px;
}

.modal-header .btn-close {
    padding: 5px;
    margin: 0px;
    font-size: 12px;
}

.table-responsive {
    height: 100%;
}

.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dropdown-item.active, .dropdown-item:active {
    color: #16a34a;
    background-color: #f3f4f6;
}

.dropdown-item:hover {
    color: #000000 !important;
    background-color: #f3f4f6;
}

.form-select {
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1;
}

.form-control-sm {
    min-height: calc(1.5em + .5rem + 2px);
    padding: 0px .5rem !important;
    font-size: 12px !important;
    border-radius: 5px;
    border: 1px solid;
}

.table-forms {
    border: none !important;
    margin-bottom: 0px !important;
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0px 5px !important;
}

.table-forms tbody, .table-forms td, .table-forms tfoot, .table-forms th, .table-forms thead, .table-forms tr {
        border: none !important;
    }

.table-forms tbody tr {
            background: transparent !important;
            box-shadow: none !important;
            border-radius: 0px;
        }

.table-forms tbody tr td:first-child {
                font-weight: 600;
                padding-left: 0px !important;
                width: 100px;
            }

.table-forms tbody tr td:last-child {
                padding-right: 0px;
            }

.table-forms > :not(caption) > * > * {
        padding: 0px 5px;
    }

.form-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px;
}

.form-inline .form-control,
.form-inline select.form-control,
.form-inline input[type="text"],
.form-inline input[type="checkbox"] {
    height: 26px;
    padding: 0 6px;
    font-size: 12px;
    font-family: Tahoma, sans-serif;
    width: auto !important;
    display: inline-block;
}

.form-inline .btn {
    height: 26px;
    padding: 0 8px;
    font-size: 12px;
    font-family: Tahoma, sans-serif;
    white-space: nowrap;
    line-height: 26px;
}

.form-inline .input-group {
    width: auto !important;
    display: inline-flex !important;
}

.form-inline .input-group-addon {
    height: 26px;
    padding: 0 6px;
    line-height: 26px;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 26px;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-left: 0;
    font-size: 12px;
    cursor: pointer;
}

.form-inline input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    margin: 0 2px !important;
    padding: 0 !important;
    cursor: pointer;
    align-self: center;
    flex-shrink: 0;
    vertical-align: middle;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
}

.fade:not(.show) {
    opacity: 1;
}

.modal-backdrop {

    background-color: #00000059;
}

.modal.fade .modal-dialog {
    transform: translateY(150px); /* Optional: animation starts slightly above */
}

.modal.show .modal-dialog {
    transform: none;
}
