/* ================================================================
   QC297 · DREAMWEAVER UI LAYER · CLEAN BASE
   File này được đặt SAU app.css để bạn chỉnh giao diện bằng Dreamweaver.
   Ưu tiên chỉnh file này thay vì app.css để không chạm logic/legacy styles.
   ================================================================ */

:root{
  /* ----- Kích thước chung ----- */
  --dw-app-max-width: 760px;
  --dw-page-gap: 12px;
  --dw-card-radius: 18px;

  /* ----- Bottom Tab Bar ----- */
  --dw-tabbar-height: 64px;
  --dw-tabbar-bg: rgba(255,255,255,.98);
  --dw-tabbar-border: #e5e7eb;
  --dw-tabbar-shadow: 0 2px 8px rgba(15,23,42,.08), 0 10px 30px rgba(15,23,42,.14);
  --dw-tab-color: #111827;
  --dw-tab-active: #0866ff;
  --dw-tab-font-size: 9.5px;
  --dw-tab-icon-size: 23px;
  --dw-tabbar-float-gap: 12px;
  --dw-tabbar-side-gap: 16px;
  --dw-tabbar-radius: 32px;
  --dw-tab-active-bg: #e7f3ff;

  /* Mobile Registration primary CTA reuses the real tab-bar metrics. */
  --dw-registration-cta-height: 52px;
  --dw-registration-cta-gap: 10px;
  --dw-registration-cta-side-gap: 18px;
  --dw-registration-cta-content-gap: 16px;
}

/* ----------------------------------------------------------------
   00 · Banner / Hero chung
   Có thể chọn #pageHero trong Dreamweaver rồi chỉnh trực tiếp.
   ---------------------------------------------------------------- */
#pageHero{
  max-width: var(--dw-app-max-width);
  margin-inline: auto;
}

/* ----------------------------------------------------------------
   02 · Đăng ký · Luồng thao tác chính
   Banner đứng đầu; bên dưới là chọn quân nhân rồi chọn hình thức.
   ---------------------------------------------------------------- */
#registrationHeroSection{
  display:block;
}

.dw-section-title{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 0;
}
.dw-section-title strong{ font-size: 15px; }
.dw-section-title span{ color: var(--muted); font-size: 11px; }

/* ================================================================
   QC297 · DESIGN READY SCAFFOLD
   Các biến này là nguồn chung cho 4 biến thể sau này:
   - Admin Mobile (bạn thiết kế trước)
   - User Mobile
   - Admin Desktop
   - User Desktop
   ================================================================ */
:root{
  --qc-primary: #1877f2;
  --qc-bg: #f5f6f7;
  --qc-surface: #ffffff;
  --qc-text: #111827;
  --qc-muted: #667085;
  --qc-border: #e5e7eb;
  --qc-card-radius: 18px;
  --qc-button-radius: 14px;
  --qc-page-padding-mobile: 14px;
  --qc-page-padding-tablet: 20px;
  --qc-page-padding-desktop: 28px;
  --qc-desktop-sidebar-width: 264px;
  --qc-desktop-content-max: 1480px;
}

/* ==================================================
   QC297 - LAYOUT CHUNG
   ================================================== */

.qc-page{
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 14px 14px 90px;
    box-sizing: border-box;
}
body{
    margin: 0;
    background: #f5f7fb;
}
/* ==========================================
   TIÊU ĐỀ CHUNG CỦA 5 TAB
   ========================================== */

.qc-page-title{
    margin: 0;
    color: #172033;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}
.qc-page-subtitle{
    margin-top: 2px;
    color: #667085;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
}
/* ==========================================
   TIÊU ĐỀ KHỐI BÊN TRONG MODULE
   ========================================== */

.qc-section-title{
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 18px 0 10px;
}

.qc-section-title strong{
    color: #172033;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.qc-section-title span{
    color: #667085;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
}

/* ==================================================
   QC297 - 5 TAB CUNG KHUNG THEO TONG HOP
   Chỉ đồng bộ khung hiển thị mobile.
   Không đổi logic mở tab / dữ liệu / backend.
   ================================================== */
@media (max-width: 700px){
    /* Phê duyệt / Tổng hợp / Báo cáo đã là mẫu full-width.
       Đưa Đăng ký / Tài khoản về cùng bề rộng,
       nền, viền và khoảng cách ngang của mẫu Tổng hợp. */
    body.app-shell-active-v587 #formCard.qc-page,
body.app-shell-active-v587 #resultCard.qc-page,
body.app-shell-active-v587 #identityCard.qc-page{
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f4f7fb !important;
    }

    /* Đăng ký không còn header module; banner là phần tử đầu tiên nên bỏ padding đỉnh của card. */
    body.registration-shell-active-v538 #formCard.qc-page{
        padding-top: 0 !important;
    }

    /* Cả 4 module dùng chung chuẩn box sizing / chiều ngang. */
    body.app-shell-active-v587 #formCard.qc-page,
body.app-shell-active-v587 #resultCard.qc-page,
body.app-shell-active-v587 #approvalModuleCard.qc-page,
body.app-shell-active-v587 #weeklySummaryCard.qc-page,
body.app-shell-active-v587 #identityCard.qc-page{
        box-sizing: border-box !important;
    }
}

/* ================================================================
   09 · BOTTOM TAB BAR · CANONICAL FLOATING LAYOUT
   Một nguồn CSS duy nhất cho 4 tab chính trên mobile/tablet.
   ================================================================ */

#appShellBottomNav.dw-bottom-nav{
  left: 50% !important;
  right: auto !important;
  bottom: calc(var(--dw-tabbar-float-gap) + env(safe-area-inset-bottom, 0px)) !important;
  transform: translate(-50%, var(--qc-bottom-nav-shift-y, 0px)) !important;
  width: min(calc(100vw - (var(--dw-tabbar-side-gap) * 2)), calc(var(--dw-app-max-width) - 24px)) !important;
  height: var(--dw-tabbar-height) !important;
  min-height: var(--dw-tabbar-height) !important;
  padding: 6px 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  border: 1px solid rgba(15,23,42,.06) !important;
  border-radius: var(--dw-tabbar-radius) !important;
  background: var(--dw-tabbar-bg) !important;
  box-shadow: var(--dw-tabbar-shadow) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  overflow: visible !important;
  z-index: 950 !important;
}

#appShellBottomNav .bottom-tab-v587{
  position: relative !important;
  z-index: 0 !important;
  width: auto !important;
  flex: 1 1 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 4px 1px 3px !important;
  border: 0 !important;
  border-radius: 26px !important;
  background: transparent !important;
  color: var(--dw-tab-color) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  overflow: visible !important;
  font-size: var(--dw-tab-font-size) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition: color .18s ease, transform .12s ease !important;
  -webkit-tap-highlight-color: transparent;
}
#appShellBottomNav .dw-tab-label{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:currentColor;
  font:inherit;
}

#appShellBottomNav .bottom-tab-v587::before{
  content: none !important;
}

#appShellBottomNav .bottom-tab-v587.active{
  color: var(--dw-tab-active) !important;
  background: transparent !important;
}

#appShellBottomNav .bottom-tab-v587.active::after{
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(68px, calc(100% - 4px));
  height: 50px;
  transform: translate(-50%, -50%);
  border-radius: 24px;
  background: var(--dw-tab-active-bg);
  pointer-events: none;
}

#appShellBottomNav .bottom-tab-v587 > svg,
#appShellBottomNav .bottom-tab-v587 > .bottom-tab-icon-wrap-v587 > svg{
  width: var(--dw-tab-icon-size) !important;
  height: var(--dw-tab-icon-size) !important;
  stroke-width: 2 !important;
}

#appShellBottomNav .bottom-tab-v587:active{
  transform: scale(.91) !important;
}

#appShellBottomNav .bottom-tab-icon-wrap-v587{
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  line-height: 0 !important;
}

#appShellBottomNav .bottom-tab-badge-v587{
  top: -6px !important;
  right: -9px !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 5px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #e41e3f !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-sizing: border-box !important;
}

body.app-shell-active-v587 main.wrap,
body.app-shell-active-v587 .wrap{
  scroll-padding-bottom: calc(var(--dw-tabbar-height) + var(--dw-tabbar-float-gap) + 18px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (min-width: 701px){
  body.app-shell-active-v587 main.wrap,
body.app-shell-active-v587 .wrap{
    padding-bottom: calc(var(--dw-tabbar-height) + var(--dw-tabbar-float-gap) + 18px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 700px){
  body.app-shell-active-v587 main.wrap,
body.app-shell-active-v587 .wrap{ padding-bottom: 0 !important; }
}

html[data-theme="dark"]{
  --dw-tabbar-bg: rgba(24,28,35,.97);
  --dw-tabbar-shadow: 0 2px 8px rgba(0,0,0,.22), 0 10px 30px rgba(0,0,0,.35);
  --dw-tab-active-bg: rgba(8,102,255,.20);
}
html[data-theme="dark"] #appShellBottomNav .bottom-tab-v587{
  color: #e5e7eb !important;
}
html[data-theme="dark"] #appShellBottomNav .bottom-tab-v587.active{
  color: #72a7ff !important;
}
html[data-theme="dark"] #appShellBottomNav .bottom-tab-badge-v587{
  border-color: #181c23 !important;
}

@media (max-width: 390px){
  :root{
    --dw-tabbar-side-gap: 10px;
    --dw-tabbar-float-gap: 9px;
  }
  #appShellBottomNav.dw-bottom-nav{
    padding-inline: 5px !important;
  }
  :root{ --dw-tab-font-size: 8.8px; --dw-tab-icon-size: 22px; }
  #appShellBottomNav .bottom-tab-v587.active::after{
    width: min(62px, calc(100% - 2px));
    height: 48px;
  }
}

/* ==================================================
   QC297 - ALL 4 MAIN TABS FULLSCREEN MOBILE
   Chỉ chuẩn hóa 4 module chính trên màn hình <= 700px.
   ================================================== */
@media (max-width: 700px){
    body.app-shell-active-v587 #formCard,
body.app-shell-active-v587 #resultCard,
body.app-shell-active-v587 #approvalModuleCard,
body.app-shell-active-v587 #weeklySummaryCard,
body.app-shell-active-v587 #identityCard{
        position: fixed !important;
        inset: 0 !important;
        z-index: 4800 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 14px calc(var(--dw-tabbar-height) + var(--dw-tabbar-float-gap) + 18px + env(safe-area-inset-bottom, 0px)) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: var(--bg, #f4f7fb) !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Registration alone reserves the exact space occupied by its floating CTA.
       The scroll container is #formCard itself on mobile. */
    body.app-shell-active-v587.registration-shell-active-v538 #formCard.qc-page{
        padding-bottom: calc(
          var(--dw-tabbar-height)
          + var(--dw-tabbar-float-gap)
          + var(--dw-registration-cta-gap)
          + var(--dw-registration-cta-height)
          + var(--dw-registration-cta-content-gap)
          + env(safe-area-inset-bottom, 0px)
        ) !important;
        scroll-padding-bottom: calc(
          var(--dw-tabbar-height)
          + var(--dw-tabbar-float-gap)
          + var(--dw-registration-cta-gap)
          + var(--dw-registration-cta-height)
          + var(--dw-registration-cta-content-gap)
          + env(safe-area-inset-bottom, 0px)
        ) !important;
    }

    body.app-shell-active-v587 #formCard.hidden,
body.app-shell-active-v587 #resultCard.hidden,
body.app-shell-active-v587 #approvalModuleCard.hidden,
body.app-shell-active-v587 #weeklySummaryCard.hidden,
body.app-shell-active-v587 #identityCard.hidden{
        display: none !important;
    }

    /* Thanh 4 tab luôn nằm trên các module fullscreen. */
    body.app-shell-active-v587 #appShellBottomNav,
body.app-shell-active-v587 .app-shell-bottom-nav-v587{
        z-index: 5300 !important;
        display: flex !important;
        visibility: visible !important;
    }
}

/* ==================================================
   QC297 - FULLSCREEN MODULE TOP OFFSET
   Các module có header chung bắt đầu bên dưới header. Riêng Đăng ký đã bỏ
   header module nên bắt đầu trực tiếp sau safe-area, không giữ chỗ 65px cũ.
   Safe-area chỉ được cộng một lần tại chính module fullscreen.
   ================================================== */
@media (max-width: 700px){
    body.app-shell-active-v587 #appShellHeader{
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        z-index: 5200 !important;
        margin: 0 !important;
    }

    body.app-shell-active-v587 #approvalModuleCard,
    body.app-shell-active-v587 #weeklySummaryCard,
    body.app-shell-active-v587 #identityCard{
        top: calc(65px + env(safe-area-inset-top, 0px)) !important;
        bottom: 0 !important;
        height: auto !important;
    }

    body.app-shell-active-v587.registration-shell-active-v538 #formCard,
    body.app-shell-active-v587.registration-shell-active-v538 #resultCard{
        top: env(safe-area-inset-top, 0px) !important;
        bottom: 0 !important;
        height: auto !important;
    }
}

/* ================================================================
   V5.24 · DESKTOP APPLICATION SHELL
   Reuse 4-tab nav as the desktop sidebar: no duplicate navigation.
   ================================================================ */
@media (min-width:1200px){
  :root{
    --qc-desktop-sidebar-width:248px;
    --qc-desktop-page-gap:28px;
    --qc-desktop-content-max:1600px;
  }
  body.app-shell-active-v587{background:#f4f7fb}
  body.app-shell-active-v587 main.wrap,
body.app-shell-active-v587 .wrap{
    width:auto!important;
    max-width:none!important;
    margin:0 0 0 var(--qc-desktop-sidebar-width)!important;
    padding:22px 32px 44px!important;
    min-height:100vh!important;
    scroll-padding-bottom:32px!important;
  }
  body.app-shell-active-v587 #app{
    width:min(100%,var(--qc-desktop-content-max))!important;
    max-width:var(--qc-desktop-content-max)!important;
    min-height:0!important;
    margin:0 auto!important;
    padding-bottom:0!important;
  }
  body.app-shell-active-v587 #appShellHeader{
    position:sticky!important;
    top:0!important;
    z-index:720!important;
    margin:0 0 18px!important;
    padding:0!important;
    background:rgba(244,247,251,.92)!important;
    backdrop-filter:blur(18px) saturate(145%)!important;
  }
  body.app-shell-active-v587 #appShellHeader .app-shell-header-main-v587{
    min-height:76px!important;
    padding:14px 4px!important;
    background:transparent!important;
  }
  body.app-shell-active-v587 .app-shell-head-icon-v587{width:46px;height:46px;flex-basis:46px;border-radius:14px}
  body.app-shell-active-v587 .app-shell-title-v587{font-size:28px}
  body.app-shell-active-v587 .app-shell-subtitle-v587{font-size:13px}

  body.app-shell-active-v587 #appShellBottomNav.dw-bottom-nav{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    transform:none!important;
    width:var(--qc-desktop-sidebar-width)!important;
    height:100vh!important;
    min-height:100vh!important;
    padding:92px 14px 88px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:6px!important;
    border:0!important;
    border-right:1px solid #e2e8f0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:8px 0 26px rgba(15,23,42,.035)!important;
    backdrop-filter:none!important;
    overflow:hidden!important;
  }
  body.app-shell-active-v587 #appShellBottomNav.dw-bottom-nav::before{
    content:"QC297";
    position:absolute;
    left:24px;
    top:25px;
    color:#172033;
    font-size:24px;
    line-height:1;
    font-weight:900;
    letter-spacing:-.03em;
  }
  body.app-shell-active-v587 #appShellBottomNav.dw-bottom-nav::after{
    content:"Quy chế · Tranh thủ · Phép";
    position:absolute;
    left:24px;
    top:55px;
    color:#8a96a8;
    font-size:10px;
    font-weight:650;
  }
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587{
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    flex:0 0 50px!important;
    padding:0 14px!important;
    border-radius:12px!important;
    display:flex!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:12px!important;
    color:#445066!important;
    background:transparent!important;
  }
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587::before{content:none!important}
  body.app-shell-active-v587 #appShellBottomNav .dw-tab-label{
    order:2;
    display:block!important;
    color:currentColor;
    font-size:14px;
    font-weight:750;
    letter-spacing:0;
    white-space:nowrap;
  }
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587.active{
    color:#0866ff!important;
    background:#eaf3ff!important;
  }
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587.active::after{content:none!important}
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587:hover{background:#f4f7fb!important}
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587.active:hover{background:#eaf3ff!important}
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587 > svg,
body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587 > .bottom-tab-icon-wrap-v587 > svg{
    order:1;width:23px!important;height:23px!important;flex:0 0 23px!important
  }
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-icon-wrap-v587{order:1;flex:0 0 23px!important;width:23px!important}
  body.app-shell-active-v587 #appShellBottomNav .bottom-tab-badge-v587{top:-7px!important;right:-10px!important}

  body.app-shell-active-v587 #appVersionFooter{
    position:fixed;
    z-index:960;
    left:24px;
    bottom:22px;
    width:190px;
    padding:10px 0!important;
    color:#98a2b3;
    text-align:left;
    font-size:12px;
  }

  body.app-shell-active-v587 .qc-page,
body.app-shell-active-v587 #formCard,
body.app-shell-active-v587 #resultCard,
body.app-shell-active-v587 #approvalModuleCard,
body.app-shell-active-v587 #weeklySummaryCard,
body.app-shell-active-v587 #identityCard{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:22px 24px 28px!important;
    border:1px solid #e4e9f0!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 10px 34px rgba(15,23,42,.045)!important;
    overflow:visible!important;
  }
  body.app-shell-active-v587 #formCard,
body.app-shell-active-v587 #resultCard,
body.app-shell-active-v587 #identityCard{max-width:1280px!important}
  body.app-shell-active-v587 #weeklySummaryCard,
body.app-shell-active-v587 #approvalModuleCard{max-width:none!important}


  body.app-shell-active-v587 #approvalModuleContent.approval-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
  body.app-shell-active-v587 #approvalModuleContent .approval-item{margin:0;min-width:0}

  body.app-shell-active-v587 #weeklySummaryCard .weekly-table-wrap,
body.app-shell-active-v587 #weeklySummaryCard .summary-table-wrap{max-height:calc(100vh - 280px);overflow:auto}
}

@media (min-width:1200px) and (max-width:1365px){
  :root{--qc-desktop-sidebar-width:220px}
  body.app-shell-active-v587 main.wrap,
body.app-shell-active-v587 .wrap{padding-left:24px!important;padding-right:24px!important}
}

html[data-theme="dark"] body.app-shell-active-v587 #appShellBottomNav.dw-bottom-nav{background:#111827!important;border-right-color:#283446!important}
html[data-theme="dark"] body.app-shell-active-v587 #appShellBottomNav.dw-bottom-nav::before{color:#f3f6fb}
html[data-theme="dark"] body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587{color:#b4becd!important}
html[data-theme="dark"] body.app-shell-active-v587 #appShellBottomNav .bottom-tab-v587.active{color:#8ab4ff!important;background:#172a45!important}
html[data-theme="dark"] body.app-shell-active-v587{background:#0d1117!important;color:#edf2f8!important}
html[data-theme="dark"] body.app-shell-active-v587 #appShellHeader{background:rgba(13,17,23,.94)!important;border-bottom-color:#243042!important}
html[data-theme="dark"] body.app-shell-active-v587 .qc-page,
html[data-theme="dark"] body.app-shell-active-v587 #formCard,
html[data-theme="dark"] body.app-shell-active-v587 #resultCard,
html[data-theme="dark"] body.app-shell-active-v587 #approvalModuleCard,
html[data-theme="dark"] body.app-shell-active-v587 #weeklySummaryCard,
html[data-theme="dark"] body.app-shell-active-v587 #identityCard{background:#151d27!important;border-color:#2c3746!important;color:#edf2f8!important;box-shadow:none!important}

@media (max-width:700px){
  html[data-theme="dark"] body.app-shell-active-v587 #formCard,
  html[data-theme="dark"] body.app-shell-active-v587 #resultCard,
  html[data-theme="dark"] body.app-shell-active-v587 #approvalModuleCard,
  html[data-theme="dark"] body.app-shell-active-v587 #weeklySummaryCard,
  html[data-theme="dark"] body.app-shell-active-v587 #identityCard{
    background:#0d1117!important;
  }
}

/* Quick Theme Toggle Button in Header */
.app-shell-theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid rgba(127,127,127,.22);
  border-radius:10px;
  background:transparent;
  color:inherit;
  font-size:16px;
  cursor:pointer;
  transition:background .15s ease, transform .12s ease;
  margin-left:auto;
  flex:0 0 36px;
}
.app-shell-theme-toggle:active{ transform:scale(.92); }
html[data-theme="dark"] .app-shell-theme-toggle{
  border-color:#364558;
  background:#1a2332;
}
.app-shell-theme-toggle .theme-icon-light{ display:none; }
.app-shell-theme-toggle .theme-icon-dark{ display:inline; }
html[data-theme="dark"] .app-shell-theme-toggle .theme-icon-light{ display:inline; }
html[data-theme="dark"] .app-shell-theme-toggle .theme-icon-dark{ display:none; }

/* Theme Selector in Account Tab */
.qc-theme-setting-section{
  margin-top:14px;
}
.account-theme-selector-v71{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.account-theme-btn{
  flex:1 1 90px;
  min-height:42px;
  padding:6px 12px;
  border:1px solid #d0d7de;
  border-radius:10px;
  background:#fff;
  color:#24292f;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:all .15s ease;
}
.account-theme-btn:hover{
  background:#f6f8fa;
  border-color:#b5bfc9;
}
.account-theme-btn.active{
  border-color:#0866ff;
  background:#e7f3ff;
  color:#0866ff;
  box-shadow:0 0 0 1px #0866ff;
}
html[data-theme="dark"] .account-theme-btn{
  background:#161f2c;
  border-color:#313f52;
  color:#edf2f8;
}
html[data-theme="dark"] .account-theme-btn:hover{
  background:#1c2738;
}
html[data-theme="dark"] .account-theme-btn.active{
  border-color:#70a5ff;
  background:#172b49;
  color:#9fc1ff;
  box-shadow:0 0 0 1px #70a5ff;
}
