/* Shared, contained laptop layouts. Tables scroll inside their own regions. */
.app-main,.module-layout,.module-layout>.content{min-width:0;max-width:100%;box-sizing:border-box}
.module-layout>.content{width:100%;overflow-wrap:anywhere}
.module-layout.has-module-nav{grid-template-columns:180px minmax(0,1fr);gap:10px}
.module-layout>.content>:is(form,section,div,header),.content :is(.panel,.form-panel,.table-wrap,.record-layout,.toolbar,.view-tools){min-width:0;max-width:100%;box-sizing:border-box}
.content .table-wrap{display:block;width:100%;overflow:auto;overscroll-behavior-inline:contain}
.content .table-wrap table{max-width:none}
.content .toolbar{flex-wrap:wrap;gap:9px}
.content .toolbar>.search{flex:1 1 220px;min-width:0}
.content .toolbar :is(input,select){min-width:0;max-width:100%}
.content .toolbar>.filter{flex:0 1 170px}
.content .executive-header{min-width:0;max-width:100%;flex-wrap:wrap;gap:14px;box-sizing:border-box}
.content .executive-header>.header-copy{min-width:0;flex:1 1 220px}
.content .executive-header :is(h1,p){overflow-wrap:anywhere}
.module-navigation{margin-left:10px;padding:9px;border-radius:14px;max-width:100%;box-sizing:border-box}
.module-navigation-toggle{white-space:normal;gap:5px}
.module-layout.module-nav-collapsed{grid-template-columns:54px minmax(0,1fr)}
.module-nav-collapsed .module-navigation{padding:5px;margin-left:7px;overflow:visible}
.module-nav-collapsed .module-navigation-toggle{font-size:0;min-height:38px;justify-content:center}
.module-nav-collapsed .module-navigation-toggle>span{font-size:19px;transform:rotate(-90deg)}
.app-main>.topbar{min-width:0;max-width:100%;box-sizing:border-box;gap:12px}
.topbar .global-search{min-width:130px;flex:1 1 250px}
.topbar .global-search input{min-width:0;width:100%}
.topbar .top-actions{min-width:0;flex:0 1 auto}
.topbar .user-menu strong{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The light home style now carries through module headers and routine controls. */
.app-main .executive-header{background:linear-gradient(125deg,#f8fcfd,#e3f1f2)!important;border:1px solid #c7e0e2!important;box-shadow:5px 5px 14px #24495312,-3px -3px 10px #ffffffb0!important;color:#153f49!important;padding:20px 22px!important;border-radius:17px!important}
.app-main .executive-header :is(h1,h2,p,.eyebrow){color:#153f49!important;text-shadow:none!important}
.app-main :is(button,.button,.header-nav a,.row-action-menu>summary,.module-navigation-toggle){border-radius:10px!important}
.app-main :is(button,.button,.row-action-menu>summary,.module-navigation-toggle):not(.danger):not(.reject):not(.delete):not(.link-button){background:linear-gradient(145deg,#ffffff,#e3eef0)!important;border:1px solid #c5dadd!important;color:#174451!important;text-shadow:none!important;box-shadow:3px 3px 8px #234b5514,-2px -2px 7px #ffffffbd!important;transition:box-shadow .16s ease,background .16s ease,transform .16s ease}
.app-main :is(button,.button):not(:disabled):hover{box-shadow:2px 4px 10px #234b5525!important}
.app-main :is(button,.button):not(:disabled):active{transform:translateY(1px)}
.app-main .header-nav a.active,.module-view-tabs>a.active{background:#d8eeeb!important;color:#07594e!important;box-shadow:inset 3px 0 #128376!important}
.app-main :is(button,a,input,select,textarea):focus-visible{outline:2px solid #087c83!important;outline-offset:3px}
.app-main :is(.form-panel,.editor-section){border-radius:14px}
.form-grid>label{min-width:0;gap:7px;line-height:1.5}
.form-grid>label>small{line-height:1.5;color:#4b666e}
.workforce-config-form .form-grid,.compact-leave-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 22px!important}
.compact-leave-form .form-grid>.wide{grid-column:1/-1}
.compact-leave-form select[multiple],.workforce-config-form select[multiple]{height:auto!important;min-height:140px!important}
.r47-choice-search{display:grid;gap:7px;min-width:0}
.r47-choice-search input{width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid #bdd4d8;border-radius:8px;font:inherit}
.r47-selected-people{display:flex;flex-wrap:wrap;gap:6px}
.r47-selected-people button{padding:5px 9px!important;min-height:29px!important;font-size:12px!important}
.r47-bulk-toggle{justify-self:start;grid-column:1/-1}
.r47-leave-summary{padding:12px 14px;background:#edf7f6;border:1px solid #c6dfdc;border-radius:10px;margin:12px 0;line-height:1.6}
.compact-leave-form [hidden]{display:none!important}
.notes-workspace{grid-template-columns:220px minmax(0,1fr)}
.notes-writing{min-height:calc(100dvh - 260px)}
.hanger-leaf>strong{font-size:10px!important}
.hanger-leaf:focus-visible{outline:2px solid #087c83;outline-offset:3px}
/* Workbook controls use the same spacing and light surfaces as the CRM home. */
body[data-sheet]{font-family:Calibri,"Segoe UI",Arial,sans-serif;font-style:italic;background:#edf5f6;color:#173f49}
body[data-sheet] .desk-top{gap:12px;flex-wrap:wrap;background:#f5fbfccc;border-bottom:1px solid #c5dce0;box-shadow:0 3px 13px #234b5510}
body[data-sheet] :is(button,.btn){border:1px solid #c4dadf;border-radius:10px;background:linear-gradient(145deg,#fff,#e2edf0);color:#174451;box-shadow:3px 3px 9px #234b5515,-2px -2px 8px #fff;font:inherit;transition:box-shadow .16s,transform .16s}
body[data-sheet] :is(button,.btn):hover{box-shadow:3px 5px 12px #234b552a}
body[data-sheet] .sheet-head{flex-wrap:wrap;gap:10px;padding:12px}
body[data-sheet] .sheet-actions{flex-wrap:wrap;gap:7px}
body[data-sheet] .shortcuts{gap:16px}
body[data-sheet] .ribbon{gap:6px;padding:8px 12px}
body[data-sheet] #grid-holder{max-width:100%;overscroll-behavior:contain}
@media(max-width:1200px){.module-layout.has-module-nav{grid-template-columns:156px minmax(0,1fr)}.module-layout.module-nav-collapsed{grid-template-columns:50px minmax(0,1fr)}.topbar .user-menu strong{max-width:115px}.module-view-tabs>a{font-size:12px;padding:8px}.app-main .content{padding-right:28px!important}}
@media(max-width:850px){.module-layout.has-module-nav,.module-layout.module-nav-collapsed{display:block}.module-navigation{margin:12px 16px 0}.module-nav-collapsed .module-navigation{margin:12px 16px 0}.module-nav-collapsed .module-navigation-toggle{font-size:14px;justify-content:space-between}.app-main>.topbar{flex-wrap:wrap}.topbar .global-search{order:3;flex-basis:100%}.app-main .content{padding:16px!important}.workforce-config-form .form-grid,.compact-leave-form .form-grid{grid-template-columns:minmax(0,1fr)!important}.notes-workspace{grid-template-columns:minmax(0,1fr)}.notes-index{position:static;max-height:220px}}
@media(prefers-reduced-motion:reduce){.app-main :is(button,.button),body[data-sheet] :is(button,.btn){transition:none!important;transform:none!important}}
