body {
    background-color: rgba(248,249,250, 1) !important;
}

main {
    padding-top: 4.5rem;
}

#toast-container{
    padding-top: 3.5rem;
}

.pfadkg-data-table td:last-child,
.filter-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

/* Calendar / timeline view */
#pastors-calendar-view .pfadkg-calendar-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

#pastors-calendar-view .table-responsive {
    margin-bottom: 0;
    padding-bottom: 10px;
}

#pastors-calendar-view table.pfadkg-calendar-table {
    table-layout: auto;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--bs-table-border-color);
    border-left: 0;
}

#pastors-calendar-view .pfadkg-calendar-table th,
#pastors-calendar-view .pfadkg-calendar-table td {
    min-width: 100px;
    border: 0;
    border-right: 1px solid var(--bs-table-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    background-clip: padding-box;
}

#pastors-calendar-view .pfadkg-calendar-table tr > :last-child {
    border-right: 0;
}

#pastors-calendar-view .pfadkg-calendar-table tbody tr:last-child > td {
    border-bottom: 0;
}

#pastors-calendar-view .pfadkg-calendar-table th:nth-child(1),
#pastors-calendar-view .pfadkg-calendar-table td:nth-child(1),
#pastors-calendar-view .pfadkg-calendar-table th:nth-child(2),
#pastors-calendar-view .pfadkg-calendar-table td:nth-child(2),
#pastors-calendar-view .pfadkg-calendar-table th:nth-child(3),
#pastors-calendar-view .pfadkg-calendar-table td:nth-child(3) {
    position: sticky;
    background-color: var(--bs-body-bg);
    min-width: 110px;
}

#pastors-calendar-view .pfadkg-calendar-table th:nth-child(3),
#pastors-calendar-view .pfadkg-calendar-table td:nth-child(3) {
    min-width: 140px;
    border-right: 3px solid var(--bs-table-border-color);
}

#pastors-calendar-view .pfadkg-calendar-table thead th:nth-child(1),
#pastors-calendar-view .pfadkg-calendar-table thead th:nth-child(2),
#pastors-calendar-view .pfadkg-calendar-table thead th:nth-child(3) {
    background-color: var(--bs-table-bg);
    z-index: 3;
}

#pastors-calendar-view .pfadkg-calendar-table tbody td:nth-child(1),
#pastors-calendar-view .pfadkg-calendar-table tbody td:nth-child(2),
#pastors-calendar-view .pfadkg-calendar-table tbody td:nth-child(3) {
    z-index: 2;
}

#pastors-calendar-view .pfadkg-calendar-table td.table-info + td.table-info,
#pastors-calendar-view .pfadkg-calendar-table td.table-danger + td.table-danger,
#pastors-calendar-view .pfadkg-calendar-table td.table-info + td.table-danger,
#pastors-calendar-view .pfadkg-calendar-table td.table-danger + td.table-info {
    border-left: none;
}

#pastors-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-info),
#pastors-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-danger),
#pastors-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-danger),
#pastors-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-info) {
    border-right: none;
}

#pastors-calendar-view .pfadkg-calendar-table td.table-info,
#pastors-calendar-view .pfadkg-calendar-table td.table-danger {
    background-clip: content-box;
    padding-left: 0;
    padding-right: 0;
}

#pastors-calendar-view .pfadkg-calendar-table th:nth-child(1),
#pastors-calendar-view .pfadkg-calendar-table td:nth-child(1) {
    left: 0;
    border-left: 1px solid var(--bs-table-border-color);
}

#pastors-calendar-view .pfadkg-calendar-table th:nth-child(2),
#pastors-calendar-view .pfadkg-calendar-table td:nth-child(2) {
    left: 110px;
}

#pastors-calendar-view .pfadkg-calendar-table th:nth-child(3),
#pastors-calendar-view .pfadkg-calendar-table td:nth-child(3) {
    left: 220px;
}

.pfadkg-calendar-fixed-col {
    white-space: nowrap;
    min-width: 90px;
    padding-right: .6rem;
}

.pfadkg-calendar-time-col {
    min-width: 55px;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 6px;
}

/* Employments calendar variant: first column sticky only */
#employments-calendar-view .pfadkg-calendar-scroll-wrapper,
#assignments-calendar-view .pfadkg-calendar-scroll-wrapper,
#elections-calendar-view .pfadkg-calendar-scroll-wrapper,
#revenue-calendar-view .pfadkg-calendar-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

#employments-calendar-view .table-responsive,
#assignments-calendar-view .table-responsive,
#elections-calendar-view .table-responsive,
#revenue-calendar-view .table-responsive {
    margin-bottom: 0;
    padding-bottom: 10px;
}

#employments-calendar-view table.pfadkg-calendar-table,
#assignments-calendar-view table.pfadkg-calendar-table,
#elections-calendar-view table.pfadkg-calendar-table,
#revenue-calendar-view table.pfadkg-calendar-table {
    table-layout: auto;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--bs-table-border-color);
    border-left: 0;
}

#employments-calendar-view .pfadkg-calendar-table th,
#employments-calendar-view .pfadkg-calendar-table td,
#assignments-calendar-view .pfadkg-calendar-table th,
#assignments-calendar-view .pfadkg-calendar-table td,
#elections-calendar-view .pfadkg-calendar-table th,
#elections-calendar-view .pfadkg-calendar-table td,
#revenue-calendar-view .pfadkg-calendar-table th,
#revenue-calendar-view .pfadkg-calendar-table td {
    min-width: 100px;
    border: 0;
    border-right: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-table-border-color);
    background-clip: padding-box;
}

#employments-calendar-view .pfadkg-calendar-table tr > :last-child,
#assignments-calendar-view .pfadkg-calendar-table tr > :last-child,
#elections-calendar-view .pfadkg-calendar-table tr > :last-child,
#revenue-calendar-view .pfadkg-calendar-table tr > :last-child {
    border-right: 0;
}

#employments-calendar-view .pfadkg-calendar-table tbody tr:last-child > td,
#assignments-calendar-view .pfadkg-calendar-table tbody tr:last-child > td,
#elections-calendar-view .pfadkg-calendar-table tbody tr:last-child > td,
#revenue-calendar-view .pfadkg-calendar-table tbody tr:last-child > td {
    border-bottom: 0;
}

#employments-calendar-view .pfadkg-calendar-table td.table-info + td.table-info,
#employments-calendar-view .pfadkg-calendar-table td.table-danger + td.table-danger,
#employments-calendar-view .pfadkg-calendar-table td.table-info + td.table-danger,
#employments-calendar-view .pfadkg-calendar-table td.table-danger + td.table-info,
#assignments-calendar-view .pfadkg-calendar-table td.table-info + td.table-info,
#assignments-calendar-view .pfadkg-calendar-table td.table-danger + td.table-danger,
#assignments-calendar-view .pfadkg-calendar-table td.table-info + td.table-danger,
#assignments-calendar-view .pfadkg-calendar-table td.table-danger + td.table-info,
#elections-calendar-view .pfadkg-calendar-table td.table-info + td.table-info,
#elections-calendar-view .pfadkg-calendar-table td.table-danger + td.table-danger,
#elections-calendar-view .pfadkg-calendar-table td.table-info + td.table-danger,
#elections-calendar-view .pfadkg-calendar-table td.table-danger + td.table-info,
#revenue-calendar-view .pfadkg-calendar-table td.table-info + td.table-info,
#revenue-calendar-view .pfadkg-calendar-table td.table-danger + td.table-danger,
#revenue-calendar-view .pfadkg-calendar-table td.table-info + td.table-danger,
#revenue-calendar-view .pfadkg-calendar-table td.table-danger + td.table-info {
    border-left: none;
}

#employments-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-info),
#employments-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-danger),
#employments-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-danger),
#employments-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-info),
#assignments-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-info),
#assignments-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-danger),
#assignments-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-danger),
#assignments-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-info),
#elections-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-info),
#elections-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-danger),
#elections-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-danger),
#elections-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-info),
#revenue-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-info),
#revenue-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-danger),
#revenue-calendar-view .pfadkg-calendar-table td.table-info:has(+ td.table-danger),
#revenue-calendar-view .pfadkg-calendar-table td.table-danger:has(+ td.table-info) {
    border-right: none;
}

#employments-calendar-view .pfadkg-calendar-table td.table-info,
#assignments-calendar-view .pfadkg-calendar-table td.table-info,
#elections-calendar-view .pfadkg-calendar-table td.table-info,
#revenue-calendar-view .pfadkg-calendar-table td.table-info {
    background-clip: content-box;
    padding-left: 0;
    padding-right: 0;
    border-bottom-color: var(--bs-border-color);
}

#employments-calendar-view .pfadkg-calendar-table th:nth-child(1),
#employments-calendar-view .pfadkg-calendar-table td:nth-child(1),
#assignments-calendar-view .pfadkg-calendar-table th:nth-child(1),
#assignments-calendar-view .pfadkg-calendar-table td:nth-child(1),
#elections-calendar-view .pfadkg-calendar-table th:nth-child(1),
#elections-calendar-view .pfadkg-calendar-table td:nth-child(1),
#revenue-calendar-view .pfadkg-calendar-table th:nth-child(1),
#revenue-calendar-view .pfadkg-calendar-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 280px;
    background-color: var(--bs-body-bg);
    border-left: 1px solid var(--bs-table-border-color);
    border-right: 3px solid var(--bs-table-border-color);
}

#employments-calendar-view .pfadkg-calendar-table thead th:nth-child(1),
#assignments-calendar-view .pfadkg-calendar-table thead th:nth-child(1),
#elections-calendar-view .pfadkg-calendar-table thead th:nth-child(1),
#revenue-calendar-view .pfadkg-calendar-table thead th:nth-child(1) {
    z-index: 3;
    background-color: var(--bs-table-bg);
}

.pfadkg-calendar-time-col.text-start strong {
    padding-left: .5rem;
}

#pfadkg-login-form #username {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
#pfadkg-login-form #password {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Login page layout */
.pfadkg-login-page,
.pfadkg-login-forgot-password-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pfadkg-login-topbar {
    height: 28px;
    background-color: darkturquoise;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1;
}

.pfadkg-login-topbar-version {
    justify-self: start;
    white-space: nowrap;
}

.pfadkg-login-topbar-title {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pfadkg-login-topbar-spacer {
    justify-self: end;
    width: 1px;
    height: 1px;
}

.pfadkg-login-page main.form-signin,
.pfadkg-login-forgot-password-page main.form-signin {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfadkg-login-page #pfadkg-login-form,
.pfadkg-login-forgot-password-page #pfadkg-login-forgot-password-form {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .175);
    box-shadow: 0 .5rem 1rem #00000026;
}


@media (max-width: 576px) {
    .pfadkg-login-topbar {
        font-size: 11px;
        padding: 4px 8px;
        height: auto;
        grid-template-columns: 1fr;
        grid-template-areas:
            "version"
            "title";
        row-gap: 2px;
        align-items: start;
    }

    .pfadkg-login-topbar-version {
        grid-area: version;
        justify-self: center;
        text-align: center;
        white-space: nowrap;
    }

    .pfadkg-login-topbar-title {
        grid-area: title;
        justify-self: center;
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.2;
        padding: 0;
    }

    .pfadkg-login-topbar-spacer {
        display: none;
    }

    .pfadkg-login-page main.form-signin {
        align-items: flex-start;
        padding-top: 16vh;
    }
}

@media (min-width: 576px) {
    #pfadkg-area-tab .nav-link {
        width: 25%;
    }
}

nav[aria-label$="pagination"] {
    padding-bottom: 1px;
}
