/* ─── Utility bar ─── */
.util-bar {
    background-color: #090FA4;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.util-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.util-logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    text-decoration: none;
}
.util-logo img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.util-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.util-pill {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.08);
    border: .5px solid rgba(255,255,255,.15);
    border-radius: 3px;
    padding: 2px 7px;
}
.util-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── How-to guide block ─── */
.guide-block {
    margin: 22px 0;
}
.guide-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #004EEB;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.guide-item {
    background: #ffffff;
    border: 1px solid #C8D6FF;
    border-radius: 6px;
    padding: 14px 16px;
}
.gi-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #004EEB;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 4px;
}
.gi-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.gi-desc {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}
.resp-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.rp {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 4px;
}
.rp-obs  { background: #EEF3FF; color: #004EEB; border: 1px solid #C8D6FF; }
.rp-part { background: #f5f7fc; color: #4a6080; border: 1px solid #C8D6FF; }
.rp-no   { background: #f5f7fc; color: #7b80a0; border: 1px solid #e2e8f0; }
.rp-na   { background: #f5f7fc; color: #7b80a0; border: 1px solid #e2e8f0; }

/* ─── Disclaimer modal ─── */
.modal-disc {
    max-width: 480px;
}
.modal-disc .btn {
    font-size: 0.875rem;
}
.disc-logo {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.disc-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.disc-title {
    font-size: 1rem;
    font-weight: 600;
}
.disc-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
}
.disc-dest {
    font-size: 0.875rem;
    font-weight: 500;
    color: #004EEB;
    background: #EEF3FF;
    border: 1px solid #C8D6FF;
    border-radius: 5px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.disc-sec-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 8px;
}
.disc-stmt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #EEF3FF;
    border: 1px solid #C8D6FF;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.6;
}
.disc-stmt-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.disc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.disc-pill {
    font-size: 0.8rem;
    color: #495057;
    border: 1px solid #C8D6FF;
    border-radius: 3px;
    padding: 3px 10px;
    background: #EEF3FF;
}
.disc-ck {
    display: flex;
    align-items: flex-start;
    gap: 0;
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.5;
    cursor: pointer;
}

/* ─── Footer ─── */
.home-footer {
    border-top: 1px solid #dee2e6;
    padding: 20px 0 32px;
}
.footer-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-priv {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.65;
    flex: 3;
    margin-bottom: 0;
}
.footer-legal {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.65;
    flex: 2;
    border-left: 2px solid #C8D6FF;
    padding-left: 14px;
}
.footer-legal strong {
    font-size: 0.875rem;
    color: #495057;
    display: block;
    margin-bottom: 4px;
}
.footer-link {
    font-size: 0.875rem;
    color: #004EEB;
    cursor: pointer;
    display: block;
    margin-top: 6px;
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}

/* ─── Progress summary bar ─── */
.prog-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.ps-box {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
}
.ps-val {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1a1f36;
}
.ps-lbl {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ─── Category card additions ─── */
.cat-counts {
    font-size: 12px;
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.cc-obs  { color: #ffffff; }
.cc-part { color: rgba(255,255,255,.80); }
.cc-no   { color: rgba(255,255,255,.60); }
.cc-na   { color: rgba(255,255,255,.50); }
.cc-un   { color: rgba(255,255,255,.45); }
.cat-cta {
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 0;
    opacity: 0.85;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: #212529;
}

/* ─── Ensure risk card title is at least two lines tall */
.risk-card-title {
    min-height: 2.5em;
    display: flex;
    align-items: center;
    line-height: 1.2;
    word-break: break-word;
}
.navbar {
    padding: 1rem;
    /* margin-top: 50px; Increased margin */
    
}

body {
    /* padding-top: 50px; Increased padding */
}

.container.mt-4 {
    margin-top: 3rem !important; /* Increased margin */
}

/* Rest of the styles */
.home-icon {
    width: 20px;
    height: 20px;
}

.nav-tabs-container {
    margin-left: 0.5rem;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.6rem;
}

.nav-tabs .nav-link:hover {
    color: white;
    border: none;
}

.nav-tabs .nav-link.active {
    color: white;
    background: none;
    border-bottom: 2px solid white;
}

.risk-card {
    border-radius: 10px;
    border-width: 2px;
    border-color: #004EEB;
    transition: transform 0.2s;
    cursor: pointer; /* Make cards clickable */
}

.risk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Active state styles for risk cards */
.risk-card.active {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 78, 235, 0.2);
}

.risk-card.active .card-body {
    color: #fff !important; 
    background-color: #004EEB !important; /* Light blue background */
}

.risk-card.active .progress-bar {
    background-color: #090FA4 !important; /* Darker blue progress bar */
}

.info-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

.progress {
    height: 6px;
    background-color: #D4DFFF;
}

.risk-card.active .progress {
    background-color: #fff;
}

.progress-bar {
    background-color: white;
}

.nav-pills .nav-link {
    color: #0d6efd;
    background: none;
    border: 1px solid #0d6efd;
    border-radius: 20px;
    margin-right: 1rem;
    padding: 0.5rem 1.5rem;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
    table-layout: fixed;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Table layout and cell styles */
.table {
    table-layout: fixed;
}

.table tr {
    display: table-row;
}

.table td {
    vertical-align: top;
    height: 100%;
}

/* Comments cell specific styles */
.comments-cell {
    position: relative;
    min-width: 200px;
    padding: 0 !important; /* Remove default padding */
}

.comments-cell > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem;
}

.comments-cell textarea.form-control {
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    resize: vertical;
    margin: 0;
    display: block;
    box-sizing: border-box;
}

/* Ensure content wrapping in other cells */
.table td:not(.comments-cell) {
    white-space: normal;
    word-wrap: break-word;
}

.col-1 { width: 120px; }
.col-3 { width: 165px; }
.comments-col {
    width: 300px;
}


.remarks-input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
}

.category-counter {
    font-size: 0.9em;
    color: #6c757d;
}

#glossaryBtn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
}

#generateReport {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
}

#resetData {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    margin-right: 1rem;
}

#printButton {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
}

#backButton {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    margin-right: 1rem;
}

.chart-container {
    max-width: 400px;
    margin: 0 auto;
}

#reportContent {
    max-height: 80vh;
    overflow-y: auto;
}

.category-card {
    border-radius: 10px;
    transition: transform 0.2s;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hide the subcategory tabs since we're using cards */
.nav-pills {
    display: none;
}

.bg-gl1 {
    background-color: #090FA4;
}

.icon-wrapper {
  background-color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* custom.css */

/* Custom Primary Button */
.custom-btn-primary {
  background-color: #004EEB;
}

.custom-outline-btn {
  color: #004EEB; /* Green text */
  border-color: #004EEB;
}


.nav-tabs .nav-link.two-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-tabs .nav-link.two-line span {
  line-height: 1; 
}

/* ─── Acknowledgements ─── */
.ack-section {
    border-top: 1px solid #e2e8f0;
    padding: 28px 0 8px;
    margin-top: 32px;
}
.ack-section h2 {
    margin-bottom: 20px;
}
.ack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ack-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #7b80a0;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 6px;
}
.ack-intro {
    font-size: 1rem;
    color: #212529;
    line-height: 1.6;
    margin-bottom: 10px;
}
.ack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ack-pill {
    background: #EEF3FF;
    border: 1px solid #C8D6FF;
    color: #004EEB;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
}
.ack-note {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ─── Mobile layout (<= 767 px): table replaced with card per row layout ─── */
@media (max-width: 767px) {
    html { overflow-x: clip; }
    body { overflow-x: clip; }
    .prog-summary { grid-template-columns: repeat(3, 1fr); }
    .ack-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .home-footer .footer-row {
        flex-direction: column;
        gap: 16px;
    }
    .footer-legal {
        width: 100%;
        max-width: 100%;
        flex-shrink: 1;
        border-left: none;
        border-top: 2px solid #C8D6FF;
        padding-left: 0;
        padding-top: 12px;
    }
}

/* Add print media query at the end of your CSS file */
@media print {
    body {
        overflow: visible !important;
    }

    /* Optional: Ensure proper page breaks and printing styles */
    .category-section {
        page-break-inside: avoid;
    }

    /* Hide non-printable elements */
    #backButton,
    #printButton {
        display: none;
    }
}