/* Custom overrides for the production accounting app */
body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar-title {
    min-width: 0;
}

.topbar-menu-btn {
    flex: 0 0 auto;
}

.topbar-mobile-title {
    min-width: 0;
    max-width: 100%;
}

.topbar .breadcrumb a {
    text-decoration: none;
    color: var(--bs-gray-200);
}

.topbar .breadcrumb .breadcrumb-item.active {
    color: var(--bs-gray-400);
}

.topbar-user {
    min-width: 0;
}

.topbar-user-desktop .fw-semibold,
.topbar-user-desktop .small {
    white-space: nowrap;
}

.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 260px;
    height: calc(100vh - 64px);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    background-color: var(--bs-body-bg);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-inner {
    padding: 1rem;
    height: 100%;
    overflow-y: auto;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1045;
}

.sidebar-backdrop.d-none {
    display: none !important;
}

.sidebar .accordion-button {
    font-weight: 500;
}

.sidebar .accordion-button:not(.collapsed) {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text);
    box-shadow: none;
}

.sidebar .accordion-button.sidebar-link-button::after {
    display: none;
}

.sidebar .accordion-button.sidebar-link-button.collapsed {
    color: inherit;
}

.sidebar .sidebar-link-active {
    background-color: var(--bs-primary);
    color: #fff;
}

.sidebar-submenu .list-group-item {
    border: 0;
}

.sidebar-submenu .list-group-item.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.placeholder-card {
    min-height: 180px;
}

.placeholder-col {
    color: var(--bs-secondary);
    font-style: italic;
}

#employeePhoneModal {
    z-index: 1065;
}

.modal-nested {
    z-index: 1055;
}

#employeePhoneModal + .modal-backdrop {
    z-index: 1060;
}

.access-switch-with-help label {
    font-weight: 600;
}

.access-switch-with-help .access-help {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

.access-switch-with-help .form-text {
    margin-bottom: 0;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f4c75 0%, #1b262c 100%);
}

.auth-main {
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-header .auth-logo {
    font-size: 3rem;
}

.auth-card {
    border: none;
    border-radius: 1rem;
}

.auth-card .form-text {
    font-size: 0.85rem;
}

.auth-card-wrapper {
    width: 100%;
    margin: 0 auto;
}

.auth-footer {
    width: 100%;
    padding: 0 1rem 1.5rem;
}

@media (max-width: 575px) {
    .auth-header .auth-logo {
        font-size: 2.5rem;
    }
}
.btn-group.gap-tight > .btn,
.btn-group.gap-tight > .btn + .btn,
.d-flex.gap-tight > .btn {
    margin-right: 5px;
}

.btn-group.gap-tight > .btn:last-child,
.d-flex.gap-tight > .btn:last-child {
    margin-right: 0;
}

\.btn\.btn-outline-secondary\.employee-action-btn,
.btn-group \.btn\.btn-outline-secondary\.employee-action-btn {
    border-color: #6c757d;
}

\.btn\.btn-outline-secondary\.employee-action-btn:hover,
.btn-group \.btn\.btn-outline-secondary\.employee-action-btn:hover {
    background-color: #6c757d;
    color: #fff;
    border-color: #545b62;
}


.dropdown-menu.dropdown-menu-tight .dropdown-item {
    padding-top: 0;
    padding-bottom: 0;
}

.btn.btn-outline-secondary.employee-action-btn,
.btn-group .btn.btn-outline-secondary.employee-action-btn {
    border-color: #6c757d;
}

.btn.btn-outline-secondary.employee-action-btn:hover,
.btn-group .btn.btn-outline-secondary.employee-action-btn:hover {
    background-color: #6c757d;
    color: #fff;
    border-color: #545b62;
}

@media (max-width: 767.98px) {
    .table tbody tr.payroll-comment-source > * {
        border-bottom: 0 !important;
    }

    .table tbody tr.payroll-comment-row > * {
        border-top: 0 !important;
    }
}

@media (min-width: 768px) {
    .payroll-filters.collapse,
    .payroll-filters.collapsing,
    .employee-filters.collapse,
    .employee-filters.collapsing {
        display: block !important;
        height: auto !important;
        visibility: visible;
        overflow: visible;
    }
}

#bankAccountsAccordion [data-bank-group-toggle] [data-bank-group-chevron] {
    transition: transform 0.18s ease-in-out;
}

#bankAccountsAccordion [data-bank-group-toggle][aria-expanded="true"] [data-bank-group-chevron] {
    transform: rotate(180deg);
}

