/* STYLE */

.color-red {
  color: #c00c1c;
}

.color-green {
  color: #46b450;
}

.color-blue {
  color: #007cba;
}

.toplevel_page_wc_el_inv-options-page .wp-list-table .column-actions h4 {
  margin: 0;
}

/* modal */
.waf_ajax_modal {
  display:  none;
  position: absolute;
  top:      0;
  bottom:   0;
  left:     0;
  right:    0;
  height:   100%;
  width:    100%;
}

.waf_ajax_modal.open {
  display: block;
}

.waf_ajax_modal.close {
  display: none;
}

.waf_ajax_modal::after {
  content:          "";
  position:         fixed;
  background-color: rgba(0, 124, 186, 0.5);
  top:              0;
  bottom:           0;
  left:             0;
  right:            0;
  height:           100%;
  width:            100%;
}

.waf_ajax_modal::before {
  content:         "";
  display:         block;
  width:           70px;
  height:          70px;
  position:        fixed;
  left:            50%;
  top:             50%;
  margin:          0;
  background:      transparent url("../images/loader.png") no-repeat center;
  background-size: contain;
  transform:       translateZ(0);
  border-radius:   100%;
  z-index:         20;
  animation:       spin 1s linear infinite;
}

.waf_ajax_modal.success::before {
  display: none;
}

.waf_ajax_modal .modal_content {
  position:   fixed;
  top:        50%;
  transform:  translateY(-50%);
  max-width:  600px;
  max-height: 500px;
  height:     100%;
  left:       0;
  right:      0;
  margin:     0 auto;
  z-index:    10;
}

.waf_ajax_modal .modal_content .modal_card {
  background-color: #fff;
  padding:          2rem 1.8rem;
  height:           auto;
  max-height:       400px;
  display:          flex;
  align-items:      flex-start;
  flex-direction:   column;
  overflow:         scroll;
  word-break:       break-word;
  border:           5px solid #007cba;
  border-radius:    20px;
}

.waf_ajax_modal .modal_content .modal_card p {
  margin: 0 0 5px;
}

.waf_ajax_modal .modal_content .modal_card .message_list {
  background-color: #fff;
  padding:          0;
  width:            100%;
  max-width:        100%;
  flex:             1 0 100%;
  overflow:         auto;
  margin:           0;
}

.waf_ajax_modal .modal_content .modal_card .message_list .sub_list {
  padding-left: 12px;
  background:   #fff;
}

.waf_ajax_modal .modal_content .modal_card .message_list li.sub_list_li,
.waf_ajax_modal .modal_content .modal_card .message_list .sub_list li,
.waf_ajax_modal .modal_content .modal_card .message_list .sub_list li code.light {
  background: #fff;
}

.waf_ajax_modal .modal_content .modal_card .message_list li {
  padding:       5px 10px;
  border-bottom: 1px solid #dcdcde;
}

.waf_ajax_modal .modal_content .modal_card .message_list li code.light {
  background-color: #fff;
  color:            #000;
  margin:           0 !important;
  padding:          0 !important;
}

.waf_ajax_modal.success .modal_content .close::before {
  content:          "x";
  position:         absolute;
  right:            0;
  top:              0;
  background-color: #007cba;
  padding:          5px 10px;
  color:            #fff;
  font-size:        1rem;
  line-height:      1rem;
  height:           auto;
  width:            auto;
  cursor:           pointer;
}

.waf_ajax_modal .modal_content .modal_card.open {
  opacity:    1;
  transition: all 380ms ease-in-out;
}

.waf_ajax_modal .modal_content .modal_card.close {
  opacity:    0;
  transition: all 380ms ease-in-out;
}

/* login */
.waf_login {
  background-color: #fff;
  border:           2px solid #007cba;
  padding:          1rem;
  position:         relative;
  max-width:        400px;
}

.waf_login .connected {
  background-color: #46b450;
  color:            #fff;
  padding:          4px;
  text-align:       center;
  font-size:        1rem;
  text-transform:   capitalize;
  margin:           6px 0;
}

.waf_login .valid_access {
  background-color: #fff;
  color:            #007cba;
  padding:          4px;
  text-align:       center;
  margin:           10px 0;
}

.waf_login .valid_access p {
  margin: 0;
}

.waf_login .valid_access textarea.token {
  background-color: #fff;
  border:           1px solid #007cba;
  color:            #007cba;
  margin:           2px 0 10px;
  font-size:        12px;
  max-height:       82px;
  height:           100px;
  width:            100%;
  border-radius:    0;
}

.waf_login .waf_login_icon {
  background:  #fff;
  padding:     0 5px;
  position:    relative;
  display:     flex;
  align-items: center;
  font-size:   30px;
}

.waf_login .waf_login_icon::after {
  background-image:        url("../images/fe-logo.svg");
  content:                 '';
  line-height:             1;
  font-weight:             400;
  font-style:              normal;
  text-transform:          none;
  text-rendering:          auto;
  -moz-osx-font-smoothing: grayscale;
  text-align:              center;
  color:                   #007cba;
  margin:                  0 auto;
  width:                   45px;
  height:                  45px;
  background-size:         contain;
  background-position:     center;
  background-repeat:       no-repeat;
}

.waf_login .waf_login_icon.logged {
  background-color: #fff;
  border-color:     #fff;
}

.waf_login .waf_login_wrap {
  width:      auto;
  padding:    1rem;
  background: #fff;
}

.waf_login .waf_login_wrap .exchange {
  color: #fff;
}

.waf_login .waf_login_wrap .login_title {
  color:          #007cba !important;
  font-size:      22px;
  font-weight:    700;
  text-transform: capitalize;
  text-align:     center;
}

.waf_login .waf_login_wrap input[type="text"],
.waf_login .waf_login_wrap input[type="password"],
.waf_login .waf_login_wrap select {
  background:    #fff;
  border:        1px solid #007cba;
  border-radius: 0;
  height:        38px;
  width:         100%;
  max-width:     350px;
  appearance:    auto;
}

.waf_login .waf_login_wrap .login_title,
.waf_login .waf_login_wrap #waf_api_url,
.waf_login .waf_login_wrap #waf_api_uid,
.waf_login .waf_login_wrap #waf_api_key {
  margin-bottom: 5px;
  display:       inline-block;
  color:         #333;
  width:         100%;
  max-width:     100%;
}

.waf_login .waf_login_wrap .expired {
  display:    block;
  font-size:  11px;
  margin-top: 10px;
}

.waf_login .waf_login_wrap #api_oauth_token,
.waf_login .waf_login_wrap #api_oauth,
.waf_login .waf_login_wrap #api_login {
  width:            100%;
  text-align:       center;
  margin-top:       1em;
  background-color: #1a8bc9;
  border-color:     #1a8bc9;
  box-shadow:       0 2px 1px #034262 !important;
  font-size:        16px !important;
  line-height:      22px !important;
  padding:          8px !important;
  text-transform:   uppercase;
}

.waf_login .waf_login_wrap #api_oauth_token:hover,
.waf_login .waf_login_wrap #api_oauth:hover,
.waf_login .waf_login_wrap #api_login:hover {
  color: #fff;
}

.waf_login .waf_login_wrap #api_oauth_token {
  margin-top: 0;
}

.waf_login .waf_login_wrap #api_oauth_token:hover,
.waf_login .waf_login_wrap #api_oauth:hover,
.waf_login .waf_login_wrap #api_login:hover {
  background-color: #0095ff;
  border-color:     #0095ff;
}

.waf_login .waf_login_wrap #api_oauth_token:focus,
.waf_login .waf_login_wrap #api_oauth:focus,
.waf_login .waf_login_wrap #api_login:focus {
  box-shadow: none;
}

.waf_login .waf_login_wrap #api_oauth_token[disabled="disabled"],
.waf_login .waf_login_wrap #api_oauth[disabled="disabled"],
.waf_login .waf_login_wrap #api_login[disabled="disabled"] {
  pointer-events: none;
}

.waf_login .waf_login_wrap #api_refresh_oauth_token {
  background-color: #0095ff;
  border-color:     #0095ff;
  box-shadow:       0 2px 1px #005d88 !important;
  font-size:        15px !important;
  line-height:      20px;
  padding:          6px;
  font-weight:      700;
}

.waf_login .waf_login_wrap #api_refresh_oauth_token:hover {
  background-color: #005d88;
  border-color:     #005d88;
  color:            #fff;
}

/* user info */
.waf_user_info {
  background: #0073ad;
  padding:    10px;
  border:     1px solid #fff;
}

.waf_user_info h3 {
  margin-top:     0;
  border-bottom:  1px solid;
  padding-bottom: 6px;
  margin-bottom:  6px;
  text-transform: uppercase;
}

.waf_user_info * {
  color: #fff;
}

.waf_user_info ul.payment_accounts,
.waf_user_info ul.payment_accounts li,
.waf_user_info ul.payment_methods,
.waf_user_info ul.payment_methods li {
  margin:     0;
  list-style: decimal inside;
}

.waf_user_info label input,
.waf_user_info label select {
  width: 100%;
}

.waf_user_info label {
  margin:      1em 0 0;
  display:     block;
  border-top:  1px solid;
  padding-top: 5px;
}

.waf_user_info .selected_company {
  font-weight: 600;
  color:       #007cba;
}

.waf_user_info .no_selected_company {
  font-weight: 600;
  color:       #c00c1c;
}

.waf_user_info p {
  margin: 0;
}

/* actions */
.api-action {
  padding:     0 5px !important;
  line-height: 2.15 !important;
  font-size:   11px !important;
  min-height:  20px !important;
}

.waf_login .waf_login_wrap .logout.button {
  width:      100%;
  text-align: center;
}

.waf_login .waf_login_wrap .logout.button,
.api-action.delete {
  background-color: #c00c1c !important;
  border-color:     #c00c1c !important;
  box-shadow:       0 2px 1px #59040d !important;
  color:            #fff !important;
  text-transform:   uppercase;
  max-width:        200px;
  margin:           1em auto;
  text-align:       center;
  display:          block;
}

.waf_login .waf_login_wrap .logout.button {
  font-size:   15px !important;
  line-height: 20px;
  padding:     6px;
  font-weight: 700;
}

.waf_login .waf_login_wrap .logout.button:hover {
  background-color: #59040d !important;
  border-color:     #59040d !important;
  box-shadow:       0 2px 1px #59040d !important;
}

.api-action.state,
.api-action.verify {
  background-color: #007cba !important;
  border-color:     #007cba !important;
  box-shadow:       0 2px 1px #034262 !important;
  color:            #fff !important;
  text-transform:   uppercase;
}

.api-action.send_pdf {
  background-color: #ca3a14 !important;
  border-color:     #ca3a14 !important;
  box-shadow:       0 2px 1px #bb3112 !important;
  color:            #fff !important;
  text-transform:   uppercase;
}

.api-action.notify {
  background-color: #ff7d20 !important;
  border-color:     #ff7d20 !important;
  box-shadow:       0 2px 1px #ab5112 !important;
  color:            #fff !important;
  text-transform:   uppercase;
}

.api-action.notify:hover {
  background-color: #ab5112 !important;
  border-color:     #ab5112 !important;
  box-shadow:       0 2px 1px #ab5112 !important;
}

.api-action.state:hover,
.api-action.verify:hover {
  background-color: #034262 !important;
  border-color:     #034262 !important;
  box-shadow:       0 2px 1px #034262 !important;
}

.button-primary.upload.api-action {
  background-color: #87ca5f !important;
  border-color:     #87ca5f !important;
  box-shadow:       0 2px 1px #428f19 !important;
  color:            #fff !important;
  text-transform:   uppercase;
}

.button-primary.upload.api-action:hover {
  background-color: #428f19 !important;
  border-color:     #428f19 !important;
  box-shadow:       0 2px 1px #428f19 !important;
}

.button-primary.uploaded.api-action,
.actions .api-action[disabled="disabled"] {
  pointer-events: none;
  opacity:        0.6;
}

.actions .api-action {
  vertical-align: text-top;
  max-height:     32px;
}

.waf_order_actions_wrapper {
  margin-top: 1em;
}

.waf_order_actions_wrapper h4 {
  margin: 0.5em 0 !important;
}

.waf_order_actions_wrapper .actions {
  display:        flex;
  flex-direction: row;
  align-items:    center;
  flex-wrap:      wrap;
}

.waf_invoice_actions_wrapper {
  display:         flex;
  flex-direction:  row;
  align-items:     center;
  justify-content: center;
  flex-wrap:       wrap;
}

.waf_invoice_actions_wrapper .api-action {
  flex:       1 0 48%;
  width:      48%;
  max-width:  48%;
  margin:     1% !important;
  text-align: center;
  min-width:  100px;
}

.waf_order_actions_wrapper .actions .api-action {
  margin:          0 5px 5px 0;
  display:         flex;
  height:          100%;
  max-height:      32px;
  align-items:     center;
  align-content:   center;
  justify-content: center;
}

.waf_order_actions_wrapper .actions .api-action .dashicons::before {
  line-height:    18px;
  font-size:      18px !important;
  vertical-align: top;
}

/* Addon info section */
.addon {
  background:     #fff;
  margin:         0;
  display:        flex;
  flex-direction: row;
  flex-wrap:      wrap;
  width:          100%;
  max-width:      100%;
}

.addon-header {
  margin-top: 1em;
  display:    flex;
}

.addon-header h2 {
  background-color: #007cba;
  color:            #fff;
  margin:           0;
  padding:          1rem;
  width:            100%;
  max-width:        100%;
}

.addon .info {
  padding:   0 2% 1rem;
  margin:    0;
  flex:      1 0 29.3333%;
  width:     29.3333%;
  max-width: 29.3333%;
}

.addon .info.config {
  flex:        1 0 65.9%;
  width:       65.9%;
  max-width:   65.9%;
  border-left: 1px solid #007cba;
}

.addon .info h4 {
  font-size: 15px !important;
}

.log-link {
  text-decoration: none;
}

@media screen and (max-width: 1140px) {
  .addon {
    flex-direction: column;
  }

  .addon .info {
    flex:      1 0 96%;
    width:     96%;
    max-width: 96%;
    padding:   0;
  }
}

[class*="notify_message-"] {
  padding:   0;
  width:     100%;
  max-width: 100%;
  flex:      1 0 100%;
  margin:    0;
}

[class*="notify_message-"] p {
  padding: 10px;
  margin:  0 !important;
}

.notify_message-NAN {
  background-color: #ccc !important;
  margin-bottom:    1em !important;
}

.notify_message-MC,
.notify_message-AT,
.notify_message-NE_EC02,
.notify_message-NS {
  background-color: #f89fa6 !important;
  margin-bottom:    1em !important;
}

.notify_message-NE_EC01,
.notify_message-RC {
  background-color: #90c572 !important;
  margin-bottom:    1em !important;
}

.state_message {
  padding:          0;
  width:            100%;
  max-width:        100%;
  flex:             1 0 100%;
  margin:           0;
  background-color: #55bcef !important;
  margin-bottom:    1em !important;
}

.state_message p {
  padding: 10px;
  margin:  0 !important;
}

#order_data .order_data_column .waf_order_actions_wrapper .actions p.notification_proforma,
#order_data .order_data_column .waf_order_actions_wrapper .actions p[class*="notification_message_"],
p.notification_proforma,
p[class*="notification_message_"] {
  border:      1px solid;
  text-align:  left;
  padding:     10px !important;
  font-size:   11px !important;
  margin-top:  10px !important;
  font-weight: 400;
  width:       auto;
  max-width:   100%;
}

#order_data .order_data_column .waf_order_actions_wrapper .actions p.notification_proforma,
#order_data .order_data_column .waf_order_actions_wrapper .actions p[class*="notification_message_"] {
  width: 100% !important;
}

[class*="notify_message-"] .date,
[class*="notification_message_"] .date {
  font-size:     11px !important;
  display:       inline-block;
  margin-bottom: 2px;
  width:         100%;
  font-weight:   700;
}

#order_data .order_data_column p[class*="notification_message_"] {
  padding:   10px !important;
  width:     100%;
  max-width: 100%;
}

.notification_message_NAN {
  background-color: rgba(204, 204, 204, 0.60) !important;
  border-color:     #888 !important;
  color:            #555 !important;
}

.notification_proforma.sent,
.notification_message_NE_EC01,
.notification_message_RC {
  background-color: rgba(144, 197, 114, 0.60) !important;
  border-color:     #87ca5f !important;
  color:            #428f19 !important;
}

.waf_error,
.notification_proforma.not_sent,
.notification_message_NS,
.notification_message_NE_EC02,
.notification_message_AT {
  background-color: rgba(248, 159, 166, 0.60) !important;
  border-color:     #c00c1c !important;
  color:            #59040d !important;
}

.notification_message_MC {
  background-color: rgba(217, 209, 55, 0.60) !important;
  border-color:     #d9d137 !important;
  color:            #9b7407 !important;
}

.waf_error {
  padding: 5px;
}