/* LK / editor only — do not load on storefront. */

/* ---------- Base reset (Tailwind preflight) ---------- */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--crm-gray-200); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: var(--font-sans, 'Onest', system-ui, -apple-system, sans-serif); }
body { margin: 0; font-family: inherit; line-height: inherit;
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
       color: var(--crm-gray-900); background: var(--crm-gray-50); }
.dark body, body.dark-body { color: var(--crm-gray-100); background: var(--crm-gray-900); }
hr { height: 0; color: inherit; border-top-width: 1px; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; } sup { top: -0.5em; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
/* Preflight: сброс фона только у «голых» кнопок. Не трогать:
   - auth-кнопки (.auth-btn*, .auth-quick-action): иначе перебивает градиенты на /dashboard;
   - CRM shell chrome (.crm-sidebar-rail*, .crm-nav-toggle): фон задан в crm-shell.css;
   - admin_products / form_editor (.admin_products*, .fe_*, .ap_confirm*, .ap_opt*, .ap_btn*, .ap_ai_layout*): фон в style.css;
   - supplier_store (.ss-*, .supplier-store__btn*): фон в supplier_store/style.css;
   - messenger / deal-chat (.tv-chat*, .tv-messenger*): фон задан в chat/style.css (КП, инвайт, тулбар);
   - кнопки с tailwind-compat утилитами bg-* (например .status-btn + .bg-primary-500 на orders_v2):
     compound selector button:not(...) имеет выше специфичность, чем .bg-primary-500, и обнуляет фон. */
button:not([class*="auth-btn"]):not([class*="auth-quick-action"]):not([class*="crm-sidebar-rail"]):not([class*="crm-nav-toggle"]):not([class*="bg-"]):not([class*="admin_products"]):not([class*="fe_"]):not([class*="ap_confirm"]):not([class*="ap_opt"]):not([class*="ap_btn"]):not([class*="ap_ai_layout"]):not([class*="ss-"]):not([class*="supplier-store__btn"]):not([class*="tv-chat"]):not([class*="tv-messenger"]),
[type='button']:not([class*="auth-btn"]):not([class*="auth-quick-action"]):not([class*="crm-sidebar-rail"]):not([class*="crm-nav-toggle"]):not([class*="bg-"]):not([class*="admin_products"]):not([class*="fe_"]):not([class*="ap_confirm"]):not([class*="ap_opt"]):not([class*="ap_btn"]):not([class*="ap_ai_layout"]):not([class*="ss-"]):not([class*="supplier-store__btn"]):not([class*="tv-chat"]):not([class*="tv-messenger"]),
[type='reset']:not([class*="auth-btn"]):not([class*="auth-quick-action"]):not([class*="crm-sidebar-rail"]):not([class*="crm-nav-toggle"]):not([class*="bg-"]):not([class*="admin_products"]):not([class*="fe_"]):not([class*="ap_confirm"]):not([class*="ap_opt"]):not([class*="ap_btn"]):not([class*="ap_ai_layout"]):not([class*="ss-"]):not([class*="supplier-store__btn"]):not([class*="tv-chat"]):not([class*="tv-messenger"]),
[type='submit']:not([class*="auth-btn"]):not([class*="auth-quick-action"]):not([class*="crm-sidebar-rail"]):not([class*="crm-nav-toggle"]):not([class*="bg-"]):not([class*="admin_products"]):not([class*="fe_"]):not([class*="ap_confirm"]):not([class*="ap_opt"]):not([class*="ap_btn"]):not([class*="ap_ai_layout"]):not([class*="ss-"]):not([class*="supplier-store__btn"]):not([class*="tv-chat"]):not([class*="tv-messenger"]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}
:-moz-focusring { outline: auto; }
:-moz-ui-invalid { box-shadow: none; }
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
[type='search'] { -webkit-appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
summary { display: list-item; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
fieldset { margin: 0; padding: 0; }
legend { padding: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--crm-gray-400); }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
