:root {
    --sx-bg: #f5f7fa;
    --sx-surface: #ffffff;
    --sx-surface-muted: #eef3f7;
    --sx-border: #d9e1ea;
    --sx-border-strong: #c5d1df;
    --sx-text: #17202a;
    --sx-muted: #607082;
    --sx-header: #111827;
    --sx-accent: #008f8c;
    --sx-accent-hover: #00736f;
    --sx-danger: #b42318;
    --sx-warning: #b54708;
    --sx-radius: 8px;
    --sx-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    color-scheme: light;
}

html,
body.grp-popup,
body {
    background: var(--sx-bg) !important;
    color: var(--sx-text);
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

#theme-toggle,
.theme-toggle,
.theme-toggle-button,
button.theme-toggle,
[data-theme-toggle],
.color-theme-toggle {
    display: none !important;
}

.visually-hidden,
.hidden {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.app-list thead.visually-hidden,
#content-main thead.visually-hidden,
#grp-content-container thead.visually-hidden {
    display: none !important;
}

a,
a:link,
a:visited {
    color: var(--sx-accent);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--sx-accent-hover);
    text-decoration: underline;
}

#grp-header,
#header {
    background: var(--sx-header) !important;
    border: 0 !important;
    box-shadow: 0 2px 14px rgba(17, 24, 39, 0.16);
}

#grp-navigation {
    min-height: 58px;
    padding: 0 28px !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 18px;
}

#stratusx-branding,
#branding {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.stratusx-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sx-accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.stratusx-name,
#grp-admin-title,
#branding h1,
#branding h1 a:link,
#branding h1 a:visited {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
}

#grp-admin-title {
    margin-left: 8px !important;
}

#grp-user-tools,
#user-tools {
    margin-left: auto !important;
}

#grp-user-tools li,
#grp-user-tools a,
#user-tools,
#user-tools a {
    color: #e5e7eb !important;
}


.sx-admin-version {
    display: inline-block;
    color: #cbd5e1 !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    margin-right: 10px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    vertical-align: middle;
    white-space: nowrap;
}

#grp-context-navigation {
    background: #fff !important;
    border-bottom: 1px solid var(--sx-border) !important;
    min-height: 42px;
    padding: 0 28px !important;
}

#grp-breadcrumbs,
#grp-breadcrumbs ul,
#grp-breadcrumbs li {
    color: var(--sx-muted) !important;
}

#grp-content,
#content {
    max-width: none;
    width: auto;
    margin: 28px 0 48px !important;
    padding: 0 28px 120px !important;
    box-sizing: border-box;
}

#grp-content-title,
#content h1 {
    margin: 0 0 18px !important;
    padding: 0 !important;
}

#grp-content-title h1,
#content h1 {
    color: var(--sx-text) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

#grp-content-container,
#content-main,
.grp-module,
.grp-row,
.grp-group,
.module,
fieldset.module,
#changelist,
#content-main {
    background: var(--sx-surface) !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: var(--sx-radius) !important;
    box-shadow: var(--sx-shadow);
}

#grp-content-container,
#content-main {
    padding: 14px !important;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.grp-module,
.module,
fieldset.module {
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 18px !important;
}

.grp-module h2,
.module h2,
fieldset.module h2,
.grp-group h2 {
    background: var(--sx-surface-muted) !important;
    color: var(--sx-text) !important;
    border-bottom: 1px solid var(--sx-border) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    padding: 8px 10px !important;
}

table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    min-width: 100%;
    width: auto;
    background: var(--sx-surface) !important;
}

#changelist,
#changelist-form,
.results,
.grp-changelist-results {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

#result_list,
.results table {
    min-width: max-content;
    width: max-content;
}

thead th,
.grp-table thead th,
.results thead th {
    background: var(--sx-surface-muted) !important;
    color: var(--sx-text) !important;
    border-bottom: 1px solid var(--sx-border) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    padding: 7px 8px !important;
    white-space: nowrap;
}

tbody td,
tbody th,
.grp-table tbody td,
.results tbody td,
.results tbody th {
    background: var(--sx-surface) !important;
    border-bottom: 1px solid #edf1f5 !important;
    color: var(--sx-text) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    padding: 7px 8px !important;
    vertical-align: top;
    white-space: nowrap;
}

tbody tr {
    background: var(--sx-surface) !important;
}

tbody tr:nth-child(even) td,
tbody tr:nth-child(even) th {
    background: #fbfcfd !important;
}

tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
    background: var(--sx-surface) !important;
}

tbody tr:hover td,
tbody tr:hover th {
    background: #eefaf8 !important;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
textarea,
select,
.vTextField {
    background: #fff !important;
    border: 1px solid #cbd5df !important;
    border-radius: 7px !important;
    color: var(--sx-text) !important;
    min-height: 34px;
    padding: 7px 10px !important;
    box-shadow: none !important;
}

textarea {
    min-height: 110px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--sx-accent) !important;
    outline: 3px solid rgba(0, 143, 140, 0.16) !important;
}

input[type="submit"],
button,
.button,
a.button,
.grp-button,
.grp-submit-row input,
.object-tools a,
ul.grp-object-tools li a {
    background: var(--sx-accent) !important;
    border: 1px solid var(--sx-accent) !important;
    border-radius: 7px !important;
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 8px 12px !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

input[type="submit"]:hover,
button:hover,
.button:hover,
a.button:hover,
.grp-button:hover,
.grp-submit-row input:hover,
.object-tools a:hover,
ul.grp-object-tools li a:hover {
    background: var(--sx-accent-hover) !important;
    border-color: var(--sx-accent-hover) !important;
    text-decoration: none !important;
}

.grp-delete-link,
a.deletelink,
input[name="_delete"],
.grp-submit-row input.grp-delete-link {
    background: var(--sx-danger) !important;
    border-color: var(--sx-danger) !important;
}

.grp-submit-row,
.submit-row {
    background: #fff !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: var(--sx-radius) !important;
    box-shadow: var(--sx-shadow);
    padding: 14px !important;
    z-index: 50;
}

.grp-change-form #grp-content-container,
.change-form #grp-content-container,
.change-form #content-main {
    padding-bottom: 120px !important;
}

.grp-change-form #grp-content,
.change-form #grp-content,
.change-form #content {
    padding-bottom: 150px !important;
}

#changelist-search,
.grp-search {
    background: #fff !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: var(--sx-radius) !important;
    padding: 12px !important;
}

#changelist-filter,
.grp-filter {
    background: #fff !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: var(--sx-radius) !important;
    box-shadow: var(--sx-shadow);
}

.grp-messagelist li,
ul.messagelist li {
    border-radius: var(--sx-radius) !important;
    border: 1px solid var(--sx-border) !important;
    box-shadow: none !important;
    color: var(--sx-text) !important;
}

.grp-messagelist li.grp-warning,
ul.messagelist li.warning {
    border-color: rgba(181, 71, 8, 0.35) !important;
    color: var(--sx-warning) !important;
}

.grp-pagination,
.paginator {
    color: var(--sx-muted) !important;
    font-size: 13px !important;
}

.grp-pagination a,
.paginator a {
    border: 1px solid var(--sx-border) !important;
    border-radius: 7px !important;
    padding: 5px 8px !important;
}

.login #grp-content,
body.login #grp-content,
body.login #content {
    max-width: 440px;
    margin: 58px auto 48px !important;
    padding: 0 20px 120px !important;
}

.login #grp-content-container,
body.login #grp-content-container,
body.login #content-main {
    padding: 28px !important;
    overflow: visible;
}

body.login #container {
    background: #fff !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: var(--sx-radius) !important;
    box-shadow: var(--sx-shadow);
    display: block !important;
    margin: 96px auto 48px !important;
    min-height: 0 !important;
    overflow: hidden;
    width: min(440px, calc(100vw - 40px)) !important;
}

body.login #header {
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 15px 40px !important;
    width: 100% !important;
}

body.login #content {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

body.login #content-main {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 28px 40px 32px !important;
    width: 100% !important;
}

body.login form {
    width: 100% !important;
}

body.login .form-row {
    border: 0 !important;
    padding: 0 0 14px !important;
}

body.login .form-row label {
    color: var(--sx-text) !important;
    display: block;
    font-weight: 700;
    margin: 0 0 6px;
}

body.login .submit-row {
    border: 0 !important;
    box-shadow: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    position: static !important;
    text-align: left;
}

body.login .submit-row input[type="submit"] {
    width: 100%;
}

body.grp-login {
    background: var(--sx-bg) !important;
}

body.grp-login #grp-content {
    top: 0 !important;
    max-width: 560px !important;
    width: 100% !important;
    margin: 64px auto 48px !important;
    padding: 0 24px 80px !important;
    box-sizing: border-box !important;
}

body.grp-login #grp-content-title {
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 20px !important;
}

body.grp-login #grp-content-title h1 {
    color: var(--sx-text) !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

body.grp-login #grp-content-container {
    background: var(--sx-surface) !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--sx-shadow) !important;
    max-width: none !important;
    overflow: visible !important;
    padding: 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.grp-login #grp-content-container .g-d-c,
body.grp-login #grp-content-container .g-d-10,
body.grp-login #grp-content-container .g-centered {
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body.grp-login .grp-module-login,
body.grp-login .grp-module-login .grp-module,
body.grp-login .grp-module-login .grp-row,
body.grp-login .grp-module.grp-submit-row,
body.grp-login .grp-module.grp-submit-row ul,
body.grp-login .grp-module.grp-submit-row li {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.grp-login .grp-module-login {
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-login .grp-module-login h1 {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sx-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 0 22px !important;
    padding: 0 0 18px !important;
}

body.grp-login .grp-module-login h1 span.grp-admin-title {
    color: var(--sx-text) !important;
    display: block !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-login .grp-module-login h1 span.grp-admin-title a {
    color: var(--sx-text) !important;
}

body.grp-login .grp-module-login h1 span.grp-current-page {
    display: none !important;
}

body.grp-login .grp-module-login .grp-module {
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-login .grp-module-login .grp-row {
    margin: 0 !important;
    padding: 0 0 16px !important;
}

body.grp-login .grp-module-login .grp-row.grp-connected {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.grp-login .grp-module-login label {
    color: var(--sx-text) !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
}

body.grp-login .grp-module-login input[type="text"],
body.grp-login .grp-module-login input[type="password"] {
    background: #fff !important;
    border: 1px solid var(--sx-border-strong) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--sx-text) !important;
    font-size: 15px !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 12px !important;
    width: 100% !important;
}

body.grp-login .grp-module-login input[type="text"]:focus,
body.grp-login .grp-module-login input[type="password"]:focus {
    border-color: var(--sx-accent) !important;
    outline: 3px solid rgba(0, 143, 140, 0.16) !important;
}

body.grp-login .grp-module.grp-submit-row {
    margin: 22px 0 0 !important;
    padding: 0 !important;
}

body.grp-login .grp-module.grp-submit-row ul {
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-login .grp-module.grp-submit-row li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-login .grp-module.grp-submit-row input[type="submit"] {
    height: 40px !important;
    min-width: 112px !important;
    padding: 0 18px !important;
}

body.grp-login .grp-description {
    margin: 0 !important;
}

body.grp-login .grp-description a {
    align-items: center !important;
    background: var(--sx-accent) !important;
    border: 1px solid var(--sx-accent) !important;
    border-radius: 7px !important;
    color: #fff !important;
    display: inline-flex !important;
    font-weight: 700 !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    text-decoration: none !important;
}

body.grp-login .grp-description a:hover,
body.grp-login .grp-description a:focus {
    background: var(--sx-accent-hover) !important;
    border-color: var(--sx-accent-hover) !important;
}

@media (max-width: 700px) {
    body.grp-login #grp-content {
        margin-top: 32px !important;
        padding: 0 16px 56px !important;
    }

    body.grp-login #grp-content-title h1 {
        font-size: 28px !important;
    }

    body.grp-login #grp-content-container {
        padding: 20px !important;
    }
}

@media (max-width: 800px) {
    #grp-navigation,
    #header,
    #grp-context-navigation,
    #grp-content,
    #content {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    #grp-content,
    #content {
        margin-top: 18px !important;
    }

    #grp-content-container,
    #content-main {
        padding: 14px !important;
        padding-bottom: 120px !important;
        overflow-x: auto;
    }

    .stratusx-name {
        font-size: 16px !important;
    }
}


/* Codex admin object tools visibility fix. */
.grp-object-tools,
.object-tools {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
}

.grp-object-tools li,
.object-tools li,
.grp-actions li.grp-add-link {
    display: inline-block !important;
    visibility: visible !important;
}

.grp-object-tools li a,
.grp-actions li.grp-add-link a,
.object-tools li a,
.addlink {
    opacity: 1 !important;
    visibility: visible !important;
}

.grp-actions li.grp-add-link a {
    min-width: 16px;
    min-height: 16px;
}


/* Codex device changelist layout fix. */
body.grp-change-list #grp-changelist-form {
    clear: both;
    width: 100%;
    min-width: 0;
}

body.grp-change-list #grp-content-container,
body.grp-change-list #content-main {
    overflow: visible !important;
}

body.grp-change-list #grp-changelist,
body.grp-change-list .grp-changelist-results {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.grp-change-list .grp-changelist-results {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}


/* Codex admin layout and actions correction. */
header#grp-header {
    position: static !important;
}

#grp-content {
    top: 0 !important;
    margin-top: 22px !important;
}

#grp-content-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}

#grp-content-title h1 {
    margin: 0 !important;
    min-width: 0;
}

.grp-object-tools,
.object-tools {
    float: none !important;
    margin: 0 !important;
}

.grp-object-tools li,
.object-tools li {
    display: inline-flex !important;
}

.grp-object-tools a,
.object-tools a,
.grp-actions li.grp-add-link a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px !important;
    border-radius: 6px;
    background: var(--sx-accent) !important;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    width: auto !important;
    min-width: auto !important;
}

.grp-actions li.grp-add-link a::after {
    content: "Add";
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer {
    overflow: visible !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer ul,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer li.grp-changelist-actions,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-changelist-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    float: none !important;
    overflow: visible !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer select,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer button,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-horizontal-list,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-horizontal-list li {
    float: none !important;
    position: static !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer button[name="index"] {
    margin: 0 !important;
}


/* Codex admin toolbar alignment correction. */
body.grp-change-list #grp-content-title {
    display: block !important;
    min-height: 0;
}

body.grp-change-list #grp-content-title h1 {
    margin: 0 0 18px !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer {
    padding: 10px 12px !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 12px;
    width: 100% !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer > ul > li.grp-changelist-actions {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-changelist-actions > .grp-changelist-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer select,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer button[name="index"],
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-horizontal-list,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-horizontal-list li.grp-action-counter,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-horizontal-list .grp-button {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    box-sizing: border-box;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer select {
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 34px !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer button[name="index"],
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-horizontal-list .grp-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
    white-space: nowrap;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer button[name="index"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-horizontal-list {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .grp-horizontal-list li.grp-action-counter {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .action-counter {
    display: none !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .sx-changelist-object-tools {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    flex: 0 0 auto;
    height: 36px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .sx-changelist-object-tools .grp-object-tools {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    position: static !important;
    float: none !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .sx-changelist-object-tools .grp-object-tools li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row.grp-fixed-footer .sx-changelist-object-tools .grp-object-tools a {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
}

body.dashboard #grp-content-container .g-d-12 .grp-module .grp-row {
    display: flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 4px 8px 4px 14px !important;
    box-sizing: border-box;
}

body.dashboard #grp-content-container .g-d-12 .grp-module .grp-row > a {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 30px;
    padding: 0 !important;
}

body.dashboard #grp-content-container .g-d-12 .grp-module .grp-row .grp-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin: 0 0 0 12px !important;
    padding: 0 !important;
}

body.dashboard #grp-content-container .g-d-12 .grp-module .grp-row .grp-actions li.grp-add-link {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.dashboard #grp-content-container .grp-actions li.grp-add-link a {
    min-height: 24px !important;
    height: 24px !important;
    min-width: 32px !important;
    padding: 0 5px !important;
    border-radius: 5px;
    font-size: 0 !important;
    line-height: 1 !important;
}

body.dashboard #grp-content-container .grp-actions li.grp-add-link a::after {
    font-size: 12px !important;
    line-height: 1 !important;
}

#grp-user-tools .sx-logout-form {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

#user-tools .sx-logout-form {
    display: inline-block !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

#grp-user-tools .sx-logout-button {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #e5e7eb !important;
    cursor: pointer !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-align: left !important;
    text-shadow: none !important;
}

#user-tools .sx-logout-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 6px 14px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: var(--sx-accent) !important;
    color: #fff !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
}

#grp-user-tools .sx-logout-button:hover,
#grp-user-tools .sx-logout-button:focus,
#user-tools .sx-logout-button:hover,
#user-tools .sx-logout-button:focus {
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    outline: 0 !important;
    text-decoration: none !important;
}

#user-tools .sx-logout-button:hover,
#user-tools .sx-logout-button:focus {
    background: var(--sx-accent-hover) !important;
}


/* Standard Django admin changelist layout. Keep this separate from the
   Grappelli-specific rules above; simx uses the stock Django admin. */
body.change-list #content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 14px;
}

body.change-list #content > h1 {
    grid-column: 1;
    margin: 0 !important;
}

body.change-list #content > .object-tools {
    grid-column: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px;
    float: none !important;
    position: static !important;
    min-height: 34px;
    margin: 0 !important;
    padding: 0 !important;
}

body.change-list #content > .object-tools.sx-empty-object-tools {
    display: none !important;
}

body.change-list #content > .object-tools li {
    display: inline-flex !important;
    float: none !important;
    height: auto !important;
    margin: 0 !important;
}

body.change-list #content > .object-tools a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 7px !important;
    background-image: none !important;
    white-space: nowrap;
}

body.change-list #content > #content-main,
body.change-list #content > .messagelist,
body.change-list #content > .module,
body.change-list #content > .clear,
body.change-list #content > script {
    grid-column: 1 / -1;
}

body.change-list #content-main {
    min-width: 0;
}

body.change-list #changelist {
    display: flex !important;
    align-items: stretch !important;
    gap: 16px;
    margin-top: 2px;
    background: transparent !important;
}

body.change-list #changelist .changelist-form-container {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: var(--sx-radius) !important;
    box-shadow: var(--sx-shadow);
}

body.change-list #changelist.filtered .changelist-form-container {
    flex: 1 1 0 !important;
    width: auto !important;
}

body.change-list #changelist.filtered .results,
body.change-list #changelist.filtered .paginator,
body.change-list #changelist.filtered #toolbar,
body.change-list #changelist.filtered div.xfull {
    margin-right: 0 !important;
    width: 100% !important;
}

body.change-list #toolbar {
    margin: 0 !important;
    padding: 12px !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sx-border) !important;
    color: var(--sx-muted) !important;
}

body.change-list #toolbar form > div {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

body.change-list #toolbar label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px;
    height: 34px;
    margin: 0 !important;
}

body.change-list #toolbar #searchbar {
    width: min(360px, 100%) !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
}

body.change-list #toolbar input[type="submit"],
body.change-list #changelist .actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

body.change-list #changelist .actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    width: auto !important;
    padding: 10px 12px !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sx-border) !important;
    color: var(--sx-muted) !important;
    line-height: 1 !important;
}

body.change-list #changelist .actions label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    margin: 0 !important;
    min-height: 34px;
}

body.change-list #changelist .actions select {
    width: min(260px, 42vw);
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 34px 0 10px !important;
    box-sizing: border-box;
}

body.change-list #changelist .actions span.all,
body.change-list #changelist .actions span.action-counter,
body.change-list #changelist .actions span.clear,
body.change-list #changelist .actions span.question {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px;
    margin: 0 !important;
}

body.change-list #changelist-form .results {
    overflow-x: auto !important;
    width: 100%;
}

body.change-list #changelist table {
    margin: 0;
    min-width: 0 !important;
    table-layout: auto;
    width: 100% !important;
}

body.change-list #changelist table thead th,
body.change-list #changelist table tbody th,
body.change-list #changelist table tbody td {
    overflow-wrap: anywhere;
    vertical-align: middle !important;
    white-space: normal !important;
}

body.change-list #changelist .paginator {
    margin: 0 !important;
    padding: 10px 12px !important;
    background: #fff !important;
    border-top: 1px solid var(--sx-border) !important;
    border-bottom: 0 !important;
}

body.change-list #changelist-filter {
    flex: 0 0 260px !important;
    align-self: stretch;
    max-width: 260px !important;
    min-width: 260px !important;
    order: 1;
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: var(--sx-radius) !important;
    box-shadow: var(--sx-shadow);
    overflow: hidden;
    width: 260px !important;
    z-index: 1 !important;
}

body.change-list #changelist-filter h2 {
    margin: 0 !important;
    padding: 10px 14px !important;
    background: var(--sx-surface-muted) !important;
    border-bottom: 1px solid var(--sx-border) !important;
}

body.change-list #changelist-filter h3,
body.change-list #changelist-filter details summary {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

body.change-list #changelist-filter ul {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

body.change-list #custom_tag_h3,
body.change-list #custom_tag_ul {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    body.change-list #content {
        grid-template-columns: 1fr;
    }

    body.change-list #content > .object-tools {
        grid-column: 1;
        justify-content: flex-start !important;
    }

    body.change-list #changelist {
        flex-direction: column;
    }

    body.change-list #changelist-filter {
        flex: 0 0 auto !important;
    }
}

/* Standard Django change forms. */
body.change-form #content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
}

body.change-form #content > h1 {
    grid-column: 1;
    margin: 0 !important;
}

body.change-form #content > .object-tools {
    grid-column: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    float: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 34px !important;
}

body.change-form #content > .object-tools li {
    display: inline-flex !important;
    float: none !important;
    height: auto !important;
    margin: 0 !important;
}

body.change-form #content > .object-tools a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 7px !important;
    background-image: none !important;
    white-space: nowrap;
}

body.change-form #content > h2 {
    grid-column: 1 / -1;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--sx-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

body.change-form #content > #content-main,
body.change-form #content > .messagelist,
body.change-form #content > .clear,
body.change-form #content > script {
    grid-column: 1 / -1;
}

body.change-form #content-main,
body.change-form #content-main form,
body.change-form #content-main form > div {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

body.change-form #content-main {
    width: 100%;
    overflow-x: hidden;
}

body.change-form .aligned .form-row {
    min-width: 0;
}

body.change-form .aligned .form-row > div,
body.change-form .aligned .form-row .flex-container {
    min-width: 0;
    max-width: 100%;
}

body.change-form .aligned .form-row .flex-container {
    align-items: center;
    gap: 12px;
}

body.change-form .aligned .form-row .flex-container.form-multiline {
    align-items: flex-start;
    flex-wrap: wrap;
}

body.change-form .aligned .form-row .flex-container > label:not(.vCheckboxLabel):not(.inline) {
    flex: 0 0 170px;
    width: 170px !important;
    min-width: 170px;
}

body.change-form .aligned .form-row .fieldBox {
    min-width: 220px;
}

body.change-form .aligned .readonly,
body.change-form .aligned input,
body.change-form .aligned select,
body.change-form .aligned textarea,
body.change-form .related-widget-wrapper {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.change-form .submit-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 20px !important;
    overflow: visible !important;
}

body.change-form .submit-row input,
body.change-form .submit-row a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    height: 34px !important;
    line-height: 1 !important;
    box-sizing: border-box;
}

body.change-form .submit-row a.deletelink {
    margin-left: auto !important;
    padding: 0 14px !important;
}

body.change-form .field-permissions .flex-container {
    align-items: flex-start !important;
}

body.change-form .field-permissions .related-widget-wrapper {
    flex: 1 1 auto;
    width: 100%;
}

body.change-form .selector {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

body.change-form .selector-available,
body.change-form .selector-chosen {
    overflow: visible !important;
    min-width: 0;
    max-width: 100%;
}

body.change-form .selector select,
body.change-form .selector-filter input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

body.change-form .selector .selector-filter {
    align-items: center;
}

body.change-form .selector ul.selector-chooser {
    align-self: center;
    justify-self: center;
    transform: none !important;
    width: 30px;
    margin: 0 !important;
}

body.change-form .selector ul.selector-chooser a,
body.change-form .selector button.selector-add,
body.change-form .selector button.selector-remove {
    align-items: center !important;
    background-image: none !important;
    display: inline-flex !important;
    font-size: 0 !important;
    height: 30px !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    width: 30px !important;
}

body.change-form .selector button.selector-add,
body.change-form .selector button.selector-remove {
    margin: 0 0 6px !important;
}

body.change-form .selector button.selector-add:disabled,
body.change-form .selector button.selector-remove:disabled {
    background: #86bfbd !important;
    border-color: #86bfbd !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

body.change-form .selector ul.selector-chooser a.selector-add::before,
body.change-form .selector button.selector-add::before {
    color: #fff;
    content: ">";
    font-size: 16px;
    font-weight: 800;
}

body.change-form .selector ul.selector-chooser a.selector-remove::before,
body.change-form .selector button.selector-remove::before {
    color: #fff;
    content: "<";
    font-size: 16px;
    font-weight: 800;
}

body.change-form .selector-chooseall,
body.change-form .selector-clearall {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--sx-accent) !important;
    display: inline-flex !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    height: auto !important;
    line-height: 1.2 !important;
    margin-top: 8px !important;
    max-width: 100%;
    min-height: 18px !important;
    overflow: visible !important;
    padding: 0 !important;
    text-indent: 0 !important;
    white-space: normal;
}

body.change-form .field-permissions .help {
    clear: both;
    margin-top: 8px !important;
    position: relative;
}

body.change-form .inline-group {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body.change-form .inline-group > fieldset.module {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden !important;
}

body.change-form .inline-related.tabular fieldset.module {
    overflow-x: hidden;
}

body.change-form .inline-related.tabular fieldset.module table {
    width: 100%;
    min-width: 100%;
}

body.change-form .inline-group .tabular th,
body.change-form .inline-group .tabular td {
    white-space: normal !important;
}

body.change-form .inline-group .tabular tr.has_original td {
    padding-top: 7px !important;
}

body.change-form .inline-group .tabular th.original,
body.change-form .inline-group .tabular td.original {
    width: 96px !important;
    min-width: 96px !important;
    padding: 7px 8px !important;
    box-sizing: border-box;
    vertical-align: middle !important;
}

body.change-form .inline-group .tabular td.original p {
    position: static !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: nowrap;
}

body.change-form .inline-group .tabular td p {
    margin: 0 !important;
}

@media (max-width: 1200px) {
    body.change-form #content {
        grid-template-columns: 1fr;
    }

    body.change-form #content > .object-tools {
        grid-column: 1;
        justify-content: flex-start !important;
    }

    body.change-form .field-permissions .flex-container {
        display: block;
    }

    body.change-form .field-permissions .flex-container > label {
        display: block;
        width: auto !important;
        min-width: 0;
        margin-bottom: 8px;
    }

    body.change-form .selector {
        grid-template-columns: 1fr;
    }

    body.change-form .selector ul.selector-chooser {
        transform: rotate(90deg) !important;
        margin: 8px 0 !important;
    }
}

/* Unified admin header */
#grp-admin-title {
    display: none !important;
}

#stratusx-branding {
    flex: 0 1 auto;
}

.sx-header-service {
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-left: 18px;
    white-space: nowrap;
}

#grp-user-tools,
#user-tools {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin-left: auto !important;
    color: #cbd5e1 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

#grp-user-tools a,
#user-tools a {
    color: #e5e7eb !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.sx-welcome,
.sx-admin-version {
    color: #cbd5e1 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap;
}

.sx-admin-version::after,
#grp-user-tools a::after,
#user-tools a::after {
    content: ' /';
    color: rgba(229, 231, 235, 0.72);
    margin-left: 8px;
}

#grp-user-tools .sx-logout-form,
#user-tools .sx-logout-form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

#grp-user-tools .sx-logout-button,
#user-tools .sx-logout-button {
    background: var(--sx-accent) !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    min-height: 30px;
    padding: 0 14px !important;
    text-transform: uppercase;
}

#grp-user-tools .sx-logout-button:hover,
#grp-user-tools .sx-logout-button:focus,
#user-tools .sx-logout-button:hover,
#user-tools .sx-logout-button:focus {
    background: var(--sx-accent-hover) !important;
}

/* Final guard: keep header actions and changelist actions from collapsing. */
#grp-user-tools,
#user-tools {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    margin-right: 18px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

#grp-user-tools > *,
#user-tools > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

#grp-user-tools .sx-logout-form,
#user-tools .sx-logout-form {
    min-width: max-content !important;
}

#grp-user-tools .sx-logout-button,
#user-tools .sx-logout-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 66px !important;
    width: auto !important;
    white-space: nowrap !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions select,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions button[name="index"],
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions .grp-horizontal-list,
body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions .grp-horizontal-list li {
    float: none !important;
    margin: 0 !important;
    position: static !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions select {
    order: 1;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions button[name="index"] {
    order: 2;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions .grp-horizontal-list {
    order: 3;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .grp-changelist-actions .action-counter {
    display: none !important;
}

body.grp-change-list #grp-changelist-form > #submit.grp-submit-row .sx-changelist-object-tools {
    margin-left: auto !important;
}

/* Dashboard device list: keep operational columns readable on narrow screens. */
body.change-list.model-device #changelist-form .results {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

body.change-list.model-device #changelist table {
    min-width: 1120px !important;
    table-layout: auto !important;
    width: 100% !important;
}

body.change-list.model-device #changelist table thead th,
body.change-list.model-device #changelist table tbody th,
body.change-list.model-device #changelist table tbody td {
    overflow-wrap: normal !important;
    text-align: center !important;
    white-space: nowrap !important;
}

body.change-list.model-device #changelist table thead th > div,
body.change-list.model-device #changelist table thead th .text,
body.change-list.model-device #changelist table thead th .text a {
    justify-content: center !important;
    text-align: center !important;
}

/* Django 5 nav sidebar: keep it neutral instead of a colored strip. */
#toggle-nav-sidebar,
.toggle-nav-sidebar {
    background: #fff !important;
    border-right: 1px solid var(--sx-border) !important;
    box-shadow: 1px 0 0 rgba(17, 24, 39, 0.04) !important;
    color: var(--sx-muted) !important;
}

#toggle-nav-sidebar:hover,
#toggle-nav-sidebar:focus,
.toggle-nav-sidebar:hover,
.toggle-nav-sidebar:focus {
    background: var(--sx-surface-muted) !important;
    color: var(--sx-text) !important;
}

#nav-sidebar {
    border-right: 1px solid var(--sx-border) !important;
    box-shadow: 10px 0 24px rgba(17, 24, 39, 0.04) !important;
}

body:not(.login) .main {
    position: relative;
}

body:not(.login) #toggle-nav-sidebar,
body:not(.login) .toggle-nav-sidebar {
    background: #e8fbfb !important;
    border: 0 !important;
    border-right: 1px solid #80d4d8 !important;
    bottom: 0 !important;
    box-shadow: none !important;
    color: #34586d !important;
    flex: 0 0 0 !important;
    height: auto !important;
    left: 0 !important;
    margin: 0 !important;
    max-width: 2px !important;
    min-width: 2px !important;
    overflow: visible !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 2px !important;
    z-index: 30 !important;
}

body:not(.login) #toggle-nav-sidebar::before,
body:not(.login) .toggle-nav-sidebar::before {
    color: #34586d !important;
    content: "«";
    font-size: 15px;
    font-weight: 800;
    left: 7px;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Django date/time widgets: match the compact Rent-style icon buttons. */
body.change-form p.datetime,
body.sx-aggregation-wizard p.datetime {
    align-items: center !important;
    color: var(--sx-muted) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    font-size: 0 !important;
    gap: 8px 0 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    max-width: none !important;
}

body.change-form p.datetime br,
body.sx-aggregation-wizard p.datetime br {
    display: none !important;
}

body.change-form p.datetime input.vDateField,
body.change-form p.datetime input.vTimeField,
body.sx-aggregation-wizard p.datetime input.vDateField,
body.sx-aggregation-wizard p.datetime input.vTimeField {
    background: #fff !important;
    border: 1px solid var(--sx-border-strong) !important;
    border-radius: 7px 0 0 7px !important;
    box-shadow: none !important;
    color: var(--sx-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    height: 34px !important;
    line-height: 34px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    width: 132px !important;
}

body.change-form p.datetime input.vTimeField,
body.sx-aggregation-wizard p.datetime input.vTimeField {
    width: 104px !important;
}

body.change-form p.datetime .datetimeshortcuts,
body.sx-aggregation-wizard p.datetime .datetimeshortcuts {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid var(--sx-border-strong) !important;
    border-left: 0 !important;
    border-radius: 0 7px 7px 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: transparent !important;
    display: inline-flex !important;
    font-size: 0 !important;
    height: 34px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 12px 0 -1px !important;
    min-height: 34px !important;
    overflow: hidden !important;
    padding: 0 !important;
    vertical-align: top !important;
    white-space: nowrap !important;
    width: 30px !important;
}

body.change-form p.datetime .datetimeshortcuts a,
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a {
    display: none !important;
}

body.change-form p.datetime .datetimeshortcuts a[id^="calendarlink"],
body.change-form p.datetime .datetimeshortcuts a[id^="clocklink"],
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a[id^="calendarlink"],
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a[id^="clocklink"] {
    align-items: center !important;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 15px 15px !important;
    border: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    height: 32px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    width: 28px !important;
}

body.change-form p.datetime .datetimeshortcuts a[id^="calendarlink"],
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a[id^="calendarlink"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23607082' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
}

body.change-form p.datetime .datetimeshortcuts a[id^="clocklink"],
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a[id^="clocklink"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23607082' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E") !important;
}

body.change-form p.datetime .datetimeshortcuts a[id^="calendarlink"]:hover,
body.change-form p.datetime .datetimeshortcuts a[id^="calendarlink"]:focus,
body.change-form p.datetime .datetimeshortcuts a[id^="clocklink"]:hover,
body.change-form p.datetime .datetimeshortcuts a[id^="clocklink"]:focus,
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a[id^="calendarlink"]:hover,
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a[id^="calendarlink"]:focus,
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a[id^="clocklink"]:hover,
body.sx-aggregation-wizard p.datetime .datetimeshortcuts a[id^="clocklink"]:focus {
    background-color: #eefaf8 !important;
}

body.change-form p.datetime .date-icon,
body.change-form p.datetime .clock-icon,
body.change-form p.datetime .datetimeshortcuts img,
body.sx-aggregation-wizard p.datetime .date-icon,
body.sx-aggregation-wizard p.datetime .clock-icon,
body.sx-aggregation-wizard p.datetime .datetimeshortcuts img {
    display: none !important;
}

body.change-form p.datetime .timezonewarning,
body.sx-aggregation-wizard p.datetime .timezonewarning {
    color: var(--sx-muted) !important;
    display: block !important;
    flex-basis: 100% !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}
