/* Site Attendance 3.5 — office interface. All assets are local and work offline. */
:root{--bg:#f6f5f1;--ink:#202426;--muted:#62686b;--line:#dedfda;--yellow:#f4b638;--yellow-ink:#26220e;--dark:#202527;--radius:12px;--sidebar:232px}
body{font-size:16px;line-height:1.5}
button,input,select,textarea{font-family:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid #b47600;outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.5}
.ui-icon{width:22px;height:22px;flex:none;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.office-sidebar,.office-scrim{display:none}
body.office-mode .office-sidebar{display:flex;position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:40;background:var(--dark);color:#f9faf7;flex-direction:column;padding:28px 16px 16px}
.office-brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:750;letter-spacing:-.4px;line-height:1.2;padding:0 10px 28px}
.brand-mark{display:grid;place-items:center;background:var(--yellow);color:#202527;border-radius:10px;width:42px;height:42px;flex:none}
.brand-mark .ui-icon{width:28px;height:28px}
.sidebar-label{font-size:10px;font-weight:750;letter-spacing:1.7px;color:#a7afaf;padding:8px 12px 12px}
.office-nav{display:grid;gap:5px}
.office-nav button{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;border:0;border-radius:8px;color:#d9dedd;min-height:48px;padding:10px 12px;font-size:14px;font-weight:600;line-height:1.3}
.office-nav button:hover{background:#343a3b;color:white}
.office-nav button[aria-current=page]{background:var(--yellow);color:#25230f}
.nav-count{margin-left:auto;min-width:22px;border-radius:5px;background:#fff2;font-size:11px;text-align:center;padding:1px 5px}
.office-nav button[aria-current=page] .nav-count{background:#0001}
.sidebar-bottom{margin-top:auto;padding:22px 10px 0;color:#bac2c1;font-size:12px}
.sidebar-bottom .local-state{display:flex;gap:8px;align-items:center;margin-bottom:10px;font-size:12px}
.local-dot{width:7px;height:7px;background:#98c8a1;border-radius:50%;display:inline-block;flex:none}
.sidebar-bottom button{width:100%;display:flex;align-items:center;gap:10px;background:transparent;color:#e7ebe7;border:1px solid #4b5353;padding:9px 12px;border-radius:7px;margin:14px 0;font-size:13px;text-align:left}
.sidebar-version{display:flex;justify-content:space-between;font-size:10px;color:#a7afaf}
body.office-mode>section:not(.hidden){margin-left:var(--sidebar);min-width:0}
body.office-mode header.top{background:#fff;color:var(--ink);padding:14px 32px;min-height:70px;border-bottom:1px solid var(--line);gap:10px;position:sticky!important;top:0;z-index:10}
body.office-mode header.top h1{font-size:15px;letter-spacing:-.2px}
body.office-mode header.top .sub{color:var(--muted);font-size:12px}
.hbtn{border:1px solid #d9dcd7;border-radius:7px;background:#fff;color:var(--ink);font-size:13px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px}
header.top .hbtn.lock{background:#fff;border-color:#d9dcd7;color:var(--ink)}
body:not(.office-mode) header.top .hbtn{color:var(--ink)}
#bMenu{display:none}
#bRole{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#5c450c;background:#fff5d9;border:1px solid #f1dfaf;border-radius:5px;padding:3px 8px}
#bSub{display:none}
#officeTopLabel{font-weight:650;font-size:14px;color:#51595c}
body.office-mode main.wide{max-width:1320px;padding:30px 32px 60px}
body.office-mode section:not(#v-boss)>main{max-width:850px;padding:28px 32px 60px}
.office-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}
.office-page-heading h2{font-size:30px;letter-spacing:-1px;font-weight:750;line-height:1.18;margin:0 0 7px}
.office-page-heading p{color:var(--muted);font-size:14px;margin:0}
.project-context{display:inline-flex;align-items:center;gap:7px;background:#eeeee8;border:1px solid var(--line);padding:6px 10px;border-radius:6px;font-size:12px;white-space:nowrap}
.tabs{background:transparent;border-top:0;border-bottom:1px solid var(--line);padding:0!important;gap:6px;overflow-x:auto;white-space:nowrap;display:flex;justify-content:flex-start!important;flex-wrap:nowrap!important;position:static;margin:0 32px;scrollbar-width:thin;min-height:52px}
.tabs::-webkit-scrollbar{display:block;height:3px}.tabs::-webkit-scrollbar-thumb{background:#d1d4ca;border-radius:3px}
.tabs button{flex:none;background:transparent;color:var(--muted);border:0;border-radius:0;min-height:52px;padding:12px 14px;font-size:14px;font-weight:600;border-bottom:3px solid transparent;display:flex;align-items:center;gap:6px;white-space:nowrap}
.tabs button[aria-current=true]{color:var(--ink);background:transparent;border-bottom-color:#daa027}
.tabs button .ic{display:none}
.tabs button:hover{color:var(--ink);background:#eeeee8}
.card{border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:18px;box-shadow:0 1px 2px #20242603}
h2{font-size:19px;letter-spacing:-.4px;font-weight:700;margin:0 0 10px}
h3{font-size:16px;margin:18px 0 8px}
.muted{color:var(--muted);font-size:14px}
.small{font-size:12px}
label.f{font-size:13px;font-weight:650;margin:16px 0 6px}
input.t,select.t,textarea.t,input.wage{border:1px solid #cdd1cc;border-radius:7px;font-size:15px;background:#fff;min-width:0;box-shadow:0 1px 1px #00002}
input.t,select.t{height:46px;padding:0 12px}
textarea.t{min-height:100px;padding:10px 12px}
input.t:focus,select.t:focus,textarea.t:focus,input.wage:focus{border-color:#af7a13;outline:3px solid #f2b93822;outline-offset:0}
input:disabled,select:disabled,textarea:disabled{background:#f1f2ee;color:#777e79}
.btn{min-height:46px;border-radius:7px;font-size:15px;font-weight:650;padding:11px 16px;transition:background-color .12s;line-height:1.3}
.btn-yellow{background:var(--yellow);color:#24220f;border:1px solid #e6aa2b}
.btn-yellow:hover{background:#e9aa2b}
.btn-dark{background:#252b2d;color:white}
.btn-ghost{border:1px solid #d3d6d0;background:#fff}
.btn-ghost:hover{background:#f3f4ef}
.btn-green{background:#e8f4eb;border:1px solid #b8d9c0;color:#206c3b}
.btn-green:hover{background:#d8ecdd}
.btn-red{background:#b8352c;color:white}
.btn-sm{min-height:40px;font-size:13px;padding:8px 13px}
.btnrow .btn{font-size:13px;min-height:40px;flex:0 1 auto}
.btnrow{gap:8px;align-items:center}
.btnrow>.btn+.btn{margin-top:0}
.bar{gap:10px;margin-bottom:18px}
.bar .nav{border:1px solid #cdd1cc;border-radius:7px;font-size:20px;height:44px;flex-basis:44px}
.bar .d{font-size:15px}
.bar select.t{max-width:320px}
.warn{font-size:13px;line-height:1.55;padding:14px 16px;border-radius:8px;margin-bottom:18px}
.warn b{font-size:14px}
.info{background:#edf3f6;border-color:#d4dfe7;color:#314959}
.bad{background:#fff0ed;border-color:#ecc5be;color:#8d3328}
.st,.status,.chip{border-radius:5px;font-size:11px;font-weight:650;padding:4px 8px;letter-spacing:0}
.st-Approved,.st-in{background:#e4f2e7;color:#256b38}
.st-Pending,.st-For-approval{background:#fff1d2;color:#845d12}
.st-Delivered,.st-out{background:#eceee9;color:#555d57}
.st-Rejected,.st-abs{background:#fbe9e6;color:#a1372c}
.tbl-wrap{border:1px solid #e2e4df;border-radius:8px;margin:0!important;padding:0!important;background:white;overflow:auto;max-width:100%}
table.tb{font-size:14px;min-width:640px;width:100%}
table.tb th{font-size:12px;text-transform:none;letter-spacing:0;background:#f6f7f3;padding:13px 14px;border-bottom:1px solid #dde1d9;color:#626b62;font-weight:650}
table.tb td{padding:15px 14px;border-bottom:1px solid #eaede5}
table.tb tr:last-child td{border-bottom:0}
table.tb tr:hover td{background:#fcfcf8}
table.tb .muted.small{font-size:11px}
table.tb tr.tot td,table.tb tr:last-child:has(td>b) td{border-top-color:var(--line)}
.counts{gap:10px;margin-bottom:18px}
.counts div{border-radius:9px;text-align:left;padding:15px 18px;border-color:var(--line)}
.counts b{font-size:28px;font-weight:700;letter-spacing:-1px}
.counts span{font-size:11px;font-weight:500}
.tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tile{border:1px solid var(--line);border-radius:10px;padding:22px;min-height:148px;display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:16px;position:relative}
.tile:hover{border-color:#c0ac7e;box-shadow:0 3px 12px #30240008}
.tile .ic{display:grid;place-items:center;width:42px;height:42px;flex:none;background:#fff2d4;color:#8a6114;border-radius:8px}
.tile .ic .ui-icon{width:25px;height:25px}
.tile b{font-size:18px;line-height:1.3;display:block;font-weight:650;letter-spacing:-.3px}
.tile small{font-size:12px;font-weight:400;margin-top:8px;line-height:1.6}
.tile:after{content:'›';position:absolute;bottom:14px;right:18px;color:#8f9590;font-size:22px}
.home-welcome{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:26px}
.home-welcome h2{font-size:34px;letter-spacing:-1.2px;line-height:1.2;margin-bottom:8px}
.home-welcome .date{font-size:14px;color:var(--muted)}
.home-alert{width:100%;display:flex;align-items:center;gap:18px;background:#fff0ed;color:#92372d;border:1px solid #ecc7c1;border-radius:10px;text-align:left;padding:20px 22px;margin-bottom:24px}
.home-alert>.ui-icon{width:30px;height:30px}
.home-alert .alert-title{font-size:20px;font-weight:700;display:block}
.home-alert small{display:block;font-size:13px;line-height:1.6;margin-top:3px}
.home-alert .alert-arrow{font-size:28px;margin-left:auto}
.home-footer{border-top:1px solid var(--line);margin-top:28px;padding-top:20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.home-footer .btn{width:auto;min-width:180px}
.home-footer .local-state{margin-left:auto;display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}
.empty-state{padding:36px 22px;text-align:center;color:var(--muted);border:1px dashed #d9dcd3;border-radius:10px;background:#fff;font-size:14px}
.empty-state .ui-icon{width:32px;height:32px;margin-bottom:12px;color:#9a8e72}
.empty-state strong{display:block;color:var(--ink);font-size:17px;margin-bottom:6px}
.empty-state .btn{width:auto;display:inline-flex;margin-top:18px}
.pcard{border:1px solid var(--line);border-radius:10px;padding:22px;display:block;margin-bottom:14px}
.pcard:hover{border-color:#bca77b}
.pcard b.n{font-size:20px;font-weight:650;letter-spacing:-.3px}
.pcard .mini{font-size:12px;margin-top:12px}
.bar2{height:5px;background:#eeeae1;margin:16px 0 12px}
.bar2 i{background:#c99729}
.pcard .open-label{display:flex;align-items:center;gap:5px;margin-top:16px;font-size:12px;font-weight:650;color:#946a15}
.rq{border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:14px}
.rq .hd b{font-size:16px;font-weight:650}
.rq .hd .small{font-size:12px;margin-top:4px}
.rq ul{font-size:14px;margin:14px 0 14px 18px}
.rq .btnrow{margin-top:16px!important;border-top:1px solid #eceee8;padding-top:14px}
.list .li{padding:18px 0;gap:16px;border-color:#e8ebe2}
.list .li .nm,.prow .nm{font-size:15px;font-weight:650}
.list .li .small{line-height:1.6;font-size:12px;margin-top:3px}
.prow{padding:16px 0;border-color:#e6e9e0}
.prow .ph{background:#f0f1ea;color:#8b9487;font-size:18px}
.mcal-card{max-width:540px;margin-left:auto;margin-right:auto}
.calendar-toggle{font-size:12px;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:white;color:#596258;margin-bottom:14px}
.cal button.dc{border-radius:6px;min-height:100px;padding:8px;gap:4px}
.cal button.dc .n{font-weight:650}
.cal button.dc.today{border-color:#a77d23}
.cal button.dc .hol{white-space:normal;font-size:10px}
.mcal-head button,.step button,.days7 button{border:1px solid #d4d8cf;border-radius:7px}
.mwk.sel{border-color:#d8a535}
.mwk button.sel,.seg button[aria-pressed=true],.days7 button[aria-pressed=true]{background:#fff0c9;color:#644a13;border-color:#dfb550}
.seg{gap:8px;flex-wrap:wrap}
.seg button{font-size:13px;border:1px solid #d4d8cf;border-radius:8px;min-height:48px;padding:10px}
.seg button small{font-size:11px}
.itemrow,.itemrow.po{display:grid;grid-template-columns:minmax(160px,1fr) 80px 90px 44px;gap:8px;margin-top:12px;padding:14px;background:#f7f8f3;border:1px solid #e4e7df;border-radius:8px}
.itemrow.po{grid-template-columns:minmax(160px,1fr) 80px 90px 110px 44px}
.itemrow input,.itemrow button{border:1px solid #ccd2c5;border-radius:6px;font-size:14px}
.itemrow input[data-k=desc]{grid-column:auto}
.row{gap:16px}
.form-tabs{display:flex;overflow:auto;gap:8px;border-bottom:1px solid var(--line);margin-bottom:20px;white-space:nowrap}
.form-tabs button{padding:12px 14px;font-size:14px;border:0;border-bottom:3px solid transparent;background:transparent;min-height:48px;font-weight:600}
.form-tabs button[aria-selected=true]{border-bottom-color:#d49b2b;color:#725214}
.form-panel[hidden]{display:none!important}
.form-actions{display:flex;gap:10px;align-items:center;position:sticky;bottom:0;background:#f6f5f1f5;padding:16px 0 4px;border-top:1px solid var(--line);z-index:3;margin-top:24px}
.form-actions .btn{width:auto;min-width:160px}
.delete-action{font-size:12px!important;margin-top:20px!important;min-height:36px!important;width:auto!important;background:transparent!important;border:0!important;padding-left:0!important}
.filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.filters .t{flex:1 1 200px;max-width:380px}
.filters .muted{margin-left:auto;font-size:12px}
.status-filter{font-size:13px;min-height:40px;border:1px solid #cdd1cc;border-radius:7px;padding:0 10px;background:white;max-width:200px}
.saved-toast{position:fixed;bottom:24px;left:calc(50% + 116px);transform:translateX(-50%);background:#25352b;color:#fff;border:1px solid #46664f;border-radius:8px;box-shadow:0 4px 20px #0002;padding:12px 20px;z-index:100001;font-size:14px;max-width:90vw;text-align:center}
.office-local-note{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:#66705f;padding-top:22px}
.office-local-note .version{margin-left:auto}
.settings-panels>.bgrid{display:contents}
.settings-card[hidden]{display:none!important}
.settings-intro{margin-bottom:18px;color:var(--muted);font-size:14px}
.subsection-label{font-size:11px;text-transform:uppercase;letter-spacing:1.4px;font-weight:700;color:#8e7851;margin-bottom:8px}
.search-count{font-size:12px;color:var(--muted);margin:8px 0 12px}
.role{border:1px solid var(--line);border-radius:10px;min-height:90px;padding:18px;gap:16px}
.role .ic{background:#fff1cf;color:#856014;width:44px;height:44px;display:grid;place-items:center;border-radius:8px}
.role b{font-size:19px;letter-spacing:-.3px}
.role small{font-size:12px;font-weight:400;display:block;margin-top:5px}
#v-login main{max-width:520px;padding-top:48px!important}
#v-login .role:disabled{display:none}
#v-login header.top,#v-first header.top,#v-pin header.top{background:#202527;color:#fff;min-height:70px}
#v-first main,#v-pin main{padding-top:40px;max-width:520px}
#v-first h2{font-size:24px}
.pinpad button{border:1px solid var(--line);border-radius:9px}
.slip{background:#fffaf0;border-color:#e7d7b0;border-radius:8px;line-height:1.7;font-size:14px}
.sigpad{border-color:#aab39f;border-width:1px}
.bal{font-size:36px;letter-spacing:-1px}
@media (min-width:1500px){body.office-mode main.wide{padding-top:40px}.tile{min-height:160px}}
@media (max-width:1150px){:root{--sidebar:210px}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}body.office-mode main.wide{padding:24px}.tabs{margin:0 24px}body.office-mode header.top{padding:12px 24px}.office-page-heading h2{font-size:27px}}
@media (max-width:800px){
 body.office-mode>section:not(.hidden){margin-left:0}
 body.office-mode .office-sidebar{display:none;width:260px}
 body.office-mode.menu-open .office-sidebar{display:flex}
 body.office-mode.menu-open .office-scrim{display:block;position:fixed;inset:0;background:#0c1919a0;z-index:39;border:0;width:100%;height:100%}
 #bMenu{display:inline-flex}
 body.office-mode header.top{padding:12px 18px;min-height:64px}
 #officeTopLabel{font-size:13px}
 #bHome{display:none!important}
 #bBack{font-size:13px!important;padding:7px 10px!important}
 #bLock{padding:7px 10px;font-size:12px}
 #bRole{font-size:10px;padding:3px 6px}
 body.office-mode main.wide{padding:24px 18px 40px}
 body.office-mode section:not(#v-boss)>main{padding:24px 18px 40px}
 .tabs{margin:0 18px;gap:0}
 .tabs button{font-size:13px;min-height:50px;padding:12px}
 .office-page-heading{margin-bottom:22px;flex-wrap:wrap}
 .office-page-heading h2{font-size:27px}
 .office-page-heading p{font-size:12px}
 .project-context{font-size:11px;max-width:100%;white-space:normal}
 .home-welcome h2{font-size:29px}
 .home-welcome .date{font-size:13px}
 .home-alert{padding:16px;gap:12px}.home-alert .alert-title{font-size:18px}.home-alert small{font-size:12px}
 .home-alert>.ui-icon{width:24px;height:24px}
 .tile{padding:18px;gap:12px;min-height:140px}
 .tile b{font-size:17px}.tile small{font-size:12px;margin-top:6px}.tile .ic{width:36px;height:36px}
 .tiles{gap:12px}
 .card{padding:18px;margin-bottom:16px}
 .home-footer{gap:12px}.home-footer .local-state{margin-left:0;width:100%}
 .counts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.counts div{padding:12px}.counts b{font-size:24px}
 .cal button.dc{min-height:80px;padding:5px;font-size:10px}
 .cal button.dc .n{font-size:13px}
 .cal .hd{font-size:11px}
 .saved-toast{left:50%}
 .bar select.t{max-width:none}
 .itemrow.po{grid-template-columns:1fr 1fr 1fr 40px}
 .itemrow.po input[data-k=desc]{grid-column:1 / -1}
 .bar .d{min-width:100px}
 .home-footer .btn{min-width:170px}
}
@media (max-width:480px){
 .tiles{grid-template-columns:1fr}
 .tile{min-height:96px;align-items:center;padding:17px;gap:14px;padding-right:34px}
 .tile:after{top:30px;bottom:auto;right:14px}.tile small{margin-top:3px}
 .tile .ic{width:40px;height:40px}
 .row{gap:10px}.row>div{min-width:0}
 .itemrow{grid-template-columns:1fr 1fr 40px;padding:12px}.itemrow input[data-k=desc]{grid-column:1 / -1}
 .rq .hd{flex-wrap:wrap;gap:8px}
 .list .li{gap:10px;flex-wrap:wrap}.list .li .mid{flex-basis:65%}
 .form-actions .btn{min-width:0;flex:1}
 .form-tabs button{padding:12px 10px;font-size:13px}
 #bRole{max-width:100px;overflow:hidden}#officeTopLabel{display:none}
 .cal button.dc{min-height:76px;gap:3px;font-size:9px;padding:4px 2px}
 .cal button.dc .hol{font-size:9px}.cal button.dc .cot{font-size:8px}
 .bar>.d{font-size:13px}
 .btnrow .btn{flex:1 1 auto}
 .rq{padding:16px}
 .office-local-note{font-size:11px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{
 body.office-mode>section:not(.hidden){margin:0}
 .office-sidebar,.office-scrim,.saved-toast,.office-local-note{display:none!important}
}

/* Explicit messaging choices and contact entry. */
.invite-contact-box{border:1px solid var(--line);border-radius:9px;background:#fbfcf8;padding:18px;margin:16px 0}
.invite-contact-row{display:flex;gap:10px;align-items:center;margin-bottom:7px}.invite-contact-row input{flex:1;min-width:0}.invite-contact-row .btn{flex:none;width:auto}
.invite-apps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:8px 0 12px}.invite-apps button{border:1px solid #ced3c7;border-radius:8px;min-height:48px;background:white;padding:10px;font-size:14px;font-weight:650}.invite-apps button[aria-pressed=true]{background:#fff0ce;color:#705016;border-color:#d7a83d;box-shadow:inset 0 0 0 1px #d7a83d}
.invite-preview{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.invite-preview summary{cursor:pointer;font-size:13px;font-weight:650}.invite-preview textarea{margin-top:8px;font-size:13px;min-height:150px}
.invite-handoff{margin-top:14px;line-height:1.7}.invite-handoff #shDeliveryStatus{color:#6d521d}.invite-handoff .btn{margin:12px 0}.invite-handoff [hidden]{display:none!important}
@media (max-width:650px){.invite-apps{grid-template-columns:repeat(2,minmax(0,1fr))}.invite-apps button:last-child{grid-column:1 / -1}.invite-contact-row{flex-wrap:wrap}.invite-contact-row input{flex:1 1 100%}.invite-contact-row .btn{width:100%}.invite-contact-box{padding:14px}}
