@import '/css/main/fonts/montserrat.css';
@import '/css/main/fonts/euclidSquare.css';
@import '/css/main/components/pager.css';
@import '/css/main/components/toggler.css';

:root {
    --brand: #f2994a;
    --brand-shadow: rgba(242 153 74 / 30%);
    --brand-accent: #e78e29;
    --background-1: #fff;
    --background-2: #f6f6f6;
    --border: #e0e0e0;
    --font-main: Montserrat, Arial, Helvetica, sans-serif;
    --font-logo: "Euclid Square";
    --initial-font-size: 14px;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
}

a, a:hover, a:active, a:visited {
    color: inherit;
}

.service-activity-status {
    position: absolute;
    top: 10px;
    right: 10px;
    border-collapse: collapse;
    border-radius: 5px;
}

    .service-activity-status td {
        border: 1px solid lightgray;
        padding: 4px 6px;
    }

        .service-activity-status td.service-activity-ok {
            background-color: #cceecc;
        }

        .service-activity-status td.service-activity-issue {
            background-color: #eecccc;
        }

.main-layout {
    /*display: flex;
    width: 100%;
    height: 100%;*/
    margin: 40px 80px;
}

.users-actions {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

    .users-actions__search {
        flex-grow: 2;
    }

    .users-search {
        display: flex;
        gap: 10px;
    }

.users-search__field {
    width: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 155%;
    background-color: #FFFFFF;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
}

.users-search__btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 8px 32px;
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 155%;
    text-align: center;
    color: inherit;
    text-decoration: none;
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 4px;
    cursor: pointer;
}

    .users-search__btn:disabled {
        opacity: 0.5;
        cursor: default;
    }

.users-actions__add {
    display: inline-block;
    box-sizing: border-box;
    padding: 8px 32px;
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 155%;
    text-align: center;
    color: inherit;
    text-decoration: none;
    color: #000;
    background: #fff;
    border: 1px solid var(--brand);
    border-radius: 4px;
    cursor: pointer;
}

    .users-actions__add:hover {
        color: #fff;
        background: var(--brand);
    }

    .users-table {
        width: 100%;
        margin-bottom: 15px;
        border-collapse: separate;
        border-spacing: 0;
    }

    .users-table th {
        border-top: 1px solid lightgray;
        border-bottom: 1px solid lightgray;
        border-right: 1px solid lightgray;
        height: 25px;
        position: sticky;
        top: 0;
        background: white;
    }

    .users-table td {
        border-bottom: 1px solid lightgray;
        border-right: 1px solid lightgray;
        height: 25px;
    }

    .users-table th:first-child, .users-table td:first-child {
        border-left: 1px solid lightgray;
        text-align: center;
    }

    .users-table th, .users-table td {
       padding: 4px 6px;
    }

.users-table__edit-customer {
    width: 18px;
    height: 18px;

    border: none;

    background-color: transparent;
    background-image: url("/images/icons/pencil-big-grey.svg");
    background-size: contain;

    cursor: pointer;
}

.users-table__customer-campaign {
    vertical-align: top;
}

    .users-table__customer-campaign .campaign-info {
        font-weight: bold;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
    }

        .users-table__customer-campaign .campaign-info .campaign-name {
            margin-left: 6px;
        }

    .users-table__customer-campaign .queue-totals {
        margin-top: 6px;
    }

.muted {
    color: #888888;
}

.users-table__bounces a, .users-table__messages a, .users-table__username a {
    display: inline-block;
    text-decoration: none;
}

.users-table__subtext {
    display: block;
    font-size: 0.9em;
    color: #888888;
    margin-top: 2px;
}

    .users-table__bounces a:hover, .users-table__messages a:hover, .users-table__username a:hover {
        background: #f0faff;
    }

.users-data-column {
    width: 150px;
    text-align: right;
    vertical-align: top;
}

.users-row td {
    font-size: 1.1em;
    background-image: url('/images/icons/person-grey.svg');
    background-color: #eeeeee;
    background-repeat: no-repeat;
    background-position: 10px 50%;
    padding: 10px 10px 10px 40px;
}

.users__alert-danger {
    width: 17px;
    height: 15px;
    margin-left: 10px;
    background-image: url("/images/icons/danger-exclamation.svg");
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: end;
    padding-bottom: 20px;
}

.data-in-period {
    font-size: 0.9em;
    text-align: right;
}

.data-in-period__period {
    display: inline-block;
    width: 70px;
    text-align: right;
    padding-right: 6px;
    color: grey;
}

.data-in-period__data {
}

.email-account {
    display: flex;
    align-items: center;
}

.email-account__type {
    width: 32px;
    height: 32px;
    margin-right: 18px;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #28B440;
    border-radius: 50%;
}

.dashboard-table {
    border-collapse: collapse;
}

    .dashboard-table tr:last-child {
        border-bottom: 2px solid gray;
    }

    .dashboard-table th, .dashboard-table td {
        border: 1px solid lightgray;
        padding: 4px 6px;
    }

    .dashboard-table th {
        border-top: 2px solid gray;
        border-bottom: 2px solid gray;
    }

    .dashboard-table td {
        vertical-align: top;
    }

    .dashboard-table th:first-child, .dashboard-table td:first-child {
        border-left: 2px solid gray;
    }

    .dashboard-table th:last-child, .dashboard-table td:last-child {
        border-right: 2px solid gray;
    }

    .dashboard-table th.dashboard-table__row-header, .dashboard-table td.dashboard-table__row-header {
        border-right: 2px solid gray;
    }

    .dashboard-table td.dashboard-table__first-footer {
        border-top: 2px solid gray;
    }

    .dashboard-table td.dashboard-table__number, .dashboard-table td.dashboard-table__date {
        text-align: right;
    }

.billing-dashboard-data-column {
    min-width: 100px;
}

.users-dashboard-data-column {
    min-width: 150px;
}

.users-dashboard-month-column {
    text-align: center;
}

.users-dashboard-count-column {
}

.users-dashboard-percent-column {
    width: 65px;
}

.airesults-table {
    width: 100%;
    margin-bottom: 15px;
    border-collapse: collapse;
}

    .airesults-table tr:last-child {
        border-bottom: 2px solid gray;
    }

    .airesults-table th, .airesults-table td {
        border: 1px solid lightgray;
        padding: 4px 6px;
    }

    .airesults-table th {
        border-top: 2px solid gray;
        border-bottom: 2px solid gray;
    }

    .airesults-table td {
        vertical-align: top;
    }

    .airesults-table th:first-child, .airesults-table td:first-child {
        border-left: 2px solid gray;
    }

    .airesults-table th:last-child, .airesults-table td:last-child {
        border-right: 2px solid gray;
    }

.airesults-rating-column-icon {
    margin-top: 4px;
    text-align: center;
}

.inbox-messages-table .email-account {
    margin-top: 6px;
}

.inbox-messages-table .email-account__type {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.email-account__type {
    width: 32px;
    height: 32px;
    margin-right: 18px;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #28B440;
    border-radius: 50%;
}

.inbox-messages-table .message-type {
    width: 24px;
    height: 24px;
    border: 1px solid lightgrey;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inbox-messages-table .inbox-messages-table__reply .message-type {
    background-color: #a6d9f2;
}

.inbox-messages-table .inbox-messages-table__bounce .message-type {
    background-color: #ecc47c;
}

.inbox-messages-table .inbox-messages-table__our-bounce .message-type {
    background-color: #f7c3ce;
}


.email-account__type[data-type="MailRu"] {
    background-size: 60%;
    background-image: url("/images/mail-ru.svg");
}

    .email-account__type[data-type="Yandex"] {
        background-size: 35%;
        background-image: url("/images/yandex.svg");
    }

    .email-account__type[data-type="Google"], .email-account__type[data-type="GoogleSmtp"] {
        background-size: 50%;
        background-image: url("/images/google.svg");
    }

.bounce-totals-table {
    border-collapse: collapse;
}

    .bounce-totals-table th, .bounce-totals-table td {
        border: 1px solid lightgray;
        padding: 4px 6px;
    }

    .bounce-totals-table th {
        background-color: #eeeeee;
    }

        .bounce-totals-table td.bounce-totals-table__amount {
            text-align: right;
            font-weight: bold;
        }

.bounces-table {
    border-collapse: collapse;
    background-color: #eeeeee;
}

    .bounces-table th, .bounces-table td {
        border: 1px solid lightgray;
        padding: 4px 6px;
    }

        .bounces-table td.bounces-table__error_description {
            background-color: white;
            font-size: 0.8em;
        }

.messages-table {
    border-collapse: collapse;
    background-color: white;
}

    .messages-table th, .messages-table td {
        border: 1px solid lightgray;
        padding: 4px 6px;
    }

#inbox-messages-wrapper {
    margin-bottom: 20px;
}

.inbox-messages-unsorted-only-label {
    display:block;
    margin-bottom: 20px;
}

.inbox-messages-table {
    border-collapse: collapse;
    margin-bottom: 20px;
}

.inbox-messages-table th, .inbox-messages-table td {
    border: 2px solid lightgray;
    padding: 4px 6px;
    text-align: left;
}
    .inbox-messages-table tr.alter {
        background-color: #f2f2f2;
    }
    /* .inbox-messages-table tr.inbox-messages-table__reply {
        background-color: #f0faff;
    }

    .inbox-messages-table tr.inbox-messages-table__bounce {
        background-color: #ffedcd;
    }

    .inbox-messages-table tr.inbox-messages-table__our-bounce {
        background-color: #fff0f3
    }*/
    .inbox-messages-table th.inbox-messages-table__id,
    .inbox-messages-table td.inbox-messages-table__id {
        text-align: center;
    }

.inbox-messages-table td.inbox-messages-table__date {
    white-space: nowrap;
}

    .inbox-messages-table td.inbox-messages-table__subject,
    .inbox-messages-table td.inbox-messages-table__body {
        font-size: 0.8em;
    }

    .inbox-messages-table .customer-name {
        background-image: url('/images/icons/person-grey.svg');
        background-repeat: no-repeat;
        background-position: 0px 50%;
        padding-left: 24px;
        background-size: 18px;
    }

    .inbox-messages-table td.inbox-messages-table__date, .inbox-messages-table td.inbox-messages-table__subject, .inbox-messages-table td.inbox-messages-table__from {
        border-bottom: 1px solid lightgray;
    }

    .inbox-messages-table td.inbox-messages-table__body {
        border-top: 1px solid lightgray;
    }

    .inbox-messages-table td.inbox-messages-table__id, .inbox-messages-table td.inbox-messages-table__customer-name, .inbox-messages-table td.inbox-messages-table__from, .inbox-messages-table td.inbox-messages-table__subject {
        border-right: 1px solid lightgray;
    }

    .inbox-messages-table td.inbox-messages-table__customer-name, .inbox-messages-table td.inbox-messages-table__from, .inbox-messages-table td.inbox-messages-table__subject, .inbox-messages-table td.inbox-messages-table__date, .inbox-messages-table td.inbox-messages-table__body {
        border-left: 1px solid lightgray;
    }

.orders-table {
    border-collapse: collapse;
}

    .orders-table tr:first-child td {
        border: 0px !important;
    }

    .orders-table th, .orders-table td {
        border: 1px solid lightgray;
        padding: 4px 6px;
        height: 25px;
    }

    .orders-table td.orders-table__number, .orders-table td.orders-table__date {
        text-align: right;
    }

    .orders-table button, .orders-table input {
        height: 25px;
    }

    .orders-table input[type="number"] {
        text-align: right;
    }

    .orders-table input[type="date"] {
        height: 27px;
        text-align: right;
    }

    .orders-table select {
        height: 31px;
        width: 100%;
    }

    .orders-table__error, .orders-table__error:focus-visible {
        border: 1px solid red !important;
        outline: none;
    }

.decreases-table {
    border-collapse: collapse;
}

    .decreases-table th, .decreases-table td {
        border: 1px solid lightgray;
        padding: 4px 6px;
        height: 25px;
    }

    .decreases-table td.decreases-table__number, .decreases-table td.decreases-table__date {
        text-align: right;
    }

.signout-btn {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 155%;
    background: #fff;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
}

    .signout-btn.floating {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .signout-btn:hover {
        text-decoration: none;
    }
