/* 复用 surface/field/tag/table-actions，局部补齐调休页布局与状态。 */
.leave-daily-page { gap:24px; min-width:0; }
.leave-daily-page [hidden], .leave-daily-toast[hidden] { display:none!important; }
.leave-daily-tabs { display:flex; gap:28px; overflow-x:auto; border-bottom:1px solid #e2e8f0; }
.leave-daily-tabs button { display:flex; align-items:center; gap:8px; background:none; border:0; border-bottom:2px solid transparent; border-radius:0; padding:14px 2px; color:#64748b; white-space:nowrap; font-size:14px; }
.leave-daily-tabs button[aria-selected="true"] { color:#2563eb; border-bottom-color:#2563eb; font-weight:600; }
.leave-daily-tabs button span { border-radius:5px; padding:2px 6px; background:#f1f5f9; font-size:12px; line-height:18px; }
.leave-daily-tabs button[aria-selected="true"] span { background:#eff6ff; }
.leave-daily-card { border:1px solid #e2e8f0; border-radius:14px; background:#fff; box-shadow:0 2px 12px #0f172a06; min-width:0; overflow:hidden; }
.leave-daily-card .surface-head { display:flex; flex-direction:row; align-items:center; justify-content:space-between; text-align:left; padding:18px 24px; min-height:62px; }
.leave-daily-card .surface-head h3 { display:flex; gap:10px; align-items:center; font-size:16px; margin:0; }
.leave-daily-card .surface-body { padding:22px 24px; display:block; min-width:0; }
.leave-daily-icon { width:20px; height:20px; flex-shrink:0; vertical-align:middle; }
.leave-daily-card h3 .leave-daily-icon { color:#2563eb; }
.leave-daily-card .form { gap:18px; margin:0; }
.leave-daily-card .field { gap:8px; margin:0; min-width:0; }
.leave-daily-card .field>span { font-size:14px; font-weight:500; }
.leave-daily-card em { font-style:normal; color:#ef4444; }
.leave-daily-card input,.leave-daily-card textarea { width:100%; min-width:0; border:1px solid #e2e8f0; border-radius:8px; font-size:14px; background:#fff; padding:10px 12px; }
.leave-daily-card input { min-height:42px; }
.leave-daily-card textarea { resize:vertical; min-height:110px; line-height:1.65; }
.leave-daily-card input:focus,.leave-daily-card textarea:focus { outline:0; border-color:#2563eb; box-shadow:0 0 0 3px #2563eb14; }
.leave-daily-days { display:flex; gap:8px; align-items:center; align-self:end; padding:9px 14px; min-height:42px; border-radius:8px; background:#f8fafc; color:#64748b; font-size:13px; }
.leave-daily-days strong { margin-left:auto; font-size:20px; color:#2563eb; }
.leave-daily-card .form-actions { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin:0; }
.leave-daily-card .form-actions .muted { font-size:12px; }
.leave-daily-card button { min-height:36px; border-radius:8px; font-size:13px; }
.leave-daily-card button.primary { background:#2563eb; color:white; padding:10px 22px; border-color:#2563eb; min-height:42px; }
.leave-daily-card button.primary:disabled { background:#e2e8f0; color:#94a3b8; border-color:#e2e8f0; cursor:not-allowed; opacity:1; }
.leave-daily-page .leave-form-hint { min-height:18px; font-size:12px; }
.leave-daily-date { max-width:360px; }
.leave-daily-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:38px 12px; border:0; background:transparent; }
.leave-daily-empty>span { display:flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:14px; background:#f8fafc; color:#cbd5e1; margin-bottom:14px; }
.leave-daily-empty .leave-daily-icon { width:28px; height:28px; }
.leave-daily-empty p { margin:0; font-size:13px; line-height:1.8; color:#94a3b8; }
.leave-daily-table { min-width:710px; }
.leave-daily-card .table-shell { width:100%; max-width:100%; overflow-x:auto; }
.leave-daily-card table { width:100%; border-collapse:collapse; font-size:13px; }
.leave-daily-card th { background:#f8fafc; color:#64748b; font-weight:500; white-space:nowrap; padding:13px 14px; }
.leave-daily-card td { padding:14px; border-bottom:1px solid #f1f5f9; line-height:1.6; }
.leave-daily-card .table-actions { display:flex; flex-wrap:wrap; gap:8px; }
.leave-daily-card .leave-daily-action { background:transparent; border:0; color:#2563eb; padding:5px 2px; min-height:32px; font-size:12px; white-space:nowrap; }
.leave-daily-card .leave-daily-action.danger-text { color:#dc2626; }
.leave-daily-card .leave-daily-action.muted { color:#64748b; }
.leave-daily-card .tag { white-space:nowrap; font-size:12px; padding:4px 8px; }
.leave-daily-range { white-space:nowrap; }
.leave-daily-preview { display:block; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.leave-daily-report-copy { flex:1; min-width:0; }
.leave-daily-page .daily-report-list .row-card { align-items:flex-start; padding:18px 0; border:0; border-bottom:1px solid #f1f5f9; box-shadow:none; background:transparent; gap:20px; }
.leave-daily-page .daily-report-list .row-card p { white-space:pre-wrap; overflow-wrap:anywhere; margin:10px 0; font-size:14px; line-height:1.7; }
.leave-daily-page .daily-report-list .row-card .muted { font-size:12px; }
.leave-daily-approvals { display:grid; gap:12px; }
.leave-daily-approval { min-width:0; padding:16px; border:1px solid #e2e8f0; border-radius:10px; }
.leave-daily-approval>p { margin:10px 0; font-size:12px; line-height:1.65; }
.leave-daily-approval>p strong { margin-left:8px; color:#2563eb; }
.leave-daily-approval .leave-daily-preview { max-width:100%; }
.leave-daily-approval-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding-top:10px; border-top:1px solid #f1f5f9; }
.leave-daily-monthly .surface-head>div { min-width:0; }
.leave-daily-monthly .surface-head>div:first-child { display:block; }
.leave-daily-monthly .surface-head p { margin:6px 0 0; font-size:12px; }
.leave-daily-month-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.leave-daily-page .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.leave-daily-month-tools input[type="month"] { width:170px; }
.leave-daily-month-tools button { display:flex; align-items:center; gap:7px; padding:8px 12px; background:#fff; border:1px solid #e2e8f0; min-height:42px; white-space:nowrap; }
.leave-daily-month-tools button svg { width:16px; height:16px; }
.leave-daily-month-column { min-width:0; }
.leave-daily-subhead { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; min-height:40px; margin-bottom:14px; }
.leave-daily-subhead h4 { margin:0; font-size:14px; }
.leave-daily-statistics { min-width:320px; }
.leave-daily-statistics tbody tr:nth-child(even) { background:#f8fafc; }
.leave-daily-statistics td:nth-child(2),.leave-daily-statistics th:nth-child(2) { text-align:center; }
.leave-daily-statistics td:last-child,.leave-daily-statistics th:last-child { text-align:right; }
.leave-daily-statistics strong { color:#2563eb; }
.leave-daily-stat-note { font-size:12px; margin:12px 0 0; }
.leave-daily-toast { position:fixed; top:24px; right:24px; z-index:10000; max-width:calc(100vw - 48px); padding:14px 20px; background:#fff; border:1px solid #bbf7d0; border-radius:10px; box-shadow:0 8px 30px #0f172a15; font-size:14px; color:#15803d; }
.leave-daily-detail { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; padding:18px; background:#f8fafc; border-radius:10px; max-height:55vh; overflow-y:auto; }
.nav-group summary.nav-group-title { display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; }
.nav-group summary.nav-group-title::after { content:"⌄"; font-size:14px; }
.nav-group:not([open]) summary.nav-group-title::after { content:"›"; }
.nav-group summary::-webkit-details-marker { display:none; }
.profile-menu { display:flex; align-items:center; gap:10px; }
.profile-name { font-size:14px; color:#334155; white-space:nowrap; }
@media(max-width:1100px) {
  .sidebar { width:100%; }
  #nav { display:grid; grid-auto-flow:row; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; align-content:start; gap:12px; max-height:320px; overflow-y:auto; overflow-x:hidden; }
  #nav details.nav-group { display:block; min-width:0; padding:0; margin:0; }
  #nav summary.nav-group-title { display:flex; padding:4px 8px; font-size:12px; margin:0 0 6px; }
  #nav details.nav-group>button { display:flex!important; flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; width:100%; padding:7px 8px; text-align:left; }
  #nav details.nav-group>button span { display:inline; font-size:12px; white-space:normal; }
  #nav details.nav-group .nav-icon { position:static; flex-shrink:0; width:16px; height:16px; margin:0; }
}
@media(max-width:720px) {
  .leave-daily-tabs { gap:20px; }
  .leave-daily-tabs button { font-size:13px; }
  .leave-daily-card .surface-head,.leave-daily-card .surface-body { padding:16px; }
  .leave-daily-card .surface-head { flex-wrap:wrap; gap:14px; }
  .leave-daily-card .surface-head h3 { justify-content:flex-start; }
  /* 旧全站小屏头部使用 !important；在本模块覆盖，避免月份工具挤掉标题。 */
  .leave-daily-monthly .surface-head { flex-direction:column; align-items:stretch!important; padding:16px!important; }
  .leave-daily-monthly .surface-head>div { width:100%; }
  .leave-daily-monthly .surface-head h3,.leave-daily-monthly .surface-head .muted { white-space:normal; overflow:visible; text-overflow:clip; }
  .leave-daily-monthly .surface-head .muted { display:block; margin-top:6px; }
  .leave-daily-card .form-actions { align-items:stretch; }
  .leave-daily-card .form-actions button { width:100%; }
  .leave-daily-page .daily-report-list .row-card { flex-direction:column; }
  .leave-daily-month-tools { width:100%; }
  .leave-daily-month-tools .field { flex:1; }
  .leave-daily-month-tools input[type="month"] { width:100%; }
}
