/* 1108-16 board B1: people archive, onboarding, review, registrations (P16–P18, P47),
   schedule management desktop (P19) and duty history (P21). Presentation only; uk-* comes from ui-kit.css. */

/* Shared resets for list rows, text buttons and form fields rendered as buttons/inputs */
.uk button.uk-row,.uk a.uk-row{width:100%;background:none;border:0;border-radius:0;box-shadow:none;text-align:left;font:inherit;height:auto;min-height:56px;cursor:pointer;color:var(--ink)}
.uk button.uk-row.short,.uk a.uk-row.short{min-height:48px}
.uk button.uk-row:hover,.uk a.uk-row:hover{background:#f6f4ef}
.uk button.uk-row:focus-visible,.uk a.uk-row:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.uk button.uk-tl{min-height:0;height:auto;border-radius:0}
.uk button.uk-tl:hover{background:none;text-decoration:underline}
.uk button.uk-tl:disabled{color:#9b998f;text-decoration:none}
.uk-sec>h2 .r{display:flex;align-items:center;gap:14px}
.uk-av.off,.os-av.off{background:#9a9893}
.uk .uk-empty{margin:0}
.uk .b1-none{margin:0;padding:22px 16px;text-align:center;color:var(--muted);font-size:14px}
.uk-back>*:last-child:not(:first-child){font-size:15px;color:var(--green)}
.uk .uk-btn:hover{border-color:var(--green)}
.uk .uk-btn.primary:hover{background:#284938}
.uk .uk-btn.wait,.uk button.uk-btn.wait:disabled{background:#a3b1a9;border-color:#a3b1a9;color:#fff;opacity:1}
.uk .uk-errline[hidden],.uk .uk-warnline[hidden]{display:none}

/* P16 人员档案 */
.b1-people .uk-filters{margin-bottom:14px}
.b1-people .uk-search input{height:100%}
.b1-people #people-sort{max-width:150px}
.b1-people .uk-meta>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.b1-people .uk-end small{white-space:nowrap}
.b1-pager{justify-content:space-between;margin-top:0}
.b1-pager small{color:var(--muted);font-size:13px;white-space:nowrap;flex:none}
.b1-pager .uk-btn{flex:1;max-width:220px}
#employee-slot-catalog .uk-meta{font-size:13px;color:var(--ink)}

/* P16 B detail, P17 form, P47 C application */
.b1-person .b1-hero,.b1-form-page .b1-hero{margin-top:8px}
.b1-hero .os-me .mn-tag{margin-left:auto}
.b1-hero .os-me>div{min-width:0}
.uk-field>em{flex-wrap:wrap;justify-content:flex-end;font-style:normal}
.uk-field.b1-multi{align-items:flex-start;padding-top:12px;padding-bottom:12px}
.uk-field.b1-multi>em{flex-direction:column;align-items:flex-end;gap:6px}
.uk-field.b1-multi>em>span{display:flex;align-items:center;gap:8px}
.b1-chips{gap:6px;font-size:14px;color:var(--ink)}
.b1-chips .uk-chip{font-size:12px;line-height:20px;padding:0 9px}
.b1-form .uk-field{min-height:50px}
.b1-form .uk-field>span{min-width:96px}
.b1-form .uk-field input:not([type=radio]),.b1-form .uk-field select{flex:1;min-width:0;min-height:40px;height:40px;border:0;background:transparent;box-shadow:none;text-align:right;padding:0 2px;font:inherit;font-size:16px;color:#4d4c48;border-radius:8px}
.b1-form .uk-field select{appearance:none;-webkit-appearance:none;text-align-last:right;padding-right:20px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12'%3E%3Cpath d='M1.5 1l5 5-5 5' fill='none' stroke='%23b9b6ae' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 2px center;cursor:pointer}
.b1-form .uk-field input[type=date]{text-align:right;max-width:200px;margin-left:auto}
.b1-form .uk-field input::placeholder{color:#b0aea6}
.b1-form .uk-field input:focus,.b1-form .uk-field select:focus{outline:2px solid var(--green);outline-offset:0;background-color:#f6f4ef}
.b1-form .uk-field input[readonly]{color:var(--muted)}
.b1-form .uk-field .uk-seg{margin-left:auto}
.b1-form .uk-field .uk-seg>label{position:relative;cursor:pointer}
.b1-code input{text-align:right}
.b1-code .uk-tl{font-size:15px;flex:none}
.b1-code .uk-chip{flex:none}
.b1-form>.uk-btn.block{margin-top:4px}
.b1-form .uk-errline{margin:0 0 12px}
.b1-form .uk-actions{margin-top:4px}

/* P18 / P47 lists */
.b1-reviews{display:grid;gap:12px}
.b1-review .b1-review-head{min-height:60px}
.b1-review .b1-review-head[aria-expanded=true]{background:#f6f4ef}
.b1-review-body{border-top:1px solid #e9e6df}
.b1-review-body s{color:#9b998f}
.b1-review-head::after{content:'';flex:none;width:8px;height:8px;border-right:2px solid #b9b6ae;border-top:2px solid #b9b6ae;transform:rotate(45deg);margin-right:3px;transition:transform .15s}
.b1-review-head[aria-expanded=true]::after{transform:rotate(135deg)}
.b1-review-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px 12px;border-top:1px solid #e9e6df;flex-wrap:wrap}
.b1-review-actions .uk-btn{height:40px}
.b1-reason{font-size:13px;color:#795821;margin-right:auto}

/* 1114-UI-4 / 13: approved review mockups, scoped to these two pages. */
.rv-page{max-width:900px;margin:0 auto;padding:20px 0 30px;color:var(--ink);font-size:14px}
.rv-page>.uk-head{margin:0 0 14px}
.rv-filters{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-width:0}
.rv-filters .uk-search{flex:1;min-width:0;margin:0;height:40px;border-radius:999px;font-size:14px}
.rv-filters .uk-search input{min-width:0;width:100%}
.rv-filters .uk-seg button{font-size:14.5px;height:34px;min-height:34px;line-height:34px;padding:0 16px}
.rv-filters .uk-seg b{display:inline-grid;place-items:center;min-width:20px;height:18px;line-height:18px;margin-left:6px;border-radius:999px;background:#fff;color:var(--green);font-size:12px}
.rv-card{background:#fffefa;border:1px solid #ddddd4;border-radius:16px;overflow:hidden}
.rv-item+.rv-item{border-top:1px solid #edeae3}
.rv-page .rv-head{display:flex;width:100%;text-align:left;gap:12px;padding:12px 18px;min-height:62px;background:transparent;border:0;border-radius:0;box-shadow:none;color:inherit;font:inherit;cursor:pointer}
.rv-page .rv-head::after{display:none}
.rv-page .rv-head[aria-expanded=true]{background:#eef3ee}
.rv-page .rv-head .uk-main{min-width:0;gap:0}
.rv-page .rv-head .uk-main>b{font-size:16px;font-weight:700}
.rv-page .rv-head .uk-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:3px;font-size:13px}
.rv-page .uk-av{width:36px;height:36px;font-size:15px;flex:none;color:#fff}
.rv-triangle{flex:none;width:0;height:0;border-left:5px solid #9a988f;border-top:4px solid transparent;border-bottom:4px solid transparent}
.rv-head[aria-expanded=true] .rv-triangle{transform:rotate(90deg)}
.rv-page .uk-chip{border:0;border-radius:999px;background:#f3f1ec;color:#686961;padding:3px 9px;font-size:13px;font-weight:400;line-height:1.35;white-space:nowrap}
.rv-page .uk-chip.info{background:#dcebf7;color:#255a85;font-weight:600}
.rv-page .uk-chip.ok{background:#e4eee7;color:#2e5747;font-weight:600}
.rv-page .uk-chip.bad{background:#fbe3dc;color:#a3402a;font-weight:600}
.rv-page .rv-date{background:#e7edf6;color:#255a85;font-variant-numeric:tabular-nums}
.rv-fields{padding:4px 18px 14px 66px;background:#fbfaf6;border-top:1px solid #edeae3}
.rv-page .rv-fields .uk-field{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;min-height:40px;padding:8px 0;border-bottom:1px solid #edeae3;align-items:center;font-size:14.5px}
.rv-page .rv-fields .uk-field>span{color:#76776d}
.rv-page .rv-fields .uk-field>em{font-style:normal;text-align:left;overflow-wrap:anywhere}
.rv-page .rv-fields .uk-field input,.rv-page .rv-fields .uk-field select{min-width:0;max-width:100%}
.rv-page .rv-fields s,.rv-arrow{color:#a09e97;margin-right:8px}
.rv-page .b1-review-actions{border:0;padding:12px 0 0;gap:10px}
.rv-page .b1-review-actions .uk-btn{border-radius:999px;height:34px;min-height:34px;padding:5px 14px;font-size:14px}
.rv-who{margin-left:auto;text-align:right;flex:none;color:#76776d;font-size:13px;line-height:1.6}
.rv-who>span{display:block}.rv-who b{color:var(--ink);font-weight:600}
.rv-more{display:block;margin:14px auto 0}.rv-form-title{font-size:15px;margin:14px 0 4px}
.rv-page [hidden]{display:none!important}
@media(max-width:640px){.rv-page{padding:8px 0 24px}.rv-filters{flex-wrap:wrap}.rv-filters .uk-search{flex-basis:100%}.rv-page .rv-head{padding:12px;gap:9px;flex-wrap:wrap}.rv-page .rv-head .uk-main{flex:1}.rv-who{flex-basis:100%;padding-left:59px;text-align:left}.rv-fields{padding:4px 12px 14px}.rv-page .rv-fields .uk-field{grid-template-columns:88px minmax(0,1fr)}.rv-page .rv-head .uk-meta{gap:4px}.rv-page .uk-chip{font-size:12px}}

/* Desktop: keep the width; detail/form groups sit in two columns, single lists stay readable */
@media (min-width:900px){
  .b1-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;align-items:start}
  .b1-narrow{max-width:760px}
  .b1-form-page .b1-form>.uk-btn.block{max-width:420px;margin-left:auto}
}

/* Sticky save bars sit above the bottom navigation */
.b1-sticky .uk-savebar,#schedule-actions .uk-savebar{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:6}
.b1-sticky{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:6}
.b1-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.b1-status{color:var(--muted);font-size:14px;padding:12px 4px;margin:0}

/* P19 排班 (desktop layout only; the phone keeps the existing layout) */
.b1-sched.uk{max-width:100%}
.b1-sched-head .mn-week{margin:0 0 0 14px;width:270px;flex:none}
.b1-sched-head .mn-week b{white-space:nowrap}
.b1-sched-head .r a{font-size:15px}
.b1-sched-tools{flex-wrap:wrap;overflow:visible;row-gap:8px}
.b1-store-pills{display:flex;gap:8px;flex-wrap:wrap}
.b1-tools{margin-left:auto;display:flex;gap:18px;align-items:center}
.b1-tools .uk-tl{font-size:14px}
.b1-sched .schedule-warnings:empty{display:none}
.b1-sched .schedule-warnings{max-width:none;width:100%}
.b1-sched #schedule-actions[hidden]{display:none}
.b1-sched #schedule-editor .panel>h2{display:none}
.b1-sched #schedule-editor select.uk-pill{min-height:0}
.b1-warn{display:block;cursor:pointer}
.b1-warn summary{list-style:none;cursor:pointer}
.b1-warn summary::-webkit-details-marker{display:none}
.b1-warn summary::after{content:' ›';font-weight:600}
.b1-warn[open] summary::after{content:' ⌄'}
.b1-warn p{margin:6px 0 0;font-size:13px}
.b1-sched #schedule-table[hidden]{display:none}
.b1-sched #schedule-table{overflow:auto;max-height:none}
.b1-grid{table-layout:fixed;min-width:960px}
.b1-sched .uk-grid.sched .b1-grid th,.b1-sched .uk-grid.sched .b1-grid td{padding:4px;border-bottom-color:#f0eee8;position:relative;vertical-align:middle}
.b1-sched .uk-grid.sched .b1-grid thead th{padding:9px 6px;text-align:center;z-index:2}
.b1-sched .uk-grid.sched .b1-grid thead th:first-child{text-align:left;width:112px;left:0;z-index:3}
.b1-sched .uk-grid.sched .b1-grid th.role{font-size:13px;font-weight:600;color:var(--ink);border-left:4px solid var(--r)!important;position:sticky;left:0;background:#fffefa!important;z-index:1;white-space:normal;line-height:1.25;padding-left:8px}
.b1-sched .uk-grid.sched .b1-grid tr.uk-band th{background:#f6f4ef!important;padding:7px 10px;text-align:left}
.b1-grid tr.uk-band .mn-store{margin-right:6px}
.b1-sched .uk-grid.sched .b1-grid td.today,.b1-sched .uk-grid.sched .b1-grid th.today{background:#f1f6f2!important}
.b1-sched .b1-slot{display:flex;align-items:center;gap:4px;width:100%;height:32px;min-height:0;padding:0 6px;border-radius:9px;border:0;background:var(--r);font-size:13px;color:#243b35;min-width:0;white-space:nowrap;overflow:hidden;box-shadow:none;cursor:pointer}
.b1-sched .b1-slot b{font-weight:600;overflow:hidden;text-overflow:ellipsis;min-width:0}
.b1-sched .b1-slot .uk-bk{flex:none}
.b1-sched .b1-slot .n{margin-left:auto;font-size:11px;color:#55615b;font-variant-numeric:tabular-nums;flex:none}
.b1-sched .b1-slot .n.over{color:#b5362c;font-weight:700}
.b1-sched .b1-slot.empty{background:none;border:1.5px dashed color-mix(in srgb,var(--r) 70%,#8f8d85);color:#9b998f;justify-content:center}
.b1-sched .b1-slot:hover{filter:brightness(.97);border-color:transparent}
.b1-sched .b1-slot.empty:hover{border-color:var(--green);color:var(--green)}
.b1-sched .b1-slot[aria-expanded=true]{outline:2px solid var(--green);outline-offset:1px}
.uk-bk{font-size:10px;line-height:16px;padding:0 5px;border-radius:6px;font-weight:700;background:#efefea;color:#686863}
.uk-bk.full{background:#f1eaf5;color:#73508f}.uk-bk.lunch{background:#fff3d6;color:#795821}.uk-bk.dinner{background:#eaf0f7;color:#365b80}
.b1-sched .staff-options{left:4px;top:calc(100% - 2px);min-width:220px;max-height:340px;overflow:auto;background:#fffefa;border:1px solid #e6e3dc;border-radius:14px;padding:6px;box-shadow:0 10px 28px rgba(0,0,0,.14);z-index:30}
.b1-sched .staff-options small{font-size:12px;font-weight:600;color:var(--muted);padding:8px 8px 4px}
.b1-sched .staff-options button{min-height:36px;border-radius:9px;padding:6px 8px;gap:6px}
.b1-sched .staff-options button:hover,.b1-sched .staff-options button:focus{background:#f1f6f2}
@media (min-width:1100px){.b1-sched #schedule-table{overflow:visible}}
.b1-sched .uk-grid.sched>table{border-radius:16px}
.b1-sched #schedule-editor .panel{margin:0 0 12px}
.b1-sched #schedule-actions{margin-top:12px}
.b1-publish{justify-content:flex-end}
.b1-publish .uk-btn{flex:none}
.b1-sched .b1-none{background:#fffefa}

/* P21 历史班表管理 */
.b1-duty{max-width:720px;margin:0 auto}
.b1-day{gap:6px}
.b1-day-pick{display:flex;align-items:baseline;gap:6px;margin:0;cursor:pointer}
.b1-day-pick input{border:0;background:none;min-height:0;height:30px;padding:0 2px;font:inherit;font-size:15px;font-weight:600;color:var(--ink);width:auto;max-width:150px;box-shadow:none}
.b1-day-pick small{font-size:15px;font-weight:600}
.b1-day .mn-count{margin-left:4px}
.b1-duty .uk-sec>h2{display:flex;gap:6px;align-items:center;margin-left:4px}
.b1-bar{align-self:stretch;width:4px;border-radius:2px;background:var(--r);flex:none;margin:4px 2px 4px -4px}
.b1-duty.detail>.uk-head,.b1-duty.detail>.b1-day{display:none}
.b1-duty #duty-message{margin:0 0 12px}
.b1-duty-row .uk-meta s{color:#9b998f}
.b1-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:16em}
.b1-score{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;color:#9b998f}
.b1-score.up{color:#2f7a47}.b1-score.down{color:#b5362c}
.b1-duty-hero .top .r{margin-left:auto}
.b1-duty .b1-form .uk-field input{flex:1;min-width:0;border:0;background:transparent;text-align:right;min-height:40px;height:40px;padding:0 2px;font:inherit;font-size:16px;box-shadow:none}
.b1-duty .b1-form .uk-field input[type=number]{max-width:120px;margin-left:auto;border:1px solid #e6e3dc;border-radius:10px;padding:0 10px;background:#fff}
.b1-duty .b1-form .uk-field input:focus{outline:2px solid var(--green);outline-offset:0}
.b1-rule{font-size:12px;color:var(--muted);margin:6px 0 0 16px}
.b1-choice{cursor:pointer}
.b1-choice input{position:absolute;opacity:0;pointer-events:none}
.b1-choice input:checked+.uk-check{background:var(--green);border-color:var(--green);position:relative}
.b1-choice input:checked+.uk-check::after{content:'';position:absolute;left:7px;top:3px;width:5px;height:10px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.b1-choice:has(input:focus-visible){outline:2px solid var(--green);outline-offset:-2px}
.b1-duty .uk-btn.block{margin-bottom:12px}
.b1-duty #duty-message:empty{display:none}
/* Values align with the approved name/value rows, not the old profile form alignment. */
.rv-page .rv-fields .uk-field>em{margin-left:0;justify-content:flex-start;color:#2d2d2b}
.rv-page .rv-fields .b1-code{display:flex;flex-wrap:wrap}.rv-page .rv-fields .b1-code>span{width:150px}.rv-page .rv-fields .b1-code input{flex:1;min-width:90px}.rv-page .rv-fields .b1-code>[data-code-status]{width:auto;flex:none}.rv-page .rv-fields .b1-code>[data-generate-person-code]{flex:none}
@media(max-width:640px){.rv-page .rv-fields .b1-code>span{width:88px;min-width:88px}.rv-page .rv-fields .b1-code>[data-generate-person-code]{margin-left:auto}}
