﻿/* =========================================================
   1. GLOBAL VARIABLES & TYPOGRAPHY
   ========================================================= */
:root {
    --main-font: 'Atkinson Hyperlegible', sans-serif;
    --heading-font: 'Atkinson Hyperlegible', sans-serif;
    --primary-blue: #174f9d;
    --hover-blue: #0056b3;
}

body {
    font-family: var(--main-font);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

input, button, textarea, select {
    font-family: inherit;
}

/* =========================================================
   2. HEADER & SIDEBAR NAVIGATION (LEGACY & MODERN)
   ========================================================= */
a.ContentsItem:link, a.ContentsItem:visited, a.ContentsItem:active {
    color: black;
    text-decoration: none;
}

a.ContentsItem:hover {
    color: black;
    text-decoration: underline;
}

a.Header:link, a.Header:visited, a.Header:active, a.Header:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

div.Contents {
    width: 200px;
}

div.ContentsGroup, div.ContentsItem, div.ContentsSubGroup, div.ContentsItemSeparator {
    font-family: var(--main-font);
    font-weight: bold;
    margin: 0;
    padding: 2px 5px;
    border-color: silver;
    border-style: dotted;
    border-top: none;
}

div.ContentsGroup {
    background-color: var(--primary-blue);
    color: white;
    font-size: 15px;
    border-width: 1px;
    width: 200px;
}

div.ContentsItem {
    background-image: url('../images/SlantedLines.png');
    background-size: 100%;
    border-color: silver;
    border-style: dotted;
    border-width: 1px;
    font-size: 13px;
    width: 200px;
}

div.ContentsSubGroup {
    background-image: url('../images/SlantedLines.png');
    background-size: 100%;
    border-color: black;
    border-style: none;
    border-width: 1px;
    font-size: small;
    width: auto;
}

div.ContentsItemSeparator {
    background-image: url('../images/SlantedLines.png');
    background-size: 100%;
    border-width: 1px;
    font-size: xx-small;
    width: 100%;
}

div.ContentsSubGroupSign {
    background-size: 100%;
    border: none;
    font-size: small;
    font-family: var(--main-font);
    font-weight: bold;
    margin: 0;
    padding: 2px 0 0 0;
    width: 12px;
    height: 20px;
    vertical-align: middle;
}

div.Footer {
    width: 100%;
    text-align: center;
    font-family: var(--main-font);
    font-size: xx-small;
    color: white;
    background-color: var(--primary-blue);
    bottom: 2px;
    position: absolute;
    left: 0;
}

div.Header {
    height: 87px;
}

hr.Header {
    color: var(--primary-blue);
    border-style: solid;
    width: 100%;
}

hr.headerHorizontalLine {
    color: var(--primary-blue);
    border-style: solid;
}

.headerImage, img.HeaderImage {
    border: 0;
    height: 71px;
    width: auto;
}

li.ContentsItem {
    padding-left: 10px;
}

ul.ContentsItem, ul.ContentsSubGroup {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.headerTitle {
    font-size: 3.50em;
    letter-spacing: 3px;
    padding-left: 25px;
    color: var(--primary-blue);
    cursor: default;
    font-family: var(--main-font);
    text-align: center;
    justify-content: center;
    display: flex;
}

span.HeaderTitle {
    color: var(--primary-blue);
    font-family: var(--main-font);
    font-size: 3.50em;
    letter-spacing: 3px;
    width: 100%;
}

/* Modern Sidebar Navigation */
.sidebar-section {
    background-color: #ffffff;
    background-image: url('../Images/SlantedLines.png');
    background-repeat: repeat;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sidebar-nav {
    width: 230px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 0px;
    padding-left: 10px;
}

.sidebar-section-title {
    background-color: var(--primary-blue);
    color: #ffffff;
    margin: 0;
    padding: 4px 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-link {
    display: block;
    padding: 4px 8px;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    border-bottom: 1px solid #cccccc;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

    .sidebar-link:last-child {
        border-bottom: none;
    }

    .sidebar-link:hover {
        background-color: #f8f9fa;
        color: var(--primary-blue);
        text-decoration: none;
        padding-left: 16px;
    }

/* Header User Block Styles */
.header-user-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-right: 30px;
    white-space: nowrap;
    margin: 0 auto;
}

.header-welcome-text {
    text-align: center;
    line-height: 1.2;
}

.header-welcome-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.header-welcome-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

    .header-action-btn:hover {
        background-color: var(--hover-blue);
        color: #ffffff;
        text-decoration: none;
    }

    .header-action-btn.sign-out {
        gap: 8px;
        padding: 6px 16px;
        font-size: 13px;
    }

    .header-action-btn.sign-in {
        padding: 8px 24px;
        font-size: 14px;
    }

/* =========================================================
   3. MODERN APP STYLES (LOGIN & SEARCH)
   ========================================================= */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 70vh;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h2 {
        margin: 0;
        color: #333333;
        font-size: 28px;
        font-weight: 700;
    }

    .login-header p {
        margin: 8px 0 0;
        color: #666666;
        font-size: 15px;
    }

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        color: #444444;
        font-weight: 700;
        font-size: 14px;
    }

    .input-group input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #cccccc;
        border-radius: 6px;
        font-size: 16px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        box-sizing: border-box;
    }

        .input-group input:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
        }

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.search-payee-number {
    color: #007bff;
    text-decoration: none;
    font-weight: 700;
}

    .search-payee-number:hover {
        text-decoration: underline;
    }

.signInPage-btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .signInPage-btn-submit:hover {
        background-color: var(--hover-blue);
    }

.action-btn-group {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

.btn-flex-half {
    flex: 1;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset, .btn-reset:hover {
    text-decoration: none !important;
}

/* Password Wrappers */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

    .password-wrapper input {
        padding-right: 40px !important;
    }

.toggle-password-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999999;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

    .toggle-password-icon:hover {
        color: #333333;
    }

/* Validation and Errors */
.validation-summary {
    color: red;
    margin-bottom: 15px;
}

    .validation-summary ul {
        list-style-type: none;
        padding-left: 0;
        margin: 0;
        text-align: center;
    }

.input-validation-error {
    border-color: red !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15) !important;
}

.error-message-block {
    color: red;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

/* =========================================================
   4. NEW RESULTS BOARD STYLES & HEADER
   ========================================================= */
.search-page-layout {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    align-items: stretch;
    padding: 0 20px;
}

.search-card-left {
    flex: 0 0 400px;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.results-card-right {
    flex: 1;
    max-width: 800px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: white;
}

.results-board-card {
    flex: 1;
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: white;
}

.results-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

    .results-header-container .login-header {
        margin-bottom: 0 !important;
    }

.search-header, .results-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.search-header {
    margin-bottom: 50px;
}

    .search-header h2, .results-header h2 {
        margin-top: 0;
        line-height: 1.2 !important;
        color: var(--primary-blue);
    }

.back-icon-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1d4e89;
    transition: color 0.2s ease-in-out;
}

    .back-icon-btn:hover {
        color: #0f2c4d;
    }

/* Header Buttons */
.header-button-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-print {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

    .btn-print:hover {
        background-color: var(--hover-blue);
    }

.btn-email {
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

    .btn-email:hover {
        background-color: var(--hover-blue);
        color: white;
        text-decoration: none;
    }

.btn-refresh {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .btn-refresh:hover {
        background-color: var(--hover-blue);
        color: white;
        text-decoration: none;
    }

/* Table Utilities */
.table-scroll-container {
    height: 600px;
    overflow-y: auto;
    position: relative;
    background: white;
    margin-top: 5px;
    padding-right: 15px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

    .results-table th, .results-table td {
        padding: 12px 10px;
    }

    .results-table thead tr {
        text-align: left;
    }

    .results-table tbody tr {
        border-bottom: 1px solid #eee;
    }

.table-center-cell {
    text-align: center;
}

.table-narrow-centered {
    max-width: 600px !important;
    margin: 0 auto !important;
}

    .table-narrow-centered th, .table-narrow-centered td {
        text-align: center !important;
    }

.card-narrow {
    max-width: 700px !important;
    margin: 0 auto !important;
}

.empty-results-cell {
    padding: 40px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.sticky-header th {
    position: sticky;
    top: 0;
    background-color: white;
    background-clip: padding-box;
    z-index: 999;
    border-bottom: 2px solid #ccc;
}

.zip-cell {
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
}

.disclaimer-text {
    font-size: 13px;
    color: #666666;
    font-style: italic;
    text-align: right;
    margin-top: 15px;
}

/* =========================================================
   5. INSTRUCTIONS PAGE STYLES
   ========================================================= */
.instruction-section h3 {
    color: var(--primary-blue);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.instruction-section:first-of-type h3 {
    margin-top: 0;
}

.instruction-list {
    margin-bottom: 20px;
    padding-left: 25px;
}

    .instruction-list li {
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .instruction-list ol {
        margin-top: 8px;
        padding-left: 25px;
    }

/* =========================================================
   6. ORIGINAL DIRECTORY ROW (Used by Bulletin Board)
   ========================================================= */
.directory-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

.directory-row-card {
    background: #ffffff !important; /* Forces it back to white */
    border: 1px solid #e0e0e0 !important; /* Forces the gray border back */
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    page-break-inside: avoid;
    break-inside: avoid;
}

    .directory-row-card:hover {
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }

.directory-info-section {
    flex: 0 0 320px;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.directory-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0 0 12px 0;
}

.directory-contact-info {
    font-size: 14px;
    color: #555555;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.directory-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .directory-contact-item a {
        color: #007bff;
        text-decoration: none;
    }

        .directory-contact-item a:hover {
            text-decoration: underline;
        }

.zip-code-section {
    flex: 1;
    min-width: 250px;
    padding-top: 2px;
}

.zip-code-label {
    font-size: 12px;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.zip-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 12px 8px;
}

.zip-badge {
    background-color: #f8f9fa;
    color: var(--primary-blue);
    border: 1px solid #d9e2ec;
    padding: 4px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* =========================================================
   7. PAYMENTS RECEIVED ROW (White Theme with Accent Ribbon)
   ========================================================= */
.payment-row-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-left: 4px solid #d9e2ec; /* The subtle indicator ribbon */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    margin-bottom: 15px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
}

    .payment-row-card:hover {
        border-left-color: var(--primary-blue); /* Ribbon turns blue on hover */
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transform: translateY(-1px);
    }

    .payment-row-card.expanded-active {
        border-color: var(--primary-blue);
        box-shadow: 0 6px 16px rgba(23, 79, 157, 0.12);
    }

/* Revert the button to blue since the card is now white */
.btn-expand-arrow {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .btn-expand-arrow:hover {
        background-color: var(--hover-blue);
        transform: scale(1.05);
    }

    .btn-expand-arrow svg {
        transition: transform 0.3s ease;
    }

/* Give the details area a slight grey tint to separate it from the top row */
.details-expand-container {
    display: none;
    width: 100%;
    border-top: 1px solid #eaeaea;
    background-color: #fafbfc;
    color: #333333;
    padding: 20px 25px;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
}

/* =========================================================
   8. EXPANDABLE DETAILS ELEMENTS (Buttons & Containers)
   ========================================================= */
/* Invert the expand button: White background, Blue icon */
.btn-expand-arrow {
    background-color: #ffffff;
    color: var(--primary-blue);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .btn-expand-arrow:hover {
        background-color: #f0f0f0;
        transform: scale(1.05);
    }

    .btn-expand-arrow svg {
        transition: transform 0.3s ease;
    }

/* The expanded details container stays white so tables are easy to read */
.details-expand-container {
    display: none;
    width: 100%;
    /* Add a subtle white border at the top to separate it from the blue summary */
    border-top: 2px solid rgba(255,255,255,0.2);
    background-color: #ffffff;
    color: #333333;
    padding: 20px 25px;
    box-sizing: border-box;
    border-radius: 0 0 8px 8px;
}

/* =========================================================
   9. BULLETIN BOARD SPECIFIC SPACING (Overrides)
   ========================================================= */
/* turn off the flexbox gap because the broken database HTML is bypassing it */
.results-board-card .directory-list {
    display: block !important;
}

/* brute force a 20px space below EVERY card */
.results-board-card .directory-row-card {
    margin: 0 0 20px 0 !important;
    padding: 20px 25px !important;
}

    .results-board-card .directory-row-card:last-child {
        margin-bottom: 0 !important;
    }

/* crush the invisible top/bottom margins inside the DB message HTML */
.results-board-card .directory-info-section > div:last-child > *:first-child {
    margin-top: 0 !important;
}

.results-board-card .directory-info-section > div:last-child > *:last-child {
    margin-bottom: 0 !important;
}

/* =========================================================
   10. PRINT MEDIA QUERIES
   ========================================================= */
@media print {
    @page {
        margin: 0.5in;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .sidebar-nav, .Contents, .headerTitle, .headerImage, .header-user-block, .headerHorizontalLine, .btn-print, .btn-refresh, .action-column {
        display: none !important;
    }

    .ContentsAndMain, .Main, .search-page-layout {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .results-table th, .results-table td {
        padding: 8px 6px !important;
        font-size: 13px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .results-board-card {
        padding: 10px !important;
    }

    .table-scroll-container {
        height: auto !important;
        overflow: visible !important;
    }

    .results-table {
        width: 100% !important;
        table-layout: auto !important;
    }

    .disclaimer-text {
        color: #333333 !important;
        font-size: 11px !important;
    }
}

/* =========================================================
   11. PAYMENTS PAGE SPECIFIC LAYOUT & UTILITIES
   ========================================================= */

/* Board & Header */
.payments-board {
    max-width: 950px;
    margin: 0 auto;
}

.payments-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.payments-header-title {
    margin: 0;
    text-align: left;
}

.payments-btn-group {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

/* Main Summary Row */
.payment-summary-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 25px;
    width: 100%;
    box-sizing: border-box;
}

.payment-data-wrap {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 20px;
    min-width: 0;
}

/* Column Sizing */
.payment-col {
    flex: 1;
    min-width: 100px;
}

.payment-col-md {
    flex: 1;
    min-width: 120px;
}

.payment-col-sm {
    flex: 1;
    min-width: 80px;
}

.payment-col-lg {
    flex: 2;
    min-width: 150px;
}

/* Text & Labels */
.payment-label {
    color: #000;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.payment-val {
    color: #333;
}

.payment-val-light {
    color: #444;
}

.payment-val-highlight {
    color: var(--primary-blue);
    font-weight: bold;
}

.payment-action-wrap {
    padding-left: 15px;
    border-left: 1px solid #eee;
}

/* Expanded Details Section */
.details-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.details-table-wrap {
    width: 100%;
    border: 1px solid #eee;
    background: #ffffff;
}

.details-table-head {
    background: #f4f7fb;
}

.details-th {
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    color: black;
}

.details-th-right {
    padding: 10px;
    text-align: right;
    border-bottom: 2px solid #ddd;
    color: black;
}

.details-tr {
    border-bottom: 1px solid #eee;
}

.details-td {
    padding: 10px;
}

.details-td-right-highlight {
    padding: 10px;
    text-align: right;
    font-weight: bold;
    color: var(--primary-blue);
}

.details-empty-msg {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* =========================================================
   12. FAMILIES PAGE SPECIFIC & DROPDOWN UI
   ========================================================= */

/* Styled Theme Dropdown Selector */
.theme-select {
    background-color: #ffffff;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

    .theme-select:hover, .theme-select:focus {
        box-shadow: 0 0 0 2px rgba(23, 79, 157, 0.2);
    }

/* Family Details 3-Column Panel Grid */
.family-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-panel {
    border: 1px solid #cce5ff;
    border-radius: 4px;
    overflow: hidden; /* Keeps the header's top corners rounded */
}

/* Now uses the default primary blue instead of light blue */
.detail-panel-header {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 5px 10px;
    font-weight: bold;
    text-align: center;
}

.detail-panel-body {
    padding: 10px;
    font-size: 0.9em;
    line-height: 1.6;
    background-color: #ffffff;
}

    .detail-panel-body.centered-text {
        text-align: center;
    }

/* Table Header overriding to primary blue */
.details-table-head.primary-theme {
    background-color: var(--primary-blue);
}

    .details-table-head.primary-theme th {
        color: #ffffff;
    }
