﻿    * { box-sizing: border-box; margin: 0; padding: 0; }
    body, html { width: 100%; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; background: #f0f2f5; }
    
    /* 棕金中医风格全局变量 */
    :root {
      --primary-color: #864830;
      --primary-hover: #9e5b42;
      --primary-light: #faf5f2;
      --sidebar-width: 220px;
      --header-height: 56px;
      --tabs-height: 38px;
    }

    /* 覆盖 Element UI 按钮与主题色 */
    .el-button--primary { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
    .el-button--primary:hover, .el-button--primary:focus { background-color: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }
    .el-button--text { color: var(--primary-color) !important; }
    .el-pagination.is-background .el-pager li:not(.disabled).active { background-color: var(--primary-color) !important; }
    .el-checkbox__input.is-checked .el-checkbox__inner { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
    .el-checkbox__input.is-checked+.el-checkbox__label { color: var(--primary-color) !important; }
    .el-radio__input.is-checked .el-radio__inner { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
    .el-radio__input.is-checked+.el-radio__label { color: var(--primary-color) !important; }
    .el-switch.is-checked .el-switch__core { border-color: var(--primary-color) !important; background-color: var(--primary-color) !important; }

    /* 登录页面样式（与原站 chunk-46335314 100% 一致） */
    .login-container {
      width: 100vw;
      height: 100vh;
      position: relative;
      background: url('../img/bg.90d2c27c.png') no-repeat center center;
      background-size: cover;
      background-color: #eee;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .login-header-title {
      position: absolute;
      width: 600px;
      height: 65px;
      top: 6vh;
      background: url('../img/title.6ebefbfb.png') no-repeat center center;
      background-size: contain;
    }
    .login-box {
      width: 420px;
      background: rgba(255, 255, 255, 0.94);
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(134, 72, 48, 0.15);
      padding: 36px 40px;
      position: relative;
    }
    .login-form .login-title {
      font-size: 26px;
      color: var(--primary-color);
      font-weight: 600;
      margin-bottom: 28px;
      text-align: center;
      letter-spacing: 2px;
    }
    .login-form .el-form-item { margin-bottom: 24px; }
    .login-form .el-input__inner { height: 46px; line-height: 46px; font-size: 14px; border-radius: 6px; }
    .login-form .check-box { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
    .login-form .button-login { width: 100%; height: 46px; font-size: 16px; border-radius: 6px; letter-spacing: 4px; }
    .login-divider { margin-top: 32px; font-size: 12px; color: #979797; text-align: center; }

    /* 后台主布局架构 */
    .app-wrapper { display: flex; width: 100vw; height: 100vh; overflow: hidden; }
    
    /* 侧边栏 */
    .sidebar-container {
      width: var(--sidebar-width);
      height: 100%;
      background: #ffffff;
      box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
      display: flex;
      flex-direction: column;
      z-index: 1001;
      transition: width 0.28s;
      flex-shrink: 0;
    }
    .sidebar-logo {
      height: var(--header-height);
      display: flex;
      align-items: center;
      padding: 0 16px;
      background: #ffffff;
      border-bottom: 1px solid #f0f0f0;
    }
    .sidebar-logo .logo-icon {
      width: 32px;
      height: 32px;
      background: var(--primary-color);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: bold;
      font-size: 18px;
      margin-right: 10px;
    }
    .sidebar-logo .logo-text {
      font-size: 15px;
      font-weight: 600;
      color: var(--primary-color);
      letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .sidebar-menu {
      flex: 1;
      overflow-y: auto;
      border-right: none !important;
    }
    .sidebar-menu .el-menu-item, .sidebar-menu .el-submenu__title {
      height: 48px;
      line-height: 48px;
      color: #666;
    }
    .sidebar-menu .el-menu-item.is-active {
      color: var(--primary-color) !important;
      background-color: var(--primary-light) !important;
      border-right: 3px solid var(--primary-color);
      font-weight: 600;
    }
    .sidebar-menu .el-menu-item:hover, .sidebar-menu .el-submenu__title:hover {
      background-color: #fcf9f7 !important;
      color: var(--primary-color) !important;
    }

    /* 右侧主区域 */
    .main-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
      background: #f0f2f5;
    }

    /* 顶部导航条 */
    .navbar {
      height: var(--header-height);
      background: #ffffff;
      box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      z-index: 1000;
    }
    .navbar-left { display: flex; align-items: center; gap: 16px; }
    .hamburger { cursor: pointer; font-size: 20px; color: #666; }
    .hamburger:hover { color: var(--primary-color); }
    .navbar-right { display: flex; align-items: center; gap: 20px; }
    .user-avatar-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
    .user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-weight: bold; border: 1px solid rgba(134,72,48,0.2); }
    .user-name { font-size: 14px; font-weight: 500; color: #333; }

    /* 标签导航栏 (TagsView) */
    .tags-view-container {
      height: var(--tabs-height);
      background: #ffffff;
      border-bottom: 1px solid #d8dce5;
      box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
      display: flex;
      align-items: center;
      padding: 0 16px;
      gap: 6px;
      overflow-x: auto;
    }
    .tag-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0 12px;
      height: 26px;
      line-height: 26px;
      border: 1px solid #d8dce5;
      color: #495060;
      background: #fff;
      font-size: 12px;
      border-radius: 3px;
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
    }
    .tag-item.active {
      background-color: var(--primary-color);
      color: #fff;
      border-color: var(--primary-color);
    }
    .tag-item .el-icon-close { font-size: 10px; border-radius: 50%; padding: 2px; }
    .tag-item .el-icon-close:hover { background-color: rgba(0,0,0,0.2); }

    /* 内容滚动区域 */
    .app-main {
      flex: 1;
      padding: 16px;
      overflow-y: auto;
    }

    /* 通用页面模块容器 (ListPage) */
    .page-container {
      background: #ffffff;
      border-radius: 6px;
      padding: 20px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }
    .search-bar {
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }
    .action-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    .action-bar-left { display: flex; gap: 10px; }
    
    /* 统计卡片 (Dashboard) */
    .stat-card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
    .stat-card {
      background: #ffffff;
      border-radius: 8px;
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      display: flex;
      align-items: center;
      gap: 16px;
      border-left: 4px solid var(--primary-color);
    }
    .stat-icon {
      width: 48px;
      height: 48px;
      border-radius: 10px;
      background: var(--primary-light);
      color: var(--primary-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }
    .stat-info .stat-label { font-size: 13px; color: #888; margin-bottom: 6px; }
    .stat-info .stat-value { font-size: 24px; font-weight: bold; color: #333; }
    
    /* 简易图表/看板展示块 */
    .dash-section {
      background: #fff;
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .dash-section-title {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-left: 3px solid var(--primary-color);
      padding-left: 10px;
    }

    /* 统一抽屉与模态弹窗底部 */
    .modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      padding-top: 16px;
      border-top: 1px solid #f0f0f0;
      margin-top: 16px;
    }

/* ---- 新增 ---- */
.pager { margin-top: 16px; text-align: right; }
.page-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; border-left: 3px solid var(--primary-color); padding-left: 10px; }
.muted { color: #999; font-size: 12px; }
.mono { font-family: Consolas, monospace; }
.kv { display: grid; grid-template-columns: 110px 1fr; row-gap: 8px; font-size: 13px; }
.kv .k { color: #888; }
.print-sheet { font-size: 14px; line-height: 1.8; color: #000; font-family: "SimSun", "Songti SC", serif; }
.print-sheet .ps-head { text-align: center; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
.print-sheet .ps-hosp { font-size: 22px; font-weight: bold; letter-spacing: 2px; }
.print-sheet .ps-title { font-size: 18px; letter-spacing: 8px; margin: 2px 0 6px; }
.print-sheet .ps-sub { display: flex; justify-content: space-between; font-size: 13px; }
.print-sheet .ps-info { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.print-sheet .ps-info th, .print-sheet .ps-info td { border: 1px solid #000; padding: 4px 6px; text-align: left; vertical-align: top; white-space: pre-wrap; word-break: break-all; }
.print-sheet .ps-info th { width: 70px; font-weight: normal; background: #f3f3f3; }
.print-sheet .blk { border-top: 1px dashed #999; padding: 6px 0; white-space: pre-wrap; word-break: break-all; orphans: 3; widows: 3; }
.print-sheet .ps-sign { display: flex; justify-content: flex-end; gap: 40px; margin-top: 28px; page-break-inside: avoid; break-inside: avoid; }
.print-sheet .ps-line { display: inline-block; width: 140px; border-bottom: 1px solid #000; vertical-align: bottom; }
.print-sheet .ps-line.short { width: 100px; }
.print-sheet .ps-foot { display: flex; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid #000; margin-top: 14px; padding-top: 4px; font-size: 12px; page-break-inside: avoid; break-inside: avoid; }
@page { size: A4; margin: 15mm; }
#print-root { display: none; }
@media print {
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; width: 100%; }
  #print-root .print-sheet .ps-info th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
    .el-button--primary.is-plain { color: var(--primary-color) !important; background-color: #fff !important; border-color: var(--primary-color) !important; }
    .el-button--primary.is-plain:hover, .el-button--primary.is-plain:focus { color: #fff !important; background-color: var(--primary-color) !important; }
