/* White management surfaces. The shared frame, rail and dashboard belong to dashboard.css. */
.mg-page,.mg-surface{max-width:100%}.mg-surface{position:relative;overflow:hidden}.shell .mg-staff-scroll{position:relative;width:100%;contain:inline-size}.shell .mg-staff-table thead{border-bottom:0}.shell .table-wrap th,.shell .mg-staff-table thead th{border-bottom:1px solid #e7edf5!important}
.shell .table-wrap thead,.shell .table-wrap thead tr{border-color:#e7edf5!important}
@media(min-width:761px){body[data-view="customers"] .shell .toolbar>input[type="search"]{width:360px;flex:0 1 360px;max-width:100%;min-width:0}}
.mg-page{color:#314b61;min-width:0}.mg-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px}.mg-heading h1{display:flex;align-items:center;gap:11px;font-size:28px;line-height:1.2;letter-spacing:-.7px;margin:0;font-weight:650}.mg-heading p{color:#5b7186;font-size:13px;margin:7px 0 0}.mg-count{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:25px;padding:0 8px;font-size:12px;font-weight:650;letter-spacing:0;color:#496986;background:#e3ebf5;border-radius:8px;font-variant-numeric:tabular-nums}.mg-add{white-space:nowrap}.mg-roster{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#5b7186;font-size:12px;margin-bottom:21px}.mg-roster b{font-weight:650;color:#314b61}.mg-roster>span+span{padding-left:14px;border-left:1px solid #d5dfeb}.mg-roster a{margin-left:auto;color:#4969a4;text-decoration:none}.mg-roster a:hover{text-decoration:underline}.mg-notice{border:1px solid #eadfc3;background:#fffaf0;color:#775e30;border-radius:10px;font-size:12px;line-height:1.6;padding:11px 15px;margin:0 0 14px}.mg-surface{background:#fff;border-radius:16px;box-shadow:0 3px 18px #253d5f04;min-width:0}.mg-toolbar{display:flex;align-items:center;gap:10px;padding:20px 22px;border-bottom:1px solid #edf1f6;flex-wrap:wrap}.mg-search{position:relative;display:block;flex:0 1 290px;margin:0}.mg-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#6a8197;pointer-events:none}.mg-search input{width:100%;height:39px;border:1px solid #e5ebf3;background:#f8fafc;border-radius:8px;padding:0 12px 0 37px;font:inherit;font-size:12px;color:#314b61;min-width:0}.mg-search input::placeholder{color:#6b8093}.mg-search-button,.mg-clear{height:39px;padding:0 13px;background:#fff;border:1px solid #dfe7f1;border-radius:8px;font:inherit;font-size:12px;color:#49617a}.mg-clear{border-color:transparent}.mg-status-filter{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:12px;color:#536b80}.mg-status-filter select{height:39px;max-width:160px;border:1px solid #dfe7f1;border-radius:8px;background:#fff;padding:0 30px 0 11px;font:inherit;font-size:12px;color:#314b61}.mg-page :is(input,select,button,a,summary):focus-visible{outline:2px solid var(--workspace-accent,#4976b4);outline-offset:3px}.mg-page button:disabled{opacity:.5;cursor:not-allowed}.mg-page :is(.mg-search-button,.mg-clear):hover:not(:disabled){background:#f4f7fb}
.shell .table-wrap{border:0;border-radius:16px;background:#fff;box-shadow:0 3px 18px #253d5f04;overflow:auto;max-width:100%;overscroll-behavior-x:contain}.shell .table-wrap table{font-size:12px;color:#314b61}.shell .table-wrap th{padding:15px 20px;background:#f8fafc;color:#536b80;font-size:10px;font-weight:600;letter-spacing:.02em;border-bottom:1px solid #edf1f6}.shell .table-wrap td{padding:19px 20px;border-bottom:1px solid #edf1f6;vertical-align:middle}.shell .table-wrap tbody tr:hover{background:#fbfcfe}.shell .table-wrap tbody tr:last-child td{border-bottom:0}.shell .table-wrap .secondary{color:#5b7186}
.shell .mg-staff-scroll{border-radius:0;box-shadow:none}.mg-staff-table{width:100%;min-width:840px;border-collapse:collapse;table-layout:auto}.shell .mg-staff-table th:first-child{width:24%}.shell .mg-staff-table th:nth-child(2){width:190px}.shell .mg-staff-table th:nth-child(3){width:25%}.shell .mg-staff-table th:nth-child(4){text-align:center;width:92px}.shell .mg-staff-table td:nth-child(4){text-align:center}.shell .mg-staff-table td:last-child{width:60px;padding-left:8px;padding-right:15px;text-align:right}.mg-person{display:flex;align-items:center;gap:11px;min-width:155px}.mg-avatar{width:35px;height:35px;border-radius:50%;background:#edf1fb;color:#647aa9;display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:11px;letter-spacing:.02em;font-weight:650}.mg-person>div{display:flex;flex-direction:column;gap:5px}.mg-person strong{font-size:12px;font-weight:600;line-height:1.4}.mg-person>div>span{font-size:10px;color:#5b7186;line-height:1.4}.mg-days{display:flex;gap:4px;align-items:center}.mg-day{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f1f4f8;color:#5c7186;font-size:9px;font-weight:600}.mg-day-open{background:#e1effa;color:#356987}.mg-services{display:block;max-width:250px;line-height:1.7;font-size:11px}.mg-muted{color:#5b7186}.mg-upcoming{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:26px;border-radius:7px;background:#f1f5fa;color:#526c84;font-size:12px;font-variant-numeric:tabular-nums}.mg-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px;color:#64778b;background:#f1f4f8;border-radius:6px;padding:6px 8px}.mg-status i{width:5px;height:5px;border-radius:50%;background:#8798aa}.mg-status-active{background:#eaf6f0;color:#386a55}.mg-status-active i{background:#76a68e}.mg-actions{display:inline-block;min-width:32px;text-align:left}.mg-actions summary{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:7px;cursor:pointer;list-style:none;color:#6b7f94}.mg-actions summary::-webkit-details-marker{display:none}.mg-actions summary svg{width:17px;height:17px;fill:currentColor}.mg-actions summary:hover,.mg-actions[open] summary{background:#eef3f9;color:#314b61}.mg-action-list{display:grid;gap:3px;min-width:140px;padding:6px 0 0}.mg-action-list :is(button,a){display:block;text-align:left;padding:8px 9px;border:0;border-radius:6px;background:transparent;font:inherit;font-size:11px;line-height:1.4;text-decoration:none;white-space:nowrap;color:#405b75;cursor:pointer}.mg-action-list :is(button,a):hover{background:#f0f5fa}.mg-action-list button.mg-delete{color:#a56368}.mg-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 22px;color:#5b7186;font-size:10px;border-top:1px solid #edf1f6}.mg-footer span{color:#5b7186}.mg-empty{text-align:center;padding:35px 15px}.mg-empty h2{font-size:17px;color:#314b61;font-weight:600;margin:0 0 8px}.mg-empty p{font-size:12px;color:#5b7186;line-height:1.6}.mg-empty button{margin-top:8px}.mg-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.mg-heading{gap:12px;align-items:flex-start}.mg-heading h1{font-size:25px}.mg-heading p{font-size:12px;max-width:190px;line-height:1.6}.mg-add{font-size:11px;padding:11px 12px;min-height:44px}.mg-roster{gap:10px;font-size:11px;line-height:1.7;margin-bottom:16px}.mg-roster>span+span{padding-left:10px}.mg-roster a{margin-left:0;flex-basis:100%}.mg-toolbar{padding:16px;gap:9px}.mg-search{flex:1 1 180px}.mg-search input,.mg-search-button,.mg-status-filter select,.mg-clear{height:44px}.mg-status-filter{margin-left:0}.mg-footer{padding:14px 16px;align-items:flex-start;flex-direction:column;gap:6px;line-height:1.6}.shell .mg-staff-scroll{overflow:auto;max-width:100%;background:#fff}.shell .mg-staff-table{display:table;min-width:820px;width:100%}.shell .mg-staff-table thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none;white-space:normal}.shell .mg-staff-table tbody{display:table-row-group;width:auto}.shell .mg-staff-table tr{display:table-row;width:auto;border:0;border-radius:0;margin:0;padding:0;background:transparent}.shell .mg-staff-table :is(th,td){display:table-cell;width:auto;text-align:left;font-family:inherit;font-size:12px;padding:17px 16px}.shell .mg-staff-table th{font-size:10px}.shell .mg-staff-table td::before{display:none!important}.shell .mg-staff-table td:nth-child(4){text-align:center}.mg-actions summary{width:44px;height:44px}.mg-action-list :is(button,a){min-height:44px;display:flex;align-items:center}.mg-day{width:23px;height:23px}.mg-services{max-width:230px}}
@media(max-width:760px){.shell .table-wrap:not(.mg-staff-scroll){background:transparent;box-shadow:none;overflow:visible}.shell .table-wrap:not(.mg-staff-scroll) tbody tr{border:1px solid #e7edf5;border-radius:12px;padding:4px 14px;background:#fff}.shell .table-wrap:not(.mg-staff-scroll) td{padding:14px 0}.shell .table-wrap:not(.mg-staff-scroll) td:first-child{font-family:inherit;font-size:15px}.shell .table-wrap:not(.mg-staff-scroll) td[data-label]::before{font-size:12px;color:#536b80}}

/* Staff actions float in the browser's top layer, outside the table's clipping area. */
.mg-action-list[popover]{position:fixed;inset:auto;margin:0;width:174px;min-width:0;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;padding:6px;gap:2px;border:1px solid #e4d9d0;border-radius:12px;background:#fff;box-shadow:0 10px 30px #3e291c1f;font-family:Outfit,system-ui,sans-serif;color:#5d4636}
.mg-action-list[popover]:not(:popover-open){display:none}
.mg-action-list[popover]:popover-open{display:grid}
.mg-action-list[popover]::backdrop{background:transparent}
.mg-action-list[popover] :is(button,a){display:flex;align-items:center;width:100%;min-height:37px;padding:9px 11px;border:0;border-radius:7px;background:transparent;color:#67503f;font-size:12px;font-weight:400;text-decoration:none;text-align:left;white-space:normal;box-shadow:none}
.mg-action-list[popover] :is(button,a):hover{background:#f2e8df;color:#493225}
.mg-action-list[popover] :is(button,a):focus-visible{outline:2px solid #98745b;outline-offset:-2px;background:#f2e8df}
.mg-action-list[popover] button.mg-delete{color:#a34d4d;border-top:1px solid #eee2d9;border-radius:0 0 7px 7px;margin-top:3px}
.mg-action-list[popover] button.mg-delete:hover{background:#fbefed}
@media(max-width:760px){.mg-action-list[popover] :is(button,a){min-height:44px}}
