html, body {
  overscroll-behavior: none !important;
}

.sticky {
    display: none !important;
}

.visually-hidden {
    display: none;
}

/* Django 6 pagination - match old inline style */
#changelist #changelist-form .paginator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.929rem;
    padding: 10px 0;
    line-height: 22px;
    margin-top: 1rem;
}

#changelist #changelist-form .paginator ul {
    list-style: none;
    margin: 0;
    margin-right: 6px;
    padding: 0;
    display: flex;
    gap: 0;
}

#changelist #changelist-form .paginator ul li {
    display: inline-block;
    padding: 0;
    margin: 0;
}

#changelist #changelist-form .paginator ul li a {
    font-size: 1rem;
    display: inline-block;
    padding: .5rem;
    background-color: #fff;
    color: #417690;
    line-height: normal;
    min-width: 2.3rem;
    text-align: center;
    margin-left: -.1rem;
    text-decoration: none;
}

#changelist #changelist-form .paginator ul li:last-child a {
    margin-right: 1rem;
}

#changelist #changelist-form .paginator ul li a:hover {
    background-color: #f9f9f9;
    text-decoration: none;
}

#changelist #changelist-form .paginator ul li a[aria-current="page"] {
    background-color: #5d6478;
    color: #fff;
    font-weight: bold;
    cursor: default;
}

pre.json {
    white-space: pre-wrap;
    word-break: break-all;
    width: 100%;
    overflow: auto;
    display: inline-block;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 0;
}
.skip-to-content-link, .form-group .form-control-label + div .form-control-static:empty {
  display: none;
}

.form-group .form-control-label + div .form-control-static:empty {
  display: none;
}

#changelist .changelist-form-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
}

#changelist .changelist-form-container > div {
  flex: 1 1 auto;
  min-width: 0;
}

#changelist #changelist-form .actions span:not(.hidden) {
  display: inherit !important;
}


/*#toolbar + #changelist-form {
  margin-right: 2rem;
}*/


pre.json.scroll {
    max-width: 100%;
    max-height: 600px;
}

table tbody tr.inactive td, table tbody tr.inactive td *,
table tbody tr.inactive td a, table tbody tr.inactive th,
table tbody tr.inactive th *,
table tbody tr.inactive th a {
    color: #999 !important
}

table tbody tr.deleted td,
table tbody tr.deleted td *,
table tbody tr.deleted td a,
table tbody tr.deleted th,
table tbody tr.deleted th *,
table tbody tr.deleted th a {
    text-decoration: line-through
}

table tbody tr.danger td, table tbody tr.danger td *,
table tbody tr.danger td a, table tbody tr.danger th,
table tbody tr.danger th *,
table tbody tr.danger th a {
    color: #ba4747 !important
}

table tbody tr.warning td, table tbody tr.warning td *,
table tbody tr.warning td a, table tbody tr.warning th,
table tbody tr.warning th *,
table tbody tr.warning th a {
    color: #a8267b !important
}

table tbody tr.strong td,
table tbody tr.strong td *,
table tbody tr.strong td a,
table tbody tr.strong th,
table tbody tr.strong th *,
table tbody tr.strong th a {
    font-weight: bold !important;
}

table tbody tr.green td,
table tbody tr.green td *,
table tbody tr.green td a,
table tbody tr.green th,
table tbody tr.green th *,
table tbody tr.green th a {
    color: #04885e;
}

.field-link_to_exchange_order > * {
    display: block;
    width: 100px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow: ellipsis;
}


ul.errorlist {
    padding: 0 !important;
    margin: 0;
    list-style: none;
    display: inline;
}

ul.errorlist li {
    display: inline;
    margin: 0;
    color: #E04F3C;
    padding: 0;
}

ul.errorlist + input {
    margin-right: 0.25rem;
}

td[class^='field-']:has(ul.errorlist), td[class*=' field-']:has(ul.errorlist) {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    border-bottom: 0 !important;
}

#result_list .field-priority > input, #result_list .field-broadcast_priority > input {
    border: none;
    display: inline-block !important;
}

.impersonate {
    display: inline-flex;
    background: #b1b1b1;
    color: white;
    padding: 3px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0;
    align-items: baseline;
}
.impersonate:after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' class='feather feather-users' viewBox='0 0 24 24'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
    width: 12px;
    height: 12px;
}
.impersonate:hover {
    background: #0d64a2;
    color: white;
    text-decoration: none;
}
.severity-critical_risk, .severity-critical{
    color: #ff0800;
    font-weight: bold;
}
.severity-critical_risk:hover, .severity-critical:hover{
    color: #ff0800;
}

.severity-high_risk, .severity-high{
    color: #ff0800;
}
.severity-high_risk:hover, .severity-high:hover{
    color: #ff0800;
}

.severity-medium_risk,.severity-medium{
    color: #ffa500;
}
.severity-medium_risk:hover, .severity-medium:hover{
    color: #ffa500;
}

.severity-low_risk, .severity-low{
    color: #00b925;
}
.severity-low_risk:hover, .severity-low:hover{
    color: #00b925;
}

.widget-CheckboxSelectMultiple ul {
  list-style: none !important;
  padding: 0;
}

.lite-editor {
    font-family: Outfit, sans-serif !important;
    font-size: 16px !important;
    line-height: 28px !important;
    color: #4d5678 !important;
    p {
        margin-bottom: 20px;
    }

    h1, h2, h3, h4, b, strong {

    }
    h1, h2, h3, h4 {
        margin-top: 20px;
        color: #212b57;
        font-weight: 600;
    }
}

.edit-row {
    flex-wrap: nowrap !important;
}
.field-txid_, .field-txid, .form-control-static, .field-link_to_address, .field-receiver, .break-word {
    word-break: break-word;
}

.object-tools li .recoverlink {
    display: none !important;
}

#changelist-search > div {
    display: block !important;
    width: auto !important;
    max-width: none !important;
}

[id^="id_accountaccess_set-"][id$="-extra_conditions"] {
  /* your styles */
  max-width: 100px;
}
[id^="id_accountaccess_set-"][id$="-extra_conditions"]:focus {
  /* your styles */
  max-width: inherit;
}
[id^="id_accountaccess_set-"][id$="-user_permissions"]:not(:focus) {
  height: 34px !important;
}
.multi-field .text-help {
    white-space: normal;
}

.form-group.row.form-row legend {
    font-size: inherit !important;
}
.datetime {
    display: flex;
}
.datetime label {
    display: none;
}

.related-widget-wrapper-link:hover {
    opacity: 1;
}
.related-widget-wrapper-link {
    margin-left: 5px;
    opacity: 0.8;
}
.related-widget-wrapper-link img {
    max-width: 16px;
}
.related-widget-wrapper-link.change-related img {
    max-height: 14px;
}

/* Kill italic everywhere in admin — project convention: no italic */
.admin-interface,
.admin-interface *,
.help,
.help *,
p.help,
div.help,
div.help *,
fieldset h2,
fieldset h3,
.module h2,
.module caption,
em,
i,
address,
cite,
dfn,
var {
    font-style: normal !important;
}

/* Kill Django 6 default underline on content links + hover/focus */
.admin-interface a,
.admin-interface a:link,
.admin-interface a:visited,
.admin-interface a:hover,
.admin-interface a:focus,
a:not([role="button"], #header a, #nav-sidebar a, #content-main.app-list a, .object-tools a),
a:focus,
a:hover {
    text-decoration: none !important;
}