/* CFG Horse Reports v1.3.0. Standalone WordPress admin dashboard + A4 print layout. */
.cfgshr-admin{--cfgshr-navy:#171A4A;--cfgshr-red:#C8102E;--cfgshr-faint:#f3f5fa;--cfgshr-muted:#637088;--cfgshr-line:#dce2ed;max-width:none;margin:14px 20px 35px 0;color:var(--cfgshr-navy);font-family:Inter,Arial,sans-serif}
.cfgshr-admin *{box-sizing:border-box}
.cfgshr-topbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:2px 0 18px;padding:24px 29px;background:linear-gradient(110deg,#171A4A 0%,#242954 78%,#3f234b 100%);border-left:5px solid var(--cfgshr-red);border-radius:13px;color:#fff}
.cfgshr-overline{display:block;letter-spacing:1.65px;color:#ffb2bf;font-size:10px;font-weight:800;margin-bottom:9px}
.cfgshr-topbar h1{color:#fff;font-size:27px;font-weight:800;line-height:1.2;margin:0 0 9px;padding:0}
.cfgshr-topbar p{font-size:13px;color:#d7d9e7;line-height:1.6;margin:0;max-width:790px}
.cfgshr-private-label{display:inline-flex;gap:7px;align-items:center;white-space:nowrap;font-size:11px;font-weight:700;border:1px solid #78809f;border-radius:22px;padding:8px 12px;color:#f2f3fa;background:#ffffff0e}
.cfgshr-private-label .dashicons{font-size:15px;width:15px;height:15px}
.cfgshr-builder{position:relative;display:flex;align-items:end;flex-wrap:wrap;gap:14px;background:#fff;border:1px solid var(--cfgshr-line);box-shadow:0 8px 25px #171a4a0b;border-radius:13px;padding:18px 19px 20px;margin:0 0 15px}
.cfgshr-field{flex:0 1 190px;min-width:160px;display:flex;flex-direction:column;gap:7px;position:relative}
.cfgshr-search-field{flex:1 1 320px;max-width:unset;z-index:10}
.cfgshr-run-field{flex:1 1 275px;min-width:245px}
.cfgshr-field label{font-size:12px;font-weight:800;color:#171A4A}
.cfgshr-field input,.cfgshr-field select{height:42px;width:100%;max-width:none;border-radius:8px;border:1px solid #cbd3e3;background:#fff;color:#1c2546;font-size:13px;padding:0 11px;box-shadow:none}
.cfgshr-field input:focus,.cfgshr-field select:focus{border-color:var(--cfgshr-red);box-shadow:0 0 0 1px var(--cfgshr-red);outline:none}
.cfgshr-search-wrap{position:relative;width:100%}
.cfgshr-search-wrap>.dashicons{position:absolute;left:12px;top:12px;width:18px;height:18px;font-size:18px;color:#8590a5;pointer-events:none}
.cfgshr-field input[type="search"]{padding-left:39px}
.cfgshr-field small{color:var(--cfgshr-muted);font-size:10px;line-height:1.4;min-height:14px}
.cfgshr-suggestions{position:absolute;z-index:100;top:calc(100% + 4px);left:0;right:0;max-height:284px;overflow-y:auto;background:#fff;border:1px solid #cbd3e2;border-radius:10px;box-shadow:0 12px 24px #171a4a29;padding:6px}
.cfgshr-suggestions[hidden]{display:none!important}
.cfgshr-suggestion{width:100%;border:0!important;background:#fff;text-align:left;color:#171A4A;font-size:13px;font-weight:600;border-radius:6px;padding:10px 12px;cursor:pointer;display:block}
.cfgshr-suggestion:hover,.cfgshr-suggestion:focus{background:#f2f4fb;outline:2px solid transparent;color:var(--cfgshr-red)}
.cfgshr-suggestion-status{padding:13px 10px;font-size:12px;color:var(--cfgshr-muted)}
.cfgshr-admin .cfgshr-generate{height:42px;min-width:158px;background:var(--cfgshr-red);border-color:var(--cfgshr-red);border-radius:8px;padding:0 15px;font-size:12px;font-weight:800;margin-bottom:22px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.cfgshr-admin .cfgshr-generate:hover,.cfgshr-admin .cfgshr-generate:focus{background:#ad0c27;border-color:#ad0c27}
.cfgshr-generate .dashicons{font-size:16px;width:16px;height:16px}
.cfgshr-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:13px;background:#fff;border:1px solid #dfe4ed;border-radius:10px;padding:12px 16px;margin-bottom:19px}
.cfgshr-actions-label{display:flex;align-items:center;gap:6px;font-size:12px;color:#46516d}
.cfgshr-actions-label .dashicons{color:#118466}
.cfgshr-actions-label strong{color:var(--cfgshr-navy)}
.cfgshr-action-buttons{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.cfgshr-action-buttons .button{min-height:36px;display:inline-flex;align-items:center;gap:6px;padding:0 13px;font-size:12px;font-weight:700;border-radius:7px}
.cfgshr-action-buttons .button-primary{background:var(--cfgshr-navy);border-color:var(--cfgshr-navy)}
.cfgshr-action-buttons .button-primary:hover{background:#252a64;border-color:#252a64}
.cfgshr-action-buttons .dashicons{font-size:15px;width:15px;height:15px}
.cfgshr-empty-state{background:#fff;border:1px solid var(--cfgshr-line);padding:58px 30px;border-radius:12px;text-align:center;max-width:980px;margin:0 auto;color:#66738b;box-shadow:0 8px 20px #171a4a0b}
.cfgshr-empty-icon{display:flex;align-items:center;justify-content:center;width:66px;height:66px;background:#f2f3fa;color:var(--cfgshr-red);border-radius:19px;margin:0 auto 13px}
.cfgshr-empty-icon .dashicons{font-size:33px;width:33px;height:33px}
.cfgshr-empty-state h2{font-size:21px;color:var(--cfgshr-navy);margin:0 0 10px}
.cfgshr-empty-state p{font-size:13px;line-height:1.75;max-width:700px;margin:0 auto}
.cfgshr-welcome-features{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin-top:22px}
.cfgshr-welcome-features span{border:1px solid #e1e5ee;border-radius:20px;padding:6px 12px;color:#46516f;background:#f9faff;font-size:11px;font-weight:700}
.cfgshr-print{--cfgshr-navy:#171A4A;--cfgshr-red:#C8102E;--cfgshr-faint:#f3f5fa;--cfgshr-muted:#637088;--cfgshr-line:#dce2ed;margin:0 auto;max-width:1480px}
.cfgshr-profile-sheet{padding:25px 29px;break-after:auto;page-break-after:auto;margin-bottom:22px;overflow:visible}
.cfgshr-report-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 2px 20px}
.cfgshr-report-hero h2{font-size:34px;line-height:1.15;font-weight:850;color:var(--cfgshr-navy);margin:7px 0 9px}
.cfgshr-report-hero p{color:var(--cfgshr-muted);font-size:12px;margin:0}
.cfgshr-report-mark{text-align:right;color:var(--cfgshr-navy);font-size:42px;font-weight:900;letter-spacing:-3px;white-space:nowrap;line-height:1}
.cfgshr-report-mark span{display:block;letter-spacing:1.5px;font-size:9px;color:var(--cfgshr-red);margin-top:5px}
.cfgshr-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:2px 0 23px}
.cfgshr-stat{background:#f4f6fb;border:1px solid #e8ebf2;display:flex;flex-direction:column;align-items:flex-start;gap:6px;border-radius:9px;padding:13px 14px;min-width:0}
.cfgshr-stat span{font-size:10px;font-weight:700;color:#68758d}
.cfgshr-stat strong{font-size:23px;line-height:1.1;color:var(--cfgshr-navy)}
.cfgshr-stat small{font-size:9px;color:#7c8698;line-height:1.4}
.cfgshr-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0 10px;padding-bottom:9px;border-bottom:1px solid #e4e8f0}
.cfgshr-section-title h3{font-size:15px;margin:0;font-weight:800;color:var(--cfgshr-navy)}
.cfgshr-section-title>span{font-size:10px;color:#768197}
.cfgshr-trend-panel{border:1px solid #e0e5ef;border-radius:10px;padding:12px 14px;background:#fff}
.cfgshr-trend-legend{display:flex;gap:17px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.cfgshr-dot{font-size:10px;color:#4f5b73;font-weight:700;display:inline-flex;align-items:center;gap:6px}
.cfgshr-trend-legend .cfgshr-dot:before{content:"";display:inline-block;flex:0 0 10px;width:10px;height:10px;border-radius:50%;background-color:#C8102E}
.cfgshr-trend-legend .cfgshr-dot-esr:before{background-color:#C8102E}
.cfgshr-trend-legend .cfgshr-dot-cfg:before{background-color:#171A4A}
.cfgshr-trend-legend .cfgshr-dot-sr:before{background-color:#198AA6}
.cfgshr-trend-svg{width:100%;height:230px;display:block;overflow:visible}
.cfgshr-gridline{stroke:#e5e9f1;stroke-width:1}
.cfgshr-axes{font:11px Arial,sans-serif;fill:#667189}
.cfgshr-chart-empty{display:flex;justify-content:center;align-items:center;min-height:100px;color:#69768b;font-size:12px}
.cfgshr-table-scroll{overflow-x:auto;width:100%;border-radius:9px;border:1px solid #e0e5ed}
.cfgshr-table{width:100%;border-collapse:collapse;white-space:nowrap;background:#fff}
.cfgshr-table th{background:#171A4A;color:#fff;padding:11px 10px;font-size:10px;line-height:1.3;font-weight:800;text-align:left}
/* Strong scoped colours ensure WordPress/theme CSS cannot make headers invisible. */
.cfgshr-print .cfgshr-table thead th{background-color:#171A4A!important;color:#fff!important;vertical-align:middle}
.cfgshr-print .cfgshr-table thead{display:table-header-group}
.cfgshr-table td{padding:10px;border-bottom:1px solid #e5e9f0;font-size:11px;color:#34415d;line-height:1.3}
.cfgshr-table tbody tr:nth-child(even){background:#f8f9fc}
.cfgshr-table tbody tr:hover{background:#f1f4fa}
.cfgshr-table .cfgshr-chosen-run{background:#fff4f6}
.cfgshr-table .cfgshr-chosen-run td:first-child{box-shadow:inset 3px 0 var(--cfgshr-red)}
.cfgshr-unit{font-size:9px;color:#8690a2}
.cfgshr-view-run{font-weight:800;color:var(--cfgshr-red);text-decoration:none}
.cfgshr-view-run:hover{text-decoration:underline}
.cfgshr-notes{white-space:normal;min-width:140px;max-width:270px}
.cfgshr-caption{font-size:10px;color:#7b8497;line-height:1.5;margin:8px 0 0}
.cfgshr-methodology{margin:20px 0 0;padding:12px 15px;background:#f5f6fa;border-left:3px solid var(--cfgshr-red);font-size:10px;color:#53617b;line-height:1.6}
.cfgshr-methodology strong{color:var(--cfgshr-navy)}
.cfgshr-no-runs{padding:16px;background:#f8f9fc;border-left:3px solid var(--cfgshr-red);font-size:12px}
.cfgshr-detail .cfgsr-sheet{break-after:auto;page-break-after:auto;margin-bottom:30px}
@media(max-width:1300px){.cfgshr-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.cfgshr-report-mark{font-size:33px}}
@media(max-width:800px){.cfgshr-topbar{padding:20px;align-items:flex-start;flex-direction:column}.cfgshr-topbar h1{font-size:23px}.cfgshr-builder{gap:15px}.cfgshr-field{flex:1 1 100%;min-width:0}.cfgshr-admin .cfgshr-generate{width:100%;margin-bottom:0}.cfgshr-actions{align-items:flex-start;flex-direction:column}.cfgshr-action-buttons{width:100%}.cfgshr-report-hero{align-items:flex-start;flex-direction:column}.cfgshr-report-mark{display:none}.cfgshr-profile-sheet{padding:14px}.cfgshr-report-hero h2{font-size:27px}.cfgshr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cfgshr-trend-svg{height:auto;min-height:175px}.cfgshr-section-title{align-items:flex-start;flex-direction:column;gap:4px}.cfgshr-private-label{white-space:normal}}
@media(max-width:480px){.cfgshr-admin{margin-right:10px;margin-left:0}.cfgshr-topbar{padding:17px}.cfgshr-stats{gap:7px}.cfgshr-stat{padding:10px}.cfgshr-stat strong{font-size:19px}.cfgshr-report-hero h2{font-size:23px}.cfgshr-profile-sheet{padding:12px}.cfgshr-actions .button{flex:1 1 100%;justify-content:center}.cfgshr-trend-legend{justify-content:flex-start;gap:10px}.cfgshr-report-hero{padding-top:15px}}
@media print{
 @page{size:A4 landscape;margin:9mm}
 html,body,#wpwrap,#wpcontent,#wpbody,#wpbody-content{background:#fff!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
 #wpadminbar,#adminmenumain,#adminmenuwrap,#adminmenuback,#wpfooter,.notice,.update-nag,.cfgshr-topbar,.cfgshr-builder,.cfgshr-actions{display:none!important}
 .cfgshr-admin{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
 .cfgshr-admin>#cfgshr-print,.cfgshr-print{display:block!important;margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
 .cfgshr-profile-sheet{margin:0!important;padding:1mm!important;box-shadow:none!important;border:0!important;border-radius:0!important;min-height:0!important;break-inside:auto!important;page-break-inside:auto!important;break-after:page!important;page-break-after:always!important}
 .cfgshr-detail>.cfgsr-sheet{margin:0!important;min-height:0!important;padding:1mm!important;box-shadow:none!important;border:0!important;border-radius:0!important;page-break-after:auto!important;break-after:auto!important}
 .cfgshr-report-hero{padding:12px 0 12px!important}.cfgshr-report-hero h2{font-size:27px!important}
 .cfgshr-report-mark{font-size:32px!important}
 .cfgshr-stats{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:5px!important;margin:3px 0 10px!important}
 .cfgshr-stat{padding:7px 8px!important;gap:4px!important;border-radius:5px!important}
 .cfgshr-stat strong{font-size:18px!important}
 .cfgshr-trend-panel{padding:6px 10px!important}
 .cfgshr-trend-svg{height:155px!important}
 .cfgshr-section-title{margin:10px 0 6px!important;padding-bottom:6px!important;flex-direction:row!important}
 .cfgshr-table-scroll{overflow:visible!important;border:0!important}
 .cfgshr-table{white-space:normal!important;width:100%!important;table-layout:auto!important}
 .cfgshr-table th,.cfgshr-table td{padding:6px 5px!important;font-size:8px!important;line-height:1.3!important}
 .cfgshr-table thead{display:table-header-group}
 .cfgshr-table tr{break-inside:avoid!important;page-break-inside:avoid!important}
 .cfgshr-screen-only{display:none!important}
 .cfgshr-notes{min-width:0!important;max-width:190px!important;overflow-wrap:anywhere}
 .cfgshr-caption{font-size:8px!important}
 .cfgshr-methodology{font-size:8px!important;padding:7px 9px!important;margin-top:9px!important}
 .cfgsr-sheet-footer{font-size:8px!important;padding-top:5px!important;margin-top:8px!important}
 .cfgshr-chart-heading{margin-top:9px!important}
 .cfgshr-print *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}
