/* ══════ 云算盘全局视觉对齐 ══════ */
:root,body,*{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif!important}
body{background:#f5f7fb!important;font-size:.9rem!important}
h1{font-size:1.25rem!important}h2{font-size:1.1rem!important}h3{font-size:1rem!important}
input,select,textarea{border-radius:4px!important;border:1px solid #d1d5db!important;font-size:.88rem!important;padding:6px 10px!important}
button{border-radius:4px!important;font-size:.86rem!important;font-weight:500!important}
button:disabled{opacity:.5}
.login-shell{place-items:start!important;padding:60px 20px!important}
.login-card{border-radius:6px!important;border:1px solid #e5e7eb!important;background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.08)!important;padding:32px!important;width:400px!important}
.login-card h1{font-size:1.3rem!important;margin-bottom:20px!important}
.login-card label{font-size:.85rem!important;gap:4px!important}
.login-card input{padding:8px 12px!important;border-radius:4px!important;border:1px solid #d1d5db!important;height:38px!important}
.ledger-card,.dashboard-header{border-radius:6px!important;border:1px solid #e5e7eb!important;background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.06)!important}
/* 顶部栏 */
.ysp-topbar{display:flex!important;flex-flow:row nowrap!important;align-items:center;gap:12px;padding:0 16px;min-height:54px;background:linear-gradient(180deg,#1a2744,#152038)!important}
.ysp-brand-block{flex-shrink:0;gap:8px!important}
.ysp-logo-mark{width:30px!important;height:30px!important;font-size:.8rem!important}
.ysp-brand-copy{gap:1px!important}
.ysp-brand-name{font-size:.85rem!important}
.ysp-agency-name{font-size:.7rem!important;color:#8ea0c0!important}
.ysp-mode-indicator{display:none!important}
.ysp-company-search{flex:0 1 240px;min-width:140px}
.ysp-company-search input{height:32px!important;border-radius:3px!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.2)!important;color:#fff!important;font-size:.82rem!important}
.ysp-company-search input::placeholder{color:#8899bb!important}
.ysp-search-icon{color:#8899bb!important}
.ysp-primary-nav{flex-shrink:0;margin-left:auto!important;gap:0!important}
.ysp-primary-nav button{color:#c8d4e8!important;font-size:.84rem!important;font-weight:600!important;padding:0 11px!important;height:54px;border-radius:0!important;background:transparent!important}
.ysp-primary-nav button.is-active,.ysp-primary-nav button[aria-current=page]{color:#4da3ff!important}
.ysp-primary-nav button.is-active::after,.ysp-primary-nav button[aria-current=page]::after{position:absolute;bottom:0;left:6px;right:6px;height:3px;background:#4da3ff;content:''}
.ysp-user-tools{flex-shrink:0;color:#c8d4e8!important;font-size:.82rem!important;min-width:auto!important}
.ysp-user-tools .ysp-current-company{display:none!important}
.ysp-user-tools .ysp-tool-dot{display:none!important}
/* 服务企业面板 */
.service-enterprise-panel{margin-top:0!important;border-radius:0!important;border:0!important;background:#fff!important;box-shadow:none!important}
.service-enterprise-header{display:flex!important;align-items:center;justify-content:space-between;background:#fff!important;padding:8px 16px!important;border-bottom:1px solid #e5e7eb!important}
.service-enterprise-tabs{display:flex!important;gap:0!important}
.service-enterprise-tabs button{padding:8px 18px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#6b7280!important;font-size:.88rem!important;font-weight:600!important;position:relative}
.service-enterprise-tabs button.is-active{color:#1d4ed8!important}
.service-enterprise-tabs button.is-active::after{position:absolute;bottom:0;left:8px;right:8px;height:3px;background:#1d4ed8;content:''}
.service-enterprise-tab-count{background:#e5e7eb;color:#6b7280;border-radius:10px;padding:0 7px;font-size:.72rem;margin-left:6px}
.service-enterprise-tools{padding:0!important}
.service-enterprise-tools button{height:32px!important;border-radius:4px!important}
.service-enterprise-search input{height:32px!important;width:240px!important;border:1px solid #d1d5db!important;border-radius:4px!important;font-size:.84rem!important}
.service-enterprise-table-wrap{padding:0!important}
.service-enterprise-table{font-size:.86rem!important;border-collapse:collapse!important}
.service-enterprise-table thead th{background:#f9fafb!important;border-bottom:1px solid #e5e7eb!important;border-right:1px solid #e5e7eb!important;padding:8px 10px!important;color:#6b7280!important;font-weight:600!important;font-size:.78rem!important;text-align:left!important;white-space:nowrap!important}
.service-enterprise-table thead th:last-child{border-right:0!important}
.service-enterprise-table tbody td{padding:8px 10px!important;border-bottom:1px solid #f3f4f6!important;border-right:1px solid #f3f4f6!important;white-space:nowrap!important}
.service-enterprise-table tbody td:last-child{border-right:0!important}
.service-enterprise-table tbody tr:hover td{background:#f9fafb!important}
.service-enterprise-actions{display:flex;gap:10px}
.service-enterprise-actions a,.service-enterprise-actions button{color:#2563eb!important;background:transparent!important;border:0!important;padding:2px 6px!important;font-size:.84rem!important;cursor:pointer;text-decoration:none!important}
/* 分页 */
.fixed-table-pagination{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid #e5e7eb;color:#6b7280;font-size:.8rem}
.fixed-table-pagination ul{display:flex;gap:4px;list-style:none;margin:0;padding:0}
.fixed-table-pagination li{width:26px;height:26px;display:flex;align-items:center;justify-content:center;border:1px solid #d1d5db;border-radius:4px;cursor:pointer;font-size:.76rem;background:#fff}
.fixed-table-pagination li.active{background:#1d4ed8!important;color:#fff!important;border-color:#1d4ed8!important}
/* 详情面板 */
.detail-panel{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:6px!important;color:#374151!important;box-shadow:none!important;padding:16px!important;display:block!important;margin-top:0!important}
.detail-panel .eyebrow,.detail-panel dt{color:#6b7280!important}
.detail-panel h2,.detail-panel h3{color:#111827!important;margin-bottom:8px!important}
/* 工作区 */
.workspace-panel{border-radius:2px!important;box-shadow:0 1px 3px rgba(0,0,0,.04)!important;border:1px solid #e5e7eb!important}
.billentry-overview-grid{padding:12px 16px!important;gap:10px!important}
.financial-statement-card{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:6px!important;padding:12px 14px!important}
.billentry-table-wrap{padding:12px 16px!important}
.billentry-table{font-size:.85rem!important;border-collapse:collapse!important}
.billentry-table thead th{background:#f9fafb!important;border-bottom:1px solid #d1d5db!important;padding:7px 9px!important;color:#6b7280!important;font-size:.78rem!important;font-weight:600!important}
.billentry-table tbody td{padding:7px 9px!important;border-bottom:1px solid #f3f4f6!important}
.billentry-table tbody tr:hover td{background:#f9fafb!important}
/* 运营面板 */
.service-enterprise-progress-panel{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:6px!important;padding:16px!important}
.service-enterprise-right{padding:16px!important;overflow-y:auto}
/* 顶部栏业务工作台二级导航 */
.ysp-console-main{padding:16px!important}
.ysp-console-summary{border-radius:4px!important;border:1px solid #e5e7eb!important;background:#fff!important;padding:12px 16px!important}
/* 报表筛选 */
.report-filter-form{padding:10px 16px!important;gap:10px!important;border-bottom:1px solid #e5e7eb!important}
.report-filter-form label{font-size:.8rem!important;gap:3px!important}
.report-filter-form input,.report-filter-form select{height:32px!important;border:1px solid #d1d5db!important;border-radius:4px!important;font-size:.84rem!important}
/* 子导航 */
.workspace-subnav{padding:0 16px!important;border-bottom:1px solid #e5e7eb!important;background:#fff!important}
.workspace-subnav button{color:#6b7280!important;background:transparent!important;border:0!important;border-radius:0!important;padding:10px 14px!important;font-size:.84rem!important;font-weight:500!important;position:relative}
.workspace-subnav button[aria-pressed=true]{color:#1d4ed8!important}
.workspace-subnav button[aria-pressed=true]::after{position:absolute;bottom:0;left:0;right:0;height:2px;background:#1d4ed8;content:''}
/* 进销存侧边栏（覆盖横排为竖排） */
.billentry-business-panel>.workspace-subnav{display:flex!important;flex-direction:column!important;width:180px!important;float:left;min-height:400px;border-right:1px solid #e5e7eb!important;border-bottom:0!important;padding:8px 0!important}
.billentry-business-panel>.workspace-subnav+*{margin-left:180px}
/* 做账页分类标签 */
.billentry-category-nav{display:flex!important;gap:2px!important;padding:6px 12px!important;border-bottom:1px solid #e5e7eb!important;flex-wrap:wrap!important;background:#fff!important}
.billentry-category-nav button{background:transparent!important;border:0!important;border-radius:4px!important;color:#6b7280!important;font-size:.82rem!important;padding:4px 10px!important;cursor:pointer;white-space:nowrap}
.billentry-category-nav button.active{background:#eff6ff!important;color:#1d4ed8!important;font-weight:600!important}
.billentry-category-count{display:inline-block;min-width:16px;text-align:center;color:#1d4ed8!important;font-weight:700;margin-right:2px}
/* 做账页期间导航 */
.billentry-period-nav{display:flex!important;align-items:center!important;gap:6px!important;padding:6px 12px!important;font-size:.84rem!important}
.billentry-period-current{font-weight:700;font-size:.9rem}
/* 单据汇总行 */
.billentry-summary-strip{display:flex!important;align-items:center!important;gap:12px!important;padding:6px 14px!important;background:#f9fafb!important;border-bottom:1px solid #e5e7eb!important;font-size:.8rem!important;color:#374151!important;flex-wrap:wrap!important}
.billentry-summary-strip button{border:1px solid #d1d5db!important;background:#fff!important;color:#374151!important;padding:2px 10px!important;font-size:.78rem!important;height:26px!important}
.billentry-summary-strip span{margin-right:4px;white-space:nowrap}
/* 做账页表格列宽 */
.billentry-bill-panel .billentry-table thead th:first-child,.billentry-bill-panel .billentry-table tbody td:first-child{width:40px;text-align:center}
/* 做账页表头 */
.billentry-table-heading{padding:8px 14px!important;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7eb!important}
.billentry-table-heading h3{font-size:.9rem!important;margin:0!important}
.billentry-table-heading-meta{font-size:.78rem!important;color:#6b7280!important}
/* 顶部栏搜索框预填企业名 */
.ysp-company-search input[value]:not([value=""]){font-weight:600!important;color:#fff!important}
/* 工具栏按钮 */
.billentry-quick-toolbar{display:flex!important;gap:6px!important;padding:6px 12px!important;flex-wrap:wrap!important;border-bottom:1px solid #e5e7eb!important;background:#fafbfc!important}
.billentry-quick-toolbar button{border:1px solid #d1d5db!important;border-radius:4px!important;background:#fff!important;color:#374151!important;padding:4px 12px!important;font-size:.82rem!important;height:30px!important}
.billentry-quick-toolbar button.is-primary,.billentry-quick-toolbar button.billentry-tool-button.is-primary{background:#1d4ed8!important;color:#fff!important;border-color:#1d4ed8!important}
.billentry-quick-toolbar button.is-danger{color:#dc2626!important;border-color:#fca5a5!important}
/* 顶栏中企业搜索框中的企业名高亮 */
.ysp-finance-topbar .ysp-company-search input{font-weight:600!important}

/* 做账页二级顶栏（finance mode中的搜索框企业名高亮） */
.ysp-shell .ysp-topbar .ysp-company-search input{font-size:.84rem!important}
/* 单据分类标签行高 */
.billentry-category-nav button{height:32px!important;line-height:1!important}
/* 分类标签导航背景 */
.billentry-category-nav{background:#fafbfc!important}
/* 工具栏按钮对齐 */
.billentry-quick-toolbar-group{display:flex!important;gap:4px!important}
/* 单据筛选表单隐藏过多内部padding */
.billentry-document-filter{padding:8px 12px!important}
.billentry-document-filter label{flex-direction:row!important;align-items:center!important;gap:6px!important}
.billentry-document-filter input{width:140px!important;height:30px!important}
