/* HYDROTECH V40 — high-contrast, no-shadow CRM parity and operations UI */
:root{--v40-ink:#0a2b47;--v40-blue:#085291;--v40-cyan:#0ba5c2;--v40-line:#cbdce8;--v40-bg:#f0f6fa;--v40-muted:#57768d}
html.app-active .v40-note{background:#f4f9fc;border:1px solid #d1e1ea;color:#466b83;border-left:3px solid var(--v40-blue);padding:11px 14px;margin:0 0 12px;border-radius:9px;font-size:12px;line-height:1.55;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.v40-note b{color:#085291;font-weight:400}.v40-note svg{height:16px;width:16px;color:#085291;flex:none}
.v40-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:11px 0 13px}.v40-kpis>div{min-width:0;background:#fff;border:1px solid var(--v40-line);border-top:3px solid #085291;border-radius:10px;padding:14px 15px;display:flex;flex-direction:column;gap:7px}
.v40-kpis>div:nth-child(2){border-top-color:#0ba5c2}.v40-kpis>div:nth-child(3){border-top-color:#68737a}.v40-kpis>div:nth-child(4){border-top-color:#1ba984}.v40-kpis small{font-size:11px;color:var(--v40-muted)}.v40-kpis strong{font-size:23px;line-height:1.2;letter-spacing:-.02em;color:var(--v40-ink);font-weight:400;overflow-wrap:anywhere}.v40-kpis .v40-summary-small{font-size:15px;line-height:1.45;letter-spacing:0}
.v40-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid var(--v40-line);border-radius:11px;padding:11px 14px;margin:12px 0}.v40-controls select{min-width:150px;max-width:255px;width:auto;height:39px}.v40-control-label{display:flex;flex-direction:column;gap:3px;margin-right:auto;min-width:145px}.v40-control-label strong{color:var(--v40-ink);font-size:12px;font-weight:400}.v40-control-label small{color:var(--v40-muted);font-size:10px}.v40-search{min-width:240px;max-width:460px;flex:1;display:flex;align-items:center;position:relative}.v40-search svg{position:absolute;left:12px;width:17px;height:17px;color:#6f8ba1;pointer-events:none}.v40-search input{width:100%;min-width:0;height:39px;padding-left:35px!important;border:1px solid #c7dbe8;border-radius:8px;background:#fff;color:#123855;font-size:12px}
.v40-textlink{color:var(--v40-blue);font-size:12px;font-weight:400;appearance:none;border:0;padding:0;background:transparent;cursor:pointer;max-width:250px;text-align:left;line-height:1.4}.v40-textlink:hover{text-decoration:underline}
.v40-actions{white-space:nowrap}.v40-actions .btn{font-size:11px;min-height:31px;padding:6px 10px;margin:2px}.v39-data td{vertical-align:top}.v39-data td small{color:#6d8294;font-size:10px;line-height:1.45;display:block;margin-top:4px}.v39-data .v40-longcell{min-width:190px;max-width:345px;white-space:normal;line-height:1.5}
.v40-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:6px 0 17px}.v40-detail-cell{padding:12px;border:1px solid #d7e4ed;border-radius:9px;background:#f8fbfd;display:flex;flex-direction:column;gap:7px;overflow-wrap:anywhere;min-width:0}.v40-detail-cell small{font-size:10px;color:#698096}.v40-detail-cell strong{font-size:13px;font-weight:400;color:#193f5c;line-height:1.5}
.v40-detail-note{background:#fbfdfe;border:1px solid #d6e4ed;padding:15px;border-radius:10px;margin:12px 0;font-size:12px;color:#315771;white-space:pre-wrap;line-height:1.65}.v40-detail-note strong{font-size:13px;color:#0a385c}.v40-detail-note p{margin:7px 0 0}.v40-help{background:#eef6fc;border:1px solid #cbdfea;border-radius:9px;padding:11px 14px;margin:12px 0;color:#436980;font-size:12px;line-height:1.6}
.v40-listitem{padding:11px 2px;border-bottom:1px solid #e5edf3;display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;color:#294e68}.v40-listitem>div{min-width:0;flex:1}.v40-listitem strong{font-size:12px;line-height:1.4;color:#0c3557;font-weight:400;display:block;overflow-wrap:anywhere}.v40-listitem small{font-size:11px;color:#5f7a8e;line-height:1.55;display:block;overflow-wrap:anywhere;max-width:100%;white-space:pre-line;margin-top:4px}.v40-listitem .btn{flex:none}.v40-empty{font-size:12px;color:#72889a;padding:16px 4px}.v40-subheading{font-size:15px;color:#103651;margin:17px 0 7px}
.v40-categorybar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:12px 0}.v40-categorybar button{background:white;border:1px solid #cfe0eb;border-radius:8px;padding:9px 12px;font-size:11px;color:#355b75;cursor:pointer}.v40-categorybar button.selected{border-color:#085291;background:#e6f3fc;color:#085291;font-weight:400}.v40-categorybar small{color:#7c93a3;padding-left:5px}.v40-preview-image{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;margin-top:15px}.v40-upload-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px;background:#f7fbfd;border:1px dashed #b4ccdd;border-radius:11px;margin-top:14px}.v40-upload-control label{font-size:11px;color:#315e7b}.v40-upload-control input{min-width:0;flex:1 1 200px}
.v40-module-ext,.v40-dashboard{border:1px solid var(--v40-line);background:white;border-radius:12px;padding:17px;margin-top:17px}.v40-ext-title{margin-bottom:13px}.v40-ext-title h3,.v40-card-head h3{font-size:16px;font-weight:400;color:#0d3655;margin:0 0 5px}.v40-ext-title p,.v40-card-head p{font-size:12px;color:#608094;margin:0;line-height:1.55}
.v40-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v40-product-mini{display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto auto;column-gap:12px;row-gap:3px;text-align:left;background:#fbfdfe;border:1px solid #d2e1eb;border-radius:10px;padding:11px;color:#204660;min-width:0;cursor:pointer}.v40-product-mini:hover{border-color:#085291;background:#f4faff}.v40-product-mini img,.v40-product-mini>span{grid-row:1/span 3;width:48px;height:55px;object-fit:contain;border-radius:8px;background:#edf5fa;display:grid;place-items:center;color:#0b66a7}.v40-product-mini b{font-size:12px;font-weight:400;overflow-wrap:anywhere}.v40-product-mini small{font-size:10px;color:#668195}.v40-product-mini em{font-style:normal;font-size:11px;color:#0870a8;font-weight:400}
.v40-product-hero{display:flex;gap:18px;align-items:center;padding:17px;border:1px solid #d3e4ed;background:#f5fafd;border-radius:12px;flex-wrap:wrap}.v40-product-hero img,.v40-placeholder{width:110px;height:110px;object-fit:contain;border:1px solid #d2e2eb;background:white;border-radius:12px}.v40-placeholder{display:grid;place-items:center}.v40-placeholder svg{width:40px;height:40px}.v40-product-hero>div:nth-child(2){flex:1;min-width:185px}.v40-product-hero h2{font-size:19px;line-height:1.2;margin:4px 0 7px;font-weight:400;color:#072e4b}.v40-product-hero small,.v40-product-hero p{font-size:11px;color:#618098}.v40-product-hero b{font-size:17px;color:#093f70;margin-left:11px;font-weight:400}.v40-product-hero>div:last-child{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.v40-product-tabs{display:flex;gap:6px;overflow-x:auto;padding:15px 0 9px;scrollbar-width:thin}.v40-product-tabs button{flex:none;border:1px solid #cddce7;background:white;color:#315d7e;padding:10px 12px;border-radius:9px;font-size:11px;cursor:pointer}.v40-product-tabs button.active{color:#07548e;border-color:#7bb8db;background:#eaf5fc;font-weight:400}.v40-product-body{margin-top:6px;min-width:0}.v40-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v40-images img{width:100%;height:200px;background:#f4f8fb;border:1px solid #d1e3ed;border-radius:10px;object-fit:contain}
.v40-report-layout{display:grid;grid-template-columns:245px minmax(0,1fr);align-items:start;gap:14px}.v40-report-nav{padding:11px;background:white;border:1px solid var(--v40-line);border-radius:12px;min-width:0;max-height:72vh;overflow:auto}.v40-report-group{padding:3px 3px 11px;margin-bottom:9px;border-bottom:1px solid #e4edf3}.v40-report-group h4{margin:7px 5px;font-size:11px;color:#085291;letter-spacing:.04em;font-weight:400}.v40-report-group>button{display:block;width:100%;text-align:left;border:0;background:transparent;cursor:pointer;font-size:11px;color:#385d77;padding:9px 11px;border-radius:7px;line-height:1.35}.v40-report-group>button:hover{background:#f2f8fc}.v40-report-group>button.active{background:#e3f0fa;color:#085291;font-weight:400}.v40-report-main{min-width:0}.v40-report-intro{background:white;padding:16px;border:1px solid #cee0ea;border-radius:12px;margin-bottom:11px}.v40-report-intro h3{font-size:16px;font-weight:400;color:#113f60;margin:0 0 6px}.v40-report-intro p{font-size:12px;color:#658096;margin:0}
.v40-journey{border:1px solid var(--v40-line);background:white;padding:15px;border-radius:12px;margin:12px 0}.v40-journey>strong{font-size:13px;font-weight:400;color:#123f63}.v40-journey>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.v40-journey span{padding:10px 12px;border:1px solid #cbdfea;border-left:3px solid #085291;border-radius:8px;background:#f2f8fc;font-size:11px;color:#0f537c;line-height:1.3}
.v40-crm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:13px 0}.v40-module-card{min-width:0;border:1px solid var(--v40-line);border-radius:12px;background:white;padding:15px}.v40-card-head{display:flex;justify-content:space-between;gap:14px;align-items:center;padding-bottom:10px;border-bottom:1px solid #e3edf3;margin-bottom:7px}.v40-card-head .btn{white-space:nowrap}.v40-dashboard .v40-card-head{border:0}.v40-module-card h4{font-size:13px;color:#133a58;margin:0 0 12px;font-weight:400}
@media(max-width:1200px){.v40-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.v40-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v40-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v40-report-layout{grid-template-columns:200px minmax(0,1fr)}}
@media(max-width:820px){.v40-report-layout{grid-template-columns:minmax(0,1fr)}.v40-report-nav{max-height:none;display:flex;flex-direction:row;overflow-x:auto;gap:8px;align-items:start}.v40-report-group{min-width:170px;flex:none;padding:0 0 7px;border-right:1px solid #e5edf3;border-bottom:0}.v40-crm-grid{grid-template-columns:minmax(0,1fr)}.v40-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v40-controls{gap:8px}.v40-control-label{flex-basis:100%;margin:0}.v40-search{min-width:0;flex-basis:100%;max-width:none}.v40-controls select{flex:1;min-width:120px;max-width:none}}
@media(max-width:520px){.v40-kpis{gap:8px}.v40-kpis>div{padding:12px 10px}.v40-kpis strong{font-size:19px}.v40-kpis .v40-summary-small{font-size:12px}.v40-quick-grid,.v40-images{grid-template-columns:minmax(0,1fr)}.v40-product-hero{padding:12px;gap:10px}.v40-product-hero>div:last-child{width:100%;justify-content:flex-start}.v40-product-hero img,.v40-placeholder{width:78px;height:88px}.v40-product-hero h2{font-size:15px}.v40-product-body{overflow-x:auto}.v40-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v40-detail-cell{padding:10px}.v40-detail-cell strong{font-size:12px}.v40-controls{padding:10px}.v40-controls select{flex:1 1 100%;width:100%}.v40-listitem{align-items:flex-start;flex-wrap:wrap}.v40-listitem .btn{margin-left:auto}.v40-module-ext,.v40-dashboard{padding:12px}.v40-journey span{font-size:10px;padding:7px 9px}.v40-card-head{align-items:flex-start;flex-direction:column}.v40-report-main .v39-data{min-width:690px}.v40-report-main .table-scroll,.v40-module-card .table-scroll{overflow-x:auto;max-width:100%}.v40-product-tabs{gap:4px}.v40-product-tabs button{padding:9px 8px}}
@media(max-width:360px){.v40-kpis{grid-template-columns:1fr 1fr}.v40-kpis strong{font-size:17px}.v40-detail-grid{grid-template-columns:1fr}.v40-search input{font-size:11px}}
@media print{html.app-active .sidebar,html.app-active .topbar,.v40-controls,.v40-report-nav,.page-actions,.v40-note,.v40-card-head button,.v40-actions button{display:none!important}html.app-active #appShell,html.app-active .main-shell{display:block!important;width:100%!important;max-width:100%!important;margin:0!important}html.app-active #content{padding:10px!important;width:100%!important;background:#fff!important}html.app-active .table-scroll{overflow:visible!important}html.app-active .v40-report-layout{display:block!important}.v40-report-main{width:100%!important}.v39-data{min-width:0!important;font-size:9pt!important}html.app-active .page-head{page-break-inside:avoid}}
