/*===== GENERAL STYLES =====*/
@font-face {
    font-family: 'Montserrat';
    font-display: block;
    src: url('../assets/fonts/Montserrat-Regular.woff') format('woff');
}
:root {
    --main-color: #950404;
    --main-color-light: #D00000;
    --main-blue: #212d45;

    --text-black: #212529;
    --text-gray : #888b9f;
    --input-label-color: #8590AD;

    --main-font: "Montserrat";
    --cursive-font: "Montserrat" , cursive;

    --big-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.875rem;

    --gold-color : #fbb900;
    --success: #198754;
    --danger: #dc3545;
    --warning: #d97706;
    --primary: #007bff;
    --info:#17A2B4;
    --royal-blue:#318CE7;

    --blue-gray-color: #4a76a8;

    --border-color: #ccc;
    --main-background: #f1f5f9;
  
    --sidebar-width: 14rem;
    --sidebar-width-check: 5rem;
  
    --box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

    /* Dashboard */
    --page-header-bgColor: white;
    /* --page-header-bgColor: whitesmoke; */
    --page-header-bgColor-hover: #212d45;
    /* --page-header-bgColor-hover: #D17271; */
    --page-header-txtColor: #212d45;
    --page-header-headingColor: #950404;
    --page-header-width: 240px;
    --page-content-bgColor: #fff;
    --page-content-txtColor: #212529;
    --page-content-blockColor: #fff;

    --border-radius: 4px;
    --box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.075);
    --switch-bgLightModeColor: #87cefa;
    --switch-sunColor: gold;
    --switch-moonColor: #f4f4f4;
    --switch-bgDarkModeColor: #1f1f27;
}

@media screen and (min-width: 768px){
    :root{
        --big-font-size: 2.5rem;
        --normal-font-size: 1rem;
    }  
}

*,
*::after,
*::before{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: var(--main-font);
    line-height: 1.5;
    color: var(--text-black);
    font-size: 1rem;
    box-sizing: border-box;
    margin: 0;
}
html{
    scroll-behavior: smooth;
}
a{
    text-decoration: none;
}
ul {
    list-style: none;
}

a,
  button {
    color: inherit;
}
.d-none{
    display: none;
}
#subexpenses-conatiner ul{
    list-style: initial;
}
button {
    background: none;
    cursor: pointer;
}
.bg-main-color{
    background-color: var(--main-color);
}
.hover-main-color:hover{
    background-color: var(--main-color);
}
.bg-main-blue{
    background-color: var(--main-blue);
}

.bg-btn-add{
    color: var(--white);
    background-color: var(--royal-blue);
}
.bg-btn-update{
    color: var(--white);
    background-color: var(--info);
}
.bg-btn-delete{
    color: var(--white);
    background-color: var(--danger);
}
.bg-btn-add, .bg-btn-update, .bg-btn-delete{
    color: white;
    font-size: 1rem;
    transition: all .3s ease-in-out;
}

.text-main-color{
    color: var(--main-color);
}
.text-main-blue{
    color: var(--main-blue);
}

a:hover{
    text-decoration: none;
}
.is-checked{
    color: var(--main-color);
    font-weight: 600;
    border-bottom: 4px solid var(--main-color);
}
.footer{
    width: 100%;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #212529;
}
.footer p{
    color: #fff;
    font-size: 1rem;
}


/* ===== Common btn =====*/
.submit-btn{
    padding: .5rem 1rem;
    font-size: 16px;
    color: white;
    border-radius: .2rem;
    background-color: var(--main-blue) !important;
    transition: all .4s ease-in-out;
}
.submit-btn:hover{
    transform: translateY(-5px)
}
/* ===== Pop up styles ===== */
.banners-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.banner {
    background-color: white;
    font-weight: 500;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.banner .banner-message {
    flex: 1;
    padding: 0 2rem;
    font-size: 1.2rem;
    color: #212529;
}
.banner .banner-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.banner.error .banner-icon i{
    color: var(--danger);
    font-size: 1.5rem;
}
.banner.success .banner-icon i{
    color: var(--success);
    font-size: 1.5rem;
}
.banner.warning .banner-icon i{
    color: var(--warning);
    font-size: 1.5rem;
}
.banner .banner-close:hover {
    background: rgba(0, 0, 0, 0.12);
}
  
.banner.success {
    border-bottom: 4px solid var(--success);
}

.banner.error {
    border-bottom: 4px solid var(--danger);
}

.banner.warning {
    border-bottom: 4px solid var(--warning);
}

.banner::after {
    content: "";
    position: absolute;
    height: 10rem;
    width: 100%;
    bottom: 100%;
    left: 0;
}
.banner:not(.visible) {
    display: none;
    transform: translateY(-100%);
}
.banner.visible {
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.12);
    animation-name: banner-in;
    animation-direction: forwards;
    animation-duration: 0.6s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}
  
@keyframes banner-in {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(10%);
    }
    100% {
        transform: translateY(0);
    }
}
.show-banner {
    appearance: none;
    background: #ededed;
    border: 0;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

/* ===== Loading content spinner styles ===== */

@media print {
    .hide-to-print {
        display: none;
    }
}

/*===== Spinner =====*/

@media screen and (max-width: 500px) {
    .banner .banner-message {
        padding: 0 1rem;
        font-size: 1rem;
    }
    .banner .banner-icon i{
        font-size: 1.2rem;
    }
}
@media screen and (max-width: 415px) {
    .banner .banner-message {
        padding: 0 .8rem;
        font-size: 14px;
    }
}
.required-input{
    color: var(--danger);
    font-size: 16px;
}
.input-error{
    font-size: 13px;
    color: var(--danger);
    font-weight: bold
}


/* ===== Webkits Scrollbar styles =====*/
::-webkit-scrollbar{
    width: 4px;
    background-color: var(--color-white);
}
::-webkit-scrollbar-thumb{
    /* border-radius: 4px; */
    background-color: var(--color-black);
}

::-webkit-scrollbar-track{
    box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    /* border-radius: 4px; */
    background-color: var(--color-white);
}
/* Scrollbar horizontal */
::-webkit-scrollbar:horizontal {
    height: 4px;
    background-color: var(--color-white);
}

::-webkit-scrollbar-thumb:horizontal {
    background-color: var(--color-black);
}

::-webkit-scrollbar-track:horizontal {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: var(--color-white);
}

header.page-header::-webkit-scrollbar-thumb{
    background-color: #f0f1f6;

}

.i-file{
    font-size: 2rem;
}
/* Breadcrumbs style */
ol.breadcrumb {
    padding: .5rem 1rem;
    list-style: none;
    background-color: #f0f1f6;
    border-radius: var(--border-radius);
}

ol.breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

ol.breadcrumb li+li:before {
    padding: 0 8px;
    color: var(--main-color);
    content: "\2022";
    font-size: 1.2rem;
}

ol.breadcrumb li.breadcrumb-item a {
    color: var(--main-blue);
    text-decoration: none;
}

ol.breadcrumb li.breadcrumb-item > span {
    color: var(--text-gray)
}
ol.breadcrumb li.breadcrumb-item i{
    color: var(--text-gray);
    font-size: 1.2em;
    padding-right: .5rem;
}
ol.breadcrumb li.breadcrumb-item a:hover {
    color: var(--main-color);
    text-decoration: underline;
}
  
.text-muted {
    color: #8898aa;
}


.empty-records{
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
}
/* Single stats card component styles */


/* DataTables additional styles */
table{
    width:100% !important; 
    padding: 1rem 0;  
}
.dataTables_wrapper select,
.dataTables_wrapper .dataTables_filter input {
    color: #4a5568;
    padding: .5rem 1rem;
    line-height: 1.25;
    border-width: 2px;
    border-radius: .25rem;
    border-color: #edf2f7;
    background-color: #edf2f7;
}

table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
    background-color: #ebf4ff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-weight: 700;
    border-radius: .25rem;
    border: none;
}
.dataTables_wrapper table thead tr th{
    color: #212529;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
    font-weight: 700;
    border-radius: .25rem;
    background: #950404 !important;
    border: none !important;
}
.dataTables_wrapper .dataTables_paginate a.paginate_button.current{
    color: white !important;
}

/*Pagination Buttons - Hover */
.dataTables_wrapper .dataTables_paginate a.paginate_button:hover {
    color: white !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
    font-weight: 700;
    border-radius: .25rem;
    border: 1px solid transparent;
}

/*Add padding to bottom border */
table.dataTable.no-footer {
    border-bottom: 1px solid #e2e8f0 !important;
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

/*Change colour of responsive icon*/
table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child:before {
    background-color: #950404 !important;
}
.more-btn{
    background-color: transparent;
}

.more-btn-dropdown.show {
  display: block;
}
.more-btn-icon{
    font-size: 1.2rem;
    text-align: center;
    color: var(--main-blue);
}
.modal{
    transition: all .4s ease-in-out;
    background-color: rgba(0, 0, 0, .5);
}