/* Icons and dimensions follow RTACLUB V3.5 最新HTML设计原型.html. */
.stat:before{font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
.prototype-icon{font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;font-size:inherit;line-height:1;display:inline-block;vertical-align:middle}
.shortcut-ico{width:56px;height:56px;flex-basis:56px;font-size:27px;background:#e8f7ef;border:0;box-shadow:none}
.shortcut:nth-child(2) .shortcut-ico{background:#fff3e8}.shortcut:nth-child(3) .shortcut-ico{background:#eef1ff}
.module-tile .bigico{font-size:29px;margin-bottom:9px}
.nav button .navico{width:28px;height:28px;background:#ffffff12;border-radius:8px;font-size:15px}.nav button.active .navico{background:#20b4772b}
/* Preserve the useful additions without changing the prototype's visual theme. */
.field:has([required])>label:after{content:' *';color:var(--red)}.field[hidden]{display:none!important}
.gift-photo{font-size:12px;display:inline-block;position:relative;padding:0;border:0;background:transparent;border-radius:8px;cursor:pointer}
.gift-thumb{width:72px;height:72px;display:grid;place-items:center;border:1px solid var(--line);background:#f7f9fa;border-radius:8px;overflow:hidden}
.gift-thumb img{width:68px;height:68px;object-fit:contain;background:white}.gift-thumb.loaded{background:white}
.gift-photo:hover .gift-thumb{border-color:#a9dfc5}.photo-empty,.photo-loading{font-size:11px;color:#98a3ad;white-space:normal;line-height:1.5}
.photo-count{position:absolute;right:3px;bottom:3px;border-radius:4px;padding:1px 4px;background:#17232dcc;color:white;font-size:9px}
.modalfoot{flex-wrap:wrap}.form-error{flex:1 0 100%;border:1px solid #f1cdd1;border-radius:8px;background:#fff0f1;color:#c8404e;padding:10px 13px;font-size:13px;line-height:1.6;margin-bottom:5px}
.dispatch-guidance{padding:12px 14px;background:#f0faf5;border:1px solid #dcefe5;border-radius:10px;margin-bottom:18px}.dispatch-guidance b{display:block;color:#21835f;font-size:13px;margin-bottom:4px}.dispatch-guidance span{color:var(--muted);font-size:12px;line-height:1.6}
.flow-hint{padding:12px 14px;border-radius:10px;background:#f6f9fa;color:var(--muted);font-size:12px;line-height:1.8;margin-top:16px}.flow-hint b{color:#536170}
.deletion-context{padding:13px 15px;background:#fff8ec;border:1px solid #f4e7cf;border-radius:10px;margin-bottom:16px}.deletion-context p{font-size:12px;color:#94651f;margin-bottom:0}
@media(max-width:620px){.gift-thumb{width:62px;height:62px}.gift-thumb img{width:58px;height:58px}}

/* The simplified workflows retain the original prototype palette and icons. */
.simple-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.simple-subtitle{font-size:15px;margin:22px 0 14px}.simple-add{display:flex;align-items:flex-end}.line-qty{width:84px;min-width:0}.simple-initial summary{cursor:pointer;font-size:14px;font-weight:600}.simple-initial .actions{padding:8px 0}.simple-initial[open]{padding-bottom:18px}#outboundLines{margin-top:18px}

.modal:has(#outboundLines){display:flex;flex-direction:column;overflow:hidden}.modal:has(#outboundLines) .modalbody{min-height:0;overflow:auto}.modal:has(#outboundLines) .modalhead,.modal:has(#outboundLines) .modalfoot{flex-shrink:0}

/* 员工账号与权限：勾选项用三列网格，与原型卡片风格一致 */
.perm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px;margin:14px 0;padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:#fbfdfc}
.perm-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#334155}
.perm-item input{width:16px;height:16px;accent-color:#18ad75}
@media(max-width:620px){.perm-grid{grid-template-columns:1fr 1fr}}

/* 业务权限列可直接点选 */
.perm-cell{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.perm-chip{display:inline-block;padding:2px 8px;border-radius:6px;background:#eaf7f0;color:#17855c;font-size:12px;line-height:1.7;white-space:nowrap}
.perm-chip.all{background:#17855c;color:#fff}
.perm-click{cursor:pointer;border-radius:8px;padding:4px 6px;margin:-4px -6px;transition:background .15s}
.perm-click:hover,.perm-click:focus-visible{background:#f1f8f4;outline:none}
.perm-edit{color:#18ad75;font-size:12px;font-weight:600}

/* 员工账号与权限：弹窗加宽，业务权限列给足宽度，操作按钮横排、行高统一 */
.modal:has(.people-perm){width:min(1120px,96vw)}
.people-perm table{min-width:0;width:100%}
.people-perm th,.people-perm td{vertical-align:middle}
.people-perm tbody td{height:76px}
.people-perm th:nth-child(1),.people-perm td:nth-child(1){width:110px}
.people-perm th:nth-child(2),.people-perm td:nth-child(2){width:132px}
.people-perm th:nth-child(3),.people-perm td:nth-child(3){width:180px}
.people-perm th:nth-child(4),.people-perm td:nth-child(4){width:70px}
.people-perm th:nth-child(5),.people-perm td:nth-child(5){min-width:250px}
.people-perm th:nth-child(6),.people-perm td:nth-child(6){width:280px}
.people-perm td:nth-child(6) .btn{display:inline-flex;align-items:center;justify-content:center;margin:0 6px 6px 0;padding:5px 10px;font-size:12px;min-height:30px;line-height:1.2}
.people-perm td select{display:block;margin:0 auto;text-align:center;text-align-last:center;font-size:13px;padding:7px 10px;line-height:1.45;min-width:150px;height:34px}
.people-perm .perm-chip{font-size:12.5px;padding:2px 8px;line-height:1.5}
.people-perm td:nth-child(5) .desc{font-size:12.5px;line-height:1.65}
@media(max-width:760px){
 .modal:has(.people-perm){width:100%}
 .people-perm table{min-width:780px}
 .people-perm tbody td{height:auto}
 .people-perm td:nth-child(6) .btn{margin:0 4px 4px 0;padding:4px 8px;font-size:11px;min-height:26px}
}

/* 登记入库里的现场建档入口 */
.quick-create{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:6px;padding:12px 14px;border:1px dashed #cfe6da;border-radius:10px;background:#f7fcf9;font-size:12px;color:#5b6b78}

/* 库存中心：按分类的柱状图（物品/礼品/工服三组，沿用原型绿／橙／靛配色） */
.cat-chart{display:flex;align-items:stretch;justify-content:center;gap:34px;padding:20px 18px 14px;background:linear-gradient(180deg,#fbfdfc 0,#fff 70%);border-radius:0 0 12px 12px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.cat-group{flex:0 0 auto;min-width:0;width:max-content;display:flex;flex-direction:column;align-items:center;padding:4px 12px 6px}
.cat-bars{width:auto}
.cat-group+.cat-group{border-left:1px solid #eef2f4}
.cat-head{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#33414f;font-weight:600;margin:0 auto 14px;padding:4px 12px;border-radius:999px;background:#f4f8f6;border:1px solid #e8f0ec;width:max-content}
.cat-head b{color:#172533;font-size:13px;font-variant-numeric:tabular-nums}
.cat-bars{display:grid;grid-auto-flow:column;grid-auto-columns:62px;justify-content:center;align-items:end;column-gap:11px;height:148px;position:relative;background:repeating-linear-gradient(to top,#f0f4f6 0 1px,transparent 1px 29px);border-radius:8px}
.cat-bars:before{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:#dfe7ec;z-index:1}
.cat-col{flex:0 0 auto;width:62px;display:flex;flex-direction:column;align-items:center;gap:7px}
.cat-bar{width:46px;height:126px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;background:none;border:0;padding:0;cursor:pointer;border-radius:8px}
.cat-bar:hover .bar-fill{filter:brightness(1.07)}
.bar-value{font-size:12.5px;font-weight:700;color:#46586a;font-variant-numeric:tabular-nums}
.bar-fill{width:100%;max-width:46px;border-radius:7px 7px 3px 3px;box-shadow:0 5px 12px #152b3a12;transition:height .4s ease,filter .15s ease}
.bar-ico{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-size:12px;flex-shrink:0}
.cat-name{font-size:11px;color:#7c8b99;line-height:1.25;text-align:center;word-break:break-all;min-height:28px}
@media(max-width:760px){
 .cat-chart{justify-content:flex-start;gap:22px;padding:16px 8px 12px}
 .cat-group+.cat-group{border-left:0}
 .cat-head{margin-bottom:12px}
 .cat-bars{height:132px;grid-auto-columns:56px;column-gap:8px}
 .cat-bar{height:112px;width:42px}
 .cat-col{width:56px}
 .cat-name{font-size:10px}
 .bar-value{font-size:12px}
}


/* 礼品图片：空格子做成虚线绿框，提示可以直接点击上传 */
.gift-photo .gift-thumb{border-style:dashed;border-color:#cfe6da;transition:border-color .15s,background .15s}
.gift-photo:hover .gift-thumb,.gift-photo:focus-visible .gift-thumb{border-color:#20b477;background:#f4fbf7}
.photo-empty{color:#18ad75;font-weight:500}

/* 操作日志：收紧行高，摘要单行省略，操作按钮横排 */
.logs-table th{padding:10px 12px}
.logs-table td{padding:9px 12px;line-height:1.5;vertical-align:middle}
.logs-table td:nth-child(1),.logs-table th:nth-child(1){width:168px;white-space:nowrap}
.logs-table td:nth-child(2),.logs-table th:nth-child(2){width:92px;white-space:nowrap}
.logs-table td:nth-child(3),.logs-table th:nth-child(3){width:112px;white-space:nowrap}
.logs-table td:nth-child(4),.logs-table th:nth-child(4){width:132px;white-space:nowrap}
.logs-table td:nth-child(5){min-width:240px;max-width:560px}
.logs-table td:nth-child(5) .desc{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.logs-table td:nth-child(6),.logs-table th:nth-child(6){width:170px;white-space:nowrap}
.logs-table td:nth-child(6) .btn{display:inline-flex;align-items:center;justify-content:center;margin:0 4px 0 0;padding:4px 9px;font-size:12px;min-height:26px}
@media(max-width:760px){
 .logs-table td,.logs-table th{padding:8px 10px}
 .logs-table td:nth-child(6) .btn{margin:0 3px 3px 0}
}

/* 表格排版：表头与单元格统一居中；仅操作日志摘要与原始详情左对齐 */
.table-wrap th,.table-wrap td{text-align:center}
.table-wrap td pre,.table-wrap td .audit-text{text-align:left}
.logs-table td:nth-child(5),.logs-table td:nth-child(5) .desc{text-align:left}
/* 名称单元格里的小字说明（如「编号 1」）跟着居中，不要再被拉去左边 */
.table-wrap td .desc{text-align:center}

/* 消息中心：通知列表，内容完整换行、时间/状态/操作均匀排开，不再横向溢出 */
.note-toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}
.note-toolbar .btn{font-size:12px;padding:6px 14px;min-height:32px;line-height:1.3}
.note-list{display:flex;flex-direction:column;gap:10px}
.note-item{border:1px solid var(--line);border-radius:12px;padding:13px 15px;background:#fff}
.note-item.unread{border-color:#cfe8dd;background:#f6fcf9}
.note-text{font-size:13.5px;color:var(--ink);line-height:1.65;word-break:break-word;margin-bottom:10px;text-align:left}
.note-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.note-time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.note-act{margin-left:auto;display:inline-flex}
.note-act .btn{font-size:12px;padding:5px 12px;min-height:28px;line-height:1.3}
@media(max-width:760px){
 .note-item{padding:12px 13px}
 .note-text{font-size:13px}
 .note-act{margin-left:0;width:100%}
 .note-act .btn{width:100%;justify-content:center}
}

/* 出库单：类型标签（工服/礼品/其他）与筛选工具条 */
.pill.blue{background:#eaf1fd;color:#2f6bd6}
.pill.gray{background:#eef1f4;color:#6b7787}
.doc-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.doc-toolbar .simple-tabs{flex:1 1 auto;min-width:0}
.doc-toolbar .btn{font-size:12px;padding:6px 14px;min-height:32px;line-height:1.3}
@media(max-width:760px){
 .doc-toolbar{flex-direction:column;align-items:stretch}
 .doc-toolbar .btn{width:100%}
}
