/* ============================================================
   Board Packages Styles
   Dedicated styles for the Board Packages / Reports pages
   ============================================================ */

/* Icon vertical alignment fix */
.bp-section-heading i,
.bp-year-heading i,
.bp-year-pill i,
.bp-toggle-btn i,
.bp-attachment-item i,
.bp-attachment-count i,
.bp-archive-item i {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
}

/* Section Heading */
.bp-section-heading {
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #065D8F;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Cards */
.bp-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bp-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Featured / Current Package Card */
.bp-featured {
    border-left: 4px solid #065D8F;
}

/* Date Badge */
.bp-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.4rem 0.5rem;
    background: rgba(6, 93, 143, 0.07);
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.bp-date-badge-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #065D8F;
    line-height: 1;
}

.bp-date-badge-day {
    font-size: 1.15rem;
    font-weight: 700;
    color: #065D8F;
    line-height: 1.2;
}

/* Attachment table */
.bp-attachment-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 0.3rem;
    font-size: 0.875rem;
}

.bp-attachment-table tr {
    background: #f8f9fc;
    border-radius: 0.375rem;
    transition: background 0.15s ease;
}

.bp-attachment-table tr:hover {
    background: #eef1f6;
}

.bp-attachment-table td {
    padding: 0.5rem 0.6rem;
    vertical-align: middle;
}

.bp-attachment-table td:first-child {
    border-radius: 0.375rem 0 0 0.375rem;
}

.bp-attachment-table td:last-child {
    border-radius: 0 0.375rem 0.375rem 0;
}

.bp-attachment-table-icon {
    width: 2.75rem;
}

.bp-attachment-table-name {
    word-break: break-word;
    overflow-wrap: break-word;
}

.bp-attachment-table-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.bp-attachment-table-name a:hover {
    color: #065D8F;
    text-decoration: underline;
}

.bp-attachment-table-name a:focus-visible {
    outline: 2px solid #065D8F;
    outline-offset: 2px;
}

.bp-attachment-table-size {
    width: 5.5rem;
    text-align: right;
    white-space: nowrap;
}

.bp-attachment-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 93, 143, 0.07);
    border-radius: 0.25rem;
    color: #065D8F;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Archive List Item */
.bp-archive-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f4;
    transition: background 0.15s ease;
}

.bp-archive-item:last-child {
    border-bottom: none;
}

.bp-archive-item:hover {
    background: #f8f9fc;
}

/* Attachment count pill */
.bp-attachment-count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    background: rgba(6, 93, 143, 0.07);
    color: #065D8F;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Toggle button */
.bp-toggle-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: #065D8F;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.bp-toggle-btn:hover {
    background: rgba(6, 93, 143, 0.05);
    border-color: #065D8F;
}

.bp-toggle-btn:focus-visible {
    outline: 2px solid #065D8F;
    outline-offset: 2px;
}

.bp-toggle-btn .bi-chevron-down {
    transition: transform 0.2s ease;
}

.bp-toggle-btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* ============================================================
   Year Pills Navigation
   ============================================================ */

.bp-year-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bp-year-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: rgba(6, 93, 143, 0.06);
    color: #065D8F;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(6, 93, 143, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.bp-year-pill i {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.bp-year-pill:hover {
    background: rgba(6, 93, 143, 0.14);
    border-color: rgba(6, 93, 143, 0.3);
    color: #065D8F;
}

.bp-year-pill:focus-visible {
    outline: 2px solid #065D8F;
    outline-offset: 2px;
}

.bp-year-pill.active {
    background: #065D8F;
    border-color: #065D8F;
    color: #ffffff;
}

.bp-year-pill.active .bp-year-pill-count {
    background: #3c7899;
    color: #ffffff;
}

.bp-year-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.4rem;
    padding: 0 0.35rem;
    border-radius: 50%;
    background: rgba(6, 93, 143, 0.12);
    font-size: 0.7rem;
    font-weight: 700;
    color: #065D8F;
    line-height: 1;
}

/* ============================================================
   Year Section Heading (collapsible accordion button)
   ============================================================ */

.bp-year-section {
    margin-bottom: 0.5rem;
    scroll-margin-top: 6.25rem;
}

.bp-year-heading {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: #065D8F;
    padding: 0.75rem 0;
    border-bottom: 2px solid #e2e8f0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.bp-year-heading:hover {
    color: #054a72;
}

.bp-year-heading:focus-visible {
    outline: 2px solid #065D8F;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.bp-year-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: #636270;
    margin-left: 0.75rem;
}

.bp-year-chevron {
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.bp-year-heading[aria-expanded="true"] .bp-year-chevron {
    transform: rotate(180deg);
}

.bp-year-heading[aria-expanded="false"] {
    border-bottom-color: transparent;
}

/* ============================================================
   Empty State
   ============================================================ */

.bp-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.bp-empty-icon {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 93, 143, 0.07);
    border-radius: 50%;
    color: #065D8F;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* ============================================================
   Print
   ============================================================ */

@media print {
    .bp-toggle-btn,
    .bp-year-pills {
        display: none !important;
    }
    .bp-year-section .collapse,
    .bp-archive-item .collapse {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }
}

/* WCAG Contrast Fix */
.bp-card .text-muted {
    color: #636270 !important;
}
