html:not([data-tf-role="manager"]) [data-page="approvals"],
html:not([data-tf-role="manager"]) [data-page="reports"],
html:not([data-tf-role="manager"]) [data-page="invoices"],
html:not([data-tf-role="manager"]) [data-page="team"],
html:not([data-tf-role="manager"]) #tf-timesheets-nav,
html:not([data-tf-role="manager"]) #tf-timesheets-top,
html:not([data-tf-role="manager"]) [data-tf713-invoices-sent]{display:none!important}

.tf713-modalback{position:fixed;inset:0;z-index:100200;display:grid;place-items:center;overflow:auto;padding:18px;background:rgba(15,23,42,.68)}
.tf713-nested-shade{position:absolute;inset:0;z-index:2;display:grid;place-items:center;overflow:auto;padding:18px;background:rgba(15,23,42,.72);border-radius:inherit}
.tf713-modal{width:min(1180px,100%);max-height:94vh;overflow:auto;padding:20px;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.32)}
.tf713-modal>header,.tf713-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px}.tf713-modal>header h2,.tf713-section-head h2,.tf713-section-head h3{margin:0}.tf713-modal>header p,.tf713-section-head p{margin:5px 0 0}
.tf713-formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tf713-formgrid .span2{grid-column:span 2}.tf713-formgrid label{display:grid;gap:6px;font-weight:700}.tf713-formgrid input,.tf713-formgrid select,.tf713-formgrid textarea{width:100%}
.tf713-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}.tf713-actions .spacer{flex:1}
.tf713-loading{padding:32px;text-align:center;color:#637068}.tf713-hidden,.tf713-original-time{display:none!important}
.tf713-invoice-card{padding:0;overflow:hidden}.tf713-invoice-card summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 19px;cursor:pointer}.tf713-invoice-card summary span{display:grid;gap:4px}.tf713-invoice-card summary small{color:#657169}.tf713-invoice-card summary strong{font-size:1.15rem}.tf713-readonly{padding:0 19px 19px;border-top:1px solid #e1e7e3}.tf713-readonly>.pill{margin-top:14px}
.tf713-approval-area{margin-top:20px}.tf713-approval-area table{min-width:980px}.tf713-group th{text-align:left!important;background:#eaf2ee!important;color:#1e503c!important;font-size:.9rem!important}.tf713-approval-area input[type="checkbox"]{width:19px;height:19px}
.tf713-edit-table input{width:100%}
#tf713-material-edit .tablewrap{overflow:visible}
#tf713-material-edit .tf713-edit-table{display:block;width:100%;min-width:0}
#tf713-material-edit .tf713-edit-table thead{display:none}
#tf713-material-edit .tf713-edit-table tbody{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;counter-reset:tf713-material-card}
#tf713-material-edit .tf713-edit-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;padding:17px;border:1px solid #d7e0db;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(23,62,49,.06);counter-increment:tf713-material-card}
#tf713-material-edit .tf713-edit-table tr::before{content:"Material " counter(tf713-material-card);grid-column:1/-1;padding-bottom:9px;border-bottom:1px solid #e3ebe6;color:#173e31;font-size:1.02rem;font-weight:900}
#tf713-material-edit .tf713-edit-table td{display:block;width:100%;padding:0;border:0}
#tf713-material-edit .tf713-edit-table td:first-child,#tf713-material-edit .tf713-edit-table td:nth-child(2),#tf713-material-edit .tf713-edit-table td:nth-child(5),#tf713-material-edit .tf713-edit-table td:last-child{grid-column:1/-1}
#tf713-material-edit .tf713-edit-table input,#tf713-material-edit .tf713-edit-table td:first-child input,#tf713-material-edit .tf713-edit-table td:nth-child(2) input{width:100%;min-width:0;min-height:44px}
#tf713-material-edit .tf713-mobile-label{display:block;margin:0 0 5px;color:#4e5d55;font-weight:800}
#tf713-material-edit [data-tf713-delete-material-row]{width:100%;min-height:42px}
#tf713-material-edit>.tf713-actions{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 0 0;background:#fff}
#tf713-material-edit>.tf713-actions .btn{width:100%}
.tf713-bank-card,.tf713-backup-card{margin:16px 0}.tf713-bank-card h2{margin:0}.tf713-status-value{font-size:1.08rem;font-weight:800;margin-top:7px}.tf713-check{display:flex;align-items:center;gap:6px;white-space:nowrap}.tf713-check input{width:18px;height:18px}
#tf713-bank-table{min-width:920px}#tf713-bank-table input,#tf713-bank-table select{width:100%;min-width:145px}
.tf713-toast{z-index:100300!important}.tf713-toast.error{background:#a22d24!important}
.tf-mh-material-table{min-width:850px!important}.tf-mh-material-table .tf-mh-notes{width:260px}.tf-mh-time-field input[type="text"]{width:100%;font-variant-numeric:tabular-nums}.tf-mh-time-field select{min-height:48px;touch-action:pan-y}
.mobileNav{overflow-x:auto}.mobileNav>[data-tf713-invoices-sent]{min-width:70px}

/* v7.14 workflow clarity and responsive pages */
.tf-wf-request-list{gap:20px!important}.tf-wf-approval-request{border-color:#d79b22!important;background:#fff9e8!important;color:#533b08!important}.tf-wf-approval-request h3,.tf-wf-approval-request p,.tf-wf-approval-request .muted,.tf-wf-approval-request td,.tf-wf-approval-request th,.tf-wf-approval-request .tf-wf-request-kind,.tf-wf-approval-request .tf-wf-request-reason{color:#533b08!important}.tf-wf-request-dropdown>summary{background:#fff2c7!important;color:#533b08!important}.tf-wf-inline-request-row>td{border-top:18px solid #fff!important;border-left-color:#d79b22!important;border-right-color:#d79b22!important;border-bottom-color:#d79b22!important;background:#fff9e8!important}
.tf714-pager{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 0;flex-wrap:wrap}.tf714-fieldset{display:flex;gap:14px;flex-wrap:wrap;border:1px solid #dce5df;border-radius:10px;padding:12px}.tf714-fieldset legend{font-weight:800;padding:0 5px}.tf714-fieldset label{display:flex!important;grid-template-columns:none!important;align-items:center;gap:6px}.tf714-fieldset input{width:18px!important;height:18px}.tf714-source-list{display:grid;gap:7px;padding:12px}.tf714-source-list label{display:flex;align-items:flex-start;gap:8px}.tf714-source-list input{width:18px;height:18px;margin-top:2px}.tf714-preview{margin:16px 0}.tf714-commercial-card hr{border:0;border-top:1px solid #dce5df;margin:24px 0}.tf714-request-card{margin:0 0 18px}.tf714-request-card summary{display:flex;justify-content:space-between;gap:15px;cursor:pointer}.tf714-request-card pre{white-space:pre-wrap;word-break:break-word;background:#f5f7f6;padding:12px;border-radius:8px}.tf714-notification{border-left:4px solid #c9d5cf}.tf714-notification.unread{border-left-color:#d79b22;background:#fffaf0}.tf714-notification p{margin:6px 0}.tf714-update{position:fixed;z-index:100500;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(680px,calc(100% - 24px));display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-radius:13px;background:#153e31;color:#fff;box-shadow:0 12px 35px rgba(0,0,0,.28)}
.tf714-recovery-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:13px;border:1px solid #cbded5;border-radius:10px;background:#f4faf7}.tf714-recovery-status.error{border-color:#dcaaa3;background:#fff3f1}.tf714-user-activity{margin:16px 0}.tf714-user-activity table{min-width:720px}.tf714-presence{display:inline-flex;align-items:center;gap:7px;font-weight:800}.tf714-presence i{width:10px;height:10px;border-radius:50%;background:#8b9590}.tf714-presence.online i{background:#1a9c5d;box-shadow:0 0 0 3px rgba(26,156,93,.16)}.tf714-presence.away i{background:#d69b18}.tf714-presence.disabled i{background:#b53a30}
.tf714-password-wrap{display:flex;width:100%;min-width:0}.tf714-password-wrap>input{flex:1;min-width:0;border-radius:8px 0 0 8px!important}.tf714-password-toggle{flex:0 0 auto;min-width:62px;padding:0 11px;border:1px solid #aebdb5;border-left:0;border-radius:0 8px 8px 0;background:#f2f6f4;color:#173e31;font:inherit;font-weight:800;cursor:pointer}.tf714-password-toggle:hover,.tf714-password-toggle:focus-visible{background:#e1eee8;outline:2px solid #277b5c;outline-offset:1px}.tf714-remember-credentials{display:grid!important;grid-column:1/-1;gap:6px!important;margin:0}.tf714-remember-credentials label{display:flex!important;align-items:center;gap:8px}.tf714-remember-credentials input[type="checkbox"]{width:auto!important;padding:0!important}
.tf714-login-language{grid-column:1/-1}.tf714-login-language select{width:100%;min-height:44px}
.tf714-staff-notice-composer{margin:16px 0}.tf714-staff-notice-composer textarea{resize:vertical;min-height:110px}.tf714-staff-notice-host{position:fixed;z-index:100350;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));display:grid;gap:10px;width:min(460px,calc(100vw - 36px));pointer-events:none}.tf714-staff-notice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px;padding:16px;border:2px solid #d79b22;border-radius:14px;background:#fff9e8;color:#3e300b;box-shadow:0 16px 42px rgba(35,45,39,.28);pointer-events:auto}.tf714-staff-notice h3{margin:8px 0 5px;color:#3e300b}.tf714-staff-notice p{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}.tf714-staff-notice small{color:#6f613c}.tf714-staff-notice .btn{white-space:nowrap}
.tf715-contact-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:14px;border:1px solid #cbded5;border-radius:12px;background:#f7fbf9}.tf715-contact-picker>label{min-width:0}.tf715-contact-actions{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tf715-contact-actions .tf713-check{margin-right:auto}.tf715-contact-picker>[data-contact-status]{grid-column:1/-1;margin:0;overflow-wrap:anywhere}.tf715-contact-dialog>.tf713-modal{width:min(780px,100%)}.tf715-duplicate-list{display:grid;gap:7px;margin:10px 0}.tf715-duplicate-list .btn{text-align:left;white-space:normal}
.tf715-sheet-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.tf715-sheet-summary span,.tf715-sheet-summary b{padding:7px 10px;border:1px solid #cbded5;border-radius:999px;background:#f7fbf9}.tf715-sheet-wrap{max-width:100%;max-height:54vh;overflow:auto;border:1px solid #d8e2dc;border-radius:10px}.tf715-sheet-preview,.tf715-csv-sheet{min-width:1560px;border-collapse:separate;border-spacing:0}.tf715-sheet-preview thead th,.tf715-csv-sheet thead th{position:sticky;top:0;z-index:1;background:#eaf4ef;box-shadow:0 1px 0 #c9d8d0}.tf715-sheet-preview tbody tr:nth-child(even),.tf715-csv-sheet tbody tr:nth-child(even){background:#f7faf8}.tf715-sheet-preview th,.tf715-sheet-preview td,.tf715-csv-sheet th,.tf715-csv-sheet td{vertical-align:top;border-bottom:1px solid #e1e8e4}.tf715-sheet-preview .right,.tf715-csv-sheet .right{text-align:right;font-variant-numeric:tabular-nums}.tf715-row-number{font-weight:900;text-align:center}.tf715-blank-cell{min-width:90px;background:repeating-linear-gradient(135deg,#fafcfb,#fafcfb 5px,#f2f6f4 5px,#f2f6f4 10px)}.tf715-source-details{min-width:180px;max-width:320px}.tf715-source-details summary{cursor:pointer;font-weight:800}.tf715-source-details ul{margin:8px 0 0;padding-left:18px}.tf715-source-details li{margin:0 0 6px;overflow-wrap:anywhere}
html[data-tf-critical-update="true"] .main{pointer-events:none;opacity:.72}

@media(max-width:900px){
  .tf713-modalback{align-items:end;padding:0}.tf713-modal{width:100%;max-height:94dvh;border-radius:16px 16px 0 0;padding:17px 13px calc(17px + env(safe-area-inset-bottom))}
  .tf713-nested-shade{place-items:stretch;padding:0}.tf713-nested-shade>.tf713-modal{max-height:100%;border-radius:12px}
  .tf713-formgrid{grid-template-columns:1fr}.tf713-formgrid .span2{grid-column:span 1}.tf713-section-head{display:block}.tf713-section-head .toolbar{margin-top:10px}.tf713-section-head .toolbar .btn{flex:1}
  .tf713-actions .btn{flex:1}.tf713-invoice-card summary{align-items:flex-start}.tf713-invoice-card summary strong{white-space:nowrap}
  #tf713-material-edit .tf713-edit-table tbody{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  #tf713-material-edit .tf713-edit-table tr{gap:11px;padding:14px}
  #tf713-material-edit>.tf713-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  #tf713-material-edit>.tf713-actions .btn[type="submit"]{grid-column:1/-1}
  .tf-wf-compare{min-width:0!important;display:block}.tf-wf-compare thead{display:none}.tf-wf-compare tbody,.tf-wf-compare tr,.tf-wf-compare td{display:block;width:100%!important}.tf-wf-compare tr{margin:0 0 14px;border:1px solid #e4c267;border-radius:10px;overflow:hidden}.tf-wf-compare td{border:0!important;border-bottom:1px solid #eee!important;padding:10px 12px 10px 132px!important;position:relative;min-height:44px}.tf-wf-compare td:before{position:absolute;left:10px;top:10px;width:112px;font-weight:800}.tf-wf-compare td:nth-child(1):before{content:'Field'}.tf-wf-compare td:nth-child(2):before{content:'Current'}.tf-wf-compare td:nth-child(3):before{content:'Requested'}.tf714-update{align-items:stretch;flex-direction:column}.tf714-update .btn{width:100%}
  .tf714-recovery-status{align-items:stretch;flex-direction:column}.tf714-recovery-status .btn{width:100%}
  .tf714-staff-notice-host{right:10px;bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 20px)}.tf714-staff-notice{grid-template-columns:1fr;align-items:stretch;padding:14px}.tf714-staff-notice .btn{width:100%}
  .tf715-contact-picker{grid-template-columns:1fr}.tf715-contact-actions{grid-column:1;align-items:stretch;flex-direction:column}.tf715-contact-picker>[data-contact-status]{grid-column:1}.tf715-contact-actions .tf713-check,.tf715-contact-actions .btn{width:100%;margin:0}.tf715-sheet-wrap{max-height:56dvh}.tf715-sheet-summary{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.tf715-sheet-summary b{grid-column:1/-1}
}

@media(max-width:560px){
  #tf713-material-edit .tf713-edit-table tbody{grid-template-columns:1fr}
  #tf713-material-edit .tf713-edit-table tr{grid-template-columns:1fr}
  #tf713-material-edit .tf713-edit-table td{grid-column:1/-1}
  #tf713-material-edit>.tf713-actions{grid-template-columns:1fr}
  #tf713-material-edit>.tf713-actions .btn[type="submit"]{grid-column:auto}
}
