/* Hero header actions — square corners, primary = secondary row width */

.loans-header .header-actions,
.loans-header .header-actions-stack,
.books-header .header-actions,
.books-header .header-actions-stack,
.authors-header .header-actions,
.authors-header .header-actions-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    min-width: 17rem;
    max-width: 19rem;
    width: 100%;
    margin-left: auto;
}

.loans-header .header-actions > .btn,
.loans-header .header-actions > a.btn,
.loans-header .header-actions-stack > .btn,
.loans-header .header-actions-stack > a.btn,
.books-header .header-actions > .btn-lg,
.books-header .header-actions > a.btn-primary,
.books-header .header-actions > a.btn-success,
.books-header .header-actions-stack > a.btn,
.authors-header .header-actions > a.btn,
.authors-header .header-actions-stack > a.btn {
    width: 100% !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    padding: 0.7rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

.loans-header .header-actions .export-actions,
.loans-header .header-actions .dashboard-header-btns,
.books-header .header-actions .export-actions,
.books-header .header-actions-stack .export-actions,
.books-header .header-actions-stack .dashboard-header-btns,
.authors-header .header-actions .export-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin: 0 !important;
}

.loans-header .header-actions .export-actions .btn,
.loans-header .header-actions .dashboard-header-btns .btn,
.loans-header .header-actions .export-actions a,
.loans-header .export-actions .btn-outline-primary,
.loans-header .export-actions a.btn,
.books-header .export-actions .btn,
.books-header .dashboard-header-btns .btn,
.authors-header .export-actions .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
}

.loans-header .btn,
.loans-header a.btn,
.loans-header button.btn,
.books-header .btn,
.books-header a.btn,
.authors-header .btn,
.authors-header a.btn {
    border-radius: 0 !important;
}

.loans-header .stat-item,
.books-header .stat-item,
.authors-header .stat-item,
.quick-stats .stat-item {
    border-radius: 0 !important;
}

@media (max-width: 991px) {
    .loans-header .header-actions,
    .books-header .header-actions,
    .books-header .header-actions-stack,
    .authors-header .header-actions {
        max-width: none;
        margin-left: 0;
        margin-top: 1rem;
    }
}
