/* Shared shell: logout stays explicit and available on all screen sizes. */
.logout-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:110px;min-height:44px;flex-shrink:0}.logout-action>span{font-size:12px;white-space:nowrap}
.sidebar-logout{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px;border:1px solid #54708f;border-radius:10px;color:#fff;margin-bottom:12px}.sidebar-logout .ui-icon{width:20px;height:20px}
.employee-appbar-right{min-width:0}.employee-appbar-right>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-appbar-right .employee-logout{width:auto;min-width:110px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;color:#173d67;background:#fff;border:1px solid #dbe5ef}.employee-logout .ui-icon{width:20px;height:20px}.employee-logout span{font-size:12px;white-space:nowrap}
.workspace-main,.mobile-shell,.app-workspace{min-width:0}.card>form,.panel>form{min-width:0}.table-wrap{width:100%;min-width:0;max-width:100%}.calc-json{max-width:100%;overflow:auto}
.notice-panel a,.notice-panel a b,.notice-panel a span{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;line-height:1.45}.notice-panel a b{font-size:13px}
@media(max-width:1180px){.workspace-topbar{height:auto;min-height:68px}.workspace-topbar .kintai-topbar-quote{display:none!important}.workspace-topbar .global-search{min-width:0!important;flex:1 1 200px}.workspace-topbar .topbar-left{min-width:0}.workspace-topbar .staff-chip-text{display:none}}
@media(max-width:900px){
 .workspace-topbar .notice-control{position:static}.workspace-topbar .notice-panel{position:absolute;left:12px;right:12px;top:calc(100% + 8px);width:auto;max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
 .workspace-topbar{height:auto;min-height:64px;padding:8px 12px;gap:8px}.workspace-topbar .topbar-left{min-width:0}.topbar-actions{flex-shrink:0;gap:4px}.workspace-topbar .global-search{min-width:0}.workspace-topbar .kintai-topbar-quote{display:none!important}.workspace-topbar .logout-action{display:inline-flex}
 .app-sidebar{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}body.sidebar-open{overflow:hidden}
 .two-col,.two-col.wide-left,.employee-layout,.schedule-layout,.authz-layout,.record-workspace{grid-template-columns:minmax(0,1fr)}
 .actions,.record-actions,.page-title,.section-head,.panel-head{white-space:normal;flex-wrap:wrap;gap:8px}.actions .btn{white-space:normal}.date-control{flex-wrap:wrap}.topbar-module{max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:640px){
 .workspace-topbar .global-search,.workspace-topbar .staff-chip{display:none}.workspace-topbar .topbar-left{flex:1}.workspace-topbar .topbar-actions{gap:2px}.workspace-topbar .icon-action{min-height:44px}.workspace-main{padding:14px 10px 30px}.workspace-main>*,.mobile-shell>*{max-width:100%;min-width:0}
 .employee-appbar{height:auto;min-height:64px;padding:8px max(10px,env(safe-area-inset-right,0px)) 8px max(10px,env(safe-area-inset-left,0px));gap:8px}.employee-brand{min-width:0;flex:0 1 130px}.employee-appbar-right{flex:1;justify-content:flex-end}.employee-appbar-right>span{max-width:90px!important}.employee-bottom-nav a{min-height:44px;font-size:11px}.kintai-employee .mobile-shell{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px));min-height:calc(100vh - 64px);min-height:calc(100dvh - 64px)}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;max-width:100%;min-width:0}input[type=checkbox],input[type=radio]{flex-shrink:0}.btn,button.icon-action,.sidebar-toggle{min-height:44px}label,fieldset,form{min-width:0}.grid2,.grid3,.report-filter,.report-two-col,.contract-detail-grid{grid-template-columns:minmax(0,1fr)}.day-timecard-strip{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.mobile-schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.event-row,.report-small-row,.saved-attachment{flex-wrap:wrap}.event-row>div{min-width:0;max-width:100%}.event-time{white-space:normal}.attachment-head,.employee-report-head{flex-wrap:wrap}.photo-help,.saved-attachments{max-width:100%}
 /* Preserve table columns on desktop; turn simple record tables into cards. */
 .table-wrap:has(>.mobile-record-table){overflow-x:visible}.table-wrap>.mobile-record-table{display:block;width:100%;min-width:0!important;border-collapse:separate}.mobile-record-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mobile-record-table>tbody{display:block}.mobile-record-table>tbody>tr{display:block;margin:10px 0;padding:10px;background:#fff;border:1px solid #dbe5ef;border-radius:12px}.mobile-record-table>tbody>tr[hidden]{display:none!important}.mobile-record-table>tbody>tr>td{display:block;width:100%;max-width:none;padding:7px 0;overflow-wrap:anywhere;white-space:normal}.mobile-record-table>tbody>tr>td[data-label]:before{content:attr(data-label);display:block;font-size:10px;font-weight:750;color:#60748a;line-height:1.5;margin-bottom:3px}.mobile-record-table>tbody>tr>td.mobile-full-cell:before{display:none}.mobile-record-table td .btn{max-width:100%;white-space:normal}
 .attendance-bulk-bar{position:static!important;grid-template-columns:minmax(0,1fr)!important}.attendance-bulk-bar .bulk-selection{max-width:none}.attendance-bulk-bar>.btn{width:100%}
}
@media(max-width:360px){.employee-appbar-right>span{display:none}.workspace-topbar{padding-left:8px;padding-right:8px}.workspace-topbar .logout-action{min-width:104px}.workspace-topbar .topbar-actions>.icon-action:not(.logout-action){width:30px}.employee-appbar-right .employee-logout{min-width:104px}}
/* Clear save state in every administrative and employee form. */
.form-save-status{padding:.65rem .8rem;border-left:3px solid #a8b8cc;background:#f3f6fa;color:#405674;overflow-wrap:anywhere}
.form-save-status[data-pending="1"]{border-color:#d68d00;background:#fff7e5;color:#775100}
button:disabled,input[type="submit"]:disabled{opacity:.55;cursor:not-allowed}
[data-calendar-preview]{overflow-wrap:anywhere}
