/* ================= 馨雅ERP 红白色系 ================= */
:root{
  --red:#d0021b; --red-dark:#a80f16; --red-light:#fdecec; --red-mid:#f7b2b8;
  --bg:#f5f6f8; --card:#ffffff; --line:#e8e8e8; --txt:#333; --txt2:#777;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:14px;color:var(--txt);background:var(--bg)}
.hidden{display:none!important}
a{color:var(--red);text-decoration:none}
input,select,textarea{font-family:inherit;font-size:14px;padding:6px 10px;border:1px solid #ddd;border-radius:4px;outline:none;background:#fff;color:var(--txt)}
input:focus,select:focus,textarea:focus{border-color:var(--red)}
input[readonly]{background:#f7f7f7}
table{border-collapse:collapse;width:100%}
/* ---------- 按钮 ---------- */
.btn{display:inline-block;padding:7px 18px;border:1px solid #ddd;border-radius:4px;background:#fff;cursor:pointer;font-size:14px;color:var(--txt);user-select:none}
.btn:hover{border-color:var(--red);color:var(--red)}
.btn-primary{background:var(--red);border-color:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dark);color:#fff}
.btn-plain{border-color:var(--red);color:var(--red);background:var(--red-light)}
.btn-danger{background:#fff;border-color:#e0e0e0;color:#888}
.btn-danger:hover{border-color:var(--red);color:var(--red)}
.btn-sm{padding:4px 10px;font-size:12px}
.btn-block{display:block;width:100%}
.btn-mini{padding:2px 7px;font-size:12px;margin-right:4px}
/* ---------- 登录页 ---------- */
.login-page{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#b00112 0%,#d0021b 45%,#e8455a 100%)}
.login-box{width:380px;background:#fff;border-radius:10px;padding:36px 40px 30px;box-shadow:0 18px 60px rgba(90,0,8,.45)}
.login-brand{text-align:center;margin-bottom:26px}
.login-logo{width:220px;max-width:80%;height:auto;display:block;margin:0 auto 16px}
.brand-mark{width:56px;height:56px;margin:0 auto 12px;background:var(--red);color:#fff;border-radius:12px;font-size:30px;line-height:56px;font-weight:700}
.brand-mark.small{width:36px;height:36px;font-size:20px;line-height:36px;border-radius:8px;margin:0}
.login-brand h1{font-size:17px;color:var(--txt)}
.login-brand p{font-size:12px;color:var(--txt2);margin-top:4px}
.field-row{display:flex;align-items:center;margin-bottom:14px}
.field-row label{width:56px;color:var(--txt2);flex:none}
.field-row input{flex:1}
.login-error{color:var(--red);font-size:12px;margin:-6px 0 8px}
.login-tip{text-align:center;color:#aaa;font-size:12px;margin-top:14px}
.login-footer{position:absolute;bottom:18px;color:rgba(255,255,255,.75);font-size:12px}
/* ---------- 布局 ---------- */
.main-page{display:flex;height:100vh}
.sidebar{width:180px;flex:none;background:linear-gradient(180deg,#c40e1f 0%,#d0021b 60%,#e2354a 100%);display:flex;flex-direction:column}
.side-brand{display:flex;flex-direction:column;align-items:center;gap:7px;padding:15px 12px 13px;border-bottom:1px solid rgba(255,255,255,.18)}
.side-logo{width:100%;max-width:152px;height:auto;display:block}
.side-brand .brand-mark{background:#fff;color:var(--red);margin:0}
.side-menu{flex:1;overflow-y:auto;padding:10px 0}
.side-menu::-webkit-scrollbar{width:4px}
.side-menu::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3)}
.menu-group-title{padding:10px 18px 4px;color:rgba(255,255,255,.55);font-size:11px}
.menu-item{display:flex;align-items:center;gap:10px;padding:11px 18px;color:rgba(255,255,255,.88);cursor:pointer;font-size:14px}
.menu-item .mi-icon{width:20px;text-align:center;opacity:.9}
.menu-item:hover{background:rgba(255,255,255,.12)}
.menu-item.active{background:#fff;color:var(--red);font-weight:700}
.side-user{padding:14px 18px;border-top:1px solid rgba(255,255,255,.18);color:#fff;font-size:13px;display:flex;justify-content:space-between;align-items:center}
.side-user a{color:rgba(255,255,255,.75);font-size:12px}
.side-user a:hover{color:#fff}
.main-wrap{flex:1;display:flex;flex-direction:column;min-width:0}
.topbar{height:52px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;flex:none}
.top-title{font-size:16px;font-weight:700;border-left:4px solid var(--red);padding-left:10px}
.top-right{display:flex;align-items:center;gap:12px}
.top-company{display:inline-flex;align-items:center;gap:8px;color:var(--red);font-weight:700;font-size:13px;letter-spacing:.5px;background:#FDF1F2;border:1px solid rgba(208,2,27,.14);padding:5px 14px;border-radius:16px}
.top-company::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px rgba(208,2,27,.15)}
.top-date{display:inline-flex;align-items:center;gap:7px;color:#667085;font-size:12px;background:#F5F6F8;border-radius:16px;padding:5px 12px}
.top-date::before{content:"";width:6px;height:6px;border-radius:50%;background:#C9CDD4}
.page-content{flex:1;overflow:auto;padding:18px 22px}
/* ---------- 通用组件 ---------- */
.card{background:var(--card);border-radius:8px;padding:18px;margin-bottom:16px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.card h3{font-size:15px;margin-bottom:14px;padding-left:8px;border-left:3px solid var(--red)}
.stat-row{display:flex;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.stat-card{flex:1;min-width:150px;background:#fff;border-radius:8px;padding:18px;box-shadow:0 1px 3px rgba(0,0,0,.05);border-top:3px solid var(--red)}
.stat-card .sc-label{color:#999;font-size:13px}
.stat-card .sc-value{font-size:24px;font-weight:700;color:var(--red);margin-top:6px}
.stat-card .sc-sub{font-size:12px;color:#bbb;margin-top:4px}
.sc-detail{color:var(--red);cursor:pointer;font-size:12px}
.sc-detail:hover{text-decoration:underline}
.form-inline{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;margin-bottom:14px}
.form-inline label{color:var(--txt2)}
.form-inline .req::before{content:"* ";color:var(--red)}
.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:10px}
.table-box{overflow-x:auto}
table.data{font-size:13px}
table.data th{background:var(--red-light);color:var(--red-dark);font-weight:700;padding:9px 10px;border:1px solid #f3d5d8;white-space:nowrap;text-align:left}
table.data td{padding:8px 10px;border:1px solid #eee}
table.data tbody tr:hover td{background:#fff8f8}
table.data tfoot td{background:#fafafa;font-weight:700;border:1px solid #eee;padding:8px 10px}
.tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px}
.tag-red{background:var(--red-light);color:var(--red)}
.tag-green{background:#e8f7ee;color:#1a9e55}
.tag-gray{background:#f2f2f2;color:#888}
.tag-blue{background:#e9f2fd;color:#2d6cdf}
.tag-orange{background:#fff4e8;color:#e8853d}
.tag-purple{background:#f3eefc;color:#8256d0}
/* 产品资料页 */
.p-code{color:#999;font-family:Consolas,Menlo,monospace;font-size:12px;letter-spacing:.3px}
.p-name{font-weight:600}
.p-params{color:#8a8a8a;font-size:12.5px}
.pt-phone{font-family:Consolas,Menlo,monospace;font-size:12.5px;color:#555}
.p-low{color:var(--red)}
/* 表格容器圆角 + 斑马纹 */
.table-box{border:1px solid #f0e6e7;border-radius:8px}
table.data tbody tr:nth-child(even) td{background:#fdfbfb}
table.data tfoot td{border-top:2px solid #f3d5d8}
.money{color:var(--red);font-weight:700}
.empty-tip{text-align:center;color:#bbb;padding:30px 0}
/* ---------- 弹窗 ---------- */
.modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:100;display:flex;align-items:center;justify-content:center}
.modal-box{background:#fff;border-radius:8px;min-width:420px;max-width:900px;max-height:86vh;display:flex;flex-direction:column;box-shadow:0 10px 40px rgba(0,0,0,.25)}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid var(--line)}
.modal-head b{font-size:15px;color:var(--red)}
.modal-close{cursor:pointer;color:#999;font-size:20px;line-height:1}
.modal-close:hover{color:var(--red)}
.modal-body{padding:18px 20px;overflow:auto}
.modal-foot{padding:12px 20px;border-top:1px solid var(--line);text-align:right}
/* ---------- 提示 ---------- */
.toast{position:fixed;top:70px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.78);color:#fff;padding:10px 24px;border-radius:6px;z-index:200;font-size:14px}
/* ---------- 打印 ---------- */
.print-area{display:none}
@media print{
  body *{visibility:hidden}
  .print-area,.print-area *{visibility:visible}
  .print-area{display:block;position:absolute;inset:0;padding:20px}
  .print-area table{width:100%;border-collapse:collapse}
  .print-area th,.print-area td{border:1px solid #333;padding:5px 8px;font-size:12px}
  .print-head{text-align:center;margin-bottom:14px}
  .print-head h2{font-size:18px}
}
/* 选择商品弹窗 */
.pick-cat{padding:7px 12px;cursor:pointer;font-size:13px;border-radius:4px;color:#444;white-space:nowrap}
.pick-cat:hover{background:var(--red-light);color:var(--red)}
.pick-cat.active{background:var(--red);color:#fff;font-weight:700}
.pp-name{color:var(--red);cursor:pointer;font-weight:700}
.pp-name:hover{text-decoration:underline}
.pager{display:flex;align-items:center;gap:4px;margin-top:10px;font-size:13px;color:#666;flex-wrap:wrap}
/* 明细行编辑表 */
table.bill-table th{min-width:60px}
table.bill-table input{width:100%;min-width:70px;border:1px solid transparent;background:transparent;padding:4px 6px}
table.bill-table input:focus{border-color:var(--red);background:#fff}
.del-row{color:var(--red);cursor:pointer;font-weight:700}
/* 仪表盘 */
.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:1100px){.dash-grid{grid-template-columns:1fr}}
.list-line{display:flex;justify-content:space-between;padding:9px 4px;border-bottom:1px dashed #eee;font-size:13px}
.list-line:last-child{border-bottom:none}
.list-line .ll-tag{flex:none;margin-right:8px}

/* 合同模板富文本编辑器 */
.tpl-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px;border:1px solid #eee;border-bottom:none;background:#faf7f7;border-radius:6px 6px 0 0}
.tpl-toolbar .btn-sm{padding:3px 10px}
.tpl-toolbar select{padding:4px 6px;border:1px solid #ddd;border-radius:4px;background:#fff}
.tpl-color-wrap{display:inline-flex;align-items:center;justify-content:center;width:32px;height:28px;border:1px solid #ddd;border-radius:4px;background:#fff;cursor:pointer}
.tpl-color-wrap input[type=color]{width:24px;height:20px;border:none;padding:0;background:none;cursor:pointer}
.tpl-editor{min-height:340px;max-height:52vh;overflow:auto;padding:16px 20px;border:1px solid #eee;border-radius:0 0 6px 6px;background:#fff;font-family:SimSun,serif;font-size:14px;line-height:2;outline:none}
.tpl-editor:focus{border-color:#d0021b}
.tpl-editor p{margin:6px 0}
.tpl-editor table{border-collapse:collapse;width:100%;margin:10px 0}
.tpl-editor th,.tpl-editor td{border:1px solid #444;padding:5px 8px;font-size:13px}
/* 合同保存格式选择 */
.save-fmt{flex:1;text-align:center;padding:22px 10px;border:2px solid #eee;border-radius:8px;cursor:pointer;transition:all .15s}
.save-fmt:hover{border-color:#d0021b;background:#fff5f5;transform:translateY(-2px)}
.save-fmt .fmt-tip{color:#999;font-size:12px;margin-top:6px}

/* ---------- 首页·账户余额 ---------- */
.acc-sum{display:flex;align-items:center;justify-content:space-between;margin:-2px 0 12px;padding:11px 14px;border-radius:8px;
  background:linear-gradient(90deg,#fdecec 0%,#fff5f6 60%,#fff 100%);border:1px solid #f7dfe1}
.acc-sum span{font-size:12px;color:var(--txt2)}
.acc-sum b{font-size:19px;color:var(--red);letter-spacing:.4px;font-variant-numeric:tabular-nums}
.acc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.acc-item{position:relative;display:flex;align-items:center;gap:10px;padding:11px 12px 14px;border:1px solid #f0e7e8;
  border-radius:8px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.acc-item:hover{border-color:var(--red-mid);box-shadow:0 3px 12px rgba(208,2,27,.08)}
.acc-ic{width:32px;height:32px;border-radius:8px;flex:none;display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:700;background:var(--red-light);color:var(--red)}
.acc-ic.bk{background:#e9f2fd;color:#2d6cdf}
.acc-ic.el{background:#e8f7ee;color:#1a9e55}
.acc-ic.ot{background:#f2f2f2;color:#888}
.acc-main{flex:1;min-width:0}
.acc-name{font-size:13.5px;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acc-type{font-size:11px;color:#b3b3b3;margin-top:2px}
.acc-val{font-size:15px;font-weight:700;color:var(--red);white-space:nowrap;font-variant-numeric:tabular-nums}
.acc-val.zero{color:#c4c4c4;font-weight:600}
.acc-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:#f8f3f4}
.acc-bar em{display:block;height:100%;background:linear-gradient(90deg,var(--red-mid),var(--red));border-radius:0 3px 3px 0}
@media(max-width:1420px){.acc-grid{grid-template-columns:1fr}}
/* 财务页未结清单据：左应收右应付 */
@media(max-width:1100px){.fin-unpaid-grid{grid-template-columns:1fr !important}}

/* 报表页往来单位对账筛选条 */
.pt-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:10px 12px 11px;background:#FDF9F9;border:1px solid #F3E7E8;border-radius:10px}
.ptf-item label{display:block;font-size:11px;color:#999;margin:0 0 4px 2px;letter-spacing:.5px}
.ptf-item select,.ptf-item input{padding:7px 10px;border:1px solid #EADDE0;border-radius:8px;background:#fff;font-size:13.5px;transition:border-color .15s,box-shadow .15s}
.ptf-item select:hover,.ptf-item input:hover{border-color:#E0A9AE}
.ptf-item select:focus,.ptf-item input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,18,27,.08)}
.ptf-div{width:1px;align-self:stretch;background:#EFDDE0;margin:2px 6px}
.ptf-dash{font-size:12.5px;color:#B98A8E;padding:0 1px 9px}
.ptf-hint{font-size:11.5px;color:#C9A5A8;padding:0 2px 9px}
@media(max-width:900px){.pt-filter{align-items:stretch}.ptf-div{display:none}.ptf-hint,.ptf-dash{display:none}.ptf-item{flex:1 1 45%}.ptf-item select,.ptf-item input{width:100%}}

/* 自定义日期日历（红白主题） */
.dp-pop{position:fixed;z-index:9999;width:258px;background:#fff;border:1px solid #F0DDDF;border-radius:12px;box-shadow:0 12px 34px rgba(140,20,28,.16);padding:12px 12px 9px;user-select:none}
.dp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.dp-head span{font-weight:bold;font-size:13.5px;color:#222;letter-spacing:1px}
.dp-nav{width:25px;height:25px;line-height:23px;text-align:center;border:1px solid #F0DDDF;border-radius:7px;color:#B3121B;cursor:pointer;font-size:14px;font-weight:normal;transition:background .15s}
.dp-nav:hover{background:#FDECEC}
.dp-week,.dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.dp-week span{font-size:11px;color:#C99;padding:3px 0 5px}
.dp-week .dp-we{color:#E08A8E}
.dp-d{height:29px;line-height:29px;font-size:12.5px;border-radius:7px;cursor:pointer;color:#333;font-weight:normal;margin:0}
.dp-d:hover{background:#FDECEC;color:#B3121B}
.dp-d.dim{color:#d5c9ca;cursor:default;background:none}
.dp-d.today{box-shadow:inset 0 0 0 1px #E0A9AE;color:#B3121B}
.dp-d.sel{background:var(--red);color:#fff !important;font-weight:bold;box-shadow:0 3px 8px rgba(179,18,27,.3)}
.dp-foot{display:flex;justify-content:space-between;border-top:1px solid #F7ECEC;margin-top:7px;padding-top:6px}
.dp-foot a{font-size:12px;color:#999;cursor:pointer;padding:2px 10px;border-radius:6px}
.dp-foot a:hover{background:#FDF1F2;color:#B3121B}
input[type=date]{cursor:pointer}

/* 自定义下拉框（红白主题） */
.fsel{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border:1px solid #EADDE0;border-radius:8px;background:#fff;font-size:13.5px;color:#333;cursor:pointer;min-width:150px;transition:border-color .15s,box-shadow .15s;user-select:none}
.fsel:hover{border-color:#E0A9AE}
.fsel.open{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,18,27,.08)}
.fsel-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fsel-arrow{flex:none;width:0;height:0;border-left:4.5px solid transparent;border-right:4.5px solid transparent;border-top:5px solid #B98A8E;transition:transform .15s}
.fsel.open .fsel-arrow{transform:rotate(180deg)}
.fsel-pop{position:fixed;z-index:9998;background:#fff;border:1px solid #F0DDDF;border-radius:10px;box-shadow:0 12px 34px rgba(140,20,28,.16);padding:5px;max-height:262px;overflow:auto}
.fsel-item{padding:7px 12px;font-size:13px;color:#333;border-radius:7px;cursor:pointer;white-space:nowrap}
.fsel-item:hover{background:#FDECEC;color:#B3121B}
.fsel-item.sel{background:var(--red);color:#fff;font-weight:bold}

/* 报表页商品汇总/按单位汇总左右分栏 */
@media(max-width:1100px){.pt-sum-grid{grid-template-columns:1fr !important}}

/* ================= 设置页美化 ================= */
.st-h3sub{font-size:12px;color:#c0b4b6;font-weight:normal;margin-left:10px;letter-spacing:.5px}
.st-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:12px 14px;margin-bottom:14px}
.st-field label{display:block;font-size:11.5px;color:#999;margin:0 0 5px 2px;letter-spacing:.5px}
.st-field input{width:100%;padding:8px 11px;border:1px solid #EADDE0;border-radius:8px;background:#fff;font-size:13.5px;transition:border-color .15s,box-shadow .15s}
.st-field input:hover{border-color:#E0A9AE}
.st-field input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,18,27,.08);outline:none}
.st-span2{grid-column:1/-1}
.st-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.st-cols .card{margin-bottom:0}
.st-opts-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:12px}
.st-lab{display:block;font-size:12.5px;color:#666;font-weight:bold;margin-bottom:6px}
.st-lab i{font-style:normal;font-weight:normal;color:#bbb;font-size:11.5px;margin-left:8px}
.st-opts-grid textarea{width:100%;padding:9px 12px;border:1px solid #EADDE0;border-radius:8px;background:#fff;font-size:13px;line-height:1.9;transition:border-color .15s,box-shadow .15s;resize:vertical}
.st-opts-grid textarea:hover{border-color:#E0A9AE}
.st-opts-grid textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,18,27,.08);outline:none}
.st-hint{color:#9a9a9a;font-size:12px;line-height:1.9;margin:0 0 12px}
.st-inline-row{display:flex;align-items:center;gap:10px;margin:2px 0 14px}
.st-inline-row label{font-size:13px;color:#666;font-weight:bold}
.st-inline-row input{padding:7px 10px;border:1px solid #EADDE0;border-radius:8px;font-size:13.5px;width:80px;transition:border-color .15s,box-shadow .15s}
.st-inline-row input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,18,27,.08);outline:none}
.st-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.st-actions-div{width:1px;height:22px;background:#EFE3E5;margin:0 4px}
.st-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:10px 12px;border:1px dashed #EAD6D8;border-radius:10px;background:#FEFBFB;margin-bottom:12px}
.st-chips>b{font-size:11.5px;color:#B98A8E;font-weight:bold;margin-right:4px;letter-spacing:.5px}
.st-chip{font-size:11.5px;color:var(--red);background:var(--red-light);border:1px solid #F0D4D6;border-radius:20px;padding:3px 10px;cursor:pointer;user-select:none;transition:background .15s,color .15s,border-color .15s}
.st-chip:hover{background:var(--red);color:#fff;border-color:var(--red)}
@media(max-width:1000px){.st-cols,.st-opts-grid{grid-template-columns:1fr}}

/* 设置页：编号前缀/备份/备注选项/付款方式四模块一行 */
.st-row4{display:grid;grid-template-columns:1fr 1.15fr 1.05fr 1.05fr;gap:16px;margin-bottom:16px;align-items:stretch}
.st-row4 .card{margin-bottom:0;display:flex;flex-direction:column}
.st-row4 .card textarea{flex:1;width:100%;padding:9px 12px;border:1px solid #EADDE0;border-radius:8px;background:#fff;font-size:13px;line-height:1.9;transition:border-color .15s,box-shadow .15s;resize:vertical}
.st-row4 .card textarea:hover{border-color:#E0A9AE}
.st-row4 .card textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,18,27,.08);outline:none}
.st-row4 .card .st-lab{margin-bottom:8px}
.st-row4-foot{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 2px}
.st-row4-foot label{font-size:13px;color:#666;font-weight:bold}
.st-row4-foot input{padding:7px 10px;border:1px solid #EADDE0;border-radius:8px;font-size:13.5px;width:80px;transition:border-color .15s,box-shadow .15s}
.st-row4-foot input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,18,27,.08);outline:none}
@media(max-width:1200px){.st-row4{grid-template-columns:1fr 1fr}.st-row4-foot{grid-column:1/-1}}
@media(max-width:720px){.st-row4{grid-template-columns:1fr}}


/* ===== 账号权限授权（新增账号 / 权限设置弹窗） ===== */
.perm-wrap { border:1px solid #F0DDDF; border-radius:8px; background:#FFFBFB; padding:12px 14px; margin:12px 0 0; }
.perm-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.perm-head b { font-size:13.5px; color:#B3121B; }
.perm-head > span:first-of-type { font-size:12px; color:#888; flex:1; }
.perm-btns { display:flex; gap:6px; }
.perm-disabled { opacity:.62; }
.perm-group { margin-top:10px; }
.perm-gtitle { font-size:12px; font-weight:bold; color:#555; border-left:3px solid #B3121B; padding-left:7px; margin-bottom:6px; }
.perm-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px 10px; }
.perm-item { display:flex; align-items:center; gap:6px; font-size:12.5px; color:#333; cursor:pointer; padding:3px 4px; border-radius:5px; }
.perm-item:hover { background:#FDF1F2; }
.perm-item input { accent-color:#B3121B; width:14px; height:14px; cursor:pointer; }
.perm-item input:disabled { cursor:not-allowed; }
@media (max-width:780px) { .perm-grid { grid-template-columns:repeat(2,1fr); } }


/* ===== 云端联网版：顶栏连接状态 ===== */
.cloud-status { display:inline-flex; align-items:center; font-size:12px; color:#1D9E75; background:#F3F8F5; border:1px solid #E0EDE6; border-radius:999px; padding:4px 11px; white-space:nowrap; line-height:1.2; }
.login-cloud-tip { text-align:center; font-size:12px; color:#888; margin:10px 0 0; }
