:root{--cr-ink:#171815;--cr-muted:#71756d;--cr-line:#e5e6e1;--cr-paper:#fff;--cr-soft:#f5f6f2;--cr-accent:var(--app-primary,#2f6b59)}
.custom-reports-page{max-width:1420px;margin:0 auto;padding:28px 28px 64px;color:var(--cr-ink)}
.custom-reports-page *{box-sizing:border-box}.custom-eyebrow{display:block;margin-bottom:11px;color:var(--cr-accent);font-size:.71rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.custom-reports-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(330px,.7fr);min-height:390px;padding:58px 62px;overflow:hidden;border-radius:30px;background:linear-gradient(122deg,#141512 0%,#20231e 64%,#2c332c 100%);box-shadow:0 28px 75px rgba(26,30,25,.16);color:#fff}
.custom-reports-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 18%,color-mix(in srgb,var(--cr-accent) 48%,transparent),transparent 38%);opacity:.78}.custom-reports-hero>div{position:relative;z-index:1}.custom-reports-hero h1{max-width:750px;margin:0;font-size:clamp(2.45rem,4.2vw,4.8rem);font-weight:660;line-height:.98;letter-spacing:-.055em}.custom-reports-hero p{max-width:700px;margin:24px 0 31px;color:#d5d8d1;font-size:1.04rem;line-height:1.72}
.custom-primary-action,.custom-save-btn{display:inline-flex;align-items:center;justify-content:center;gap:17px;min-height:48px;padding:0 22px;border:0;border-radius:14px;background:var(--cr-accent);box-shadow:0 12px 30px color-mix(in srgb,var(--cr-accent) 25%,transparent);color:#fff!important;font-size:.86rem;font-weight:800;text-decoration:none;cursor:pointer}.custom-primary-action span,.custom-save-btn span{font-size:1.25rem}.custom-hero-visual{display:grid;place-items:center;min-height:260px}.custom-visual-sheet{width:min(310px,78%);height:220px;padding:30px;transform:rotate(-3deg);border:1px solid rgba(255,255,255,.18);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 32px 70px rgba(0,0,0,.3)}.custom-visual-sheet span{display:inline-block;width:26%;height:10px;margin-right:5%;border-radius:10px;background:#d9ddd7}.custom-visual-sheet span:first-child{width:40%;background:var(--cr-accent)}.custom-visual-sheet i{display:block;height:11px;margin-top:14px;border-radius:10px;background:#eceeea}.custom-visual-sheet i:nth-of-type(2),.custom-visual-sheet i:nth-of-type(5){width:72%}.custom-visual-badge{position:absolute;right:12px;bottom:20px;display:flex;flex-direction:column;min-width:148px;padding:16px 19px;border:1px solid rgba(255,255,255,.19);border-radius:17px;background:rgba(21,23,20,.88);backdrop-filter:blur(12px)}.custom-visual-badge strong{font-size:1.55rem}.custom-visual-badge small{color:#bfc5bb}
.custom-alert{margin:22px 0;padding:15px 18px;border:1px solid color-mix(in srgb,var(--cr-accent) 27%,white);border-radius:14px;background:color-mix(in srgb,var(--cr-accent) 8%,white);color:var(--cr-accent);font-weight:750}.custom-library{margin-top:52px}.custom-library>header{display:flex;align-items:end;justify-content:space-between;margin-bottom:21px}.custom-library h2{margin:0;font-size:1.85rem;letter-spacing:-.035em}.custom-count{padding:9px 13px;border-radius:99px;background:var(--cr-soft);color:var(--cr-muted);font-size:.76rem;font-weight:750}.custom-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.custom-report-card{display:flex;min-height:316px;flex-direction:column;padding:25px;border:1px solid var(--cr-line);border-radius:22px;background:var(--cr-paper);box-shadow:0 12px 38px rgba(28,32,26,.055);transition:.2s}.custom-report-card:hover{transform:translateY(-3px);box-shadow:0 20px 46px rgba(28,32,26,.09)}.custom-card-top{display:flex;justify-content:space-between;gap:10px}.custom-source-pill,.custom-field-count{padding:7px 9px;border-radius:8px;background:color-mix(in srgb,var(--cr-accent) 9%,white);color:var(--cr-accent);font-size:.68rem;font-weight:800}.custom-field-count{background:var(--cr-soft);color:var(--cr-muted)}.custom-report-card h3{margin:24px 0 8px;font-size:1.18rem}.custom-report-card>p{min-height:46px;margin:0;color:var(--cr-muted);font-size:.84rem;line-height:1.6}.custom-card-meta{display:flex;gap:28px;margin:22px 0;padding-top:17px;border-top:1px solid var(--cr-line)}.custom-card-meta span{display:flex;flex-direction:column;gap:4px}.custom-card-meta small{color:var(--cr-muted);font-size:.65rem;text-transform:uppercase}.custom-card-meta strong{font-size:.77rem}.custom-card-actions{display:flex;align-items:center;gap:8px;margin-top:auto}.custom-card-actions form{margin:0}.custom-open-btn{display:flex;align-items:center;justify-content:space-between;flex:1;min-height:42px;padding:0 14px;border-radius:11px;background:var(--cr-ink);color:#fff!important;font-size:.76rem;font-weight:800;text-decoration:none}.custom-icon-btn{display:grid;place-items:center;min-height:42px;padding:0 12px;border:1px solid var(--cr-line);border-radius:11px;background:#fff;color:var(--cr-ink)!important;font-size:.7rem;font-weight:800;text-decoration:none;cursor:pointer}.custom-icon-btn.danger{color:#9d352f!important}.custom-empty{padding:65px 24px;border:1px dashed #d8dad3;border-radius:24px;background:var(--cr-soft);text-align:center}.custom-empty-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 17px;border-radius:17px;background:var(--cr-ink);color:#fff;font-size:1.6rem}.custom-empty h3{margin:0 0 7px}.custom-empty p{max-width:530px;margin:0 auto 21px;color:var(--cr-muted);line-height:1.65}
.custom-page-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;margin:8px 0 32px}.custom-page-bar>div:not(.custom-preview-actions){max-width:900px}.custom-page-bar h1{margin:0;font-size:clamp(2rem,3.3vw,3.7rem);line-height:1.02;letter-spacing:-.052em}.custom-back{flex:0 0 auto;margin-top:4px;color:var(--cr-muted)!important;font-size:.78rem;font-weight:800;text-decoration:none}.custom-designer-form{display:flex;flex-direction:column;gap:18px}.custom-design-section{padding:29px;border:1px solid var(--cr-line);border-radius:24px;background:#fff;box-shadow:0 12px 35px rgba(28,32,26,.045)}.custom-design-section>header{display:flex;align-items:flex-start;gap:15px;margin-bottom:25px}.custom-design-section>header>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:var(--cr-ink);color:#fff;font-size:.69rem;font-weight:800}.custom-design-section h2{margin:1px 0 4px;font-size:1.2rem}.custom-design-section header p{margin:0;color:var(--cr-muted);font-size:.8rem}.custom-validation:empty{display:none}.custom-validation{padding:16px 20px;border:1px solid #efc7c3;border-radius:14px;background:#fff2f1;color:#9d352f}.custom-validation ul{margin:0;padding-left:19px}.custom-form-grid{display:grid;gap:16px}.identity-grid{grid-template-columns:.85fr 1.15fr}.filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.filter-grid .wide{grid-column:span 2}.output-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.custom-field{display:flex;min-width:0;flex-direction:column;gap:8px}.custom-field>span{font-size:.72rem;font-weight:800}.custom-field>span small{color:var(--cr-muted);font-weight:600}.custom-field input,.custom-field select,.custom-field textarea{width:100%;min-height:48px;padding:0 14px;border:1px solid #dfe1db;border-radius:12px;outline:none;background:#fafbf8;color:var(--cr-ink);font:inherit;font-size:.82rem}.custom-field textarea{height:82px;padding-top:13px;resize:vertical}.custom-field input:focus,.custom-field select:focus,.custom-field textarea:focus{border-color:var(--cr-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--cr-accent) 10%,transparent)}
.custom-source-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.custom-source-card{position:relative;cursor:pointer}.custom-source-card>input{position:absolute;opacity:0}.custom-source-card>span{display:flex;min-height:205px;flex-direction:column;padding:17px;border:1px solid var(--cr-line);border-radius:17px;background:#fafbf8;transition:.18s}.custom-source-card i{display:grid;place-items:center;width:35px;height:35px;margin-bottom:17px;border-radius:11px;background:#e9ebe5;color:var(--cr-muted);font-style:normal;font-weight:900}.custom-source-card strong{font-size:.83rem}.custom-source-card small{margin:8px 0;color:var(--cr-muted);font-size:.69rem;line-height:1.5}.custom-source-card b{margin-top:auto;color:var(--cr-muted);font-size:.67rem}.custom-source-card input:checked+span{border-color:var(--cr-accent);background:color-mix(in srgb,var(--cr-accent) 6%,white);box-shadow:inset 0 0 0 1px var(--cr-accent)}.custom-source-card input:checked+span i{background:var(--cr-accent);color:#fff}.custom-source-card input:checked+span b{color:var(--cr-accent)}.with-tools{align-items:center!important}.custom-inline-tools{display:flex;gap:7px;margin-left:auto}.custom-inline-tools button{padding:8px 11px;border:1px solid var(--cr-line);border-radius:9px;background:#fff;color:var(--cr-muted);font-size:.68rem;font-weight:800;cursor:pointer}.custom-fields-panel[hidden],[data-date-filter][hidden]{display:none!important}.custom-field-group{display:grid;grid-template-columns:140px 1fr;gap:19px;padding:18px 0;border-top:1px solid var(--cr-line)}.custom-field-group:first-child{padding-top:0;border-top:0}.custom-group-title{display:flex;flex-direction:column;gap:4px}.custom-group-title strong{font-size:.76rem}.custom-group-title small{color:var(--cr-muted);font-size:.66rem}.custom-field-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.custom-column-option{display:flex;align-items:center;min-height:45px;padding:0 10px;border:1px solid var(--cr-line);border-radius:11px;background:#fafbf8;cursor:pointer}.custom-column-option>input{position:absolute;opacity:0}.custom-check{display:grid;place-items:center;flex:0 0 18px;height:18px;margin-right:8px;border:1px solid #cfd2ca;border-radius:5px;background:#fff}.custom-column-option>strong{overflow:hidden;font-size:.71rem;text-overflow:ellipsis;white-space:nowrap}.custom-column-option.is-selected{border-color:color-mix(in srgb,var(--cr-accent) 50%,white);background:color-mix(in srgb,var(--cr-accent) 6%,white)}.custom-column-option.is-selected .custom-check{border-color:var(--cr-accent);background:var(--cr-accent)}.custom-column-option.is-selected .custom-check:after{content:"✓";color:#fff;font-size:.65rem;font-weight:900}.custom-order-controls{display:none;gap:3px;margin-left:auto}.custom-column-option.is-selected .custom-order-controls{display:flex}.custom-order-controls button{display:grid;place-items:center;width:23px;height:23px;border:0;border-radius:6px;background:#fff;color:var(--cr-muted);font-size:.68rem;cursor:pointer}.custom-selection-note{display:flex;align-items:baseline;justify-content:flex-end;gap:6px;margin-top:15px;color:var(--cr-muted);font-size:.71rem}.custom-selection-note strong{color:var(--cr-accent);font-size:1.1rem}.custom-designer-footer{position:sticky;z-index:5;bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:5px;padding:18px 21px;border:1px solid rgba(220,222,215,.9);border-radius:19px;background:rgba(255,255,255,.91);box-shadow:0 20px 50px rgba(24,27,23,.12);backdrop-filter:blur(15px)}.custom-designer-footer>div:first-child{display:flex;flex-direction:column}.custom-designer-footer strong{font-size:.82rem}.custom-designer-footer span{color:var(--cr-muted);font-size:.7rem}.custom-designer-footer>div:last-child,.custom-preview-actions{display:flex;gap:9px}.custom-cancel-btn{display:grid;place-items:center;min-height:48px;padding:0 18px;border:1px solid var(--cr-line);border-radius:13px;background:#fff;color:var(--cr-ink)!important;font-size:.76rem;font-weight:800;text-decoration:none}
.preview-bar{align-items:center;margin-bottom:23px}.custom-preview-sheet{overflow:hidden;border:1px solid var(--cr-line);border-radius:27px;background:#fff;box-shadow:0 22px 55px rgba(28,32,26,.07)}.custom-preview-sheet>header{display:flex;align-items:flex-start;justify-content:space-between;gap:30px;padding:38px 40px;background:linear-gradient(120deg,#171815,#292d27);color:#fff}.custom-preview-sheet>header h1{margin:0;font-size:clamp(1.8rem,3vw,3.2rem);letter-spacing:-.045em}.custom-preview-sheet>header p{max-width:750px;margin:11px 0 0;color:#c8ccc3;line-height:1.6}.custom-preview-mark{display:flex;min-width:118px;flex-direction:column;align-items:flex-end}.custom-preview-mark small{color:#b9beb5;font-size:.66rem;text-transform:uppercase}.custom-preview-mark strong{font-size:2.2rem}.custom-preview-context{display:grid;grid-template-columns:.75fr 1.7fr 1fr;border-bottom:1px solid var(--cr-line);background:#f8f9f6}.custom-preview-context>span{display:flex;min-width:0;flex-direction:column;gap:6px;padding:17px 23px;border-right:1px solid var(--cr-line)}.custom-preview-context>span:last-child{border:0}.custom-preview-context small{color:var(--cr-muted);font-size:.61rem;font-weight:800;text-transform:uppercase}.custom-preview-context strong{overflow:hidden;font-size:.73rem;text-overflow:ellipsis;white-space:nowrap}.custom-table-wrap{max-height:620px;overflow:auto}.custom-preview-table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap}.custom-preview-table th{position:sticky;z-index:2;top:0;padding:14px 17px;border-bottom:1px solid #30342e;background:#242722;color:#fff;font-size:.65rem;letter-spacing:.04em;text-align:left;text-transform:uppercase}.custom-preview-table td{padding:13px 17px;border-bottom:1px solid #eceee9;color:#454942;font-size:.72rem}.custom-preview-table tbody tr:nth-child(even) td{background:#fafbf8}.custom-preview-table tbody tr:hover td{background:color-mix(in srgb,var(--cr-accent) 5%,white)}.custom-preview-sheet>footer{display:flex;justify-content:space-between;padding:17px 23px;background:#f8f9f6;color:var(--cr-muted);font-size:.68rem}.preview-empty{margin:30px;border:0}
@media(max-width:1100px){.custom-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.custom-field-list{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.custom-reports-page{padding:16px 14px 48px}.custom-reports-hero{grid-template-columns:1fr;padding:38px 25px;border-radius:23px}.custom-hero-visual{display:none}.custom-report-grid,.identity-grid,.output-grid,.filter-grid,.custom-source-grid{grid-template-columns:1fr}.filter-grid .wide{grid-column:auto}.custom-page-bar{flex-direction:column}.custom-page-bar>div{order:-1}.custom-design-section{padding:21px 16px}.custom-field-group{grid-template-columns:1fr}.custom-field-list{grid-template-columns:1fr}.with-tools{flex-wrap:wrap}.custom-inline-tools{width:100%;margin:5px 0 0 53px}.custom-designer-footer{position:static;align-items:stretch;flex-direction:column}.custom-designer-footer>div:last-child>*{flex:1}.preview-bar{align-items:stretch}.custom-preview-actions>*{flex:1}.custom-preview-sheet>header{padding:28px 22px}.custom-preview-context{grid-template-columns:1fr}.custom-preview-context>span{border-right:0;border-bottom:1px solid var(--cr-line)}.custom-preview-sheet>footer{flex-direction:column;gap:6px}}
.custom-column-option.is-selected .custom-check:after{content:none}.custom-column-option.is-selected .custom-check{color:#fff;font-size:.58rem;font-weight:900}

/* Dark mode - quiet office surfaces with the company color kept as the accent. */
html.app-theme-dark .custom-reports-page{--cr-ink:#f4f7fb;--cr-muted:#9aa8bc;--cr-line:rgba(255,255,255,.11);--cr-paper:#10141d;--cr-soft:#171d29;--cr-accent-text:color-mix(in srgb,var(--cr-accent) 36%,#fff);color:var(--cr-ink)}
html.app-theme-dark .custom-eyebrow{color:var(--cr-accent-text)}
html.app-theme-dark .custom-reports-hero{border:1px solid rgba(255,255,255,.09);background:linear-gradient(122deg,#080b11 0%,#10151e 62%,#17201e 100%);box-shadow:0 30px 80px rgba(0,0,0,.38)}
html.app-theme-dark .custom-visual-sheet{border-color:rgba(255,255,255,.1);background:#151b24;box-shadow:0 32px 70px rgba(0,0,0,.46)}
html.app-theme-dark .custom-visual-sheet span{background:#343d4a}html.app-theme-dark .custom-visual-sheet span:first-child{background:var(--cr-accent)}html.app-theme-dark .custom-visual-sheet i{background:#252e3b}
html.app-theme-dark .custom-alert{border-color:color-mix(in srgb,var(--cr-accent-text) 55%,transparent);background:color-mix(in srgb,var(--cr-accent) 15%,#10141d);color:var(--cr-accent-text)}
html.app-theme-dark .custom-count,html.app-theme-dark .custom-field-count{background:#1a2230;color:var(--cr-muted)}
html.app-theme-dark .custom-report-card,html.app-theme-dark .custom-design-section,html.app-theme-dark .custom-preview-sheet{border-color:var(--cr-line);background:var(--cr-paper);box-shadow:0 18px 46px rgba(0,0,0,.25)}
html.app-theme-dark .custom-report-card:hover{border-color:rgba(255,255,255,.17);box-shadow:0 24px 58px rgba(0,0,0,.36)}
html.app-theme-dark .custom-source-pill{background:color-mix(in srgb,var(--cr-accent) 16%,#111722);color:var(--cr-accent-text)}
html.app-theme-dark .custom-open-btn{background:#070a10;color:#f8fafc!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
html.app-theme-dark .custom-icon-btn,html.app-theme-dark .custom-cancel-btn,html.app-theme-dark .custom-inline-tools button{border-color:var(--cr-line);background:#151b25;color:var(--cr-ink)!important}
html.app-theme-dark .custom-icon-btn:hover,html.app-theme-dark .custom-cancel-btn:hover,html.app-theme-dark .custom-inline-tools button:hover{border-color:rgba(255,255,255,.2);background:#1c2431}
html.app-theme-dark .custom-icon-btn.danger{color:#f6a39c!important}
html.app-theme-dark .custom-empty{border-color:rgba(255,255,255,.16);background:#0d121b}html.app-theme-dark .custom-empty-icon{background:var(--cr-accent);color:#fff}
html.app-theme-dark .custom-design-section>header>span{background:#070a10;box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);color:#fff}
html.app-theme-dark .custom-validation{border-color:rgba(248,113,113,.32);background:rgba(127,29,29,.22);color:#fca5a5}
html.app-theme-dark .custom-field input,html.app-theme-dark .custom-field select,html.app-theme-dark .custom-field textarea{border-color:rgba(255,255,255,.12);background:#0b1018;color:var(--cr-ink);color-scheme:dark}
html.app-theme-dark .custom-field input::placeholder,html.app-theme-dark .custom-field textarea::placeholder{color:#6f7d90}
html.app-theme-dark .custom-field input:focus,html.app-theme-dark .custom-field select:focus,html.app-theme-dark .custom-field textarea:focus{border-color:var(--cr-accent-text);background:#0e141e;box-shadow:0 0 0 3px color-mix(in srgb,var(--cr-accent) 20%,transparent)}
html.app-theme-dark .custom-source-card>span{border-color:var(--cr-line);background:#0c1119}html.app-theme-dark .custom-source-card i{background:#1b2431;color:#a7b4c5}
html.app-theme-dark .custom-source-card input:checked+span{border-color:var(--cr-accent-text);background:color-mix(in srgb,var(--cr-accent) 14%,#0d131c);box-shadow:inset 0 0 0 1px var(--cr-accent-text)}
html.app-theme-dark .custom-source-card input:checked+span b{color:var(--cr-accent-text)}
html.app-theme-dark .custom-column-option{border-color:var(--cr-line);background:#0b1018}html.app-theme-dark .custom-column-option:hover{background:#131a25}
html.app-theme-dark .custom-column-option.is-selected{border-color:var(--cr-accent-text);background:color-mix(in srgb,var(--cr-accent) 14%,#0c1119)}
html.app-theme-dark .custom-check{border-color:#465367;background:#151c27}html.app-theme-dark .custom-column-option.is-selected .custom-check{border-color:var(--cr-accent);background:var(--cr-accent)}
html.app-theme-dark .custom-selection-note strong{color:var(--cr-accent-text)}
html.app-theme-dark .custom-order-controls button{background:#202938;color:#c0cad7}html.app-theme-dark .custom-order-controls button:hover{background:#2a3545;color:#fff}
html.app-theme-dark .custom-designer-footer{border-color:rgba(255,255,255,.13);background:rgba(12,16,24,.91);box-shadow:0 22px 58px rgba(0,0,0,.46)}
html.app-theme-dark .custom-preview-sheet>header{border-bottom:1px solid rgba(255,255,255,.09);background:radial-gradient(circle at 82% 5%,color-mix(in srgb,var(--cr-accent) 22%,transparent),transparent 25rem),linear-gradient(120deg,#070a10,#131922)}
html.app-theme-dark .custom-preview-context,html.app-theme-dark .custom-preview-sheet>footer{background:#0c1119}
html.app-theme-dark .custom-preview-table th{border-bottom-color:rgba(255,255,255,.16);background:#080c12;color:#f8fafc}
html.app-theme-dark .custom-preview-table td{border-bottom-color:rgba(255,255,255,.08);background:#10151e;color:#dce3ed}
html.app-theme-dark .custom-preview-table tbody tr:nth-child(even) td{background:#141b25}
html.app-theme-dark .custom-preview-table tbody tr:hover td{background:color-mix(in srgb,var(--cr-accent) 13%,#111823)}
html.app-theme-dark .custom-table-wrap{scrollbar-color:#3a4658 #0b1018}
