﻿/* =========================================================
   ATACS NG - site.css (CLEAN FINAL)
   Bootstrap 5.3.x overrides + Dashboard V1 UX
   ========================================================= */

/* ---------- Theme variables ---------- */
:root {
    --atacs-blue: #0b75b5;
    --atacs-blue2: #0a6aa2;
    --atacs-border: #cfd8e3;
    --atacs-soft-border: #e6edf5;
    --atacs-width: 1244px;
    --atacs-logo-h: 44px;
    --atacs-toolbar-pad-y: 6px;
    --atacs-toolbar-h: calc(var(--atacs-logo-h) + (2 * var(--atacs-toolbar-pad-y)));
    --atacs-font-size: 13px;
    --atacs-shell-bg: #f7f9fc;
}

/* ---------- Global baseline ---------- */
html {
    font-size: var(--atacs-font-size);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.35;
    color: #212529;
    background: #f3f5f8;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    margin-bottom: .35rem;
}

h3 {
    font-weight: 700;
}

a {
    color: var(--atacs-blue);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.atacs-container {
    max-width: var(--atacs-width);
}

/* ---------- Header / Toolbar ---------- */
header {
    position: relative;
    z-index: 1000;
}

.toolbarheader.navbar {
    background: linear-gradient(90deg, var(--atacs-blue2), var(--atacs-blue));
    height: var(--atacs-toolbar-h);
    min-height: var(--atacs-toolbar-h);
    padding: var(--atacs-toolbar-pad-y) 0 0 0;
    align-items: stretch;
}

.atacs-brand {
    height: var(--atacs-toolbar-h);
    display: flex;
    align-items: center;
    padding: 0 .75rem;
    margin: 0;
}

    .atacs-brand img {
        height: var(--atacs-logo-h);
        width: auto;
        display: block;
    }

.toolbarheader .container.atacs-container {
    position: relative;
    height: var(--atacs-toolbar-h);
    display: flex;
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 0;
}

#navbarNav {
    flex: 1 1 auto;
    justify-content: center !important;
}

#homeToolbar {
    margin: 0 0 -1px 0;
    border-bottom: 0;
}

    #homeToolbar .nav-link {
        color: rgba(255,255,255,.96);
        background: transparent;
        border: 1px solid transparent;
        padding: .34rem .90rem;
        margin: 0 .15rem;
        border-radius: .6rem .6rem 0 0;
        font-size: 1.02rem;
        font-weight: 700;
        line-height: 1.1;
    }

        #homeToolbar .nav-link:hover {
            color: #fff;
            background: rgba(255,255,255,.12);
            border-color: rgba(255,255,255,.15);
        }

        #homeToolbar .nav-link.active {
            background: #fff;
            color: #000 !important;
            border-color: var(--atacs-border);
            border-bottom-color: #fff;
            position: relative;
            top: 1px;
            box-shadow: 0 -1px 0 rgba(0,0,0,.04);
        }

.atacs-userlinks-wrap {
    position: absolute;
    top: 6px;
    right: 10px;
}

.atacs-userlinks {
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

    .atacs-userlinks .nav-link,
    .atacs-userlinks .nav-link:visited {
        color: rgba(255,255,255,.96) !important;
        font-size: 12px;
        line-height: 1.1;
        padding: 0 .20rem;
        white-space: nowrap;
    }

        .atacs-userlinks .nav-link:hover {
            color: #fff !important;
            text-decoration: underline;
        }

.atacs-sep {
    color: rgba(255,255,255,.85);
    pointer-events: none;
    padding: 0 .20rem !important;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,.35);
}

.navbar-dark .navbar-toggler-icon {
    filter: brightness(200%);
}

/* ---------- Shell ---------- */
.atacs-shell {
    background: #fff;
    border: 1px solid var(--atacs-border);
    border-top: 0;
    padding: 12px 14px 14px;
    border-radius: 0 0 .5rem .5rem;
    min-height: 70vh;
}

.content-body {
    background: #fff;
    border: 1px solid var(--atacs-border);
    border-top: 0;
    padding: 12px 14px 14px;
    border-radius: 0 0 .5rem .5rem;
}

/* ---------- Compact controls ---------- */
.form-control,
.form-select {
    font-size: 1rem;
    padding: .20rem .45rem;
    border-radius: .2rem;
}

.form-control-sm,
.form-select-sm {
    padding: .15rem .40rem;
}

label {
    margin-bottom: .15rem;
}

small, .small {
    font-size: .9em;
}

.btn {
    font-size: .95rem;
    padding: .25rem .6rem;
}

.btn-sm {
    font-size: .9rem;
    padding: .20rem .5rem;
}

/* ---------- Tables ---------- */
.table td, .table th {
    padding: .25rem .45rem;
    vertical-align: middle;
}

.table-sm td, .table-sm th {
    padding: .20rem .40rem;
}

.table thead th {
    font-weight: 700;
}

/* ---------- Cards / Alerts ---------- */
.card {
    border-radius: .75rem;
}

.card-header {
    padding: .35rem .75rem;
}

.card-body {
    padding: .75rem;
}

.alert {
    padding: .50rem .75rem;
    margin-bottom: .75rem;
}

/* ---------- Modals ---------- */
.modal-header {
    padding: .5rem .75rem;
}

.modal-body {
    padding: .75rem;
}

.modal-footer {
    padding: .5rem .75rem;
}

.btn-close {
    transform: scale(.95);
}

/* ---------- Toast host ---------- */
#toasts {
    position: fixed;
    top: calc(var(--atacs-toolbar-h) + 10px);
    right: 12px;
    z-index: 9999;
}

/* =========================================================
   Dashboard V1 UX
   ========================================================= */
.dash-v1 {
    padding: 6px 2px 12px;
}

.dash-title-row {
    margin-bottom: 12px;
}

.dash-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #2d2d2d;
}

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

.dash-left,
.dash-right {
    min-width: 0;
}

.dash-card {
    background: #fff;
    border: 1px solid #d8dee9;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    overflow: hidden;
}

.dash-card-soft {
    background: linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
    border: 1px solid #d8dee9;
}

.dash-card-header {
    background: linear-gradient(90deg,#4b7de0,#5b88e6);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 8px 14px;
}

.dash-card-body {
    padding: 14px;
}

.dash-copy {
    font-size: .98rem;
    line-height: 1.55;
    color: #38404a;
}

.dash-two-up {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.dash-header-link {
    color: #eaf1ff;
    font-weight: 600;
    text-decoration: none;
}

    .dash-header-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.dash-kpi {
    position: relative;
    border-radius: 10px;
    color: #fff;
    padding: 14px 18px;
    min-height: 88px;
}

.dash-kpi-green {
    background: linear-gradient(135deg, #0bb386, #089f74);
}

.dash-kpi-blue {
    background: linear-gradient(135deg, #4f88ff, #356ee4);
}

.dash-kpi-red {
    background: linear-gradient(135deg, #f46c66, #e14e48);
}

.dash-kpi-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.dash-kpi-text {
    font-size: 1rem;
    margin-top: 6px;
    opacity: .98;
}

.dash-kpi-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 34px;
    text-align: center;
    border-radius: 8px;
    background: rgba(0,0,0,.18);
    font-weight: 700;
    padding: 4px 8px;
}

.dash-scroll {
    max-height: 280px;
    overflow: auto;
}

.dash-note-item,
.dash-feed-item {
    display: grid;
    grid-template-columns: 28px 1fr 24px;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #eceff4;
}

    .dash-note-item:last-child,
    .dash-feed-item:last-child {
        border-bottom: 0;
    }

.dash-note-icon,
.dash-feed-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: #1d9bf0;
}

.dash-note-main,
.dash-feed-content {
    min-width: 0;
}

.dash-note-text,
.dash-feed-text {
    font-size: .95rem;
    line-height: 1.35;
    color: #2f3742;
}

.dash-note-time,
.dash-feed-meta {
    margin-top: 4px;
    font-size: .88rem;
    color: #7c8796;
}

.dash-note-delete {
    color: #9aa4b2;
    text-decoration: none;
    font-size: 16px;
}

/* ---------- Work Items table ---------- */
.dash-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.dash-overview-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
}

    .dash-overview-table thead th {
        background: #f7f9fc;
        font-weight: 700;
        border-bottom: 1px solid #e2e8f0;
        padding: 10px 12px;
        text-align: left;
    }

    .dash-overview-table tbody td {
        padding: 10px 12px;
        border-bottom: 1px solid #edf1f6;
        vertical-align: top;
    }

    .dash-overview-table tbody tr:last-child td {
        border-bottom: 0;
    }

.dash-code-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #1f80c2;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
}

    .dash-code-chip:hover {
        color: #fff;
        text-decoration: none;
        opacity: .92;
    }

.dash-item-row {
    margin-bottom: 8px;
}

    .dash-item-row:last-child {
        margin-bottom: 0;
    }

.dash-item-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.dash-status-text {
    color: #444;
    font-size: .96rem;
}

.dash-pill {
    display: inline-block;
    border-radius: 999px;
    color: #fff;
    padding: 3px 12px;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
}

.pill-green {
    background: #1fa463;
}

.pill-blue {
    background: #2e73da;
}

.pill-red {
    background: #d85353;
}

.pill-gray {
    background: #8a96a8;
}

/* ---------- Utility ---------- */
.dash-plain-list {
    margin: 0;
    padding-left: 18px;
}

.fw-semibold {
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-two-up {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .atacs-container {
        max-width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    .toolbarheader.navbar {
        height: auto;
        min-height: 0;
        padding: 8px 0;
    }

    .toolbarheader .container.atacs-container {
        height: auto;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    #navbarNav {
        flex: 1 1 100%;
        justify-content: flex-start !important;
    }

    #homeToolbar {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        margin-bottom: 0;
    }

        #homeToolbar .nav-link {
            font-size: .95rem;
            padding: .25rem .55rem;
            margin: 0 .10rem;
        }

            #homeToolbar .nav-link.active {
                top: 0;
                border-bottom-color: var(--atacs-border);
                box-shadow: none;
            }

    .atacs-brand img {
        height: 40px;
    }

    .atacs-userlinks-wrap {
        position: static;
        width: 100%;
        order: -1;
    }

    .atacs-userlinks {
        justify-content: flex-end;
    }

    .atacs-shell {
        padding: 10px;
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .dash-kpis,
    .dash-kpis-four {
        grid-template-columns: 1fr;
    }
}

.dash-kpis-four {
    grid-template-columns: repeat(4, 1fr);
}

.dash-kpi-gray {
    background: linear-gradient(135deg, #7f8c9a, #667382);
}

.dash-side-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-kpis-four {
    grid-template-columns: repeat(4, 1fr);
}

.dash-kpi-gray {
    background: linear-gradient(135deg, #7f8c9a, #667382);
}

.dash-grid {
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 14px;
}
.dash-grid-header {
    display: grid;  
    gap: 2px;
}

/* Dashboard and QPU shared view selector */
.dashboard-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    padding: 3px;
    background: #fff;
}

.dashboard-mode-option {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .86rem;
    font-weight: 600;
    color: #35506f;
    text-decoration: none;
}

    .dashboard-mode-option:hover {
        text-decoration: none;
        color: #1f3c5d;
    }

    .dashboard-mode-option.active {
        background: #0b75b5;
        color: #fff;
    }

/* Classic QPU summary surface on the current Dev markup. */
.qpu-classic-summary {
    overflow: hidden;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    background-color: #f0f2f5;
}

.qpu-classic-summary #qpuInfoWrapper,
.qpu-classic-summary #qpuInfoWrapper * {
    background-color: transparent !important;
}

/* =========================================================
   QPU Activities Classic / Modern presentation
   ========================================================= */

/* Keep the legacy summary table on the same surface as its action area. */
.qpu-classic-summary .table-responsive,
.qpu-classic-summary .table {
    background: transparent;
}

.qpu-classic-summary .table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.qpu-classic-summary .table > :not(caption) > * > * {
    background-color: transparent;
    box-shadow: none;
}

.qpu-modern {
    display: grid;
    gap: 16px;
    color: #1e293b;
}

.qpu-modern *,
.qpu-modern *::before,
.qpu-modern *::after {
    box-sizing: border-box;
}

.qpu-modern__page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 2px 0 4px;
}

.qpu-modern__page-title {
    margin-bottom: 6px;
}

.qpu-modern__page-context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #526579;
    font-size: .9rem;
}

.qpu-modern__page-status {
    color: #0b5f91;
}

.qpu-modern__panel {
    overflow: hidden;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

.qpu-modern__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid #dfe6ed;
    background: #f6f8fa;
}

.qpu-modern__panel-title {
    margin: 0;
    color: #172333;
    font-size: 1.02rem;
    font-weight: 750;
}

.qpu-modern__panel-subtitle {
    margin: 3px 0 0;
    color: #64748b;
    font-size: .83rem;
}

.qpu-modern__panel-body {
    padding: 16px;
}

.qpu-modern__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.qpu-modern__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid #aebdca;
    border-radius: 999px;
    background: #fff;
    color: #0f4f7a;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}

.qpu-modern__action:hover,
.qpu-modern__action:focus {
    border-color: #7898ad;
    color: #0b4368;
    text-decoration: none;
}

.qpu-modern__action:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(11, 117, 181, .2);
}

.qpu-modern__action--primary {
    border-color: #0b75b5;
    background: #0b75b5;
    color: #fff;
}

.qpu-modern__action--primary:hover,
.qpu-modern__action--primary:focus {
    border-color: #075f94;
    background: #075f94;
    color: #fff;
}

.qpu-modern__action--danger {
    border-color: #c93443;
    background: #c93443;
    color: #fff;
}

.qpu-modern__action--danger:hover,
.qpu-modern__action--danger:focus {
    border-color: #a92533;
    background: #a92533;
    color: #fff;
}

.qpu-modern__action[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.qpu-modern__overview-grid {
    display: grid;
    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, .95fr)
        minmax(0, 1.05fr)
        minmax(0, 1.25fr);
    background: #f8fafc;
}

.qpu-modern-overview .qpu-modern__panel-title {
    font-size: 17px;
    line-height: 1.3;
}

.qpu-modern-overview .qpu-modern__panel-subtitle {
    font-size: 13px;
    line-height: 1.35;
}

.qpu-modern__overview-group {
    min-width: 0;
    padding: 15px 16px 17px;
    border-left: 1px solid #dfe6ed;
}

.qpu-modern__overview-group:first-child {
    border-left: 0;
}

.qpu-modern__overview-group h3 {
    margin: 0 0 10px;
    color: #0b5f91;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.qpu-modern__field-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.qpu-modern__field-list > div {
    display: grid;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid #e6ebf0;
}

.qpu-modern__field-list > div:first-child {
    padding-top: 0;
}

.qpu-modern__field-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.qpu-modern__field-list dt {
    color: #66788a;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.qpu-modern__field-list dd {
    margin: 0;
    color: #172333;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.qpu-modern__validation {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(420px, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #bfd8e8;
    border-left: 4px solid #0b75b5;
    border-radius: 8px;
    background: #f5fbff;
}

.qpu-modern__validation-copy {
    align-self: center;
    padding: 13px 16px;
}

.qpu-modern__validation-copy h2 {
    margin: 0 0 3px;
    color: #18344a;
    font-size: .96rem;
    font-weight: 750;
}

.qpu-modern__validation-copy p {
    margin: 0;
    color: #4d6273;
    font-size: .86rem;
}

.qpu-modern__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-left: 1px solid #d4e4ee;
}

.qpu-modern__metrics > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 11px 10px;
    border-left: 1px solid #d4e4ee;
    text-align: center;
}

.qpu-modern__metrics > div:first-child {
    border-left: 0;
}

.qpu-modern__metrics dt {
    color: #607487;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.2;
    text-transform: uppercase;
}

.qpu-modern__metrics dd {
    margin: 3px 0 0;
    color: #172333;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.qpu-modern__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.qpu-modern__filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.qpu-modern__filter,
.qpu-modern__search {
    border: 1px solid #b9c7d3;
    border-radius: 999px;
    background: #fff;
    color: #34495d;
    font-size: .8rem;
}

.qpu-modern__filter {
    padding: 6px 10px;
    font-weight: 650;
    cursor: pointer;
}

.qpu-modern__filter:hover,
.qpu-modern__filter:focus,
.qpu-modern__filter.is-active {
    border-color: #0b75b5;
    background: #0b75b5;
    color: #fff;
}

.qpu-modern__search {
    min-width: 220px;
    padding: 7px 12px;
}

.qpu-modern__status {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}

.qpu-modern__status--success {
    background: #dcf5e5;
    color: #17633a;
}

.qpu-modern__status--warning {
    background: #fff0d8;
    color: #895006;
}

.qpu-modern .mvc-grid {
    overflow-x: auto;
}

.qpu-modern .mvc-grid table {
    width: 100%;
    min-width: 800px;
    table-layout: fixed;
}

.qpu-modern .mvc-grid .col-policy {
    width: 24%;
}

.qpu-modern .mvc-grid .col-activity {
    width: 38%;
}

.qpu-modern .mvc-grid .col-quantity-committed,
.qpu-modern .mvc-grid .col-quantity-completed {
    width: 13%;
}

.qpu-modern .mvc-grid .col-status {
    width: 12%;
}

.qpu-modern__swot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.qpu-modern__swot-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.qpu-modern__swot-field--wide {
    grid-column: 1 / -1;
}

.qpu-modern__swot-field > label {
    color: #26384a;
    font-weight: 750;
}

.qpu-modern__swot-input {
    min-height: 116px;
    resize: vertical;
}

.qpu-modern__field-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #718096;
    font-size: .76rem;
}

.qpu-modern__field-meta .is-complete {
    color: #237046;
    font-weight: 700;
}

.qpu-modern__field-meta .is-incomplete {
    color: #9a5b12;
    font-weight: 700;
}

.qpu-modern__related-body {
    display: grid;
    gap: 14px;
}

.qpu-modern__related-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #dce4eb;
    border-radius: 8px;
    background: #f8fafc;
}

.qpu-modern__related-link {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 10px 13px;
    border-left: 1px solid #dce4eb;
    color: #0b5f91;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.qpu-modern__related-link:first-child {
    border-left: 0;
}

.qpu-modern__related-link:hover,
.qpu-modern__related-link:focus {
    background: #eef6fb;
    color: #084d75;
    text-decoration: underline;
}

.qpu-modern__support-section {
    border-top: 1px solid #e2e8ee;
    padding-top: 14px;
}

.qpu-modern__support-section .accordion-item,
.qpu-modern__remarks .accordion-item {
    overflow: hidden;
    border-color: #dce4eb;
    border-radius: 7px;
}

.qpu-modern__support-section .accordion-button,
.qpu-modern__remarks .accordion-button {
    padding: 10px 13px;
    background: #f8fafc;
    color: #26384a;
    font-size: .9rem;
}

.qpu-modern__count {
    margin-left: 7px;
    color: #617487;
    font-size: .78rem;
    font-weight: 650;
}

.qpu-modern__remarks {
    display: grid;
    gap: 16px;
}

.qpu-modern__role-remarks {
    padding-top: 2px;
}

.qpu-modern__danger-zone {
    padding-top: 4px;
    border-top: 1px solid #ead8db;
}

@media (max-width: 1180px) {
    .qpu-modern__overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qpu-modern__overview-group:nth-child(odd) {
        border-left: 0;
    }

    .qpu-modern__overview-group:nth-child(n+3) {
        border-top: 1px solid #dfe6ed;
    }

    .qpu-modern__validation {
        grid-template-columns: 1fr;
    }

    .qpu-modern__metrics {
        border-top: 1px solid #d4e4ee;
        border-left: 0;
    }
}

@media (min-width: 1001px) and (max-width: 1180px) {
    .qpu-modern__overview-grid {
        grid-template-columns:
            minmax(0, .85fr)
            minmax(0, .95fr)
            minmax(0, 1.05fr)
            minmax(0, 1.25fr);
    }

    .qpu-modern__overview-group:nth-child(odd) {
        border-left: 1px solid #dfe6ed;
    }

    .qpu-modern__overview-group:first-child {
        border-left: 0;
    }

    .qpu-modern__overview-group:nth-child(n+3) {
        border-top: 0;
    }
}

@media (max-width: 768px) {
    .qpu-modern__page-header .dashboard-mode-toggle {
        margin-left: auto;
    }

    .qpu-modern__panel-head {
        align-items: flex-start;
    }

    .qpu-modern__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .qpu-modern__overview-grid,
    .qpu-modern__swot-grid,
    .qpu-modern__related-links {
        grid-template-columns: 1fr;
    }

    .qpu-modern__overview-group,
    .qpu-modern__overview-group:nth-child(odd) {
        border-top: 1px solid #dfe6ed;
        border-left: 0;
    }

    .qpu-modern__overview-group:first-child {
        border-top: 0;
    }

    .qpu-modern__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qpu-modern__metrics > div:nth-child(3) {
        border-left: 0;
    }

    .qpu-modern__metrics > div:nth-child(n+3) {
        border-top: 1px solid #d4e4ee;
    }

    .qpu-modern__toolbar {
        align-items: stretch;
    }

    .qpu-modern__filters {
        width: 100%;
    }

    .qpu-modern__search {
        width: 100%;
        min-width: 0;
    }

    .qpu-modern__related-link,
    .qpu-modern__related-link:first-child {
        border-top: 1px solid #dce4eb;
        border-left: 0;
    }

    .qpu-modern__related-link:first-child {
        border-top: 0;
    }
}

@media (max-width: 480px) {
    .qpu-modern__page-header .dashboard-mode-toggle {
        width: 100%;
        margin-left: 0;
    }

    .qpu-modern__page-header .dashboard-mode-option {
        flex: 1 1 50%;
        text-align: center;
    }

    .qpu-modern__actions .qpu-modern__action {
        flex: 1 1 auto;
    }

    .qpu-modern__metrics {
        grid-template-columns: 1fr;
    }

    .qpu-modern__metrics > div,
    .qpu-modern__metrics > div:nth-child(3) {
        border-top: 1px solid #d4e4ee;
        border-left: 0;
    }

    .qpu-modern__metrics > div:first-child {
        border-top: 0;
    }
}

/* QPU-scoped equivalents of the source design-system utilities used above. */
.qpu-modern.atacs-page {
    min-width: 0;
    padding: 16px 0 32px;
}

.qpu-modern .atacs-page-title {
    margin: 0 0 .5rem;
    color: #1f2d3d;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.qpu-modern .atacs-link,
.qpu-modern .atacs-link-quiet {
    color: var(--atacs-blue);
    text-decoration: none;
    cursor: pointer;
}

.qpu-modern .atacs-link {
    font-weight: 600;
}

.qpu-modern .atacs-link-quiet {
    font-weight: 400;
}

.qpu-modern .atacs-link:hover,
.qpu-modern .atacs-link:focus,
.qpu-modern .atacs-link-quiet:hover,
.qpu-modern .atacs-link-quiet:focus {
    color: var(--atacs-blue2);
    text-decoration: underline;
}

.qpu-modern .atacs-callout {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--atacs-soft-border);
    border-left: 3px solid var(--atacs-blue);
    border-radius: 4px;
    background: #e6f2fa;
    color: #1f2d3d;
}

.qpu-modern .atacs-callout__body {
    min-width: 0;
    flex: 1 1 auto;
}

.qpu-modern .atacs-callout__body p:last-child {
    margin-bottom: 0;
}

.qpu-modern .atacs-callout--info {
    border-left-color: var(--atacs-blue);
    background: #e6f2fa;
}

.qpu-modern .atacs-activities-scroll {
    overflow: auto;
    border: 1px solid var(--atacs-soft-border);
    border-radius: 4px;
    background: #fff;
}

.qpu-modern .atacs-scroll-sm {
    max-height: 140px;
    overflow: auto;
}

.qpu-modern .atacs-scroll-md {
    max-height: 260px;
    overflow: auto;
}

.qpu-modern .atacs-field {
    display: flex;
    min-width: 0;
    margin-bottom: 12px;
    flex-direction: column;
    gap: 4px;
}

.qpu-modern .atacs-field__label {
    margin-bottom: 0;
    color: #1f2d3d;
    font-size: .95rem;
    font-weight: 700;
}

.qpu-modern .atacs-field--horizontal {
    display: grid;
    margin-bottom: 12px;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.qpu-modern .atacs-field--horizontal > .atacs-field__label {
    margin-bottom: 0;
    padding-top: .35rem;
    text-align: right;
}

.qpu-modern .atacs-stack > * + * {
    margin-top: 12px;
}

.qpu-modern .atacs-page__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.qpu-modern ~ #delModal .atacs-section-title {
    margin: 0 0 .5rem;
    color: #1f2d3d;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.qpu-modern ~ #delModal .atacs-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .qpu-modern .atacs-field--horizontal {
        grid-template-columns: 1fr;
    }

    .qpu-modern .atacs-field--horizontal > .atacs-field__label {
        padding-top: 0;
        text-align: left;
    }
}

