/* This matrix needs the viewport, even when the shared dialog CSS loads later. */
.wb-dialog.wt-dialog{box-sizing:border-box;width:calc(100vw - 40px);max-width:calc(100vw - 40px);height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);overflow:hidden}
.wb-dialog.wt-dialog[open]{display:flex;flex-direction:column}
.wt-dialog>header,.wt-dialog>footer{flex:none}
.wt-dialog .wt-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:18px 22px;overflow:auto}
.wt-dialog .wt-toolbar,.wt-dialog [data-wt-add-panel],.wt-dialog .wt-actual-toolbar,.wt-dialog [data-wt-status]{flex:none}
.wt-dialog .wt-grid-scroll{flex:1;min-height:160px;max-height:none}
.wt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.wt-toolbar .wb-tabs{margin:0}.wt-toolbar .wb-tabs [aria-pressed=true]{background:white;color:#ad5122;box-shadow:0 2px 6px #25313d12}
.wt-grid-scroll{max-width:100%;overflow:auto;max-height:60vh;border:1px solid #e4e8ed;border-radius:10px}
.wb-table.wt-matrix{width:max-content;min-width:100%;table-layout:auto;border-collapse:separate;border-spacing:0}
.wt-matrix th,.wt-matrix td{min-width:142px;white-space:nowrap;text-align:right;border-right:1px solid #edf0f3}
.wt-matrix .wt-person{text-align:left;min-width:140px;position:sticky;left:0;background:#fff;z-index:2}
.wt-matrix thead th{position:sticky;top:35px;background:#f5f7f8;z-index:3;text-align:center;height:56px;padding:9px 14px}
.wt-matrix thead tr:first-child th{top:0;height:35px;background:#fbf0e8;color:#a54b20}
.wt-matrix thead .wt-person{z-index:5}
.wt-matrix small{display:block;font-weight:400;font-size:12px;color:#77828e;line-height:1.6;white-space:normal;max-width:240px}
.wt-matrix .mw-behind small{color:#b94737}.wt-matrix tr[class*=mw-performance-]:not(.mw-performance-person)>*{background:#f7f9fb;font-weight:600}
.wt-editor input{width:112px!important;min-width:0;border:1px solid #dce3e9;border-radius:6px;padding:8px 10px;text-align:right;background:#fff}
.wt-editor input:focus{border-color:#c6672d;outline:2px solid #c6672d20}
.wt-editor td{padding:8px 12px}.wt-editor input::placeholder{color:#9ca5ae;font-size:12px}
.wb-dialog.wt-dialog>footer{display:flex;justify-content:space-between;align-items:center}
.wt-add-form{display:grid;grid-template-columns:minmax(240px,1fr) minmax(240px,1fr);gap:22px;padding:18px;background:#fff9f4;border:1px solid #ecd6c5;border-radius:10px;margin-bottom:16px}
.wt-add-form label,.wt-actual-toolbar label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#657383;margin-bottom:10px}
.wt-add-form [hidden]{display:none!important}.wt-add-form input,.wt-add-form select,.wt-actual-toolbar input,.wt-actual-toolbar select{width:100%;font-weight:400}
.wt-source p{font-size:12px;line-height:1.7}.wt-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;align-content:start}.wt-fields label:last-of-type{grid-column:1/-1}
.wt-fields button{justify-self:start;align-self:end}.wt-actual-toolbar{display:flex;gap:18px;align-items:end}.wt-note{flex:1}
.wt-dialog [data-wt-status]{font-size:13px;margin:12px 0 0;min-height:20px}
@media(max-width:760px){.wb-dialog.wt-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.wt-dialog .wt-body{padding:12px}.wt-add-form{grid-template-columns:1fr}.wt-actual-toolbar{display:block}.wt-matrix .wt-person{min-width:105px;max-width:140px;white-space:normal}.wt-toolbar{gap:10px}.wt-grid-scroll{max-height:55vh}}
