/* Admin chrome is independent of the site's native theme. Scope every rule. */
.admin.ate-admin { --ate-blue: #012596; --ate-line: #e2e8f1; --ate-text: #26364d; --color-primary: #012596; --color-primary-light: #466fce; --color-primary-dark: #011c72; }
.ate-admin > .w-header { background: #012596 !important; }
.ate-admin > .w-header .w-toolbar { height: 68px !important; min-height: 68px; }
.ate-admin > .w-header .w-toolbar:first-child { gap: 12px; padding-left: 22px; }
.ate-admin > .w-header .w-toolbar:first-child > a:has(img) { display: none; }
.ate-admin > .w-header .w-toolbar:first-child .text-h6 { margin-left: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.ate-admin > .w-header .w-toolbar:first-child .text-h6::after { content: 'Quản trị hệ thống'; display: block; color: #c5d2f5; font-size: 11px; font-weight: 400; margin-top: 3px; }
.ate-admin > .w-header .w-toolbar:nth-child(2) { display: none; }
.ate-admin > .w-header .w-toolbar:last-child { width: auto; flex: none; padding-right: 20px; gap: 12px; }
.ate-admin > .w-header .w-toolbar:last-child .w-btn { color: #e5ecff !important; margin-left: 0 !important; border-radius: 7px; }
.ate-admin-toggle { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border: 0; border-radius: 7px; color: white; background: #ffffff12; cursor: pointer; }
.ate-admin-toggle:hover { background: #ffffff26; }
.ate-admin-toggle svg { width: 21px; height: 21px; }
.ate-admin-toggle:focus-visible, .ate-admin-brand a:focus-visible { outline: 2px solid #93b8fc; outline-offset: 3px; }
.ate-admin .admin-sidebar { background: #f7f8fa !important; border-right: 1px solid #e2e8f1; color: #26364d; }
.ate-admin-brand { height: 68px; min-height: 68px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid #e2e8f1; padding: 0 24px; position: relative; }
.ate-admin-brand a { display: flex; justify-content: center; align-items: center; width: 100%; }
.ate-admin-brand img { width: 184px; height: auto; max-width: 100%; max-height: 38px; object-fit: contain; }
.ate-admin-home { display: none; width: 22px; height: 22px; color: #012596; }
.ate-admin-close { display: none; position: absolute; right: 8px; border: 0; background: transparent; color: #65738a; font-size: 24px; cursor: pointer; }
.ate-admin .admin-nav { min-height: 0; height: auto; flex: 1 1 0%; padding: 10px; scrollbar-width: thin; }
.ate-admin .admin-nav .w-list { color: #65738a !important; }
.ate-admin .admin-nav .w-item { border-radius: 6px; margin: 2px 0; padding: 8px 10px; min-height: 40px; color: #65738a !important; font-size: 13px; }
.ate-admin .admin-nav .w-item:hover { background: #edf1f7; }
.ate-admin .admin-nav .w-item.router-link-exact-active { background: #e8edf9 !important; color: #012596 !important; font-weight: 600; }
.ate-admin .admin-nav .w-item-section { color: inherit !important; }
.ate-admin .admin-nav .w-item-section--avatar { padding-right: 10px; }
.ate-admin .admin-nav .w-item-section--avatar img { filter: grayscale(1); opacity: .8; }
.ate-admin .admin-nav .w-item:has(a[href='https://js.wiki/donate']) { display: none; }
.ate-admin .admin-nav .w-item-label--header { box-shadow: none; border-top: 1px solid #e2e8f1; padding: 16px 10px 6px; color: #8793a4 !important; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.ate-admin .admin-nav .w-select .w-input-control { background: #fff !important; color: #26364d !important; border: 1px solid #d3dce9; border-radius: 6px; }
.ate-admin .admin-nav .count-badge { background: #e5eaf2 !important; color: #65738a !important; }
.ate-admin .admin-container { background: #f4f6fa !important; }
.ate-admin .site-footer-line:has(a[href='https://js.wiki']) { display: none; }
@media (min-width: 1024px) {
  .ate-admin.w-layout--page { grid-template-areas: 'ldrawer header header' 'ldrawer main rdrawer' 'ldrawer footer rdrawer'; grid-template-rows: 68px minmax(0, 1fr) auto; }
  .ate-admin .admin-sidebar { width: 255px !important; overflow: hidden; }
  .ate-admin.ate-admin-collapsed .admin-sidebar { width: 72px !important; }
  .ate-admin-collapsed .ate-admin-brand { padding: 0 12px; }
  .ate-admin-collapsed .ate-admin-brand img { display: none; }
  .ate-admin-collapsed .ate-admin-home { display: block; }
  .ate-admin-collapsed .admin-nav .w-item { justify-content: center; }
  .ate-admin-collapsed .admin-nav .w-item-section--avatar { padding: 0; }
  .ate-admin-collapsed .admin-nav .w-item-section--main,
  .ate-admin-collapsed .admin-nav .w-item-section--side:not(.w-item-section--avatar),
  .ate-admin-collapsed .admin-nav .w-item-label--header,
  .ate-admin-collapsed .admin-nav .w-item:not(a) { display: none; }
}
@media (max-width: 1023.98px) {
  .ate-admin > .w-header .w-toolbar:first-child { padding-left: 12px; }
  .ate-admin .corner-btn--left { display: none !important; }
  .ate-admin-close { display: block; }
  .ate-admin-brand { padding-right: 35px; }
}
@media (max-width: 600px) {
  .ate-admin > .w-header .w-toolbar { height: 60px !important; min-height: 60px; }
  .ate-admin > .w-header .w-toolbar:first-child { gap: 9px; }
  .ate-admin > .w-header .w-toolbar:first-child .text-h6 { font-size: 15px; }
  .ate-admin > .w-header .w-toolbar:last-child { gap: 8px; padding-right: 12px; }
  .ate-admin > .w-header .w-toolbar:last-child > a > span > span { display: none; }
}
