/* 1.9.3: component-scoped layouts. Desktop and mobile rules are separate. */
.profile-logout193{display:none}
@media(max-width:720px){
 .top-actions #logoutBtn{display:none!important}
 .v13-profile .profile-logout193{display:block;margin-bottom:max(8px,env(safe-area-inset-bottom))}
 .profile-logout193 .btn{width:100%;min-height:44px}
}
.worktime193{display:block;min-width:0}
.worktime-heading193{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-width:0}
.worktime-heading193 h3{margin:0;font-size:18px;line-height:1.35}
.worktime-heading193 .btn{white-space:nowrap;justify-self:end}
.worktime-status193{display:grid;gap:6px;margin:14px 0;min-width:0}
.worktime-status193 p{margin:0;line-height:1.5;overflow-wrap:anywhere}
.worktime-status193>p:first-child{font-size:14px}
@media(max-width:720px){
 .worktime-heading193{gap:10px}
 .worktime-heading193 h3{font-size:14px;white-space:nowrap}
 .worktime-heading193 .btn{font-size:12px;padding:8px 10px;min-height:44px;white-space:nowrap}
 .worktime-status193{margin:12px 0}
}
@media(max-width:720px){
 #modal:has(>.dialog-card>.v13-profile){position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 #modalBody:has(>.v13-profile){width:100%;max-width:100%;height:100%;min-width:0;overflow:hidden}
 #modalBody:has(>.v13-profile)>.dialog-head,#modalBody:has(>.v13-profile)>.dialog-footer{flex:0 0 auto;min-width:0}
 #modalBody>.v13-profile{flex:1 1 auto;min-height:0;min-width:0;max-width:100%;overflow-y:auto;overscroll-behavior:contain;padding:16px!important;box-sizing:border-box}
 .v13-profile>*{min-width:0;max-width:100%}
 .v13-profile .v13-person-head{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px}
 .v13-profile .v13-avatar{width:56px;height:56px;font-size:20px}
 .v13-profile .v13-person-head>.v13-actions{grid-column:1/-1;width:100%;flex-wrap:wrap}
 .v13-profile .v13-person-title,.v13-profile .v13-person-title h2,.v13-profile .v13-person-title p{min-width:0;overflow-wrap:anywhere}
 .v13-profile .v13-contacts a{display:block;white-space:normal;overflow-wrap:anywhere;max-width:100%}
 .v13-profile .v13-contacts svg{display:inline-block;vertical-align:middle;margin-right:8px}
 .v13-profile .v13-manager,.v13-profile .v13-manager .record-link{white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:left}
 .v13-profile .v13-tags{max-width:100%;gap:10px}
 .v13-profile .object-label,.v13-profile .object-label span,.v13-profile .object-label b{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .v13-profile .object-label i,.v13-profile .object-label svg{flex-shrink:0}
 .v13-profile .v13-profile-stats{grid-template-columns:minmax(0,1fr)}
 .v13-profile .v13-stat,.v13-profile .v13-stat strong,.v13-profile .v13-rates b{min-width:0;overflow-wrap:anywhere;white-space:normal}
 .v13-profile .section-title{flex-wrap:wrap;gap:8px;min-width:0}
 .v13-profile h3,.v13-profile .v13-prewrap,.v13-profile .form-note,.v13-profile .v13-awards p,.v13-profile .v13-awards b{overflow-wrap:anywhere;min-width:0}
 .v13-profile .btn,.v13-profile .text-btn,.v13-profile .v16-profile-link{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .v13-profile .v13-actions{min-width:0}
 .v13-profile .staff-clock17>div{min-width:0;overflow-wrap:anywhere}
 .v13-profile .staff-clock17{flex-wrap:wrap;gap:10px}
}
.authority-heading193{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.authority-list193{display:grid;gap:12px;margin-top:12px}
.authority-row193{display:grid;gap:6px;min-width:0;border-bottom:1px solid var(--line);padding-bottom:12px}
.authority-row193>a,.authority-form193>a{overflow-wrap:anywhere}
.authority-row193>small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.authority-state193{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.authority-row193>.text-btn{justify-self:start}
.authority-form193{display:grid;gap:14px;margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0}
.authority-fields193{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.authority-form193 label{display:grid;gap:6px;min-width:0;font-size:12px}
.authority-form193 input,.authority-form193 select{min-width:0;width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:inherit;font:inherit}
.authority-form193 .actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
@media(max-width:720px){
 .authority-fields193{grid-template-columns:minmax(0,1fr)}
 .authority-form193{padding:12px}
 .authority-heading193 .btn{white-space:normal}
}
#modal:has(>.expense-window193){width:min(820px,calc(100vw - 48px));max-width:calc(100vw - 48px);height:fit-content;max-height:calc(100dvh - 48px);padding:0}
#modalBody.expense-window193{width:100%;max-width:100%;height:auto;max-height:inherit;min-width:0;padding:0;overflow:hidden;box-sizing:border-box}
.expense-window193>.dialog-head,.expense-window193>.dialog-footer{flex:0 0 auto;position:static;min-width:0}
.expense-window193>.expense-page{flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:visible;width:100%;box-sizing:border-box}
.expense-window193 .dialog-head>div,.expense-window193 .dialog-head h3,.expense-window193 .field,.expense-window193 .form-grid>*{min-width:0;overflow-wrap:anywhere}
.expense-window193 .expense-list-tools{display:grid;grid-template-columns:minmax(140px,1fr) auto auto;gap:12px;align-items:end}
.expense-window193 .expense-list-tools>label{min-width:0}
.expense-window193 .expense-list-tools .btn{white-space:normal;max-width:100%}
.expense-window193 input,.expense-window193 select,.expense-window193 textarea{min-width:0;max-width:100%;box-sizing:border-box}
.expense-window193 .receipt-expense-item{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px}
.expense-window193 .expense-quantity-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}
.expense-window193 .expense-quantity-grid>label{min-width:0}
.expense-window193 .dialog-footer .actions{min-width:0;flex-wrap:wrap;gap:10px;align-items:center}
.expense-window193 .dialog-footer .btn{white-space:normal;max-width:100%}
.expense-window193 .expense-save-total{margin-right:auto;min-width:0;overflow-wrap:anywhere}
.expense-window193 .expense-save-total small{display:block}
@media(max-width:720px){
 #modal:has(>.expense-window193){position:fixed;inset:auto;top:var(--expense-top193,0px);left:0;margin:0;width:100%;max-width:100%;height:var(--expense-height193,100dvh);max-height:var(--expense-height193,100dvh);border-radius:0}
 #modalBody.expense-window193{height:100%;max-height:100%}
 .expense-window193>.expense-page{flex:1 1 auto;padding:16px!important;gap:16px;overscroll-behavior:contain}
 .expense-window193 .expense-list-tools{grid-template-columns:minmax(0,1fr);gap:10px}
 .expense-window193 .expense-list-tools .btn{width:100%}
 .expense-window193 .form-grid{grid-template-columns:minmax(0,1fr)}
 .expense-window193 .expense-quantity-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .expense-window193 .expense-quantity-grid label:last-child{grid-column:1/-1}
 .expense-window193 .expense-row{grid-template-columns:34px minmax(0,1fr)}
 .expense-window193 .expense-row>strong{grid-column:2;white-space:normal;overflow-wrap:anywhere}
 .expense-window193 .dialog-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}
 .expense-window193 .dialog-footer .actions{display:flex;flex-wrap:wrap!important;gap:10px}
 .expense-window193 .expense-save-total{flex-basis:100%}
 .expense-window193 .dialog-footer .btn{flex:1 1 auto;min-height:44px;min-width:0}
 .expense-window193 .expense-summary strong{font-size:26px;overflow-wrap:anywhere}
 .expense-window193 .expense-scan>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
}
