@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;800&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    background: whitesmoke;
}

a {
    color: inherit;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.button-panel {
    display: block;
}

.login-screen {
    background: whitesmoke;
}

.login-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 80vw;
}




.login-wrapper .logo {
    text-align: center;
    font-weight: 900;
    color: #fff;
    font-size: 1.4rem;
}

.login-form {
    border-style: none;
    border-radius: 15px;
    background-color: #571666;
    color: #fff;
    padding: 40px 40px;
}

.login-form .form-title {
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    padding: 20px;
}

.login-form a {
    display: block;
    margin: 10px 0px 20px 0px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;

}


.login-form a:hover {
    text-decoration: underline;
}

.login-form .login-button {
    width: 100%;
    background-color: #ffb300;
    border-radius: 4px !important;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    outline: none;
    display: block;
    padding: 14px 40px;
}



.primary-button {
    background-color: #ffb300;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    outline: none;
    /* display: inline-block; */
    padding: 20px 40px;
}

.secondary-button {
    /* width: 100%; */
    background-color: grey;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    height: 40px;
    cursor: pointer;
    outline: none;
    margin-right: 40px;
    padding: 10px 40px;
}

.back-button {
    padding: 10px 20px;
    background: whitesmoke;
    border: 1px solid grey;
    cursor: pointer;
    margin: 10px 0px;
    width: 100px;
}

.tertiary-button {
    width: 100%;
    background-color: #571666;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    height: 40px;
    cursor: pointer;
    outline: none;
}

.forgot {
    font-size: 0.9rem;
}

.login-error {
    text-align: center;
}

.login-error,
.form-errors {
    color: orangered;
    font-size: 0.85rem;
    padding: 10px 0px;

}

.form-row {
    display: block;
}

.counter {
    display: block;
}


.date-time-wrapper {
    display: flex;
}

.date-time-wrapper input {
    max-width: 150px;
}

.date-time-wrapper select {
    margin: 0px;
    max-width: 80px;
    min-width: 80px;
}

label {
    font-weight: 600;
}

input[type=text],
input[type=password],
input[type=number],
input[type=file] {
    height: 40px;
    width: 100%;
    border: 1px solid silver;
    border-radius: 5px;
    font-size: 1rem;
    padding: 3px 15px;
    margin: 14px 0px 14px 0px;
}

input[type=text]:focus,
input[type=password],
textarea:focus {
    outline: 1px solid #571666;
}





textarea {
    border: 1px solid silver;
    height: 100px;
    width: 100%;
    background-color: white !important;
    padding: 10px 10px;
    margin: 14px 0px 14px 0px;
    border-radius: 4px;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
}

select {
    height: 40px;
    width: 100%;
    background: none;
    border: 1px solid silver;
    border-radius: 5px;
    width: 100%;
    outline: none;

}


.login-form a {
    font-weight: bold;
}

.canvas {
    display: flex;
    border-radius: 0px 0px 0px 0px;
    margin: 20px 20px;
    background: rgba(225, 226, 246);
}

.side-bar {
    width: 100%;
    min-height: 90vh;
    background: white;
    padding-left: 2px;
}

.logo-wrapper {
    display: inline-block;
    padding: 20px 10px 10px 10px;

}

.logo-icon {
    margin: 4px 0px;
    padding: 10px 8px;
    border-radius: 50%;
    background-color: #006699;
    color: white;
    width: 36px;
    height: 36px;

}

.logo-text {
    margin: 0px 4px 0px 4px;
}

.flexbiz-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.flexbiz-product {
    /* font-size: 0.8rem; */
    /* margin: 0px 14px; */
    color: #ffb300;
    font-weight: 800;
}

.main-menu {
    margin: 10px 0px;
    border: none;
}



.main-menu ul li {
    margin: 10px 0px;
    color: #fff;
}

.main-menu ul .active {
    color: #ffb300;
}


.main-menu ul li a {
    display: inline-block;
    padding: 8px 15px;
    font-size: 1rem;
    width: 100%;
}

.main-menu ul li a i {
    color: inherit;
    width: 40px;
    text-align: center;
}

.content-wrapper {
    padding: 80px 10px 10px 10px;
    position: relative;
    top: 10px;
    max-width: 100vw;
    background: whitesmoke;
}


.page-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
}


.page-functions {
    display: flex;
    margin: 10px 5px;
}

.page-functions li {
    display: flex;
    margin: 2px 5px 0px 0px;
    padding: 2px 0px;
}

.page-functions a {
    margin: 0px 5px 0px 0px;
    padding: 5px 10px;
    background: #684574;
    color: white;
    border-radius: 3px;
    font-size: 0.9rem;
}

.page-functions a i {
    margin: 0px 4px;
}

.fa-trash {
    color: brown;
}



.user-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: 1px solid #ffb300;
    background: #fff;
    border-radius: 4px;
    padding: 10px;
}

.user-wrapper .balance {
    padding: 10px 0px 0px 0px;
}

.user-wrapper .user-profile {
    padding: 4px 0px;
}



.user-wrapper .user-name {
    font-weight: 800;
    font-size: 0.9rem;
}

.user-wrapper .user-email {
    font-weight: 400;
    font-size: 0.7rem;
    color: grey;
}

.page-title {
    margin: 20px 0px 10px 0px;
}

.table-wrapper {
    max-height: 65vh;
    overflow-y: scroll;
    background: whitesmoke;
    padding: 0px 0px;
    border-radius: 0px;
    border: 1px solid #FAFAFA;
}


table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    font-size: 0.85rem;
    background: #FAFAFA;
    position: relative;
}

tr:nth-child(even) {
    background-color: #fff;
}

.table-header {
    font-weight: bold;
    background-color: #571666;
    color: white;
    position: sticky;
    top: 0;
    border-bottom: none;
    text-transform: uppercase;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #ffb300;
}

th {
    position: sticky;
    top: 0;
}

.row-options {
    display: flex;
    justify-content: space-between;
}

.row-options div {
    display: flex;
    margin-left: 10px;
}

.row-options i {

    margin: 0px 10px;
    cursor: pointer;
    font-size: 1rem;
}

.fa-edit {
    color: orange;
}

.fa-plus {
    color: #ffb300;
}

.fa-file-upload {
    color: olive;
}

.fa-trash {
    color: brown;
}

.group-details {
    padding: 20px 0px;
}

.preview-header {
    margin: 10px 0px;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-radius: 4px;
}

.preview-header .page-button {
    background: whitesmoke;
    border: 1px solid #ffb300;
    margin: 4px 0px;
    width: 100%;
}



.preview-summary {
    margin: 10px 0px;
    padding: 20px 20px;
    display: block;
    justify-content: space-between;
    background: #fff;
    border-radius: 4px;
}

.preview-summary .stat-wrapper {
    display: flex;
}

.preview-summary .stat-label {
    font-weight: 800;
}


.preview-summary .stat-data {
    padding: 0px 10px;
    color: #ffb300;
    font-weight: 800;
}

.page-header {
    margin: 10px 0px;
    padding: 20px 20px;
    display: block;
    justify-content: space-between;
    background: #fff;
    border-radius: 4px;
}

.page-header .search-wrapper {
    width: 100%;
    margin: 10px 0px;
}


.page-header a {
    display: inline-block;
    padding: 8px 40px 8px 40px;
    font-size: 0.9rem;
    font-weight: 800;
    background: #ffb300;
    border-radius: 4px;
}

.page-header .page-button {
    background: whitesmoke;
    border: 1px solid #ffb300;
    margin: 4px 0px;
    width: 100%;
}

.page-header .page-button i {
    margin-right: 10px;
}

.page-header .button-panel {
    display: block;
}



.search-wrapper {
    display: inline-flex;
    border: 1px solid #ffb300;
    border-radius: 4px;
    background: #fff;
}

.search-wrapper input {
    border: none;
    outline: none;
    margin: 0px;
    height: 30px;
    font-size: 0.9rem;
}

.search-wrapper input:focus {
    border: none;
    outline: none;
}

.search-wrapper i {
    padding: 6px 10px;
    cursor: pointer;
}


.page-menu {
    display: flex;
    padding: 0px 5px;
}

.page-menu i {
    display: block;
}

.page-menu li {
    border: 1px solid var(--gray-color);
    display: block;
    cursor: pointer;
    padding: 0px 10px;
    text-align: center;
}

.page-menu label {
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 0px;
    display: inline-block;
}

.page-menu li a {
    display: block;
    padding: 5px 10px;
    font-size: 0.9rem;
}

.page-menu li i {
    margin: 0px 5px;
}

.page-options {
    display: block;
    width: 100%;
}

.page-options label {
    font-size: 0.9rem;
    padding: 5px 10px;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.page-options select {
    border: 1px solid grey;
    padding: 3px 5px;
    height: 40px;
}

.page-options label .flat-button {
    font-weight: bold;
    cursor: pointer;
}

.page-options ul {
    display: block;
    width: 100%;

}

.page-options ul li {
    margin: 10px 5px;
    font-size: 0.9rem;
    display: flex;
    width: 100%;
}

.page-options ul li label {
    display: inline-block;
}


.page-options ul li i {
    padding: 5px 10px;
    border: 1px solid var(--gray-color);
    border-radius: 3px;
}

.page-options ul li #keyword {
    border: 1px solid var(--gray-color);
    padding: 4px 5px;
    width: 150px;
    outline: none;
}

.page-options ul li .date-field {
    border: 1px solid var(--gray-color);
    padding: 4px 5px;
    width: 100px;
    outline: none;
}

.pagination {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 0px;
    font-size: 0.85rem;
    background-color: whitesmoke;
}

.pagination .page-nav {
    display: flex;
}

.pagination .page-nav i {
    cursor: pointer;
    margin: 0px 10px;
    font-size: 1rem;
}

.pagination .page-nav .page-records li {
    margin: 0px 3px;
}

.pagination .page-rows {
    display: flex;
    padding: 0px 5px;
}

.pagination .page-rows li label {
    display: inline-block;
    padding: 5px 10px;
}

.pagination .page-rows li select {
    border: 1px solid var(--gray-color);
    border-radius: 3px;
    padding: 3px 0px;
    width: 100px;
}

.modal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background-color: white;
    overflow: auto;
    border-radius: 5px;
    border: 1px solid grey;
    box-shadow: 2px 2px 2px grey;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    background: grey;
}

.modal-title {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    padding: 10px 10px;
}

.modal-close {
    margin: 4px 4px;
}

.modal-close i {
    cursor: pointer;
    margin: 4px 4px;
    color: whitesmoke;
    border: 1px solid silver;
    border-radius: 4px;
    padding: 4px 6px;
}


#buy {
    display: none;
}


#buy_modal {
    display: none;
    min-width: 100%;
    min-height: 40%;
}


#buy_modal .modal-content {
    padding: 20px 20px;
}

#buy:checked~#buy_modal {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}




#create_contact {
    display: none;
}


#create_contact_modal {
    display: none;
    min-width: 100%;
    min-height: 100%;
}


#create_contact_modal .modal-content {
    padding: 20px 20px;
}

#create_contact:checked~#create_contact_modal {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}


#edit_contact {
    display: none;
}


#edit_contact_modal {
    display: none;
    min-width: 100%;
    min-height: 100%;
}


#edit_contact_modal .modal-content {
    padding: 20px 20px;
}

#edit_contact:checked~#edit_contact_modal {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}


#manage_groups {
    display: none;
}


#manage_groups_modal {
    display: none;
    min-width: 100%;
    min-height: 100%;
}


#manage_groups_modal .modal-content {
    padding: 20px 20px;
}

#manage_groups:checked~#manage_groups_modal {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}



#move_groups {
    display: none;
}


#move_groups_modal {
    display: none;
    min-width: 100%;
    min-height: 100%;
}


#move_groups_modal .modal-content {
    padding: 20px 20px;
}

#move_groups:checked~#move_groups_modal {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}



#edit_group {
    display: none;
}


#edit_group_modal {
    display: none;
    min-width: 100%;
    min-height: 100%;
}


#edit_group_modal .modal-content {
    padding: 20px 20px;
}

#edit_group:checked~#edit_group_modal {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}



#import_contacts {
    display: none;
}


#import_contacts_modal {
    display: none;
    min-width: 100%;
    min-height: 100%;
}


#import_contacts_modal .modal-content {
    padding: 20px 20px;
}

#import_contacts:checked~#import_contacts_modal {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}

#create_template {
    display: none;
}


#create_template_modal {
    display: none;
    min-width: 100%;
    min-height: 100%;
}


#create_template_modal .modal-content {
    padding: 20px 20px;
}

#create_template:checked~#create_template_modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}

#edit_template {
    display: none;
}

#edit_template_modal {
    display: none;
    min-width: 100%;
    min-height: 100%;
}

#edit_template_modal .modal-content {
    padding: 20px 20px;
}

#edit_template:checked~#edit_template_modal {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 40%);
}

.compose-form li:nth-child(even) {
    border-bottom: 1px solid #ffb300;
    border-top: 1px solid #ffb300;
}

.compose-menu li {
    /* margin: 20px 0px; */
}

.compose-menu li {
    background: #fff;
    padding: 20px 20px;

}

.compose-menu .compose-type {
    font-weight: 800;
    font-size: 1.2rem;
    color: #353535;
}

.compose-form {
    margin: 20px 0px;
    background: #fff;
    padding: 20px 20px;
    border-radius: 4px;
    border: 1px solid #ffb300;

}


.compose-form label {
    display: inline-block;
    padding: 20px 0px 4px 0px;
}

.compose-form select {
    padding: 0px 10px;
    background: #fff;
}

.compose-form input {
    margin: 4px 0px;
}

#antispam-wrapper {
    border-style: solid;
    border-width: 1px;
    border-color: red;
    border-radius: 5px;
    display: flex;
    width: 100%;
    float: center;
    margin: 0 auto;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 5px 10px;
    background: white;
}

#antispam-wrapper a {
    color: #E2009B;
    text-decoration: underline;
}

#antispam-wrapper input[type=checkbox] {
    margin: 20px 5px;
    border: 1px solid red;
    display: inline;
    width: 20px;
    height: 20px;
}

.balance-error {
    color: red;
    /* margin: 15px 0px; */
    padding: 20px 0px;
}


.pricelist {}



.buy-wrapper {
    width: 100%;
}

.buy-wrapper .buy-form {
    border: 1px solid silver;
    padding: 15px;
    border-radius: 5px;
    width: 100%;
}

.buy-wrapper .buy-form label {
    font-size: 1.2rem;
    margin-top: 10px;
}

.buy-wrapper .buy-form input {
    width: 100%;
    height: 40px;
    font-size: 1.2rem;
}

.buy-wrapper .buy-form .send-button {
    border-radius: 5px;
}

.buy-wrapper .form-field label {
    text-align: left;
    padding: 0px 5px;
}

.buy-wrapper table {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
    border-collapse: collapse;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.buy-wrapper tr:nth-child(even) {
    background-color: rgba(225, 225, 225, 0.5);
}

.buy-wrapper table td {
    border-bottom: solid 1px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.buy-wrapper table p {
    margin: 10px 0px;
}


.profile-wrapper {
    margin: 20px 0px;
    border: 1px solid #ffb300;
    border-radius: 4px;
    background: #fff;
}

.profile {
    display: block;
    border-bottom: 2px solid rgba(225, 226, 246, 0.4);
    margin: 0px 0px;
}

.profile label {
    display: block;
    width: 40%;
    padding: 10px 10px;
    font-weight: 800;
    text-align: left;
}

.profile-data {
    width: 100%;
    margin: 0px 10px;
    padding: 10px 0px;
    font-weight: 400;
}

.change-password {
    color: #ffb300;
    border: 1px solid whitesmoke;
    border-radius: 4px;
    padding: 4px 20px;
    font-size: 0.9rem;
}

.form-success {
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    border: 1px solid olivedrab;
    color: olivedrab;
    transition: all ease 1s;
}


.row-options {
    display: flex;
    float: right;
}

.row-options label {
    margin-left: 10px;
    cursor: pointer;
    display: flex;
}

.row-options i {
    margin: 0px 10px;
    cursor: pointer;
}

.payment-method {
    display: block;
}

.method-name {
    margin: 10px 0px;
    font-weight: 800;
    font-size: 1.1rem;
}

.method-instructions {
    margin: 20px 0px;
}

.operator-wrapper img {
    width: 80px;
    object-fit: cover;
}

#msisdn {
    width: 100%;
    box-shadow: none;
    margin: 10px 0px;
    display: block;
}

.pay-button {
    display: block;
    padding: 10px 40px;
    background: #ffb300;
    border: 1px solid;
    border-radius: 4px;
    color: white;
    font-weight: 800;
    cursor: pointer;


}

.cancel-link {
    display: inline-block;
    margin: 10px 0px;
    border: 1px solid grey;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}


.dashboard-stats {
    display: block;
    margin: 10px 0px;
    padding: 20px 20px;
    background: #fff;
    border-radius: 4px;
}

.dashboard-stats .stat-wrapper {
    width: 25%;
    border:none;
    border-radius: 4px;
    margin: 10px 20px;
    padding: 20px 20px;
    text-align: center;
    color:#fff;
}

.chart{
    background: #fff;
}
.range-selector select{
    width:200px;
    background:#fff;
    padding:0px 10px;
}
.dashboard-stats .stat-wrapper .stat-data{
    font-weight:800;
    font-size:2rem;
}

.total{
    background:#571666;
}
.delivered {
    background: green;
}

.undelivered {
    background: grey;
}

.pending {
    background: orange;
}

.failed {
    background: red;
}

@media (min-width:48em) {


    .dashboard-stats {
        display: flex;
    }

    .operator-wrapper img {
        width: 90px;
        object-fit: cover;
    }

    #msisdn {
        width: 500px;
    }

    .login-wrapper {
        position: relative;
        top: 0px;
        margin: 0 auto;
    }

    .preview-header {
        display: flex;
    }


    .preview-summary {
        display: flex;
    }


    .page-header {
        display: flex;

    }

    .page-header .button-panel {
        display: flex;
    }

    .page-header .page-button {
        margin: 0px 4px;
        width: unset;
    }

    .page-options {
        display: inline-block;
    }

    .page-options ul {
        display: flex;

    }

    .page-options ul li {
        display: flex;
    }

    .page-options ul li label {
        width: unset;
        display: flex;
    }

    .content-wrapper {
        padding: 10px 20px;
        max-width: 85vw;
        position: relative;
        left: 15%;
        top: 0;
        z-index: 999;
    }

    .login-form {
        padding: 40px 50px;
    }

    .form-row {
        display: flex;
    }

    .login-wrapper {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 30vw;
    }

    .password-wrapper {
        width: 300px;
        margin: 0 auto;
    }

    .credit-button {
        text-align: right;
        width: 100%;
        padding: 10px 10px;
    }

    .credit-button a {
        background: #ffb300;
        color: #fff;
        display: inline-block;
        padding: 10px 20px;
        border-radius: 4px;
        font-weight: 800;
    }

    .profile-wrapper {
        margin: 0px;
        background: white;
    }

    .profile {
        display: flex;
        margin: 0px 0px;
    }

    .profile label {
        width: 200px;
        padding: 10px 10px;
        text-align: right;
    }

    .profile-data {
        margin: 0px 10px;
        padding: 10px 10px;
    }

    .modal-wrapper {
        width: 40%;
    }

    .compose-form {
        padding: 20px 100px;
    }
}