/* Report layout picker popup - same visual recipe as the Chart of Accounts
   "create a parent or child account" chooser (.coa-modal-shell / .coa-choice-*),
   generalized to any number of options. The report itself is NOT shown here - picking
   an option (or there only being 0/1 to begin with) opens the report in a new tab. */

.bos-report-picker-shell {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.bos-report-picker-shell[hidden] {
    display: none;
}

.bos-report-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 27, .58);
    backdrop-filter: blur(3px);
}

.bos-report-picker-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    background: var(--surface, #fff);
    border: 1px solid var(--border, #dce3e8);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    padding: 26px;
    animation: bosReportPickerPop .15s ease-out;
}

.bos-report-picker-close {
    position: absolute;
    right: 15px;
    top: 13px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted, #71808a);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.bos-report-picker-close:hover {
    background: var(--surface-2, #f8fafb);
    color: var(--text, #26323a);
}

.bos-report-picker-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    color: var(--bos-blue, #0798C5);
    margin-bottom: 4px;
}

.bos-report-picker-modal h2 {
    margin: 0;
    font-size: 21px;
    color: var(--text, #26323a);
}

.bos-report-picker-subtitle {
    margin: 7px 0 0;
    color: var(--muted, #71808a);
    font-size: 12px;
    line-height: 1.5;
}

.bos-report-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.bos-report-picker-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    text-decoration: none;
    border: 1px solid var(--border, #dce3e8);
    background: var(--surface-2, #f8fafb);
    color: var(--text, #26323a);
    border-radius: 13px;
    padding: 16px;
    min-height: 90px;
    cursor: pointer;
    transition: .15s ease;
}

.bos-report-picker-card:hover {
    border-color: var(--bos-blue, #0798C5);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(7, 152, 197, .15);
}

.bos-report-picker-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--bos-blue, #0798C5), var(--bos-blue-dark, #066a91));
    color: #fff;
}

.bos-report-picker-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bos-report-picker-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bos-report-picker-copy strong {
    font-size: 14px;
}

.bos-report-picker-copy small {
    color: var(--muted, #71808a);
    font-size: 11px;
}

.bos-report-picker-badge {
    justify-self: end;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface, #fff);
    color: var(--muted, #71808a);
    border: 1px solid var(--border, #dce3e8);
    white-space: nowrap;
}

body.bos-report-picker-open {
    overflow: hidden;
}

@keyframes bosReportPickerPop {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
    .bos-report-picker-grid {
        grid-template-columns: 1fr;
    }

    .bos-report-picker-shell {
        padding: 8px;
        place-items: end center;
    }

    .bos-report-picker-modal {
        border-radius: 15px 15px 0 0;
        width: 100%;
    }
}
