.current-plans-page {
    height: calc(100vh - 4.25rem);
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

.current-plans-page > .d-flex:first-child {
    flex: 0 0 auto;
    margin-bottom: 0.75rem !important;
}

#current-plans-alert {
    flex: 0 0 auto;
}

.current-plans-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
}

.current-plans-layout > [class*="col-"] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.current-plans-layout > [class*="col-"] > .catalog-card,
.current-plans-layout > [class*="col-"] > .current-plans-main-column {
    width: 100%;
}

.current-plans-main-column {
    min-height: 0;
    height: 100%;
    width: 100%;
}

.current-plans-sidebar,
.current-plans-missions-card,
.current-plans-modes-card {
    overflow: hidden;
}

.current-plans-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.current-plans-sidebar > .card-header,
.current-plans-sidebar > .card-body:not(.catalog-list) {
    flex: 0 0 auto;
}

.current-plans-sidebar .catalog-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.current-plans-missions-card {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    max-height: none;
    min-height: 0;
}

.current-plans-missions-card .card-body {
    min-height: 0;
    overflow: hidden;
}

.current-plans-missions-card .current-plans-table-wrap {
    max-height: 15rem;
    overflow-x: auto;
    overflow-y: hidden;
}

.current-plans-modes-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.current-plans-modes-card .card-header {
    flex: 0 0 auto;
}

.current-plans-modes-card .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.current-plans-modes-card .current-plans-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
}

.current-plans-modes-card .catalog-empty {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
}

.current-plans-satellites-table tbody tr,
#current-plans-missions-body tr {
    cursor: pointer;
}

.current-plans-selected-row > td {
    background: rgba(13, 110, 253, 0.12) !important;
}

.current-plans-table-wrap {
    overflow: auto;
}

.current-plans-pagination {
    white-space: nowrap;
}

.current-plans-id {
    font-family: var(--bs-font-monospace);
    font-size: 0.82rem;
}

.current-plans-main-text {
    font-weight: 600;
}

.current-plans-sub-text {
    color: #6c757d;
    font-size: 0.82rem;
}

.current-plans-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid rgba(108, 117, 125, 0.35);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.78rem;
    color: #495057;
    background: rgba(248, 249, 250, 0.9);
}

.current-plans-mode-params {
    min-width: 11rem;
}

#current-plans-modes-body tr.current-plans-mode-row-drop > td {
    background: rgba(25, 135, 84, 0.14) !important;
}

#current-plans-modes-body tr.current-plans-mode-row-slots > td {
    background: rgba(255, 193, 7, 0.18) !important;
}

#current-plans-modes-body tr.current-plans-mode-row-drop:hover > td {
    background: rgba(25, 135, 84, 0.22) !important;
}

#current-plans-modes-body tr.current-plans-mode-row-slots:hover > td {
    background: rgba(255, 193, 7, 0.28) !important;
}

.current-plans-badge-drop {
    border-color: rgba(25, 135, 84, 0.45);
    color: #0f5132;
    background: rgba(25, 135, 84, 0.14);
}

.current-plans-badge-slots {
    border-color: rgba(255, 193, 7, 0.55);
    color: #664d03;
    background: rgba(255, 193, 7, 0.22);
}

@media (max-width: 1199.98px) {
    .current-plans-page {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding-bottom: 1rem !important;
    }

    .current-plans-layout {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .current-plans-layout > [class*="col-"] {
        display: block;
        min-height: auto;
        height: auto;
    }

    .current-plans-main-column,
    .current-plans-sidebar,
    .current-plans-missions-card,
    .current-plans-modes-card,
    .current-plans-missions-card .card-body,
    .current-plans-modes-card .card-body {
        height: auto;
        min-height: auto;
    }

    .current-plans-missions-card {
        max-height: none;
    }

    .current-plans-sidebar .catalog-list,
    .current-plans-table-wrap,
    .current-plans-missions-card .current-plans-table-wrap,
    .current-plans-modes-card .current-plans-table-wrap {
        max-height: none;
        overflow: visible;
    }
}

.current-plans-actions-col {
    min-width: 13rem;
}

.current-plans-actions-cell {
    min-width: 13rem;
    white-space: nowrap;
}

.current-plans-action-btn + .current-plans-action-btn {
    margin-left: 0.35rem;
}

#current-plans-create-modal .form-label {
    font-weight: 600;
}
