
html {
    /* height: 100%; */
    max-width: 100%;
}

:root {
    --save-color: #2bbac1;
    --save-hover: #28aab1;
    --delete-color: #e73a3a;
    --delete-hover: #c34845;
}

body {
    margin: 0;
    max-width: 100%;
    /* height: 100%; */
    font-family: "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;
}

* {
    box-sizing: border-box;
}

a {
    color: black;
    text-decoration: none;
}

textarea {
    resize: vertical;
}

/* shorts */

/* flex */
.row {
    display: flex;
    flex-direction: row;
}

.col {
    display: flex;
    flex-direction: column;
}

.flex-auto {
    flex: 1 1 auto;
}

.flex-0 {
    flex: 1 1 0%;
}

.justify-left {
    justify-content: left;
}

.justify-right {
    justify-content: right;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: end;
}

.items-start {
    align-items: flex-end;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

/* sizes */
.w-full {
    width: 100%;
}

.w-half {
    width: 50%;
}

.w-0 {
    width: 0;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-fit {
    height: fit-content;
}

.w-fit {
    width: fit-content;
}

/* text */
.text-lg {
    font-size: 20px;
}

.text-xlg {
    font-size: 25px;
}

.text-md {
    font-size: 16px;
}

.font-bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.text-center {
    text-align: center;
}

/* shadows */
.shadow {
    box-shadow: 0 2px 3px 2px rgb(0 0 0 / 3%);
}

/* colors */
.text-white {
    color: white;
}

.text-red {
    color: red;
}

.text-blue {
    color: #3b77b5;
}

.bg-lightgray {
    background-color: #eef1f5;
}

.bg-white {
    background-color: white;
}

.bg-red {
    background-color: #d9534f;
}


/* paddings */
.pl-xs {
    padding-left: 3px;
}

.pr-xs {
    padding-right: 3px;
}

.pl-sm {
    padding-left: 5px;
}

.pr-sm {
    padding-right: 5px;
}
.pt-sm {
    padding-top: 5px;
}

.pb-sm {
    padding-bottom: 5px;
}

.pl-md {
    padding-left: 10px;
}

.pr-md {
    padding-right: 10px;
}

.pt-md {
    padding-top: 10px;
}

.pb-md {
    padding-bottom: 10px;
}

.ml-auto {
    margin-left: auto;
}

.ml-md {
    margin-left: 10px;
}

.mr-md {
    margin-right: 10px;
}

.mt-md {
    margin-top: 10px;
}

.mb-md {
    margin-bottom: 10px;
}

.pl-lg {
    padding-left: 15px;
}

.pr-lg {
    padding-right: 15px;
}

.pt-lg {
    padding-top: 15px;
}

.pb-lg {
    padding-bottom: 15px;
}

.ml-lg {
    margin-left: 15px;
}

.mr-lg {
    margin-right: 15px;
}

.mt-lg {
    margin-top: 15px;
}

.mb-lg {
    margin-bottom: 15px;
}

.pl-xlg {
    padding-left: 25px;
}

.pr-xlg {
    padding-right: 25px;
}

.pt-xlg {
    padding-top: 25px;
}

.pb-xlg {
    padding-bottom: 25px;
}

.m-auto {
    margin: auto;
}

.mr-auto {
    margin-right: auto;
}

.ml-xlg {
    margin-left: 25px;
}

.mr-xlg {
    margin-right: 25px;
}

.mt-xlg {
    margin-top: 25px;
}

.mb-xlg {
    margin-bottom: 25px;
}

.pl-2xl {
    padding-left: 40px;
}

.pr-2xl {
    padding-right: 40px;
}

.pt-2xl {
    padding-top: 40px;
}

.pb-2xl {
    padding-bottom: 40px;
}
.pl-3xl {
    padding-left: 60px;
}

.pr-3xl {
    padding-right: 60px;
}

.pt-3xl {
    padding-top: 60px;
}

.pb-3xl {
    padding-bottom: 60px;
}

/* margins */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.box-content {
    box-sizing: content-box;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.p-relative {
    position: relative;
}

/* shorts */

.main-px {
    padding-left: 50px;
    padding-right: 50px;
}

.main-pl {
    padding-left: 50px;
}

.main-pr {
    padding-right: 50px;
}

.main-py {
    padding-top: 50px;
    padding-bottom: 50px;
}

.main-pt {
    padding-top: 50px;
}

.main-pb {
    padding-bottom: 50px;
}

.main-mx {
    margin-left: 50px;
    margin-right: 50px;
}

.main-ml {
    margin-left: 50px;
}

.main-mr {
    margin-right: 50px;
}

.main-my {
    margin-top: 50px;
    margin-bottom: 50px;
}

.main-mt {
    margin-top: 50px;
}

.main-mb {
    margin-bottom: 50px;
}

.navbar {
    /* padding-top: 30px;
    padding-bottom: 30px; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #2b3643;
    color: white;
    z-index: 1;
}


.navbar i {
    margin-right: 5px;
}

.sidebar-main-content {
    padding-top: 80px;
}

.sidebar {
    width: 400px;
    height: calc(100% - 80px);
    background-color:#364150;
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 1;
    overflow: auto;
}

.hide-navbar, 
.show-navbar {
    display: none;
}

.show-navbar {
    width: 22px;
    height: 20px;
}

.menu-bar {
    height: 4px;
    width: 22px;
    background-color: #f1f1f1;
    z-index: 1;
    border-radius: 20px;
    position: absolute;
    transition: all .3s ease;
}

/* .menu-bar+.menu-bar {
    margin-top: 4px;
} */

.menu-bar.top {
    top: 0;
    left: 0;
}

.menu-bar.middle {
    top: 8px; /* height+margin top */
    left: 0;
}
.menu-bar.bottom {
    top: 16px; /* 8+4+4 */
    left: 0;
}

.show-navbar.active .top {
    transform: translate(0%, calc(50% - 2px)) rotate(45deg); /* ka mundesi qe nuk eshte aq e sakte, top-i duket sikur jep me shume kontribut, leviz poshte me shume sesa ngjitet bottom-i siper */
    top: 50%;
}

.show-navbar.active .bottom {
    transform: translate(0%, calc(-50% + 2px)) rotate(-45deg);
    top: 50%;
}

.show-navbar.active .middle {
    opacity: 0;
    visibility: hidden;
}

.sidebar a {
    padding: 10px 15px;
    width: 100%;
    color: #b4bcc8;
    border: 1px solid #3d4957;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
}

.sidebar a:hover {
    background-color: #2C3542;
}

.sidebar a.active {
    background-color: #272d36;
    border-color: #272d36;
}

.sidebar a i {
    font-size: 18px;
    margin-right: 5px;
    text-shadow: none;
    width: 30px;
}

.logo {
    width: 30%;
    margin: 20px auto;
}

.main-content {
    min-height: 800px;
}

.main-content-width {
    width: calc(100% - 500px);
    margin-left: auto;
}

.footer-width {
    width: calc(100% - 400px);
}

.section {
    border: 1px solid #e7ecf1;
    box-shadow: 0 2px 3px 2px rgb(0 0 0 / 3%);
    background-color: white;
    padding: 30px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.main-title {
    font-size: 25px;
}

.button {
    /* box-shadow: 0px 1px 5px 1px rgb(0 0 0 / 25%); */
    box-shadow: 0px 1px 5px rgb(0 0 0 / 25%);
    border-radius: 3px;
    border: none;
    text-transform: uppercase;
    text-align: center;
}

.button.sm {
    padding: 5px 10px;
}

.button.md {
    padding: 10px 15px;
}

.button.delete {
    background-color: #d9534f;
    border: 1px solid #d43f3a;
    color: white;
}

.button.remove {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #626262;
    color: white;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 100%;
}

.button.save {
    background-color: var(--save-color);
    color: white;
}

.button.save-download {
    background-color: #ef8224;/* c95c5c */
    color: white;
    /* font-size: 13px; */
}

.button.cancel {
    background-color: #bbbebf;
    color: white;
    /* font-size: 13px; */
}

.popup {
    position: fixed;
    top: 50%;
    left: calc(50% + 400px);
    transform: translate(calc(-50% - 200px), -50%);
    /* left: 50%;
    transform: translate(-50%, -50%); */
    border-radius: 5px;
    padding: 30px;
    background-color: white;
    box-shadow: 0px 2px 6px #00000014;
    border: 1px solid #c3c3c3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 2;
}

.popup.sm {
    min-width: 270px;
    width: 30%;
    max-width: 400px;
}

.popup.xsm {
    min-width: 270px;
    width: 50%;
    max-width: 320px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000026;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1;
}

.popup.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup .button {
    height: 30px;
}

.popup .button.save {
    background-color: var(--save-color);
}

.popup .button.delete {
    background-color: var(--delete-color);
}

.popup input,
.popup select {
    height: 30px;
    background: #f3f3f3;
    border: none;
    border-radius: 4px;
}

.mobile-visible {
    display: none;
}

.field-error {
    color: #c51e1e;
}

.delete-btn {
    color: #bb1b1b;
}

.pdfs>*+* {
    padding-top: 10px;
}

.pdfs {
    max-height: 150px;
    overflow: auto;
}


select,
input,
textarea {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
}


.form-wrapper {
    width: 80%;
}

.documents-wrapper {
    width: 60%;
}

.form-wrapper .input-wrapper {
    width: 40%;
}

/* .form-wrapper .input-wrapper+.input-wrapper {
    margin-left: 80px;
} */

.documents-wrapper .file-input {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.documents-wrapper .documents {
    max-height: 300px;
    overflow: auto;
    background-color: #f9f9f9;
    padding: 10px 0;
    border-radius: 10px;
}

.documents-wrapper .document {
    padding: 5px 10px;
}

.documents-wrapper .document+.document {
    margin-top: 10px;
}

.documents-wrapper .document:hover {
    background-color: #e9e9e9;
}

.dataTable-table {
    min-width: 700px;
}

.dataTable-container {
    overflow-x: auto;
    overflow-y: hidden;
}

.delete-btn:hover {
    color: #a31313;
}

.button.delete:hover {
    background-color: var(--delete-hover);
    border-color: #af0000;
}

.cancel-deletion:hover {
    background-color: #e7e7e7;
}

.view-item a:hover,
.edit-item:hover {
    color: #484848;
}

.download-pdf:hover .text-blue {
    color: #2f6297;
}

.text-black {
    color: #2a2a2a;
}

.bg-black:hover {
    background-color: #747474;
}

.button.save:hover {
    background-color: var(--save-hover);
}

.button.save-download:hover {
    background-color: #db7720;
}

.text-black:hover i,
i.text-black:hover {
    color: #505050;
}

.cursor-default {
    cursor: default;
}


.popup-message {
    position: fixed;
    right: 60px;
    bottom: 10px;
    padding: 10px;
    background: #ebbcbc;
    color: #460202;
    border-radius: 4px;
    box-shadow: 1px 1px 4px #00000033;
    visibility: hidden;
    opacity: 0;
    transition: bottom 0.2s ease, visibility 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.popup-message.active {
    bottom: 30px;
    visibility: visible;
    opacity: 1;
    transition: bottom 0.2s ease, visibility 0.2s ease, opacity 0.2s ease;
}

.powered-by {
    color: #566374;
    padding: 15px;
}

footer {
    padding: 30px 0;
    background-color: #e2e6eb;
}

@media screen and (max-width: 1400px) {
    .sidebar {
        width: 350px;
    }

    /* main-px=60px */
    .main-content-width {
        width: calc(100% - 410px);
    }

    .footer-width {
        width: calc(100% - 350px);
    }

    .popup {
        left: calc(50% + 350px);
        transform: translate(calc(-50% - 350px / 2), -50%);
    }

    .main-mx {
        margin-left: 30px;
        margin-right: 30px;
    }  
    
    .main-my {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .main-mr {
        margin-right: 30px;
    }

    .main-ml {
        margin-left: 30px;
    }

    .main-px {
        padding-left: 30px;
        padding-right: 30px;
    }

    .main-py {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .main-pr {
        padding-right: 30px;
    }

    .main-pl {
        padding-left: 30px;
    }
}

@media screen and (max-width: 1000px) {
    .sidebar {
        width: 300px;
    }

    .main-content-width {
        width: calc(100% - 360px);
    }

    .footer-width {
        width: calc(100% - 300px);
    }

    .popup {
        left: calc(50% + 300px);
        transform: translate(calc(-50% - 150px), -50%);
    }

    .form-wrapper {
        width: 100%;
    }

    .mobile-visible {
        display: flex;
    }
}

@media screen and (max-width: 800px) {

    .main-content-width {
        width: calc(100% - 60px);
    }

    .footer-width {
        width: 100%;
    }

    .popup {
        left: 50%;
        transform: translate(-50% , -50%);
    }

    .logo {
        width: 40%;
    }

    /* .sidebar::after {
        content: "X";
        width: 30px;
        height: 30px;
        position: absolute;
        top: 30px;
        right: 30px;
    } */

    .hide-navbar {
        display: flex;
        width: 30px;
        height: 30px;
        justify-content: center;
        align-items: center;
        border: 2px solid #c3c3c3;
        border-radius: 100%;
        color: #c3c3c3;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .show-navbar {
        display: flex;
        /* position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%); */
    }

    .sidebar {
        left: -300px;
        box-shadow: 0px 0px 0px #00000000;
        transition: left 0.2s ease, box-shadow 0.2s ease;
    }

    .sidebar.active {
        left: 0px;
        box-shadow: 4px 0px 4px #0000003d;
        transition: left 0.2s ease, box-shadow 0.2s ease;
    }

    .sidebar.active .show-navbar {
        display: none;
    }

}

@media screen and (max-width: 500px) { 
    
    .section {
        padding: 20px;
    }

    .main-mr {
        margin-right: 20px;
    }

    .main-px {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-content-width {
        width: calc(100% - 40px);
    }

    .save-btns {
        display: flex;
        flex-direction: column;
    }

    .save-btns button+button {
        margin-top: 10px;
    }

    .dataTable-top {
        display: flex;
        flex-direction: column;
    }

    .dataTable-top,
    .dataTable-bottom {
        padding: 8px 0px;
    }

    .dataTable-top>*+* {
        margin-top: 30px;
    }

    .form-wrapper .to-col {
        /* margin-bottom: 0; */
        flex-direction: column;
    }

    .form-wrapper .input-wrapper+.input-wrapper {
        margin-top: 25px;
    }
    
    .form-wrapper .input-wrapper {
        width: 100%;
    }

    .documents-wrapper {
        width: 100%;
    }
}

@media screen and (max-width: 400px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
}

@media screen and (max-width: 350px) {
    .section {
        padding: 15px;
    }

    .main-content-width {
        width: calc(100% - 30px);
    }

    .main-mr {
        margin-right: 15px;
    }
}