.mg-workspace{--mg-green:#126952;--mg-border:#d8e2e6;--mg-ink:#153747;font-size:12px;color:var(--mg-ink);font-variant-numeric:tabular-nums}.mg-workspace *{box-sizing:border-box}.mg-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.mg-heading h1{font-size:24px;margin:0}.mg-heading h1 span{font-size:13px;font-weight:500;margin-left:12px;color:#587080}.mg-heading p{margin:4px 0 0;color:#587080;font-size:12px}.mg-period{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:10px 12px;background:white;border:1px solid var(--mg-border);border-radius:8px}.mg-period label,.mg-toolbar label{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#587080;font-weight:650}.mg-period input,.mg-toolbar input,.mg-toolbar select{border:1px solid #c8d5dc;border-radius:5px;padding:5px 7px;min-height:30px;background:white;font:inherit;font-size:12px;color:var(--mg-ink)}.mg-period small{margin-left:auto;align-self:center;font-size:10px;color:#587080}.mg-presets{display:flex;gap:4px}.mg-workspace .btn{min-height:30px;padding:5px 9px;font-size:11px}.mg-summary{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--mg-border);border-radius:8px;margin:10px 0}.mg-summary>div{padding:10px 14px;border-right:1px solid var(--mg-border)}.mg-summary>div:last-child{border:0;background:#eaf5ef;border-radius:0 8px 8px 0}.mg-summary span{font-size:10px;color:#587080;display:block}.mg-summary b{font-size:21px;display:block;line-height:1.4}.mg-summary small{font-size:11px;font-weight:500}.mg-notice{padding:8px 10px;border-left:3px solid #bb781a;background:#fff7e4;margin:8px 0;line-height:1.5}.mg-notice.danger{border-color:#c24040;background:#fff0ef}.mg-link{background:none;border:0;color:#855100;text-decoration:underline;font:inherit;cursor:pointer;margin-left:6px}.mg-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:8px 0}.mg-toolbar .mg-search{flex:1;min-width:190px}.mg-toolbar input[type=search]{width:100%;font-weight:400}.mg-toolbar .mg-check{flex-direction:row;align-items:center;gap:5px;align-self:center;font-weight:500;font-size:11px}.mg-check input{min-height:0}.mg-caption{font-size:10px;color:#5c7180;margin:2px 0 7px}.mg-ledger-scroll{max-height:calc(100vh - 300px);min-height:170px;overflow:auto;border:1px solid #b6cbd0;border-radius:7px;background:white;scrollbar-width:thin;scrollbar-color:#a8c2bf #f0f6f5}.mg-workspace table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;font-size:12px}.mg-ledger{min-width:1010px}.mg-ledger>thead{position:sticky;top:0;z-index:5}.mg-ledger>thead th{padding:0!important;background:#185a4d;color:white;text-align:right;border-right:1px solid #ffffff20;white-space:nowrap;text-transform:none;letter-spacing:0}.mg-ledger>thead th:first-child{text-align:left;min-width:141px}.mg-ledger>thead button{background:none;color:inherit;border:0;padding:9px 8px;width:100%;font:inherit;font-size:11px;font-weight:650;text-align:inherit;cursor:pointer}.mg-ledger>thead th[aria-sort=ascending],.mg-ledger>thead th[aria-sort=descending]{background:#0d443b}.mg-ledger>tbody>.mg-day>td,.mg-ledger>tbody>.mg-day>th{padding:7px 8px!important;border-bottom:1px solid #e2e9ed;vertical-align:middle;white-space:nowrap}.mg-day{cursor:pointer}.mg-day:nth-of-type(even){background:#f7fafb}.mg-day:hover{background:#edf6f2}.mg-day.is-open{background:#e4f1ec}.mg-day>th{text-align:left}.mg-day-button,.mg-order-button{border:0;background:none;font:inherit;color:inherit;cursor:pointer;padding:0;font-weight:650;text-align:left;white-space:nowrap}.mg-day-button>span,.mg-order-button>span{display:inline-block;width:15px;color:#168068}.mg-day-button small{margin-left:7px;font-size:10px;font-weight:400;color:#6e8791}.mg-num{text-align:right!important;white-space:nowrap}.mg-eligible,.mg-commission{font-weight:700;color:#126148}.mg-muted{color:#627783}.mg-badge{display:inline-block;font-size:10px;padding:2px 6px;line-height:1.5;border-radius:4px;background:#edf1f5;color:#546b7b;font-weight:650;white-space:nowrap}.mg-badge.good{background:#dff2e7;color:#126148}.mg-badge.warning{background:#fff0ca;color:#855400}.mg-badge.danger{background:#ffded9;color:#a6372b}.mg-ledger>tfoot{position:sticky;bottom:0;z-index:5}.mg-ledger>tfoot th,.mg-ledger>tfoot td{background:#e4eee9;border-top:2px solid #b9d2c4;padding:9px 8px!important;font-weight:750}.mg-ledger>tfoot th{text-align:left}.mg-day-detail>td{padding:0!important;background:#f1f6f5;border-bottom:2px solid #a3c5b6}.mg-day-body{border-left:4px solid #419879;padding:10px 12px}.mg-detail-heading{display:flex;align-items:center;gap:12px;margin-bottom:8px;flex-wrap:wrap}.mg-detail-heading>span{font-size:10px;color:#5e7681}.mg-tabs{display:inline-flex;border:1px solid #b9d0c6;border-radius:5px;overflow:hidden}.mg-tabs button{border:0;border-right:1px solid #b9d0c6;padding:5px 10px;background:#fff;color:#376456;font:inherit;font-size:11px;cursor:pointer}.mg-tabs button:last-child{border:0}.mg-tabs button[aria-pressed=true]{background:#1b6c55;color:white}.mg-day-summary{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.mg-day-summary h3{font-size:11px;margin:4px 0 8px}.mg-day-summary p{font-size:11px;color:#627783;line-height:1.5}.mg-subtable th,.mg-subtable td,.mg-evidence th,.mg-evidence td{padding:6px 8px!important;border-bottom:1px solid #dce6e3;background:white;font-size:11px;text-align:right;white-space:nowrap}.mg-subtable th:first-child,.mg-subtable td:first-child,.mg-evidence th,.mg-evidence td{text-align:left}.mg-subtable thead th,.mg-evidence thead th{background:#e5efea;color:#416253;font-size:10px;letter-spacing:0;text-transform:none}.mg-order-scroll{overflow-x:auto;scrollbar-width:thin}.mg-orders{min-width:1110px;border:1px solid #c9d9d2;background:white}.mg-orders>thead th,.mg-items>thead th{padding:7px 6px!important;background:#e3eee8;color:#38594c;text-transform:none;letter-spacing:0;white-space:nowrap;font-size:10px;text-align:right}.mg-orders>thead th:first-child,.mg-items>thead th:first-child{text-align:left}.mg-orders>tbody>.mg-order>th,.mg-orders>tbody>.mg-order>td{padding:7px 6px!important;border-bottom:1px solid #e3eae6;vertical-align:top;font-size:11px}.mg-order>th{min-width:175px;text-align:left}.mg-order>td:nth-child(2){min-width:92px}.mg-order>td:nth-child(3){min-width:102px;max-width:148px}.mg-order>td:nth-child(4){min-width:110px;max-width:170px}.mg-order:hover{background:#f2f8f4;cursor:pointer}.mg-order.is-open{background:#edf5f0}.mg-orders small,.mg-items small{display:block;color:#6b7f89;font-size:10px;font-weight:400;margin-top:3px;line-height:1.35;white-space:normal}.mg-control{min-width:125px;max-width:210px}.mg-alert{display:block;white-space:normal;font-size:10px;color:#805515;line-height:1.3;border-left:2px solid #d49c3d;padding-left:4px;margin-bottom:4px}.mg-alert.danger{color:#a0392f;border-color:#d35e4f}.mg-order-detail>td{padding:0!important;background:#fffdf5}.mg-order-body{padding:12px;border-left:3px solid #cda85c}.mg-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 20px;margin:10px 0 12px}.mg-facts span{display:block;font-size:10px;color:#7d7762}.mg-facts b{font-size:11px;line-height:1.5}.mg-items th,.mg-items td{padding:7px 6px!important;border-bottom:1px solid #e7e4d7;font-size:11px;vertical-align:top;background:#fff}.mg-items tbody th{max-width:260px;white-space:normal;text-align:left;font-weight:600}.mg-items tfoot th,.mg-items tfoot td{font-weight:700;background:#f2f0e6}.mg-items tfoot th{text-align:right}.mg-order-body caption{text-align:left;padding:6px 0;font-size:11px;font-weight:650;color:#606553}.mg-calculation{padding:9px 0;font-size:11px;line-height:1.7}.mg-calculation small{display:block;color:#6d7e7e}.mg-attribution{padding:7px 0;font-size:10px;line-height:1.6;color:#5d726f;overflow-wrap:anywhere}.mg-method{margin-top:12px;background:white;border:1px solid var(--mg-border);border-radius:7px;padding:10px 12px;font-size:11px;line-height:1.6}.mg-method summary{cursor:pointer;font-weight:650}.mg-method .mg-subtable{margin:10px 0}.mg-empty{padding:25px;text-align:center;color:#6c8190}.mg-workspace :focus-visible{outline:2px solid #27856c;outline-offset:3px}.mg-workspace .mg-day-detail [hidden]{display:none!important}
.mg-net{font-weight:750;color:#075b40;background:#eaf5ee}.mg-cost-note{font-size:10px;color:#657b72;line-height:1.6}.mg-ledger{min-width:1320px}.mg-orders{min-width:1420px}.mg-order-scroll{overflow:visible}.mg-orders>thead{position:sticky;top:34px;z-index:4}.mg-items>thead{position:sticky;top:65px;z-index:3}.mg-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.mg-summary>div{border-bottom:1px solid var(--mg-border)}.mg-ledger .mg-estimate small{display:block;font-size:10px;font-weight:400;margin-top:3px}.mg-cpa{min-width:105px;max-width:180px}.mg-cpa small{white-space:normal}
@media(min-width:1600px){.mg-ledger-scroll{max-height:calc(100vh - 270px)}.mg-workspace table{font-size:13px}.mg-ledger>tbody>.mg-day>td,.mg-ledger>tbody>.mg-day>th{padding:8px 10px!important}}
@media(max-width:1000px){.mg-summary b{font-size:18px}.mg-heading h1 span{display:block;margin:4px 0 0}.mg-period small{width:100%;margin:3px 0}.mg-day-summary{grid-template-columns:1fr}.mg-ledger-scroll{max-height:68vh}.mg-summary>div{padding:8px}.mg-toolbar .mg-check{font-size:10px}}
@media(max-width:650px){.mg-summary{grid-template-columns:1fr 1fr}.mg-summary>div{border-bottom:1px solid var(--mg-border)}.mg-summary>div:last-child{border-radius:0}.mg-heading h1{font-size:21px}.mg-presets{flex-wrap:wrap}.mg-facts{grid-template-columns:1fr 1fr}.mg-workspace table{display:table}.mg-workspace thead{display:table-header-group}.mg-workspace tbody{display:table-row-group}.mg-workspace tr{display:table-row}.mg-workspace th,.mg-workspace td{display:table-cell}.mg-workspace td:before{content:none!important}.mg-toolbar .mg-search{width:100%;flex-basis:100%}.mg-ledger-scroll{max-height:65vh}}

.mg-workspace:not(.ads-budget) .mg-summary{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:650px){.mg-workspace:not(.ads-budget) .mg-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
