/* Attendance controls use native accessible inputs with a single, generous label target. */
body .people-policy-modal{width:min(740px,100%)}
body .people-policy-modal>.modal-body{padding:0;overflow:hidden;display:flex;flex-direction:column}
body #people-policy-form{display:flex;flex-direction:column;min-height:0;max-height:calc(var(--triq-visible-height,100dvh) - 135px);margin:0}
body .people-policy-content{padding:18px 22px;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body .people-policy-intro{margin:0 0 18px;color:#546b69;font-size:12px;line-height:1.65}
body .people-policy-section{margin:0 0 20px}
body .people-policy-section h3{margin:0 0 13px;font-size:13px;font-weight:700;color:#174a49}
body .people-weekly-off{border:0;padding:0;margin:18px 0 0;min-width:0}
body .people-weekly-off legend{font-size:12px;color:#334f53;font-weight:650;padding:0}
body .people-weekly-off p{font-size:11px;line-height:1.6;margin:6px 0 11px;color:#657a7d}
body .people-weekly-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body .people-weekly-day{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 10px;border:1px solid #d8e4e6;border-radius:10px;background:#fff;color:#334f53;cursor:pointer;font-size:12px;line-height:1.35;min-width:0}
body .people-weekly-day:has(input:checked){background:#e9f6f1;border-color:#7fbfb1;color:#0d5b50;box-shadow:inset 0 0 0 1px #7fbfb133}
body .people-weekly-day span{overflow-wrap:anywhere;min-width:0}
body .people-weekly-day input[type=checkbox],body .people-checkrow input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;flex:0 0 19px;width:19px;height:19px;min-width:19px;min-height:19px;max-height:19px;padding:0;margin:0;accent-color:var(--primary,#0b6b5c);border-radius:4px}
body .people-weekly-day:has(input:focus-visible),body .people-checkrow:has(input:focus-visible){outline:2px solid #287cbd;outline-offset:2px}
body .people-policy-checks{display:grid;gap:9px}
body .people-checkrow{display:flex;align-items:flex-start;gap:11px;padding:13px 12px;min-height:48px;border:1px solid #dce7e7;background:#f9fbfc;border-radius:11px;cursor:pointer}
body .people-checkrow>input[type=checkbox]{margin-top:2px}
body .people-checkrow>span{display:block;flex:1;min-width:0}
body .people-checkrow strong{display:block;color:#2b4b4d;font-size:12px;font-weight:600;line-height:1.6}
body .people-checkrow small{display:block;margin-top:4px;color:#5f777a;font-size:11px;line-height:1.65}
body .people-checkrow:has(>input:checked){border-color:#9accc0;background:#f1faf6}
body .people-office-fields{background:#f4f8fc;border:1px solid #d9e6ef;padding:14px;border-radius:12px;margin-bottom:15px}
body .people-office-fields[hidden]{display:none!important}
body .people-office-fields [data-people-office-status]{margin:8px 0 0;font-size:11px;line-height:1.7;color:#526c78}
body .people-policy-content>.form-note{margin:0;font-size:11px;line-height:1.65;color:#667b7e}
body .people-policy-bottom{flex:none;background:#fff;border-top:1px solid #e0e9e9;padding:0 22px 14px}
body .people-policy-bottom .form-actions{margin:0;padding-top:12px;border:0;display:flex;flex-wrap:nowrap;gap:9px}
body .people-policy-bottom [data-people-save-status]:not(:empty){padding:11px 0 0;color:#526b75;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
body #people-policy-form[aria-busy=true] .people-policy-bottom{background:#f5faf8}
body .people-attendance .people-stats strong{overflow-wrap:anywhere}
body .people-attendance .panel-head>.workspace-inline{min-width:0;flex-wrap:wrap}
body [id^=people-] .workspace-permission{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:9px 0;font-size:12px;line-height:1.6}
body [id^=people-] .workspace-permission>input[type=checkbox]{flex:0 0 19px;width:19px;height:19px;min-width:19px;min-height:19px;margin:1px 0 0;accent-color:var(--primary,#0b6b5c)}
@media(max-width:760px){
 body .people-policy-modal{width:100%;height:calc(var(--triq-visible-height,100dvh) - 12px);max-height:calc(var(--triq-visible-height,100dvh) - 12px);border-radius:16px}
 body .people-policy-modal>.modal-head{min-height:58px;padding:13px 15px;background:#f1f8f7;border-bottom-color:#dceae7}
 body .people-policy-modal>.modal-head h2{font-size:18px}
 body .people-policy-modal>.modal-body{min-height:0;flex:1}
 body #people-policy-form{height:100%;max-height:none;min-height:0;flex:1}
 body .people-policy-content{padding:16px 15px}
 body .people-policy-content .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}
 body .people-policy-content .form-grid>.field:nth-child(5){grid-column:1/-1}
 body .people-policy-content .field>span{font-size:11px;line-height:1.5}
 body .people-policy-content .field input,body .people-policy-content .field select{font-size:16px;min-height:44px;padding:9px 10px}
 body .people-policy-intro{font-size:12px;margin-bottom:16px}
 body .people-weekly-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 body .people-weekly-day{font-size:12px;padding:10px 7px;gap:6px;min-height:46px}
 body .people-checkrow{padding:12px 10px;gap:10px}
 body .people-checkrow strong{font-size:13px;line-height:1.5}
 body .people-checkrow small{font-size:11px;line-height:1.65}
 body .people-policy-bottom{padding:0 15px calc(12px + var(--triq-safe-bottom,0px))}
 body .people-policy-bottom .form-actions>.btn{min-height:46px;flex:1;font-size:14px}
 body .people-attendance .page-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
 body .people-attendance .page-actions>.btn:first-child{grid-column:1/-1}
 body .people-attendance .panel-head{padding:13px 12px;gap:11px;flex-wrap:wrap}
 body .people-attendance .panel-body{padding:13px 12px}
 body .people-attendance .panel-head>.workspace-inline{width:100%;justify-content:space-between;gap:8px}
 body .people-attendance .panel-head>.workspace-inline>.field{flex:1;min-width:90px;margin:0}
 body .people-attendance .panel-head>.workspace-inline>.field>input,body .people-attendance .panel-head>.workspace-inline>.field>select{width:100%;min-width:0;font-size:14px}
 body .people-attendance .panel-head>.tabs{display:flex;gap:6px;overflow-x:auto;max-width:100%;flex-wrap:nowrap;scrollbar-width:none}
 body .people-attendance .tabs .btn{flex:none;min-height:40px;padding:9px 12px;font-size:12px}
 body .people-attendance .people-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:13px}
 body .people-attendance .people-stats>div{padding:10px;border-radius:10px;background:#f2f8fc;border-color:#dce9f0}
 body .people-attendance .people-stats strong{font-size:13px;line-height:1.5}
 body .people-attendance .people-stats small{font-size:10px;line-height:1.5;color:#56737c}
 body .people-week,body .people-days{gap:3px}
 body .people-week span{padding:8px 0;font-size:10px;color:#5f7375}
 body .people-day{min-height:66px;padding:6px 3px;gap:4px;align-items:center;border-radius:8px;text-align:center;border-top:3px solid #d6e0e4}
 body .people-day.green{border-top-color:#49a982;background:#eef9f3}
 body .people-day.blue{border-top-color:#498bce;background:#edf5ff}
 body .people-day.red{border-top-color:#d5828a;background:#fff4f5}
 body .people-day.purple{border-top-color:#a390d3;background:#f8f4ff}
 body .people-day.amber{border-top-color:#dab25c;background:#fff9ec}
 body .people-day strong{font-size:13px;line-height:1.4}
 body .people-day .badge{font-size:8px;line-height:1.35;padding:2px;white-space:normal;max-width:100%;border-radius:4px}
 body .people-day small{display:none}
 body .people-day.today{outline-width:2px;outline-offset:-2px}
 body .people-records{overflow:visible}
 body .people-records .table,body .people-records tbody{display:block;min-width:0;width:100%}
 body .people-records thead{display:none}
 body .people-records tbody{display:grid;gap:9px}
 body .people-records tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;border:1px solid #dce7e9;border-radius:12px;background:#fff;gap:11px}
 body .people-records td{display:block;padding:0;border:0;min-width:0;font-size:12px}
 body .people-records td::before{content:attr(data-label);display:block;color:#70848b;font-size:10px;margin-bottom:4px}
 body .people-records td:last-child{display:flex;align-items:flex-end;justify-content:flex-end}
 body .people-records td:last-child::before{display:none}
 body .people-records td .btn{min-height:40px;padding:8px 12px}
 body .people-profile-modal>.modal-head{background:#f1f8f7}
 body .people-profile{min-width:0}
 body .people-profile>header{gap:11px;margin-bottom:13px}
 body .people-profile>header>div{min-width:0;overflow-wrap:anywhere}
 body .people-profile>header h2{font-size:17px;line-height:1.5}
 body .people-profile-tabs{padding-bottom:5px;gap:6px;white-space:nowrap}
 body .people-profile-tabs .btn{min-height:42px;font-size:12px}
 body .people-profile-details{gap:13px;padding:12px 0}
 body .people-profile-details>div{padding:10px 12px;background:#f5f8fc;border:1px solid #e2e9f0;border-radius:10px;overflow-wrap:anywhere}
 body .people-profile-details small{font-size:11px;margin-bottom:4px}
 body .people-profile-details strong{font-size:13px;line-height:1.6}
 body .people-history>article>div:first-child{flex-wrap:wrap;align-items:center}
 body .people-history>article .workspace-inline{display:flex;flex-wrap:wrap;gap:7px}
 body .people-history>article .workspace-inline>.btn{flex:1;min-height:43px;white-space:normal}
 body .people-camera{width:100%}
 body .people-camera video,body .people-camera img{width:100%;max-height:220px;object-fit:contain}
}
@media(max-width:360px){body .people-weekly-options{grid-template-columns:repeat(2,minmax(0,1fr))}body .people-policy-content .form-grid{grid-template-columns:1fr}body .people-policy-content .form-grid>.field{grid-column:auto}body .people-day{min-height:62px}body .people-day .badge{font-size:7px}}

/* Date and time stay together; the action uses the remaining space. */
.followup-when { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:4px 10px; align-items:start; min-width:0; }
.followup-when .field, .followup-when .field input { width:100%; min-width:0; max-width:100%; box-sizing:border-box; margin:0; }
.followup-when small { grid-column:1/-1; font-size:.75rem; color:#655962; }
#followup-complete-form [data-followup-next]:not([hidden]) { display:grid; grid-template-columns:minmax(15rem,.9fr) minmax(0,1fr); align-items:start; gap:12px; }
#followup-schedule-form .followup-when { grid-column:1/-1; max-width:24rem; }
#followup-call-form .followup-when { max-width:24rem; }
@media(max-width:640px) {
 #followup-complete-form [data-followup-next]:not([hidden]) { grid-template-columns:minmax(0,1fr); }
}
