/* page styles: people2 — attendance, my time clock, tasks, KPI, leave & holidays, notices, warnings, work reports */

/* shared */
.p2-fbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.p2-fbar .iw { width: 280px; }
.p2-fbar .select { width: auto; min-width: 156px; }
.p2-fbar .pills-nav { margin: 0; }
.p2-fbar .grow { flex: 1; }
.p2-fbar .p2-note { font-size: 14px; color: var(--text-3); }
.p2-tabrow { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.p2-tabrow .views { border-bottom: 0; margin: 0; flex: 1; min-width: 0; }
.p2-tabrow .seg { margin-bottom: 4px; }
.p2-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.p2-live i { width: 8px; height: 8px; border-radius: 50%; background: #17B26A; box-shadow: 0 0 0 3px #DCFAE6; animation: pulse 1.6s infinite; }
.p2-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-3); font-weight: 500; white-space: nowrap; }
.p2-meta svg.i { width: 15px; height: 15px; color: var(--text-4); }
.p2-meta.bad { color: var(--error); } .p2-meta.bad svg.i { color: var(--error-dot); }
.p2-meta.ok { color: var(--success); } .p2-meta.ok svg.i { color: var(--success-dot); }
.p2-dis, .p2-cbtns .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.p2-dis:hover, .p2-cbtns .btn:disabled:hover { background: var(--surface); color: var(--text-2); }
.p2-cbtns .btn-primary:disabled:hover { background: var(--brand); color: #fff; }
.scrim.p2-top { z-index: 95; }
.pill.p2-orange { background: #FEF6EE; color: #B93815; box-shadow: inset 0 0 0 1px #F9DBAF; } .pill.p2-orange::before { background: #EF6820; }
.itile.p2-orange { background: #FEF6EE; border-color: #F9DBAF; color: #E04F16; box-shadow: none; }
.p2-sub { display: block; font-size: 13px; color: var(--text-3); line-height: 18px; }
.p2-td-note { white-space: normal !important; min-width: 180px; max-width: 280px; line-height: 20px; }
.p2-h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }

/* status dot on avatar: working (pulsing green), present (blue), absent (red), exempt (grey) */
.p2-avw { position: relative; display: inline-flex; flex: none; }
.p2-sd { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--gray-dot); box-shadow: 0 0 0 2px var(--surface); }
.p2-sd.working { background: #17B26A; }
.p2-sd.working::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #17B26A; animation: p2-ping 1.8s var(--ease) infinite; }
.p2-sd.present { background: #2E90FA; } .p2-sd.absent { background: #F04438; }
@keyframes p2-ping { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* attendance cards */
.p2-acard { display: flex; flex-direction: column; }
.p2-ah { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; }
.p2-ah .grow { flex: 1; min-width: 0; }
.p2-ah b { display: block; font-weight: 600; color: var(--text); line-height: 20px; }
.p2-ah .st { display: block; color: var(--text-3); font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2-ab { flex: 1; padding: 0 20px 20px; }
.p2-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.p2-times > div { padding: 10px 12px; border-left: 1px solid var(--border); min-width: 0; }
.p2-times > div:first-child { border-left: 0; }
.p2-times span { display: block; font-size: 12px; line-height: 18px; color: var(--text-3); }
.p2-times b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.p2-times b.mute { color: var(--text-4); font-weight: 500; }
.p2-flag { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: var(--r); font-size: 13px; line-height: 18px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); }
.p2-flag > svg.i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.p2-flag .grow { flex: 1; min-width: 0; }
.p2-flag b { display: block; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.p2-flag .act { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.p2-flag.warn { background: #FFFCF5; border-color: var(--warning-bd); color: var(--warning); } .p2-flag.warn b { color: var(--warning); } .p2-flag.warn > svg { color: #DC6803; }
.p2-flag.ok { background: #F6FEF9; border-color: var(--success-bd); color: var(--success); } .p2-flag.ok b { color: var(--success); } .p2-flag.ok > svg { color: #079455; }
.p2-flag.bad { background: #FFFBFA; border-color: var(--error-bd); color: var(--error); } .p2-flag.bad b { color: var(--error); } .p2-flag.bad > svg { color: #D92D20; }
.p2-flag.info { background: #F5FAFF; border-color: var(--info-bd); color: var(--info); } .p2-flag.info b { color: var(--info); } .p2-flag.info > svg { color: #1570EF; }
.p2-flag.gray > svg { color: var(--text-4); }
.p2-flag .btn-link { font-size: 13px; }
.p2-af { display: flex; align-items: center; gap: 4px; padding: 10px 12px 10px 20px; border-top: 1px solid var(--border); min-height: 53px; }
.p2-af .spacer { flex: 1; }
.p2-af .btn { margin-right: 4px; }

/* my time clock */
.p2-clock { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.p2-now { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--text); }
.p2-now small { font-size: 20px; font-weight: 500; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.p2-clock .when { color: var(--text-3); margin-top: 8px; font-size: 14px; } .p2-clock .when b { color: var(--text-2); font-weight: 600; }
.p2-cstats { display: grid; grid-auto-flow: column; border: 1px solid var(--border); border-radius: var(--r); }
.p2-cstats > div { padding: 10px 20px 10px 16px; border-left: 1px solid var(--border); min-width: 104px; }
.p2-cstats > div:first-child { border-left: 0; }
.p2-cstats span { display: block; font-size: 13px; color: var(--text-3); line-height: 18px; }
.p2-cstats b { display: block; font-size: 20px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.p2-day { margin-top: 28px; }
.p2-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-3); }
.p2-track .shift { position: absolute; top: -7px; bottom: -7px; border: 1px dashed var(--border-2); border-radius: 8px; background: rgba(255,255,255,.35); }
.p2-track .sg { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.p2-track .sg.work { background: #17B26A; } .p2-track .sg.brk { background: #FDB022; }
.p2-track .now { position: absolute; top: -9px; bottom: -9px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.p2-track .now::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.p2-ticks { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.p2-day .legend { margin-top: 12px; font-size: 13px; }
.p2-cbtns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.p2-cbtns .btn { height: 48px; font-size: 15px; }
.p2-details { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); margin-top: 16px; }
.p2-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; color: var(--text-2); font-size: 14px; border-radius: var(--r); }
.p2-details > summary::-webkit-details-marker { display: none; }
.p2-details > summary:hover { background: var(--surface-2); }
.p2-details > summary .t3 { font-weight: 400; font-size: 13px; }
.p2-details > summary > svg:last-child { margin-left: auto; color: var(--text-4); transition: transform .2s var(--ease); }
.p2-details[open] > summary { border-bottom: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0; }
.p2-details[open] > summary > svg:last-child { transform: rotate(180deg); }
.p2-details .in { padding: 16px 14px; }
.p2-details .grid { gap: 16px; }
.p2-mini { list-style: none; margin: 0; padding: 0; }
.p2-mini li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); }
.p2-mini li:first-child { border-top: 0; }
.p2-mini li b { color: var(--text-2); font-weight: 500; }
.p2-mini li .grow { flex: 1; min-width: 0; }

/* tasks board */
.p2-board { grid-auto-columns: minmax(248px, 1fr); }
.p2-board .lane { min-height: 0; }
.p2-board .lane-h .ibtn { width: 28px; height: 28px; }
.p2-task { cursor: default; }
.p2-task .th { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.p2-task .th .mw { margin-left: auto; }
.p2-task .th .ibtn { width: 28px; height: 28px; margin: -6px -6px -6px 0; }
.p2-task a.tt { display: block; line-height: 20px; }
.p2-task a.tt:hover { color: var(--brand-600); }
.p2-task .bf { padding-top: 12px; border-top: 1px solid var(--border); }
.p2-task .bf .row { gap: 12px; }
.p2-task.overdue { border-color: #FDA29B; background: #FFFCFC; }
.p2-task.muted { background: var(--surface-2); box-shadow: none; }
.p2-task.muted a.tt { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-4); }
.p2-lmore { width: 100%; margin-top: 8px; }

/* KPI */
.p2-kc .p2-today { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); padding: 8px 12px; border-radius: var(--r); background: var(--surface-2); line-height: 18px; }
.p2-kc .p2-today b { color: var(--text-2); font-weight: 500; }
.p2-kc .p2-today .dotc { width: 8px; height: 8px; }
.p2-kc .p2-num { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.p2-kc .p2-num span { display: block; font-size: 13px; color: var(--text-3); line-height: 18px; }
.p2-kc .p2-num b { display: block; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.p2-kc .p2-num b small { font-size: 15px; font-weight: 500; color: var(--text-3); margin-right: 3px; letter-spacing: 0; }
.p2-kc .p2-num .r { text-align: right; } .p2-kc .p2-num .r b { font-size: 16px; line-height: 24px; color: var(--text-2); font-weight: 500; }
.p2-kc .p2-exempt { font-size: 14px; color: var(--text-3); line-height: 20px; padding: 12px; border: 1px dashed var(--border-2); border-radius: var(--r); }
.p2-step { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--sh-xs); overflow: hidden; background: var(--surface); }
.p2-step button { width: 30px; height: 30px; border: 0; background: var(--surface); color: var(--text-3); cursor: pointer; display: grid; place-items: center; transition: background .12s, color .12s; }
.p2-step button:hover { background: var(--surface-2); color: var(--text); }
.p2-step button svg.i { width: 14px; height: 14px; }
.p2-step b { min-width: 36px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 30px; line-height: 30px; font-size: 13px; }

/* leave & holidays */
.p2-mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.p2-mcal .wd { font-size: 12px; font-weight: 500; color: var(--text-4); padding: 0 0 6px; }
.p2-mcal .d { position: relative; height: 42px; display: grid; place-items: center; border-radius: var(--r); color: var(--text-2); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.p2-mcal .d.out { color: var(--border-2); font-weight: 400; }
.p2-mcal .d.hol { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.p2-mcal .d.opt { background: #FFFAEB; color: var(--warning); }
.p2-mcal .d.today { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-600); font-weight: 600; }
.p2-mcal .d i { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.p2-mcal .d i u { width: 5px; height: 5px; border-radius: 50%; background: #2E90FA; }
.p2-mcal .d i u.p { background: #F79009; }
.p2-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.p2-rules > div { display: flex; gap: 14px; padding: 20px 24px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.p2-rules > div:nth-child(3n+1) { border-left: 0; }
.p2-rules > div:nth-child(-n+3) { border-top: 0; }
.p2-rules b { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.p2-rules p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 20px; }
.p2-rules .sec { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--text-4); font-weight: 500; }
.p2-bal { display: flex; flex-direction: column; gap: 6px; min-width: 96px; }
.p2-bal span { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; } .p2-bal span em { font-style: normal; color: var(--text-4); }

/* notices & warnings */
.p2-ncard .grow b { display: block; }
.p2-ncard .p2-over { font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.p2-ncard .when { display: block; font-size: 13px; color: var(--text-4); margin-top: 2px; }
.p2-ncard h3 { font-size: 16px; line-height: 24px; color: var(--text); }
.p2-ncard p.ex { margin: 6px 0 0; color: var(--text-3); font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p2-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); line-height: 18px; flex-wrap: wrap; }
.p2-who b { color: var(--text-2); font-weight: 500; }
.p2-who .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-2); }
.p2-ncard .pf { align-items: center; }
.p2-ncard .pf .spacer { flex: 1; }
.p2-ncard.is-hidden { background: var(--surface-2); border-style: dashed; box-shadow: none; }
.p2-ncard.is-hidden h3, .p2-ncard.is-hidden p.ex, .p2-ncard.is-hidden .p2-who { opacity: .6; }
.p2-ncard .tstat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.p2-ncard .tstat .select { width: 148px; }
.p2-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.p2-types .tile-opt { flex-direction: row; align-items: center; gap: 8px; padding: 10px; }
.p2-types .tile-opt b { font-size: 13px; }
.p2-letter { border: 1px solid var(--border); border-radius: var(--r); padding: 32px 36px; background: #fff; box-shadow: var(--sh-sm); font-size: 14px; line-height: 22px; color: var(--text-2); }
.p2-letter .lh { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--text); margin-bottom: 20px; }
.p2-letter .lh b { display: block; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.p2-letter .lh span { display: block; font-size: 12px; color: var(--text-3); line-height: 16px; }
.p2-letter .lh .ref { margin-left: auto; text-align: right; }
.p2-letter p { margin: 0 0 12px; }
.p2-letter .subj { font-weight: 600; color: var(--text); margin: 16px 0; }
.p2-letter .sign { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.p2-letter .sign b { display: block; color: var(--text); }

/* work reports */
.p2-rep .p2-rh { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.p2-rep .p2-rh .grow { flex: 1; min-width: 160px; }
.p2-rep .p2-rh .grow b { display: block; font-weight: 600; color: var(--text); line-height: 20px; }
.p2-rep .p2-rh .grow span { display: block; color: var(--text-3); font-size: 13px; line-height: 18px; }
.p2-rep .p2-rh .metas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p2-rb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p2-rb > div { padding: 16px 20px; border-left: 1px solid var(--border); min-width: 0; }
.p2-rb > div:first-child { border-left: 0; }
.p2-rb h4 { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--text-3); margin: 0 0 8px; }
.p2-rb ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 20px; }
.p2-rb li + li { margin-top: 4px; }
.p2-rb p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 20px; }
.p2-rf { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); flex-wrap: wrap; }
.p2-rf .input { flex: 1; min-width: 200px; }
.p2-rf .lbl { font-size: 13px; font-weight: 600; color: var(--text-2); }
.p2-rf.note { align-items: flex-start; font-size: 14px; color: var(--text-3); }
.p2-rf.note .grow { flex: 1; min-width: 0; line-height: 20px; }
.p2-rf.note .grow b { color: var(--text-2); font-weight: 600; }
.p2-mood { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 6px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--gray-bd); background: var(--gray-bg); color: var(--gray); }
.p2-mood svg.i { width: 15px; height: 15px; }
.p2-mood.great { background: var(--success-bg); color: var(--success); box-shadow: inset 0 0 0 1px var(--success-bd); }
.p2-mood.good { background: #F0FDF9; color: #107569; box-shadow: inset 0 0 0 1px #99F6E0; }
.p2-mood.stressed { background: var(--warning-bg); color: var(--warning); box-shadow: inset 0 0 0 1px var(--warning-bd); }
.p2-mood.struggling { background: var(--error-bg); color: var(--error); box-shadow: inset 0 0 0 1px var(--error-bd); }
.p2-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.p2-stars svg.i { width: 16px; height: 16px; color: var(--border-2); }
.p2-stars svg.i.on { color: #FDB022; fill: #FDB022; }
.p2-rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.p2-rate input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.p2-rate label { cursor: pointer; color: var(--border-2); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; }
.p2-rate label svg.i { width: 20px; height: 20px; transition: color .1s, fill .1s; }
.p2-rate label:hover, .p2-rate label:hover ~ label, .p2-rate input:checked ~ label { color: #FDB022; }
.p2-rate label:hover svg, .p2-rate label:hover ~ label svg, .p2-rate input:checked ~ label svg { fill: #FDB022; }
.p2-rate input:focus-visible + label { box-shadow: var(--ring); }
.p2-moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.p2-moods .tile-opt { align-items: center; text-align: center; padding: 10px 2px 8px; gap: 4px; }
.p2-moods .tile-opt svg.i { width: 24px; height: 24px; color: var(--text-4); }
.p2-moods .tile-opt.on svg.i { color: var(--brand); }
.p2-moods .tile-opt b { font-size: 12px; font-weight: 600; }
.p2-sticky { position: sticky; top: 88px; }
.p2-lastrev { display: flex; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; line-height: 18px; color: var(--text-3); }
.p2-lastrev b { color: var(--text-2); font-weight: 600; }


/* fixes after first screenshots */
.p2-clock { align-items: flex-end; flex-wrap: nowrap; }
.p2-when { color: var(--text-3); margin-top: 12px; font-size: 14px; } .p2-when b { color: var(--text-2); font-weight: 600; }
@media (min-width: 641px) {
  .t.p2-tight th, .t.p2-tight td { padding-left: 12px; padding-right: 12px; }
  .t.p2-tight th:first-child, .t.p2-tight td:first-child { padding-left: 24px; }
  .t.p2-tight th:last-child, .t.p2-tight td:last-child { padding-right: 24px; }
}
@media (min-width: 641px) and (max-width: 1440px) {
  .t.p2-tight th:first-child, .t.p2-tight td:first-child { padding-left: 20px; }
  .t.p2-tight th:last-child, .t.p2-tight td:last-child { padding-right: 20px; }
}
.p2-kc .p2-today .pill { margin-left: auto; }
.p2-kc .split-stats b small { font-size: 13px; }
.p2-kc .p2-exempt { padding: 6px 10px; font-size: 13px; line-height: 18px; }
.p2-ncard .p2-ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p2-ncard .tstat .p2-meta { font-weight: 500; }
.p2-ncard .tstat .avs .av { box-shadow: 0 0 0 1.5px var(--surface-2); }
.p2-fbar .p2-date { width: 156px; } .p2-fbar .p2-date .iw { width: 100%; }
.p2-rb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p2-rb > div.ch { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); display: flex; gap: 16px; align-items: baseline; padding-top: 12px; padding-bottom: 12px; }
.p2-rb > div.ch h4 { margin: 0; flex: none; width: 76px; }

/* layout helpers used by the pages */
.p2-r21 { grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); }
.p2-pw { width: 168px; }
.p2-trr { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.p2-lb { gap: 6px; }
.t td.p2-emp .cell { min-width: 0; }
.t td.p2-reason { min-width: 150px; }
.p2-board { scroll-snap-type: x proximity; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1366px) {
  .p2-board { grid-auto-columns: minmax(224px, 1fr); }
  .p2-bal { min-width: 72px; }
}
@media (max-width: 1280px) {
  .p2-r21 { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
  .p2-pw { width: 128px; }
  .p2-now { font-size: 48px; line-height: 52px; }
  .p2-cstats > div { min-width: 88px; padding: 8px 14px 8px 12px; }
  .p2-cstats b { font-size: 18px; line-height: 26px; }
  .p2-cbtns .btn { font-size: 14px; padding: 0 10px; }
  .p2-rules > div { padding: 16px 20px; }
}
@media (max-width: 1180px) {
  .p2-board { grid-auto-columns: minmax(240px, 1fr); }
  .p2-board .lane { scroll-snap-align: start; }
}
@media (max-width: 1100px) {
  .p2-r21 { grid-template-columns: minmax(0, 1fr) !important; }
  .p2-r21 > .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .p2-r21 > .stack > * + * { margin-top: 0; }
  .p2-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p2-rules > div:nth-child(n) { border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
  .p2-rules > div:nth-child(2n+1) { border-left: 0; }
  .p2-rules > div:nth-child(-n+2) { border-top: 0; }
  .p2-sticky { position: static; }
  .p2-pw { width: 112px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .p2-lb { width: 32px; padding: 0; } .p2-lb span { display: none; }
}
@media (max-width: 860px) {
  .p2-fbar { gap: 8px; margin-bottom: 16px; }
  .p2-fbar > .iw { width: 100%; }
  .p2-fbar .select { flex: 1 1 140px; min-width: 0; }
  .p2-fbar .grow { display: none; }
  .p2-fbar .p2-date { flex: 1 1 130px; width: auto; }
  .p2-fbar .p2-note { width: 100%; }
  .p2-tabrow { flex-direction: column-reverse; align-items: stretch; gap: 8px; border-bottom: 0; margin-bottom: 16px; }
  .p2-tabrow .views { border-bottom: 1px solid var(--border); }
  .p2-tabrow .p2-live { justify-content: flex-end; }
  .p2-trr { justify-content: space-between; }
  .p2-r21 > .stack { display: block; } .p2-r21 > .stack > * + * { margin-top: 16px; }
  .p2-board { grid-auto-columns: minmax(260px, 80vw); scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px 8px; }
  .p2-board .lane { scroll-snap-align: start; }
  .p2-rep .p2-rh { padding: 14px 16px; }
  .p2-rb > div { padding: 14px 16px; }
  .p2-rf { padding: 12px 16px; }
  .p2-letter { padding: 24px 20px; }
  .p2-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .p2-ah { padding: 16px 16px 12px; }
  .p2-ab { padding: 0 16px 16px; }
  .p2-af { flex-wrap: wrap; padding: 8px 12px 8px 16px; }
  .p2-clock { flex-wrap: wrap; gap: 16px; }
  .p2-now { font-size: 44px; line-height: 48px; }
  .p2-cstats { width: 100%; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p2-cstats > div { min-width: 0; padding: 8px 12px; }
  .p2-cstats b { font-size: 17px; }
  .p2-ticks span:nth-child(even) { visibility: hidden; }
  .p2-cbtns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .p2-cbtns .btn { height: 44px; }
  .p2-rules { grid-template-columns: 1fr; }
  .p2-rules > div:nth-child(n) { border-left: 0; border-top: 1px solid var(--border); padding: 14px 16px; }
  .p2-rules > div:first-child { border-top: 0; }
  .p2-mcal { gap: 2px; }
  .p2-mcal .d { height: 38px; }
  .p2-rb { grid-template-columns: 1fr; }
  .p2-rb > div { border-left: 0; border-top: 1px solid var(--border); }
  .p2-rb > div:first-child { border-top: 0; }
  .p2-rb > div.ch { display: block; }
  .p2-rb > div.ch h4 { width: auto; margin-bottom: 6px; }
  .p2-rep .p2-rh .metas { width: 100%; padding-left: 52px; margin-top: -4px; }
  .p2-rf .input { min-width: 0; flex: 1 1 100%; order: 3; }
  .p2-rf .btn { order: 4; }
  .p2-moods { gap: 6px; }
  .p2-moods .tile-opt { padding: 8px 0 6px; }
  .p2-moods .tile-opt b { font-size: 11px; }
  .p2-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p2-letter { padding: 20px 16px; font-size: 13px; }
  .p2-letter .lh { flex-wrap: wrap; }
  .p2-letter .lh .ref { margin-left: 0; text-align: left; width: 100%; }
  .p2-letter .sign { flex-direction: column; gap: 12px; }
  .p2-letter .sign > div:last-child { text-align: left !important; }
  .p2-ncard .tstat { flex-wrap: wrap; }
  .p2-kc .p2-num { flex-wrap: wrap; }
  .p2-step b { min-width: 30px; }
  .p2-tabrow .p2-live { display: none; }
  .p2-trr .seg { flex: 1; }
}
@media (max-width: 860px) { .p2-td-note { min-width: 140px; } .p2-pw { width: 96px; } }

/* responsive pass 2 */
.p2-flag .act { flex-wrap: wrap; }
.p2-flag .act .btn { max-width: 100%; white-space: normal; height: auto; min-height: 32px; padding-top: 6px; padding-bottom: 6px; line-height: 18px; text-align: left; }
@media (min-width: 641px) and (max-width: 1366px) {
  .p2-af .p2-lb { width: 32px; padding: 0; } .p2-af .p2-lb span { display: none; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .p2-acards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p2-shift .card-b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (max-width: 640px) {
  .p2-af { flex-wrap: nowrap; gap: 2px; }
  .p2-af .p2-meta svg { display: none; }
  .p2-af .btn { margin-right: 2px; }
}
.p2-task .bf { gap: 6px; }
.p2-task .bf .row { gap: 4px 10px; min-width: 0; flex-wrap: wrap; }
@media (max-width: 1366px) { .p2-fbar > .iw { width: 232px; } }
.p2-acts { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 860px) {
  .p2-fbar > .iw { width: 100%; }
  .p2-trr { justify-content: flex-end; }
}
@media (max-width: 640px) {
  .p2-page .t > tbody > tr > td.ra { width: 100%; }
  .p2-acts { justify-content: flex-start; }
  .p2-acts .btn { flex: 1 1 0; }
  .p2-trr { justify-content: space-between; }
}
.p2-hmd { display: inline-flex; }
@media (min-width: 641px) and (max-width: 1100px) { .p2-hmd { display: none; } }
.p2-rf .input { min-width: 140px; }
@media (min-width: 861px) { .p2-myrep .grid.g2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
@media (max-width: 640px) {
  .p2-rep .p2-rh { position: relative; padding-right: 44px; }
  .p2-rep .p2-rh > .mw { position: absolute; right: 8px; top: 12px; }
  .p2-fbar .p2-to { display: none; }
  .p2-rf .input { min-width: 0; }
}
@media (max-width: 640px) {
  .p2-ncard .pf { gap: 6px; }
  .p2-ncard .pf .btn { padding: 0 10px; }
  .p2-ncard .pf .ibtn[title="Print letter"] { display: none; }
}

/* notice board (notices_v3) */
.p2-cts { display: block; margin-top: 16px; }
.p2-cts[hidden], #client-picker[hidden] { display: none; }
.p2-nfull .top { align-items: center; }
.p2-nfull .p2-msg { margin-top: 6px; color: var(--text-2); font-size: 14px; line-height: 21px; white-space: pre-line; overflow-wrap: anywhere; }
.p2-pinned { border-color: var(--warning-bd); }
.p2-rc-in .sr-only { position: absolute; }
@media (max-width: 860px) { .p2-tabrow.p2-nt { flex-direction: column; align-items: flex-start; gap: 8px; border-bottom: 0; } .p2-tabrow.p2-nt .views { align-self: stretch; border-bottom: 1px solid var(--border); } .p2-tabrow.p2-nt .seg { margin: 0 0 4px; } }
@media (max-width: 640px) { .p2-tabrow > .p2-hmd { display: none; } }

/* tasks (tasks_v3) */
.p2-task .th { flex-wrap: wrap; }
.p2-task .tt { font-weight: 600; color: var(--text); line-height: 20px; overflow-wrap: anywhere; }
.p2-task .p2-desc { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.p2-chk { list-style: none; margin: 10px 0 0; padding: 8px 10px; border-radius: var(--r); background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.p2-chk li { display: flex; align-items: flex-start; gap: 6px; line-height: 18px; } .p2-chk li + li { margin-top: 4px; }
.p2-chk li svg { color: var(--success-dot); margin-top: 2px; } .p2-chk li.on { color: var(--text-3); text-decoration: line-through; }
.p2-box { width: 12px; height: 12px; border: 1.5px solid var(--border-2); border-radius: 3px; flex: none; margin-top: 3px; }
.p2-tmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.p2-tmeta .p2-meta { font-size: 12px; }
.p2-task .bf .p2-stsel { width: 128px; height: 32px; font-size: 13px; flex: none; }
.p2-lempty { padding: 16px; text-align: center; font-size: 13px; color: var(--text-4); border: 1px dashed var(--border-2); border-radius: var(--r); }
.stack.s8 > * + * { margin-top: 8px; }
@media (max-width: 640px) { .p2-board { grid-auto-columns: 86%; scroll-snap-type: x mandatory; } .p2-board .lane { scroll-snap-align: start; } }
.p2-task .bf { flex-wrap: nowrap; }
.p2-task .bf .row { flex-wrap: nowrap; gap: 6px; min-width: 0; flex: 1; }
.p2-task .bf .row .p2-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }

/* KPI (kpi_v3) */
.p2-kact { border-color: var(--brand-200); box-shadow: 0 0 0 3px var(--brand-50), var(--sh-xs); }
.p2-kc .top .pill { flex: none; }
.p2-kc .tt:hover { color: var(--brand-600); }
.p2-kc .p2-num .r .p2-sub, .p2-kc .p2-num .p2-sub { display: block; font-size: 12px; }
.p2-hsub { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.p2-kc .pf { align-items: center; }

/* my time clock (my_attendance_v3) */
.p2-cforms { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.p2-cforms form { flex: 1 1 160px; }
.p2-cforms .btn { width: 100%; height: 48px; font-size: 15px; }
.p2-clockc .card-b { display: flex; flex-direction: column; justify-content: center; }
.p2-bf > div + div { border-left: 1px solid var(--border); padding-left: 24px; }
@media (max-width: 1100px) { .p2-bf > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; } }
@media (max-width: 640px) { .p2-clockc .p2-clock { flex-wrap: wrap; } .p2-clockc .p2-cstats { width: 100%; grid-auto-columns: 1fr; } .p2-clockc .p2-cstats > div { min-width: 0; padding: 10px 12px; } .p2-now { font-size: 44px; line-height: 50px; } }
