/* Shared controls apply to the ERP, embedded forms and Django catalogues. */
input[type="checkbox"],input[type="radio"]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px!important;padding:0!important;margin:0!important;vertical-align:middle!important;accent-color:#0875ee;cursor:pointer}
input[type="checkbox"]{border-radius:4px!important}input[type="radio"]{border-radius:50%!important}
form p:has(>input[type="checkbox"]),form p:has(>input[type="radio"]){display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap}
form p>input[type="checkbox"],form p>input[type="radio"]{order:-1}
form p:has(>input[type="checkbox"])>label,form p:has(>input[type="radio"])>label{display:inline!important;margin:0!important;font-weight:600}
label:has(>input[type="checkbox"]),label:has(>input[type="radio"]){display:inline-flex!important;align-items:center!important;gap:10px!important;line-height:1.5}
.checkbox-row{display:flex;align-items:center;gap:10px}.checkbox-row label{margin:0!important;padding:0!important}.errorlist{width:100%}
.profile-account{display:flex;align-items:center;gap:14px}.profile-link{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.user-avatar{width:40px;height:40px;min-width:40px;object-fit:cover;border-radius:50%;border:2px solid #cfd8e4;display:inline-flex;align-items:center;justify-content:center}.avatar-fallback{background:#e3e9f0;color:#0875ee;font-size:18px;font-weight:750}.profile-account .account-name{line-height:1.4;text-align:left}.profile-account .account-name small{display:block;font-size:10px}.profile-settings-link{font-size:21px;line-height:1}.profile-account .theme-toggle-button{background:#edf0f4;color:#0875ee;border:1px solid #dce0e6;border-radius:50%;width:37px;height:37px;padding:7px;display:inline-flex;align-items:center;justify-content:center}.theme-toggle-button svg,[data-theme-toggle] svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.profile-account form{margin:0}.profile-account form button{padding:8px;background:transparent;color:inherit;border:0;cursor:pointer;font:inherit}.profile-photo-preview{margin:20px 0}.profile-photo-preview img,.profile-photo-preview .user-avatar{width:128px;height:128px;object-fit:cover;border-radius:50%;font-size:50px}.audit-details{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:650px;padding:15px;background:#f2f4f6;border-radius:10px}
.pagination-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:18px 0;padding:15px 0;border-top:1px solid #e2e6ea}.pagination-size{margin:0}.pagination-size label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}.pagination-size select{min-width:75px;width:75px;padding:8px;min-height:35px}.pagination-total{font-size:12px;color:#697b92}.pagination-links{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.pagination-links a,.pagination-links .page-current{padding:7px 11px;border-radius:7px;font-size:12px}.pagination-links .page-current{background:#0875ee;color:white}.column .pagination-bar{padding:12px;margin:0;font-size:11px}.column .pagination-links a{padding:6px}.column .pagination-total{font-size:10px}.admin-page-size{display:flex;align-items:center;gap:8px;margin:14px 0}.admin-page-size label{margin:0;display:inline}.admin-page-size select{min-width:75px}
html[data-theme="dark"]{color-scheme:dark;--green:#79baff;--border:#294560;--muted:#a4afbd;--primary:#35557d;--secondary:#212d3c;--accent:#dbe1e9;--body-fg:#dce2e9;--body-bg:#0b1727;--body-quiet-color:#a9b3c0;--body-loud-color:#f1f4f7;--header-bg:#182739;--header-link-color:#f0f3f7;--breadcrumbs-bg:#202b38;--breadcrumbs-fg:#c0c8d1;--breadcrumbs-link-fg:#83a7d3;--link-fg:#83a7d3;--link-hover-color:#b4ccea;--hairline-color:#294560;--border-color:#294560;--darkened-bg:#1e2630;--selected-bg:#2a3644;--selected-row:#253243;--button-bg:#35557d;--button-hover-bg:#486a94;--default-button-bg:#35557d;--object-tools-bg:#35557d;--object-tools-hover-bg:#486a94}
html[data-theme="dark"] body{background:#0b1727!important;color:#dce2e9!important}html[data-theme="dark"] .topbar,html[data-theme="dark"] .workspace,html[data-theme="dark"] .card,html[data-theme="dark"] .order-card,html[data-theme="dark"] .catalog-menu,html[data-theme="dark"] dialog,html[data-theme="dark"] #content,html[data-theme="dark"] .module,html[data-theme="dark"] .modal-toolbar{background:#12263d!important;color:#dce2e9!important;border-color:#294560!important}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0b1b2e!important;color:#e3e8ee!important;border-color:#35516e!important}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9ca8b7!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] td,html[data-theme="dark"] label,html[data-theme="dark"] .brand,html[data-theme="dark"] .account-name,html[data-theme="dark"] .topnav summary,html[data-theme="dark"] .topnav>a,html[data-theme="dark"] .catalog-menu a,html[data-theme="dark"] #content h1{color:#dee4eb!important}html[data-theme="dark"] th,html[data-theme="dark"] small,html[data-theme="dark"] .muted,html[data-theme="dark"] .pagination-total,html[data-theme="dark"] .order-meta,html[data-theme="dark"] .order-card p{color:#a6b1bf!important}
html[data-theme="dark"] a{color:#84a8d3}html[data-theme="dark"] .topnav,html[data-theme="dark"] .column,html[data-theme="dark"] .access-parent,html[data-theme="dark"] .manager-access,html[data-theme="dark"] .user-step,html[data-theme="dark"] .family-heading,html[data-theme="dark"] tfoot,html[data-theme="dark"] .submit-row,html[data-theme="dark"] .audit-details,html[data-theme="dark"] .count,html[data-theme="dark"] .message,html[data-theme="dark"] .tag,html[data-theme="dark"] .avatar-fallback,html[data-theme="dark"] .button.soft,html[data-theme="dark"] .theme-toggle-button,html[data-theme="dark"] .scope-note,html[data-theme="dark"] .modal-toolbar button,html[data-theme="dark"] .module caption,html[data-theme="dark"] .module h2,html[data-theme="dark"] .workspace form p:has(>input[type="checkbox"]){background:#26313e!important;color:#c3d3e7!important;border-color:#35516e!important}
html[data-theme="dark"] .stats .card:first-child{background:linear-gradient(120deg,#334d60,#44667e)!important}html[data-theme="dark"] .stats strong{color:#e7ecf1!important}html[data-theme="dark"] .donut:after{background:#12263d!important}html[data-theme="dark"] td,html[data-theme="dark"] th,html[data-theme="dark"] .column-heading,html[data-theme="dark"] .order-footer,html[data-theme="dark"] .pagination-bar,html[data-theme="dark"] .bar-chart{border-color:#294560!important}
html[data-theme="dark"] .returned-packaging td{background:#483e1c!important;color:#ffe7a5!important}html[data-theme="dark"] .return-badge{background:#695623!important;color:#ffe7a5!important}html[data-theme="dark"] .user-step.current,html[data-theme="dark"] .topnav>a.active{background:#36567d!important;color:white!important}html[data-theme="dark"] .catalog-menu a:hover,html[data-theme="dark"] .topnav summary:hover{background:#2d3a4a!important}html[data-theme="dark"] #nav-sidebar{background:#131a22!important}html[data-theme="dark"] #session-warning p{color:#dce2e9!important}html[data-theme="dark"] #session-warning [data-session-exit]{background:#2d3947!important;color:#dce2e9!important}
@media(max-width:700px){.profile-account{gap:10px}.profile-account .account-name{font-size:12px}.user-avatar{width:34px;height:34px;min-width:34px}.pagination-bar{align-items:flex-start}.pagination-links{width:100%}}

html[data-theme="dark"] .code-preview,html[data-theme="dark"] .code-example,html[data-theme="dark"] .code-digit,html[data-theme="dark"] .code-mini span,html[data-theme="dark"] .code-success,html[data-theme="dark"] .code-step,html[data-theme="dark"] .code-row-new{background:#232d39!important;border-color:#35516e!important;color:#8caed7!important}
html[data-theme="dark"] .code-digit.class,html[data-theme="dark"] .code-mini span:nth-child(2){color:#a7c8df!important;background:#2c363d!important}
html[data-theme="dark"] .code-digit.family,html[data-theme="dark"] .code-mini span:nth-child(3){color:#e3c27c!important;background:#3e3825!important}
html[data-theme="dark"] .code-digit.variant,html[data-theme="dark"] .code-mini span:nth-child(n+4){color:#9ac5e4!important;background:#273c49!important}
html[data-theme="dark"] .code-helper,html[data-theme="dark"] .code-preview p,html[data-theme="dark"] .code-assembled,html[data-theme="dark"] .bar-value,html[data-theme="dark"] .chart-legend,html[data-theme="dark"] .client-indent{color:#b6bfca!important}
html[data-theme="dark"] .warning-box{background:#40371f!important;color:#f5dca0!important;border-color:#6b5931!important}
html[data-theme="dark"] [role="alert"]{background:#44282b!important;color:#ffb3b3!important;border-color:#88515a!important}
html[data-theme="dark"] .errorlist,html[data-theme="dark"] .user-error{color:#ffaaaa!important}
.profile-avatar-preview{margin-bottom:20px}.profile-account .account-name small{color:inherit;opacity:.8}form p:has(>input[type="file"]) .helptext{display:block;margin-top:8px}
html[data-theme="dark"] .button:not(.soft),html[data-theme="dark"] button:not(.theme-toggle-button):not([data-theme-toggle]):not(.soft){background-color:#34557e;color:#fff}
html[data-theme="dark"] .profile-account button:not(.theme-toggle-button){background:transparent;color:#9bb9dd}
#changelist .paginator .showall{display:none}
