html.is-navigating,
html.is-navigating body {
    cursor: wait;
}

html.is-navigating a[href] {
    pointer-events: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #eef5fb 0%, #f8fbff 100%);
}

.app-content {
    flex: 1 0 auto;
    max-width: 1680px;
}

.navbar-custom {
    background-color: #0079ae;
}

.navbar-custom .container {
    max-width: none;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
}

.navbar-brand-logo {
    margin-right: 0;
}

.navbar-custom .navbar-nav {
    margin-left: auto;
}

.navbar-custom .nav-link {
    color: #ffffff;
    font-weight: 600;
}

.navbar-custom .nav-link:hover {
    color: #d9e9ff;
}

@media (max-width: 576px) {
    .navbar-custom .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #1e5988, #2c7ab8);
    border-color: #1e5988;
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #17486d, #24689e);
    border-color: #17486d;
    color: #fff;
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background: linear-gradient(135deg, #17486d, #24689e);
    border-color: #17486d;
    color: #fff;
}

.brand-logo {
    height: 29px;
}

.brand-logo-cross {
    height: 18px;
    margin: 0 8px;
}

.section-card {
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.section-img {
    max-height: 110px;
    object-fit: contain;
}

.section-img-xl {
    max-height: 220px;
}

.selector-table-wrap {
    max-height: 640px;
}

.graph-panel {
    min-height: 640px;
    background: #f8fafc;
}

.selector-card {
    background: #ffffff;
}

.form-control-tech,
.form-select-tech {
    border: 1px solid #89b9d6;
    background-color: #f7fcff;
    box-shadow: inset 0 1px 2px rgba(4, 59, 137, 0.08);
}

.form-control-tech:focus,
.form-select-tech:focus {
    border-color: #0079ae;
    box-shadow: 0 0 0 0.25rem rgba(0, 121, 174, 0.18);
    background-color: #ffffff;
}

.form-control-tech {
    max-width: 140px;
}

.selector-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    padding: 12px 14px;
    border: 1px solid #b8d6e8;
    border-radius: 12px;
    background: #f4faff;
}

.selector-group-item {
    min-width: 240px;
}

.selector-group-title {
    display: block;
    font-weight: 600;
    color: #043b89;
}

.selector-group-inline {
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
}

.selector-field-stack {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selector-checkbox-stack {
    min-width: 170px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selector-action {
    min-width: 210px;
    margin-left: auto;
    display: flex;
    align-items: flex-end;
}

.selector-group .form-check-input:checked {
    background-color: #0079ae;
    border-color: #0079ae;
}

.selector-group .form-check-input:focus {
    border-color: #0079ae;
    box-shadow: 0 0 0 0.2rem rgba(0, 121, 174, 0.25);
}

.table-head-tech th {
    text-align: center;
    vertical-align: middle;
}

#cmsResultTable {
    table-layout: fixed;
}

#cmsResultTable th,
#cmsResultTable td {
    vertical-align: middle;
}

#cmsResultTable th:nth-child(1),
#cmsResultTable td:nth-child(1) {
    width: 28%;
    text-align: left;
}

#cmsResultTable th:nth-child(2),
#cmsResultTable td:nth-child(2),
#cmsResultTable th:nth-child(3),
#cmsResultTable td:nth-child(3),
#cmsResultTable th:nth-child(4),
#cmsResultTable td:nth-child(4),
#cmsResultTable th:nth-child(8),
#cmsResultTable td:nth-child(8) {
    width: 12%;
    text-align: right;
    white-space: nowrap;
}

#cmsResultTable th:nth-child(5),
#cmsResultTable td:nth-child(5),
#cmsResultTable th:nth-child(6),
#cmsResultTable td:nth-child(6),
#cmsResultTable th:nth-child(7),
#cmsResultTable td:nth-child(7) {
    width: 8%;
    text-align: center;
    white-space: nowrap;
}
