/* DukanX V5 — inline header search, language switch and split report pages */

/* Keep the search field on the same header row and expand it to the left. */
.site-header,.nav-wrap,.nav-actions{overflow:visible}
.nav-actions{isolation:isolate}
.header-search-shell{position:relative!important;width:42px;height:42px;flex:0 0 42px;z-index:105}
.header-search-form{position:absolute!important;top:0!important;right:0!important;width:min(500px,calc(100vw - 390px))!important;height:42px;margin:0;z-index:110;transform:translateX(10px) scaleX(.06)!important;transform-origin:right center!important;box-shadow:0 16px 42px rgba(21,28,52,.17)!important}
.header-search-shell.open .header-search-form{transform:none!important}
.header-search-shell.open{z-index:115}

.language-switch{height:38px;display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #e3e6ee;border-radius:11px;background:#fff;box-shadow:0 5px 14px rgba(25,32,61,.035)}
.language-switch a{min-width:29px;height:30px;display:grid;place-items:center;padding:0 6px;border-radius:8px;color:#7a8395;font:800 9px Manrope,sans-serif;letter-spacing:.35px;transition:.18s}
.language-switch a:hover{color:var(--brand);background:#f5f3ff}
.language-switch a.active{color:#fff;background:linear-gradient(135deg,var(--brand),#8172f2);box-shadow:0 6px 13px rgba(103,89,232,.2)}
.language-switch>span{display:none}

/* Reports sidebar parent and nested pages. */
.admin-nav-group{display:flex;flex-direction:column}
.admin-nav-parent{position:relative;width:100%;display:flex;align-items:center;gap:12px;padding:11px 12px;border:0;border-radius:11px;background:transparent;color:#99a2b8;text-align:left;font-size:13px;font-weight:600;transition:.2s}
.admin-nav-parent:hover,.admin-nav-group.active>.admin-nav-parent{color:#fff;background:rgba(255,255,255,.045)}
.admin-nav-parent svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.admin-nav-parent span{flex:1}
.admin-nav-parent i{font-style:normal;font-size:14px;transition:transform .22s}
.admin-nav-group.open .admin-nav-parent i{transform:rotate(180deg)}
.admin-subnav{max-height:0;overflow:hidden;display:flex;flex-direction:column;gap:3px;padding:0 0 0 31px;opacity:.35;transition:max-height .3s ease,opacity .2s ease,padding .3s ease}
.admin-nav-group.open .admin-subnav{max-height:230px;padding-top:5px;padding-bottom:5px;opacity:1}
.admin-v2 .admin-sidebar nav .admin-subnav a{min-height:35px;padding:7px 9px;border-radius:9px;font-size:11px;color:#737f9b}
.admin-v2 .admin-sidebar nav .admin-subnav a:before{display:none}
.admin-v2 .admin-sidebar nav .admin-subnav a span{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;border-radius:7px;background:#1b2338;color:#747f9a;font:800 7px Manrope,sans-serif}
.admin-v2 .admin-sidebar nav .admin-subnav a:hover{color:#fff;background:#171f34}
.admin-v2 .admin-sidebar nav .admin-subnav a.active{color:#fff;background:rgba(103,89,232,.16)}
.admin-v2 .admin-sidebar nav .admin-subnav a.active span{color:#d9d5ff;background:#40388d}

/* Separate report pages. */
.report-hub-grid-v5{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:18px}
.report-hub-card-v5{min-height:185px;display:flex;flex-direction:column;gap:13px;padding:21px;border:1px solid #e2e5ed;border-radius:18px;background:#fff;box-shadow:0 9px 26px rgba(28,35,65,.035);transition:.2s}
.report-hub-card-v5:hover{transform:translateY(-3px);border-color:#cfc9fc;box-shadow:0 18px 40px rgba(28,35,65,.08)}
.report-hub-icon-v5{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#efedff;color:var(--brand);font:800 16px Manrope,sans-serif}
.report-hub-card-v5 small{color:var(--brand);font:800 8px Manrope,sans-serif;letter-spacing:1.2px}
.report-hub-card-v5 h2{margin:4px 0 5px;font:750 18px/1.25 Manrope,sans-serif}
.report-hub-card-v5 p{margin:0;color:var(--muted);font-size:10px}
.report-hub-card-v5>b{margin-top:auto;color:var(--brand);font-size:10px}
.report-overview-grid-v5{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.report-card-head-v4>a{color:var(--brand);font-size:10px;font-weight:700;white-space:nowrap}
.report-page-card-v5{min-height:480px}
.report-summary-grid-v5{margin-bottom:20px}

.profit-chart-v5{height:250px;display:flex;align-items:flex-end;gap:8px;margin:4px 0 12px;padding:22px 18px 11px;border:1px solid #eceef3;border-radius:14px;background:linear-gradient(180deg,#fcfcfe,#f8f9fc)}
.profit-chart-column-v5{min-width:34px;flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}
.profit-chart-bars-v5{width:100%;height:calc(100% - 25px);display:flex;align-items:flex-end;justify-content:center;gap:3px;border-bottom:1px dashed #dfe2ea}
.profit-chart-bars-v5 i{width:min(12px,38%);min-height:4px;border-radius:5px 5px 2px 2px}
.profit-chart-bars-v5 i.revenue{background:linear-gradient(180deg,#7567ee,#5748d1)}
.profit-chart-bars-v5 i.cost{background:linear-gradient(180deg,#ffb45e,#ee8f2a)}
.profit-chart-column-v5 small{color:#7f8798;font-size:8px;white-space:nowrap}
.profit-chart-legend-v5{display:flex;justify-content:flex-end;gap:15px;margin-bottom:16px;color:#6f788c;font-size:9px}
.profit-chart-legend-v5 span{display:flex;align-items:center;gap:5px}
.profit-chart-legend-v5 i{width:9px;height:9px;border-radius:3px}
.profit-chart-legend-v5 i.revenue{background:#6657e8}.profit-chart-legend-v5 i.cost{background:#f59d39}

@media(max-width:1150px){
  .header-search-form{width:min(410px,calc(100vw - 330px))!important}
  .report-hub-grid-v5{grid-template-columns:1fr 1fr}.report-overview-grid-v5{grid-template-columns:1fr}
}
@media(max-width:820px){
  .header-search-form{top:0!important;right:0!important;width:min(390px,calc(100vw - 160px))!important;height:42px!important}
  .language-switch{height:36px}.language-switch a{height:28px;min-width:27px;padding:0 4px;font-size:8px}
  .report-hub-grid-v5{grid-template-columns:1fr}.report-date-filter-v5{width:100%}
}
@media(max-width:580px){
  .header-search-shell{width:38px;height:38px;flex-basis:38px}
  .header-search-form{top:0!important;right:0!important;width:calc(100vw - 178px)!important;min-width:190px;height:38px!important;grid-template-columns:26px minmax(0,1fr) 31px 28px!important;padding:2px 3px 2px 5px!important}
  .header-search-form input{height:32px!important;font-size:11px!important;padding-inline:4px!important}
  .header-search-submit,.header-search-close{height:30px!important;border-radius:8px!important}
  .language-switch{height:34px;padding:2px;border-radius:10px}.language-switch a{height:28px;min-width:25px;font-size:7px}
  .profit-chart-v5{height:210px;overflow-x:auto;justify-content:flex-start}.profit-chart-column-v5{min-width:34px;flex:0 0 34px}
}
