:root {
    --main-color: #2657FD;
    --color-dark: #1D2231;
    --text-grey: #8390A2;
}

:target {
    font-weight: bold;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.sidebar {
    width: 345px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--main-color);
    z-index: 100;
    transition: width 300ms;
}

.sidebar-brand {
    height: 90px;
    padding: 1rem 0rem 1rem 2rem;
    color: #fff;
}

.sidebar-brand span {
    display: inline-block;
    padding-right: 1rem;
}

.sidebar-menu {
    margin-top: 1rem;
}

.sidebar-menu li {
    width: 100%;
    margin-bottom: 1.7rem;
    padding-left: 1rem;
}

.sidebar-menu a {
    padding-left: 1rem;
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.sidebar-menu a.active {
    background: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: var(--main-color);
    border-radius: 30px 0px 0px 30px;
}

.sidebar-menu a span:first-child {
    font-size: 1.5rem;
    padding-right: 1rem;
}

#nav-toggle:checked + .sidebar {
    width: 70px;
}

#nav-toggle:checked + .sidebar .sidebar-brand h2 span,
#nav-toggle:checked + .sidebar li {
    padding-left: 0rem;
    text-align: center;
}

#nav-toggle:checked + .sidebar li a {
    padding-left: 1rem;
}

#nav-toggle:checked + .sidebar .sidebar-brand h2 span:last-child,
#nav-toggle:checked + .sidebar li a span:last-child {
    display: none;
}

#nav-toggle:checked ~ .main-content {
    margin-left: 70px;
}

#nav-toggle:checked ~ .main-content header {
    width: calc(100% - 70px);
    left: 70px;
}

.main-content {
    transition: margin-left 300ms;
    margin-left: 345px;
}

header {
    background: #fff;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    left: 345px;
    width: calc(100% - 345px);
    top: 0;
    z-index: 100;
    transition: left 300ms;
}

header label {
    cursor: pointer;
}

#nav-toggle {
    display: none;
}

header h2 {
    color: #555;
}

header label span {
    font-size: 1.7rem;
    padding-right: 1rem;
}

.search-wrapper {
    border: 1px solid #ccc;
    border-radius: 30px;
    height: 50px;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

.search-wrapper span {
    display: inline-block;
    padding: 0rem 1rem;
    font-size: 1.5rem;
}

.search-wrapper input {
    height: 100%;
    padding: .5rem;
    border: none;
    outline: none;
}

.user-wrapper {
    display: flex;
    align-items: center;
}

.user-wrapper img {
    border-radius: 50%;
    margin-right: 1rem;
}

.user-wrapper small {
    display: inline-block;
    color: var(--text-grey);
}

main {
    margin-top: 85px;
    padding: 2rem 1.5rem;
    background: #f1f5f9;
    min-height: calc(100vh - 90px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2rem;
    margin-top: 1rem;
}

.card-single {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
}

.card-white {
    display: block;
    /* justify-content: center; */
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
}

.card-single a,
.card-white a {
    text-decoration: none;
    color: inherit;
}

.card-single a:hover,
.card-white a:hover {
    text-decoration: underline;
    color: inherit;
}

.card-single a:active,
.card-white a:active {
    text-decoration: underline;
    color: inherit;
}

.card-single div:last-child span {
    font-size: 3rem;
    color: var(--text-grey);
}

.card-single div:first-child span {
    color: var(--text-grey);
}

.card-single:last-child {
    background-color: var(--main-color);
}

.card-single:last-child h1,
.card-single:last-child div:first-child span,
.card-single:last-child div:last-child span {
    color: #fff;
}

.recent-grid {
    margin-top: 3.5rem;
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: 100% auto;
}

.add-project select {
    margin-right: 1rem;
    height: 1.8rem;
    border-radius: 4px;
    border: 1px solid var(--main-color);
}

.card {
    background: #fff;
    border-radius: 5px;
    margin: 2rem;
}

.card-header {
    padding: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.card-header button {
    background: var(--main-color);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.card-header button:active {
    background: #1b41bb;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

table {
    border-collapse: collapse;
}

thead tr {
    border-top: 1px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

thead td {
    font-weight: 700;
}

td {
    padding: .5rem;
    font-size: .9rem;
    color: #222;
}

td a {
    text-decoration: none;
    color: inherit;
}

td a:hover {
    text-decoration: underline;
    color: inherit;
}

td a:active {
    text-decoration: underline;
    color: var(--main-color);
}

td .status {
    display: inline-block;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    margin-right: 1rem;
}

tr td:nth-last-child(2) {
    display: flex;
    align-items: center;
}

.status.red {
    background: red;
}

.status.orange {
    background: orange;
}

.status.green {
    background: greenyellow;
}

.status.blue {
    background: var(--main-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
}

.project-header button {
    background: #23e03c;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid #23e03c;
    cursor: pointer;
}

.project-header button:active {
    background: #1bbb28;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid #23e03c;
    cursor: pointer;
}

.project-header .filter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter h3 {
    margin-right: 1rem;
}

.filter select {
    margin-right: 1rem;
    height: 1.8rem;
    border-radius: 4px;
    border: 1px solid var(--main-color);
}

.filter button {
    background: var(--main-color);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.filter button:active {
    background: #1b41bb;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.add-project {
    display: none;
}

.add-project.active {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
}

.add-project input {
    border-radius: 4px;
    border: 1px solid var(--main-color);
    /*margin-left: 1rem;*/
}

.add-project button {
    background: var(--main-color);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.add-project button:active {
    background: #1b41bb;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.cards-chart {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
    margin-top: 1rem;
}

.card-chart {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    max-height: 400px;
}

.chart-container {
    width: 95%;
    height: auto;
}

.chart-container div {
    display: flex;
    justify-content: left;
}

.chart-container div select {
    margin-left: 1rem;
    height: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--main-color);
}

#chart1,
#chart3 {
    max-height: 310px;
}

#chart2 {
    max-height: 300px;
}

.summary-card {
    display: inline-block;
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    margin-top: 2rem;
    width: 100%;
}

.summary-card div.summary-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.summary-card button {
    background: var(--main-color);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.summary-card button:active {
    background: #1b41bb;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.summary-card button span {
    padding-right: .5rem;
}

.summary-card table {
    margin-top: 40px;
    border-collapse: collapse;
}

.summary-card thead tr {
    border-top: 1px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.summary-card thead td {
    font-weight: 700;
}

.summary-card td {
    padding: .5rem;
    font-size: .9rem;
    color: #222;
}

.summary-card .summary-header div {
    display: flex;
    justify-content: center;
    width: auto;
}

.summary-card .summary-header div select {
    display: flex;
    margin-left: 1rem;
    height: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--main-color);
}

.card-unfinished {
    background: #fff;
    border-radius: 5px;
    /*margin: 2rem;*/
}

.card-body-unfinished {
    display: none;
}

.card-body-unfinished.active {
    display: flex;
}

.card-newrental {
    background: #fff;
    border-radius: 5px;
    margin: 2rem;
}

.card-body-newrental {
    display: none;
}

.card-body-newrental.active {
    display: flex;
}

.customer-form {
    position: relative;
    margin-left: 7rem;
    margin-right: 7rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    justify-content: space-evenly;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2rem;
    margin-top: 1rem;
}

.customer-form input,
.customer-form select,
.customer-form textarea {
    min-width: 300px;
    max-width: 300px;
    margin-bottom: 5px;
}

.equipment-form {
    width: max-content;
}

tbody tr td {
    background-color: #fff;
}

tbody tr:hover td {
    background-color: rgb(235, 235, 235);
}

.equipment-form button {
    background: var(--main-color);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.equipment-form button:active {
    background: #1b41bb;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.equipment-form button.remove {
    background: rgb(226, 0, 0);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid rgb(226, 0, 0);
    cursor: pointer;
}

.equipment-form button.remove:active {
    background: rgb(206, 0, 0);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid rgb(226, 0, 0);
    cursor: pointer;
}

.equipment-form button.remove-item {
    background: rgb(226, 0, 0);
    border-radius: 5px;
    color: #fff;
    font-size: .7rem;
    padding: 0rem 1rem;
    border: 1px solid rgb(226, 0, 0);
    cursor: pointer;
    height: 1rem;
}

.equipment-form button.remove-item:active {
    background: rgb(206, 0, 0);
    border-radius: 5px;
    color: #fff;
    font-size: .7rem;
    padding: 0rem 1rem;
    border: 1px solid rgb(226, 0, 0);
    cursor: pointer;
}

.card-wide {
    display: flex;
    /* justify-content: space-between; */
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    margin-top: -3rem;
}

.card-wide button {
    background: var(--main-color);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
    margin-right: 1rem;
}

.card-wide button:active {
    background: #1b41bb;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.card button {
    background: var(--main-color);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.card button:active {
    background: #1b41bb;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

#login {
    background: var(--main-color);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

#login:active {
    background: #1b41bb;
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--main-color);
    cursor: pointer;
}

.popup-bgr {
    display: none;
}

.popup-bgr.active {
    display: block;
    position: fixed;
    margin: 0;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    z-index: 1000;
}

.popup-content {
    position: relative;
    width: 800px;
    height: 800px;
    left: calc(50% - 400px);
    top: calc(50% - 400px);
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 1001;
}

.popframe {
    position: relative;
    margin: 10px;
    width: calc(100% - 20px);
    height: 730px;
    border: none;
}

.btn-popup {
    position: relative;
    width: 70px;
    height: 30px;
    margin-left: calc(100% - 80px);
    color: white;
    font-size: 12px;
    border-radius: 5px;
    border: solid 1px black;
    background-color: rgb(187, 0, 0);
}

.btn-popup:hover {
    background-color: red;
}

.button {
    font-size: 15px;
    padding: 5px;
    margin-top: 5px;
    background-color: #2657FD;
    border: 1px solid #2657FD;
    border-radius: 5px;
    color: white;
}

.button:hover {
    background-color: #1b41bb;
    cursor: pointer;
}

.button:active {
    background-color: #112b80;
    color: rgb(172, 172, 172);
    cursor: pointer;
}

.no-hover:hover {
    background-color: white;
}

@media only screen and (max-width: 1200px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar .sidebar-brand h2 span,
    .sidebar li {
        padding-left: 1rem;
        text-align: center;
    }
    
    .sidebar li a {
        padding-left: 0rem;
    }
    
    .sidebar .sidebar-brand h2 span:last-child,
    .sidebar li a span:last-child {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .main-content header {
        width: calc(100% - 70px);
        left: 70px;
    }

    .sidebar:hover {
        width: 345px;
        z-index: 200;
    }
    
    .sidebar:hover .sidebar-brand h2 span,
    .sidebar:hover li {
        padding-left: 2rem;
        text-align: left;
    }
    
    .sidebar:hover li a {
        padding-left: 1rem;
    }
    
    .sidebar:hover .sidebar-brand h2 span:last-child,
    .sidebar:hover li a span:last-child {
        display: inline;
    }
}

@media only screen and (max-width: 960px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .recent-grid {
        grid-template-columns: 100%;
    }

    .sidebar {
        left: -100% !important;
    }

    header h2 {
        display: flex;
        align-items: center;
    }

    header h2 label {
        display: inline-block;
        background: var(--main-color);
        padding-right: 0rem;
        margin-right: 1rem;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center !important;
    }

    header h2 span {
        text-align: center;
        padding-right: 0rem;
    }

    .main-content {
        width: 100%;
        margin-left: 0rem;
    }

    header {
        width: 100% !important;
        left: 0 !important;
    }
}

@media only screen and (max-width: 768px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-grid {
        grid-template-columns: 100%;
    }

    .search-wrapper {
        display: none;
    }

    .sidebar {
        left: -100% !important;
    }

    header h2 {
        display: flex;
        align-items: center;
    }

    header h2 label {
        display: inline-block;
        background: var(--main-color);
        padding-right: 0rem;
        margin-right: 1rem;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center !important;
    }

    header h2 span {
        text-align: center;
        padding-right: 0rem;
    }

    header h2 {
        font-size: 1.1rem;
    }

    .main-content {
        width: 100%;
        margin-left: 0rem;
    }

    header {
        width: 100% !important;
        left: 0 !important;
    }

    #nav-toggle:checked + .sidebar {
        left: 0 !important;
        z-index: 100;
        width: 345px;
    }
}

@media only screen and (max-width: 560px) {
    .cards {
        grid-template-columns: 100%;
    }
}