/* Grid */
.am-check-all-offer {
  padding: 0.5em;
  border-bottom: 1px solid #c2c2c2;
}

.am-grid tr.am-grid-row.odd td.sorted {
  background-color: #bed4e2;
}
.am-grid tr.am-grid-row.selected {
  background: #ffc;
}
.am-grid tr.am-grid-row.selected td {
  background: none !important;
}
.am-grid tr.am-grid-row > td.break {
  word-break: break-word;
  word-wrap: break-word;
}

.am-grid tr.am-grid-row > td.sorted {
  background: #d9e6ee;
}

.am-grid tr.am-grid-row > td.record-sort {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAYAAAAGAB4TKWmAAAAM0lEQVRIx2NgGAXUAAcOHPh/4MCB/7j4+ADTQDt+mIDROBh4MBoHAw9G42DgwWgcDG0AAL7xQPddBGBsAAAAAElFTkSuQmCC);
  background-repeat: no-repeat;
  background-position: center center;
  cursor: move;
}
.am-grid tr.am-grid-row > td.expandable-data {
  background: #eef;
}
.am-grid tr.am-grid-row > td.expanded {
  background: #eef !important;
  border-bottom-color: #eef;
}
.am-grid tr.am-grid-row > td.expandable {
  cursor: pointer;
}
.am-grid tr.am-grid-row > td.expandable div.arrow {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 5px;
  left: auto;
  bottom: auto;
  overflow: hidden;
  float: right;
  margin: 0px;
  padding-left: 10px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAFCAYAAACJmvbYAAAAGUlEQVR42mNgIAQmTJjwHx3jVIDTBAZiAQAJhhgoQWXmmwAAAABJRU5ErkJggg==)
    no-repeat right;
}
.am-grid tr.am-grid-row > td.expandable div.placeholder {
  margin-right: 18px;
}
.am-grid .editable {
  display: inline-block;
  width: 8px;
  height: 8px;
  overflow: hidden;
  float: right;
  margin: 0px;
  padding-left: 10px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAqUlEQVR42mWOMQqEMBREA3sI75M7WG9jmyqIEMQLWCRY2dooErQSBBsrLxDsFCxzCCFjloUF3de+P3+GkAdKqaD2SCldlmXvpydaaz5NE6qqQpIkuMmmafJt22CMQVEUYIzxm7TWnsdxoO97pGnKwzB8EV8XdF3H933HRw7DcPrX+S85jmO9LAvWdYU/RBzH+a23bVs3zzPKsoRfzf9WU0pdFEUQQnw7H1yxJmJ11gCzkAAAAABJRU5ErkJggg==)
    no-repeat right;
}
.am-grid .live-edit,
.am-grid .live-select,
.am-grid .live-date {
  cursor: pointer;
}

.am-grid .disabled > td {
  opacity: 0.75;
  filter: Alpha(Opacity=75);
}
.am-grid th.required {
  color: #a94442;
}
.am-grid tr.am-grid-row > td.selected {
  background: #d9e6ee;
}

.am-grid.am-grid-small {
  font-size: 80%;
}
.am-grid.am-grid-small th {
  border: none;
  background: #f1f1f1;
  border-bottom: 1px solid #c2c2c2;
  color: inherit;
}

.am-grid-container.am-grid-container-small {
  box-shadow: none;
  border-color: #d7d7d7;
}

.live-edit-placeholder {
  font-style: italic;
  opacity: 0.4;
}

.am-grid-storage a.local {
  text-decoration: none;
}
.am-grid-storage a.local:hover {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: #a7b3bd;
}
.am-grid-storage .am-grid-storage-name img {
  vertical-align: middle;
}
.am-grid-storage .am-grid-row {
  border-bottom: 1px solid #ddd;
}

/* END Grid */

.am-form fieldset.am-adv-fieldset > legend {
  cursor: pointer;
  color: #3f7fb0;
}
.am-form fieldset.am-adv-fieldset > legend:hover {
  background: #f1f1f1;
}
.am-form fieldset.am-adv-fieldset > legend .am-adv-fieldset-lable {
  position: relative;
}
.am-form fieldset.am-adv-fieldset > legend .am-adv-fieldset-lable::after {
  border-bottom: 1px #9aa9b3 dashed;
  content: "";
  height: 0;
  left: 0;
  right: 0;
  bottom: 1px;
  position: absolute;
}
.am-form fieldset.am-adv-fieldset-closed > legend .am-adv-fieldset-lable {
  font-weight: bold;
}
.am-form .am-row.disabled {
  opacity: 0.5;
}
.am-form .am-row.am-row-highlight {
  background: #ffe;
}
.am-form .am-row.am-row-head {
  background: #f8f9f9;
}
.am-form .am-row.am-row-head .am-element-title {
  text-align: left;
}
.am-form div.reqnote {
  clear: both;
  font-size: 80%;
  margin: 0.5em 0 0 1em;
}
.am-form span.mceEditor {
  display: block;
}
.am-form .input_datetime {
  border: 1px solid #c2c2c2;
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
}
.am-form .input_datetime input[type="text"] {
  border: none;
  text-align: center;
}
.am-form .input_datetime .input_datetime-date {
  border-radius: 3px 0 0 3px;
  float: left;
  display: block;
}
.am-form .input_datetime .input_datetime-time {
  border-radius: 0 3px 3px 0;
  float: left;
  display: block;
  background: #fafafa;
}

.am-form .input_period {
  display: inline-block;
}

/* Common styles */
.am-copyright {
  margin: 1em 0 0 0;
  text-align: center;
  font-size: 75%;
}
.am-copyright a {
  text-decoration: none;
}

/* Form Login */
.am-signup-login-form-container {
  z-index: 150;
  position: absolute;
  margin: 0 auto;
  width: 754px;
  background-color: white;
  border: solid 3px #ccc;
  padding: 20px;
}
/* END Form Login */

/* icons */
.glyph {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-image: url(../img/sprite/icon.png);
  background-repeat: no-repeat;
  background-position: left center;
  vertical-align: middle;
}

#EmailCode {
  background: #ffffcf;
  font-size: 1.2rem;
  line-height: 150%;
}

/* Upload */
.upload-control .upload-control-browse {
  display: inline-block;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAYAAADtlXTHAAAAR0lEQVR42k3IQQ7AIAgEQP7/UxQxgko8YdJu0l7mMLT3TjrnJEUEeO5jrQXmnMDdk8wMjDFA7x2oKmitJYkIqLWCUsofZn650GhycL4sGcgAAAAASUVORK5CYII=)
    repeat-x top left #e8e8e8;
  border: 1px solid #ced4da;
  border-left: none;
  padding: 0.5em 1.2em;
  border-radius: 0 3px 3px 0;
  color: #555960;
  text-shadow: 0 -1px 1px #c7c8c9;
  cursor: pointer;
}

/* Reply Panel */
.am-helpdesk-form #row-attachments-0 {
  display: none;
}

/* History */
.am-helpdesk-history {
  border-bottom: 1px solid #ccc;
  margin-bottom: 0.5em;
}
.am-helpdesk-history h1 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
}
.am-helpdesk-history-content {
  display: none;
  padding-top: 0.5em;
}
.am-helpdesk-history-title {
  overflow: hidden;
  margin-bottom: 0.5em;
}
.am-helpdesk-history-title-action {
  float: right;
}
.am-helpdesk-history-title-action a {
  display: block;
  padding-right: 10px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAFCAYAAACJmvbYAAAAGUlEQVR42mNgIAQmTJjwHx3jVIDTBAZiAQAJhhgoQWXmmwAAAABJRU5ErkJggg==)
    no-repeat center right;
}

.am-helpdesk-grid-worker {
  position: absolute;
  top: 0.8em;
  right: 0.5em;
  background: #fcbdbd;
  color: #ba2727;
  padding: 0.2em 0.5em;
  font-size: 0.8rem;
}

.am-helpdesk-message.am-helpdesk-message-inbound code {
  background: #ffeab5;
}

.am-helpdesk-message.am-helpdesk-message-outbound code {
  background: #f2f3f4;
}

.am-helpdesk-message.am-helpdesk-message-comment code {
  background: #a1d2a5;
}

.am-helpdesk-message-content code {
  padding: .1em .4em;
  font-family: monospace;
}

.am-page-helpdesk .am-helpdesk-reply-panel-tool-emoji,
.am-page-helpdesk .am-helpdesk-reply-panel-tool-emoji-item,
.am-page-helpdesk .am-helpdesk-reply-panel-tools:empty,
.am-helpdesk-reply-panel-tool-emoji,
.am-helpdesk-reply-panel-tool-emoji-item {
  display: none !important;
}

.am-page-helpdesk .am-helpdesk-ticket-actions .nav-link.btn,
.am-page-helpdesk .am-helpdesk-message-action-fold .btn,
.am-page-helpdesk .am-helpdesk-form input[type="submit"],
.am-page-helpdesk .am-helpdesk-form input[type="button"],
.am-page-helpdesk .am-helpdesk-form button {
  cursor: pointer;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, color .15s ease-in-out, transform .15s ease-in-out;
}

.am-page-helpdesk .am-helpdesk-ticket-actions .nav-link.btn:hover,
.am-page-helpdesk .am-helpdesk-ticket-actions .nav-link.btn:focus {
  background-color: #007bff;
  border-color: #007bff;
  box-shadow: 0 .2rem .45rem rgba(0, 123, 255, .24);
  color: #fff;
  transform: translateY(-1px);
}

.am-page-helpdesk .am-helpdesk-ticket-action-fold-all .nav-link.btn:hover,
.am-page-helpdesk .am-helpdesk-message-action-fold .btn:hover,
.am-page-helpdesk .am-helpdesk-message-action-fold .btn:focus {
  background-color: #23272b;
  border-color: #1d2124;
  box-shadow: 0 .2rem .45rem rgba(52, 58, 64, .24);
  color: #fff;
  transform: translateY(-1px);
}

.am-page-helpdesk .am-helpdesk-form input[type="submit"]:hover,
.am-page-helpdesk .am-helpdesk-form input[type="submit"]:focus {
  background-color: #0069d9;
  border-color: #0062cc;
  box-shadow: 0 .2rem .45rem rgba(0, 123, 255, .24);
}

.am-page-helpdesk .am-helpdesk-form input[name="discard"]:hover,
.am-page-helpdesk .am-helpdesk-form input[name="discard"]:focus,
.am-page-helpdesk .am-helpdesk-form input[type="button"]:hover,
.am-page-helpdesk .am-helpdesk-form input[type="button"]:focus {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  box-shadow: 0 .15rem .35rem rgba(0, 0, 0, .14);
}

.am-page-helpdesk .am-helpdesk-message-content pre img,
.am-page-helpdesk .am-helpdesk-message-content .alert pre img {
  display: none !important;
}

.am-page-helpdesk .am-helpdesk-message-content pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.am-page-helpdesk .am-helpdesk-message-attachments .alert {
  align-items: center;
  background: #eaf4ff;
  border-color: #b8daff;
  border-radius: .35rem;
  color: #24476b;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .85rem !important;
  padding: .75rem 1rem;
}

.am-page-helpdesk .am-helpdesk-message-attachments .alert::before {
  color: #007bff;
  content: "\f0c6";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: .25rem;
}

.am-page-helpdesk .am-helpdesk-message-attachments .alert-link {
  color: #0056b3;
  font-weight: 700;
  text-decoration: none;
}

.am-page-helpdesk .am-helpdesk-message-attachments .alert-link:hover,
.am-page-helpdesk .am-helpdesk-message-attachments .alert-link:focus {
  color: #003d80;
  text-decoration: underline;
}

.am-page-helpdesk .am-helpdesk-attachment-expand,
.am-page-helpdesk .am-helpdesk-upload-button,
.am-page-helpdesk [id^="row-attachments"] a,
.am-page-helpdesk [id^="row-attachments"] button,
.am-page-helpdesk [id^="row-attachments"] input[type="button"],
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-browse,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload-single,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload-multi,
.am-page-helpdesk .am-helpdesk-form .upload-control a,
.am-page-helpdesk .am-helpdesk-form .input-file .input-file-input,
.am-page-helpdesk .am-helpdesk-form .custom-file-label {
  background: #007bff !important;
  border: 1px solid #007bff !important;
  border-radius: .35rem !important;
  box-shadow: none;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex !important;
  font-weight: 700;
  justify-content: center;
  line-height: 1.5;
  padding: .6rem 1rem !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, transform .15s ease-in-out;
}

.am-page-helpdesk .am-helpdesk-attachment-expand:hover,
.am-page-helpdesk .am-helpdesk-attachment-expand:focus,
.am-page-helpdesk .am-helpdesk-upload-button:hover,
.am-page-helpdesk .am-helpdesk-upload-button:focus,
.am-page-helpdesk [id^="row-attachments"] a:hover,
.am-page-helpdesk [id^="row-attachments"] a:focus,
.am-page-helpdesk [id^="row-attachments"] button:hover,
.am-page-helpdesk [id^="row-attachments"] button:focus,
.am-page-helpdesk [id^="row-attachments"] input[type="button"]:hover,
.am-page-helpdesk [id^="row-attachments"] input[type="button"]:focus,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-browse:hover,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-browse:focus,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload:hover,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload:focus,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload-single:hover,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload-single:focus,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload-multi:hover,
.am-page-helpdesk .am-helpdesk-form .upload-control .upload-control-upload-multi:focus,
.am-page-helpdesk .am-helpdesk-form .upload-control a:hover,
.am-page-helpdesk .am-helpdesk-form .upload-control a:focus,
.am-page-helpdesk .am-helpdesk-form .input-file:hover .input-file-input,
.am-page-helpdesk .am-helpdesk-form .input-file:focus-within .input-file-input,
.am-page-helpdesk .am-helpdesk-form .custom-file-label:hover,
.am-page-helpdesk .am-helpdesk-form .custom-file-label:focus {
  background: #0069d9 !important;
  border-color: #0062cc !important;
  box-shadow: 0 .2rem .45rem rgba(0, 123, 255, .24);
  color: #fff !important;
  transform: translateY(-1px);
}

.am-page-helpdesk .am-helpdesk-form input[name="discard"],
.am-page-helpdesk .am-helpdesk-form input[type="button"][name="discard"] {
  background: #007bff;
  border: 1px solid #007bff;
  border-radius: .35rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  min-width: 170px;
  padding: .75rem 1rem;
}

.am-page-helpdesk .am-helpdesk-form input[name="discard"]:hover,
.am-page-helpdesk .am-helpdesk-form input[name="discard"]:focus {
  background: #0069d9;
  border-color: #0062cc;
  box-shadow: 0 .2rem .45rem rgba(0, 123, 255, .24);
  color: #fff;
  transform: translateY(-1px);
}

/* Login popup polish */
.am-page-login .logo-auth,
.am-login-form-form .logo-login-form,
.am-sendpass-form-form .logo-login-form,
.am-popup .logo-login-form,
.modal .logo-login-form {
  display: block !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-height: 42px !important;
  max-width: min(210px, calc(100vw - 120px)) !important;
  object-fit: contain !important;
  width: auto !important;
}

.am-page-login .logo-auth {
  margin-bottom: 1.05rem !important;
}

.am-login-form-form.card,
.am-sendpass-form-form.card,
.am-popup .am-login-form-form,
.am-popup .am-sendpass-form-form,
#modalPopup .modal-content {
  border-radius: 14px !important;
  overflow: hidden !important;
}

.am-login-form-form > .card-header,
.am-sendpass-form-form > .card-header {
  padding: .85rem 1.25rem .65rem !important;
}

.am-login-form-form > .card-body,
.am-sendpass-form-form > .card-body,
.am-popup .am-login-form-form fieldset,
.am-popup .am-sendpass-form-form fieldset {
  padding: 1.65rem 1.35rem 1.45rem !important;
}

@media (max-width: 575.98px) {
  .am-page-login .logo-auth,
  .am-login-form-form .logo-login-form,
  .am-sendpass-form-form .logo-login-form,
  .am-popup .logo-login-form,
  .modal .logo-login-form {
    max-height: 36px !important;
    max-width: min(185px, calc(100vw - 96px)) !important;
  }

  .am-login-form-form > .card-body,
  .am-sendpass-form-form > .card-body,
  .am-popup .am-login-form-form fieldset,
  .am-popup .am-sendpass-form-form fieldset {
    padding: 1.35rem 1.1rem 1.25rem !important;
  }
}

/* Helpdesk ticket list */
.am-page-helpdesk .am-body-content-content > .am-info {
  background: #eaf4ff;
  border: 1px solid #c9e2ff;
  border-radius: .5rem;
  color: #24476b;
  margin-bottom: 1.25rem;
  padding: .875rem 1rem;
}

.am-page-helpdesk .am-grid-wrap {
  margin-bottom: 2rem;
}

.am-page-helpdesk .am-grid-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 .75rem;
}

.am-page-helpdesk .am-grid-title-desc {
  color: #6c757d;
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-top: .25rem;
}

.am-page-helpdesk .am-norecord-actions {
  margin-bottom: 1rem;
}

.am-page-helpdesk .am-norecord-actions .button {
  background: #007bff;
  border: 1px solid #007bff;
  border-radius: .25rem;
  color: #fff;
  display: inline-block;
  font-weight: 700;
  line-height: 1.5;
  padding: .5rem .9rem;
  text-decoration: none;
}

.am-page-helpdesk .am-norecord-actions .button:hover,
.am-page-helpdesk .am-norecord-actions .button:focus {
  background: #0069d9;
  border-color: #0062cc;
  color: #fff;
  text-decoration: none;
}

.am-page-helpdesk .am-grid-container {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  box-shadow: 0 .125rem .35rem rgba(0, 0, 0, .06);
  overflow-x: auto;
}

.am-page-helpdesk .am-grid {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
  table-layout: auto;
  width: 100%;
}

.am-page-helpdesk .am-grid th,
.am-page-helpdesk .am-grid td {
  border-bottom: 1px solid #edf0f2;
  padding: .875rem 1rem;
  vertical-align: middle;
}

.am-page-helpdesk .am-grid th {
  background: #f8f9fa;
  color: #495057;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.am-page-helpdesk .am-grid th a {
  color: inherit;
  text-decoration: none;
}

.am-page-helpdesk .am-grid tbody tr:last-child td {
  border-bottom: 0;
}

.am-page-helpdesk .am-grid tbody tr:hover td {
  background: #f8fbff;
}

.am-page-helpdesk .am-grid .disabled > td,
.am-page-helpdesk .am-grid tr.disabled > td {
  opacity: 1;
}

.am-page-helpdesk .am-grid th:nth-child(1),
.am-page-helpdesk .am-grid td:nth-child(1) {
  width: 58%;
}

.am-page-helpdesk .am-grid th:nth-child(2),
.am-page-helpdesk .am-grid td:nth-child(2) {
  white-space: nowrap;
  width: 12%;
}

.am-page-helpdesk .am-grid th:nth-child(3),
.am-page-helpdesk .am-grid td:nth-child(3) {
  color: #6c757d;
  white-space: nowrap;
  width: 14%;
}

.am-page-helpdesk .am-grid th:nth-child(4),
.am-page-helpdesk .am-grid td:nth-child(4) {
  text-align: center;
  white-space: nowrap;
  width: 8%;
}

.am-page-helpdesk .am-helpdesk-grid-subject .link {
  font-weight: 700;
}

.am-page-helpdesk .am-helpdesk-grid-msg-cnt {
  background: #eef3f7;
  border-radius: 999px;
  color: #6c757d;
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 .35rem;
  min-width: 1.35rem;
  padding: .25rem .4rem;
  text-align: center;
}

.am-page-helpdesk .am-helpdesk-grid-msg {
  color: #6c757d;
  display: inline;
}

.am-page-helpdesk .glyph.sprite-icon {
  vertical-align: middle;
}

@media (max-width: 767.98px) {
  .am-page-helpdesk .am-grid-title {
    font-size: 1.5rem;
  }

  .am-page-helpdesk .am-grid-container {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow-x: visible;
  }

  .am-page-helpdesk .am-grid,
  .am-page-helpdesk .am-grid thead,
  .am-page-helpdesk .am-grid tbody,
  .am-page-helpdesk .am-grid tr,
  .am-page-helpdesk .am-grid td {
    display: block;
    width: 100%;
  }

  .am-page-helpdesk .am-grid thead {
    display: none;
  }

  .am-page-helpdesk .am-grid tr.am-grid-row {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    box-shadow: 0 .125rem .35rem rgba(0, 0, 0, .06);
    margin-bottom: .85rem;
    overflow: hidden;
  }

  .am-page-helpdesk .am-grid td {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .75rem .9rem;
  }

  .am-page-helpdesk .am-grid td::before {
    color: #6c757d;
    flex: 0 0 5.5rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .am-page-helpdesk .am-grid td:nth-child(1)::before {
    content: "Subject";
  }

  .am-page-helpdesk .am-grid td:nth-child(2)::before {
    content: "Updated";
  }

  .am-page-helpdesk .am-grid td:nth-child(3)::before {
    content: "#";
  }

  .am-page-helpdesk .am-grid td:nth-child(4)::before {
    content: "Status";
  }

  .am-page-helpdesk .am-grid td:nth-child(1) {
    display: block;
    width: 100%;
  }

  .am-page-helpdesk .am-grid td:nth-child(2),
  .am-page-helpdesk .am-grid td:nth-child(3),
  .am-page-helpdesk .am-grid td:nth-child(4) {
    width: 100%;
  }

  .am-page-helpdesk .am-grid td:nth-child(1)::before {
    display: block;
    margin-bottom: .35rem;
  }

  .am-page-helpdesk .am-helpdesk-grid-msg {
    display: block;
    margin-top: .25rem;
  }
}

/*--- Plugins ---*/
.select2-container {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  position: relative;
  vertical-align: middle;
}
.select2-container .select2-selection--single {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 28px;
  user-select: none;
  -webkit-user-select: none;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  display: block;
  padding-left: 8px;
  padding-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select2-container .select2-selection--single .select2-selection__clear {
  position: relative;
}
.select2-container[dir="rtl"]
  .select2-selection--single
  .select2-selection__rendered {
  padding-right: 8px;
  padding-left: 20px;
}
.select2-container .select2-selection--multiple {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  min-height: 32px;
  user-select: none;
  -webkit-user-select: none;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: inline-block;
  overflow: hidden;
  padding-left: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select2-container .select2-search--inline {
  float: left;
}
.select2-container .select2-search--inline .select2-search__field {
  box-sizing: border-box;
  border: none;
  font-size: 100%;
  margin-top: 5px;
  padding: 0;
}
.select2-container
  .select2-search--inline
  .select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.select2-dropdown {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 1051;
}
.select2-results {
  display: block;
}
.select2-results__options {
  list-style: none;
  margin: 0;
  padding: 0;
}
.select2-results__option {
  padding: 6px;
  user-select: none;
  -webkit-user-select: none;
}
.select2-results__option[aria-selected] {
  cursor: pointer;
}
.select2-container--open .select2-dropdown {
  left: 0;
}
.select2-container--open .select2-dropdown--above {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.select2-container--open .select2-dropdown--below {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.select2-search--dropdown {
  display: block;
  padding: 4px;
}
.select2-search--dropdown .select2-search__field {
  padding: 4px;
  width: 100%;
  box-sizing: border-box;
}
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.select2-search--dropdown.select2-search--hide {
  display: none;
}
.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0);
}
.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #444;
  line-height: 28px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #999;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 26px;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}
.select2-container--default[dir="rtl"]
  .select2-selection--single
  .select2-selection__clear {
  float: left;
}
.select2-container--default[dir="rtl"]
  .select2-selection--single
  .select2-selection__arrow {
  left: 1px;
  right: auto;
}
.select2-container--default.select2-container--disabled
  .select2-selection--single {
  background-color: #eee;
  cursor: default;
}
.select2-container--default.select2-container--disabled
  .select2-selection--single
  .select2-selection__clear {
  display: none;
}
.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px;
}
.select2-container--default .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0 5px;
  width: 100%;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered
  li {
  list-style: none;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-top: 5px;
  margin-right: 10px;
  padding: 1px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #e4e4e4;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 5px;
  padding: 0 5px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: #999;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-right: 2px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  color: #333;
}
.select2-container--default[dir="rtl"]
  .select2-selection--multiple
  .select2-selection__choice,
.select2-container--default[dir="rtl"]
  .select2-selection--multiple
  .select2-search--inline {
  float: right;
}
.select2-container--default[dir="rtl"]
  .select2-selection--multiple
  .select2-selection__choice {
  margin-left: 5px;
  margin-right: auto;
}
.select2-container--default[dir="rtl"]
  .select2-selection--multiple
  .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto;
}
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border: solid black 1px;
  outline: 0;
}
.select2-container--default.select2-container--disabled
  .select2-selection--multiple {
  background-color: #eee;
  cursor: default;
}
.select2-container--default.select2-container--disabled
  .select2-selection__choice__remove {
  display: none;
}
.select2-container--default.select2-container--open.select2-container--above
  .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above
  .select2-selection--multiple {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--multiple {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa;
}
.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  border: none;
  outline: 0;
  box-shadow: none;
  -webkit-appearance: textfield;
}
.select2-container--default .select2-results > .select2-results__options {
  max-height: 200px;
  overflow-y: auto;
}
.select2-container--default .select2-results__option[role="group"] {
  padding: 0;
}
.select2-container--default .select2-results__option[aria-disabled="true"] {
  color: #999;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #ddd;
}
.select2-container--default .select2-results__option .select2-results__option {
  padding-left: 1em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__group {
  padding-left: 0;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -1em;
  padding-left: 2em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -2em;
  padding-left: 3em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -3em;
  padding-left: 4em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -4em;
  padding-left: 5em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -5em;
  padding-left: 6em;
}
.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #5897fb;
  color: white;
}
.select2-container--default .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px;
}
.select2-container--classic .select2-selection--single {
  background-color: #f7f7f7;
  border: 1px solid #aaa;
  border-radius: 4px;
  outline: 0;
  background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
  background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
  background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0);
}
.select2-container--classic .select2-selection--single:focus {
  border: 1px solid #5897fb;
}
.select2-container--classic
  .select2-selection--single
  .select2-selection__rendered {
  color: #444;
  line-height: 28px;
}
.select2-container--classic
  .select2-selection--single
  .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-right: 10px;
}
.select2-container--classic
  .select2-selection--single
  .select2-selection__placeholder {
  color: #999;
}
.select2-container--classic
  .select2-selection--single
  .select2-selection__arrow {
  background-color: #ddd;
  border: none;
  border-left: 1px solid #aaa;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  height: 26px;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
  background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFCCCCCC", GradientType=0);
}
.select2-container--classic
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}
.select2-container--classic[dir="rtl"]
  .select2-selection--single
  .select2-selection__clear {
  float: left;
}
.select2-container--classic[dir="rtl"]
  .select2-selection--single
  .select2-selection__arrow {
  border: none;
  border-right: 1px solid #aaa;
  border-radius: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  left: 1px;
  right: auto;
}
.select2-container--classic.select2-container--open .select2-selection--single {
  border: 1px solid #5897fb;
}
.select2-container--classic.select2-container--open
  .select2-selection--single
  .select2-selection__arrow {
  background: transparent;
  border: none;
}
.select2-container--classic.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px;
}
.select2-container--classic.select2-container--open.select2-container--above
  .select2-selection--single {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
  background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
  background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF", endColorstr="#FFEEEEEE", GradientType=0);
}
.select2-container--classic.select2-container--open.select2-container--below
  .select2-selection--single {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
  background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
  background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE", endColorstr="#FFFFFFFF", GradientType=0);
}
.select2-container--classic .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text;
  outline: 0;
}
.select2-container--classic .select2-selection--multiple:focus {
  border: 1px solid #5897fb;
}
.select2-container--classic
  .select2-selection--multiple
  .select2-selection__rendered {
  list-style: none;
  margin: 0;
  padding: 0 5px;
}
.select2-container--classic
  .select2-selection--multiple
  .select2-selection__clear {
  display: none;
}
.select2-container--classic
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #e4e4e4;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 5px;
  padding: 0 5px;
}
.select2-container--classic
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: #888;
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-right: 2px;
}
.select2-container--classic
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  color: #555;
}
.select2-container--classic[dir="rtl"]
  .select2-selection--multiple
  .select2-selection__choice {
  float: right;
  margin-left: 5px;
  margin-right: auto;
}
.select2-container--classic[dir="rtl"]
  .select2-selection--multiple
  .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto;
}
.select2-container--classic.select2-container--open
  .select2-selection--multiple {
  border: 1px solid #5897fb;
}
.select2-container--classic.select2-container--open.select2-container--above
  .select2-selection--multiple {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.select2-container--classic.select2-container--open.select2-container--below
  .select2-selection--multiple {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.select2-container--classic .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa;
  outline: 0;
}
.select2-container--classic .select2-search--inline .select2-search__field {
  outline: 0;
  box-shadow: none;
}
.select2-container--classic .select2-dropdown {
  background-color: white;
  border: 1px solid transparent;
}
.select2-container--classic .select2-dropdown--above {
  border-bottom: none;
}
.select2-container--classic .select2-dropdown--below {
  border-top: none;
}
.select2-container--classic .select2-results > .select2-results__options {
  max-height: 200px;
  overflow-y: auto;
}
.select2-container--classic .select2-results__option[role="group"] {
  padding: 0;
}
.select2-container--classic .select2-results__option[aria-disabled="true"] {
  color: grey;
}
.select2-container--classic
  .select2-results__option--highlighted[aria-selected] {
  background-color: #3875d7;
  color: white;
}
.select2-container--classic .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px;
}
.select2-container--classic.select2-container--open .select2-dropdown {
  border-color: #5897fb;
}
.select2-disabled {
  color: #bbb;
}
.select2-dropdown {
  z-index: 10001;
}
.select2-container .select2-selection--single {
  border: 1px solid #ced4da;
}
.select2-container .select2-selection--single:focus {
  outline: none;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.25em;
  padding: 0.5em 0.75em;
}
.select2-container .select2-selection--single {
  height: 2.25em;
  height: calc(2.25em + 2px);
  border-radius: 3px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 0;
}

/* JQuery UI customization */
.ui-widget {
  font-size: 1rem !important;
  font-family: Tahoma, Arial, san-serif !important;
}

.ui-widget-content {
  color: #313131 !important;
}

.ui-widget-content a, .ui-widget-content a:visited {
  color: #3f7fb0;
}

.ui-autocomplete-loading {
  background: white url(data:image/gif;base64,R0lGODlhEAAQAPMPALu7u5mZmTMzM93d3REREQAAAHd3d1VVVWZmZqqqqoiIiO7u7kRERCIiIgARAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBwAPACwAAAAAEAAQAEAEcPDJtyg6dUrFetDTIopMoSyFcxxD1krD8AwCkASDIlPaUDQLR6G1Cy0SgqIkE1IQGMrFAKCcGWSBzwPAnAwarcKQ15MpTMJYd1ZyUDXSDGelBY0qIoBh/ZoYGgELCjoxCRRvIQcGD1kzgSAgAACQDxEAIfkEBQcADwAsAAAAAA8AEAAABF3wyfkMkotOJpscRKJJwtI4Q1MAoxQ0RFBw0xEvhGAVRZZJh4JgMAEQW7TWI4EwGFjKR+CAQECjn8DoN0kwDtvBT8FILAKJgfoo1iAGAPNVY9DGJXNMIHN/HJVqIxEAIfkEBQcADwAsAAAAABAADwAABFrwyfmColgiydpaQiY5x9Ith7hURdIl0wBIhpCAjKIIxaAUPQ0hFQsAC7MJALFSFi4SgC4wyHyuCYNWxH3AuhSEotkNGAALAPqqkigG8MWAjAnM4A8594vPUyIAIfkEBQcADwAsAAAAABAAEAAABF3wySkDvdKsddg+APYIWrcg2DIRQAcU6DJICjIsjBEETLEEBYLqYSDdJoCGiHgZwG4LQCCRECEIBAdoF5hdEIWwgBJqDs7DgcKyRHZl3uUwuhm2AbNNW+LV7yd+FxEAIfkEBQcACAAsAAAAABAADgAABEYQyYmMoVgeWQrP3NYhBCgZBdAFRUkdBIAUguVVo1ZsWFcEGB5GMBkEjiCBL2a5ZAi+m2SAURExwKqPiuCafBkvBSCcmiYRACH5BAUHAA4ALAAAAAAQABAAAARs0MnpAKDYrbSWMp0xZIvBKYrXjNmADOhAKBiQDF5gGcICNAyJTwFYTBaDQ0HAkgwSmAUj0OkMrkZM4HBgKK7YTKDRICAo2clAEIheKc9CISjEVTuEQrJASGcSBQcSUFEUDQUXJBgDBW0Zj34RACH5BAUHAA8ALAAAAAAQABAAAARf8Mn5xqBYgrVC4EEmBcOSfAEjSopJMglmcQlgBYjE5NJgZwjCAbO4YBAJjpIjSiAQh5ayyRAIDKvJIbnIagoFRFdkQDQKC0RBsCIUFAWsT7RwG410R8HiiK0WBwJjFBEAIfkEBQcADgAsAQABAA8ADwAABFrQybEWADXJLUHHAMJxIDAgnrOo2+AOibEMh1LN62gIxphzitRoCDAYNcNN6FBLShao4WzwHDQKvVGhoFAwGgtFgQHENhoB7nCwHRAIC0EyUcC8Zw1ha3NIRgAAIfkEBQcADwAsAAAAABAAEAAABGDwyfnWoljaNYYFV+Zx3hCEGEcuypBtMJBISpClAWLfWODymIFiCJwMDMiZBNAAYFqUAaNQ2E0YBIXGURAMCo1AAsFYBBoIScBJEwgSVcmP0li4FwcHz+FpCCQMPCFINxEAIfkEBQcADgAsAAABABAADwAABFzQyemWXYNqaSXY2vVtw3UNmROM4JQowKKlFOsgRI6ASQ8IhSADFAjAMIMAgSYJtByxyQIhcEoaBcSiwegpDgvAwSBJ0AIHBoCQqIAEi/TCIAABGhLG8MbcKBQgEQAh+QQFBwAPACwAAAEAEAAPAAAEXfDJSd+qeK5RB8fDRRWFspyotAAfQBbfNLCVUSSdKDV89gDAwcFBIBgywMRnkWBgcJUDKSZRIKAPQcGwYByAAYTEEJAAJIGbATEQ+B4ExmK9CDhBd8ThdHw/AmUYEQAh+QQFBwAPACwAAAEADwAPAAAEXvBJQIa8+ILSspdHkXxS9wxF4Q3L2aTBeC0sFjhAtuyLIjAMhYc2GBgaSKGuyNoBDp7czFAgeBIKwC6kWCAMxUSAFjtNCAAFGGF5tCQLAaJnWCTqHoREvQuQJAkyGBEAOw==) right center no-repeat;
}

button.ui-button {
  padding: 0.5em 1.2em;
  font-weight: normal;
}

button.ui-button, button.ui-button:focus {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAYAAADtlXTHAAAAR0lEQVR42k3IQQ7AIAgEQP7/UxQxgko8YdJu0l7mMLT3TjrnJEUEeO5jrQXmnMDdk8wMjDFA7x2oKmitJYkIqLWCUsofZn650GhycL4sGcgAAAAASUVORK5CYII=) repeat-x top left #e8e8e8;
  border: 1px solid #ccc;
  color: #555960;
  text-shadow: 0 -1px 1px #c7c8c9;
}

button.ui-button:hover, button.ui-button:active {
  border-color: #c7665b;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAbCAYAAAC9WOV0AAAAeElEQVR42h3H7Q6BAACF4XNhQoat1MpH5aNsZthMy7gDt4oIMVdwOuvPs/fF/5IR5TkmfidRHufEtyadag+R2IfEZzch3tsx8dqMxNoXK08sXaJIHOK5sMXMIvKorwp6qqBLPIYdlW8Sd6+tclsqp0ncBgZxtRusAN0cRcCtsTrxAAAAAElFTkSuQmCC) repeat-x top left #e34b3d;
  color: white;
  text-shadow: 0 -1px 1px #c43d33;
}

.ui-dialog {
  padding: 1em;
  box-shadow: 0 0 50px black;
  background: #eee;
  z-index: 10000;
}

.ui-dialog .ui-dialog-content {
  padding: 0;
}

.ui-dialog .ui-dialog-titlebar {
  margin: -1em -1em 1em;
  background: #dbdbdb;
  border: none;
  border-radius: 0;
  padding: 1em;
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-title {
  color: #484848;
  margin: 0;
}

.ui-dialog .ui-dialog-titlebar .ui-icon-closethick {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAATklEQVR42mNgAIKCggIBBgIArgbEKCkpuV5cXNyHSzFIDqQGrgkkUFpa+h+bJpxy2CTwGYShgKBidE1EKSZZA0lOIsnTJAUrWRFHStIAAB86do0kgJkfAAAAAElFTkSuQmCC);
  background-position: center;
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {
  border: none;
  background: none;
  border-radius: 0;
  right: 1em;
}

.ui-dialog .ui-dialog-buttonpane {
  margin: 1em -1em -1em;
  padding: .5em 1em;
  background: none;
}

.ui-dialog .ui-dialog-buttonpane button {
  margin: 0 0 0 .5em;
}

.ui-accordion .ui-accordion-header {
  background: #dbdbdb;
  border: none;
  color: #484848;
  padding: .5em 1em;
  font-weight: normal;
}

.ui-accordion .ui-accordion-header.ui-state-hover, .ui-accordion .ui-accordion-header.ui-accordion-header-active {
  background: #ccc;
}

.ui-accordion .ui-accordion-header .ui-accordion-header-icon {
  display: none;
}

.ui-accordion .ui-accordion-content {
  background: #eee;
}

.ui-datepicker-title select,
.ui-datepicker-title select:focus,
.ui-datepicker-title select:active {
  padding: 0.1em;
  height: auto;
  border-radius: 0;
}

.ui-datepicker-header a.ui-datepicker-prev,
.ui-datepicker-header a.ui-datepicker-next {
  top: auto;
  border: none;
  background: none;
  font-weight: normal;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-prev-hover {
  left: 0;
  cursor: pointer;
}

.ui-datepicker .ui-datepicker-next,
.ui-datepicker .ui-datepicker-next-hover {
  right: 0;
  cursor: pointer;
}

.ui-tabs {
  padding: 0;
}

.ui-tabs .ui-tabs-panel {
  padding: 0;
}

.ui-tabs .ui-tabs-active {
  background: #f8f9f9;
}

.ui-tabs a {
  color: #333;
}

.ui-tabs fieldset.billing-plan {
  background: #f6f6f6;
}

.ui-tabs .ui-tabs-nav {
  padding-left: 1em;
}

.ui-tabs .ui-tabs-nav li a.ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li a {
  padding: .8em 1em;
  float: none;
  display: inline-block;
}

.ui-tabs.ui-widget-content {
  border: none;
  background: none;
}

.ui-tabs .ui-widget-header {
  border: none;
  background: none;
}

.ui-tabs .ui-widget-header .ui-state-default,
.ui-tabs .ui-widget-header .ui-state-active {
  font-weight: normal;
  border-color: #cccccc;
}

.ui-tabs .ui-widget-header .ui-state-default .billing-plan-del:hover,
.ui-tabs .ui-widget-header .ui-state-active .billing-plan-del:hover {
  cursor: pointer;
}

.ui-tabs .ui-widget-header .ui-state-default {
  background: #f6f6f6;
}

.ui-tabs .ui-widget-header .ui-state-active {
  background: #f8f9f9;
}

.ui-tabs .ui-widget-header .ui-state-active a {
  color: #333;
}

.ui-tabs .ui-widget-header .ui-state-hover {
  background: #f1f1f1;
}

.ui-tabs .ui-widget-header .plan-add {
  background: none;
  border: none;
}

.ui-tabs .ui-widget-header .plan-add a {
  color: #1c94c4;
}

.ui-tabs .ui-widget-header .plan-add a:hover {
  background: #f1f1f1;
  border-radius: 4px;
}

.ui-tabs .ui-widget-header .plan-add span {
  display: inline-block;
  transform: scale(2, 2);
}

.ui-tabs .ui-widget-header .billing-plan-del:hover {
  border-top-right-radius: 3px;
  background: #db4437;
  color: white;
}

fieldset.billing-plan .terms-text {
  opacity: .8;
}

fieldset.billing-plan legend {
  padding-top: 1.5em;
  border-top: 1px solid #d5d5d5;
}

#billing-plan-wrap {
  padding-top: 2em;
}

body .ui-tooltip {
  background: #f8f8f8;
  border: 1px solid #c2c2c2;
  border-radius: 3px;
  box-shadow: 0 10px 15px #0004;
  padding: 1.2em;
}

.ui-tooltip:before,
.ui-tooltip:after {
  display: block;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #f8f8f8;
  position: absolute;
  z-index: -1;
  border-color: #c2c2c2;
  border-style: solid;
}

.ui-tooltip {
  transition: transform .3s, opacity .3s;
  opacity: 0;
}

.ui-tooltip.ui-tooltip-position-vertical-top.ui-tooltip-shown {
  transform: translateY(-20px);
  opacity: 1;
}

.ui-tooltip.ui-tooltip-position-vertical-bottom.ui-tooltip-shown {
  transform: translateY(20px);
  opacity: 1;
}

.ui-tooltip.ui-tooltip-position-vertical-top:before {
  content: "";
  top: -8px;
  border-width: 1px 0 0 1px;
}

.ui-tooltip.ui-tooltip-position-vertical-bottom:after {
  content: "";
  bottom: -8px;
  border-width: 0 1px 1px 0;
}

.ui-tooltip.ui-tooltip-position-horizontal-left:before,
.ui-tooltip.ui-tooltip-position-horizontal-left:after {
  left: 25px;
}

.ui-tooltip.ui-tooltip-position-horizontal-right:before,
.ui-tooltip.ui-tooltip-position-horizontal-right:after {
  right: 25px;
}

.ui-widget-overlay {
  opacity: .6;
}

.ui-autocomplete li.ui-menu-item .ui-menu-item-wrapper {
  border: none;
}

.ui-autocomplete li.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
  border: none;
  background: #5897fb;
}

.ui-menu .ui-state-active,
.ui-menu .ui-state-focus {
  margin: 0;
}

/* END JQuery UI customization */

/* Notification */
.am-notification {
  border: 1px solid;
  border-radius: 3px;
  margin-bottom: 1em;
  padding: 0.5em 1em;
  background-color: #ffffcf;
  border-color: #d1d0ae;
  color: #454430;
}
.am-notification.info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}
.am-notification.warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
.am-notification.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
.am-notification.danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* Donation */
.am-donation {
  padding: 0.5em 0;
}
.am-donation .am-donation-recurring {
  padding-left: 1em;
}
.am-donation .smileyface {
  width: 50px;
  height: 50px;
  position: relative;
  border-radius: 50px;
  display: block;
  border: 1px solid #333;
  background: rgba(255, 230, 50, 0.28);
}
.am-donation .eyes {
  width: 4px;
  height: 8px;
  background: #333;
  border-radius: 5px/10px;
  position: absolute;
  top: 10px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}
.am-donation .eyes.lefteye {
  left: 12px;
}
.am-donation .eyes.righteye {
  right: 12px;
}
.am-donation .smile {
  width: 30px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid #333;
  border-top: none;
  border-right: none;
  border-left: none;
  background: rgba(0, 0, 0, 0);
  border-radius: 0 0 20px 20px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}
.am-donation .am-donation-smile-wrap {
  overflow: hidden;
}
.am-donation .am-donation-smile {
  width: 60px;
  float: right;
}
.am-donation .am-donation-slider {
  margin-right: 80px;
  padding: 0 1em 1em 1em;
}
.am-donation .ui-slider-range {
  background: #71bd26 !important;
}
.am-donation .ui-slider-handle {
  border-color: #71bd26 !important;
}
.am-donation .ui-slider-handle.ui-state-focus {
  outline: none;
}
.am-donation a:focus {
  outline: none;
}
.am-donation .am-donation-total {
  font-size: 130%;
  font-style: italic;
  margin-bottom: 0.8em;
}
.am-donation .am-donation-total-amount {
  font-weight: bold;
}
.am-donation .am-donation-smile-wrap .ui-slider {
  height: 4px;
  border: 0;
  background: #eee;
}
.am-donation .am-donation-smile-wrap .ui-slider-handle {
  height: 1.6em;
  width: 1.6em;
  top: -0.8em;
  margin-left: -0.8em;
  border-radius: 0.8em;
  box-shadow: 0 1px 1px #eee;
  cursor: move;
  background: #fefefe;
}
.am-donation .am-donation-smile-wrap .ui-slider-handle:hover {
  background: #fefefe;
}

/* Affiliate Banner Note */
.am-aff-banner-note {
  padding: 1em;
  margin-bottom: 1.5em;
  background: #e0e0e0;
}

/* Affiliate info page */
body.am-page-affiliate-info {
  background: #f4f7fb;
}

body.am-page-affiliate-info .am-body {
  padding-top: 1.75rem !important;
}

body.am-page-affiliate-info .am-body-content {
  max-width: 1120px;
  margin: 0 auto;
}

body.am-page-affiliate-info .am-body-content-top h2 {
  color: #10233f;
  font-size: 2rem;
  letter-spacing: 0;
  margin-bottom: 1.5rem !important;
}

body.am-page-affiliate-info .am-body-content-content > h2:empty {
  display: none;
}

body.am-page-affiliate-info .am-body-content-content > h2 {
  color: #10233f;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 1.6rem 0 .85rem;
}

body.am-page-affiliate-info .am-body-content-content > .card {
  border: 1px solid #dce5f0;
  border-radius: .65rem;
  box-shadow: 0 .65rem 1.5rem rgba(16, 35, 63, .08) !important;
  overflow: hidden;
}

body.am-page-affiliate-info .am-body-content-content > .card .card-header {
  background: #fff;
  border-bottom: 1px solid #e3eaf3;
  color: #10233f;
  font-size: 1rem;
  padding: 1rem 1.25rem;
}

body.am-page-affiliate-info .am-body-content-content > .card .card-body {
  background: #fff;
  padding: 1.25rem;
}

body.am-page-affiliate-info .am-aff-banner-preview.card-body .input-group {
  border: 1px solid #cfd9e6;
  border-radius: .5rem;
  overflow: hidden;
}

body.am-page-affiliate-info .am-aff-banner-preview.card-body .form-control {
  background: #f7f9fc;
  border: 0;
  color: #26364c;
  font-size: 1rem;
  min-height: 3rem;
}

body.am-page-affiliate-info .btn-general-link,
body.am-page-affiliate-info .btn-aff-link,
body.am-page-affiliate-info .local-link {
  border-radius: .45rem;
  font-weight: 700;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, color .15s ease-in-out, transform .15s ease-in-out;
}

body.am-page-affiliate-info .btn-general-link:hover,
body.am-page-affiliate-info .btn-general-link:focus,
body.am-page-affiliate-info .btn-aff-link:hover,
body.am-page-affiliate-info .btn-aff-link:focus {
  background: #0069d9;
  border-color: #0062cc;
  box-shadow: 0 .35rem .8rem rgba(0, 123, 255, .24);
  transform: translateY(-1px);
}

body.am-page-affiliate-info .am-block {
  margin: .75rem 0 1.4rem;
}

body.am-page-affiliate-info .am-aff-banner-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.am-page-affiliate-info .am-aff-banner-cat-list-item {
  margin: 0;
  padding: 0;
}

body.am-page-affiliate-info .am-aff-banner-cat-list-item h2 {
  background: #10233f;
  border: 1px solid #10233f;
  border-radius: 999px;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding: .55rem .9rem;
}

body.am-page-affiliate-info .am-aff-banner-cat-list-item h2 a {
  background: #fff;
  border: 1px solid #cfd9e6;
  border-radius: 999px;
  color: #006fe6;
  display: block;
  margin: -.55rem -.9rem;
  padding: .55rem .9rem;
  text-decoration: none;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, color .15s ease-in-out, transform .15s ease-in-out;
}

body.am-page-affiliate-info .am-aff-banner-cat-list-item h2 a:hover,
body.am-page-affiliate-info .am-aff-banner-cat-list-item h2 a:focus {
  background: #eaf4ff;
  border-color: #8fc5ff;
  box-shadow: 0 .25rem .65rem rgba(0, 123, 255, .16);
  color: #0056b3;
  transform: translateY(-1px);
}

body.am-page-affiliate-info .am-body-content-content > .am-aff-banner-preview[data-search-target="aff-banner"] {
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: .65rem;
  box-shadow: 0 .45rem 1rem rgba(16, 35, 63, .06);
  margin-bottom: 1rem;
  overflow: hidden;
}

body.am-page-affiliate-info .am-body-content-content > .am-aff-banner-preview[data-search-target="aff-banner"] > div {
  display: grid;
  grid-template-columns: minmax(210px, 28%) 1fr;
  min-height: 100%;
}

body.am-page-affiliate-info .am-aff-banner-preview-preview {
  background: linear-gradient(135deg, #eaf4ff 0%, #f7fbff 100%);
  border-right: 1px solid #dce5f0;
  display: flex;
}

body.am-page-affiliate-info .am-aff-banner-preview-preview-container {
  align-items: center;
  display: flex;
  padding: 1.25rem;
  width: 100%;
}

body.am-page-affiliate-info .am-aff-banner-preview-preview-container a {
  align-items: center;
  color: #10233f;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 700;
  gap: .55rem;
  line-height: 1.35;
  text-decoration: none;
}

body.am-page-affiliate-info .am-aff-banner-preview-preview-container a::before {
  color: #007bff;
  content: "\f0c1";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
}

body.am-page-affiliate-info .am-aff-banner-preview-preview-container a:hover,
body.am-page-affiliate-info .am-aff-banner-preview-preview-container a:focus {
  color: #0056b3;
}

body.am-page-affiliate-info .am-aff-banner-preview-info-container {
  padding: 1.25rem;
}

body.am-page-affiliate-info .am-aff-banner-preview-info-details {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  margin: 0 0 1rem;
  row-gap: .7rem;
}

body.am-page-affiliate-info .am-aff-banner-preview-info-details dt {
  color: #66758a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0;
  text-transform: uppercase;
}

body.am-page-affiliate-info .am-aff-banner-preview-info-details dd {
  color: #1e2d42;
  font-size: .95rem;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.am-page-affiliate-info .am-aff-banner-preview-info-details dd a {
  color: #006fe6;
  text-decoration: none;
}

body.am-page-affiliate-info .am-aff-banner-preview-info-details dd a:hover,
body.am-page-affiliate-info .am-aff-banner-preview-info-details dd a:focus {
  color: #0056b3;
  text-decoration: underline;
}

body.am-page-affiliate-info .am-aff-banner-preview-info-details-link + dd,
body.am-page-affiliate-info .am-aff-banner-preview-info-details-target + dd {
  background: #f7f9fc;
  border: 1px solid #dce5f0;
  border-radius: .4rem;
  font-family: "Courier New", monospace;
  padding: .55rem .7rem;
}

body.am-page-affiliate-info .local-link {
  background: #eef7f1;
  border: 1px solid #cbe7d3;
  color: #177245;
  display: inline-flex;
  font-size: .9rem;
  padding: .55rem .8rem;
  text-decoration: none;
}

body.am-page-affiliate-info .local-link:hover,
body.am-page-affiliate-info .local-link:focus {
  background: #dff2e6;
  border-color: #a8dcb9;
  box-shadow: 0 .25rem .65rem rgba(23, 114, 69, .14);
  color: #0f5a35;
  transform: translateY(-1px);
}

body.am-page-affiliate-info textarea.am-el-wide {
  border: 1px solid #cfd9e6;
  border-radius: .45rem;
  color: #26364c;
  font-family: "Courier New", monospace;
  padding: .75rem;
  width: 100% !important;
}

@media (max-width: 767.98px) {
  body.am-page-affiliate-info .am-body {
    padding-top: 1rem !important;
  }

  body.am-page-affiliate-info .am-body-content-top h2 {
    font-size: 1.55rem;
    margin-bottom: 1rem !important;
  }

  body.am-page-affiliate-info .am-body-content-content > h2 {
    font-size: 1.35rem;
  }

  body.am-page-affiliate-info .am-aff-banner-preview.card-body .input-group {
    display: block;
  }

  body.am-page-affiliate-info .am-aff-banner-preview.card-body .form-control,
  body.am-page-affiliate-info .am-aff-banner-preview.card-body .input-group-append,
  body.am-page-affiliate-info .am-aff-banner-preview.card-body .btn-general-link {
    display: block;
    width: 100%;
  }

  body.am-page-affiliate-info .am-aff-banner-preview.card-body .btn-general-link {
    border-radius: 0 0 .45rem .45rem;
    padding: .75rem 1rem;
  }

  body.am-page-affiliate-info .am-body-content-content > .am-aff-banner-preview[data-search-target="aff-banner"] > div {
    grid-template-columns: 1fr;
  }

  body.am-page-affiliate-info .am-aff-banner-preview-preview {
    border-bottom: 1px solid #dce5f0;
    border-right: 0;
  }

  body.am-page-affiliate-info .am-aff-banner-preview-info-details {
    grid-template-columns: 1fr;
    row-gap: .35rem;
  }

  body.am-page-affiliate-info .am-aff-banner-preview-info-details dd {
    margin-bottom: .5rem;
  }
}

/* Profile page */
body.am-page-profile {
  background: #f4f7fb;
}

body.am-page-profile .am-body {
  padding-top: 1.75rem !important;
}

body.am-page-profile .am-body-content-top h2 {
  color: #10233f;
  font-size: 2rem;
  letter-spacing: 0;
  margin-bottom: 1.25rem !important;
}

body.am-page-profile .am-body-content-content > .card {
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: .75rem;
  box-shadow: 0 .65rem 1.5rem rgba(16, 35, 63, .08) !important;
  padding: 1.5rem !important;
}

body.am-page-profile .am-profile-avatar-panel {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: .75rem;
  box-shadow: 0 .45rem 1rem rgba(16, 35, 63, .06);
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.1rem;
}

body.am-page-profile .am-profile-avatar-panel-image {
  background: #eaf4ff;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 .25rem .65rem rgba(16, 35, 63, .12);
  flex: 0 0 auto;
  height: 84px;
  object-fit: cover;
  width: 84px;
}

body.am-page-profile .am-profile-avatar-panel-body {
  min-width: 0;
}

body.am-page-profile .am-profile-avatar-panel-title {
  color: #10233f;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

body.am-page-profile .am-profile-avatar-panel-text {
  color: #66758a;
  font-size: .92rem;
  line-height: 1.45;
  margin: .2rem 0 .75rem;
  overflow-wrap: anywhere;
}

body.am-page-profile .am-profile-avatar-panel-action {
  align-items: center;
  background: #007bff;
  border: 1px solid #007bff;
  border-radius: .45rem;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  gap: .35rem;
  line-height: 1.5;
  padding: .55rem .85rem;
  text-decoration: none;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, color .15s ease-in-out, transform .15s ease-in-out;
}

body.am-page-profile .am-profile-avatar-panel-action:hover,
body.am-page-profile .am-profile-avatar-panel-action:focus {
  background: #0069d9;
  border-color: #0062cc;
  box-shadow: 0 .35rem .8rem rgba(0, 123, 255, .24);
  color: #fff;
  transform: translateY(-1px);
}

body.am-page-profile form#profile .am-row {
  margin-bottom: 1rem;
}

body.am-page-profile form#profile .am-element-title label {
  color: #26364c;
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

body.am-page-profile form#profile .am-element {
  color: #1e2d42;
}

body.am-page-profile form#profile .form-control {
  background: #f7f9fc;
  border: 1px solid #cfd9e6;
  border-radius: .5rem;
  color: #26364c;
  min-height: 2.8rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, background-color .15s ease-in-out;
}

body.am-page-profile form#profile .form-control:focus {
  background: #fff;
  border-color: #80bdff;
  box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .14);
}

body.am-page-profile form#profile .comment {
  color: #66758a !important;
  line-height: 1.45;
  margin-top: .35rem;
}

body.am-page-profile form#profile .local-link {
  background: #eaf4ff;
  border: 1px solid #b8daff;
  border-radius: .45rem;
  color: #0056b3;
  display: inline-flex;
  font-weight: 700;
  padding: .45rem .75rem;
  text-decoration: none;
}

body.am-page-profile form#profile .local-link:hover,
body.am-page-profile form#profile .local-link:focus {
  background: #d8ecff;
  border-color: #8fc5ff;
  color: #003d80;
}

body.am-page-profile form#profile #row-avatar-0,
body.am-page-profile form#profile .am-row:has(input[name="avatar"]) {
  background: #f7fbff;
  border: 1px solid #dce5f0;
  border-radius: .65rem;
  padding: 1rem;
}

body.am-page-profile form#profile input[name="avatar"] + .upload-control,
body.am-page-profile form#profile #row-avatar-0 .upload-control,
body.am-page-profile form#profile .am-row:has(input[name="avatar"]) .upload-control {
  margin-top: .5rem;
}

body.am-page-profile form#profile #row-avatar-0 .upload-control-upload,
body.am-page-profile form#profile #row-avatar-0 .upload-control-browse,
body.am-page-profile form#profile .am-row:has(input[name="avatar"]) .upload-control-upload,
body.am-page-profile form#profile .am-row:has(input[name="avatar"]) .upload-control-browse {
  background: #007bff !important;
  border: 1px solid #007bff !important;
  border-radius: .45rem !important;
  color: #fff !important;
  cursor: pointer;
  font-weight: 700;
  padding: .55rem .85rem !important;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, transform .15s ease-in-out;
}

body.am-page-profile form#profile #row-avatar-0 .upload-control-upload:hover,
body.am-page-profile form#profile #row-avatar-0 .upload-control-browse:hover,
body.am-page-profile form#profile .am-row:has(input[name="avatar"]) .upload-control-upload:hover,
body.am-page-profile form#profile .am-row:has(input[name="avatar"]) .upload-control-browse:hover {
  background: #0069d9 !important;
  border-color: #0062cc !important;
  box-shadow: 0 .35rem .8rem rgba(0, 123, 255, .24);
  transform: translateY(-1px);
}

body.am-page-profile form#profile .am-cta-profile {
  border-radius: .5rem;
  font-weight: 800;
  padding: .8rem 1rem;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, transform .15s ease-in-out;
}

body.am-page-profile form#profile .am-cta-profile:hover,
body.am-page-profile form#profile .am-cta-profile:focus {
  background: #0069d9;
  border-color: #0062cc;
  box-shadow: 0 .35rem .8rem rgba(0, 123, 255, .24);
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  body.am-page-profile .am-body {
    padding-top: 1rem !important;
  }

  body.am-page-profile .am-body-content-top h2 {
    font-size: 1.55rem;
  }

  body.am-page-profile .am-body-content-content > .card {
    padding: 1rem !important;
  }

  body.am-page-profile .am-profile-avatar-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  body.am-page-profile .am-profile-avatar-panel-action {
    justify-content: center;
    width: 100%;
  }
}

/* Popup title */
.am-popup-title {
  color: #202936;
  align-items: center;
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.35;
  min-height: 2.75rem;
  text-align: center;
  width: 100%;
}

.am-popup-title-logo {
  display: block;
  height: auto;
  max-height: 38px;
  max-width: min(260px, calc(100vw - 8rem));
  object-fit: contain;
  width: auto;
}

.am-popup-header .am-popup-title,
.modal-header .am-popup-title {
  margin: 0 auto;
}

.am-popup-title-bar {
   align-items: center;
  display: flex;
  justify-content: center;
  min-height: 3.15rem;
  padding-left: 3rem;
  padding-top: .7rem;
  padding-right: 3rem;
  padding-bottom: .35rem;
  position: relative;
}

.am-popup-title-bar .am-popup-title,
.am-popup-title-bar .modal-title {
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.am-popup-title-bar .am-popup-close,
.am-popup-title-bar .modal-popup-close {
  align-items: center;
  background: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  opacity: 1;
  padding: 0;
  position: absolute;
  right: .65rem;
  text-shadow: none;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, color .15s ease-in-out, transform .15s ease-in-out;
  width: 2rem;
  z-index: 5;
}

.am-popup-title-bar .am-popup-close::before,
.am-popup-title-bar .modal-popup-close::before {
  color: #fff;
  content: "\00d7";
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  margin-top: -1px;
}

.am-popup-title-bar .am-popup-close span,
.am-popup-title-bar .modal-popup-close span {
  display: none;
}

.am-popup-title-bar .am-popup-close:hover,
.am-popup-title-bar .am-popup-close:focus,
.am-popup-title-bar .modal-popup-close:hover,
.am-popup-title-bar .modal-popup-close:focus {
  background: #c82333;
  border-color: #bd2130;
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

/* Drop Me */
.am-block#drop-me {
  border-color: #e34b3d;
}

#drop-me-head {
  color: #e34b3d;
}

.am-brick-product-popup-ok {
  display: flex;
}

.am-brick-product-popup-ok button {
  margin: 0.5em auto 0;
}

html body #mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  background: rgba(0,0,0,.55) !important;
}

html body .am-popup.am-common {
  position: fixed !important;
  top: 50vh !important;
  left: 50vw !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(560px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 48px) !important;
  z-index: 2147483647 !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.25) !important;
}

html body .am-popup.am-common {
  position: fixed !important;
  top: 50vh !important;
  left: 50vw !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(560px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 48px) !important;
  z-index: 2147483647 !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.25) !important;
}

html body .am-popup .am-popup-content {
  padding: 18px !important;
  max-height: calc(100vh - 130px) !important;
  overflow-y: auto !important;
}

.am-account-toolbar .am-account-toolbar-items {
  display: flex !important;
  align-items: center !important;
}

.am-user-identity-block-avatar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.am-user-identity-block-avatar-pic {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex: 0 0 28px !important;
}

.am-user-identity-block-avatar-pic img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.am-user-identity-block_login {
  line-height: 1 !important;
}

.am-user-identity-block-avatar > a[href="/logout"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  background: #dc3545 !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.am-user-identity-block-avatar > a[href="/logout"]:hover {
  background: #bb2d3b !important;
  color: #fff !important;
}

@media (max-width: 1199.98px) {
  .am-user-identity-block-avatar {
    justify-content: center !important;
    margin-top: 10px !important;
  }
}

/* Helpdesk ticket list */
.am-page-helpdesk .am-body-content-content > .am-info {
  background: #eaf4ff;
  border: 1px solid #c9e2ff;
  border-radius: .5rem;
  color: #24476b;
  margin-bottom: 1.25rem;
  padding: .875rem 1rem;
}

.am-page-helpdesk .am-grid-wrap {
  margin-bottom: 2rem;
}

.am-page-helpdesk .am-grid-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 .75rem;
}

.am-page-helpdesk .am-grid-title-desc {
  color: #6c757d;
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-top: .25rem;
}

.am-page-helpdesk .am-norecord-actions {
  margin-bottom: 1rem;
}

.am-page-helpdesk .am-norecord-actions .button {
  background: #007bff;
  border: 1px solid #007bff;
  border-radius: .25rem;
  color: #fff;
  display: inline-block;
  font-weight: 700;
  line-height: 1.5;
  padding: .5rem .9rem;
  text-decoration: none;
}

.am-page-helpdesk .am-norecord-actions .button:hover,
.am-page-helpdesk .am-norecord-actions .button:focus {
  background: #0069d9;
  border-color: #0062cc;
  color: #fff;
  text-decoration: none;
}

.am-page-helpdesk .am-grid-container {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  box-shadow: 0 .125rem .35rem rgba(0, 0, 0, .06);
  overflow-x: auto;
}

.am-page-helpdesk .am-grid {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
  table-layout: auto;
  width: 100%;
}

.am-page-helpdesk .am-grid th,
.am-page-helpdesk .am-grid td {
  border-bottom: 1px solid #edf0f2;
  padding: .875rem 1rem;
  vertical-align: middle;
}

.am-page-helpdesk .am-grid th {
  background: #f8f9fa;
  color: #495057;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.am-page-helpdesk .am-grid th a {
  color: inherit;
  text-decoration: none;
}

.am-page-helpdesk .am-grid tbody tr:last-child td {
  border-bottom: 0;
}

.am-page-helpdesk .am-grid tbody tr:hover td {
  background: #f8fbff;
}

.am-page-helpdesk .am-grid .disabled > td,
.am-page-helpdesk .am-grid tr.disabled > td {
  opacity: 1;
}

.am-page-helpdesk .am-grid th:nth-child(1),
.am-page-helpdesk .am-grid td:nth-child(1) {
  width: 58%;
}

.am-page-helpdesk .am-grid th:nth-child(2),
.am-page-helpdesk .am-grid td:nth-child(2) {
  white-space: nowrap;
  width: 12%;
}

.am-page-helpdesk .am-grid th:nth-child(3),
.am-page-helpdesk .am-grid td:nth-child(3) {
  color: #6c757d;
  white-space: nowrap;
  width: 14%;
}

.am-page-helpdesk .am-grid th:nth-child(4),
.am-page-helpdesk .am-grid td:nth-child(4) {
  text-align: center;
  white-space: nowrap;
  width: 8%;
}

.am-page-helpdesk .am-helpdesk-grid-subject .link {
  font-weight: 700;
}

.am-page-helpdesk .am-helpdesk-grid-msg-cnt {
  background: #eef3f7;
  border-radius: 999px;
  color: #6c757d;
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 .35rem;
  min-width: 1.35rem;
  padding: .25rem .4rem;
  text-align: center;
}

.am-page-helpdesk .am-helpdesk-grid-msg {
  color: #6c757d;
  display: inline;
}

.am-page-helpdesk .glyph.sprite-icon {
  vertical-align: middle;
}

@media (max-width: 767.98px) {
  .am-page-helpdesk .am-grid-title {
    font-size: 1.5rem;
  }

  .am-page-helpdesk .am-grid-container {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow-x: visible;
  }

  .am-page-helpdesk .am-grid,
  .am-page-helpdesk .am-grid thead,
  .am-page-helpdesk .am-grid tbody,
  .am-page-helpdesk .am-grid tr,
  .am-page-helpdesk .am-grid td {
    display: block;
    width: 100%;
  }

  .am-page-helpdesk .am-grid thead {
    display: none;
  }

  .am-page-helpdesk .am-grid tr.am-grid-row {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    box-shadow: 0 .125rem .35rem rgba(0, 0, 0, .06);
    margin-bottom: .85rem;
    overflow: hidden;
  }

  .am-page-helpdesk .am-grid td {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .75rem .9rem;
  }

  .am-page-helpdesk .am-grid td::before {
    color: #6c757d;
    flex: 0 0 5.5rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .am-page-helpdesk .am-grid td:nth-child(1)::before {
    content: "Subject";
  }

  .am-page-helpdesk .am-grid td:nth-child(2)::before {
    content: "Updated";
  }

  .am-page-helpdesk .am-grid td:nth-child(3)::before {
    content: "#";
  }

  .am-page-helpdesk .am-grid td:nth-child(4)::before {
    content: "Status";
  }

  .am-page-helpdesk .am-grid td:nth-child(1) {
    display: block;
    width: 100%;
  }

  .am-page-helpdesk .am-grid td:nth-child(2),
  .am-page-helpdesk .am-grid td:nth-child(3),
  .am-page-helpdesk .am-grid td:nth-child(4) {
    width: 100%;
  }

  .am-page-helpdesk .am-grid td:nth-child(1)::before {
    display: block;
    margin-bottom: .35rem;
  }

  .am-page-helpdesk .am-helpdesk-grid-msg {
    display: block;
    margin-top: .25rem;
  }
  
.am-helpdesk-reply-panel-tool-emoji {
  display: none !important;
}

}
