/* 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 .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 .fw-semibold,
.topbar-user .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;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0f4c75 0%, #1b262c 100%);
}

.auth-main {
    width: 100%;
    max-width: 560px;
}

.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 {
    max-width: 640px;
    margin: 0 auto;
}

.auth-footer {
    width: 100%;
}

@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;
}

