.mt-agent { margin-bottom: 24px; background: #fff; border: 1px solid #dbe3ed; border-radius: 8px; color: #263342; }
.mt-agent > summary { padding: 20px 24px; cursor: pointer; font-size: 18px; }
.mt-agent > summary > span { margin-left: 18px; color: #68778b; font-size: 13px; font-weight: 400; }
.mt-agent .mt-content { padding: 0 24px 24px; }
.mt-agent .mt-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.mt-agent label { display: inline-flex; align-items: center; gap: 8px; }
.mt-agent input, .mt-agent select, .mt-agent button { min-height: 38px; border-radius: 6px; }
.mt-agent input[type=date] { width: 164px; }
.mt-agent .mt-toolbar label { white-space: nowrap; }
.mt-agent #mt-preset { width: 108px; }
.mt-agent #mt-entity-type, .mt-agent #mt-priority { width: 180px; max-width: 100%; }
.mt-agent #mt-entity-search { width: 280px; max-width: 100%; }
.mt-agent h3 { margin: 0; font-size: 18px; }
.mt-agent h4 { font-size: 15px; margin: 18px 0 10px; }
.mt-agent p { margin: 8px 0; line-height: 1.6; }
.mt-agent .mt-section { padding: 22px 0; border-top: 1px solid #e3e8ee; }
.mt-agent .mt-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mt-agent .mt-muted, #mt-state { color: #68778b; font-size: 13px; }
.mt-agent .mt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid #e3e8ee; }
.mt-agent .mt-kpis > div { padding: 16px 12px; border-top: 1px solid #e3e8ee; min-width: 0; }
.mt-agent dt { color: #68778b; font-size: 13px; }
.mt-agent dd { margin: 8px 0 0; font-size: 24px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.mt-agent .mt-note { border-left: 3px solid #d69320; background: #fffbef; padding: 10px 14px; font-size: 13px; }
.mt-agent .mt-scroll { overflow: auto; max-height: 510px; }
.mt-agent table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: auto; }
.mt-agent th, .mt-agent td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #e3e8ee; vertical-align: top; line-height: 1.5; white-space: normal; }
.mt-agent th { background: #f5f7fa; color: #58687c; position: sticky; top: 0; z-index: 1; }
.mt-agent .mt-metrics-table { min-width: 780px; }
.mt-agent .mt-entities { min-width: 1100px; }
.mt-agent .mt-target { min-width: 210px; max-width: 340px; overflow-wrap: anywhere; }
.mt-agent .mt-funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 10px 0; }
.mt-agent .mt-stage { border-bottom: 3px solid #2b6ed4; background: #f4f8fd; padding: 15px 12px; min-width: 0; }
.mt-agent .mt-stage b { display: block; margin-top: 8px; font-size: 22px; overflow-wrap: anywhere; }
.mt-agent .mt-stage.crm { border-color: #158578; background: #f0f9f7; }
.mt-agent .mt-stage.gap { border-color: #a3adb9; background: #f7f8fa; }
.mt-agent .mt-diagnoses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.mt-agent .mt-diagnosis { padding: 12px 0; border-bottom: 1px solid #e3e8ee; }
.mt-agent .mt-badge { display: inline-block; font-size: 12px; padding: 2px 7px; border-radius: 4px; color: #58687c; background: #edf1f5; white-space: nowrap; }
.mt-agent .mt-P0 { color: #a81c2a; background: #ffebee; }
.mt-agent .mt-P1 { color: #905512; background: #fff3db; }
.mt-agent .mt-P3 { color: #087665; background: #ddf6ee; }
.mt-agent .mt-action { padding: 16px 0; border-bottom: 1px solid #e3e8ee; }
.mt-agent .mt-action strong { overflow-wrap: anywhere; }
.mt-agent .mt-action .mt-owner { width: 160px; }
.mt-agent .mt-action input[type=checkbox] { width: 17px; min-height: 17px; height: 17px; }
.mt-agent .mt-confirm { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.mt-agent .mt-empty { padding: 20px 0; color: #68778b; }
.mt-agent .mt-limitations { margin-top: 16px; font-size: 13px; }
.mt-agent .mt-limitations li { margin: 8px 0; line-height: 1.6; }
#mt-error { color: #a81c2a; background: #ffebee; padding: 12px; }
@media (max-width: 900px) { .mt-agent .mt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mt-agent .mt-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 560px) { .mt-agent > summary { padding: 16px; } .mt-agent > summary > span { display: block; margin: 8px 0 0; } .mt-agent .mt-content { padding: 0 14px 14px; } .mt-agent .mt-diagnoses { grid-template-columns: 1fr; } .mt-agent dd { font-size: 21px; } .mt-agent .mt-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
