/* 「›」在阿语里浏览器自己会翻成「‹」（Unicode 镜像字符），这里不再另外翻面，翻了反而指错方向（按像素验过）。
   审批第五版「从别的页面发起」（Chuck「照这样做」，第六版 2.13–2.16 图）：考勤页、考勤月历、企业治理一张表人员资料、调岗单整页。
   只管这四页新加的样子；颜色、圆角沿用 Work 的白卡片、灰小标题、红色主按钮。 */

/* ── 考勤页：三个一样大的按钮（第五版批注 110） ── */
.attendance-home .att-quick-actions--equal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; border: 0; background: none; }
.attendance-home .att-quick-actions--equal.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.att-action-btn { position: relative; min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; border: 1px solid #e2e3e8; border-radius: 14px; background: #fff; color: #26282d; font: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(17, 17, 26, .04); }
.att-action-btn:active { background: #fafafb; }
.att-action-btn .att-action-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; color: #4a4d55; }
.att-action-btn .att-action-icon .icon { width: 18px; height: 18px; }
.att-action-btn strong { min-width: 0; font-size: 14.5px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
/* 待补几条：跟在「申请补卡」后面、跟字一样高（第五版 2.13 图）；字换行时也不压到上一行 */
.att-action-btn strong .count-bubble { top: 0; vertical-align: 1px; margin-inline-start: 4px; }
/* 阿语、英语字长：图标在上、字在下，最多两行 */
html:not([lang^="zh"]) .att-action-btn { flex-direction: column; gap: 3px; min-height: 60px; padding: 6px 4px; }
html:not([lang^="zh"]) .att-action-btn strong { font-size: 13px; text-align: center; }

/* 外勤卡片：一行标题＋状态、去哪·谁批的、实际、两个一样大的按钮、「申请与调整记录 ›」 */
.fieldwork-card--compact { display: grid; gap: 6px; margin: 0 0 14px; padding: 14px 16px 0; border: 1px solid #e7e7ed; border-radius: 16px; background: #fff; box-shadow: none; }
.fieldwork-card--compact .fw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fieldwork-card--compact h3 { margin: 0; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.fieldwork-card--compact .fw-tag { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 650; line-height: 1.6; }
.fw-tag.is-gray { background: #f1f1f4; color: #666a73; }
.fw-tag.is-amber { background: #fff4e5; color: #9a5a12; }
.fw-tag.is-red { background: #fff0f0; color: var(--danger); }
.fieldwork-card--compact .fw-sub, .fieldwork-card--compact .fw-actual { margin: 0; color: #737680; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.fieldwork-card--compact .fw-actual b { color: #26282d; font-weight: 650; }
.fieldwork-card--compact .fw-warn { margin: 0; color: #9a5a12; font-size: 13px; }
.fieldwork-card--compact .fw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.fieldwork-card--compact .fw-actions.is-one { grid-template-columns: 1fr; }
.fieldwork-card--compact .fw-actions > button { min-height: 44px; margin: 0; border-radius: 12px; font-size: 14.5px; font-weight: 650; }
.fieldwork-card--compact .fw-records { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-top: 6px; border-top: 1px solid #efeff3; color: #26282d; font-size: 15px; font-weight: 650; text-decoration: none; }
.fieldwork-card--compact details.fw-records { display: block; }
.fieldwork-card--compact details.fw-records > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; list-style: none; cursor: pointer; }
.fieldwork-card--compact details.fw-records > summary::-webkit-details-marker { display: none; }
.fieldwork-card--compact .fw-chevron { color: #a3a6ad; font-weight: 400; }
.fieldwork-card--compact .fw-history { display: grid; gap: 2px; padding: 0 0 10px; }
.fieldwork-card--compact .fw-history a { color: #555861; font-size: 13px; font-weight: 500; line-height: 1.6; }

/* 最近记录：一条一张小卡——「9月24日 Mall of Egypt」＋标签，「上班 10:03 下班 没打卡」＋「补下班卡」；点这条展开打卡明细 */
.attendance-home .att-home-history { display: grid; gap: 12px; border: 0; background: none; overflow: visible; }
.att-home-history .att-home-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; padding: 14px 16px; border: 1px solid #e7e7ed; border-radius: 16px; background: #fff; }
.att-home-record + .att-home-record { border-top: 1px solid #e7e7ed; }
.att-home-record-toggle { min-width: 0; }
.att-home-record-toggle > summary { display: grid; gap: 6px; list-style: none; cursor: pointer; }
.att-home-record-toggle > summary::-webkit-details-marker { display: none; }
.att-home-history .att-home-record-head { display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; min-width: 0; }
.att-home-history .att-home-record-head strong { flex: none; font-size: 16px; font-weight: 700; }
.att-home-history .att-home-record .att-home-place { margin: 0; min-width: 0; color: #737680; font-size: 14.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-home-history .att-home-times { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 0; }
.att-home-history .att-home-times > span { display: inline-flex; align-items: baseline; gap: 6px; }
.att-home-history .att-home-times small { display: inline; margin: 0; color: #737680; font-size: 14px; }
.att-home-history .att-home-times b { display: inline; font-size: 17px; line-height: 1.3; font-weight: 650; }
.att-home-history .att-home-times .att-home-unrecorded { color: var(--danger); font-size: 17px; font-weight: 700; }
.att-home-history .att-home-times .att-home-active { font-size: 15px; }
.att-home-history .att-home-raw { padding-top: 8px; }
.att-home-record-side { display: grid; justify-items: end; gap: 8px; }
.att-home-history .att-home-status { padding: 2px 8px; border-radius: 6px; background: #fff0f0; color: var(--danger); font-size: 12.5px; font-weight: 650; }
.att-home-history .att-home-status.is-active { background: #edf7f2; color: #296346; }
.att-home-history .att-home-correct { min-height: 40px; padding: 0 14px; border: 1.5px solid rgba(230, 0, 18, .45); border-radius: 12px; background: #fff; color: var(--danger); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.att-home-history .att-home-unavailable { grid-column: 1 / -1; font-size: 12.5px; }

/* ── 考勤月历（第五版批注 113）：月份一张卡；缺卡那天直接一个「申请补卡」，底部不再另放大红按钮 ── */
.att-month-nav--card { padding: 8px; margin-bottom: 12px; border: 1px solid #e7e7ed; border-radius: 16px; background: #fff; }
.att-month-nav--card > button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #f3f3f6; color: #26282d; font-size: 14.5px; font-weight: 600; box-shadow: none; }
.att-month-nav--card strong { font-size: 17px; font-weight: 700; white-space: nowrap; }
html:not([lang^="zh"]) .att-month-nav--card > button { padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
.att-month-days .att-day-row { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e7e7ed; border-radius: 16px; background: #fff; }
.att-month-days .att-day-row.is-missing_in, .att-month-days .att-day-row.is-missing_out { border: 1px solid #f3c3c7; }
.att-month-days .att-day-row > time b { font-size: 21px; }
.att-month-days .att-day-row > time small { font-size: 12px; }
.att-day-main { display: grid; gap: 3px; min-width: 0; }
.att-day-line { margin: 0; color: #26282d; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.att-day-line bdi { font-variant-numeric: tabular-nums; }
.att-day-bad { color: var(--danger); font-weight: 700; white-space: nowrap; }
.att-day-sub { margin: 0; color: #737680; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.att-day-shift { color: #9a9ca3; font-size: 12px; }
.att-day-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.att-day-tags em { width: fit-content; padding: 1px 7px; border-radius: 999px; background: #eaf7ee; color: var(--green); font-size: 11px; font-style: normal; }
.att-day-tags small { color: #737680; font-size: 12px; }
.att-day-main > small, .att-day-main > em { width: fit-content; font-size: 11.5px; font-style: normal; color: #737680; }
.att-day-main > em.att-visit-line.is-warn { color: #b55610; }
.att-day-side { display: grid; justify-items: end; }
.att-day-fix { min-height: 40px; padding: 0 14px; border: 1.5px solid rgba(230, 0, 18, .45); border-radius: 12px; background: #fff; color: var(--danger); font: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.att-day-fix:active { background: #fff5f5; }

/* ── 企业治理一张表 · 人员资料（第五版批注 111）：任职信息一行一项；调岗、调薪、离职三个一样大的按钮；账号管理两个一样大 ── */
.personnel-job-rows .personnel-field-grid { display: block; padding: 0 14px; border: 1px solid #e7e7ed; border-radius: 14px; background: #fff; }
.personnel-job-rows .personnel-locked-field, .personnel-job-rows .personnel-date-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin: 0; border-bottom: 1px solid #efeff3; font-size: 15px; }
.personnel-job-rows .personnel-field-grid > :last-child { border-bottom: 0; }
.personnel-job-rows .personnel-locked-field > span, .personnel-job-rows .personnel-date-row > span { flex: none; margin: 0; color: #666a73; }
.personnel-job-rows .personnel-locked-field > strong, .personnel-job-rows .personnel-date-row > strong { min-height: 0; padding: 0; text-align: end; font-size: 16px; font-weight: 650; color: #19191b; overflow-wrap: anywhere; }
.personnel-date-row input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.personnel-approval-only .personnel-change-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.personnel-change-buttons > button { min-width: 0; min-height: 48px; margin: 0; padding: 6px 4px; border-radius: 12px; font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.personnel-approval-only .personnel-help { flex-basis: 100%; }
.personnel-profile-group .personnel-account-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.personnel-profile-group .personnel-account-actions > p { grid-column: 1 / -1; }
.personnel-profile-group .personnel-account-actions > .text-button { min-height: 48px; margin: 0; border: 1px solid #e2e3e8; border-radius: 12px; background: #fff; color: #26282d; font-size: 15px; font-weight: 700; text-align: center; }

/* ── 调岗单：一格一行、点开改（第五版 2.16、第六版 3.23 图） ── */
.pf--rows { gap: 10px; }
.pf--rows .pf-card { display: block; padding: 0 16px; border: 1px solid #ececf0; border-radius: 16px; background: #fff; }
.pf--rows .pf-h { margin: 8px 4px -2px; color: #666a73; font-size: 14px; font-weight: 700; }
.pf--rows .pf-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 0; border: 0; border-bottom: 1px solid #f0f0f3; background: none; color: inherit; font: inherit; text-align: start; }
.pf--rows button.pf-row { cursor: pointer; }
.pf--rows .pf-card > :last-child .pf-row, .pf--rows .pf-card > .pf-row:last-child, .pf--rows .pf-line:last-child > .pf-row { border-bottom: 0; }
.pf--rows .pf-row-label { flex: none; max-width: 45%; color: #666a73; font-size: 15px; line-height: 1.35; }
.pf--rows .pf-row-value { flex: 1 1 auto; min-width: 0; text-align: end; color: #19191b; font-size: 16px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.pf--rows .pf-chevron { flex: none; color: #a3a6ad; font-size: 18px; }
.pf--rows .pf-same { color: #19191b; }
.pf--rows .pf-from { color: #8a8d94; font-weight: 500; }
.pf--rows mark.pf-to { padding: 1px 5px; border-radius: 5px; background: #fff1a8; color: #19191b; }
.pf--rows .pf-placeholder { color: #a3a6ad; font-weight: 500; }
.pf--rows .pf-placeholder.is-required { color: var(--danger); }
.pf--rows .pf-auto-tag { display: inline-block; margin-inline-end: 6px; padding: 1px 7px; border-radius: 6px; background: #f1f1f4; color: #666a73; font-size: 12.5px; font-weight: 600; vertical-align: 2px; }
.pf--rows .pf-row-sub { display: block; margin: -10px 0 10px; color: #8a8d94; font-size: 12.5px; line-height: 1.5; }
.pf--rows .pf-line { border-bottom: 1px solid #f0f0f3; }
.pf--rows .pf-line > .pf-row { border-bottom: 0; }
.pf--rows .pf-line:last-child, .pf--rows .pf-card > .pf-line:last-of-type { border-bottom: 0; }
.pf--rows .pf-line.is-open > .pf-row .pf-row-label { color: var(--danger); font-weight: 650; }
.pf--rows .pf-line.is-missing .pf-row-label { color: var(--danger); font-weight: 650; }
.pf--rows .pf-row-editor { display: grid; gap: 8px; padding: 2px 0 14px; }
.pf--rows .pf-row-editor input[type="number"] { width: 100%; min-height: 46px; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--danger); border-radius: 12px; font: inherit; font-size: 17px; font-variant-numeric: tabular-nums; }
.pf--rows .pf-line--note { display: grid; gap: 6px; padding: 10px 0 12px; }
.pf--rows .pf-line--note input { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; }
.pf--rows .pf-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #f1f1f4; }
.pf--rows .pf-seg button { min-width: 54px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #4a4d55; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.pf--rows .pf-seg button[aria-checked="true"] { background: #fff; color: #19191b; box-shadow: 0 1px 3px rgba(17, 17, 26, .14); }
.pf--rows .pf-line--review .pf-row-sub { margin-top: -6px; }
.pf--rows .pf-card--ba { padding-bottom: 12px; }
.pf--rows .pf-card--ba > .pf-hint:first-child { padding-top: 10px; }
.pf--rows .pf-card--ba [data-pf-calc] { margin-top: 10px; }
.pf--rows .pf-card--reason { padding: 12px 16px 14px; }
.pf--rows .pf-card--reason .pf-reason { margin: 0; }
.pf--rows .pf-card--reason .pf-reason > span { display: flex; justify-content: space-between; align-items: baseline; color: #666a73; font-size: 15px; }
.pf--rows .pf-card--reason textarea { min-height: 88px; border-radius: 12px; }
.pf--rows .pf-route, .pf-route-wrap .pf-route { padding: 12px 16px; border: 1px solid #ececf0; border-radius: 16px; background: #fff; }
.pf-route-wrap { display: grid; gap: 8px; margin-top: 10px; }
.pf-route-wrap .pf-h { margin: 8px 4px -2px; color: #666a73; font-size: 14px; font-weight: 700; }
/* 员工、生效日那张卡：员工一行（带好的名字、岗位 · 门店，点了可以换人），生效日一行（点整行弹日期） */
.pf--rows .pf-card--top .person-search-field { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; min-height: 56px; margin: 0; padding: 8px 0; border-bottom: 1px solid #f0f0f3; }
.pf--rows .pf-card--top .person-search-field > span { align-self: center; color: #666a73; font-size: 15px; font-weight: 400; margin: 0; }
.pf--rows .pf-card--top .person-search-field > input[type="search"] { min-height: 42px; }
.pf--rows .pf-card--top .person-search-results { grid-column: 1 / -1; }
.pf--rows .pf-card--top .person-search-picked:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px 6px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; text-align: end; }
.pf--rows .pf-card--top .person-search-picked strong { font-size: 17px; font-weight: 700; color: #19191b; }
.pf--rows .pf-card--top .person-search-picked small { color: #737680; font-size: 13px; }
.pf--rows .pf-card--top .person-search-picked button { position: static; width: auto; height: auto; min-height: 0; padding: 0 0 0 2px; border: 0; background: none; color: #a3a6ad; font-size: 0; line-height: 1; }
.pf--rows .pf-card--top .person-search-picked button::after { content: '›'; font-size: 18px; }
.pf--rows .pf-row--date { cursor: pointer; }
.pf--rows .pf-date-value { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: #4a4d55; }
.pf--rows .pf-date-value b { font-weight: 650; color: #19191b; }
.pf--rows .pf-date-value b.is-empty { color: #a3a6ad; font-weight: 500; }
.pf--rows .pf-date-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pf--rows .pf-section { padding: 14px 16px; border-radius: 16px; border-color: #ececf0; background: #fff; }

/* 调岗单手机整页：页头写了单子名，表里那行标题不重复；「下一步，核对申请」固定在最下面（跟请假页一样） */
.approval-page-host { display: block; }
.approval-create-form--page { max-height: none; height: auto; }
.approval-create-form--page > .approval-create-head { display: none; }
.approval-create-form--page .approval-create-scroll { overflow: visible; padding: 4px 0 0; }
.approval-create-form--page .approval-basic-section[hidden] { display: none; }
.approval-create-form--page .modal-actions--sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px 16px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); border-radius: 0; background: rgba(255, 255, 255, .97); }
.approval-create-form--page > .af-review-panel { overflow: visible; padding: 4px 0 0; }
#main:has(.approval-create-form--page) { padding-bottom: calc(96px + var(--safe-bottom)); }
