/* Authenticated workspace navigation. Brand: red, gold and lottery-chip blue. */
.tts-shell {
  --tts-red: var(--tts-do);
  --tts-gold: var(--tts-vang);
  --tts-blue: var(--tts-xanh);
  --tts-ink: var(--tts-muc);
  --tts-header-height: 76px;
  --tts-sidebar-width: 252px;
  min-height: 100vh;
}
.tts-header, .tts-sidebar { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.tts-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--tts-header-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px 0 0;
  color: #fff;
  border-bottom: 3px solid var(--tts-gold);
  background: radial-gradient(ellipse at 68% -140%, rgba(248, 209, 20, .15), transparent 70%), linear-gradient(110deg, #c92329 0%, var(--tts-red) 55%, #94151e 100%);
  box-shadow: 0 3px 14px rgba(81, 18, 24, .1);
}
.tts-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 0 0 var(--tts-sidebar-width);
  border-right: 1px solid rgba(255, 255, 255, .15);
}
.tts-brand img { display: block; width: 174px; height: auto; }
.tts-menu-toggle, .tts-close-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: background .15s;
}
.tts-menu-toggle:hover { background: rgba(255, 255, 255, .18); }
.tts-header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; min-width: 0; }
.tts-header-help { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; white-space: nowrap; }
.tts-header-help i { font-size: 17px; }
.tts-header-help:hover { color: #ffeaaa; text-decoration: none; }
.tts-account { min-width: 0; }
.tts-account-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(97, 10, 19, .2);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.tts-account-toggle:hover, .tts-account.show .tts-account-toggle { background: rgba(97, 10, 19, .36); }
.tts-account-toggle::after { display: none; }
.tts-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #fff8db; color: #952029; border: 2px solid var(--tts-gold); font-size: 16px; font-weight: 700; }
.tts-account-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.tts-account-copy > span { font-size: 10px; color: #f8d7d8; }
.tts-account-copy strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; letter-spacing: .35px; text-transform: uppercase; white-space: nowrap; }
.tts-account-chevron { margin-left: 12px; font-size: 10px; color: #f8d7d8; }
.tts-account-menu.dropdown-menu { min-width: 242px; max-width: calc(100vw - 24px); margin-top: 12px; padding: 8px; border: 1px solid #e8eaf0; border-radius: 14px; box-shadow: 0 12px 40px rgba(36, 51, 78, .16); color: var(--tts-ink); font-size: 13px; }
.tts-account-menu-heading { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.tts-account-menu-heading span { font-size: 11px; color: #6a7587; }
.tts-account-menu-heading strong { overflow-wrap: anywhere; }
.tts-account-setting { padding: 10px 12px; }
.tts-account-menu .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 7px; color: #3b485e; font-size: 13px; }
.tts-account-menu .dropdown-item i { width: 16px; color: #8490a3; text-align: center; }
.tts-account-menu .dropdown-item:hover, .tts-account-menu .dropdown-item:focus { background: #f4f6fa; }
.tts-account-menu .tts-sign-out, .tts-account-menu .tts-sign-out i { color: var(--tts-red); }
.tts-account-menu .dropdown-divider { margin: 4px 8px; border-color: #edf0f4; }
.tts-shell #wrapper { min-height: calc(100vh - var(--tts-header-height)); align-items: flex-start; }
.tts-shell #content-wrapper { flex: 1 1 0%; min-width: 0; min-height: calc(100vh - var(--tts-header-height)); }
#navbar_id.tts-sidebar {
  position: sticky;
  top: var(--tts-header-height);
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--tts-sidebar-width);
  width: var(--tts-sidebar-width);
  height: calc(100vh - var(--tts-header-height));
  height: calc(100dvh - var(--tts-header-height));
  min-height: 0;
  background: #fff;
  border-right: 1px solid #e6eaf0;
  color: var(--tts-ink);
  z-index: 1020;
}
.tts-sidebar-tools { display: none; }
.tts-close-menu { display: none; color: #5c687d; background: #f4f6fa; border-color: #e5e9f2; margin-left: auto; }
.tts-sidebar-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dce1e9 transparent; padding: 18px 12px 12px; }
.tts-nav-group + .tts-nav-group { margin-top: 23px; }
.tts-nav-group-title { margin: 0 0 9px; padding: 0 14px; font-size: 10px; line-height: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #64748b; }
.tts-nav-list { list-style: none; padding: 0; margin: 0; }
.tts-nav-item + .tts-nav-item { margin-top: 4px; }
.tts-nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 9px 13px; border-radius: 9px; color: #526078; text-decoration: none; transition: background .15s, color .15s; }
.tts-nav-link:hover { background: #f4f6fa; color: #22356b; text-decoration: none; }
.tts-nav-icon { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 20px; width: 20px; height: 24px; color: #8792a5; font-size: 15px; }
.tts-nav-label { font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap; }
#navbar_id .tts-nav-item.is-active { background: transparent; }
.tts-nav-item.is-active .tts-nav-link { background: #fff0f0; color: #b01f28; }
.tts-nav-item.is-active .tts-nav-link::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tts-red); }
.tts-nav-item.is-active .tts-nav-label { font-weight: 650; }
.tts-nav-item.is-active .tts-nav-icon { color: var(--tts-red); }
.tts-active-dot { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--tts-red); margin-left: auto; }
.tts-sidebar-footer { padding: 14px 16px var(--tts-cho-widget-chat); flex-shrink: 0; }
.tts-support { display: flex; align-items: center; gap: 10px; padding: 13px 11px; border: 1px solid #deebf9; border-radius: 12px; background: linear-gradient(115deg, #f2f8fe, #f9fbfe); text-decoration: none; }
.tts-support:hover { background: #eaf4fd; text-decoration: none; }
.tts-support-icon { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 10px; background: var(--tts-blue); color: #fff; font-size: 18px; }
.tts-support-copy { display: flex; flex-direction: column; gap: 5px; }
.tts-support-copy strong { font-size: 12px; font-weight: 600; color: #243d63; }
.tts-support-copy > span { font-size: 10px; color: #216da8; white-space: nowrap; }
.tts-support-copy i { margin-left: 3px; font-size: 8px; }
.tts-shell .breadcrumb-tts { min-height: 52px; margin-bottom: 18px; padding: 12px 24px; border-bottom: 1px solid #e9edf3; background: #fff; gap: 0; font-size: 12px; }
.tts-shell .breadcrumb-item { color: #7b8698; }
.tts-shell .breadcrumb-item a { color: #65748c; }
.tts-shell .breadcrumb-item.active { color: var(--tts-ink); font-weight: 600; }
.tts-shell .breadcrumb-item + .breadcrumb-item::before { color: #b0b8c5; }
.tts-shell .huongdan-tts { width: auto; color: #5d6b7e; font-size: 11px; }
.tts-shell .huongdan-tts .title { font-weight: 400; }
.tts-expiry { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #e8edf4; border-radius: 6px; background: #f8fafc; }
.tts-expiry > i { color: #8491a6; }
.tts-expiry.is-expired { color: var(--tts-red); border-color: #f4d5d7; background: #fff3f3; }
.tts-expiry.is-expired > i { color: var(--tts-red); }
.tts-header a:focus-visible, .tts-header button:focus-visible { outline: 2px solid var(--tts-gold); outline-offset: 3px; }
.tts-sidebar a:focus-visible, .tts-sidebar button:focus-visible { outline: 2px solid var(--tts-blue); outline-offset: 2px; }
@media (min-width: 992px) {
  .tts-menu-collapsed #navbar_id.tts-sidebar { --tts-sidebar-width: 80px; }
  .tts-menu-collapsed .tts-nav-label, .tts-menu-collapsed .tts-active-dot, .tts-menu-collapsed .tts-support-copy { display: none; }
  .tts-menu-collapsed .tts-nav-group-title { height: 1px; padding: 0; font-size: 0; margin: 0 7px 12px; background: #edf0f4; }
  .tts-menu-collapsed .tts-nav-group:first-child .tts-nav-group-title { display: none; }
  .tts-menu-collapsed .tts-nav-group + .tts-nav-group { margin-top: 18px; }
  .tts-menu-collapsed .tts-nav-link { justify-content: center; padding: 9px 0; }
  .tts-menu-collapsed .tts-sidebar-footer { padding: 12px 15px var(--tts-cho-widget-chat); }
  .tts-menu-collapsed .tts-support { justify-content: center; padding: 8px 0; }
}
@media (max-width: 991px) {
  .tts-shell { --tts-header-height: 68px; }
  .tts-header { gap: 12px; padding: 0 16px; }
  .tts-brand { flex: 0 1 auto; order: 1; border: 0; min-width: 0; }
  .tts-brand img { width: 154px; }
  .tts-menu-toggle { order: 0; }
  .tts-header-help { display: none; }
  .tts-header-actions { order: 2; margin-left: auto; }
  #navbar_id.tts-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 292px; max-width: calc(100vw - 44px); height: 100vh; height: 100dvh; z-index: 1050; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; box-shadow: 16px 0 48px rgba(23, 37, 60, .16); }
  .tts-menu-open #navbar_id.tts-sidebar { transform: translateX(0); visibility: visible; }
  .tts-sidebar-tools { display: flex; flex-shrink: 0; padding: 8px 12px 0; }
  .tts-close-menu { display: inline-flex; flex-basis: 32px; width: 32px; height: 32px; border-radius: 8px; }
  .tts-sidebar-scroll { padding-top: 8px; }
  .tts-nav-label { font-size: 13px; }
  .tts-nav-link { min-height: 45px; }
  .tts-menu-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(21, 33, 55, .4); backdrop-filter: blur(2px); }
  .tts-shell .breadcrumb-tts { padding: 12px 16px; flex-wrap: wrap; row-gap: 10px; }
}
@media (max-width: 575px) {
  .tts-header { gap: 10px; padding: 0 12px; }
  .tts-menu-toggle { flex-basis: 36px; width: 36px; height: 36px; border-radius: 8px; font-size: 15px; }
  .tts-brand img { width: 145px; }
  .tts-account-toggle { min-height: 40px; padding: 3px; border: 0; background: transparent; }
  .tts-account-copy, .tts-account-chevron { display: none; }
  .tts-account-menu.dropdown-menu { margin-top: 16px; }
  .tts-shell .huongdan-tts { flex: 0 0 100%; text-align: left; padding: 0; }
  .tts-shell .breadcrumb-tts { font-size: 11px; margin-bottom: 16px; }
  .tts-expiry { padding: 4px 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tts-sidebar, .tts-nav-link, .tts-menu-toggle { transition: none !important; }
}
