/* 部门共享文件 WebClient 品牌样式 */
img[alt="Logo"] {
  display: none !important;
}

/* 隐藏登录页 Logo 后，让标题占满原来的标题行。 */
#sign_in_form .container.mb-10 .row {
  justify-content: center;
}

#sign_in_form .container.mb-10 .row > .col-5 {
  display: none !important;
}

#sign_in_form .container.mb-10 .row > .col-7 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  text-align: center;
}

#sign_in_form .login-field-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

#sign_in_form .login-field-label {
  display: flex;
  align-items: center;
  min-height: 50px;
  color: var(--bs-gray-800);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

#sign_in_form .login-field-control {
  min-width: 0;
}

@media (max-width: 575.98px) {
  #sign_in_form .login-field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  #sign_in_form .login-field-label {
    min-height: auto;
  }
}

/*
 * 共享文件统一主题：参考业务系统的蓝灰侧边栏和浅蓝紫工作区。
 * 同时覆盖 light/dark 变量，避免用户系统主题把页面重新切回黑色调。
 */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  color-scheme: light;
  --ali2h2g-page-bg: #f4f4fc;
  --ali2h2g-sidebar: #22577c;
  --ali2h2g-sidebar-top: #2a6689;
  --ali2h2g-sidebar-active: #4a7594;
  --ali2h2g-primary: #2b6b93;
  --ali2h2g-primary-hover: #225a7d;
  --ali2h2g-card-border: #e5e8f1;
  --ali2h2g-text: #253451;
  --bs-primary: #2b6b93;
  --bs-primary-rgb: 43, 107, 147;
  --bs-body-bg: #f4f4fc;
  --bs-body-bg-rgb: 244, 244, 252;
  --bs-body-color: #253451;
  --bs-body-color-rgb: 37, 52, 81;
  --bs-heading-color: #1f2d49;
  --bs-link-color: #28688f;
  --bs-link-hover-color: #1f5576;
  --bs-link-color-rgb: 40, 104, 143;
  --bs-link-hover-color-rgb: 31, 85, 118;
  --bs-border-color: #e5e8f1;
  --bs-secondary-bg: #eef1f7;
  --bs-tertiary-bg: #f7f8fc;
  --bs-gray-100: #f8fafc;
  --bs-gray-200: #eef1f5;
  --bs-gray-300: #d9e0ea;
  --bs-gray-400: #b8c2d1;
  --bs-gray-500: #718096;
  --bs-gray-600: #64748b;
  --bs-gray-700: #475569;
  --bs-gray-800: #253451;
  --bs-gray-900: #1f2d49;
  --bs-text-gray-500: #718096;
  --bs-text-gray-600: #64748b;
  --bs-text-gray-700: #475569;
  --bs-text-gray-800: #253451;
  --bs-text-gray-900: #1f2d49;
}

html,
body,
body.app-default,
#app_root,
#kt_app_page,
#kt_app_wrapper,
#kt_app_main,
#kt_app_content {
  background: var(--ali2h2g-page-bg) !important;
}

#kt_app_header {
  background: rgb(255 255 255 / 96%) !important;
  border-bottom: 1px solid var(--ali2h2g-card-border);
  box-shadow: 0 3px 14px rgb(31 45 73 / 6%);
  backdrop-filter: blur(10px);
}

#kt_app_header .btn.btn-icon {
  color: #42637c;
  border-radius: 0.65rem;
}

#kt_app_header .btn.btn-icon:hover,
#kt_app_header .btn.btn-icon.show {
  color: var(--ali2h2g-primary);
  background: #eaf2f7;
}

#kt_app_sidebar {
  background: linear-gradient(180deg, var(--ali2h2g-sidebar-top) 0%, var(--ali2h2g-sidebar) 48%, #1f5274 100%) !important;
  border-right: 1px solid rgb(255 255 255 / 8%);
  box-shadow: 8px 0 24px rgb(28 64 92 / 15%);
}

#kt_app_sidebar_header {
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

#kt_app_sidebar .text-sidebar {
  color: #fff !important;
  letter-spacing: 0.02em;
}

#kt_app_sidebar .menu .menu-item > .menu-link {
  min-height: 3.1rem;
  margin: 0.2rem 0.35rem;
  padding-right: 1rem;
  padding-left: 1rem;
  border-radius: 0.75rem;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

#kt_app_sidebar .menu .menu-item > .menu-link .menu-title {
  color: rgb(244 249 253 / 88%) !important;
  font-weight: 600;
}

#kt_app_sidebar .menu .menu-item > .menu-link .menu-icon i,
#kt_app_sidebar .menu .menu-item > .menu-link .menu-arrow::after {
  color: #d7e8f4 !important;
}

#kt_app_sidebar .menu .menu-item > .menu-link:hover {
  background: rgb(255 255 255 / 10%) !important;
}

#kt_app_sidebar .menu .menu-item > .menu-link.active,
#kt_app_sidebar .menu .menu-item.here > .menu-link,
#kt_app_sidebar .menu .menu-item.show > .menu-link {
  background: var(--ali2h2g-sidebar-active) !important;
  box-shadow: inset 3px 0 0 #fff, 0 5px 16px rgb(15 47 70 / 18%);
}

#kt_app_sidebar .menu .menu-item > .menu-link.active .menu-title,
#kt_app_sidebar .menu .menu-item > .menu-link.active .menu-icon i,
#kt_app_sidebar .menu .menu-item.here > .menu-link .menu-title,
#kt_app_sidebar .menu .menu-item.here > .menu-link .menu-icon i {
  color: #fff !important;
}

/* 部门成员暂未启用 TOTP，两步验证能力保留，仅隐藏侧栏入口。 */
#kt_app_sidebar .menu-link[href$="/mfa"] {
  display: none !important;
}

#kt_app_content .card,
.menu-sub-dropdown,
.modal-content {
  background: #fff !important;
  border: 1px solid var(--ali2h2g-card-border) !important;
  border-radius: 0.9rem !important;
  box-shadow: 0 6px 22px rgb(34 55 86 / 7%) !important;
}

#kt_app_content .card-header,
#kt_app_content .card-footer,
.modal-header,
.modal-footer {
  border-color: #edf0f5 !important;
}

.form-control,
.form-select,
.select2-selection {
  color: var(--ali2h2g-text) !important;
  background-color: #fff !important;
  border-color: #dce2ec !important;
  border-radius: 0.65rem !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #75a4c1 !important;
  box-shadow: 0 0 0 0.2rem rgb(43 107 147 / 12%) !important;
}

.form-control-solid,
.form-select-solid {
  background-color: #f5f7fb !important;
}

.form-check-input {
  background-color: #f1f4f8 !important;
  border-color: #cbd5e1 !important;
}

.form-check-input:checked {
  background-color: var(--ali2h2g-primary) !important;
  border-color: var(--ali2h2g-primary) !important;
}

.btn.btn-light,
.btn.btn-icon.btn-light {
  color: #52627a !important;
  background: #f3f5f8 !important;
  border-color: #e3e8ef !important;
}

.btn.btn-light:hover,
.btn.btn-icon.btn-light:hover {
  color: var(--ali2h2g-primary) !important;
  background: #e9f2f8 !important;
}

.btn.btn-primary {
  --bs-btn-bg: var(--ali2h2g-primary);
  --bs-btn-border-color: var(--ali2h2g-primary);
  --bs-btn-hover-bg: var(--ali2h2g-primary-hover);
  --bs-btn-hover-border-color: var(--ali2h2g-primary-hover);
  --bs-btn-active-bg: #1d4f70;
  --bs-btn-active-border-color: #1d4f70;
  box-shadow: 0 3px 10px rgb(43 107 147 / 18%);
}

.btn.btn-light-primary,
.badge.badge-light-primary {
  color: #245f84 !important;
  background: #e9f2f8 !important;
  border-color: #d8e8f2 !important;
}

.btn.btn-light-primary:hover {
  color: #fff !important;
  background: var(--ali2h2g-primary) !important;
}

.table.table-row-dashed tr {
  border-bottom-color: #e8ebf2;
}

.table tbody tr:hover > td {
  background: #f6f9fc;
}

.page-link.active,
.active > .page-link {
  background-color: var(--ali2h2g-primary);
  border-color: var(--ali2h2g-primary);
}

#kt_app_footer {
  color: #718096;
  background: transparent !important;
}

/* 登录页使用用户指定的 1920×1080 深蓝光斑图片和半透明磨砂表单。 */
body.app-blank {
  min-height: 100vh;
  background-color: #071d2d !important;
  background-image:
    linear-gradient(105deg, rgb(2 17 29 / 18%), rgb(7 35 51 / 8%)),
    url("shared-files-login-background.jpg?v=20260812-1") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

body.app-blank #app_root,
body.app-blank #app_root > div {
  background: transparent !important;
}

body.app-blank #app_root {
  position: relative;
  z-index: 2;
}

/* 登录页品牌区：朝阳对应 sunriseeast.net，文件夹与节点表示部门共享协作。 */
#ali2h2g-login-brand {
  position: fixed;
  z-index: 3;
  top: clamp(4.5rem, 8vh, 7rem);
  left: clamp(4.5rem, 6vw, 7.5rem);
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(420px, calc(100vw - 48px));
  min-height: 100px;
  pointer-events: none;
  user-select: none;
}

.ali2h2g-login-brand-icon,
.ali2h2g-login-brand-icon svg {
  display: block;
  width: 100px;
  height: 100px;
}

.ali2h2g-login-brand-icon svg {
  overflow: visible;
  filter: drop-shadow(0 10px 20px rgb(0 12 24 / 28%));
}

.ali2h2g-brand-sun-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: ali2h2g-brand-breathe 3.8s ease-in-out infinite;
}

.ali2h2g-login-brand-copy {
  min-width: 0;
  text-shadow: 0 3px 18px rgb(0 8 18 / 42%);
}

.ali2h2g-login-brand-name {
  color: #eafcff;
  background: linear-gradient(92deg, #32d9f7 0%, #83efff 48%, #f4fbff 100%);
  background-clip: text;
  font-size: clamp(30px, 2.15vw, 42px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.035em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ali2h2g-login-brand-title {
  margin-top: 10px;
  color: #f5fbff;
  font-size: clamp(21px, 1.45vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.ali2h2g-login-brand-tagline {
  margin-top: 9px;
  color: rgb(192 218 232 / 78%);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@keyframes ali2h2g-brand-breathe {
  0%,
  100% {
    opacity: 0.76;
    transform: scale(0.97);
    filter: drop-shadow(0 0 4px rgb(255 199 91 / 36%));
  }

  50% {
    opacity: 1;
    transform: scale(1.035);
    filter: drop-shadow(0 0 10px rgb(255 205 104 / 68%));
  }
}

/* 中间层使用透明 Vanta 画布，只绘制球体和网格，不覆盖底层图片。 */
#ali2h2g-login-globe {
  position: fixed !important;
  z-index: 0;
  inset: 0;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden;
  pointer-events: none;
  background: transparent !important;
}

#ali2h2g-login-globe canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none !important;
}

body.ali2h2g-login-globe-active #ali2h2g-login-globe canvas {
  opacity: 0.92;
}

body.ali2h2g-login-globe-static #ali2h2g-login-globe canvas {
  display: none !important;
}

body.app-blank #app_loader {
  position: relative;
  z-index: 3;
  color: #d5f8f6;
}

body.app-blank #app_root .bg-body {
  position: relative;
  overflow: hidden;
  color: #eef8ff;
  background:
    linear-gradient(145deg, rgb(4 24 40 / 76%), rgb(7 39 58 / 62%)) !important;
  border: 1px solid rgb(121 199 232 / 26%);
  border-radius: 1rem !important;
  box-shadow:
    0 28px 75px rgb(0 8 17 / 46%),
    inset 0 1px 0 rgb(255 255 255 / 7%) !important;
  backdrop-filter: blur(18px) saturate(118%);
}

body.app-blank #sign_in_form h1 {
  color: #f4fbff !important;
  text-shadow: 0 2px 10px rgb(0 10 20 / 34%);
}

body.app-blank #sign_in_form .login-field-label {
  color: #dcecf7 !important;
}

body.app-blank #sign_in_form .form-control,
body.app-blank #sign_in_form .form-control-solid {
  color: #f5fbff !important;
  background: rgb(8 42 62 / 68%) !important;
  border: 1px solid rgb(126 192 222 / 38%) !important;
  box-shadow: inset 0 1px 5px rgb(0 11 21 / 22%);
}

body.app-blank #sign_in_form .form-control:hover {
  border-color: rgb(135 211 241 / 58%) !important;
}

body.app-blank #sign_in_form .form-control:focus {
  background: rgb(9 47 69 / 82%) !important;
  border-color: #5fc8ed !important;
  box-shadow:
    0 0 0 0.2rem rgb(45 169 214 / 16%),
    inset 0 1px 5px rgb(0 11 21 / 18%) !important;
}

body.app-blank #sign_in_form .form-control::placeholder {
  color: rgb(215 235 246 / 55%);
}

body.app-blank #sign_in_form input:-webkit-autofill,
body.app-blank #sign_in_form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5fbff;
  box-shadow: 0 0 0 1000px #123d55 inset !important;
}

body.app-blank #sign_in_form .alert {
  color: #fff !important;
  background: rgb(107 72 18 / 74%) !important;
  border-color: rgb(255 207 112 / 42%) !important;
  backdrop-filter: blur(9px);
}

body.app-blank #sign_in_submit {
  --bs-btn-color: #fff;
  --bs-btn-bg: #167ba6;
  --bs-btn-border-color: #258db8;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #116b91;
  --bs-btn-hover-border-color: #258db8;
  box-shadow: 0 8px 22px rgb(0 16 29 / 32%);
}

@media (max-width: 991.98px) {
  #ali2h2g-login-brand {
    top: 2rem;
    left: 2rem;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    width: min(360px, calc(100vw - 64px));
    min-height: 78px;
  }

  .ali2h2g-login-brand-icon,
  .ali2h2g-login-brand-icon svg {
    width: 78px;
    height: 78px;
  }

  .ali2h2g-login-brand-name {
    font-size: 28px;
  }

  .ali2h2g-login-brand-title {
    margin-top: 7px;
    font-size: 19px;
  }

  .ali2h2g-login-brand-tagline {
    margin-top: 6px;
    font-size: 12px;
  }

  #kt_app_sidebar {
    box-shadow: 10px 0 30px rgb(20 48 70 / 24%);
  }

  #kt_app_content .card {
    border-radius: 0.75rem !important;
  }
}

@media (max-width: 575.98px) {
  #ali2h2g-login-brand {
    top: 1rem;
    left: 50%;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    width: min(336px, calc(100vw - 32px));
    min-height: 58px;
    transform: translateX(-50%);
  }

  .ali2h2g-login-brand-icon,
  .ali2h2g-login-brand-icon svg {
    width: 58px;
    height: 58px;
  }

  .ali2h2g-login-brand-name {
    font-size: 22px;
  }

  .ali2h2g-login-brand-title {
    margin-top: 4px;
    font-size: 15px;
  }

  .ali2h2g-login-brand-tagline {
    margin-top: 4px;
    overflow: hidden;
    font-size: 10.5px;
    text-overflow: ellipsis;
  }

  body.app-blank #app_root .bg-body {
    background:
      linear-gradient(145deg, rgb(4 24 40 / 82%), rgb(7 39 58 / 72%)) !important;
    border-radius: 0.8rem !important;
  }

  body.ali2h2g-login-globe-active #ali2h2g-login-globe canvas {
    opacity: 0.72;
  }

  #kt_app_content_container {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ali2h2g-login-globe canvas {
    display: none !important;
  }

  .ali2h2g-brand-sun-glow {
    animation: none;
  }
}

/* Windows 11 风格文件类型图标。使用内联 SVG，避免依赖第三方图标服务。 */
.ali2h2g-file-icon {
  display: inline-flex;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 1;
}

.ali2h2g-file-icon svg {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgb(15 23 42 / 14%));
}

/* 共享文件工作台：统计卡片和图表均由当前目录的实时数据生成。 */
.ali2h2g-dashboard-menu-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
}

#kt_app_sidebar .menu-link .ali2h2g-dashboard-menu-icon {
  color: #d7e8f4;
}

#kt_app_sidebar .menu-link.active .ali2h2g-dashboard-menu-icon {
  color: #fff;
}

#ali2h2g-dashboard {
  --dashboard-blue: #3b82f6;
  --dashboard-cyan: #06b6d4;
  --dashboard-green: #20b486;
  --dashboard-purple: #8b5cf6;
  color: var(--ali2h2g-text);
}

.ali2h2g-dashboard-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 10rem;
  margin-bottom: 1.25rem;
  padding: 2rem 2.25rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgb(95 238 230 / 28%), transparent 26%),
    radial-gradient(circle at 62% 110%, rgb(139 92 246 / 38%), transparent 35%),
    linear-gradient(120deg, #22577c 0%, #267aa0 52%, #198f9b 100%);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgb(35 87 124 / 20%);
}

.ali2h2g-dashboard-hero::after {
  position: absolute;
  top: -5rem;
  right: 6%;
  width: 18rem;
  height: 18rem;
  content: "";
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.7rem rgb(255 255 255 / 4%),
    0 0 0 5.4rem rgb(255 255 255 / 3%);
}

.ali2h2g-dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.ali2h2g-dashboard-hero h2 {
  margin: 0.45rem 0 0.35rem;
  color: #fff;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  font-weight: 750;
}

.ali2h2g-dashboard-hero p {
  margin: 0;
  color: rgb(255 255 255 / 76%);
  font-size: 0.98rem;
}

.ali2h2g-dashboard-eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: #c9ffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ali2h2g-dashboard-eyebrow span {
  width: 0.5rem;
  height: 0.5rem;
  background: #5feee6;
  border-radius: 50%;
  box-shadow: 0 0 0 0.3rem rgb(95 238 230 / 16%);
}

.ali2h2g-dashboard-refresh {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.8rem 1.15rem;
  color: #164157;
  font-weight: 700;
  background: rgb(255 255 255 / 92%);
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 5px 16px rgb(8 42 65 / 18%);
  transition: transform 160ms ease, background-color 160ms ease;
}

.ali2h2g-dashboard-refresh:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.ali2h2g-dashboard-refresh:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ali2h2g-dashboard-refresh svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ali2h2g-dashboard-status {
  min-height: 1.25rem;
  margin: -0.55rem 0 0.9rem;
  color: #6b7d91;
  font-size: 0.78rem;
  text-align: right;
}

.ali2h2g-dashboard-status.is-error {
  color: #dc3545;
}

.ali2h2g-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ali2h2g-dashboard-kpi {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  min-height: 8.6rem;
  padding: 1.35rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ali2h2g-card-border);
  border-top: 3px solid var(--kpi-color);
  border-radius: 0.9rem;
  box-shadow: 0 7px 22px rgb(34 55 86 / 7%);
}

.ali2h2g-dashboard-kpi::after {
  position: absolute;
  right: -2rem;
  bottom: -2.8rem;
  width: 7.5rem;
  height: 7.5rem;
  content: "";
  background: var(--kpi-soft);
  border-radius: 50%;
}

.ali2h2g-dashboard-kpi.kpi-blue { --kpi-color: #3b82f6; --kpi-soft: #e8f1ff; }
.ali2h2g-dashboard-kpi.kpi-cyan { --kpi-color: #06b6d4; --kpi-soft: #e5fafd; }
.ali2h2g-dashboard-kpi.kpi-green { --kpi-color: #20b486; --kpi-soft: #e7f8f2; }
.ali2h2g-dashboard-kpi.kpi-purple { --kpi-color: #8b5cf6; --kpi-soft: #f1ebff; }

.ali2h2g-dashboard-kpi .kpi-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 3.4rem;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  color: var(--kpi-color);
  background: var(--kpi-soft);
  border-radius: 0.85rem;
}

.ali2h2g-dashboard-kpi .kpi-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ali2h2g-dashboard-kpi > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ali2h2g-dashboard-kpi span,
.ali2h2g-dashboard-kpi small {
  display: block;
  color: #748398;
}

.ali2h2g-dashboard-kpi strong {
  display: block;
  margin: 0.15rem 0;
  overflow: hidden;
  color: #21324d;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ali2h2g-dashboard-kpi small {
  font-size: 0.72rem;
}

.ali2h2g-dashboard-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-grid-top {
  grid-template-columns: minmax(21rem, 0.85fr) minmax(28rem, 1.15fr);
}

.dashboard-grid-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ali2h2g-dashboard-panel {
  min-width: 0;
  padding: 1.35rem 1.45rem;
  background: #fff;
  border: 1px solid var(--ali2h2g-card-border);
  border-radius: 0.9rem;
  box-shadow: 0 7px 22px rgb(34 55 86 / 7%);
}

.ali2h2g-dashboard-panel > header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.ali2h2g-dashboard-panel h3 {
  margin: 0;
  color: #263853;
  font-size: 1rem;
  font-weight: 750;
}

.ali2h2g-dashboard-panel header p {
  margin: 0.25rem 0 0;
  color: #8a97aa;
  font-size: 0.74rem;
}

.panel-badge,
.trend-total {
  padding: 0.3rem 0.65rem;
  color: #168566;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  background: #e7f8f2;
  border-radius: 2rem;
}

.dashboard-types-body {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  min-height: 12rem;
}

.dashboard-donut {
  display: grid;
  width: 10.5rem;
  height: 10.5rem;
  place-items: center;
  margin: auto;
  background: #e8edf4;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(42 71 104 / 4%);
}

.dashboard-donut > div {
  display: grid;
  width: 6.8rem;
  height: 6.8rem;
  place-content: center;
  text-align: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgb(26 57 90 / 9%);
}

.dashboard-donut strong,
.dashboard-donut span {
  display: block;
}

.dashboard-donut strong {
  color: #233852;
  font-size: 1.7rem;
}

.dashboard-donut span {
  color: #8a97aa;
  font-size: 0.72rem;
}

.dashboard-legend {
  display: grid;
  gap: 0.65rem;
}

.dashboard-legend-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  color: #6d7c90;
  font-size: 0.78rem;
}

.dashboard-legend-item .legend-name {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.dashboard-legend-item i {
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.dashboard-legend-item strong {
  color: #32455f;
  font-size: 0.76rem;
  white-space: nowrap;
}

.dashboard-bars {
  display: grid;
  gap: 1.05rem;
  min-height: 12rem;
  align-content: center;
}

.dashboard-bar-item > div:first-child {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: #41536c;
  font-size: 0.78rem;
}

.dashboard-bar-item strong {
  color: #8390a3;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-bar-track {
  height: 0.55rem;
  overflow: hidden;
  background: #edf1f6;
  border-radius: 1rem;
}

.dashboard-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 2px 7px rgb(35 72 107 / 16%);
}

.dashboard-trend {
  margin-bottom: 1rem;
}

.trend-total {
  color: #356ea2;
  background: #eaf3fc;
}

.dashboard-trend-chart {
  min-height: 14rem;
}

.dashboard-trend-chart svg {
  display: block;
  width: 100%;
  height: 15rem;
  overflow: visible;
}

.dashboard-trend-chart .trend-grid line {
  stroke: #e8edf4;
  stroke-dasharray: 4 5;
}

.dashboard-trend-chart text {
  fill: #9aa5b5;
  font-size: 11px;
}

.dashboard-trend-chart .trend-label {
  text-anchor: middle;
}

.dashboard-trend-chart .trend-area {
  fill: url(#ali-dashboard-area);
}

.dashboard-trend-chart .trend-line {
  fill: none;
  stroke: #3b82f6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 4px 5px rgb(59 130 246 / 20%));
}

.dashboard-trend-chart circle {
  fill: #fff;
  stroke: #3b82f6;
  stroke-width: 3;
}

.dashboard-list > div:last-child {
  min-height: 14rem;
}

.dashboard-file-row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #e7ebf1;
}

.dashboard-file-row:last-child {
  border-bottom: 0;
}

.dashboard-file-badge {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 0.65rem;
}

.dashboard-file-row > div:nth-child(2) {
  min-width: 0;
}

.dashboard-file-row strong,
.dashboard-file-row > div:nth-child(2) span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-file-row strong {
  color: #31445d;
  font-size: 0.8rem;
}

.dashboard-file-row > div:nth-child(2) span,
.dashboard-file-meta {
  margin-top: 0.15rem;
  color: #94a0b0;
  font-size: 0.68rem;
}

.dashboard-file-meta {
  text-align: right;
  white-space: nowrap;
}

.dashboard-empty {
  display: grid;
  min-height: 9rem;
  place-items: center;
  color: #9aa6b6;
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .ali2h2g-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .ali2h2g-dashboard-hero {
    align-items: flex-start;
    padding: 1.5rem;
  }

  .dashboard-grid-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-types-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ali2h2g-dashboard-hero {
    display: block;
    min-height: 0;
    padding: 1.35rem;
  }

  .ali2h2g-dashboard-hero p {
    max-width: 17rem;
    line-height: 1.6;
  }

  .ali2h2g-dashboard-refresh {
    width: 100%;
    justify-content: center;
    margin-top: 1.25rem;
  }

  .ali2h2g-dashboard-status {
    text-align: left;
  }

  .ali2h2g-dashboard-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .ali2h2g-dashboard-kpi {
    min-height: 7.5rem;
  }

  .ali2h2g-dashboard-panel {
    padding: 1.15rem;
  }

  .dashboard-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-bar-item > div:first-child {
    display: block;
  }

  .dashboard-bar-item strong {
    display: block;
    margin-top: 0.2rem;
  }

  .dashboard-file-row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .dashboard-file-meta {
    display: none;
  }

  .dashboard-trend-chart svg {
    height: 12rem;
  }
}
