/* 东南舆情 · 员工办公资源管理平台 - 千牛风格 */
*{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;overflow-x:hidden}
body{font-family:"PingFang SC","Microsoft YaHei",-apple-system,sans-serif;background:#edf2f8;color:#1a1a2e;line-height:1.5;min-height:100vh;overflow-y:hidden}

/* === App Shell Grid 布局 === */
.app-shell{display:grid;grid-template-columns:88px 176px minmax(0,1fr);grid-template-rows:72px minmax(0,1fr);min-height:100vh;width:100vw;max-width:100vw;background:#edf2f8;overflow:hidden}

/* === 最左侧窄图标导航栏 === */
.primary-sidebar{grid-column:1;grid-row:2;background:#edf2f8;display:flex;flex-direction:column;align-items:center;padding:0 8px 14px}
.ps-nav{flex:1;display:flex;flex-direction:column;gap:4px;width:100%}
.ps-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:10px 4px;border-radius:14px;color:#7b93ad;cursor:pointer;transition:all .12s;text-decoration:none;min-height:52px}
.ps-item span{font-size:10px;font-weight:500}
.ps-item:hover{background:rgba(255,255,255,.5);color:#4a6b8a}
.ps-item.active{background:#fff;color:#2563eb;box-shadow:0 4px 14px rgba(37,99,235,.08)}
.ps-item svg{width:22px;height:22px}
.ps-bottom{margin-top:auto}

/* === 顶部工作台栏 === */
.top-workbar{grid-column:3;grid-row:1;height:72px;background:#edf2f8;display:flex;align-items:center;justify-content:flex-end;padding:0 24px;gap:8px;min-width:0;overflow:visible;position:relative;z-index:100}
.top-left-brand{display:none}
.brand-block{grid-column:1/3;grid-row:1;height:72px;display:flex;align-items:center;gap:12px;padding-left:20px;background:#edf2f8;min-width:0;overflow:hidden}
.brand-block-logo{width:48px;height:48px;object-fit:contain;display:block;background:transparent;flex-shrink:0}
.brand-block-text{display:flex;flex-direction:column;justify-content:center;margin-left:26px;min-width:0}
.brand-block-title{font-size:15px;font-weight:700;line-height:20px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-block-sub{margin-top:2px;font-size:11px;line-height:14px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-logo,.brand-text,.brand-title,.brand-subtitle{display:none}
.topbar-main{display:none}
.top-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.tw-search{display:flex;align-items:center;gap:8px;padding:0 16px;height:40px;background:#fff;border:1px solid #e6ebf2;border-radius:999px;width:320px;max-width:320px;box-shadow:0 2px 8px rgba(0,0,0,.03);flex-shrink:1;min-width:160px}
.tw-search svg{color:#999;flex-shrink:0}
.tw-search input{border:none;background:transparent;outline:none;font-size:12px;color:#1a1a2e;width:100%;font-family:inherit}
.tw-search input::placeholder{color:#aab5c4}

/* === 二级业务菜单栏 === */
.secondary-sidebar{grid-column:2;grid-row:2;background:#fff;border-radius:24px 0 0 0;padding:24px 14px;overflow-y:auto}
.ss-title{font-size:17px;font-weight:700;color:#111827;margin-bottom:12px;padding-left:4px}
.ss-group-label{font-size:10px;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:.8px;padding:12px 4px 6px;margin-top:4px}
.ss-item{display:block;padding:9px 12px;border-radius:10px;font-size:13px;color:#475569;cursor:pointer;transition:all .12s;text-decoration:none;margin-bottom:1px}
.ss-item:hover{background:#f5f8fc;color:#1e293b}
.ss-item.active{background:#eaf2ff;color:#2563eb;font-weight:600}

/* === 主内容区 === */
.workspace-main{grid-column:3;grid-row:2;background:#f5f7fb;overflow-y:auto;overflow-x:hidden;padding:0;max-height:calc(100vh - 72px);min-width:0}
.wm-header{padding:24px 24px 0;margin-bottom:4px}
.wm-header h2{font-size:18px;font-weight:700;color:#111827}

/* 按钮 */
.btn{display:inline-flex;align-items:center;gap:4px;border:none;border-radius:8px;font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;transition:all .12s;white-space:nowrap}
.btn-sm{padding:0 12px;height:30px}
.btn-primary{background:#2563eb;color:#fff;box-shadow:0 2px 6px rgba(37,99,235,.12)}
.btn-primary:hover{background:#1d4ed8}
.btn-ghost{background:#fff;color:#555;border:1px solid #dde4ed}
.btn-ghost:hover{background:#f5f8fc;border-color:#c8d4e0}
.btn-ghost:disabled{opacity:.3;cursor:not-allowed}
.btn-danger{background:#ef4444;color:#fff}
.btn-warn{color:#ef4444;border-color:rgba(239,68,68,.15)}
.filter-select{padding:5px 10px;border:1px solid #dde4ed;border-radius:8px;font-size:11px;background:#fff;color:#555}
.global-search{display:flex;align-items:center;gap:7px;padding:7px 14px;background:#fff;border:1px solid #dde4ed;border-radius:999px;color:#999;min-width:180px;max-width:280px;box-shadow:0 1px 3px rgba(0,0,0,.02);flex-shrink:1}
.global-search:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.06)}
.global-search svg{flex-shrink:0;opacity:.4}
.global-search input{border:none;background:transparent;outline:none;font-size:12px;color:#1a1a2e;width:100%;font-family:inherit}
.global-search input::placeholder{color:#aab5c4}

/* 视图 */
.view-panel{display:none;overflow-y:auto;overflow-x:hidden;background:#f5f7fb;min-width:0}
.view-panel.active{display:block}
.workspace{padding:20px 24px 36px;max-width:100%;min-width:0}

/* 概览统计 - 蓝色主卡 + 白色辅助卡 */
.dashboard-cards,.kpi-bar,.cb-stats{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1fr;gap:12px;margin-bottom:16px}
.stat-pill{display:flex;flex-direction:column;align-items:flex-start;padding:18px 20px;background:#fff;border:1px solid #e8edf4;border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,.02);gap:3px}
.stat-pill .num{font-size:26px;font-weight:800;color:#1a1a2e;line-height:1.1;letter-spacing:-.5px}
.stat-pill span:not(.num){font-size:11px;color:#8899aa;font-weight:400}
.stat-pill:first-child{background:linear-gradient(135deg,#2563eb 0%,#4f46e5 100%);border:none;box-shadow:0 6px 24px rgba(37,99,235,.2);border-radius:20px}
.stat-pill:first-child .num{color:#fff;font-size:30px}
.stat-pill:first-child span:not(.num){color:rgba(255,255,255,.7)}
.stat-pill.highlight .num{color:#2563eb}
.stat-pill:first-child.highlight .num{color:#fff}

/* 筛选工具卡 */
.control-bar,.filter-bar,.filter-card-inner{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#fff;border:1px solid #e8edf4;border-radius:14px;margin-bottom:14px;flex-wrap:wrap;box-shadow:0 1px 4px rgba(0,0,0,.02)}
.filter-section{display:flex;align-items:center;gap:5px}
.filter-label{font-size:10px;font-weight:600;color:#8899aa;text-transform:uppercase;letter-spacing:.5px}
.chip-group{display:flex;gap:4px;flex-wrap:wrap}
.dept-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;background:#f5f8fb;border:1px solid #e0e8f0;border-radius:999px;font-size:11px;color:#5a6b7f;cursor:pointer;transition:all .12s;user-select:none}
.dept-chip:hover{background:#eaf1ff;border-color:rgba(37,99,235,.2);color:#2563eb}
.dept-chip .chip-dot{width:6px;height:6px;border-radius:50%}
.dept-chip .chip-count{font-weight:600}
.dept-chip .chip-actions{display:none;gap:2px;margin-left:1px}
.dept-chip:hover .chip-actions{display:flex}
.chip-action-btn{width:13px;height:13px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:8px;cursor:pointer;color:#999}
.chip-action-btn:hover{background:rgba(0,0,0,.05)}
.chip-action-btn.delete:hover{color:#ef4444}
.dept-chip-add{border-style:dashed;color:#999}
.dept-chip-add:hover{border-color:#2563eb;color:#2563eb;background:#eaf1ff}
.status-chip{padding:5px 12px;border-radius:999px;font-size:11px;color:#5a6b7f;cursor:pointer;border:1px solid transparent;transition:all .12s}
.status-chip:hover{background:#f0f5fb}
.status-chip.active{background:#eaf1ff;color:#2563eb;border-color:rgba(37,99,235,.1);font-weight:500}

/* 主业务区 */
.workspace-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.canvas-area{min-width:0;overflow:hidden}
.seatmap-board-card{background:#fff;border:1px solid #e8edf4;border-radius:20px;box-shadow:0 4px 20px rgba(0,0,0,.03);padding:22px;overflow:visible;width:100%}
.floorplan-inner{width:100%;min-width:0}

/* === 顶部行：固定 3小+2大 === */
.dept-row-top{display:grid;grid-template-columns:140px 140px 140px 1fr 1fr;gap:12px;margin-bottom:16px;align-items:start}
.dept-row-bottom{display:grid;grid-template-columns:140px 1fr 1fr;gap:12px;margin-top:16px;align-items:start}

/* 部门卡片 */
.dept-card{background:#fff;border:1px solid #e5ecf5;border-radius:14px;min-width:0;height:auto;box-shadow:0 4px 14px rgba(15,23,42,.02);overflow:visible}
.dept-card:hover{border-color:#d0daea}
.dept-card-sm{}
.dept-card-lg{}

/* 销售部/海外事业部内部 grid */
.dept-seat-grid{display:grid;gap:8px;width:100%;min-width:0}
.dept-seat-grid .seat{width:100%;min-width:0;flex-shrink:1}
.sales-grid{grid-template-columns:repeat(5,1fr)}
.oversea-grid{grid-template-columns:repeat(4,1fr)}

/* 大厅公共位置 */
.hall-card{background:#fff;border:1px solid #e5ecf5;border-radius:18px;min-width:0;height:auto;box-shadow:0 4px 14px rgba(15,23,42,.02);margin-top:16px}
.hall-card:hover{border-color:#d0daea}

/* 大厅内部固定结构：左党政 | 中间留白 | 右企业 / 下方公共办公区 */
.hall-layout{display:grid;grid-template-columns:auto 60px auto;grid-template-areas:"party spacer enterprise" "public public public";gap:20px 0;margin-bottom:0}
.hall-party{grid-area:party}
.hall-spacer{grid-area:spacer}
.hall-enterprise{grid-area:enterprise}
.hall-public{grid-area:public;padding-top:16px;border-top:1px solid #eef2f7}
.hall-section{min-width:0}
.hall-sub-title{display:none}

/* 党政事业部：固定2列，座位宽度固定 */
.hall-grid-2col{display:grid;grid-template-columns:repeat(2,82px);gap:10px 16px;justify-content:start}
.hall-grid-2col .seat{width:100%;min-width:0}
/* 企业事业部：固定4列，固定宽度 */
.hall-grid-4col{display:grid;grid-template-columns:repeat(4,82px);gap:10px 12px;justify-content:start}
.hall-grid-4col .seat{width:100%;min-width:0}
/* 公共办公区：固定12列 */
.hall-grid-public{display:grid;grid-template-columns:repeat(12,1fr);gap:10px 10px}
/* 底部6个宽卡横跨2列 */
.hall-grid-public .public-wide-seat{grid-column:span 2}
.hall-grid-public .seat{width:100%;min-width:0}

.area{background:#fff;border:1px solid #e5ecf5;border-radius:14px;overflow:visible;min-width:0;height:auto;box-shadow:0 4px 14px rgba(15,23,42,.02)}
.area:hover{border-color:#d0daea}
.area-inner{padding:14px 14px 16px}
.area-label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:#0f172a;margin-bottom:12px;white-space:nowrap}
.area-label::before{content:'';width:3px;height:14px;border-radius:2px;background:#2563eb}
.seat-row{display:flex;gap:8px;margin-bottom:8px;justify-content:flex-start;flex-wrap:nowrap}
.seat{width:82px;height:52px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .12s;text-align:center;padding:4px;position:relative;user-select:none;flex-shrink:0}
.seat:hover{transform:translateY(-2px);z-index:10}
.seat.empty{background:#f5f8fb;border:1.5px dashed #d4dde8;color:#aab5c4;font-size:11px}
.seat.empty:hover{background:#eaf1ff;border-color:#2563eb}
.seat.occupied{background:#fff;border:1px solid #e3eaf4;box-shadow:0 1px 3px rgba(0,0,0,.02)}
.seat.occupied::after{content:'';position:absolute;top:0;left:12px;right:12px;height:2.5px;border-radius:0 0 2px 2px;background:var(--seat-color,#2563eb);opacity:.5}
.seat.occupied:hover{border-color:#2563eb;box-shadow:0 4px 12px rgba(37,99,235,.07)}
.seat.selected{border:2px solid #2563eb;background:#f0f7ff;box-shadow:0 0 0 4px rgba(37,99,235,.06)}
.seat.search-match{border:1.5px solid #f59e0b;background:#fffbeb}
.seat.locked::before{content:'🔒';position:absolute;top:2px;right:3px;font-size:7px;z-index:2}
.seat-dot{width:5px;height:5px;border-radius:50%;position:absolute;top:5px;left:5px}
.seat-name{font-size:12px;font-weight:600;color:#1a1a2e;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seat-dept{font-size:9px;color:#999;margin-top:1px}
.seat-id{font-size:7px;color:#ccc;position:absolute;bottom:2px;right:4px;font-family:monospace}
.device-icon{position:absolute;top:3px;right:3px;display:flex;gap:1px;color:#999}
.seat[draggable="true"]{cursor:grab;-webkit-user-drag:element}
.seat.drag-over{border:2px dashed #2563eb;background:#f0f7ff;transform:scale(1.03)}
.office-grid{display:none}
.hall-grid-bg{display:none}
.zone-label{display:none}
.zone-divider{display:none}
/* 旧样式兼容 */
.seat-auto-grid{display:none}
.dept-grid{display:none}

/* 右侧详情 */
.info-panel{background:#fff;border:1px solid #e8edf4;border-radius:18px;box-shadow:0 2px 12px rgba(0,0,0,.03);position:sticky;top:20px;max-height:calc(100vh - 108px);overflow-y:auto;align-self:start;scrollbar-width:thin}
.info-panel::-webkit-scrollbar{width:5px}
.info-panel::-webkit-scrollbar-thumb{background:#d5deeb;border-radius:999px}
.info-panel::-webkit-scrollbar-track{background:transparent}
.ip-section{padding:18px}
.ip-empty{text-align:center;padding:36px 14px;color:#bbb}
.ip-empty p{margin-top:6px;font-size:11px}
.detail-panel-header{padding:16px 18px 10px;border-bottom:1px solid #f0f2f5}
.detail-panel-body{padding:12px 18px}
.detail-panel-actions{padding:10px 18px 14px;border-top:1px solid #f0f2f5}
.detail-title{font-size:16px;font-weight:700}
.detail-dept{font-size:11px;color:#999;margin-top:3px;display:flex;align-items:center;gap:5px}
.detail-dept .dot{width:6px;height:6px;border-radius:50%}
.detail-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:6px;font-size:9px;font-weight:500;background:#eaf1ff;color:#2563eb;border:1px solid rgba(37,99,235,.08);margin-top:5px}
.detail-info{margin:0}
.detail-row{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #f5f6f8;font-size:12px}
.detail-row:last-child{border-bottom:none}
.detail-row .label{color:#999}
.detail-row .value{color:#1a1a2e;font-weight:500;text-align:right;max-width:130px;overflow:hidden;text-overflow:ellipsis}
.detail-actions{display:flex;flex-direction:column;gap:4px}
.detail-actions .btn{width:100%;justify-content:center;height:32px}

/* 表格 */
.table-wrap{overflow-x:auto;background:#fff;border:1px solid #e8edf4;border-radius:14px;box-shadow:0 2px 8px rgba(0,0,0,.02);max-width:100%}
.data-table{width:100%;border-collapse:collapse;font-size:12px}
.data-table th{padding:11px 14px;text-align:left;font-weight:600;font-size:10px;color:#8899aa;text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid #e8edf4;background:#f8fafc;white-space:nowrap}
.data-table td{padding:11px 14px;border-bottom:1px solid #f5f6f8;color:#1a1a2e;white-space:nowrap}
.employee-table-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;min-height:30px}
.employee-table-count{font-size:12px;color:#7b8fa6;white-space:nowrap}
.employee-table-buttons{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.employee-batch-toolbar{display:flex;align-items:center;gap:6px;margin-right:4px;padding-right:10px;border-right:1px solid #e8edf4;font-size:12px;color:#64748b}
.employee-batch-toolbar strong{font-size:13px;color:#1d4ed8}
.employee-select-cell{width:42px!important;min-width:42px;text-align:center!important;padding-left:10px!important;padding-right:10px!important}
.employee-select-cell input,.employee-row-check{width:14px;height:14px;margin:0;accent-color:#2563eb;cursor:pointer}
.employee-select-cell input:disabled{cursor:not-allowed;opacity:.4}
.employee-roster-table th,.employee-roster-table td{vertical-align:middle}
.employee-batch-loading{padding:34px 18px;text-align:center;font-size:13px;color:#64748b;background:#f8fafc;border:1px solid #e8edf4;border-radius:8px}
.employee-batch-summary{margin-bottom:14px;padding:10px 12px;font-size:13px;line-height:20px;color:#52657a;background:#f7faff;border:1px solid #e3ebf6;border-radius:8px}
.employee-batch-summary strong{font-size:16px;color:#1d4ed8}
.employee-batch-field{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eef2f6}
.employee-batch-field-toggle{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#334155;cursor:pointer}
.employee-batch-field-toggle input{width:14px;height:14px;margin:0;accent-color:#2563eb}
.employee-batch-field>input,.employee-batch-field>select{width:100%;height:34px;padding:6px 10px;border:1px solid #dce4ee;border-radius:8px;background:#fff;color:#1e293b;font:inherit;font-size:13px}
.employee-batch-field>input:focus,.employee-batch-field>select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.06)}
.employee-batch-field>input:disabled,.employee-batch-field>select:disabled{background:#f5f7fa;color:#94a3b8;cursor:not-allowed}
.employee-batch-preview{margin-top:14px;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}
.employee-batch-preview-empty{padding:18px;text-align:center;font-size:12px;color:#94a3b8;background:#fafbfc}
.employee-batch-preview-title{padding:9px 12px;font-size:13px;font-weight:600;color:#334155;background:#f8fafc;border-bottom:1px solid #e8edf4}
.employee-batch-target{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;font-size:13px;font-weight:600;color:#1d4ed8;border-bottom:1px solid #eef2f6}
.employee-batch-target span{color:#a4b0bf;font-weight:400}
.employee-batch-samples{max-height:160px;overflow-y:auto}
.employee-batch-preview-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:7px 12px;border-bottom:1px solid #f1f4f7;font-size:12px;line-height:18px}
.employee-batch-preview-row:last-child{border-bottom:none}
.employee-batch-preview-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1e293b}
.employee-batch-preview-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b}
.employee-batch-more{padding:7px 12px;font-size:11px;color:#7b8ba1;background:#fafbfc;border-top:1px solid #eef2f6}
.employee-batch-safety{margin-top:12px;padding:9px 11px;border-left:3px solid #60a5fa;background:#f8fbff;color:#5c6f84;font-size:12px;line-height:18px}
/* 设备台账固定列宽表格 (CSS Grid) */
.dtg-wrapper{width:100%;max-height:calc(100vh - 280px);overflow:auto;border:1px solid #e8edf4;border-radius:14px;background:#fff}
.dtg-header,.dtg-row{display:grid;grid-template-columns:50px 100px 80px 90px 80px 120px 200px 200px 140px 240px 110px 180px 100px 205px;min-width:1895px}
.dtg-header{position:sticky;top:0;z-index:3;background:#f8fafc;border-bottom:1px solid #e8edf4}
.dtg-th{padding:10px 12px;font-size:10px;font-weight:600;color:#8899aa;text-transform:uppercase;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;position:relative;user-select:none}
.dtg-th .col-resize-handle{position:absolute;right:0;top:0;bottom:0;width:5px;cursor:col-resize;background:transparent;z-index:5;transition:background .15s}
.dtg-th .col-resize-handle:hover,.dtg-th .col-resize-handle.dragging{background:rgba(37,99,235,.3)}
.dtg-cell{padding:10px 12px;font-size:12px;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;border-bottom:1px solid #f5f6f8}
.dtg-row:hover .dtg-cell{background:#f8fbff}
.dtg-body{}
.dev-bind-suggestions div:hover{background:#f0f7ff!important}
.data-table tr:hover td{background:#f8fbff}
.tag{display:inline-block;padding:2px 8px;border-radius:6px;font-size:10px;font-weight:500}
.tag-blue{background:#eaf1ff;color:#2563eb;border:1px solid rgba(37,99,235,.08)}
.tag-green{background:#ecfdf5;color:#059669;border:1px solid rgba(16,185,129,.08)}
.tag-orange{background:#fff7ed;color:#d97706;border:1px solid rgba(245,158,11,.08)}
.tag-red{background:#fef2f2;color:#dc2626;border:1px solid rgba(220,38,38,.12)}
.tag-gray{background:#f5f7fa;color:#999;border:1px solid #eee}

/* 外派 */
.dispatch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-bottom:14px}
.dispatch-card{background:#fff;border:1px solid #e8edf4;border-radius:14px;padding:18px;box-shadow:0 2px 6px rgba(0,0,0,.02);cursor:pointer;transition:all .15s}
.dispatch-card:hover{border-color:rgba(37,99,235,.15);box-shadow:0 4px 14px rgba(37,99,235,.04)}
.dispatch-card[draggable="true"]{cursor:grab}
.dispatch-card.card-drag-over{border:2px dashed #2563eb;background:#f0f7ff}
.dispatch-card-title{font-size:14px;font-weight:700;margin-bottom:2px}
.dispatch-card-city{font-size:10px;color:#999;margin-bottom:8px}
.dispatch-card-stats{display:flex;gap:8px;margin-bottom:6px}
.dispatch-card-stat{font-size:10px;color:#666}
.dispatch-card-stat .num{font-weight:700;color:#1a1a2e;margin-right:2px}
.dispatch-card-depts{display:flex;gap:3px;flex-wrap:wrap}
.dispatch-card-progress{margin-top:6px}
.progress-bar{height:3px;background:#edf1f7;border-radius:2px;overflow:hidden}
.progress-fill{height:100%;background:#2563eb;border-radius:2px}
.progress-label{font-size:8px;color:#999;margin-top:2px}
.dispatch-detail{margin-top:12px}
.dispatch-detail-title{font-size:13px;font-weight:600;margin-bottom:8px;display:flex;align-items:center;gap:5px}
.dispatch-detail-title::before{content:'';width:3px;height:11px;border-radius:2px;background:#2563eb}

/* 弹窗 */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.1);backdrop-filter:blur(2px);z-index:1000;justify-content:center;align-items:center}
.modal-overlay.active{display:flex}
.modal{background:#fff;border:1px solid #e8edf4;border-radius:18px;padding:26px;width:420px;max-height:85vh;overflow-y:auto;box-shadow:0 16px 48px rgba(0,0,0,.08);animation:mIn .2s ease-out}
@keyframes mIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.modal h3{font-size:16px;font-weight:700;margin-bottom:14px}
.modal-tabs{display:flex;gap:2px;margin-bottom:12px;background:#f5f7fa;border-radius:10px;padding:3px}
.modal-tab{flex:1;padding:6px 10px;border:none;border-radius:7px;font-size:11px;font-weight:500;cursor:pointer;font-family:inherit;background:transparent;color:#999}
.modal-tab.active{background:#fff;color:#2563eb;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.tab-panel{display:none}.tab-panel.active{display:block}
.form-group{margin-bottom:10px}
.form-group label{display:block;font-size:10px;color:#999;margin-bottom:3px;font-weight:500}
.employee-area-hint{margin-top:5px;font-size:11px;line-height:16px;color:#7b8ba1}
.employee-area-hint.is-valid{color:#16865b}
.employee-area-hint.is-warning{color:#b66a13}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:8px 11px;border:1px solid #dde4ed;border-radius:8px;font-size:12px;font-family:inherit;background:#fafbfc;color:#1a1a2e;transition:all .12s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.04);background:#fff}
.form-group input[type="checkbox"]{width:auto;margin-right:4px}
.form-group textarea{height:50px;resize:vertical}
.form-row{display:flex;gap:7px}.form-half{flex:1;min-width:0}
.btn-row{display:flex;gap:5px;justify-content:flex-end;margin-top:14px;padding-top:10px;border-top:1px solid #f0f2f5}
.dropdown-wrap{position:relative}
.dropdown-menu{display:none;position:absolute;top:100%;right:0;margin-top:4px;background:#fff;border:1px solid #e8edf4;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.06);min-width:150px;z-index:200;padding:4px}
.dropdown-menu.open{display:block}
.dropdown-menu a{display:block;padding:7px 12px;font-size:11px;color:#555;border-radius:5px;cursor:pointer}
.dropdown-menu a:hover{background:#f5f8fc;color:#2563eb}
.dropdown-menu a.danger{color:#ef4444}
.dropdown-menu a.danger:hover{background:#fef2f2}
.page-titlebar{margin-bottom:12px;display:flex;align-items:center;justify-content:space-between}
.ptb-left .ptb-desc{font-size:12px;color:#999}
.ptb-right{display:flex;align-items:center;gap:5px}
.cb-actions{display:flex;gap:5px;margin-left:auto}
.emp-search-wrap{position:relative}
.emp-candidates{display:none;position:absolute;top:100%;left:0;right:0;margin-top:2px;background:#fff;border:1px solid #e8edf4;border-radius:8px;box-shadow:0 6px 16px rgba(0,0,0,.06);max-height:160px;overflow-y:auto;z-index:300}
.emp-candidates.open{display:block}
.emp-candidate{padding:7px 10px;cursor:pointer;border-bottom:1px solid #f5f6f8}
.emp-candidate:hover{background:#f8fbff}
.emp-candidate-name{font-size:11px;font-weight:600}
.emp-candidate-info{font-size:9px;color:#999;margin-top:1px}
.emp-selected-card{margin-top:5px;padding:7px 10px;background:#eaf1ff;border:1px solid rgba(37,99,235,.08);border-radius:7px;display:flex;align-items:center;justify-content:space-between}
.emp-selected-card .esc-name{font-weight:600;font-size:11px}
.emp-selected-card .esc-dept{color:#999;margin-left:5px;font-size:10px}
.emp-selected-card .esc-change{font-size:9px;color:#2563eb;cursor:pointer}
.admin-only{display:none}
@media(max-width:1100px){.info-panel{display:none}}
@media(max-width:768px){.app-shell{grid-template-columns:48px 0 minmax(0,1fr)}.secondary-sidebar{display:none}.brand-block{grid-column:1;padding-left:8px}.brand-block-text{display:none}}
::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#d4dde8;border-radius:2px}

/* === 总部座位图独立滚动布局 === */
#viewSeatmap{overflow:hidden;height:calc(100vh - 72px)}
.seatmap-workspace{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;padding:20px 24px;overflow:hidden}
.seatmap-scroll-area{min-width:0;height:100%;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin}
.seatmap-scroll-area::-webkit-scrollbar{width:5px;height:5px}
.seatmap-scroll-area::-webkit-scrollbar-thumb{background:#d5deeb;border-radius:999px}
.seatmap-scroll-area::-webkit-scrollbar-track{background:transparent}
.detail-fixed-area{height:100%;min-height:0;overflow:hidden}
.detail-panel-card{height:100%;max-height:100%;overflow-y:auto;background:#fff;border:1px solid #e8edf4;border-radius:18px;box-shadow:0 2px 12px rgba(0,0,0,.03);scrollbar-width:thin}
.detail-panel-card::-webkit-scrollbar{width:5px}
.detail-panel-card::-webkit-scrollbar-thumb{background:#d5deeb;border-radius:999px}
.detail-panel-card::-webkit-scrollbar-track{background:transparent}
.detail-panel-card .ip-section{padding:18px}
.detail-panel-card .ip-empty{text-align:center;padding:36px 14px;color:#bbb}
.detail-panel-card .ip-empty p{margin-top:6px;font-size:11px}

/* 右侧详情栏：小屏下不参与布局，改为 fixed 浮层 */
@media(max-width:1600px){
.seatmap-workspace{grid-template-columns:1fr !important;gap:0}
.detail-fixed-area{position:fixed;right:24px;top:88px;bottom:24px;width:320px;z-index:1000;height:auto;display:none;border-radius:20px;overflow:visible}
.detail-fixed-area.drawer-open{display:block}
.detail-panel-card{height:100%;box-shadow:0 20px 50px rgba(15,23,42,.16);border:1px solid #dde4ed;border-radius:20px}
.drawer-close-btn{display:flex}
}

@media(max-width:1280px){
.seatmap-workspace{padding:14px 16px}
.detail-fixed-area{right:16px;top:76px;bottom:16px;width:300px}
}

/* 详情抽屉关闭按钮 */
.drawer-close-btn{display:none;position:absolute;top:8px;right:8px;z-index:10;width:28px;height:28px;border:none;background:rgba(0,0,0,.04);border-radius:50%;font-size:18px;color:#666;cursor:pointer;align-items:center;justify-content:center;line-height:1}
.drawer-close-btn:hover{background:rgba(0,0,0,.08);color:#333}
@media(min-width:1601px){.drawer-close-btn{display:none !important}}

/* === 顶部品牌区 === */
.tw-left{display:flex;align-items:center;gap:20px}
.top-brand{display:flex;flex-direction:column;justify-content:center;min-width:180px;flex-shrink:0}
.top-brand-text{}
.top-brand-title{font-size:15px;font-weight:700;color:#0f172a;white-space:nowrap;line-height:1.2}
.top-brand-subtitle{font-size:11px;color:#64748b;white-space:nowrap;margin-top:2px}

/* === 轻量 KPI 条（空间概览） === */
#statsBar{display:flex;align-items:center;width:100%;background:#fff;border:1px solid #e6ebf2;border-radius:20px;box-shadow:0 8px 24px rgba(15,23,42,.03);padding:18px 24px;margin-bottom:14px;gap:28px}
.control-bar{display:flex;align-items:center;background:#fff;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 4px 16px rgba(15,23,42,.03);padding:16px 22px;margin-bottom:14px;gap:16px;flex-wrap:wrap}
.kpi-strip-header{flex:0 0 auto;min-width:140px}
.kpi-strip-title{display:block;font-size:17px;font-weight:700;color:#0f172a;white-space:nowrap;line-height:1.3}
.kpi-strip-desc{display:block;margin-top:4px;font-size:12px;color:#7c8aa5;white-space:nowrap}
.kpi-strip-list{flex:1 1 auto;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;min-width:0}
.kpi-strip-item{position:relative;padding:0 18px;text-align:center;white-space:nowrap}
.kpi-strip-item+.kpi-strip-item{border-left:1px solid #eef2f7}
.kpi-strip-item strong{display:block;font-size:24px;font-weight:700;color:#0f172a;line-height:1.2;white-space:nowrap;overflow:visible}
.kpi-strip-item span{display:block;margin-top:6px;font-size:12px;color:#718096;white-space:nowrap}
.kpi-strip-item.highlight strong{color:#2563eb}
.kpi-progress{width:56px;height:4px;margin:8px auto 0;border-radius:999px;background:#eaf2ff;overflow:hidden}
.kpi-progress-bar{height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#4f46e5)}

/* 覆盖旧统计卡样式 */
.stat-pill{display:none}

/* ============================================================
   响应式断点
   ============================================================ */

/* 中大屏 1366px - 1599px */
@media(max-width:1599px){
.app-shell{grid-template-columns:80px 164px minmax(0,1fr)}
.tw-search{width:260px;max-width:260px}
#statsBar{padding:16px 20px;gap:20px}
.kpi-strip-item{padding:0 14px}
.kpi-strip-item strong{font-size:20px}
.kpi-strip-header{min-width:120px}
.top-workbar{padding:0 18px;gap:6px}
}

/* 中屏 1280px - 1365px（典型笔记本） */
@media(max-width:1366px){
.app-shell{grid-template-columns:64px 150px minmax(0,1fr)}
.primary-sidebar{padding:0 4px 10px}
.ps-item{padding:8px 2px;min-height:46px}
.ps-item svg{width:20px;height:20px}
.ps-item span{font-size:9px}
.secondary-sidebar{padding:18px 10px}
.ss-title{font-size:15px}
.ss-item{padding:8px 10px;font-size:12px}
.tw-search{width:220px;max-width:220px;min-width:140px;height:36px;padding:0 12px}
.tw-search input{font-size:11px}
.top-workbar{padding:0 14px;gap:5px;height:64px}
.brand-block{height:64px;padding-left:14px}
.brand-block-logo{width:40px;height:40px}
.brand-block-text{margin-left:18px}
.brand-block-title{font-size:13px}
.brand-block-sub{font-size:10px}
.app-shell{grid-template-rows:64px minmax(0,1fr)}
.workspace-main{max-height:calc(100vh - 64px)}
#viewSeatmap{height:calc(100vh - 64px)}
.seatmap-workspace{padding:14px 16px}
.workspace{padding:16px 18px 30px}
.kpi-strip-header{min-width:100px}
.kpi-strip-title{font-size:14px}
.kpi-strip-desc{font-size:10px}
.kpi-strip-item{padding:0 10px}
.kpi-strip-item strong{font-size:18px}
.kpi-strip-item span{font-size:10px}
#statsBar{padding:14px 16px;gap:16px;border-radius:16px}
.control-bar{padding:12px 16px;gap:12px;border-radius:14px}
.seat{width:auto;height:48px}
.seat-name{font-size:11px}
.seat-dept{font-size:8px}
.dept-row-top{grid-template-columns:120px 120px 120px 1fr 1fr}
.office-grid{gap:4px}
.btn-sm{padding:0 10px;height:28px;font-size:11px}
.global-search{min-width:180px;padding:6px 12px}
}

/* 小屏 <= 1280px */
@media(max-width:1280px){
.app-shell{grid-template-columns:56px 136px minmax(0,1fr)}
.primary-sidebar{padding:0 2px 8px}
.ps-item{padding:6px 2px;min-height:42px;border-radius:10px}
.ps-item svg{width:18px;height:18px}
.ps-item span{font-size:8px}
.secondary-sidebar{padding:14px 8px;border-radius:16px 0 0 0}
.ss-title{font-size:14px;margin-bottom:8px}
.ss-item{padding:7px 8px;font-size:11px;border-radius:8px}
.tw-search{width:180px;max-width:180px;min-width:120px}
.top-actions .btn-sm{padding:0 8px;height:26px;font-size:10px}
.brand-block-title{font-size:12px}
.brand-block-sub{display:none}
.workspace{padding:14px 14px 24px}
.seatmap-workspace{padding:12px 14px}
#statsBar{padding:12px 14px;gap:12px;border-radius:14px}
.control-bar{padding:10px 12px;gap:8px;border-radius:12px}
.kpi-strip-header{min-width:70px}
.kpi-strip-title{font-size:12px}
.kpi-strip-desc{display:none}
.kpi-strip-item{padding:0 8px}
.kpi-strip-item strong{font-size:15px}
.kpi-strip-item span{font-size:9px}
.kpi-strip-list{grid-template-columns:repeat(5,1fr)}
.seat{width:auto;height:44px;border-radius:8px}
.seat-name{font-size:10px}
.seat-dept{font-size:7px}
.dept-row-top{grid-template-columns:100px 100px 100px 1fr 1fr}
.dept-row-bottom{grid-template-columns:100px 1fr 1fr}
.hall-layout{gap:20px 28px}
.seat-id{font-size:6px}
.office-grid{gap:3px}
.area-inner{padding:10px 10px}
.area-label{font-size:11px;margin-bottom:8px}
.dispatch-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.detail-fixed-area{right:12px;top:72px;bottom:12px;width:280px}
.employee-table-actions{align-items:flex-start;flex-direction:column}
.employee-table-buttons{width:100%;justify-content:flex-start}
.employee-batch-field{grid-template-columns:125px minmax(0,1fr)}
}

/* ============================================================
   登录页样式（独立命名空间，不受后台 App Shell 影响）
   ============================================================ */
#loginOverlay{position:fixed;inset:0;z-index:9999}
.login-page{position:fixed;inset:0;background-image:url("login-bg.jpg");background-size:cover;background-position:center left;background-repeat:no-repeat;background-color:#f0f5fc}
.login-page::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.28) 58%,rgba(255,255,255,.72) 100%);pointer-events:none;z-index:1}
.login-brand-area{position:absolute;top:3vh;left:3vw;z-index:10;display:flex;align-items:center;gap:12px}
.login-brand-logo{height:4vh;min-height:32px;width:auto;object-fit:contain;display:block}
.login-card-area{position:absolute;right:8%;top:50%;transform:translateY(-50%);z-index:5}
.login-card{width:min(440px,32vw);min-width:360px;padding:min(48px,3.5vw) min(48px,3.5vw);background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-radius:min(24px,1.8vw);border:1px solid rgba(240,245,255,.75);box-shadow:0 24px 70px rgba(37,99,235,.12)}
.login-title{font-size:min(28px,2vw);font-weight:700;color:#0f172a;margin-bottom:min(8px,.6vw)}
.login-platform-label{font-size:min(15px,1.1vw);font-weight:600;color:#2563eb;margin-bottom:min(10px,.7vw)}
.login-subtitle{font-size:min(13px,1vw);color:#64748b;margin-bottom:min(32px,2.4vw)}
.login-field{margin-bottom:min(20px,1.5vw)}
.login-field label{display:block;font-size:min(12px,.9vw);font-weight:600;color:#64748b;margin-bottom:min(6px,.5vw);text-transform:uppercase;letter-spacing:.3px}
.login-input-wrap{display:flex;align-items:center;gap:10px;padding:0 min(16px,1.2vw);height:min(50px,3.6vw);border:1px solid #e4e9f2;border-radius:min(12px,.9vw);background:#f8fafd;transition:all .2s}
.login-input-wrap:focus-within{border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.05)}
.login-input-wrap svg{color:#94a3b8;flex-shrink:0;width:min(16px,1.2vw);height:min(16px,1.2vw)}
.login-input-wrap:focus-within svg{color:#2563eb}
.login-input-wrap input{border:none;background:transparent;outline:none;font-size:min(14px,1.05vw);color:#1a2332;width:100%;font-family:inherit;height:100%}
.login-input-wrap input::placeholder{color:#c2cdd8}
.pwd-toggle{border:none;background:transparent;cursor:pointer;color:#94a3b8;padding:4px;display:flex;align-items:center;border-radius:4px}
.pwd-toggle:hover{color:#475569;background:rgba(0,0,0,.03)}
.login-remember{display:flex;align-items:center;gap:7px;font-size:min(12px,.9vw);color:#94a3b8;margin-bottom:min(28px,2vw);cursor:pointer}
.login-remember input{width:min(14px,1.1vw);height:min(14px,1.1vw);accent-color:#2563eb}
.login-btn{width:100%;height:min(50px,3.6vw);border:none;border-radius:min(12px,.9vw);background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:min(15px,1.1vw);font-weight:600;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(37,99,235,.18);transition:all .2s}
.login-btn:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 6px 20px rgba(37,99,235,.25);transform:translateY(-1px)}
.login-btn:active{transform:translateY(0)}
.login-btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.login-footer-text{text-align:center;font-size:min(11px,.8vw);color:#c2cdd8;margin-top:min(28px,2vw)}
.login-page-footer{position:fixed;bottom:2vh;right:3vw;font-size:min(11px,.8vw);color:#94a3b8;z-index:10}
.login-brand-text{display:none}
@media(max-width:1024px){.login-card-area{right:5%;}.login-card{min-width:320px}}
@media(max-width:600px){.login-card-area{right:50%;transform:translate(50%,-50%)}.login-card{min-width:280px;padding:32px 28px}}
