.mg-root {font:14px/1.45 'Segoe UI',Arial,sans-serif;color:#25354c;background:#f4f6f9;padding:24px;max-width:1700px;margin:auto}
.mg-root * {box-sizing:border-box}
.mg-root [hidden] {display:none!important}
.mg-root button,.mg-root input,.mg-root select,.mg-root textarea,.mg-dialog button,.mg-dialog input,.mg-dialog select {font:inherit;color:inherit;border:1px solid #d7dfe9;border-radius:7px;background:white;padding:8px 11px;min-height:36px}
.mg-root button,.mg-dialog button {cursor:pointer}
.mg-root button:hover,.mg-dialog button:hover {background:#edf2f8;border-color:#8ba3c0}
.mg-root :focus-visible,.mg-dialog :focus-visible {outline:2px solid #487fbc;outline-offset:2px}
.mg-root :disabled {opacity:.65;cursor:default}
.mg-root select {width:auto}
.mg-root .mg-quick select {flex:0 0 140px;width:140px}
.mg-root .mg-quick input {width:auto;flex:1 1 200px}
.mg-root .mg-presence {max-width:170px}
.mg-title {font-size:25px;font-weight:650}
.mg-heading p {margin:5px 0 18px;color:#68788c}
.mg-toolbar,.mg-guidebar,.mg-person-nav,.mg-person-meta {display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.mg-toolbar {padding-bottom:12px;border-bottom:1px solid #dce3eb}
.mg-root .mg-primary {background:#234c79;color:white;border-color:#234c79}
.mg-session-state {font-size:12px;color:#58718d;margin-right:auto}
.mg-message {min-height:30px;padding:5px 0;color:#376750}
.mg-message button {margin-left:12px}
.mg-error,.mg-root .mg-error {color:#ac3030}
.mg-attendance,.mg-totals,.mg-todo {background:white;border:1px solid #dce3eb;border-radius:10px;padding:12px 16px;margin:0 0 14px}
.mg-root summary {cursor:pointer;font-weight:600}
.mg-attendance-count {margin:4px 0 0;color:#718097;font-size:12px}
.mg-attendance-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:12px}
.mg-attendance-grid label {display:flex;justify-content:space-between;align-items:center;gap:8px}
.mg-guidebar {margin:15px 0 10px}
.mg-guidebar>span {font-size:12px;color:#6b7c90}
.mg-guidebar>button:last-child {margin-left:auto}
.mg-person-nav {gap:6px;margin-bottom:15px}
.mg-person-nav button {font-size:13px;border-color:transparent;background:transparent}
.mg-person-nav button[aria-current=true] {background:#e0eaf7;color:#184c84;border-color:#afc6e3;font-weight:600}
.mg-person {background:white;border:1px solid #dbe3ed;border-radius:12px;padding:22px;margin-bottom:22px;box-shadow:0 3px 12px #25354c05}
.mg-person>header {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.mg-person-name {display:flex;align-items:center;gap:12px}
.mg-person h2 {font-size:21px;margin:0;font-weight:600}
.mg-avatar {background:#edf2f8;color:#567292;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;font-size:14px;font-weight:600}
.mg-person-meta {font-size:12px;color:#697c91}
.mg-person-meta>button {border:0;font-size:11px;background:transparent}
.mg-kpis {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0 22px}
.mg-kpi {background:#eef5fd;border:1px solid #d6e5f6;border-top:3px solid #5b90c6;border-radius:9px;padding:17px 20px}
.mg-kpi.order {background:#eef7f3;border-color:#d4e9df;border-top-color:#66a68c}
.mg-kpi>small {display:block;font-size:13px;color:#59748f}
.mg-kpi>strong {display:block;font-size:30px;letter-spacing:-.6px;color:#245783;line-height:1.4}
.mg-kpi.order>strong {color:#256d51}
.mg-kpi>b {display:block;font-size:13px;margin-bottom:12px;font-weight:500}
.mg-kpi-compare {display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:5px 0;border-top:1px solid #ccdbe566}
.mg-kpi-compare>span {color:#64778a}
.mg-kpi-compare>b {font-weight:600;white-space:nowrap}
.mg-kpi p {margin:10px 0 0;font-size:12px}
.mg-positive {color:#287956}.mg-negative {color:#ac4949}.mg-neutral {color:#697b8a}
.mg-quick {display:flex;gap:8px;background:#f6f8fb;padding:12px;border:1px solid #e3e9f1;border-radius:8px}
.mg-quick input {flex:1;min-width:100px}
.mg-table-tools {display:flex;justify-content:space-between;margin:18px 0 8px;gap:8px}
.mg-search {width:260px;max-width:70%;font-size:12px!important}
.mg-table-tools button {font-size:12px}
.mg-table-wrap {overflow:auto}
.mg-person table {width:100%;border-collapse:collapse;table-layout:fixed}
.mg-person th {background:#f4f7fa;text-align:left;padding:7px 4px;font-size:12px;font-weight:500;color:#61758b}
.mg-person th button {border:0;padding:2px 6px;background:transparent;min-height:25px;font-size:12px;font-weight:600}
.mg-person th:first-child {width:36px}.mg-person th:last-child {width:44px}
.mg-person th:nth-child(2) {width:31%}.mg-person th:nth-child(3) {width:145px}.mg-person th:nth-child(4) {width:132px}
.mg-person td {padding:10px 4px;border-bottom:1px solid #e6ebf1;vertical-align:top}
.mg-person td input:not([type=checkbox]),.mg-person td textarea,.mg-person td select {width:100%;background:transparent;border-color:transparent;border-radius:5px;font-size:13px;padding:7px 5px}
.mg-person td input:hover,.mg-person td textarea:hover,.mg-person td select:hover {border-color:#d7dfe9;background:white}
.mg-person textarea {resize:vertical;min-height:52px}
.mg-person input[type=checkbox] {accent-color:#34765a;width:17px;min-height:17px;margin:10px 0}
.mg-person .mg-actions button {border:0;padding:3px 10px;font-size:20px;background:transparent}
.mg-done {background:#f4faf6}.mg-done [data-field=topic] {color:#688276;text-decoration:line-through}
.mg-overdue [data-field=dueDate] {color:#b34141!important;background:#fff0ec!important}
.mg-column-filter {display:none;width:100%;min-width:0;font-size:11px!important;padding:5px!important}
.mg-show-filters .mg-column-filter {display:block}
.mg-empty {text-align:center;padding:22px;color:#7c8b9e}
.mg-root .mg-conflict {border:2px solid #d89942!important;background:#fff8e7!important}
.mg-resolution {font-size:12px;background:#fff8e7;padding:8px;border-radius:6px}
.mg-resolution button {font-size:11px;margin:3px 0;padding:5px}
.mg-planner {overflow:auto}.mg-planner h3 {font-size:15px;margin:25px 0 10px}
.mg-planner table {table-layout:auto;font-size:12px}
.mg-planner th {width:auto!important}
.mg-dialog {font:14px/1.5 'Segoe UI',Arial,sans-serif;border:1px solid #d7dfe9;border-radius:13px;padding:24px;max-width:570px;width:calc(100% - 32px);color:#25354c}
.mg-dialog::backdrop {background:#15294366}
.mg-dialog h2 {font-size:20px;margin-top:0}.mg-dialog label {display:block;margin:12px 0}
.mg-dialog label input[type=date] {display:block;width:100%;margin-top:6px}.mg-dialog button {margin:8px 8px 0 0}
.mg-dialog>select {width:100%}
.mg-root .mg-history-link {font-size:11px!important;padding:3px 5px!important;min-height:24px;color:#486b94!important;border:0;background:transparent}
.mg-history-dialog {max-width:1000px;max-height:90vh;overflow:auto}
.mg-history-dialog section {border-top:1px solid #dce3eb;padding:12px 0;overflow-wrap:anywhere}
.mg-history-dialog h3 {font-size:14px}
@media(max-width:850px){.mg-root{padding:12px}.mg-kpis{grid-template-columns:1fr}.mg-person{padding:14px}.mg-person table{min-width:760px}.mg-quick{flex-wrap:wrap}.mg-quick input{flex-basis:100%}.mg-toolbar{align-items:stretch}.mg-toolbar>select{width:100%}.mg-guidebar>button:last-child{margin-left:0}.mg-kpi-compare{flex-wrap:wrap}.mg-person-meta>button{display:none}}
.mg-totals>h2{font-size:16px;font-weight:600;margin:0 0 14px}.mg-year-detail{border-top:1px solid #d8e0e9;padding-top:10px;margin-top:10px}.mg-year-detail>summary{cursor:pointer;color:#42556b;font-size:12px}.mg-year-detail>p{font-weight:600}
.mg-root textarea[data-field]{height:auto;min-height:64px;max-height:none!important;overflow:hidden!important;resize:none;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:14px}
.mg-root .mg-table-wrap{max-height:none}.mg-root td{vertical-align:top}
.mg-sales-outlook,.mg-sales-team{margin:18px 0;padding:16px;border:1px solid #d8e0e9;border-radius:10px;background:#fff}
.mg-outlook-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mg-outlook-card{padding:14px;background:#f4f7fb;border:1px solid #dde5ef;border-radius:8px;min-width:0}.mg-outlook-card>strong,.mg-outlook-card>b{display:block}.mg-outlook-card>strong{font-size:22px;color:#003878}.mg-outlook-card p,.mg-outlook-note{font-size:12px;color:#607086}.mg-outlook-card:has(details[open]){grid-column:1/-1}.mg-sales-outlook summary{cursor:pointer}.mg-outlook-previous{margin-top:12px}.mg-sales-outlook table,.mg-sales-team table{width:100%}.mg-sales-outlook td,.mg-sales-team td{padding:8px}.mg-sales-outlook h3{font-size:16px;margin:0 0 12px}.mg-sales-team h2{font-size:18px}
@media(max-width:1100px){.mg-outlook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.mg-outlook-grid{grid-template-columns:1fr}}
.mg-person,.mg-kpis,.mg-kpi,.mg-sales-team,.mg-sales-outlook{min-width:0;max-width:100%}
.mg-outlook-card>small,.mg-outlook-card>strong,.mg-outlook-card>b{display:block;line-height:1.45;overflow-wrap:anywhere}
.mg-outlook-card>small{margin-bottom:8px}.mg-outlook-card>b{margin-top:4px}.mg-outlook-card>p{margin:12px 0}.mg-outlook-card>details{margin-top:12px}
.mg-sold-products td:nth-child(2),.mg-sold-products td:nth-child(3){white-space:pre-wrap;overflow-wrap:anywhere;min-width:180px;max-width:500px;line-height:1.5}.mg-person-dispo{margin-top:16px;border-top:1px solid #d8e0e9;padding-top:12px}.mg-person-dispo>summary{cursor:pointer;margin-bottom:12px}
.mg-section-heading td{background:#e9eff7!important;border-top:2px solid #b9cce2;padding:14px 10px!important}.mg-section-heading button{font-weight:650!important;background:transparent!important;border:0!important}.mg-section-change{display:block;font-size:11px!important;margin-top:6px}.mg-schedule-lines>div{display:grid;grid-template-columns:30px 90px minmax(120px,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #e1e7ef;line-height:1.5}.mg-original-topic{margin-top:12px}.mg-original-topic summary{cursor:pointer;color:#426288}.mg-root .mg-quick select.mg-section-select{flex:1 1 240px;width:auto}.mg-quick:has(.mg-section-select){flex-wrap:wrap}
