﻿:root {
    --mainBackGroundColor: #EFF3FC;
    --fontFamily: 'EB Garamond','Poppins', sans-serif;
    --mainFontSize: 1.02em;
    --mainMargins: 75px;
    --mainPaddings: 25px;
    --mainLineHeight: 1.6em;
    --mainWidth: 100%;
    --sectionMarginBottom: 75px;
    --H1FontSize: 2em;
    --H1Color: #000;
    --imgRadius: 13px;
    --infoBoxBorder: solid 1px #cecece;
    --infoBoxRadius: 7px;
    --headerBackgroundColor: #5D89A8;
    --headerLogoColor: #000;
    --headerWidth: 250px;
    --menuLinkColor: #fff;
    --menuHeaderColor: #fff;
    --panelBackgroundColor: #fff;
    --ctaBorderRadius: 3px;
    --ctaBgColor: rgb(16,124,65);
    --ctaTextColor: #000;
    --headerHeight: 60px;
    --headerBorderRadius: 7px;
    --detailsPageWidth: 50%;
    --desktopView: fixed;
    --mobileView: none;
    --tdTitleMinWidth: 400px;
    --formDetailsTop: 150px;
    --formDetailsMargin: 32px;
    --formWidth: calc(50% - 48px);
    --chartWidth: 170px;
    --chartWidth2: 40%;
    --dashbordPadding: 1%;
    --detailtabsTop: 112px;
    --mainMarginTop: 0px;
}

html, body {
    background-color: #fff;
    font-family: var(--fontFamily);
    background-color: var(--mainBackGroundColor);
    margin: 0;
    padding: 0;
}

[disabled] {
    color: black;
}

a {
    display: inline-flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    width: auto;
    border-bottom: dotted 1px #000;
}

.detailactions a, .detailtabs a {
    border-bottom: none;
}

header {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--headerHeight);
    background-color: var(--headerBackgroundColor);
    border-top-left-radius: var(--headerBorderRadius);
    border-top-right-radius: var(--headerBorderRadius);
}

.headerLogo {
    float: left;
}

header a.logo {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    display: table;
    width: auto;
    margin: 0 0 0 25px;
    line-height: var(--headerHeight);
    font-size: 1.2rem;
    float: left;
    width: auto;
}

.headerMenu {
    top: 0;
    left: 500px;
    z-index: 999;
    display: var(--desktopView);
}

    .headerMenu details {
        position: relative;
        margin-left: 3%;
        float: left;
        background-color: var(--headerBackgroundColor);
        display: var(--desktopView);
    }

        .headerMenu details summary {
            color: var(--menuHeaderColor);
            line-height: 60px;
        }

        .headerMenu details ul.menu {
            position: absolute;
            top: 55px;
            color: var(--menuLinkColor);
            z-index: 9999;
            background-color: var(--headerBackgroundColor);
            width: 100%;
            min-width: 200px;
            margin: 2% 2%;
            list-style-type: none;
            margin-left: -24px;
            margin-bottom: 13px;
            border-bottom-left-radius: 7px;
            border-bottom-right-radius: 7px;
        }

ul.menu li {
    margin-bottom: 7px;
    color: var(--menuLinkColor);
}

    ul.menu li a {
        color: var(--menuLinkColor);
        border-bottom: none;
    }

main {
    position: relative;
    display: table;
    width: calc(100% - var(--mainPaddings) - var(--mainPaddings));
    padding: var(--mainPaddings) var(--mainPaddings) 0 var(--mainPaddings);
    height: calc(100vh - 105px);
    z-index: 1;
    margin-top: calc(var(--headerHeight) + var(--mainMarginTop));
}

h1 {
    color: var(--H1Color);
    font-size: var(--H1FontSize);
    margin: 0;
}

em {
    display: block;
    margin-bottom: 25px;
    color: #666;
}

.dvPanel {
    background-color: var(--panelBackgroundColor);
    padding: 13px;
    border-radius: 13px;
    font-size: 1rem;
}

.panel50 {
    float: left;
    width: 40%;
    margin-top: 25px;
    margin-right: 25px;
}

.panel100 {
    width: calc(100% - var(--mainPaddings));
}

.tableHdr {
    font-weight: bold;
    text-align: left;
}

th, td {
    border-bottom: solid 1px var(--mainBackGroundColor);
    padding: 7px;
    background-color: transparent;
}

.w50pct, .wTitle {
    min-width: var(--tdTitleMinWidth);
    text-align: left;
}

.w25pct {
    width: 10%;
}

.wcenter {
    text-align: center;
}

.wNumber {
    padding-right: 25px;
    text-align: right;
}

tr.notapplicable {
    background-color: #E5E5E5;
}

.filters {
    display: table;
    width: 100%;
    margin-bottom: 25px;
}

a.filter {
    background-color: #E5E5E5;
    border-radius: 7px;
    text-decoration: none;
    color: #000;
    padding: 7px 13px 7px 13px;
}


.formB {
    position: relative;
    display: table;
    width: 96%;
    padding: 24px 2%;
    background-color: #fff;
    border-radius: var(--infoBoxRadius);
    color: #000;
}

input, textarea, select {
    position: relative;
    padding: 7px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border: solid 1px #cecece;
    font-size: 1rem;
    resize: none;
    overflow: hidden;
}

textarea {
    font-family: var(--fontFamily);
    font-size: 1rem;
    color: #000;
    line-height: 1.4rem;
}

    input:disabled, select:disabled, textarea:disabled {
        background-color: #fff;
        border: solid 0px #fff;
        color: #666;
        padding-left: 0;
    }

input [type=submit] {
    position: relative;
    background-color: var(--ctaBgColor);
    font-weight: bold;
    color: var(--ctaTextColor);
    text-transform: uppercase;
    border-radius: var(--borderGeneralRadius);
    cursor: pointer;
    width: auto;
    padding: 13px 13px;
    text-decoration: none;
    border: solid 1px var(--ctaBgColor);
}


label {
    display: table;
    width: 100%;
    margin-bottom: 7px;
}


div.error, div.success {
    position: relative;
    display: table;
    width: calc(100% - 26px);
    padding: 7px 13px 7px 13px;
    border-radius: var(--borderGeneralRadius);
    margin-bottom: 13px;
}

div.error {
    background-color: #C2185B;
    color: #fff;
}

div.success {
    margin-top: 25px;
    background-color: #00BA7C;
    color: #fff;
}

details.inputform summary {
    margin-top: 25px;
    font-size: 1.2rem;
    margin-bottom: 7px;
}

.actions {
    position: relative;
    display: table;
    width: 100%;
    margin-bottom: 25px;
}

a.cta {
    text-decoration: none;
    padding: 7px 13px 7px 13px;
    background-color: var(--ctaBgColor);
    color: #fff;
    border-radius: 13px;
    margin-right: 13px;
    border-bottom: none;
}

a.ctaS {
    text-decoration: none;
    padding: 7px 13px 7px 13px;
    background-color: var(--ctaBgColor);
    color: #fff;
    border-radius: 13px;
    margin-right: 13px;
    display: inline-table;
    width: 150px;
    text-align: center;
    float: right;
    margin-right: 40px;
}

a.ctan {
    text-decoration: none;
    color: #000;
    padding: 7px 13px 7px 13px;
    background-color: var(--mainBackGroundColor);
    border-radius: 0;
    border-bottom: none;
}

    a.ctan:hover {
        border-bottom: solid 1px #666;
    }

.detailspage {
    position: fixed;
    top: var(--headerHeight);
    right: -100%;
    bottom: var(--headerHeight);
    height: calc(100% - var(--headerHeight));
    width: var(--detailsPageWidth);
    background-color: #fff;
    transition: right 0.3s ease-in-out;
    box-shadow: -10px 0 15px rgba(0,0,0,0.3);
    z-index: 999;
    overflow-x: hidden;
    overflow-y: auto;
    border-top-left-radius: 13px;
}

    .detailspage.open {
        right: 0;
    }

article, .form {
    max-width: 760px;
    margin: auto;
}

.form {
    margin-top: 0;
}

.formDetails {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: var(--formDetailsMargin);
    margin-top: var(--formDetailsTop);
    background-color: #fff;
    border-radius: 13px;
    padding: 1%;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 1%;
    background-color: transparent;
}

.form label, .formDetails label, .formLine label {
    display: inline-flex;
    align-items: center;
    width: 100%;
}
.form input, .formDetails input, .formDetails textarea, .formDetails select {
    width: calc(100% - 295px);
    margin-right: 45px;
}

.label-textrl {
    max-width: calc(100% - 235px);
}

.formDetails input[type=checkbox] {
    margin: 0;
    padding: 0;
    width: auto;
}

    .formDetails input[type=checkbox]:disabled {
        margin: 0 0 0 5px;
    }

.formDetails input[type=date] {
    width: 200px;
    font-weight:normal;
}

.formDetails input[type=number] {
    width: 200px;
    font-weight: normal;
}

.formDetails .label-text, .formLine label {
    width: 200px;
    margin-right: 32px;
    text-align: right;
    font-weight:bold;
    height: 100%;
    min-height:22px;
    margin-top:3px;
}
.formDetails label:has(textarea) {
    align-items: flex-start;
}

    .formDetails label:has(textarea) .label-text {
        margin-top: 7px;
    }

.detailactions {
    position: fixed;
    top: var(--headerHeight);
    display: flex;
    gap: 13px;
    width: 100%;
    background-color: #fff;
    padding: 13px 13px 13px 32px;
    z-index: 800;
    border-top-left-radius: 7px;
}

.detailtabs {
    position: fixed;
    display: table;
    width: 100%;
    background-color: var(--mainBackGroundColor);
    padding: 15px 32px 15px 32px;
    margin-bottom: 25px;
    z-index: 700;
    top: var(--detailtabsTop);
}


.detailactions a svg {
    margin-right: 5px; /* Adds space between the icon and the text */
    height: 24px;
    width: 24px;
    display: inline-block;
    vertical-align: middle;
    border-bottom: none;
}

.formDetailsTable {
    display: table;
    width: calc(100% - 64px);
    margin-left: 32px;
}

.userinfo {
    float: right;
    width: auto;
    color: #fff;
    text-decoration: none;
    text-align: right;
    display: table;
    margin: 0 32px 0 25px;
    line-height: var(--headerHeight);
    font-size: 1rem;
    z-index: 999;
}

.bold {
    font-weight: bold;
}

.resultBelow, .resultAbove, .resultNormal {
    border-radius: 13px;
    padding: 7px 25px 7px 25px;
    color: #000;
}

.resultBelow {
    background-color: #B5E61D;
    max-width: 100px;
    text-align: center;
}

.resultAbove {
    background-color: #F4BDC4;
    max-width: 100px;
    text-align: center;
}

.resultNormal {
    background-color: #fff;
}


.resultWarning {
    background-color: #FCEBC3;
}

#tblList {
    overflow-x: auto;
    border-collapse: collapse;
    display: block;
}

.wText {
    width: auto;
    text-align: left;
    padding-left: 7px;
    padding-right: 7px;
}

.wImage {
    width: 50px;
    height: 50px;
    text-align: left;
    padding-left: 7px;
    padding-right: 7px;
    border-radius: 7px;
}

a.moreitems, input[type=submit].moreitems {
    border-radius: 13px;
    padding: 7px 25px 7px 25px;
    color: #000;
    background-color: #F7F8FA;
    text-decoration: none;
    margin-top: 25px;
    display: table;
    border: solid 1px #cecece;
    width: auto;
    float: left;
    margin-right: 13px;
}

input[type=submit].moreitems {
    font-size: 1rem;
    height: 40px;
}

.mlabel {
    margin-left: 200px;
}

.top25px {
    margin-top: 13px;
}

.box {
    display: table;
    border-bottom: solid 1px #dedede;
    padding: 13px 0 0 0;
}

.red {
    color: red;
    font-weight: bold;
}

.green {
    color: var(--ctaBgColor);
    font-weight: bold;
}

img.logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    float: left;
    margin-left: 25px;
    margin-top: 13px;
}

a.lnkText {
    color: #000;
    border-bottom: solid 1px #000;
    text-decoration: none;
}

a.btnCancel {
    text-decoration: none;
    border-bottom: none;
    margin-left: 25px;
    margin-top: 3px;
}

    a.btnCancel svg {
        width: 18px;
        height: 18px;
        text-decoration: none;
    }

.padl13 {
    margin-left: 25px;
}

.info {
    display: table;
    width: 75%;
    margin: auto;
    margin-bottom: 25px;
    border: solid 1px #cecece;
    color: #000;
    background-color: #F7F8FA;
    padding: 7px 13px 7px 13px;
    border-radius: 7px;
    text-align: center;
}

.formDetails a[disabled] {
    display: none;
}

.notification {
    width: 13px;
    height: 13px;
    display: inline-table;
    border-radius: 9px;
    background: red;
    margin-left: 7px;
}

header details.lang {
    float: right;
    position: relative;
    width: auto;
    margin-left: 0;
    margin-top: 13px;
    margin-right: 13px;
    text-align: center;
    top: 0;
    display: var(--mobileView);
}

    header details.lang > summary {
        cursor: pointer;
        display: inline-block;
        text-transform: uppercase;
        font-size: 2.4rem;
        margin-left: 18px;
        line-height: 2.4rem;
        margin-top: -4px;
        color: #fff;
    }

    header details.lang > div {
        position: fixed;
        left: 0px;
        right: 0px;
        z-index: 9999;
        top: var(--headerHeight);
        background-color: #fff;
        border-bottom: solid 1px var(--headerBackgroundColor);
    }

    header details.lang b {
        float: right;
        margin-right: 24px;
        margin-bottom: 7px;
        margin-top: 13px;
    }

    header details.lang > div a {
        font-weight: normal;
        text-decoration: none;
        border-bottom: dotted 1px #666;
    }

header ul.menuM {
    position: relative;
    display: table;
    width: 90%;
    list-style: none;
    height: calc(var(--headerHeight) - 26px);
    background-color: #fff;
}

    header ul.menuM li {
        margin-bottom: 13px;
        margin-right: 30px;
        text-align: right;
    }

    header ul.menuM a {
        color: #666;
        text-transform: uppercase;
        margin-right: 60px;
        margin-right: 0;
    }

.productimg {
    position: relative;
    width: 100%;
    border-radius: 13px;
}

.gridCards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
    gap: 10px;
    padding: 10px;
}

.card {
    background-color: #fff;
    border-radius: 13px;
}


.chartContainer {
    width: var(--chartWidth2);
    background-color: #fff;
    padding: 13px;
    border-radius: 13px;
    margin-top: 25px;
}

.chart {
    width: var(--chartWidth2);
}

.barchart {
    width: 100%;
    display: block;
}

.chartcards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
}

.chartcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background-color: #fff;
    color: #333; /* Adjust text color as needed */
    padding: 20px; /* Spacing inside the card */
    border: 1px solid #ddd; /* Optional border */
    border-radius: 8px; /* Rounded corners */
    transition: box-shadow 0.3s ease;
    width: 170px;
    flex: 1 1 calc(15% - 45px); /* 5 cards per row */
    max-width: calc(15% - 45px);
    min-width: 170px;
}

    .chartcard:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .chartcard svg {
        background-color: #39A1EA;
        width: 80px; /* Adjust size of the image */
        height: 80px; /* Adjust size of the image */
        border-radius: 50%;
        margin-bottom: 10px; /* Spacing between the image and the number */
        padding: 13px;
    }

    .chartcard .nb {
        font-size: 2em; /* Big number size */
        font-weight: bold;
        margin-bottom: 5px; /* Spacing between the number and the text */
    }

.left {
    text-align: left;
}

.actionsright {
    display: table;
    width: 100%;
    margin-top:25px;
}

.totals {
    margin-top: 25px;
    background-color: var(--mainBackGroundColor);
    margin-top: 25px;
    border-radius: var(--infoBoxRadius);
    padding: 24px;
}

.chart {
    position: relative;
    float: left;
    display: table;
    width: var(--chartWidth);
    height: 100px;
}


.formDetails a.detailsTableLnk {
    display: table;
    width: auto;
}

hr {
    border: dotted 1px var(--mainBackGroundColor);
    background-color: var(--mainBackGroundColor);
    width: 100%;
}


input[type="hidden"] {
    display: none !important;
}

select:disabled, textarea:disabled, input:disabled, input[type=date]:disabled {
    padding-left: 5px;
    color: black;
}

@media only screen and (min-device-width :279px) and (max-device-width :767px) {
    :root {
        --mainBackGroundColor: #F7F8FA;
        --fontFamily: 'EB Garamond','Poppins', sans-serif;
        --mainFontSize: 1.02em;
        --mainMargins: 75px;
        --mainLineHeight: 1.6em;
        --mainWidth: 100%;
        --sectionMarginBottom: 75px;
        --H1FontSize: 2em;
        --H1Color: #000;
        --imgRadius: 13px;
        --infoBoxBorder: solid 1px #cecece;
        --infoBoxRadius: 7px;
        --headerBackgroundColor: #5D89A8;
        --headerLogoColor: #000;
        --headerWidth: 250px;
        --menuLinkColor: #fff;
        --menuHeaderColor: #fff;
        --panelBackgroundColor: #fff;
        --ctaBorderRadius: 3px;
        --ctaBgColor: rgb(16,124,65);
        --ctaTextColor: #000;
        --headerHeight: 60px;
        --headerBorderRadius: 0px;
        --detailsPageWidth: 100%;
        --mainPaddings: 13px;
        --desktopView: none;
        --mobileView: table;
        --tdTitleMinWidth: unset;
        --formDetailsTop: 150px;
        --formWidth: calc(100% - 48px);
        --chartWidth: 90%;
        --dashbordPadding: 13px;
        --barchartRatio: 1.2;
        --chartWidth2: 100%;
        --detailtabsTop: 112px;
        --mainMarginTop: 45px;
    }

    .form label, .formDetails label {
        display: table;
        width: 100%;
        text-align: left;
    }

    .form, .formDetails {
    }

        .formDetails label span, .form input, .formDetails input, .formDetails textarea, .formDetails select {
            width: 90%;
            margin-left: 2%;
            margin-top: 7px;
            text-align: left;
            display: table;
        }

    label span {
        vertical-align: top;
    }

    .formDetails .label-text {
        width: 96%;
        margin-left: 2%;
        text-align: left;
        font-weight: bold;
    }

    .headerMenu details {
        display: none;
    }

    header details.lang {
        display: table;
    }

    #tblList, #tblList thead, #tblList tbody, #tblList th, #tblList td {
        position: relative;
        display: table;
        width: 98%;
        background-color: var(--mainBackGroundColor);
    }

        #tblList thead, #tblList th {
            display: none; /* Hide table headers */
        }

        #tblList tr {
            margin: 5px 5px 5px 5px;
            border: 1px solid #ddd;
            padding: 1%;
            position: relative;
            display: block;
            background-color: #fff;
            width: 100%;
            border-radius: 13px;
        }

        #tblList td {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            border-bottom: none;
            text-align: left;
        }

    .actions {
        margin-top: -40px;
    }

    form .form {
        position: relative;
        display: table;
        width: 110%;
        margin-left: 2%;
    }

    .dvPanel {
        background-color: var(--panelBackgroundColor);
        padding: 0px;
        border-radius: 13px;
        font-size: 1rem;
    }

    td[data-label]:not([data-label="mobilehidden"]) {
        position: relative;
        display: block;
        font-weight: bold;
    }

        td[data-label]:not([data-label="mobilehidden"]):before {
            display: block;
            left: 10px;
            font-weight: normal;
            padding-right: 10px;
            white-space: nowrap;
            content: attr(data-label);
        }

    a.ctaS {
        margin-bottom: 13px;
        text-align: center;
    }

    .userinfo {
        display: none;
    }

    .barchart {
        display: none;
    }

    .chartcard {
        flex: 1 1 100%; /* roughly 3 cards per row */
        max-width: 100%;
        min-width: unset;
    }

    .chartContainer {
        display: none;
        width: 100px;
    }

    .chartcards {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 25px;
    }

        .chartcards a {
            width: 90%;
        }

    .chartcard {
        display: table;
        flex-direction: column;
        text-align: unset;
        text-decoration: none;
        background-color: #fff;
        color: #333;
        padding: 13px;
        border: 1px solid #ddd;
        border-radius: 8px;
        transition: box-shadow 0.3s ease;
        width: 90%;
        max-width: unset;
        min-width: 90%;
        height: auto;
    }

        .chartcard svg {
            float: left;
            width: 40px; /* Adjust size of the image */
            height: 40px; /* Adjust size of the image */
            border-radius: 50%;
            margin-bottom: 10px; /* Spacing between the image and the number */
            padding: 13px;
            width: auto;
        }

        .chartcard .nb {
            float: left;
            font-size: 1.4em; /* Big number size */
            font-weight: bold;
            margin: 10px 13px 0 13px;
            padding-right: 13px;
            width: calc(100% - 140px);
        }

        .chartcard div {
            float: left;
            margin-left: 13px;
            margin: 0 13px 0 13px;
            padding-right: 13px;
            width: calc(100% - 140px);
        }
}
