﻿* {
    box-sizing: border-box;
}

*, *:focus, *:hover {
    outline: none;
}

/* https://demo.bootstrapious.com/dark-admin-premium/2-0/index.html# */
:root {
    --header-color: #4a4175;
    --background-color: #fffcfc;
    --panel-background-color: #F6F6F6;
    --panel-highlight-background-color: #e0e0e0;
    --font-color: black;
    --sub-font-color: #72747c;
    --border-color: #e0e0e0;
    --bs-font-sans-serif: "Muli", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --highlight-color: #4a4175;
    --color-success: #528766;
    --color-error: #875256;
    --color-pending: #9c854b;
    --color-sending: #5b7588;
    --information-warning-color: #d9c581;
    --mud-palette-text-primary: var(--font-color) !important;
    --mud-typography-default-family: var(--bs-font-sans-serif) !important;
    --mud-elevation-1: 0 !important;
    --mud-palette-text-secondary: var(--sub-font-color) !important;
    --mud-palette-surface: var(--background-color) !important;
    --mud-palette-primary: var(--highlight-color) !important;
    --mud-default-borderradius: 1px !important;
    --mud-palette-action-default: var(--font-color) !important;
    --mud-palette-action-disabled: var(--sub-font-color) !important;
    --mud-palette-lines-inputs: var(--border-color) !important;
    --mud-typography-default-size: 15px !important;
    --mud-typography-h6-family: var(--bs-font-sans-serif) !important;
}


.mud-input-label,
.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol {
    color: var(--highlight-color);
}


html {
    height: 100%;
    color: var(--font-color);
    font-size: 15px;
    font-family: var(--bs-font-sans-serif);
}

body {
    padding: 0%;
    margin: 0;
    height: 100%;
    background-color: var(--background-color);
    color: var(--font-color);
}

#app{
    height: 100%;
}

#blazorcontent{
    padding: 0%;
    margin: 0;
    height: 100%;
    display: grid;
    grid: min-content 1fr min-content/ 250px 1fr;
    grid-template-areas: "header header"
        "nav    main  "
        "footer footer";
}

header
{
    background-color: var(--header-color);
    
}

nav, #page-header, footer {
    background-color: var(--panel-background-color);
}


header {
    grid-area: header;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

header ul,
header ul select
{
    color: #a2a3a5;
}

.user-menu {
    width: 30px;
    text-align: right;
    position: relative;
    display: inline-block;
}

.user-menu:hover > ul {
    display: block;
}

.user-menu ul {
    display: none;
    position: absolute;
    background-color: var(--border-color);
    right: 0px;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    text-align: left;
}

.user-menu ul li {
    width: 100%;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.user-menu ul li a {
    display: block;
    width: 100%;
}

.user-menu ul li:hover {
    background-color: var(--background-color);
}


nav {
    grid-area: nav;
    border-right: 1px solid var(--border-color);
    padding-top: 20px;
}

main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 14px;
}

footer {
    grid-area: footer;
    padding: 20px;
    text-align: center;
}

#page-header {
    padding: 20px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: baseline;
    height: min-content
}

.action-bar {
    display: inline-block;
}

button {
    background-color: #0000001e;
    padding: 6px 16px 6px 16px;
    font-weight: 500;
    font-family: Roboto, Helvetica, Arial, "sans-serif";
    color: var(--sub-font-color);
}

button[type=submit] {
    background-color: var(--highlight-color);
    color: white;
}

button:disabled {
    background-color: var(--border-color);
    color: white;
}

button.processing {
    cursor: wait;
}

button.form-action {
    background-color: transparent;
    border: 1px solid var(--highlight-color);
    color: var(--highlight-color);
    margin-bottom: 20px;
    border-radius: 10px;
}

select.standard {
    background-color: var(--background-color);
    padding: 15px;
}

select.standard option[disabled] {
    color: var(--highlight-color);
}

#template-selector-group {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
}

#template-selector-group > select {
    flex-grow: 4;
    height: 100%;
}

#template-selector-group > button {
    flex-grow: 1;
    height: 100%;
}

.action-bar a {
    background-color: var(--border-color);
    padding: 5px 10px 5px 10px;
    border: 1px solid;
    margin-left: 10px;
    cursor: pointer !important;
    line-height: 1.5em;
}

.action-bar a {
    border-color: var(--border-color) !important;
}

.action-bar a:before {
    color: var(--highlight-color);
    margin-right: 10px;
    font-size: 20px;
    line-height: 18px;
    display: inline-block;
    font-family: "Font Awesome 5 Free";
}

.action-bar a.add:before {
    content: "\f0fe";
}

.action-bar a.back:before {
    content: "\f191";
}

.action-bar a.edit:before {
    content: "\f044";
}

.action-bar a.delete:before {
    color: lightcoral;
    content: "\f2ed";
}

.action-bar a.details::before {
    content: "\f06e";
}

.action-bar a.advanced::before {
    content: "\f151";
}

.action-bar a.basic::before {
    content: "\f150";
}

.action-bar a.export::before {
    content: "\f358";
}

.action-bar a.copy::before,
.action-bar a.clone::before {
    content: "\f0c5";
}

.action-bar a.show::before {
    content: "\f06e";
}

.action-bar a.hide::before {
    content: "\f070";
}

.action-bar a.cancel {
    background-color: lightcoral;
    color: white;
}

.action-bar a.cancel::before {
    content: "\f410";
    color: white !important;
}

.action-bar a.upload::before
{

    content: "\f35b";
}

#logo {
    display:block;
    width: 216px;
    height: 48px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("../img/bwlogo.png");
}

/* Navigation */

nav {
    padding-top: 10px;
}

nav a {
    color: var(--font-color);
    text-decoration: none;
    display: inline-block;
    padding: 15px 15px 15px;
    width: 200px;
}

nav ul {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

nav li:first-child {
    margin-top: 10px;
    margin-bottom: 10px;
}

nav li {
    display: flex;
    flex-direction: row;
    border-left: 3px solid var(--panel-highlight-background-color);
}

nav li.current, nav li:hover {
    background-color: var(--panel-highlight-background-color);
    border-left: 3px solid var(--highlight-color);
}

nav li > span {
    width: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 20px;
    padding-right: 30px;
    border-right: 1px solid var(--panel-highlight-background-color);
}

nav li.current > span, nav li:hover > span {
    color: var(--highlight-color);
    border-color: var(--highlight-color);
}

nav li.seperator {
    border-top: 1px solid var(--border-color);
}

/* header */

header > ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
}

header > ul > li {
    list-style: none;
    align-self: center;
    margin-left: 20px;
}

header > ul > li:first-child {
    flex-grow: 1;
    margin-left: 0;
}

header > ul > li > ul {
    display: none;
}

header span.fa {
    font-size: 20px;
}

main
{
    overflow: scroll;
}

table {
    flex-grow: 1;
}

thead,
tbody {
    vertical-align: top;
    text-align: center;
}

td, th {
    padding: 10px;
}

tr:hover,
.mud-table-row:hover {
    background-color: var(--panel-background-color) !important;
}

#balance {
    background-color: var(--font-color);
    color: var(--background-color);
    padding: 4px 10px 4px 30px;
    display: inline-block;
}

#balance span {
    margin-left: 20px;
    margin-top: 1px;
}

#logout {
    color: var(--font-color);
    text-decoration: none;
}

/* Home Page */

#maincontent {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    animation: disolveIn 1050ms;
}

ul.validation-errors {
    list-style-type: disc;
    padding: 50px;
}

.validation-errors {
    padding: 20px;
    border: 1px solid var(--color-error);
    margin-bottom: 20px;
}

.validation-message {
    color: var(--color-error);
}


#map {
    grid-column: 1/10;
    height: 100%;
    grid-area: map;
    margin-left: 20px;
}


#headline-stats {
    display: flex;
    flex-direction: row;
    gap: 20px;
    grid-area: headline;
}

.info-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: var(--panel-background-color);
    padding: 20px;
    flex-grow: 1;
    height: min-content;
}

.info-card .fa {
    width: 100%;
}

.info-card div {
    margin-top: 5px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.info-card div .text {
    flex-grow: 1;
}

.info-card div .value {
    color: var(--highlight-color);
    font-size: 30px;
}

#call-stats {
    grid-area: stats;
    background-color: red;;
}


.panel,
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background-color: var(--panel-background-color);
    padding: 20px;
    margin-bottom: 50px;
    justify-content: center;
}

fieldset {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    justify-content: space-between;
}

fieldset label {
    width: 200px;
}

input,
select,
.mud-select-input,
.mud-input {
    line-height: 2em;
    background-color: transparent;
    color: var(--font-color);
}

.mud-input:active,
.mud-input:focus {
    border-bottom: none;
}

.mud-select .mud-select-input .mud-input-adornment-end {
    margin-left: 10px;
}

.mud-input-label {
    width: 100%;
}

.action-bar-sub,
.action-bar {
    display: flex;
    margin-top: 10px;
    margin-bottom: 0;
    padding-right: 20px;
    justify-content: flex-end;
}

.action-bar-sub {
    justify-content: flex-start;
}

fieldset.tabbed {
    display: flex;
    flex-direction: column;
}

fieldset.tabbed label {
    margin-bottom: 20px;
}

.mud-tab {
    background-color: var(--background-color);
}

.mud-tab-active {
    color: var(--highlight-color) !important;
    border-bottom: 2px solid;
}

form .mud-input-root-filled {
    background-color: var(--background-color) !important;
}

dl {
    display: flex;
    flex-wrap: wrap;
}

dt {
    width: 20%;
    margin-bottom: 30px;
    font-weight: bold;
}

dd {
    width: 80%;
    user-select: all;
}

.loading-results-progress {
    margin-top: 10px;
    height: 15px !important;
}

.panel form {
    display: flex;
    flex-direction: column;
    padding-left: 20%;
    padding-right: 20%;
    border: 0;
    background-color: transparent;
}

.panel form .mud-input {
    width: 100%;
}

.dashboard {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row !important;
    gap: 20px;
}

.dashboard .panel {
    width: 30%;
    margin-bottom: 0;
}


.dashboard-main {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 2;
    width: 70%;
}

#map {
    height: 90% !important;
    margin-left: 0;
}

table {
    border-bottom: 1px solid var(--border-color);
}

thead {
    background-color: var(--panel-background-color);
    border-right: 1px solid var(--panel-background-color);
    border-left: 1px solid var(--panel-background-color);
}

td {
    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.mud-table {
    background-color: transparent;
    color: var(--font-color);
}

.mud-table-root .mud-table-head .mud-table-cell,
.mud-table-row {
    color: var(--font-color);
}

.mud-table-cell {
    border: none;
    border-right: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.mud-table-pagination-toolbar {
    border: 0;
}

.mud-table-cell {
    font-size: 14px;
}

.mud-toolbar {
    margin-bottom: 20px;
}

.mud-toolbar h6 {
    flex-grow: 1;
}

.mud-table-cell .mud-svg-icon {
    color: var(--font-color);
    opacity: 0.5;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        position: relative;
        right: -2000px;
    }

    100% {
        opacity: 1;
        position: relative;
        right: 0;
    }
}

@keyframes disolveIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

fieldset.inner-fieldset {
    opacity: 1;
    border: 1px solid var(--border-color);
    padding: 20px 20px 30px 20px;
}

.slideIn {
    animation: slideIn 900ms;
}

.inner-fieldset .action-bar-sub {
    margin-bottom: 0;
    padding-bottom: 0;
    height: min-content;
    gap: 10px;
}

textarea {
    background-color: var(--background-color) !important;
    padding: 10px !important;
}

.mud-file-upload h6 {
    font-family: var(--bs-font-sans-serif) !important;
    font-size: 16px !important;
}

.status-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    /* background-color: orange; */
    border-radius: 10px;
    text-align: center;
}

.status-icon.enabled,
.status-icon.completed,
.status-icon.delivered {
    background-color: #20C997;
}

.status-icon.failedInsufficientCredit
{
    background-color: #C82333;
}

.status-icon.failedLimitsExceeded{
    background-color: #8B0000;
}

.status-icon.rejectedInvalidRecipient
{
    background-color: #FF0000;
}

.status-icon.cancelled,
.status-icon.unknown,
.status-icon.failed,
.status-icon.disabled,
.status-icon.cancelled {
    background-color: #e0253f;
}

.status-icon.failedrouteinvalid
{
    background-color: #A71D2A;
}

.status-icon.expired
{
    background-color: #FD7E14;
}

.status-icon.failedInsufficientDMCredit
{
    background-color: #800000;
}

.status-icon.rejected
{
    background-color: #DC3545;
}

.status-icon.deleted
{
    background-color: #6C757D;
}

.status-icon.undeliverable
{
    background-color: #ed246a
}

.status-icon.unknown
{
    background-color: #b15ddf;
}

.status-icon.submitted,
.status-icon.sending,
.status-icon.sent {
    background-color: #0097ff;
}

.status-icon.pending,
.status-icon.accepted {
    background-color: #28A745;
}

.status-icon.notSent
{
    background-color: #a3b1be;
}

.status-icon.failedinsufficientdmcredit{
    background-color: #f77c00;
}

.status-icon.suppressed{
    background-color: #525151;
}

.status-icon {
    position: relative;
}

.status-icon .information-icon {
    position: absolute;
    top: -7px;
    right: -10px;
    color: var(--information-warning-color);
    font-size: 1.5em;
}


th,
td,
.mud-table-cell {
    text-align: center;
}

td[data-label="Message"] {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 200px;
    max-width: 500px !important;
}

td[data-label="StartAt"],
td[data-label="SentAt"] {
    width: 150px;
}

td[data-label="Price"] {
    min-width: 90px;
}

.panel#map-info {
    justify-content: space-between;
}


#map-info.noinfo dl,
#map-info.noinfo h1 {
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms, visibility 900ms;
}


#map-info.info dl,
#map-info.info h1 {
    opacity: 1;
    visibility: visible;
    transition: opacity 900ms, visibility 900ms;
}

.cache-info {
    color: var(--sub-font-color);
}

.mud-dialog-title,
.mud-dialog-actions {
    background-color: var(--panel-background-color);
}

.mud-dialog-content {
    padding-bottom: 0 !important;
    padding-top: 0px !important;
}

.mud-dialog dl {
    position: relative;
    left: -24px;
}

.mud-dialog dt,
.mud-dialog dd {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 10px;
    margin: 0;
}

#smsDialog dt,
#smsDialog dd {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    margin: 0;
}

#smsDialog .mud-dialog-content {
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 3%;
    margin-top: 3%;
}

#smsDialog .text-box {
    background-color: white;
    color: black;
    padding: 3%;
    border-radius: 10px;
    margin-top: 3%;
    margin-bottom: 3%;
    overflow-wrap: break-word;
}

#smsDialog dt {
    width: max-content;
    grid-column-start: 1;
    grid-column-end: 2;
    padding-left: 0%;
}

#smsDialog dl {
    display: grid;
    grid-template-columns: .05fr 1fr;
    padding: inherit;
}

#smsDialog dt::after {
    content: ":";
}

.mud-dialog-title .modalTitle {
    margin: 0;
    position: absolute;
    top: 5.5%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.mud-dialog-title .smsMessageStatus {
    text-align: right;
    float: right;
}

.mud-dialog dd {
    width: 70%;
}

.status-icon.full {
    width: fit-content;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    height: 2em;
    color: var(--background-color);
    font-weight: 400;
}

table .status-icon.full {
    width: 150px;
}

#campaignGroupDetails,
#campaignDetails {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#campaignGroupDetails dl,
#campaignDetails dl {
    height: min-content;
    width: 70%;
    align-self: center;
}

#campaignGroupDetails .mud-chart,
#campaignDetails .mud-chart {
    width: 30%;
}

.mud-dialog-width-full {
    max-width: 1100px !important;
}

.message-info .smstype.unicode span {
    color: #fcf005;
    font-weight: 600;
}

.mud-table-loading {
    display: none;
}


.download-dialog .mud-dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.3em;
}

.download-dialog .mud-dialog-content img {
    margin: 20px;
    display: block;
}

#campaignDetails canvas {
    width: 350px;
}

button.selected {
    background-color: steelblue;
    text-decoration: underline;
}

.information-bar {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    line-height: 50px;
    width: 100%;
    padding: 50px;
    background-color: var(--information-warning-color);
    margin-top: 20px;
    margin-bottom: 50px;
    color: black;
    font-size: 1.2em;
    flex-wrap: wrap;
}

.information-bar a {
    width: 100%;
    color: white;
    padding: 20px;
    background-color: #528766;
    text-align: center;
    margin: 10px;
}
.information-bar.smaller {
    line-height: 20px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1em;
}

.information-bar i {
    font-size: 50px;
    margin-right: 20px;
    color: var(--panel-background-color);
}

.information-bar.smaller i {
    font-size: 20px;
}

.option {
    padding: 10px;
    color: white;
}

.copy-to-clipboard {
    background-color: steelblue;
}

.revoke-token {
    background-color: var(--color-error);
}

.mud-switch-track.mud-default {
    background-color: red;
}

.mud-switch-track.mud-secondary {
    background-color: green !important;
}

.reversed .mud-switch-track.mud-default {
    background-color: green !important;
}

.reversed .mud-switch-track.mud-secondary {
    background-color: red !important;
}

label.mud-switch
{
    width: 100%;
}

span.mud-switch-button span
{
    background-color: var(--font-color)!important;
}

button.selected
{
    background-color: steelblue;
    text-decoration: underline;
}

.mud-table-cell .mud-svg-icon.mud-direction-asc,
.mud-table-cell .mud-svg-icon.mud-direction-desc
{
    display: inline-block;
    color: var(--highlight-color);
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.mud-input>textarea.mud-input-root.mud-input-root-filled.mud-input-root-margin-dense
{
    margin:0px;
}

.mud-input-control>.mud-input-control-input-container>.mud-input-label-inputcontrol
{
    line-height: 1.5em;
}

a.highlight {
    text-decoration: underline;
    color: var(--highlight-color);
}

.search-form
{
    align-items: center;
}

.search-form > fieldset
{
    width: 100%;
    max-width: 1000px;
}

.search-form .action-bar
{
    padding-right: 0;
    gap: 10px;
}

.selected-param
{
    background-color: var(--highlight-color) ;
    color: white;
}