/* TopTel24 look for the Django admin: same font, colors, cards and pills as the site. */
@font-face { font-family: Vazirmatn; src: url("fonts/Vazirmatn-wght.f6d31671339d.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root, html[data-theme="light"] {
  --tt-surface: #fff; --tt-soft: #f9fafd; --tt-brand-soft: #e9eeff; --tt-danger: #c62f2a; --tt-danger-soft: #fde8e7;
  --tt-shadow: 0 1px 2px rgba(14, 20, 38,.04), 0 6px 20px rgba(14, 20, 38,.06); --tt-hero: linear-gradient(140deg, #070b1f 0%, #101a4d 55%, #2346e0 100%);
  --primary: #2f5bff; --secondary: #1d3fd6; --accent: #f5c46b; --primary-fg: #fff;
  --body-fg: #0e1426; --body-bg: #f4f6fb; --body-quiet-color: #626b80; --body-medium-color: #3c4558; --body-loud-color: #0e1426;
  --header-color: #e9eeff; --header-branding-color: #fff; --header-bg: #070b1f; --header-link-color: #fff;
  --breadcrumbs-fg: #626b80; --breadcrumbs-link-fg: #2f5bff; --breadcrumbs-bg: transparent;
  --link-fg: #2f5bff; --link-hover-color: #1d3fd6; --link-selected-fg: #1d3fd6;
  --hairline-color: #edf0f6; --border-color: #dde3ee; --darkened-bg: #f9fafd; --selected-bg: #e9eeff; --selected-row: #f3f6ff;
  --button-fg: #fff; --button-bg: #2f5bff; --button-hover-bg: #1d3fd6; --default-button-bg: #2f5bff; --default-button-hover-bg: #1d3fd6;
  --close-button-bg: #626b80; --object-tools-bg: #2f5bff; --object-tools-hover-bg: #1d3fd6; --message-success-bg: #e9eeff;
  --message-warning-bg: #fff6dd; --message-error-bg: #fde8e7;
  --font-family-primary: Vazirmatn, Tahoma, sans-serif;
}
html[data-theme="dark"] {
  --tt-surface: #111729; --tt-soft: #171e33; --tt-brand-soft: #18244d; --tt-danger-soft: #3a1715;
  --tt-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --tt-hero: linear-gradient(140deg, #050816 0%, #0c1640 60%, #1b2f80 100%);
  --primary: #7c9bff; --secondary: #1b2f80; --primary-fg: #050816; --body-fg: #eaf0ff; --body-bg: #070a14;
  --body-quiet-color: #a3adc4; --body-medium-color: #cdd5e6; --body-loud-color: #fff; --header-bg: #050816;
  --breadcrumbs-fg: #a3adc4; --breadcrumbs-link-fg: #a9bcff; --link-fg: #a9bcff; --link-hover-color: #d4dfff; --link-selected-fg: #d4dfff;
  --hairline-color: #1e2538; --border-color: #283149; --darkened-bg: #171e33; --selected-bg: #18244d; --selected-row: #141d38;
  --button-fg: #050816; --button-bg: #7c9bff; --button-hover-bg: #a9bcff; --default-button-bg: #7c9bff; --default-button-hover-bg: #a9bcff;
  --object-tools-bg: #7c9bff; --object-tools-hover-bg: #a9bcff; --message-success-bg: #18244d; --message-warning-bg: #3a2f0e; --message-error-bg: #3a1715;
}
body, input, select, textarea, button { font-family: var(--font-family-primary) !important; }
html { font-size: 15px; }
body { background: var(--body-bg); color: var(--body-fg); font-size: 13.5px; line-height: 1.6; }
a:link, a:visited { color: var(--link-fg); }
h1 { font-weight: 800; font-size: 1.45rem; color: var(--body-loud-color); margin: 4px 0 18px; }
h2 { font-weight: 700; }

/* header */
#header { background: var(--tt-hero); padding: 12px 28px; box-shadow: 0 8px 24px rgba(7, 11, 31,.15); border-radius: 0 0 22px 22px; align-items: center; }
#site-name a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #fff !important; }
.tt-logo { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: inline-grid; place-items: center; font-size: .85rem; }
#user-tools { text-transform: none; letter-spacing: 0; font-size: .85rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#user-tools strong { font-weight: 700; }
#user-tools a, #logout-form button { border: 0 !important; background: rgba(255,255,255,.14); color: #fff !important; border-radius: 999px; padding: 5px 12px;
  text-decoration: none; font-size: .82rem; text-transform: none; }
#user-tools a:hover, #logout-form button:hover { background: rgba(255,255,255,.26); }
#logout-form { display: inline-flex; }
.theme-toggle svg { fill: #fff; }
div.breadcrumbs { background: transparent; color: var(--breadcrumbs-fg); padding: 16px 28px 0; font-size: .85rem; }
div.breadcrumbs a { color: var(--breadcrumbs-link-fg); font-weight: 600; }
#content { padding: 16px 28px 40px; }
.main > #nav-sidebar + .content, .main.shifted > #nav-sidebar + .content { max-width: none; }

/* side navigation */
#nav-sidebar { background: transparent; border: 0; padding: 14px 12px 24px 0; flex: 0 0 260px; }
#nav-sidebar .module { background: var(--tt-surface); box-shadow: var(--tt-shadow); border-radius: 16px; margin-bottom: 12px; }
#nav-sidebar .module caption, #nav-sidebar .module caption a { background: none; color: var(--body-quiet-color) !important; font-size: .78rem; font-weight: 700; padding: 12px 16px 4px; }
#nav-sidebar th, #nav-sidebar td { border: 0; padding: 0; }
#nav-sidebar th a { display: block; padding: 7px 16px; border-radius: 10px; margin: 0 6px; color: var(--body-fg); font-weight: 600; font-size: .9rem; }
#nav-sidebar th a:hover { background: var(--tt-soft); }
#nav-sidebar .current-model { background: none; }
#nav-sidebar .current-model th a { background: var(--tt-brand-soft); color: var(--link-selected-fg); }
#nav-sidebar td { display: none; }
#nav-sidebar tr:last-child th a { margin-bottom: 8px; }
#nav-filter { border-radius: 12px; border: 1.5px solid var(--border-color); background: var(--tt-surface); padding: 9px 12px; margin: 0 0 12px; width: 100%; }
.toggle-nav-sidebar { background: transparent; border: 0; color: var(--body-quiet-color); }

/* cards */
.module, .inline-group, #changelist .changelist-form-container, .submit-row, .tt-card { background: var(--tt-surface); border-radius: 18px;
  box-shadow: var(--tt-shadow); border: 0; }
.module { overflow: hidden; margin-bottom: 18px; }
.module h2, .module caption, .inline-group h2, fieldset.module h2 { background: none; color: var(--body-loud-color); font-weight: 800; font-size: 1rem;
  padding: 16px 18px 6px; border: 0; text-transform: none; letter-spacing: 0; }
.module caption a { color: var(--body-loud-color); }
.module table, .module tr, .module th, .module td { background: transparent; }
.module td, .module th { border-bottom: 1px solid var(--hairline-color); }
.description, .help, .help p, div.help { color: var(--body-quiet-color); font-size: .8rem; }
fieldset.collapsed h2, details summary { color: var(--link-fg); }
.inline-group .tabular td.original p { color: var(--body-quiet-color); }

/* tables and change lists */
table thead th, .module thead th { background: transparent; color: var(--body-quiet-color); font-weight: 700; font-size: .78rem; border-bottom: 1px solid var(--border-color); padding: 8px 8px; }
thead th.sorted { background: transparent; }
thead th, thead th a, thead th a:link, thead th a:visited { color: var(--body-quiet-color); }
#changelist table thead th:first-child { width: 1%; }
#changelist table tbody td, #changelist table tbody th { padding: 8px 8px; vertical-align: middle; font-size: .9rem; max-width: 16em; overflow-wrap: anywhere; }
#changelist table thead th { white-space: normal; line-height: 1.35; max-width: 9em; }   /* long headings wrap, not widen the table */
#changelist table tbody th a { font-weight: 700; }
#changelist table tbody tr:hover { background: var(--selected-row); }
#changelist table tbody tr.selected { background: var(--selected-bg); }
#result_list tbody tr:last-child td, #result_list tbody tr:last-child th { border-bottom: 0; }
#changelist .changelist-form-container { overflow: hidden; }
#changelist #toolbar { background: transparent; border: 0; padding: 14px 16px 6px; margin: 0; }
#changelist #toolbar form input[type="text"] { min-width: 260px; }
#changelist .actions { background: transparent; border: 0; border-top: 1px solid var(--hairline-color); border-bottom: 1px solid var(--hairline-color); padding: 10px 16px; color: var(--body-quiet-color); }
#changelist .actions.selected { background: var(--tt-brand-soft); }
#changelist .actions select { min-width: 180px; }
.paginator { background: transparent; border: 0; padding: 14px 16px; color: var(--body-quiet-color); font-size: .85rem; }
.paginator a:link, .paginator a:visited, .paginator .this-page { border-radius: 999px; padding: 4px 10px; }
.paginator .this-page { background: var(--primary); color: var(--primary-fg); }
#changelist-search img, #searchbar + img { display: none; }
.object-tools { margin-top: 0; }
.object-tools a:link, .object-tools a:visited { border-radius: 999px; padding: 8px 16px; font-size: .85rem; font-weight: 700; text-transform: none; letter-spacing: 0;
  background: var(--primary); color: var(--primary-fg); }
.object-tools a:hover { background: var(--secondary); }
.object-tools a.addlink { background-image: none; padding-inline-start: 16px; }
.object-tools a.addlink::before { content: "+ "; }

/* forms */
input[type=text], input[type=number], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], select, textarea, .vTextField,
input[type=date], input[type=time], .vDateField, .vTimeField {
  border-radius: 12px; border: 1.5px solid var(--border-color); padding: 9px 12px; background: var(--tt-surface); color: var(--body-fg);
  font-size: .92rem; min-height: 42px; height: auto; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
select { padding-inline-end: 28px; }
textarea { min-height: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--tt-brand-soft); outline: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 17px; height: 17px; }
.aligned .form-row, form .form-row { padding: 14px 18px; border-bottom: 1px solid var(--hairline-color); }
fieldset.module .form-row:last-child { border-bottom: 0; }
.aligned .flex-container { flex-direction: column; align-items: stretch; gap: 6px; }
.aligned .flex-container.checkbox-row { flex-direction: row; align-items: center; gap: 8px; }
.aligned label, .aligned label + p, .aligned label + div.readonly { width: auto; min-width: 0; padding: 0; float: none; font-weight: 700; color: var(--body-medium-color); font-size: .85rem; }
.aligned label:not(.vCheckboxLabel):after { content: ""; }
.aligned label.required::after { content: " *"; color: var(--tt-danger); }
.aligned .vCheckboxLabel { font-weight: 600; color: var(--body-fg); }
.aligned div.help, .aligned p.help, form .aligned div.help, form .aligned p.help { margin: 4px 0 0 !important; padding: 0 !important; }
.aligned .vTextField, .aligned textarea, .aligned select, .aligned .vURLField, .aligned input[type=email] { width: 100%; max-width: 560px; }
.aligned input[type=number] { max-width: 200px; }
.aligned p.datetime { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.aligned p.datetime label { font-weight: 500; color: var(--body-quiet-color); }
.datetimeshortcuts a { font-weight: 600; }
.timezonewarning { color: var(--body-quiet-color); font-size: .75rem; }
.readonly { color: var(--body-fg); }
.related-widget-wrapper { gap: 6px; align-items: center; }
.related-widget-wrapper-link { opacity: .45; }
.related-widget-wrapper-link:hover { opacity: 1; }
.related-widget-wrapper-link img { width: 14px; height: 14px; }
input[type=file] { font-size: .85rem; }
input[type=file]::file-selector-button { border: 0; border-radius: 999px; background: var(--tt-brand-soft); color: var(--link-selected-fg); padding: 7px 14px; font: inherit; font-weight: 700; margin-inline-end: 10px; cursor: pointer; }
p.file-upload { margin: 0; }
.errornote { border: 0; border-radius: 14px; background: var(--tt-danger-soft); color: var(--tt-danger); padding: 12px 16px; font-weight: 600; }
ul.errorlist li { border-radius: 10px; background: var(--tt-danger-soft); color: var(--tt-danger); font-weight: 600; font-size: .82rem; padding: 6px 12px; }
.errors input, .errors select, .errors textarea { border-color: var(--tt-danger) !important; }
.inline-group { overflow: hidden; margin-bottom: 18px; }
.inline-group .tabular tr.add-row td, .inline-group div.add-row { background: transparent; border: 0; padding: 12px 18px; }
.inline-group .tabular td { padding: 10px 8px; }
.inline-group .tabular td input, .inline-group .tabular td select { width: 100%; }
.inline-related h3 { background: var(--tt-soft); border: 0; color: var(--body-medium-color); padding: 8px 18px; }

/* buttons */
.button, input[type=submit], input[type=button], .submit-row input, a.button, button.button {
  border-radius: 999px !important; font-weight: 700; padding: 10px 20px; border: 0; background: var(--tt-brand-soft); color: var(--link-selected-fg);
  font-size: .9rem; text-transform: none; letter-spacing: 0; cursor: pointer; min-height: 0; height: auto; }
.button:hover, input[type=submit]:hover, input[type=button]:hover { background: var(--selected-row); filter: brightness(.97); }
.button.default, input[type=submit].default, .submit-row input.default { background: var(--primary); color: var(--primary-fg); padding: 10px 28px; }
.button.default:hover, input[type=submit].default:hover { background: var(--secondary); color: #fff; filter: none; }
#changelist #toolbar form input[type=submit], #changelist .actions .button { padding: 9px 18px; }
.submit-row { position: sticky; bottom: 12px; z-index: 5; padding: 12px 16px; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.submit-row a.deletelink, .submit-row a.deletelink:link { margin-inline-start: auto; background: transparent; color: var(--tt-danger); border-radius: 999px; padding: 10px 18px; height: auto; font-weight: 700; }
.submit-row a.deletelink:hover { background: var(--tt-danger-soft); color: var(--tt-danger); }
.submit-row a.closelink { border-radius: 999px; }
.delete-confirmation form input[type=submit] { background: var(--tt-danger); color: #fff; }
.delete-confirmation .cancel-link { border-radius: 999px; padding: 10px 20px; }

/* messages */
ul.messagelist li { border-radius: 14px; margin: 0 0 10px; padding: 12px 16px 12px 16px; background-image: none !important; font-weight: 600; font-size: .9rem; color: var(--body-fg); }
ul.messagelist li.success { background: var(--message-success-bg); }
ul.messagelist li.warning { background: var(--message-warning-bg); }
ul.messagelist li.error { background: var(--message-error-bg); color: var(--tt-danger); }

/* login */
body.login { background: var(--body-bg); }
.login #container { background: var(--tt-surface); border-radius: 22px; box-shadow: var(--tt-shadow); border: 0; overflow: hidden; margin-top: 10vh; max-width: 400px; }
.login #header { border-radius: 0; padding: 22px 26px; }
.login #content { padding: 22px 26px 26px; }
.login .form-row { padding: 0 0 14px; border: 0; }
.login .form-row label { display: block; font-weight: 700; padding: 0 0 6px; font-size: .85rem; color: var(--body-medium-color); }
.login .form-row #id_username, .login .form-row #id_password { width: 100%; padding: 11px 12px; }
.login .submit-row { position: static; box-shadow: none; padding: 6px 0 0; background: none; }
.login .submit-row input { width: 100%; padding: 12px; }

/* history / delete / small pages */
#change-history table, .delete-confirmation ul { background: var(--tt-surface); border-radius: 18px; box-shadow: var(--tt-shadow); }
.delete-confirmation ul { padding: 16px 36px; }

/* phones */
@media (max-width: 767px) {
  #header { padding: 12px 16px; border-radius: 0 0 18px 18px; }
  #user-tools { justify-content: flex-start; }
  #content, div.breadcrumbs { padding-left: 16px; padding-right: 16px; }
  .aligned .form-row, form .form-row { padding: 12px 14px; }
  .submit-row { bottom: 8px; }
  .submit-row input, .submit-row a.deletelink { flex: 1 1 auto; text-align: center; }
  #changelist #toolbar form input[type="text"] { min-width: 0; width: 100%; }
}

/* home dashboard */
.dashboard #content { max-width: 1280px; }
.tt-dash { margin-bottom: 26px; }
.tt-h { font-size: 1rem; font-weight: 800; margin: 22px 2px 10px; color: var(--body-loud-color); background: none; padding: 0; }
.tt-alert { background: #fff6dd; color: #6d4c00; border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.tt-todo, .tt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tt-todo a, .tt-stats div { background: var(--darkened-bg); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(14, 20, 38,.04), 0 6px 20px rgba(14, 20, 38,.06);
  display: flex; flex-direction: column; gap: 2px; color: var(--body-fg); text-decoration: none; border: 1.5px solid transparent; }
.tt-todo a b { font-size: 1.9rem; font-weight: 800; line-height: 1.2; color: var(--body-quiet-color); }
.tt-todo a.hot { border-color: var(--primary); }
.tt-todo a.hot b { color: var(--primary); }
.tt-todo a:hover { border-color: var(--primary); }
.tt-stats span { color: var(--body-quiet-color); font-size: .85rem; }
.tt-stats b { font-size: 1.45rem; font-weight: 800; }
.tt-stats small { color: var(--body-quiet-color); font-size: .8rem; }
.tt-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-links a { background: var(--selected-bg); color: var(--link-selected-fg); border-radius: 999px; padding: 8px 16px; font-weight: 700; text-decoration: none; }
@media (max-width: 767px) { #header, #content, div.breadcrumbs { padding-left: 16px; padding-right: 16px; } .tt-todo, .tt-stats { grid-template-columns: 1fr 1fr; } }
.dashboard #content-related { display: none; }
.dashboard #content.colMS { margin-left: 0; margin-right: 0; }
.dashboard #content-main { float: none; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.dashboard #content-main .module { margin: 0; }
.dashboard .tt-dash { grid-column: 1 / -1; }
/* layout guards: wide tables scroll inside their card instead of widening the page */
.main > .content, #content-main, #changelist .changelist-form-container { min-width: 0; }
#changelist .results { overflow-x: auto; }
#content-main > form > div > fieldset.module, .inline-group { width: 100%; box-sizing: border-box; }
.aligned .vCheckboxLabel, .aligned .checkbox-row label { width: auto !important; white-space: nowrap; }
.inline-group .tabular td input:not([type=checkbox]), .inline-group .tabular td select { min-height: 38px; padding: 6px 10px; }
.inline-group .tabular td.original p { font-size: .72rem; }
.tt-who { font-weight: 700; opacity: .9; margin-inline-end: 4px; }
fieldset { min-width: 0; }
.inline-group .tabular { overflow-x: auto; }
@media (max-width: 767px) {
  .inline-group .tabular table { min-width: 680px; }
  #header { flex-direction: row; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
}
@media (max-width: 767px) {
  .aligned .form-row > div, .aligned .form-row .flex-container { max-width: 100% !important; width: 100%; }
  .aligned .vTextField, .aligned textarea, .aligned select, .aligned input { max-width: 100% !important; box-sizing: border-box; }
  #changelist #toolbar form, #changelist-search > div { display: flex; gap: 8px; max-width: 100%; }
  #changelist #toolbar form #searchbar { flex: 1; width: auto; min-width: 0; }
  #changelist .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  #changelist .actions label, #changelist .actions select { max-width: 100%; }
}
@media (max-width: 767px) { #changelist #toolbar form #searchbar { width: 0 !important; flex: 1 1 auto; } #changelist #toolbar { padding: 12px; } }
.dashboard #content { width: auto; max-width: 1400px; }
.module caption a.section:link, .module caption a.section:visited, .module h2 a.section { color: var(--body-loud-color); }
.dashboard .module td { white-space: nowrap; }
.aligned input:not([type=checkbox]):not([type=radio]):not([type=file]):not(.vDateField):not(.vTimeField):not([type=number]) { width: 100%; max-width: 560px; }
body.login #container { border-radius: 22px; overflow: hidden; }
body.login .submit-row input { background: var(--primary); color: var(--primary-fg); }
body.login #content { background: var(--tt-surface); }
thead th, #changelist table thead th { text-transform: none; letter-spacing: 0; }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], input[type=date], input[type=time], select, .vTextField {
  height: 44px; line-height: 1.4; padding-top: 0; padding-bottom: 0; }
#changelist table td input:not([type=checkbox]), #changelist table td select { height: 36px; min-height: 36px; width: 120px; padding: 0 10px; border-radius: 10px; }
#changelist table tbody th, #changelist table tbody td { white-space: nowrap; }
#nav-sidebar { flex-basis: 220px; width: 220px; }
#changelist table tbody td { white-space: normal; }
#changelist table tbody td:has(input), #changelist table tbody td:has(select) { white-space: nowrap; }
#changelist table td input:not([type=checkbox]), #changelist table td select { width: 110px; }
#changelist.filtered, #changelist { display: flex; flex-direction: column; }
#changelist.module { background: transparent; box-shadow: none; overflow: visible; }
#content-main > .object-tools, #content .object-tools { float: none; display: flex; justify-content: flex-end; margin: -58px 0 22px; padding: 0; }
@media (max-width: 1024px) { #content-main > .object-tools, #content .object-tools { margin: 0 0 14px; justify-content: flex-start; } }
#changelist, #changelist > .changelist-form-container { max-width: 100%; min-width: 0; width: 100%; box-sizing: border-box; }
.inline-group .tabular td input[type=number] { width: 80px; }
#content > h2 { margin: 0 0 14px; font-size: 1rem; color: var(--body-quiet-color); }

/* Wholesaler lists: chip links, mini tables, and a price list next to the rows read from it */
a.tt-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--tt-brand-soft); color: var(--link-fg); font-weight: 600; white-space: nowrap; }
img.tt-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-color); }
table.tt-mini { border-collapse: collapse; width: 100%; font-size: .85rem; }
table.tt-mini th, table.tt-mini td { padding: 6px 8px; border-bottom: 1px solid var(--hairline-color); text-align: right; vertical-align: top; }
table.tt-mini th { color: var(--body-quiet-color); font-weight: 600; background: var(--tt-soft); }
table.tt-mini tr.k-ok td:first-child { color: var(--primary); font-weight: 700; }
table.tt-mini tr.k-review td:first-child { color: #b7791f; font-weight: 700; }
table.tt-mini tr.k-new td:first-child { color: var(--tt-danger); font-weight: 700; }
.tt-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; width: 100%; }
.tt-read-img { position: sticky; top: 12px; }
.tt-read-img img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-color); }
.form-row.field-what_was_read .readonly, .form-row.field-recent_lists .readonly { width: 100%; margin: 0; }
@media (max-width: 900px) { .tt-read { grid-template-columns: 1fr; } .tt-read-img { position: static; } }
a.tt-chip.tt-up { background: var(--primary); color: var(--primary-fg); }
.tt-upload p { padding: 0 16px; line-height: 1.9; }
.tt-drop { display: grid; place-items: center; gap: 8px; margin: 8px 16px; padding: 28px 16px; border: 2px dashed var(--border-color);
           border-radius: 16px; background: var(--tt-soft); cursor: pointer; text-align: center; }
.tt-drop span { color: var(--body-quiet-color); font-weight: 600; }
.tt-upload form > p { padding: 0 16px; }

.tt-wait { margin: 10px 16px; padding: 10px 12px; border-radius: 10px; background: #fff7e0; color: #7a5a00; }
html[data-theme="dark"] .tt-wait { background: #3a3110; color: #f2d98a; }
.tt-edit { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 16px; align-items: start; margin-top: 12px; }
.tt-edit-img { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.tt-edit-img img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-color); }
.tt-edit-rows { min-width: 0; overflow-x: auto; }
.tt-edit-rows .inline-group { margin: 0; }
.tt-edit-rows td.field-raw_text p { direction: ltr; font-size: 12px; color: var(--body-quiet-color); max-width: 16em; }
@media (max-width: 900px) { .tt-edit { grid-template-columns: 1fr; } .tt-edit-img { position: static; max-height: none; } }
.tt-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.tt-edit-rows table { min-width: 980px; }
.tt-edit-rows .select2-container { min-width: 15em !important; }
.tt-edit-rows td.field-status select { min-width: 7.5em; }
.tt-edit-rows td.field-version input { width: 6em; }
.tt-edit-rows td.field-guarantee input { width: 8em; }
.tt-edit-rows td.field-colors_text input { width: 8em; }
.tt-edit-rows td.field-cash_price input { width: 8.5em !important; }
@media (max-width: 900px) { .tt-edit { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .tt-edit { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); } }
.tt-edit-rows table { min-width: 900px; }
.tt-edit-rows td input[type=text], .tt-edit-rows td input[type=number] { padding: 6px 8px; min-height: 0; }
.tt-edit-rows td.field-raw_text p { max-width: 10em; }
/* side by side only on wide screens; otherwise the picture sits above the rows at a readable size */
.tt-edit { grid-template-columns: 1fr; }
.tt-edit-img { position: static; max-height: 75vh; }
@media (min-width: 1600px) {
  .tt-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .tt-edit-img { position: sticky; max-height: calc(100vh - 24px); }
}
.tt-edit-rows table { min-width: 0; width: 100%; }
.tt-edit-rows td input[type=text], .tt-edit-rows td input[type=number], .tt-edit-rows td select { height: 34px; padding: 4px 8px; }
.tt-edit-rows td input[type=text], .tt-edit-rows td input[type=number], .tt-edit-rows td select { height: 34px !important; min-height: 0 !important; padding: 4px 8px !important; }
.tt-edit-rows td.field-version input { width: 4.5em !important; }
.tt-edit-rows td.field-guarantee input { width: 6em !important; }
.tt-edit-rows td.field-colors_text input { width: 6.5em !important; }
.tt-edit-rows td.field-cash_price input { width: 7.5em !important; }
.tt-edit-rows td.field-status select { min-width: 6.5em; }
.tt-edit-rows .select2-container { min-width: 13em !important; }
.tt-edit-rows .select2-container { min-width: 15em !important; }
/* dashboard: greeting, quick actions and the menu grouped by priority */
.tt-hello { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.tt-hello h1 { margin: 0; font-size: 1.6rem; font-weight: 900; }
.tt-hello p { margin: 4px 0 0; color: var(--body-quiet-color); }
.tt-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-quick a { display: inline-flex; gap: 6px; align-items: center; padding: 9px 16px; border-radius: 12px; font-weight: 700; text-decoration: none;
              background: var(--darkened-bg); border: 1px solid var(--hairline-color); color: var(--body-fg); }
.tt-quick a.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.tt-quick .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.tt-todo a.done { opacity: .55; box-shadow: none; }
.tt-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tt-group { background: var(--darkened-bg); border-radius: 18px; padding: 16px 18px; border: 1px solid var(--hairline-color);
            box-shadow: 0 1px 2px rgba(14, 20, 38,.04), 0 6px 20px rgba(14, 20, 38,.05); }
.tt-group header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.tt-group h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--body-loud-color); background: none; padding: 0; text-transform: none; }
.tt-group header p { margin: 2px 0 0; color: var(--body-quiet-color); font-size: .8rem; line-height: 1.6; }
.tt-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--selected-bg); color: var(--primary); display: grid; place-items: center; }
.tt-ico .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.tt-group ul { list-style: none; margin: 0; padding: 0; }
.tt-group li { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-top: 1px solid var(--hairline-color); }
.tt-group li > a:first-child { flex: 1; font-weight: 600; text-decoration: none; }
.tt-badge { background: var(--primary); color: var(--primary-fg); border-radius: 999px; padding: 1px 9px; font-size: .78rem; }
.tt-add { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; text-decoration: none; font-weight: 800;
          color: var(--body-quiet-color); border: 1px solid var(--hairline-color); }
.tt-add:hover { color: var(--primary); border-color: var(--primary); }
.dashboard #content { max-width: 1400px; }
.tt-dash .i { stroke-linecap: round; stroke-linejoin: round; }
/* wholesaler page: summary on top, short fields side by side */
.tt-summary .form-row { padding: 6px 12px; } .tt-summary .readonly { margin: 0; width: 100%; }
.tt-summary .form-row label { display: none; }
.tt-sum { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.tt-sum b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--body-loud-color); }
.tt-sum span { color: var(--body-quiet-color); font-size: .8rem; }
.tt-sum-act { margin-inline-start: auto; display: flex; gap: 8px; }
.tt-compact .form-row { padding-top: 6px; padding-bottom: 6px; }
.tt-compact .fieldBox { margin-inline-end: 24px; }
.tt-compact .flex-container.form-multiline { gap: 0 16px; }
.tt-compact .form-multiline { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; width: 100%; }
.tt-compact .form-multiline > .fieldBox { width: auto !important; margin: 0 !important; min-width: 0; }
.tt-compact .form-multiline input[type=text], .tt-compact .form-multiline select, .tt-compact .form-multiline input[type=number],
.tt-compact .form-multiline input[type=tel] { width: 100% !important; max-width: none; }
.tt-compact .form-row > div { width: 100%; }
.tt-compact textarea { min-height: 64px; height: 64px; }
@media (max-width: 767px) { .tt-compact .form-multiline { grid-template-columns: 1fr; } }
.tt-logo { overflow: hidden; }
.tt-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* «بررسی و اصلاح»: a wholesaler's newest list beside its rows; compact, work-first */
.tt-check #content { max-width: none; padding-top: 8px; }
.tt-check .ck { font-size: 13px; }
.ck-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between;
           background: var(--tt-surface); border: 1px solid var(--hairline-color); border-radius: 12px; padding: 8px 14px; margin-bottom: 10px; }
.ck-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.ck-head h1 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.ck-head h1 small { color: var(--body-quiet-color); font-size: .8rem; font-weight: 600; }
.ck-meta { color: var(--body-quiet-color); font-size: .8rem; }
.ck-note { flex-basis: 100%; margin: 0; font-size: .78rem; color: #a15c00; }
.ck-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-links .tt-chip { font-size: .8rem; padding: 3px 10px; }
.ck-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; }
.ck-badge.warn { background: #fff1c7; color: #6d4c00; } .ck-badge.ok { background: var(--selected-bg); color: var(--primary); }

.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
@media (min-width: 1000px) { .ck-grid { grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr); } }
.ck-pics { position: sticky; top: 6px; background: var(--tt-surface); border: 1px solid var(--hairline-color); border-radius: 12px; padding: 8px; }
.ck-zoom { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: .8rem; }
.ck-zoom button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--hairline-color); background: var(--body-bg); font-size: 1rem; line-height: 1; cursor: pointer; color: var(--body-fg); }
.ck-zoom small { color: var(--body-quiet-color); margin-inline-start: auto; font-size: .72rem; }
.ck-scroll { position: relative; overflow: auto; max-height: calc(100vh - 130px); direction: ltr; }
.ck-pic { position: relative; width: 100%; margin-bottom: 8px; }
.ck-pic img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ck-mark { position: absolute; left: 0; right: 0; background: rgba(255, 196, 0, .28); border: 2px solid #f0a500; border-radius: 4px; pointer-events: none; }
.ck-open { display: inline-block; margin-top: 2px; font-size: .72rem; direction: rtl; }

.ck-work { background: var(--tt-surface); border: 1px solid var(--hairline-color); border-radius: 12px; min-width: 0; }
.ck-tabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border-bottom: 1px solid var(--hairline-color);
           position: sticky; top: 0; z-index: 3; background: var(--tt-surface); border-radius: 12px 12px 0 0; }
.ck-tabs button { border: 0; background: transparent; color: var(--body-quiet-color); font: inherit; font-size: .82rem; font-weight: 700;
                  padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.ck-tabs button b { display: inline-block; min-width: 1.4em; padding: 0 5px; margin-inline-start: 4px; border-radius: 999px; background: var(--darkened-bg); font-size: .75rem; }
.ck-tabs button[aria-selected=true] { background: var(--selected-bg); color: var(--primary); }
.ck-tabs button.warn b { background: #fff1c7; color: #6d4c00; }
.ck-find { margin-inline-start: auto; width: 13em; height: 28px !important; min-height: 0 !important; padding: 2px 10px !important; font-size: .8rem !important; border-radius: 8px; }
.ck-sec { padding: 4px 8px 8px; }
.ck-help { margin: 4px 2px 6px; font-size: .75rem; color: var(--body-quiet-color); line-height: 1.7; }
.ck-none { padding: 16px; text-align: center; color: var(--body-quiet-color); }

.ck-table { width: 100%; border-collapse: collapse; }
.ck-table th { text-align: right; font-size: .72rem; font-weight: 700; color: var(--body-quiet-color); padding: 4px; border-bottom: 1px solid var(--hairline-color); background: none; white-space: nowrap; }
.ck-table td { padding: 3px 4px; border-bottom: 1px solid var(--hairline-color); vertical-align: top; font-size: 13px; }
.ck-table td input:not([type=checkbox]), .ck-table td select { height: 28px !important; min-height: 28px !important; padding: 1px 7px !important;
  line-height: 1.2 !important; font-size: 12.5px !important; border-radius: 7px; box-sizing: border-box; }
.ck-table input[type=checkbox] { width: 14px; height: 14px; }
.ck-model { width: 40%; }
.ck-model input, .ck-pick { width: 100%; min-width: 10em; }
.ck-table td small { display: block; color: var(--body-quiet-color); font-size: 11px; margin-top: 2px; line-height: 1.4;
                     white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28em; }
.ck-table td small .ck-flag { color: #a15c00; font-weight: 600; }
.ck-colors input { width: 7em; }
.ck-price input { width: 6.5em; }
.ck-hint { color: var(--primary) !important; font-weight: 700; }
.ck-chk, .ck-del { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--body-quiet-color); margin: 2px 0 0; white-space: nowrap; cursor: pointer; }
.ck-del { margin-top: 6px; }
.ck-act select { width: 5.5em; }
.ck-more summary { cursor: pointer; list-style: none; font-size: 12px; color: var(--body-fg); padding: 5px 7px; border: 1px solid var(--hairline-color);
                   border-radius: 7px; max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-more summary::-webkit-details-marker { display: none; }
.ck-more summary::after { content: " ▾"; color: var(--body-quiet-color); }
.ck-more[open] summary { border-color: var(--primary); }
.ck-more > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; width: 14em; }
.ck-more > div > * { width: 100% !important; min-width: 0; }
.ck-row.on td { background: var(--selected-bg); }
.ck-row.ck-off td { opacity: .55; }
.ck-new td { background: var(--darkened-bg); }
.ck-sub td { font-size: .75rem; color: var(--body-quiet-color); padding-top: 10px; border-bottom: 0; }
.ck-empty { color: var(--body-quiet-color); text-align: center; padding: 14px !important; }

.ck-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 12px;
          background: var(--tt-surface); border: 1px solid var(--hairline-color); border-radius: 12px; box-shadow: 0 -4px 14px rgba(14, 20, 38,.08); }
.ck-bar .button { padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: .85rem; }
.ck-bar .ck-reject { background: transparent; color: #c62f2a; border: 1px solid #c62f2a; margin-inline-start: auto; }
.ck-bar .ck-help { margin: 0; }
@media (max-width: 767px) {
  .ck-find { width: 100%; margin: 0; }
  .ck-scroll { max-height: 45vh; }
  .ck-pics { position: static; }
  .ck-bar .ck-help { display: none; }
  .ck-bar { padding: 6px 8px; }
  .ck-table thead { display: none; }
  .ck-table tr.ck-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid var(--hairline-color); }
  .ck-table tr.ck-row td { border: 0; padding: 0; }
  .ck-model { width: auto; grid-column: 1 / -1; }
}
/* wholesaler page: details and sales team in the main column, a narrow side column with the summary,
   recent lists and advanced settings (templates/admin/prices/wholesaler/change_form.html) */
.tt-cols { display: grid; gap: 12px; }
@media (min-width: 1000px) {
  .tt-cols { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
  .tt-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .tt-aside { grid-column: 2; grid-row: 1; position: sticky; top: 8px; }
}
.tt-cols fieldset.module { margin: 0 0 12px; }
.tt-aside .tt-summary .form-row { padding: 10px 12px; }
.tt-aside .tt-sum { flex-direction: column; align-items: stretch; gap: 8px; }
.tt-aside .tt-sum > div:not(.tt-sum-act) { display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--hairline-color); }
.tt-aside .tt-sum b { font-size: .92rem; display: inline; }
.tt-aside .tt-sum-act { margin: 4px 0 0; flex-direction: column; }
.tt-aside .tt-sum-act .tt-chip { display: block; text-align: center; padding: 7px 10px; border-radius: 10px; }
.tt-lists .form-row { padding: 4px 8px !important; }
.tt-lists .form-row label, .tt-lists .readonly { margin: 0 !important; width: 100% !important; }
.tt-lists .form-row > div > div > label { display: none; }
ul.tt-lists { list-style: none; margin: 0; padding: 0; }
ul.tt-lists li { border-top: 1px solid var(--hairline-color); padding: 0; }
ul.tt-lists li:first-child { border-top: 0; }
ul.tt-lists a { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 6px 4px; border-radius: 8px; text-decoration: none; color: var(--body-fg); }
ul.tt-lists a:hover { background: var(--darkened-bg); }
ul.tt-lists b { font-weight: 700; direction: ltr; font-size: .82rem; }
ul.tt-lists small { grid-column: 1 / -1; color: var(--body-quiet-color); font-size: .74rem; }
.tt-st { justify-self: end; font-size: .74rem; padding: 0 7px; border-radius: 999px; background: var(--darkened-bg); color: var(--body-quiet-color); }
.tt-st-published { background: var(--selected-bg); color: var(--primary); }
.tt-st-held, .tt-st-queued { background: #fff1c7; color: #6d4c00; }
.tt-st-unreadable, .tt-st-rejected { background: #fde2e1; color: #a12622; }
.model-wholesaler.change-form .tt-compact .form-row { padding-top: 4px; padding-bottom: 4px; }
.model-wholesaler.change-form .tt-compact label { font-size: .8rem; margin-bottom: 2px; }
.model-wholesaler.change-form .tt-compact .help, .model-wholesaler.change-form .tt-compact .help p { font-size: .72rem; margin-top: 2px; }
.model-wholesaler.change-form .tt-compact textarea { min-height: 56px; height: 56px; }
.tt-alert.tt-alert-bad { background: #fde2e1; color: #8f1d1a; border-color: #f3a7a3; font-weight: 700; }
/* one price list's page (prices/check.py list_view): published rows first, the waiting ones below */
.ck-list { display: flex; flex-direction: column; }
.ck-list .ck-tabs { order: -3; }
.ck-list .ck-sec[hidden] { display: none; }
.ck-sec-h { margin: 6px 2px 2px; font-size: .9rem; font-weight: 800; color: var(--body-loud-color); background: none; padding: 0; text-transform: none; }
.ck-sec-h b, .ck-wait-h b { display: inline-block; min-width: 1.4em; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px;
                             background: var(--darkened-bg); font-size: .75rem; text-align: center; }
.ck-main-h { font-size: .95rem; }
.ck-wait-h { margin: 6px 0 0; padding: 8px 10px; font-size: .9rem; font-weight: 800; color: #6d4c00; background: #fff6dd;
             border-top: 1px solid var(--hairline-color); text-transform: none; }
html[data-theme="dark"] .ck-wait-h { background: #3a2f0e; color: #f5d57e; }
.ck-inline { display: inline; margin: 0; }
.ck-inline .tt-chip { border: 0; cursor: pointer; font: inherit; font-size: .8rem; padding: 3px 10px; }
.ck-inline .tt-chip { display: inline-block; border-radius: 999px; background: var(--tt-brand-soft); color: var(--link-fg); font-weight: 600; white-space: nowrap; }
/* the rows get the room: a narrower picture column (it zooms), slimmer fields, and a table that still
   doesn't fit scrolls inside its own box, never the page */
@media (min-width: 1000px) { .ck-grid { grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr); } }
.ck-work { overflow-x: auto; }
.ck-model input, .ck-pick { min-width: 8em; }
.ck-more summary { max-width: 8.5em; }

/* filters: a bar of buttons above the table, each opening its options (templates/admin/filter.html).
   Written as #changelist #changelist-filter: Django's changelists.css loads after this file with #changelist-filter rules. */
#changelist.filtered, #changelist { display: flex; flex-direction: column; }
#changelist #changelist-filter { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; padding: 0;
                     background: none; box-shadow: none; border: 0; overflow: visible; width: auto; flex: none; border-radius: 0; }
#changelist #changelist-filter > h2 { margin: 0; padding: 0 2px; background: none; border: 0; font-size: .78rem; font-weight: 700; letter-spacing: 0;
            color: var(--body-quiet-color); text-transform: none; }
#changelist #changelist-filter #changelist-filter-extra-actions { display: contents; }
#changelist #changelist-filter #changelist-filter-extra-actions h3 { margin: 0; padding: 0; font-size: .78rem; }
#changelist #changelist-filter #changelist-filter-extra-actions a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #fde2e1; color: #8f1d1a !important; font-weight: 700; }
#changelist #changelist-filter #changelist-filter-extra-actions .viewlink, #changelist #changelist-filter #changelist-filter-extra-actions .hidelink { background: var(--tt-soft); color: var(--body-quiet-color) !important; font-weight: 600; }
#changelist #changelist-filter details.tt-f { position: relative; }
#changelist #changelist-filter details.tt-f > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px;
                border: 1px solid var(--border-color); border-radius: 999px; background: var(--tt-surface); font-size: .8rem; font-weight: 600;
                color: var(--body-medium-color); white-space: nowrap; user-select: none; }
#changelist #changelist-filter details.tt-f > summary::-webkit-details-marker { display: none; }
#changelist #changelist-filter details.tt-f > summary::before { content: none; }
#changelist #changelist-filter details.tt-f > summary::after { content: "▾"; font-size: .7rem; color: var(--body-quiet-color); }
#changelist #changelist-filter details.tt-f > summary:hover { border-color: var(--primary); }
#changelist #changelist-filter details.tt-f > summary > * { display: inline; }
#changelist #changelist-filter details.tt-f > summary b { font-weight: 800; color: var(--primary); max-width: 12em; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
#changelist #changelist-filter details.tt-f > summary b::before { content: ": "; color: var(--body-quiet-color); font-weight: 600; }
#changelist #changelist-filter details.tt-f.on > summary { background: var(--tt-brand-soft); border-color: var(--primary); }
#changelist #changelist-filter details.tt-f[open] > summary { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tt-brand-soft); }
#changelist #changelist-filter details.tt-f ul { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline-start: 0; min-width: 190px; max-width: 300px; max-height: 320px;
           overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--tt-surface); border: 1px solid var(--border-color);
           border-radius: 12px; box-shadow: 0 12px 32px rgba(14, 20, 38, .16); display: block; }
#changelist #changelist-filter details.tt-f li { margin: 0; padding: 0; list-style: none; border: 0; }
#changelist #changelist-filter details.tt-f li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: .82rem; color: var(--body-fg) !important; white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; background: none; }
#changelist #changelist-filter details.tt-f li a:hover { background: var(--tt-soft); }
#changelist #changelist-filter details.tt-f li.selected a { background: var(--tt-brand-soft); color: var(--primary) !important; font-weight: 800; }
#changelist #changelist-filter details.tt-f li.selected a::before { content: "✓ "; }
@media (max-width: 767px) { #changelist #changelist-filter details.tt-f ul { position: fixed; inset: auto 12px 12px 12px; max-width: none; max-height: 60vh; } }
.b24 { display: inline-block; margin-inline-start: 2px; font-size: .68em; font-weight: 900; letter-spacing: -.02em; line-height: 1;
       vertical-align: .62em; background: linear-gradient(135deg, #a9c8ff 0%, #ffffff 55%, #7fa6ff 100%);
       -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(127, 166, 255, .45)); }
.brand-name { display: inline-flex; align-items: flex-start; white-space: nowrap; }
.brand-name .b24 { vertical-align: 0; margin-top: -.2em; }

/* review queue and new products queue: one compact line per row, edited in place */
.model-reviewitem #result_list td, .model-newproductitem #result_list td { vertical-align: middle; padding: 8px 10px; }
.model-reviewitem #result_list td.field-row, .model-newproductitem #result_list td.field-row { max-width: 340px; }
.rq-raw { display: block; max-width: 340px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
          font-size: .8rem; color: var(--body-quiet-color); text-align: left; }
.rq-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rq-flag { background: #fff4e5; color: #8a4b00; border-radius: 999px; padding: 1px 9px; font-size: .72rem; line-height: 1.6; }
.rq-when { display: block; color: var(--body-quiet-color); font-size: .72rem; margin-top: 2px; }
.rq-st { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .74rem; white-space: nowrap;
         background: var(--darkened-bg); color: var(--body-quiet-color); }
.rq-waiting { background: #fff4e5; color: #8a4b00; }
.rq-held { background: #e8f0ff; color: #1d4fd7; }
.rq-approved, .rq-fixed, .rq-mapped { background: #e6f6ec; color: #17693a; }
#changelist #result_list td.field-cash_price input, #changelist #result_list td.field-credit_price input {
    width: 9em; direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }
#changelist #result_list td.field-model_text input { width: 13em; direction: ltr; text-align: left; }
#changelist #result_list input.rq-num { width: 4.2em; direction: ltr; text-align: center; }
.model-reviewitem td.field-variant .select2-container, .model-newproductitem td.field-product .select2-container { min-width: 220px; }
html[data-theme="dark"] .rq-flag, html[data-theme="dark"] .rq-waiting { background: #3a2f0e; color: #f5d57e; }
html[data-theme="dark"] .rq-held { background: #14284d; color: #a9c8ff; }
html[data-theme="dark"] .rq-approved, html[data-theme="dark"] .rq-fixed, html[data-theme="dark"] .rq-mapped { background: #12321f; color: #8fd9a8; }
