.meta-ads-report { padding: 20px 0; border-block: 1px solid #d9e2dc; min-width: 0; }
.meta-ads-report[hidden] { display: none; }
.meta-report-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.meta-report-heading h3 { font-size: 18px; margin: 0; }
.meta-report-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.meta-report-controls label { display: grid; gap: 4px; font-size: 13px; }
.meta-report-controls svg { width: 16px; height: 16px; flex: 0 0 16px; }
.meta-report-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; }
.meta-report-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 18px 0; }
.meta-report-totals div { display: grid; gap: 6px; min-width: 0; }
.meta-report-totals strong { font-size: 20px; overflow-wrap: anywhere; }
.meta-report-table { max-width: 100%; overflow: auto; margin-bottom: 12px; max-height: 480px; overscroll-behavior: contain; scrollbar-gutter: stable; border: 1px solid #d9e2dc; }
.meta-report-table:focus-visible { outline: 2px solid #176c53; outline-offset: 2px; }
.meta-report-table table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 860px; table-layout: fixed; font-size: 14px; }
.meta-report-table th:first-child { width: 290px; }
.meta-report-table th:not(:first-child) { width: 140px; }
.meta-report-controls input { min-height: 42px; width: 180px; max-width: 100%; }
.meta-report-controls input[type="date"] { width: 150px; min-width: 0; }
.meta-report-count { font-size: 13px; color: #526258; }
.meta-report-table th,.meta-report-table td { padding: 10px 12px; border-bottom: 1px solid #e1e7e3; text-align: left; }
.meta-report-table th { background: #f2f6f3; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.meta-report-table td:first-child { min-width: 190px; overflow-wrap: anywhere; }
.meta-report-table td:not(:first-child) { white-space: nowrap; }
.meta-report-warning { color: #825515; }
.meta-report-tabs { display:flex; flex-wrap:wrap; gap:4px; margin:16px 0; border-bottom:1px solid #d9e2dc; padding-bottom:8px; }
.meta-report-tabs button { min-height:40px; padding:8px 12px; border:1px solid transparent; border-radius:6px; background:transparent; color:#42554a; font:inherit; cursor:pointer; }
.meta-report-tabs button[aria-selected="true"] { background:#e9f3ed; color:#155f43; border-color:#c6dfce; font-weight:600; }
.meta-report-tabs button:disabled { opacity:.5; cursor:default; }
.meta-order-campaign-table table { min-width:1180px; table-layout:auto; }
.meta-order-campaign-table th:first-child { width:250px; }
.meta-order-campaign-table th:not(:first-child) { width:auto; min-width:95px; white-space:normal; }
.meta-orders-open { display:flex; align-items:center; gap:5px; padding:4px 0; margin-top:4px; min-height:30px; color:#176c53; border:0; background:transparent; font:inherit; font-size:13px; cursor:pointer; }
.meta-orders-open svg,.meta-association-close svg { width:16px; height:16px; }
.meta-association-detail { margin:20px 0; padding-top:16px; border-top:1px solid #d9e2dc; }
.meta-association-detail h4 { margin:0; font-size:16px; overflow-wrap:anywhere; }
.meta-association-detail .meta-report-heading { flex-wrap:nowrap; align-items:flex-start; }
.meta-association-detail h4 { flex:1; min-width:0; }
.meta-association-close { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; padding:0; background:transparent; border:1px solid #c7d3cc; border-radius:6px; cursor:pointer; }
.meta-associated-orders { margin-top:12px; }
.meta-associated-orders table { min-width:1120px; }
.meta-associated-orders th:first-child { width:100px; }
.meta-associated-orders th:not(:first-child) { width:170px; }
.meta-associated-orders th:last-child { width:210px; }
.meta-associated-orders td:not(:first-child) { white-space:normal; overflow-wrap:anywhere; }
.meta-associated-orders td small { display:block; font-size:12px; color:#526258; padding-top:4px; }
.meta-unmatched-orders { margin:16px 0; border-top:1px solid #d9e2dc; padding-top:12px; }
.meta-unmatched-orders summary { cursor:pointer; font-size:14px; color:#5f4b26; }
@media(max-width:600px) { .meta-report-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } .meta-report-controls { width: 100%; } .meta-report-controls label { flex: 1 1 130px; min-width: 0; } .meta-report-controls input { width: 100%; } .meta-report-controls button { flex: 1 1 100%; } .meta-report-table { max-height: 400px; } }
