/**
 * A-MIS global page headers — all admin / master layout pages.
 */
.main-content {
    background: #f1f5f9 !important;
}

.main-content .section {
    padding: 1.25rem 1.5rem 1.5rem;
}

.main-content .section > *:first-child {
    margin-top: 0 !important;
}

.main-wrapper-1 .main-content .section .section-header {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    border-top: none;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.main-content .section .section-header,
.main-content .section .section-header.app-page-header,
.main-content .section .section-header.dashboard-page-header {
    border-radius: 0 !important;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ffc107;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 1.1rem 1.35rem;
    margin-bottom: 1.5rem;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.main-content .section .section-header h1 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.3;
    flex: 1 1 220px;
    min-width: 0;
}

.main-content .section .section-header h1 i {
    color: #ca8a04;
    margin-right: 0.45rem;
}

.app-page-subtitle,
.dashboard-page-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.45;
}

.app-page-header-main,
.dashboard-page-header-main {
    flex: 1 1 220px;
    min-width: 0;
}

.main-content .section .section-header .section-header-breadcrumb {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    order: 2;
}

.main-content .section .section-header .section-header-breadcrumb .breadcrumb-item {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
}

.main-content .section .section-header .section-header-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.main-content .section .section-header .section-header-breadcrumb .breadcrumb-item a:hover {
    color: #ca8a04;
}

.main-content .section .section-header .section-header-breadcrumb .breadcrumb-item.active,
.main-content .section .section-header .section-header-breadcrumb .breadcrumb-item.active a {
    color: #0f172a;
    font-weight: 600;
}

.main-content .section .section-header .section-header-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding-right: 0.35rem;
    color: #cbd5e1;
    font-weight: 400;
}

.main-content .section .section-header .section-header-button,
.main-content .section .section-header .app-page-header-actions {
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    order: 3;
}

.main-content .section .section-header .section-header-button .btn,
.main-content .section .section-header .app-page-header-actions .btn {
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 !important;
}

.main-content .section .section-header .section-header-back {
    margin-right: 0;
    order: 0;
}

.main-content .section .section-body {
    padding-top: 0;
}

.main-content .section .section-body > .card,
.main-content .section .section-body .card.card-primary {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.25rem;
}

.main-content .section .section-body .card .card-header {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.main-content .section .section-body .card .card-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 767px) {
    .main-content .section {
        padding: 1rem;
    }

    .main-content .section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content .section .section-header .section-header-breadcrumb,
    .main-content .section .section-header .section-header-button,
    .main-content .section .section-header .app-page-header-actions {
        margin-left: 0;
        width: 100%;
        order: unset;
    }

    .main-content .section .section-header .section-header-button .btn,
    .main-content .section .section-header .app-page-header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
