html.embedded #header, html.embedded #nav-sidebar, html.embedded #toggle-nav-sidebar { display: none; }
html.embedded #content { padding: 22px; }
html[data-theme], html[data-theme=light], html[data-theme=dark], html {
  color-scheme: light;
  --primary: #245fbe; --secondary: #173653; --accent: #fff;
  --header-bg: #14233d; --breadcrumbs-bg: #eaf1fc; --breadcrumbs-fg: #28415f;
  --breadcrumbs-link-fg: #1757c1; --link-fg: #1757c1; --body-fg: #16253e;
  --body-bg: #f3f6fb; --body-quiet-color: #53647b; --body-loud-color: #16253e;
  --hairline-color: #dce4ee; --border-color: #c8d3df; --darkened-bg: #ebf1f9;
  --selected-bg: #edf4ff; --selected-row: #ecf3fd; --close-button-bg: #53647b;
  --button-bg: #1757c1; --default-button-bg: #134aa4;
}
body { font-family: Inter, system-ui, "PingFang SC", sans-serif; font-size: 14px; }
#content h1 { color: #16253e; font-size: 24px; font-weight: 650; }
#changelist .actions, .module, .submit-row, #toolbar, #changelist-filter { border-radius: 7px; }
#result_list td, #result_list th { padding-block: 12px; }
#result_list tbody tr { background: white; }
#result_list tbody tr:nth-child(even) { background: #f7faff; }
fieldset.module { background: white; border: 1px solid #dce4ee; }
input, select, textarea { border-radius: 5px; }
@media (max-width: 760px) { html.embedded #content { padding: 13px; } }

.return-source { outline: 2px solid #3d83f0; outline-offset: 3px; }
.named-action { width:auto !important; height:auto !important; padding:5px 9px !important; margin:3px !important; border:1px solid #bfd0e5; border-radius:5px; background:#f7faff !important; font-size:13px; white-space:nowrap; text-indent:0 !important; }
.named-action [hidden] { display:none !important; }
.related-widget-wrapper { display:flex; flex-wrap:wrap; gap:3px; align-items:center; }
.calendarbox .calendarnav-previous, .calendarbox .calendarnav-next { position:static; display:inline-block; font-size:12px; }

html[data-theme], html[data-theme=light], html[data-theme=dark], html {
  --body-bg:#f4f7fb; --body-fg:#172942; --body-loud-color:#172942; --link-fg:#1258c9;
  --button-bg:#1258c9; --default-button-bg:#1258c9; --primary:#1258c9; --header-bg:#142a46;
  --hairline-color:#e9edf3; --border-color:#c9d4e1; --button-hover-bg:#104cab; --default-button-hover-bg:#104cab;
}
html.embedded #content { padding:26px clamp(16px,3vw,56px); }
html.embedded .main > #nav-sidebar + .content,html.embedded .main.shifted > #nav-sidebar + .content { max-width:100%;width:100%; }
html.embedded .breadcrumbs { display:none; }
.change-list #changelist.filtered { min-height:0; }
#content h1 { margin:0 0 16px;font-size:clamp(23px,2.2vw,31px);letter-spacing:-.035em; }
#changelist { border:1px solid #dce4ed;border-radius:10px;overflow:hidden; }
#changelist .changelist-form-container { min-width:0;width:100%; }
#changelist.filtered .results,#changelist.filtered .paginator,#changelist.filtered #toolbar,#changelist.filtered .actions { margin-right:0 !important;width:auto; }
.unified-filters { display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0;padding:12px 14px;border-bottom:1px solid #e6e8ee;background:white; }
.unified-filters label { display:grid;gap:4px;font-size:12px;color:#697185; }
.unified-filters .search-field { flex:1;min-width:180px;max-width:360px; }
.unified-filters input,.unified-filters select { box-sizing:border-box;min-height:33px;border:1px solid #d8dbe5;background:white;color:#283044;border-radius:5px;padding:6px 9px;font:13px system-ui;max-width:220px; }
.unified-filters input { max-width:none;width:100%; }
.unified-filters .button { min-height:33px;padding:6px 14px;font-size:13px; }
.reset-filter { padding:7px 4px;font-size:12px; }
#changelist .actions { padding:8px 14px;background:#fafbfc;border:0; }
#result_list td,#result_list th { padding:10px 12px;font-size:13px; }
#result_list thead th { background:#f4f7fa;color:#53657a;font-size:12px; }
#result_list tbody tr:nth-child(even) { background:white; }
#result_list tbody tr:hover { background:#f3f8ff; }
.object-tools a,.object-tools a:link,.object-tools a:visited { border-radius:5px;background:#1258c9;padding:7px 12px;font-size:12px;background-image:none; }
.submit-row { border:0;border-top:1px solid #e6e8ee;background:transparent;padding:12px 0; }
fieldset.module { border:0;border-radius:0; }
.form-row { padding:10px 12px;border-bottom:1px solid #f0f1f5; }
.help { color:#7b8495;font-size:12px; }
@media(max-width:760px){html.embedded #content{padding:14px 12px;} .unified-filters .search-field{flex-basis:100%;max-width:none;} .unified-filters select{max-width:180px;}}

.unified-filters { align-items:center; gap:10px; padding:15px 16px; }
.unified-filters label { display:flex; align-items:center; gap:6px; }
.unified-filters .search-field { position:relative; }
.unified-filters .search-field input { padding-left:32px; }
.search-field::before { content:""; position:absolute; width:10px; height:10px; border:1.5px solid #73869c; border-radius:50%; left:11px; top:9px; }
.search-field::after { content:""; position:absolute; width:6px; height:1.5px; background:#73869c; transform:rotate(45deg); top:21px; left:20px; }
#changelist .actions { border-radius:0; border-bottom:1px solid #e9edf3; }
.change-form #content-main > form { background:white; border:1px solid #dce4ed; border-radius:10px; padding:14px 18px; box-sizing:border-box; }
fieldset.module h2, fieldset.module caption { background:#edf3fa; color:#233c5b; font-weight:650; }
.form-row input:not([type=checkbox]), .form-row select { min-height:32px; box-sizing:border-box; }
.object-tools { display:flex; flex-wrap:wrap; gap:6px; }
.object-tools li { margin:0; }
@media(min-width:768px) { #content > .object-tools { margin-top:-46px; } }
@media(max-width:680px) { .unified-filters label {flex-wrap:wrap;} .change-form #content-main > form {padding:6px;} }
