/* Reference: the user-selected DingTalk admin overview (2026-10-25).
   Blue/white surfaces, compact controls, and primary task before secondary tools.
   Attendance's daily result is separate from the optional accounting workflow. */
#attendance-workbench{--att-ink:#172b4d;--att-muted:#64748b;--att-border:#e5eaf1;color:#172b4d;max-width:1120px;margin:0 auto;padding:12px 6px 48px;scroll-margin-top:90px}
#attendance-workbench .att-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:0;border:0;background:none}
#attendance-workbench .att-heading p{display:block;margin:0 0 8px;font-size:12px;font-weight:500;color:#718096;letter-spacing:0}
#attendance-workbench .att-heading h1{font-size:28px;line-height:1.3;letter-spacing:0;margin:0 0 10px;color:#172b4d}
#attendance-workbench .att-heading span{font-size:14px;line-height:1.6;color:#64748b}
#attendance-workbench button,#attendance-workbench .primary,#attendance-workbench .secondary{font-family:inherit;font-size:14px;border-radius:7px;box-shadow:none}
#attendance-workbench .primary{background:#0066ff;color:#fff;border:1px solid #0066ff;font-weight:600;padding:11px 18px;text-decoration:none;cursor:pointer}
#attendance-workbench .primary:hover{background:#0052d6}
#attendance-workbench .secondary{background:#fff;color:#344563;border:1px solid #dbe1ea;padding:10px 16px;font-weight:500;text-decoration:none;cursor:pointer}
#attendance-workbench button:disabled{cursor:wait;opacity:.55}
#attendance-workbench :is(button,a,input,select,summary,textarea):focus-visible{outline:3px solid #99c4ff;outline-offset:3px}
#attendance-workbench .att-reports-bar{display:flex;gap:20px;justify-content:space-between;align-items:center;margin:0 0 18px;padding:0;background:none;border:0;box-shadow:none}
#attendance-workbench:not(.att-has-report) .att-reports-bar{display:none}
#attendance-workbench .att-reports-bar>label{display:grid;grid-template-columns:auto minmax(180px,1fr);gap:10px;align-items:center;max-width:560px;min-width:0;color:#6b778c;font-size:12px;font-weight:400;flex:1}
#attendance-workbench .att-reports-bar select{font:inherit;font-size:13px;background:#fff;color:#344563;border:1px solid #dbe1ea;border-radius:6px;padding:10px 12px;min-width:0;max-width:100%}
#attendance-workbench .att-output-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
#attendance-workbench .att-upload{padding:28px;border:1px solid #e1e7ef;border-radius:12px;margin:18px 0;background:#fff}
#attendance-workbench.att-has-report .att-upload:not([open]){display:none}
#attendance-workbench .att-upload-toggle{display:none}
#attendance-workbench .att-upload-title{display:block;text-align:center;margin:4px auto 24px}
#attendance-workbench .att-upload-title h2{font-size:23px;margin:10px 0;color:#172b4d}
#attendance-workbench .att-upload-title p{font-size:14px;color:#64748b;margin:10px 0;line-height:1.6}
#attendance-workbench .att-eyebrow{font-size:12px;color:#6b778c;letter-spacing:0}
#attendance-workbench .att-file{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;justify-content:center;cursor:pointer;background:#f7faff;border:1.5px dashed #b8cef0;border-radius:10px;min-height:188px;padding:26px;text-align:center;transition:background .15s,border-color .15s}
#attendance-workbench .att-file:hover,#attendance-workbench .att-file.dragging{background:#eef5ff;border-color:#0066ff}
#attendance-workbench .att-file:focus-within{outline:3px solid #99c4ff;outline-offset:3px}
#attendance-workbench .att-file strong{display:block;font-size:16px;background:#0066ff;color:white;padding:10px 28px;border-radius:7px;font-weight:600}
#attendance-workbench .att-file img{opacity:.65;margin-bottom:2px}
#attendance-workbench .att-file span,#attendance-workbench .att-file small{color:#64748b;font-size:13px;line-height:1.5;font-weight:400}
#attendance-workbench .att-file input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;margin:0}
#attendance-workbench .att-upload-footer{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:16px 0 0;margin:0;border:0;flex-wrap:wrap}
#attendance-workbench .att-upload-footer span{font-size:12px;color:#64748b;line-height:1.6;flex:1;min-width:180px}
#attendance-workbench .att-format-help{margin:18px 0 0;border-top:1px solid #edf0f5;padding-top:14px;color:#64748b;font-size:12px}
#attendance-workbench .att-format-help p{font-size:12px}
#attendance-workbench #att-choice-panel{margin:22px 0 4px;padding:18px 20px;background:#f5f8fd;border-radius:8px}
#attendance-workbench #att-choice-panel label{display:flex;flex-direction:column;gap:9px;font-size:14px;color:#344563}
#attendance-workbench #att-choice-panel select,#attendance-workbench #att-choice-panel input[type=month]{padding:11px;border:1px solid #cdd7e6;border-radius:6px;background:#fff;color:#172b4d;max-width:100%;font:inherit}
#attendance-workbench .att-update-choice{background:none;padding:0;border:0;margin:0}
#attendance-workbench #att-update-note{font-size:12px;line-height:1.6;color:#64748b}
#attendance-workbench #att-report{margin:0;scroll-margin-top:90px}
#attendance-workbench .att-month-summary{border:1px solid #e1e7ef;border-radius:12px;background:#fff;margin:0;max-width:none;padding:28px 30px;color:#172b4d}
#attendance-workbench .att-result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
#attendance-workbench .att-result-heading h2{font-size:24px;margin:10px 0 0;line-height:1.4;letter-spacing:0}
#attendance-workbench .att-result-state{font-size:12px;font-weight:600;color:#18734a;background:#edf8f2;padding:4px 9px;border-radius:4px;display:inline-block}
#attendance-workbench .att-result-save{font-size:12px;color:#7a879b;align-self:flex-start;margin-top:8px}
#attendance-workbench .att-result-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0 20px;border-top:1px solid #e9edf3;border-bottom:1px solid #e9edf3;padding:20px 0}
#attendance-workbench .att-result-numbers>div{padding:0 22px;border-left:1px solid #e9edf3}
#attendance-workbench .att-result-numbers>div:first-child{border-left:0;padding-left:0}
#attendance-workbench .att-result-numbers span{font-size:12px;color:#64748b;display:block}
#attendance-workbench .att-result-numbers strong{display:block;font-size:30px;font-weight:600;line-height:1.2;margin-top:10px;font-variant-numeric:tabular-nums}
#attendance-workbench .att-result-numbers small{font-size:12px;color:#64748b;font-weight:400;margin-left:6px}
#attendance-workbench .att-result-answer{padding:16px 18px;background:#f4f8ff;border-radius:8px;border:1px solid #e8f0ff}
#attendance-workbench .att-result-answer strong{font-size:15px;font-weight:600}
#attendance-workbench .att-result-answer p{font-size:14px;line-height:1.8;margin:8px 0;color:#344563}
#attendance-workbench .att-result-answer small{font-size:12px;line-height:1.75;display:block;color:#64748b}
#attendance-workbench .att-section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:24px 0 16px}
#attendance-workbench .att-section-heading h3{font-size:17px;line-height:1.5;margin:0;color:#172b4d}
#attendance-workbench .att-section-heading span,#attendance-workbench .att-section-heading p{font-size:12px;color:#64748b;line-height:1.7;margin:6px 0 0}
#attendance-workbench .att-summary-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;min-width:0}
#attendance-workbench .att-summary-table th{color:#52627a;background:#f6f8fb;font-size:12px;font-weight:500;padding:12px 14px;border:0;border-bottom:1px solid #e5eaf1}
#attendance-workbench .att-summary-table td{padding:14px;border:0;border-bottom:1px solid #edf0f5;font-size:13px;line-height:1.7;overflow-wrap:anywhere;vertical-align:top}
#attendance-workbench .att-summary-table th:first-child{width:18%}
#attendance-workbench .att-summary-table th:nth-child(2){width:27%}
#attendance-workbench .att-summary-table td small{display:block;color:#7a879b;font-size:11px;margin-top:3px}
#attendance-workbench .att-summary-focus{margin:24px 0 0;border-top:1px solid #e5eaf1;padding-top:18px}
#attendance-workbench .att-summary-focus>summary{font-size:14px;font-weight:600;cursor:pointer;color:#344563;line-height:1.8}
#attendance-workbench .att-summary-focus>summary span{font-size:12px;font-weight:400;color:#718096;margin-left:10px}
#attendance-workbench .att-summary-focus .att-action-scroll{margin-top:18px}
#attendance-workbench .att-need-list{border:1px solid #e4e9f1;border-radius:8px;overflow:hidden}
#attendance-workbench .att-need-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;border-top:1px solid #edf0f5;padding:16px 18px;background:#fff}
#attendance-workbench .att-need-row:first-child{border-top:0}
#attendance-workbench .att-need-row>strong{font-size:14px;line-height:1.7;color:#344563}
#attendance-workbench .att-need-row p{margin:0 0 6px;font-size:13px;line-height:1.7;color:#344563;white-space:pre-line}
#attendance-workbench .att-need-row p b{display:inline-block;color:#7a879b;font-weight:400;font-size:12px;margin-right:12px}
#attendance-workbench .att-need-row details{color:#64748b;font-size:12px;margin:8px 0 0}
#attendance-workbench .att-need-row summary{cursor:pointer;line-height:1.8}
#attendance-workbench .att-need-row details p{margin-top:10px;color:#64748b}
#attendance-workbench .att-evidence-action{display:flex;gap:14px;align-items:center;margin-top:18px;flex-wrap:wrap}
#attendance-workbench .att-evidence-action span{font-size:12px;color:#64748b}
#attendance-workbench .att-evidence-action label{display:inline-block;font-size:13px}
#attendance-workbench .att-summary-notes{margin-top:18px;font-size:13px;color:#52627a;line-height:1.8;cursor:pointer}
#attendance-workbench .att-summary-notes p{font-size:13px;cursor:text}
#attendance-workbench .att-summary-source{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e9edf3;padding-top:18px;margin-top:26px;font-size:11px;color:#7a879b;line-height:1.8;flex-wrap:wrap}
#attendance-workbench .att-summary-source details{max-width:65%;text-align:right}
#attendance-workbench .att-summary-source p{font-size:12px;text-align:left}
#attendance-workbench .att-summary-source summary{cursor:pointer}
#attendance-workbench .att-summary-archive,#attendance-workbench .att-secondary-tools{margin:18px 0 0;padding:15px 18px;border:1px solid #e1e7ef;border-radius:9px;background:#fafbfd;color:#64748b}
#attendance-workbench .att-summary-archive>summary,#attendance-workbench .att-secondary-tools>summary{font-size:13px;font-weight:500;cursor:pointer;padding:0;color:#52627a}
#attendance-workbench .att-summary-archive>summary span{font-size:12px;color:#8190a5;font-weight:400;margin-left:12px}
#attendance-workbench .att-secondary-tools>p{font-size:12px;line-height:1.8;margin:16px 0}
#attendance-workbench .att-secondary-tools>div{display:flex;gap:12px;flex-wrap:wrap}
#attendance-workbench .att-secondary-tools .secondary{font-size:12px;padding:8px 12px}
#attendance-workbench .att-message{font-size:13px;line-height:1.7;border-radius:8px;padding:12px 16px;margin:12px 0}
#attendance-workbench #att-copy-fallback{display:block;width:100%;min-height:220px;font:inherit;font-size:13px;padding:16px;border:1px solid #cdd7e6;border-radius:8px;margin-bottom:20px}
@media(max-width:800px){#attendance-workbench{padding:8px 0 32px}#attendance-workbench .att-heading{align-items:flex-start}#attendance-workbench .att-heading h1{font-size:24px}#attendance-workbench .att-reports-bar{display:flex;flex-direction:column;align-items:stretch;gap:12px}#attendance-workbench .att-reports-bar>label{max-width:none;flex-basis:auto}#attendance-workbench .att-output-actions{justify-content:flex-end}#attendance-workbench .att-reports-bar button{flex:none;font-size:13px}#attendance-workbench .att-month-summary{padding:22px}#attendance-workbench .att-need-row{grid-template-columns:140px minmax(0,1fr);gap:12px}}
@media(max-width:520px){#attendance-workbench .att-heading{gap:12px}#attendance-workbench .att-heading span{font-size:12px}#attendance-workbench .att-heading h1{font-size:22px}#attendance-workbench .att-heading button{font-size:12px;padding:9px 12px;flex-shrink:0;margin-top:24px}#attendance-workbench .att-reports-bar>label{grid-template-columns:1fr;gap:7px}#attendance-workbench .att-output-actions{display:grid;grid-template-columns:1fr 1fr}#attendance-workbench .att-month-summary{padding:18px 16px}#attendance-workbench .att-result-heading{align-items:start;gap:10px}#attendance-workbench .att-result-heading h2{font-size:20px}#attendance-workbench .att-result-save{max-width:78px;font-size:10px;line-height:1.6}#attendance-workbench .att-result-numbers>div{padding:0 12px}#attendance-workbench .att-result-numbers span{font-size:11px}#attendance-workbench .att-result-numbers strong{font-size:26px}#attendance-workbench .att-result-answer{padding:14px}#attendance-workbench .att-section-heading{flex-direction:column;align-items:start;gap:8px}#attendance-workbench .att-need-row{grid-template-columns:1fr;gap:8px;padding:14px}#attendance-workbench .att-summary-table th,#attendance-workbench .att-summary-table td{padding:10px 7px;font-size:12px}#attendance-workbench .att-summary-table th:first-child{width:22%}#attendance-workbench .att-summary-table th:nth-child(2){width:26%}#attendance-workbench .att-summary-source details{max-width:100%;text-align:left}#attendance-workbench .att-summary-archive>summary span{display:block;margin:6px 0 0}#attendance-workbench .att-upload{padding:20px 16px}#attendance-workbench .att-upload-title h2{font-size:20px}#attendance-workbench .att-file{padding:20px 12px;min-height:170px}#attendance-workbench .att-summary-focus>summary span{display:block;margin:6px 0 0}}

/* Frequent HR tasks remain visible; optional destinations reuse the same routes and permission checks. */
.sidebar .hr-secondary-nav{margin:8px 0 0;border-top:1px solid #dfe3eb;padding-top:8px;font-size:12px;color:#6b778c}
.sidebar .hr-secondary-nav>summary{cursor:pointer;padding:8px 9px;font-weight:400}
.sidebar .hr-secondary-nav>a{display:block;font-size:13px;padding:8px 9px;line-height:20px;color:#52627a;border-radius:6px;text-decoration:none}
.sidebar .hr-secondary-nav>a[aria-current=page]{background:#fff;color:#0066ff;font-weight:600}
.sidebar .hr-secondary-nav>a:hover{background:#e9ebf0}
.sidebar .hr-secondary-nav[hidden],.sidebar .hr-secondary-nav>a[hidden]{display:none!important}

#attendance-workbench:not(.att-has-report) #att-new-file{display:none}
#attendance-workbench:not(.att-has-report) .att-secondary-tools{display:none}
#att-history-content .att-summary-archive{border:0;padding:0;margin-top:20px;background:transparent}
#attendance-workbench .att-evidence-action button{font-size:13px}

/* Keep the approved DingTalk blue/white styling, but give the first screen to
   the deliverable: a compact status, direct result preview and one download. */
#attendance-workbench .att-heading{margin-bottom:20px}
#attendance-workbench .att-heading h1{font-size:26px;margin-bottom:8px}
#attendance-workbench .att-reports-bar>label{flex:0 1 290px}
#attendance-workbench .att-month-summary{padding:24px 28px}
#attendance-workbench .att-compact-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid #e9edf3}
#attendance-workbench .att-compact-heading h2{font-size:21px;line-height:1.4;margin:0 0 8px;color:#172b4d}
#attendance-workbench .att-compact-heading p{font-size:12px;line-height:1.6;color:#64748b;margin:0}
#attendance-workbench .att-result-state{flex-shrink:0;line-height:1.6}
#attendance-workbench .att-result-state.is-pending{background:#fff5df;color:#8b5a0a}
#attendance-workbench .att-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px 0 16px}
#attendance-workbench .att-preview-heading h3{font-size:16px;line-height:1.5;margin:0 0 5px;color:#172b4d}
#attendance-workbench .att-preview-heading p{font-size:12px;color:#64748b;line-height:1.7;margin:0}
#attendance-workbench .att-summary-search{position:relative;display:block;flex:0 0 220px;margin:0}
#attendance-workbench .att-summary-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#attendance-workbench .att-summary-search input{box-sizing:border-box;width:100%;font:inherit;font-size:13px;min-height:40px;border:1px solid #dbe1ea;border-radius:6px;padding:9px 12px;background:#fff;color:#172b4d}
#attendance-workbench .att-summary-search input::placeholder{color:#7a879b}
#attendance-workbench .att-summary-table th:first-child{width:120px}
#attendance-workbench .att-summary-table th:nth-child(2){width:auto}
#attendance-workbench .att-summary-table td{padding:12px 14px}
#attendance-workbench .att-more-results{display:block;width:100%;padding:12px;border:0;border-top:1px solid #edf0f5;border-radius:0 0 6px 6px;background:#f8faff;color:#0066df;cursor:pointer;font-size:13px;font-weight:500;line-height:1.6}
#attendance-workbench .att-more-results:hover{background:#edf4ff}
#attendance-workbench .att-result-clear{font-size:13px;line-height:1.8;padding:18px 0;color:#64748b;margin:0}
#attendance-workbench .att-need-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
#attendance-workbench .att-need-dates{color:#64748b;font-size:12px;margin-top:8px}
#attendance-workbench .att-summary-need{padding-bottom:20px;border-bottom:1px solid #e9edf3}
#attendance-workbench .att-summary-need .att-section-heading{margin-top:20px}
#attendance-workbench .att-secondary-tools{padding:14px 18px;background:#fff}
@media(max-width:800px){#attendance-workbench .att-reports-bar>label{flex:auto;max-width:none}#attendance-workbench .att-preview-heading{flex-wrap:wrap;gap:12px}#attendance-workbench .att-summary-search{flex:1 0 180px;max-width:280px}#attendance-workbench .att-need-actions{flex-wrap:wrap}}
@media(max-width:520px){#attendance-workbench .att-month-summary{padding:18px 16px}#attendance-workbench .att-heading h1{font-size:22px}#attendance-workbench .att-compact-heading{align-items:flex-start;gap:12px;padding-bottom:16px}#attendance-workbench .att-compact-heading h2{font-size:19px}#attendance-workbench .att-result-state{font-size:11px;padding:4px 7px}#attendance-workbench .att-preview-heading{margin-top:18px}#attendance-workbench .att-summary-search{flex-basis:100%;max-width:none}#attendance-workbench .att-summary-table th:first-child{width:70px}#attendance-workbench .att-summary-table th:nth-child(2){width:auto}#attendance-workbench .att-summary-table td{padding:11px 7px}#attendance-workbench .att-need-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}#attendance-workbench .att-need-actions button{padding:10px 7px;font-size:12px}}
