/* PATCH50: the computer keeps its permanent navigation; touch devices use tiles. */
.m50-desktop-home{display:block}.m50-tablet-home{display:none}
html.m50-tablet .m50-desktop-home{display:none}html.m50-tablet .m50-tablet-home{display:block}
html:not(.m50-tablet) body.internal-ui49 .sidebar{display:flex!important;position:fixed!important;inset:0 auto 0 0!important;width:240px!important;height:100dvh!important;max-width:none;padding:18px 14px!important;background:#2e3034!important;overflow-y:auto!important;z-index:40!important;border-radius:0!important;box-shadow:none!important}
html:not(.m50-tablet) body.internal-ui49 .app-main{margin-left:240px!important;width:calc(100% - 240px)!important}
html:not(.m50-tablet) body.internal-ui49 .m49-topbar,html:not(.m50-tablet) body.internal-ui49 .m49-bottomnav,html:not(.m50-tablet) body.internal-ui49 .m49-backdrop,html:not(.m50-tablet) body.internal-ui49 .m49-menu-close{display:none!important}
html:not(.m50-tablet) body.internal-ui49 .page{padding:24px!important}
html:not(.m50-tablet) body.internal-ui49 .sidebar .side-nav a{min-height:37px;padding:8px 10px}
html:not(.m50-tablet) body.internal-ui49 .sidebar .side-nav a.active{background:#55575c;color:#fff!important}
html:not(.m50-tablet) body.internal-ui49 .sidebar .brand{margin-top:0}
html:not(.m50-tablet) body.internal-ui49 .sidebar-bottom{margin-top:auto;padding-top:20px}
html.m50-tablet .m49-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html.m50-tablet .m49-topbar>nav{display:none}html.m50-tablet .m49-menu-word{display:inline}
html.m50-tablet .m49-tile{min-height:150px}
html.m50-tablet .m49-topbar{min-height:64px}
html:not(.m50-tablet) body.internal-ui49.protocol-workspace-page .ws-brandbar{margin:0 -24px 0;padding:15px 24px}
html:not(.m50-tablet) body.internal-ui49.protocol-workspace-page .ws-footer{left:240px!important}
/* Review details follow the two-column reference, with neutral colors. */
body.internal-ui49 .m50-review.review-detail-modal{width:min(1200px,calc(100vw - 32px))!important;max-height:calc(100dvh - 24px)!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;border:1px solid #dce0e5;border-radius:12px!important;background:#fff;color:#252930;box-shadow:0 20px 70px #14171d33;overflow:visible!important;z-index:102;display:flex!important;flex-direction:column!important}
body.internal-ui49 .m50-review .review-detail-head{padding:16px 20px!important;gap:18px;border-bottom:0;background:#fff;border-radius:12px 12px 0 0;align-items:flex-start}
body.internal-ui49 .m50-review .review-detail-title{min-width:0}
body.internal-ui49 .m50-review .review-detail-title .eyebrow{font-size:10px!important;color:#737b86;letter-spacing:1px}
body.internal-ui49 .m50-review .review-detail-title h2{font-size:23px!important;line-height:1.2!important;margin:4px 0 7px!important;white-space:normal;overflow-wrap:anywhere;color:#24282f}
body.internal-ui49 .m50-review .review-detail-subline{display:flex;align-items:center;gap:6px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.m50-review .review-detail-subline svg{width:16px;height:16px}
body.internal-ui49 .m50-review .drawer-close{width:36px;height:36px;min-width:36px;display:grid;place-items:center;line-height:1;background:#f0f2f5;color:#707986;font-size:26px;border-radius:50%}
body.internal-ui49 .m50-review .review-detail-body{padding:0 16px 14px!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0}
.m50-device{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:9px;background:#f1f2f4;border:1px solid #e8eaed;margin-bottom:12px;min-width:0}
.m50-device-icon{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border-radius:8px;background:#fbe8ea;color:#bc2838}
.m50-device>div{min-width:0}.m50-device h3{font-size:17px;margin:0 0 4px;overflow-wrap:anywhere}.m50-device p{font-size:12px;color:#68717c;margin:0;overflow-wrap:anywhere}
.m50-device .review-history-link{margin-left:auto;display:flex;align-items:center;gap:8px;color:#424a55;font-size:12px;text-decoration:none;white-space:nowrap}
.m50-device .review-history-link svg{width:18px;height:18px}
body.internal-ui49 .m50-review .review-detail-grid{display:grid!important;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr)!important;gap:12px!important;align-items:stretch}
body.internal-ui49 .m50-review .review-detail-panel{padding:14px!important;border:1px solid #e0e3e8;border-radius:9px;background:#fff;min-width:0}
.m50-review h3{font-size:17px;line-height:1.3;margin:0 0 12px;color:#262a31}
.m50-review-form{display:flex;flex-direction:column;gap:12px;margin:0}
.m50-review label{font-size:12px;font-weight:500;color:#68717d;display:grid;gap:5px;min-width:0;margin:0}
.m50-date-kind,.m50-employees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.internal-ui49 .m50-review input:not([type=checkbox]),body.internal-ui49 .m50-review select,body.internal-ui49 .m50-review textarea{width:100%;min-width:0;font:inherit;font-size:13px;line-height:1.3;height:40px;min-height:40px;padding:9px 11px;border:1px solid #d5dae2;border-radius:6px;background:#fff;color:#292e37;box-shadow:none}
body.internal-ui49 .m50-review textarea{height:60px;min-height:60px;resize:vertical}
.m50-status-heading{border-top:1px solid #e4e7eb;margin:2px 0 0!important;padding-top:13px;font-size:17px!important}
.m50-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.m50-switches .mp-switch{display:flex!important;align-items:center!important;gap:11px!important;padding:10px!important;min-height:58px;background:#f7f8fa;border:1px solid #e6e9ee;border-radius:7px;color:#292f39;font-size:12px;cursor:pointer}
.m50-switches .mp-switch>span:last-child{min-width:0}.m50-switches strong{display:block;font-size:12px}.m50-switches small{display:block;font-size:10px;color:#7b8592;margin-top:3px;line-height:1.3}
.m50-switches .switch-track{flex:0 0 42px;width:42px;height:24px}.m50-switches input:not(:checked)+.switch-track{background:#b7bec8!important}.m50-switches input:focus-visible+.switch-track{outline:3px solid #bf263655;outline-offset:3px}
.m50-save-status{display:flex;align-items:center;gap:6px;color:#76808d;font-size:11px;min-height:16px;margin:0}.m50-save-status svg{width:16px;height:16px}.m50-save-status.is-error{color:#bc2838}.m50-save-status.is-saved{color:#25814c}
.m50-fallback-save{display:inline-flex}.m50-js .m50-fallback-save{display:none!important}.m50-type-form{margin:0!important;display:block!important}.m50-js .m50-type-form{height:0;overflow:hidden}
.m50-confirm-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.m50-confirm-row form{margin:0}.m50-confirm-row .m50-btn,.m50-confirm{width:100%;font-size:12px}
.m50-confirm{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:40px;padding:9px 12px;border:0;border-radius:6px;background:#fff2df;color:#a65315;font-weight:650;margin:0}
.m50-confirm svg{width:18px;height:18px}.m50-confirm.is-confirmed{background:#fff0dc;color:#9c4d10}
.m50-review .m50-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 13px;border:1px solid #ccd2db;border-radius:6px;color:#353c46;background:#fff;font:inherit;font-size:12px;font-weight:650;text-decoration:none;line-height:1.25;cursor:pointer;box-sizing:border-box;text-align:center}
.m50-review .m50-btn:hover{background:#f3f4f6}.m50-review .m50-btn svg{width:19px;height:19px}
.m50-review .m50-primary{background:#33363b;color:#fff;border-color:#33363b}.m50-review .m50-primary:hover{background:#45484e;border-color:#45484e}
.m50-documents{display:flex;flex-direction:column;gap:11px}.m50-documents>h3{margin-bottom:0}.m50-summary{width:100%;justify-content:flex-start!important}.m50-summary svg:last-child{margin-left:auto}
.m50-document-card{padding:11px 12px;border:1px solid #e2e5eb;border-radius:8px;background:#f8f9fa;min-width:0}
.m50-document-card>header{display:flex;align-items:center;gap:10px;margin-bottom:10px}.m50-document-card h3{font-size:15px;margin:0}.m50-document-status{display:flex;align-items:center;gap:4px;font-size:10px;background:#eceff3;color:#6f7885;border-radius:18px;padding:5px 8px;margin-left:auto;white-space:nowrap}.m50-document-status svg{width:13px;height:13px}.m50-document-status.is-created{background:#e0f4e8;color:#168148;font-weight:650}
.m50-document-actions{display:flex;gap:9px;min-width:0}.m50-document-actions>a{flex:1;min-width:0}.m50-document-actions>.m50-more{flex:0 0 110px}
.m50-more{position:relative}.m50-more summary{list-style:none;user-select:none}.m50-more summary::-webkit-details-marker{display:none}.m50-more>summary svg{width:15px;height:15px}.m50-more>div{display:none;position:absolute;top:calc(100% + 5px);right:0;z-index:8;min-width:230px;padding:5px;background:#fff;border:1px solid #d7dce3;border-radius:8px;box-shadow:0 10px 30px #0002}.m50-more[open]>div{display:grid}.m50-more>div>a,.m50-more>div button{display:block;width:100%;padding:11px 12px;min-height:40px;text-align:left;background:#fff;border:0;color:#343c47;border-radius:5px;font:inherit;font-size:12px;line-height:1.4;white-space:normal}.m50-more>div>a:hover,.m50-more>div button:hover{background:#f0f2f4}.m50-more form{margin:0}.m50-more>div button.m50-delete{color:#b32536}
.m50-document-links{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:10px}.m50-document-links a,.m50-document-links button,.m50-import button{display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:11px;background:none;border:0;color:#6a7482;padding:0;text-decoration:none;cursor:pointer;min-height:22px;line-height:1.4}.m50-document-links svg,.m50-import svg{width:16px;height:16px}.m50-document-links form{margin:0}.m50-import{border-top:1px solid #e2e6ec;padding-top:8px;margin-top:8px}.m50-import button:disabled{opacity:.45;cursor:default}
.m50-order{justify-content:flex-start!important;gap:9px!important;font-size:11px!important;margin-top:auto}.m50-order>span{margin-left:auto;font-size:10px;border-radius:16px;padding:5px 8px;background:#f0f2f5}
.m50-readonly-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}.m50-readonly-fields>div{border:1px solid #e0e4ea;background:#fafbfc;border-radius:6px;padding:10px;min-width:0}.m50-readonly-fields small{display:block;font-size:11px;color:#737f8e;margin-bottom:6px}.m50-readonly-fields strong{font-size:13px;overflow-wrap:anywhere}.m50-readonly-note{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;padding:10px 0;margin:0}.m50-details>.m50-status-heading{margin:18px 0 12px!important}
.m50-review-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 16px;background:#f7f8fa;border-top:1px solid #e2e5ea;border-radius:0 0 12px 12px;flex-shrink:0}.m50-review-footer .m50-review-more>div{top:auto;bottom:calc(100% + 7px);left:0;right:auto}.m50-footer-end{display:flex;align-items:center;gap:16px}.m50-footer-end>form{margin:0}.m50-completed{display:inline-flex;align-items:center;gap:8px;border-radius:18px;background:#e0f5e8;color:#16814a;font-size:12px;font-weight:650;padding:9px 12px;white-space:nowrap}.m50-completed svg{width:17px;height:17px}.m50-undo{font-size:12px;color:#4a515c;text-decoration:underline;padding:8px 0;background:none;border:0}.m50-complete-button{color:#188348!important;border-color:#afd7bf!important;background:#edf9f1!important}.m50-close{min-width:112px}
@media(pointer:coarse){body.internal-ui49 .m50-review select,body.internal-ui49 .m50-review input:not([type=checkbox]){height:44px!important;min-height:44px!important;font-size:16px!important}.m50-review .m50-btn,.m50-review .m50-confirm{min-height:44px}.m50-review .m50-document-links a,.m50-review .m50-document-links button,.m50-review .m50-import button{min-height:36px}.m50-switches .mp-switch{min-height:60px}}
@media(max-width:899px){body.internal-ui49 .m50-review .review-detail-grid{grid-template-columns:minmax(0,1fr)!important}.m50-device{flex-wrap:wrap}.m50-device .review-history-link{width:100%;margin-left:0;padding-top:4px}.m50-review .review-detail-panel{padding:12px!important}.m50-review .review-detail-title h2{font-size:20px!important}.m50-device h3{font-size:16px}.m50-documents{gap:10px}}
@media(max-width:560px){body.internal-ui49 .m50-review.review-detail-modal{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important}body.internal-ui49 .m50-review .review-detail-head{padding:12px!important}.m50-review .review-detail-title h2{font-size:18px!important}.m50-review .review-detail-subline{font-size:11px!important}.m50-review .review-detail-body{padding:0 8px 10px!important}.m50-date-kind,.m50-employees,.m50-confirm-row{gap:8px}.m50-switches{grid-template-columns:1fr}.m50-switches .mp-switch{min-height:50px}.m50-switches small{font-size:10px}.m50-document-actions>.m50-more{flex-basis:92px}.m50-document-card{padding:10px}.m50-review .m50-btn{font-size:11px;padding:9px 10px}.m50-review-footer{padding:10px;gap:8px;flex-wrap:wrap}.m50-footer-end{gap:12px;margin-left:auto}.m50-review-more{margin-right:auto}.m50-review-more summary{font-size:10px!important}.m50-completed{font-size:10px;padding:8px}.m50-close{min-width:76px}.m50-review .m50-document-status{font-size:9px;padding:4px 6px}}
@media print{html:not(.m50-tablet) body.internal-ui49 .sidebar{display:none!important}html:not(.m50-tablet) body.internal-ui49 .app-main{margin-left:0!important;width:100%!important}.m50-review-footer{display:none}}

body.internal-ui49 .button.fire,body.internal-ui49 .side-nav .nav-create{background:#bf2636!important;border-color:#bf2636!important;box-shadow:none!important}

.m50-js .m50-review-form:has(.m50-save-status.is-error)>.m50-fallback-save{display:inline-flex!important}

html:not(.m50-tablet) body.internal-ui49.protocol-workspace-page .ws-brandbar{flex-wrap:wrap;gap:12px}
html:not(.m50-tablet) body.internal-ui49.protocol-workspace-page .ws-brandbar nav{flex-wrap:wrap;gap:14px;min-width:0}
@media(max-width:1100px){html:not(.m50-tablet) body.internal-ui49.protocol-workspace-page #protocol_form .ws-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}html:not(.m50-tablet) body.internal-ui49.protocol-workspace-page #protocol_form .ws-tabs button{min-width:0!important;white-space:normal!important;font-size:11px!important;padding:10px 4px!important;line-height:1.3}html:not(.m50-tablet) body.internal-ui49.protocol-workspace-page #protocol_form .ws-body-layout{grid-template-columns:minmax(0,1fr)!important}}

.m50-review .review-entity-link{color:inherit!important}
