/* 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, 0, 0, 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:           1px solid #c3c4c7;
  border-radius:    4px;
}

.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 {
  position: absolute;
  top:      8px;
  right:    8px;
  z-index:  1;
}

.waf_ajax_modal.success .modal_content .close::before {
  content:          "×";
  display:          flex;
  align-items:      center;
  justify-content:  center;
  width:            26px;
  height:           26px;
  background-color: #f6f7f7;
  border:           1px solid #c3c4c7;
  border-radius:    3px;
  color:            #1d2327;
  font-size:        1.1rem;
  line-height:      1;
  cursor:           pointer;
}

.waf_ajax_modal.success .modal_content .close:hover::before {
  background-color: #e5e5e5;
}

.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:           1px solid #c3c4c7;
  padding:          1rem;
  position:         relative;
  max-width:        400px;
}

.waf_login .connected {
  background-color: #f0f6e9;
  color:            #1e4620;
  border:           1px solid #c3c4c7;
  padding:          6px;
  text-align:       center;
  font-size:        1rem;
  text-transform:   capitalize;
  margin:           6px 0;
}

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

.waf_login .valid_access p {
  margin: 0;
}

.waf_login .valid_access input.token {
  background-color: #fff;
  border:           1px solid #c3c4c7;
  color:            #1d2327;
  margin:           2px 0 10px;
  font-size:        12px;
  height:           28px;
  width:            100%;
  border-radius:    0;
}

.waf_secret_wrap {
  display:     flex;
  align-items: center;
  gap:         4px;
  width:       100%;
}

.waf_login .valid_access .waf_secret_wrap input.token {
  width: auto;
  flex:  1 1 auto;
}

.waf_toggle_visibility,
.waf_copy_field {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  flex:            0 0 auto;
  cursor:          pointer;
  background:      none;
  border:          none;
  padding:         3px;
  line-height:     1;
  color:           #50575e;
}

.waf_toggle_visibility:hover,
.waf_copy_field:hover {
  color: #1d2327;
}

.waf_toggle_visibility .pop-action-icon,
.waf_copy_field .pop-action-icon {
  width:  18px;
  height: 18px;
}

.waf_toggle_visibility .pop-action-icon:nth-child(2),
.waf_copy_field .pop-action-icon:nth-child(2) {
  display: none;
}

.waf_toggle_visibility.is-revealed .pop-action-icon:nth-child(1),
.waf_copy_field.is-copied .pop-action-icon:nth-child(1) {
  display: none;
}

.waf_toggle_visibility.is-revealed .pop-action-icon:nth-child(2),
.waf_copy_field.is-copied .pop-action-icon:nth-child(2) {
  display: inline;
}

.waf_copy_field.is-copied {
  color: #1e4620;
}

.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/aruba-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;
  margin:                  0 auto;
  width:                   50px;
  height:                  50px;
  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 {
  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 #8c8f94;
  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 label[for="waf_api_uid"],
.waf_login .waf_login_wrap label[for="waf_api_key"] {
  display:       block;
  font-weight:   600;
  font-size:     12px;
  margin-bottom: 2px;
}

.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 {
  margin-top:  1em;
  font-size:   13px !important;
  line-height: 2.92308 !important;
  min-height:  40px !important;
  padding:     0 16px !important;
}

.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 .waf_token_actions {
  display:     flex;
  flex-wrap:   wrap;
  gap:         8px;
  margin-top:  4px;
}

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

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

.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;
}

.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;
}

.api-action.delete {
  background-color: #c00c1c !important;
  border-color:     #c00c1c !important;
  box-shadow:       none !important;
  color:            #fff !important;
}

.api-action.state,
.api-action.verify {
  background-color: #007cba !important;
  border-color:     #007cba !important;
  box-shadow:       none !important;
  color:            #fff !important;
}

.api-action.send_pdf {
  background-color: #ca3a14 !important;
  border-color:     #ca3a14 !important;
  box-shadow:       none !important;
  color:            #fff !important;
}

.api-action.notify {
  background-color: #ff7d20 !important;
  border-color:     #ff7d20 !important;
  box-shadow:       none !important;
  color:            #fff !important;
}

.api-action.notify:hover,
.api-action.state:hover,
.api-action.verify:hover,
.button-primary.upload.api-action:hover {
  filter: brightness(92%);
}

.button-primary.upload.api-action {
  background-color: #87ca5f !important;
  border-color:     #87ca5f !important;
  box-shadow:       none !important;
  color:            #fff !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;
}

.toplevel_page_wc_el_inv-options-page .wp-list-table .column-actions .waf_order_actions_wrapper .actions,
.toplevel_page_wc_el_inv-options-page .wp-list-table .column-actions .waf_invoice_actions_wrapper {
  justify-content: flex-end;
}

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

.waf_invoice_actions_wrapper .api-action,
.waf_order_actions_wrapper .actions .api-action {
  margin:          0 !important;
  display:         inline-flex;
  width:           32px !important;
  height:          32px !important;
  min-height:      32px !important;
  max-height:      32px;
  padding:         0 !important;
  align-items:     center;
  align-content:   center;
  justify-content: center;
}

.waf_invoice_actions_wrapper,
.waf_order_actions_wrapper .actions {
  gap: 2px;
}

.waf_invoice_actions_wrapper .api-action .pop-action-icon,
.waf_order_actions_wrapper .actions .api-action .pop-action-icon {
  width:  16px;
  height: 16px;
}

/* 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: #f6f7f7;
  color:            #1d2327;
  border-bottom:    1px solid #c3c4c7;
  margin:           0;
  padding:          1rem;
  width:            100%;
  max-width:        100%;
}

.addon .info {
  padding:   0 10px 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 #c3c4c7;
}

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

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

.log-link .pop-action-icon {
  width:          16px;
  height:         16px;
  vertical-align: middle;
}

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

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

[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;
}