/* ThreeSixOh! Reporting Engine */
.reporting-page-head{align-items:flex-start;gap:20px}
.reporting-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.reporting-breadcrumb{display:flex;align-items:center;gap:7px;margin-bottom:6px;color:var(--muted,#607080);font-size:13px}
.reporting-snapshot-grid,.reporting-metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 18px}
.reporting-snapshot-card,.reporting-metric-card{display:flex;min-width:0;min-height:94px;flex-direction:column;justify-content:space-between;padding:15px 16px;border:1px solid #d7e0e8;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(21,58,90,.06);text-decoration:none;color:inherit}
.reporting-snapshot-card:hover{border-color:var(--w360-dept-accent,#255b87);box-shadow:0 5px 18px rgba(21,58,90,.12);text-decoration:none;transform:translateY(-1px)}
.reporting-snapshot-card span,.reporting-metric-card span{color:#5c6b78;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.reporting-snapshot-card strong,.reporting-metric-card strong{font-size:27px;line-height:1.1;color:#173d5d;overflow-wrap:anywhere}
.reporting-tone-primary{border-left:5px solid #2563eb;background:#f7faff}
.reporting-tone-success{border-left:5px solid #15803d;background:#f6fff8}
.reporting-tone-warning{border-left:5px solid #d97706;background:#fffaf1}
.reporting-tone-danger{border-left:5px solid #be123c;background:#fff7f8}
.reporting-section,.reporting-filter-panel,.reporting-results-panel,.reporting-save-panel{margin-bottom:18px}
.reporting-dataset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.reporting-dataset-card{display:block;padding:18px;border:1px solid #d8e1e9;border-radius:13px;background:#fff;color:inherit;text-decoration:none}
.reporting-dataset-card:hover{border-color:var(--w360-dept-accent,#255b87);background:var(--w360-dept-soft,#eef5fb);text-decoration:none}
.reporting-dataset-card h3{margin:5px 0 7px;color:#173d5d}
.reporting-dataset-card p{margin:0 0 12px;color:#5d6a75;line-height:1.45}
.reporting-dataset-card small{color:#6c7a86;font-weight:700}
.reporting-module-label{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--w360-dept-soft-strong,#dcebf7);color:var(--w360-dept-dark,#153a5a);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.reporting-filter-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end}
.reporting-filter-form label,.reporting-save-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:#40515f}
.reporting-filter-actions{display:flex;gap:8px;align-items:center;min-height:42px}
.reporting-warning{margin:0 0 16px;padding:12px 14px;border:1px solid #f0c36d;border-left:5px solid #d97706;border-radius:10px;background:#fff9ed;color:#71420b}
.reporting-table{width:100%;border-collapse:separate;border-spacing:0}
.reporting-table th,.reporting-table td{padding:11px 12px;border-bottom:1px solid #e2e8ee;text-align:left;vertical-align:top}
.reporting-table th{white-space:nowrap}
.reporting-results-table tbody tr{cursor:pointer}
.reporting-results-table tbody tr:hover{background:var(--w360-dept-soft,#eef5fb)}
.reporting-row-danger td:first-child{border-left:4px solid #be123c}
.reporting-row-warning td:first-child{border-left:4px solid #d97706}
.reporting-save-form{display:grid;grid-template-columns:1.2fr 1.6fr .7fr auto;gap:12px;align-items:end}
.reporting-save-action{display:flex;align-items:flex-end;min-height:42px}
.reporting-definition-note{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border:1px solid #b8cee0;border-radius:12px;background:#eef5fb;color:#294a65}
.reporting-definition-note strong{white-space:nowrap}
.button.compact{padding:6px 9px;font-size:12px}
@media (max-width:1200px){.reporting-snapshot-grid,.reporting-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reporting-filter-form{grid-template-columns:repeat(3,minmax(150px,1fr))}.reporting-save-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.reporting-snapshot-grid,.reporting-metric-grid,.reporting-dataset-grid,.reporting-filter-form,.reporting-save-form{grid-template-columns:1fr}.reporting-page-head{display:block}.reporting-head-actions{justify-content:flex-start;margin-top:12px}.reporting-definition-note{display:block}.reporting-definition-note strong{display:block;margin-bottom:5px}}

/* THREESIXOH_CUSTOM_REPORT_BUILDER_V1 */
.reporting-custom-builder,
.reporting-custom-form { display:grid; gap:18px; }
.report-builder-step { border:1px solid var(--line,#d8e0e8); border-radius:12px; padding:16px; background:var(--panel,#fff); }
.report-builder-step-head { display:flex; gap:10px; align-items:flex-start; margin-bottom:14px; }
.report-builder-step-head > span { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:999px; background:#173b57; color:#fff; font-weight:800; flex:0 0 auto; }
.report-builder-step-head h3 { margin:0; }
.report-builder-step-head p { margin:2px 0 0; }
.report-field-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:8px; }
.report-field-option { display:flex; align-items:flex-start; gap:8px; border:1px solid var(--line,#d8e0e8); border-radius:9px; padding:9px 10px; min-height:54px; }
.report-field-option input { margin-top:3px; }
.report-field-option span { display:grid; gap:1px; }
.report-field-option small { opacity:.7; }
.report-filter-builder { display:grid; gap:8px; }
.report-filter-row { display:grid; grid-template-columns:1.25fr 1fr 1.25fr 1.25fr; gap:8px; padding:10px; border:1px solid var(--line,#d8e0e8); border-radius:9px; }
.report-filter-row label,
.report-builder-controls label,
.report-save-form label { display:grid; gap:4px; font-size:.9rem; font-weight:700; }
.report-filter-row select,
.report-filter-row input,
.report-builder-controls select,
.report-save-form select,
.report-save-form input { width:100%; }
.report-builder-controls { display:grid; grid-template-columns:repeat(4,minmax(170px,1fr)); gap:10px; }
.report-builder-help { margin:10px 0 0; }
.reporting-custom-summary { margin-top:16px; }
.reporting-custom-table-wrap { max-height:68vh; }
.reporting-custom-table th { position:sticky; top:0; z-index:1; }
.report-save-form { display:grid; grid-template-columns:1.25fr 1.5fr minmax(150px,.6fr) auto; gap:10px; align-items:end; }
@media (max-width:980px) {
  .report-filter-row,.report-builder-controls,.report-save-form { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .report-filter-row,.report-builder-controls,.report-save-form { grid-template-columns:1fr; }
}

/* Business Performance */
.reporting-business-feature{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px;padding:20px 22px;border:1px solid #b8cee0;background:linear-gradient(120deg,#f3f8fc,#fff)}
.reporting-business-feature h2{margin:9px 0 6px;color:#173d5d}
.reporting-business-feature p{margin:0;max-width:720px;color:#53687a;line-height:1.5}
.reporting-business-feature .button{flex:0 0 auto}
.bp-tabs{display:flex;gap:8px;margin:0 0 16px;border-bottom:1px solid #cad8e4}
.bp-tab{display:inline-block;padding:11px 15px;border-bottom:3px solid transparent;color:#4d6273;font-weight:750;text-decoration:none}
.bp-tab:hover,.bp-tab:focus-visible{color:#173d5d;text-decoration:none;background:var(--w360-dept-soft,#eef5fb)}
.bp-tab.active{border-bottom-color:var(--w360-dept-accent,#255b87);color:#173d5d}
.bp-filter-panel .section-head{margin-bottom:13px}
.bp-filter-panel .section-head h2{margin:0 0 4px}
.bp-filter-panel .section-head p{margin:0}
.bp-filter-form{grid-template-columns:repeat(4,minmax(155px,1fr)) auto}
.bp-filter-form select,.bp-filter-form input{width:100%}
.bp-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin:23px 0 14px}
.bp-section-heading h2{margin:0 0 4px;color:#173d5d}
.bp-section-heading p{margin:0}
.bp-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.bp-metric-grid .reporting-snapshot-card,.bp-metric-grid .reporting-metric-card{min-height:112px}
.bp-metric-grid small{display:block;margin-top:8px;color:#587083;font-size:12px;line-height:1.35}
.bp-overview-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}
.bp-overview-columns>.panel{min-width:0}
.bp-overview-columns .section-head p{margin:4px 0 0}
.bp-table-wrap{overflow-x:auto}
.bp-sources-table{min-width:520px}
.bp-profit-results{min-width:1100px}
.bp-detail-table{min-width:700px}
.bp-numeric{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.bp-sources-table th:not(:first-child),.bp-profit-results th:not(:first-child){text-align:right}
.bp-profit-results th:nth-child(5){text-align:left}
.bp-profit-results td:nth-child(5){text-align:left!important}
.bp-profit-results td:first-child small{display:block;margin-top:3px;color:#657786}
.bp-profit-results th:last-child{text-align:left}
.bp-profit-results td a,.bp-sources-table td a{text-decoration:underline;text-underline-offset:2px}
.bp-cost-actions{min-width:145px}
.bp-cost-actions a{display:inline-block;font-size:12px;font-weight:700}
.bp-cost-actions form{margin:6px 0 0}
.bp-cost-actions button{white-space:nowrap}
.bp-reopen-reason{display:block;margin-top:7px;color:#53687a;font-size:12px;font-weight:700}
.bp-reopen-reason input{display:block;width:100%;min-width:150px;margin:4px 0 6px}
.bp-cost-reason{display:block;margin-top:4px;color:#657786;font-size:12px;line-height:1.35;max-width:220px}
.bp-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px;font-size:13px;color:#53687a}
.bp-bottleneck-list{display:grid}
.bp-bottleneck{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 4px;border-bottom:1px solid #e0e8ee;color:inherit;text-decoration:none}
.bp-bottleneck:last-child{border-bottom:0}
.bp-bottleneck:hover,.bp-bottleneck:focus-visible{background:var(--w360-dept-soft,#eef5fb);text-decoration:none}
.bp-bottleneck span{min-width:0}
.bp-bottleneck strong{display:block;color:#1d4f75}
.bp-bottleneck small{display:block;margin-top:4px;color:#657786;font-size:12px;line-height:1.35}
.bp-bottleneck>b{white-space:nowrap;color:#173d5d;font-size:20px;font-variant-numeric:tabular-nums}
.bp-bottleneck>b small{display:inline;color:#657786;font-size:12px;font-weight:600}
.bp-data-note{margin:14px 2px 0;color:#627587;font-size:12px;line-height:1.4}
.bp-scope-note{margin-bottom:16px}
.bp-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:750;white-space:nowrap}
.bp-status-verified{background:#e5f5eb;color:#17623a}
.bp-status-pending{background:#fff2d9;color:#85530b}
.bp-cost-warning{margin-top:0}
.bp-definition-note{margin:0 0 20px}
@media (max-width:1200px){.bp-overview-columns{grid-template-columns:1fr}.bp-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-filter-form .reporting-filter-actions{grid-column:1/-1}}
@media (max-width:760px){.reporting-business-feature{display:block}.reporting-business-feature .button{margin-top:15px}.bp-filter-form,.bp-metric-grid{grid-template-columns:1fr}.bp-filter-form .reporting-filter-actions{grid-column:auto}.bp-section-heading{margin-top:18px}.bp-tabs{overflow-x:auto}}
