@media print {
    ::-webkit-scrollbar {
        display: none;
    }
}

:root
{
    --bs-box-shadow-lg: 0 1rem 3rem rgb(0 0 0 / 30%) !important;
}

.offcanvas {
    --bs-offcanvas-width: 30vw;
}

.min-vh-25{
    min-height: 25vh;
}

.min-vh-50{
    min-height: 50vh;
}

html {
    font-size: 14px;
}

html,body {
    min-height: 100%;
    margin:0;
    overflow: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.modal-fw{
    --bs-modal-width: 90vw;
}

header {
    position:fixed;
    left:0;
    top:0;
    width: 100%;
    height: fit-content;
    box-shadow: 0 4px 8px rgba(0,0,0,0.33);
    z-index: 200;
}

header .navbar .nav-link {
    color: #FAFAFA;
    transition: text-shadow 0.2s ease;
}
header .navbar .nav-link:hover,
header .navbar .nav-link:active {
    text-shadow: 0 1px 5px rgba(255,255,255,0.75);
}
header .navbar .dropdown-menu {
    margin-top:8px;
    transition: all 0.3s ease;
}

.navbar-nav {
    position: relative;
}

footer {
    position:fixed;
    left:0;
    bottom:0;
    width: 100%;
    height: fit-content;
    border-top: 1px solid #2c2c2c;
}

main {
    height:100vh;
    padding:59px 0;
}

#content-wrapper.show-welcome{
    position: relative;
}

#content-wrapper .nav,
#content-wrapper .tab-content,
#content-wrapper #sars-connect {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#content-wrapper.show-sars #mainTabs.nav,
#content-wrapper.show-sars #mainTabsContent.tab-content {
    opacity: 0;
    pointer-events: none;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#content-wrapper.show-welcome #sars-connect,
#content-wrapper:not(.show-sars) #sars-connect {
    opacity: 0;
    pointer-events: none;
    display: none;
}

#content-wrapper.show-sars #sars-connect {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

#welcome{
    position:fixed;
    left:0;
    top:0;
    width: 100%;
    height: 100%;
    display:flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}
#content-wrapper.show-welcome #welcome{
    opacity: 1;
}

span#selectedUserSpan {
    font-size: 1.2em;
}

button#selectedYear {
    font-size: 1.2em;
}

.select2-container--bootstrap-5 .select2-dropdown,
.select2-container--default .select2-dropdown {
    border-color: #dee2e6;
    z-index: 9999;
}

body.modal-open .offcanvas-backdrop{
    z-index:1060;
}
.offcanvas{
    z-index:1065;
}

/* Clients Panel */
/* Sidebars */
#client-sidebar, #totals-sidebar {
    width: 300px;
    min-width: 300px !important;
    height: 100%;
    transition: all 0.3s;
    overflow-y: auto;
    border-top: 1px solid #2c2c2c;
    z-index: 100;
}
#totals-sidebar {
    width: 400px;
}

#client-sidebar {
    border-right: 1px solid #dee2e6;
}

#totals-sidebar {
    border-left: 1px solid #dee2e6;
}

#client-sidebar.collapsed, #totals-sidebar.collapsed {
    width: 110px;
    min-width: 110px !important;
}

#client-sidebar .sidebar-content,
#client-sidebar .sidebar-title,
#totals-sidebar .sidebar-content,
#totals-sidebar .sidebar-title {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease;
    overflow-x: hidden;
}

#client-sidebar .sidebar-title,
#totals-sidebar .sidebar-title {
    transition: font-size 0.05s;
}

#client-sidebar .sidebar-title,
#totals-sidebar .sidebar-title,
#client-sidebar.collapsed,
#totals-sidebar.collapsed{
    overflow: hidden;
}
#client-sidebar.collapsed .sidebar-title,
#totals-sidebar.collapsed .sidebar-title {
    font-size: 0.8em;
}

#client-sidebar.collapsed .sidebar-content,
#client-sidebar.collapsed .sidebar-client-info,
#totals-sidebar.collapsed .sidebar-content {
    opacity: 0;
    visibility: hidden;
}

#client-sidebar .sidebar-toggle i,
#totals-sidebar .sidebar-toggle i {
    display:block;
    transition: transform 0.3s;
}

#client-sidebar.collapsed .sidebar-toggle i,
#totals-sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar-header {
    border-bottom: 1px solid #dee2e6;
}

.sidebar-toggle {
    color: #212529;
    text-decoration: none;
}

.sidebar-toggle i {
    transition: transform 0.3s;
}

#ModalDIV[data-role="confirm"] .btn[data-role="info"],
#ModalDIV[data-role="info"] .btn[data-role="confirm"]{
    display:none;
}

.bg-light-transparent {
    --bs-bg-opacity: 0.5;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

/* Main Content */
#main-content {
    transition: all 0.3s;
    overflow: hidden;
}

.content-wrapper {
    border: 1px solid #2086C824;
}

.content-wrapper,
.tab-content,
.tab-pane{
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}
.tab-pane-inner{
    height: fit-content !important;
}

/* Tabs */
.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 500;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tables */
.table tr.selected {
    background-color: #e9ecef;
}

.table tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Client Panel */
#client-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.sidebar-content {
    flex-grow: 1;
}

/* Other */
.bg-taxbox {
    background: #1f1f47;
}

.fs-7 {
    font-size: 0.9rem;
}
.fs-8 {
    font-size: 0.85rem;
}
.fs-9 {
    font-size: 0.8rem;
}

.fs-small {
    font-size: 0.9em;
}

.vh-15{
    height: 15vh;
}

.vh-20{
    height: 20vh;
}

.mh-50{
    max-height: 50%;
}

.mh-50-vh{
    max-height: 50vh;
}

.btn-primary-light {
    --bs-btn-color: #fff;
    --bs-btn-bg: #3586ff;
    --bs-btn-border-color: #3586ff;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1a65d6;
    --bs-btn-hover-border-color: #1a65d6;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1a65d6;
    --bs-btn-active-border-color: #1a65d6;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #3586ff;
    --bs-btn-disabled-border-color: #3586ff;
}

.card-title {
    font-size: 1.2em;
}

.nav-pills button.nav-link,
.btn.btn-taxbox {
    background-color: #2086C8;
    border: 1px solid #2086C8;
    color:#FFF;
}

.nav-pills button.nav-link:active,
.nav-pills button.nav-link.active,
.btn.btn-taxbox:active {
    background-color: #167ab3  !important;
    border: 1px solid #167ab3 !important;
    color:#FFF;
}

.nav-pills button.nav-link:hover,
.btn.btn-taxbox:hover {
    background-color: #167ab3 !important;
    border: 1px solid #167ab3 !important;
    color:#FFF;
}

.table.taxbox-table tr.table-selected {
    --bs-table-bg: #c7ffe6 !important;
    --bs-table-hover-bg: none !important;
}

.table.taxbox-table tr:hover {
    --bs-table-bg: none !important;
    --bs-table-hover-bg: #ade3cb !important;
    cursor: pointer;
}

.navbar-brand{
    background: #FFF;
    color: #000;
    padding: 13px;
    margin: -8px -9px -8px;
    margin-right: 20px;
    /*
    border-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    */
    padding-right: 25px;
    transition: text-shadow 200ms ease;
}
.navbar-brand:hover,
.navbar-brand:active{
    color: #000;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.flex-grow-2{
    flex:2;
}
.flex-grow-3{
    flex:3;
}
.flex-grow-4{
    flex:4;
}

.mw-50-vw{
    min-width: 50vw;
}

.mw-30-vw{
    min-width: 30vw;
}

#client-sidebar .sidebar-content .bi{
    font-size:1.5rem !important;
}

/* Media Queries */
@media (min-width: 1601px) and (max-width: 1920px) {
    .card-title {
        font-size: 1rem;
    }
    html{
        font-size:13px;
    }
    button.btn {
        font-size:13px;
    }
    #CalcButtonsDIV .d-grid{
        gap: 0 !important;
    }
}
@media (min-width: 1367px) and (max-width: 1600px) {
    #client-sidebar, #totals-sidebar {
        width: 260px;
        min-width: 260px !important;
    }
    .card-title {
        font-size: 1rem;
    }
    html{
        font-size:12px;
    }
    button.btn {
        font-size:12px;
    }
    #CalcButtonsDIV .d-grid{
        gap: 0 !important;
    }
}

@media (max-width: 1366px) {
    .table>:not(caption)>*>* {
        padding: .3rem .3rem;
    }
    #client-sidebar, #totals-sidebar {
        width: 220px;
        min-width: 220px !important;
    }
    .card-title {
        font-size: 0.9em;
    }
    html{
        font-size:11px;
    }
    button.btn {
        font-size:11px;
    }
    .navbar-brand{
        padding: 7px;
        margin: -7px;
        margin-right: 10px;
        padding-right: 15px;
    }
    .navbar-brand img{
        height: 20px !important;
    }
    main {
        padding: 35px 0 !important;
    }
    #CalcButtonsDIV .d-grid{
        gap: 0 !important;
    }
}