/* Shopee > Ads Intelligence: cabecalho, barra de filtros, faixa do modo, abas, tabelas e configuracoes com o MESMO visual do Ads Intelligence
   do ML (regras copiadas de /ml-ads-intel.css, escopo #shopee-ads; pedido do dono 10/11). Paineis por [data-sa-pane] (hidden). */
#shopee-ads > .mai-head{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"titulo filtro";align-items:start;column-gap:20px;row-gap:10px;margin:0 0 18px}
#shopee-ads > .mai-head > h1{grid-area:titulo;margin:0}
#shopee-ads > .mai-head > .sefg-head-slot{grid-area:filtro}
@media(max-width:720px){#shopee-ads > .mai-head{grid-template-columns:minmax(0,1fr);grid-template-areas:"titulo" "filtro"}#shopee-ads > .mai-head > .sefg-head-slot{margin:0!important}}
#shopee-ads .mai-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end;margin-bottom:12px}
#shopee-ads .mai-toolbar label,#shopee-ads .mai-form label{display:block;color:#a9b8cc;font-size:11px;font-weight:800;text-transform:uppercase;margin:0 0 7px 2px}
#shopee-ads .mai-toolbar select,#shopee-ads .mai-toolbar input[type=search]{width:100%;height:46px;box-sizing:border-box;border-radius:12px;background:#10243e;border:1px solid #365573;color:#fff;padding:0 12px;font-size:14px;font-weight:600;outline:none}
#shopee-ads .mai-toolbar select:disabled{opacity:.6;cursor:not-allowed}
#shopee-ads .mai-actions{display:flex;gap:8px}
#shopee-ads .mai-actions button,#shopee-ads .mai-form-actions button{height:40px;border-radius:10px;border:1px solid #3b5068;background:#10243e;color:#d8e2ee;padding:0 14px;font-weight:800;cursor:pointer;white-space:nowrap}
#shopee-ads .mai-actions button:disabled,#shopee-ads .mai-form-actions button:disabled{opacity:.5;cursor:not-allowed}
#shopee-ads button.primary{background:linear-gradient(135deg,#e8c66a,#c9972b);color:#101827;border-color:#c9972b}
#shopee-ads .mai-danger{background:rgba(239,68,68,.15)!important;border-color:rgba(239,68,68,.55)!important;color:#ffb4b4!important}
#shopee-ads .mai-banner{background:#0d1f36;border:1px solid #2e435b;border-left:4px solid #d6a52b;border-radius:12px;padding:10px 14px;color:#c9d6e5;font-size:13px;line-height:1.45;margin:0 0 12px}
#shopee-ads .mai-banner-alert{border-left-color:#ef4444}
#shopee-ads .mai-banner .mai-alert{color:#ff8a8a}
#shopee-ads .mai-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #2e435b;margin:0 0 12px}
#shopee-ads .mai-tab{background:transparent;border:0;border-bottom:3px solid transparent;color:#aebdd1;font-weight:800;font-size:14px;padding:10px 12px;cursor:pointer;border-radius:0}
#shopee-ads .mai-tab.active{color:#f0cc69;border-bottom-color:#d6a52b;background:transparent}
#shopee-ads .sa-pane[hidden]{display:none!important}
#shopee-ads .mai-msg{min-height:18px;color:#f0cc69;font-size:13px;margin:0 0 8px}
#shopee-ads .mai-msg-error{color:#ff8a8a}
#shopee-ads .section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px}
#shopee-ads .mai-section{margin-bottom:14px}
#shopee-ads .mai-badge{display:inline-block;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:900;border:1px solid #365573;white-space:nowrap;color:#d8e2ee}
#shopee-ads .mai-c-launch{color:#9fc3ff;border-color:rgba(96,165,250,.45);background:rgba(96,165,250,.10)}
#shopee-ads .mai-c-pot{color:#f0cc69;border-color:rgba(214,165,43,.5);background:rgba(214,165,43,.10)}
#shopee-ads .mai-c-champ{color:#5fd49b;border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.10)}
#shopee-ads .mai-c-rec{color:#ff8a8a;border-color:rgba(239,68,68,.45);background:rgba(239,68,68,.10)}
#shopee-ads .mai-c-removed{color:#aebdd1;border-color:#4a5d75;background:rgba(148,163,184,.10)}
#shopee-ads .mai-table-wrap{overflow-x:auto;max-width:100%}
#shopee-ads .mai-table{width:100%;min-width:980px}
#shopee-ads .sa-ind-table{min-width:0}
#shopee-ads .mai-table th{font-size:11px;white-space:normal;line-height:1.25}
#shopee-ads .mai-table td{font-size:13px;vertical-align:top;white-space:normal}
#shopee-ads .mai-table td small{display:block;color:#8f9db0;font-size:11px;margin-top:3px}
#shopee-ads .sa-mgmt-table th[data-sa-sort]{cursor:pointer;user-select:none}
#shopee-ads .sa-mgmt-table th.mai-sorted{color:#f0cc69}
#shopee-ads .sa-mgmt-table td:not(:first-child){font-variant-numeric:tabular-nums}
#shopee-ads .sa-sit{display:inline-block;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:800;white-space:nowrap}
#shopee-ads .sa-sit-ok{background:#123c2a;color:#5fd49b}
#shopee-ads .sa-sit-min{background:#3a2e0b;color:#f5c542}
#shopee-ads .sa-sit-loss{background:#3d1416;color:#ff6b6b}
#shopee-ads .sa-sit-cost{background:rgba(148,163,184,.18);color:#cbd5e1}
#shopee-ads .mai-kpi.sa-kpi-off{opacity:.6}
#shopee-ads .mai-kpi.sa-kpi-off strong{font-size:15px;white-space:normal}
#shopee-ads .mai-camp-table{min-width:0;table-layout:auto}
#shopee-ads .mai-camp-table th{text-align:right;padding:10px 6px;white-space:nowrap;font-size:11px}
#shopee-ads .mai-camp-table th:first-child,#shopee-ads .mai-camp-table th:nth-child(2){text-align:left}
#shopee-ads .mai-camp-table td{text-align:right;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;padding:11px 6px;vertical-align:middle}
#shopee-ads .mai-camp-table td small{display:block;white-space:nowrap;color:#9aa8c3;font-size:11px;font-weight:400;margin-top:2px}
#shopee-ads .mai-camp-table td:first-child{text-align:left;white-space:normal;min-width:230px;max-width:300px;vertical-align:top}
#shopee-ads .mai-camp-table td:first-child small{white-space:normal}
#shopee-ads .mai-camp-table td:nth-child(2){text-align:left}
#shopee-ads .mai-camp-head{display:flex;gap:6px;align-items:flex-start;min-width:0}
#shopee-ads .mai-camp-head>div{min-width:0}
#shopee-ads .mai-camp-name{font-weight:800;overflow-wrap:anywhere;color:#fff}
#shopee-ads .mai-arrow{flex:none;width:18px;border:0;background:none;color:#f0b429;cursor:pointer;font-size:13px;line-height:1.4;padding:0}
#shopee-ads tr.mai-camp>td{background:rgba(16,36,62,.55);font-weight:700}
#shopee-ads tr.mai-prod>td{background:rgba(9,22,40,.75);font-weight:400;color:#d6deef}
#shopee-ads tr.mai-prod td:first-child{padding-left:34px}
#shopee-ads .mai-actline{display:block;margin:5px 0 0;font-size:12px;font-weight:600;color:#ffd66b;white-space:normal}
#shopee-ads .mai-actline b{color:#f0b429}
#shopee-ads .mai-links{display:block;margin-top:4px;font-size:11px;color:#7f8da0}
#shopee-ads .mai-link{border:0;background:none;color:#8fb8ff;cursor:pointer;font-size:11px;padding:0;text-decoration:underline}
#shopee-ads .mai-legend{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;color:#9eacbd;font-size:11px;padding:8px 4px 0}
@media(max-width:1100px){#shopee-ads .mai-camp-table{min-width:1000px}}
#shopee-ads .mai-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:8px 12px}
#shopee-ads .mai-form input[type=text],#shopee-ads .mai-form select{width:100%;height:42px;box-sizing:border-box;border-radius:10px;background:#10243e;border:1px solid #365573;color:#fff;padding:0 12px;font-size:14px;font-weight:700}
#shopee-ads .mai-form small{display:block;color:#8291a5;font-size:11px;margin-top:5px;line-height:1.35}
#shopee-ads .mai-form :disabled{opacity:.6;cursor:not-allowed}
#shopee-ads .mai-check label{text-transform:none;font-size:13px;color:#d8e2ee;display:flex;gap:8px;align-items:center}
#shopee-ads .mai-form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:4px 12px 12px;color:#9eacbd;font-size:12px}
#shopee-ads .mai-emergency p{padding:0 12px;color:#c9d6e5;font-size:13px}
#shopee-ads .sa-chart{padding:6px 12px;color:#9eacbd;font-size:12px}
#shopee-ads .sa-meta{display:block;padding:8px 4px}
#shopee-ads .sa-hour-field select{height:32px;border-radius:8px;background:#10243e;border:1px solid #365573;color:#fff;padding:0 8px;font-size:12px}
#shopee-ads .sat-list{padding:4px 2px}
