/*  Custom stylesheet 
    By Michael Chishala (michael@zambia.co.zm)
    Created: 6 June 2024
*/

:root {
    --primary: #008080;
    --primary-dark: #005c5c;
    --primary-darker: #003333;
    --primary-color: #fff;
    --secondary: #ff0000;
    --border: #c5c5c5;
    --alt: #fff;

    /* Logo colours */
    --teal: #014242ff;
    --green: #006400ff;
    --cyan: #cbecffff;
}

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/avenir-webfont.eot');
    src: url('../fonts/avenir-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/avenir-webfont.woff2') format('woff2'),
         url('../fonts/avenir-webfont.woff') format('woff'),
         url('../fonts/avenir-webfont.ttf') format('truetype'),
         url('../fonts/avenir-webfont.svg#avenir-webfont') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../fonts/figtree-webfont.eot');
    src: url('../fonts/figtree-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/figtree-webfont.woff2') format('woff2'),
         url('../fonts/figtree-webfont.woff') format('woff'),
         url('../fonts/figtree-webfont.ttf') format('truetype'),
         url('../fonts/figtree-webfont.svg#figtree-webfont') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column; /* make body a column flex */
    min-height: 100vh;      /* fill the viewport */
    font-family: "Avenir", "Figtree", "Calibri", "sans-serif";
    font-weight: normal;
    font-style: normal;
    color: #222;
    background-color: #E2EFEF;
    background-image: url('../img/texel_bg.webp');
    background-position: top center;
    background-repeat: repeat;
}

header {
    min-height: 40px;
    text-transform: unset;
    justify-content: unset;
}

header li {
    margin-right: 10px;
    font-size: 13px;
}

/* Headings */

h1 {
    font-size: 30px;
}

h2 {
    font-size: 27px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 21px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

/* Other styles */
.content-wrapper {
    margin-top: 30px;
    float: left;
    clear: both;
}

div.main-content {
    width: 50%;
    float: left;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    padding-bottom: 0;
}

div.main-pic {
    background-size: cover; 
    background-position: top center;
    max-width: 440px;
    height: auto;
    width: 50%;
    margin-right: 30px;
    float: left;
    display: flex;
}

img.main-pic {
    margin-right: 10px;
    max-width: 400px;
}

.main-text {
    font-size: 24px;
    float: left;
    min-width: 425px;
    padding: 0 20px 10px 25px;
    text-align: justify;
    background-color: #dbececc2;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
}

.top {
    display: flex;
}

.branding {
    width: 256px;
    float: left;
}

.main-menu {
    width: calc(100% - 256px);
    text-align: right;
    align-content: end;
}

.org-name {
    color: #DBECEC;
    text-align: right;
    padding-top: 5px;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 1px;
}

div#hamburger {
    margin-right: 20px;
    color: #DBECEC;
}

#main {
    background-color: #fcfcfc;
}

#sidebar {
    background-color: #eaeaea;
    margin-right: 0px;
    -webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
    -moz-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
}

button, .button {
    margin: 10px 10px 10px 0;
    background-color: var(--primary);
    border: 1px solid var(--primary-darker);
    text-transform: uppercase;
}

input[type="text"], input[type="email"], input[type="password"], button, textarea, select {
    border-radius: 0;
}

a {
    text-decoration: none;
}

.logo {
    width: auto;
    max-width: 120px;
}

.main-logo {
    width: 300px;
    display: block;
    margin: auto;
}

.small-logo {
    width: 70px;
    float: left;
    padding-right: 10px;
}

.tiny-logo {
    width: 50px;
    float: left;
    padding-right: 10px;
}

.name, .title_product {
    font-family: "Avenir", "Figtree", "Calibri", "sans-serif";
    font-size: 14px;
    padding-bottom: 5px;
    margin-bottom: 5px;
    text-align: center;
    color: #014242ff;
    font-weight: bold;
    border-bottom: 1px solid #014242ff;
}

.title_product {
    border-bottom: unset;
    text-align: left;
    font-size: 20px;
    padding: 0;
    margin: 0;
}

.product {
    font-family: "Avenir", "Figtree", "Calibri", "sans-serif";
    font-size: 40px;
    margin-bottom: 5px;
    color: #014242ff;
    font-weight: bold;
    letter-spacing: 2px;
}

.login-name {
    font-family: "Avenir", "Figtree", "Calibri", "sans-serif";
    font-size: 22px;
    padding: 0 0 10px 0;
    margin-bottom: 5px;
    color: #014242ff;
    text-transform: uppercase;
}

.admin-home {
    max-width: 23%;
    margin-right: 20px;
}

.date {
    min-width: 87px;
}

.groups {
    max-width: 200px;
}

.end-date {
    width: 95px;
}

.count {
    width: 50px;
}

.email {
    max-width: 200px;
}

.phone {
    max-width: 120px;
}

.action {
    margin: 0 5px 0 5px !important;
}

.footer {
    font-size: 13px;
    margin: 20px;
    text-align: center;
}

footer {
    background-color: var(--primary-darker);
    margin-top: -3px;
}

footer > div:nth-child(1) {
    background-color: unset;
    min-height: unset;
}

.login {
    max-width: 330px;
}

.register {
    max-width: 400px;
}

.center {
    text-align: center;
    margin: auto;
}

.maroon {
    color: #990000;
}

.red {
    color: #FF0000;
}

.green {
    color: #007700;
}

.teal {
    color: var(--primary-dark);
}

.bold {
    font-weight: bold !important;
}

.active-inactive {
    margin-bottom: -10px;
}

.inactive {
    background-color: #dddddd;
}

.menu-item li {
    font-size: 13px;
}

#top-nav ul, #bottom-nav ul {
    padding: 0;
    margin: 0;
}

#top-nav ul, #bottom-nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: stretch;
    align-content: end;
  }
  
#top-nav li a, #bottom-nav li a {
    color: #fffeb3;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#top-nav li a:hover, #bottom-nav li a:hover {
    text-decoration: underline;
    color: #ffff00;
}

#bottom-nav li a {
    text-transform: unset;
}

.bottom-menu {
    padding-bottom: 10px;
    display: table;
}

.quarter {
    width: 25%;
    float: left;
}

.third {
    width: 33.3%;
    float: left;
}

.half {
    width: 50%;
    float: left;
}

.two-thirds {
    width: 66.6%;
    float: left;
}

.three-quarters {
    width: 75%;
    float: left;
}

.full {
    width: 100%;
    float: left;
    clear: both;
}

.tg-showing-statement {
    clear: both;
}

.clear-both {
    clear: both;
}

.tiny-image {
    width: 17px;
    padding-left: 10px;
    margin-bottom: -3px;
}

a.module-name {
    color: #ffffff;
}

.module-icon-big {
    width: 75px;
    margin-right: 30px;
}

.module-icon-medium {
    width: 100px;
}

.module-icon-small {
    width: 40px;
    float: left;
    padding-right: 10px;
}

.record-icon {
    width: 150px;
    float: left;
    margin: 0 20px 0 0;
    border: 1px solid #ccc;
}

.record-icon-small {
    width: 70px;
    float: left;
    margin-right: 7px;
    border: 1px solid #ccc;
}

.notes {
    color: #9f00c6;
    font-size: 87%;
    padding: 10px 10px 10px 0;
}

.notes-half {
    max-width: 245px;
    padding-left: 2px;
}

.form-field-wrapper {
    float: left;
    margin-right: 13px;
}

#add_field_link_wrapper {
    float: left;
    width: 100%;
}

.SMSFields {
    margin-bottom: 15px;
    float: left;
}

.placeholder_email, .placeholder_sms, .placeholder_whatsapp {
    cursor: pointer; /* Change cursor to pointer on hover */
    margin-right: 5px;
    color: var(--primary);
}

.stats {
    border: 1px solid var(--primary);
    background-color: #eaeaea;
    padding: 7px;
    margin: 0 10px 10px 0;
    float: left;
}

.stats-global {
    background-color: #afffff;
}

.stats-title {
    margin: 0 10px 10px 0;
    padding: 7px 0 7px 0;
    float: left;
    color: #990000;
    width: 60px;
}

.logged-in {
    font-size: 90%;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--primary-dark);
    display: flex;
    flex-direction: row; 
}

.roles {
    display: block;
}

.role {
    width: 50%;
    min-height: 110px;
    float: left;
}

.role-desc {
    padding: 0 10px 0 10px;
    font-size: 90%;
    color:#9f00c6;
}

.denied {
    width: 100%;
    max-width: 400px;
}

.user-data {
    float: left;
}

.expiry {
    float: left;
    border-left: 1px solid;
    margin: -3px 0 0 10px;
    padding-left: 10px;
}

.line {
    width: 100%;
    border-top: 1px solid var(--primary-darker);
    margin: 10px 0 10px 0;
}

.left, .left p {
    text-align: left;
}

.price {
    margin: 10px 0 0 0;
}

.float-left {
    float: left;
}

.margin-top {
    margin-top: 15px;
}

.margin-bottom {
    margin-bottom: 15px;
}

.margin-top-bottom {
    margin: 15px 0 15px 0;
}

.margin-right {
    margin-right: 15px;
}

.margin-left {
    margin-left: 15px;
}

.margin-left-right {
    margin: 0 15px 0 15px;
}

.padding-top {
    padding-top: 15px;
}

.padding-bottom {
    padding-bottom: 15px;
}

.padding-top-bottom {
    padding: 15px 0 15px 0;
}

.padding-right {
    padding-right: 15px;
}

.padding-left {
    padding-left: 15px;
}

.padding-left-right {
    margin: 0 15px 0 15px;
}

.topup-date {
    min-width: 85px;
}

#slide-nav {
    background-color: var(--primary-darker);
}

#top-slide-nav {
    background-color: var(--primary-darker);
    -webkit-box-shadow: 10px 0px 5px -4px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 10px 0px 5px -4px rgba(0, 0, 0, 0.75);
    box-shadow: 10px 0px 5px -4px rgba(0, 0, 0, 0.75);
}

#top-slide-nav, #slide-nav {
    width: 0;
    opacity: 0;
    height: unset !important;
    top: 0;
    left: 0;
    position: fixed;
    transition: 0.1s;
    z-index: -1;
}

#top-slide-nav ul {
    list-style-type: none;
    padding: 12px;
}

#top-slide-nav li {
    margin-bottom: 7px;
}

#top-slide-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

#left-nav ul {
    padding: 0;
}

#top-slide-nav a:hover {
    text-decoration: underline;
}

.hide-tg {
    color: #00e0e0 !important;
}

.home-link a {
    font-weight: bolder;
    color: #ccc;
}

.api-button {
    float: left;
}

#left-nav li.current-link a, #mid-nav div.current-link a  {
    color: #990000;
}

nav#top-nav {
    justify-content: right;
}

#top-nav li, #bottom-nav li {
    margin: 0 0 0 1em;
}

#top-nav li.current-link a, #top-nav-side li.current-link a, #bottom-nav li.current-link a  {
    color: #ffff00;
}

.home-logo {
    padding: 20px 0;
    width: auto;
    height: auto;
    max-width: 90px;
    max-height: 70px;
}

.modal-scroll {
    max-height: 400px; 
    overflow-y: auto;
}

.modal-hide {
    display: none;
}

.no-margin {
    margin: 0;
}

.no-padding {
    padding: 0;
}

.square-bullets {
    list-style-type: square;
}

.content-filler {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--primary-darker);
    float: left;
}

/* Media styles */

@media (max-width: 1024px) {
    .count, .end-date {
        display: none;
    }

    .half {
        width: 70%;
        max-width: unset;
    }

    .admin-home {
        margin-right: 14px;
    }

    .user, .approver {
        display: none;
    }
}

@media (max-width: 840px) {
    #mid-nav {
        width: calc(100% - 12px);
        padding: 7px 0px 10px 10px;
        margin-right: -10px;
        margin-bottom: 10px;
        border: 1px solid var(--primary-dark);
        border-top: 0px;
        background-color: #f9f9a5;
    }

    .mid-menu-item {
        display: inline-block;
        box-sizing: border-box;
        font-size: 14px;
    }

    .logged-in {
        margin: 0;
    }

    div.main-pic {
        max-width: 320px;
    }

    div.main-content {
        width: 48%;
    }

    .main-text {
        max-width: 300px;
        font-size: 18px;
        min-width: 300px;

    }

    div.main-pic {
        max-width: 370px;
        margin-right: 20px;
    }

    div.main-content {
        width: 47%;
    }

    .main-menu {
        width: 480px;
    }

}

@media (min-width: 840px) {
    #sidebar {
        min-width: 120px;
    }

    #mid-nav {
        display: none;
    }

    main-text {
        font-size: 20px;
        padding: 0px 20px 7px 25px;
    }
}


@media (min-width: 768px) {
    .hide-tg, div#hamburger {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 839px) {
    .main-text {
        max-width: 280px;
        min-width: 280px;
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .count, .end-date, .groups, .action, .contact, .email, .status, .date-record, .sms, .whatsapp, .licence, .user, .approver, #top-nav, .value, .pages, .slug {
        display: none;
    }

    .half {
        width: 100%;
        max-width: unset;
    }

    .admin-home {
        max-width: 100%;
        width: 100%;
    }

    main > p {
        margin: revert;
    }

    .stats {
        clear: both;
        float: unset;
    }

    .logged-in {
        flex-direction: column;
        font-size: 85%;
    }

    .expiry {
        margin: 10px 0 0 0;
        border-left: 0;
        margin-left: 0;
        padding-left: 0;
    }

    .roles {
        display: flex;
        flex-direction: column;
    }

    .role {
        width: 100%;
        margin-left: -15px;
    }

    .line {
        border-top: 1px solid var(--primary);
    }

    nav#top-nav {
        border-right: unset;
    }

    .stats-title {
        margin: 10px 0 10px 0;
        width: 100%;
    }

    main > p {
        display: block; 
    }

    div.main-pic {
        float: none;
    }

    .top {
        float: left;
    }

    .main-text {
        min-width: 256px;
        width: 100%;
    }

    div.main-pic {
        width: 100%;
    }

    div.main-content {
        width: calc(100% - 50px);
    }
}
