.vcm{max-width:1220px;margin:0 auto;padding:24px 18px 65px;font-family:inherit;color:#142f3b}.vcm *, .vcm *:before,.vcm *:after{box-sizing:border-box}.vcm-hero{padding:36px 30px;border-radius:10px;background:#102937;color:#fff;margin:0 0 20px}.vcm-hero h1{color:#fff;font-size:clamp(30px,4vw,48px);margin:12px 0 10px;line-height:1.12}.vcm-hero p{color:#d5e3e6;margin:0;max-width:640px}.vcm-kicker{font-size:12px;letter-spacing:1.3px;font-weight:750;color:#94d9cc}.vcm-panel{background:#fff;border:1px solid #dbe6e7;padding:23px;border-radius:8px;margin-bottom:20px;box-shadow:0 3px 12px #112e3a08}.vcm h2{font-size:21px;margin:0 0 12px;line-height:1.4;color:#102e3b}.vcm p,.vcm li{line-height:1.55}.vcm-muted{font-size:13px;color:#647b82}.vcm-selector form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.vcm label{font-weight:650;font-size:13px;display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.vcm-selector label{margin-bottom:0}.vcm input,.vcm select,.vcm textarea{width:100%;border:1px solid #bccfd2;border-radius:5px;padding:10px 12px;font:inherit;font-size:15px;color:#102c38;background:#fff;min-height:44px}.vcm select{max-width:100%}.vcm button{cursor:pointer;font:inherit;font-weight:700}.vcm-primary{background:#16887c;color:#fff;border:1px solid #16887c;border-radius:5px;padding:12px 18px;width:100%}.vcm-secondary{background:#e6f4f1;color:#0b615c;border:1px solid #a8d2cb;border-radius:5px;padding:10px 14px;margin:5px 0}.vcm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}.vcm-stats>div{background:#f2f8f7;border:1px solid #d5e7e3;border-radius:7px;padding:18px 14px;display:flex;flex-direction:column;gap:3px}.vcm-stats strong{font-size:28px;color:#0d5856}.vcm-stats span{font-size:12px;color:#58777e}.vcm-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px}.vcm-inline{display:grid;grid-template-columns:1fr 1fr;gap:12px}.vcm-help{font-size:12px;color:#6b8089}.vcm-note{background:#e0f5ef;padding:15px;border-radius:6px;border-left:4px solid #118878;margin-bottom:20px}.vcm-table-wrap{overflow-x:auto}.vcm-table{width:100%;border-collapse:collapse;font-size:13px;min-width:740px}.vcm-table th,.vcm-table td{border-bottom:1px solid #e5eeee;padding:12px 10px;text-align:left;vertical-align:top}.vcm-table th{font-weight:750;color:#284852;background:#f3f8f7}.vcm-table details{margin:7px 0;max-width:300px;overflow-wrap:anywhere}.vcm-tag{font-size:11px;padding:4px 7px;border-radius:3px;background:#e4eeef;text-transform:capitalize}.vcm-attention{color:#884e05;background:#fff0d1}.vcm-urgent{color:#a12929;background:#ffe9e9}.vcm-next{display:inline-block;margin:15px 15px 0 0}.vcm-login{max-width:580px}.vcm-login label{display:block}.vcm-login input{margin-top:7px}@media(max-width:780px){.vcm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.vcm-layout{grid-template-columns:1fr}.vcm-hero{padding:30px 20px}}@media(max-width:440px){.vcm{padding-left:12px;padding-right:12px}.vcm-inline{grid-template-columns:1fr}.vcm-panel{padding:16px}.vcm-stats>div{padding:12px}}
/* v1.2 — one-check multi-parameter entry and printable report */
.vcm-kicker-dark{color:#087769}
.vcm-section-heading{display:flex;justify-content:space-between;align-items:start;gap:18px;margin-bottom:12px}
.vcm-section-heading h2{margin:6px 0}
.vcm-section-heading p{margin:0}
.vcm-step{white-space:nowrap;background:#e4f6f1;color:#125d59;border:1px solid #c7e5df;border-radius:20px;font-weight:700;font-size:12px;padding:8px 11px}
.vcm-batch-top{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:12px}
.vcm-batch-bottom{display:grid;grid-template-columns:1fr 1.5fr;gap:12px;margin-top:16px}
.vcm-batch-table{min-width:840px}
.vcm-batch-table th,.vcm-batch-table td{padding:8px 5px}
.vcm-batch-table td:nth-child(2){min-width:100px}
.vcm-batch-table td:nth-child(3){min-width:82px}
.vcm-batch-table input,.vcm-batch-table select{font-size:13px;padding:7px 8px;min-height:40px}
.vcm-batch-table input[type=number]{width:100%}
.vcm-batch-table th small{font-weight:400;color:#617d84}
.vcm .vcm-add-row{margin:15px 0 3px}
.vcm .vcm-save-check{margin-top:8px;font-size:16px}
.vcm .vcm-remove-row{border:0;background:transparent;font-size:22px;color:#657a80;padding:4px 8px}
.vcm-extra>summary{font-size:17px;line-height:1.4;font-weight:750;color:#123a43;cursor:pointer}
.vcm-extra>h2{margin-top:18px}
.vcm-open-report{display:inline-flex;white-space:nowrap;color:#057f71;font-weight:750}
.vcm-report-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.vcm-report-actions .vcm-secondary{text-decoration:none}
.vcm-report-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #d8e8e4;padding-bottom:20px;margin-bottom:20px}
.vcm-report-head h2{margin-top:8px;font-size:26px}
.vcm-report-head>strong{font-size:11px;letter-spacing:1.3px;color:#377875}
.vcm-report-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin-bottom:25px}
.vcm-report-meta div{border-bottom:1px solid #e5eeee;padding-bottom:9px;min-width:0}
.vcm-report-meta dt{font-size:12px;color:#56757a}
.vcm-report-meta dd{margin:5px 0;font-weight:650;overflow-wrap:anywhere}
.vcm-report-notes{border-top:1px solid #dfeae9;margin-top:25px;padding-top:15px}
.vcm-report-notes h3{font-size:17px;color:#16343f}
@media(max-width:950px){.vcm-batch-top{grid-template-columns:1fr 1fr}.vcm-batch-bottom{grid-template-columns:1fr}}
@media(max-width:780px){
 .vcm-batch-top{grid-template-columns:1fr}
 .vcm-batch-table{width:100%;min-width:0}
 .vcm-batch-table thead{display:none}
 .vcm-batch-table,.vcm-batch-table tbody,.vcm-batch-table tr,.vcm-batch-table td{display:block}
 .vcm-batch-table tr{border:1px solid #d4e2e2;background:#fbfdfd;border-radius:8px;margin-bottom:12px;padding:12px}
 .vcm-batch-table td{border:0;padding:5px 0;min-width:0 !important}
 .vcm-batch-table td:before{display:block;font-weight:700;color:#3e616a;font-size:12px;margin-bottom:5px}
 .vcm-batch-table td:nth-child(1):before{content:'Parameter'}
 .vcm-batch-table td:nth-child(2):before{content:'Measured value'}
 .vcm-batch-table td:nth-child(3):before{content:'Unit'}
 .vcm-batch-table td:nth-child(4):before{content:'Other sampling point (optional)'}
 .vcm-batch-table td:nth-child(5):before{content:'Method / meter (optional)'}
 .vcm-batch-table td:last-child{padding:0}
 .vcm-report-head{display:block}
 .vcm-report-meta{grid-template-columns:1fr}
}
@media print {
 body *{visibility:hidden!important}
 .vcm-report,.vcm-report *{visibility:visible!important}
 .vcm-report{position:absolute;left:0;top:0;width:100%;border:0;box-shadow:none;padding:12mm}
 .vcm-report .vcm-table-wrap{overflow:visible}
 .vcm-report-table{min-width:0;font-size:10pt}
 .vcm-report-table tr{break-inside:avoid}
 @page{margin:12mm}
}

.vcm-batch-tools{display:flex;gap:8px;flex-wrap:wrap}
.vcm-toggle-advanced{display:none}
.vcm-enhanced .vcm-toggle-advanced{display:inline-block}
.vcm-enhanced:not(.vcm-show-advanced) .vcm-batch-table th:nth-child(4),
.vcm-enhanced:not(.vcm-show-advanced) .vcm-batch-table th:nth-child(5),
.vcm-enhanced:not(.vcm-show-advanced) .vcm-batch-table td:nth-child(4),
.vcm-enhanced:not(.vcm-show-advanced) .vcm-batch-table td:nth-child(5){display:none}
@media(max-width:780px){
 .vcm-batch-table tr{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);column-gap:10px}
 .vcm-batch-table td:nth-child(1){grid-column:1/-1}
 .vcm-batch-table td:nth-child(2){grid-column:1}
 .vcm-batch-table td:nth-child(3){grid-column:2}
 .vcm-batch-table td:nth-child(4),.vcm-batch-table td:nth-child(5){grid-column:1/-1}
 .vcm-batch-table td:last-child{grid-column:1/-1}
}
/* v1.3 — read-only vessel trends and alert overview */
.vcm-dashboard{padding:25px 26px 22px}
.vcm-quick-entry{display:inline-flex;align-items:center;justify-content:center;max-width:190px;width:auto;text-decoration:none;white-space:nowrap;flex-shrink:0}
.vcm-quick-entry:hover{background:#126e65;color:#fff}
.vcm-overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 22px}
.vcm-overview-stats>div{padding:15px;border-radius:7px;border:1px solid #d5e6e3;background:#f5faf9;display:flex;flex-direction:column;gap:3px}
.vcm-overview-stats strong{font-size:27px;color:#126b64;line-height:1.1}
.vcm-overview-stats span{color:#526f77;font-size:12px;line-height:1.4}
.vcm-dashboard-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:22px}
.vcm-dashboard h3{font-size:16px;line-height:1.4;color:#173947;margin:0 0 13px}
.vcm-trends,.vcm-alerts{border:1px solid #e0eaea;border-radius:8px;padding:17px;min-width:0}
.vcm-trend-filters{display:grid;grid-template-columns:1.1fr 1.1fr .7fr;gap:10px;align-items:end;margin:0 0 15px}
.vcm-trend-filters label{font-size:12px;margin:0}
.vcm-trend-filters select{font-size:13px;min-height:39px;padding:7px 9px}
.vcm-trend-filters button{grid-column:1/-1;justify-self:start;margin:0;padding:7px 12px}
.vcm-trend-chart{width:100%;background:linear-gradient(#fff,#f9fdfc);border:1px solid #e1ebea;border-radius:7px;padding:5px}
.vcm-trend-chart svg{display:block;width:100%;height:auto}
.vcm-trend-recent{margin-top:12px;font-size:13px}
.vcm-trend-reading-list{display:flex;flex-direction:column;margin-top:6px}
.vcm-trend-reading-list a{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none;color:#21545a;padding:8px 0;border-bottom:1px solid #e6eeee}
.vcm-trend-reading-list a:hover{color:#08796f}
.vcm-alert-row{display:flex;flex-direction:column;gap:5px;text-decoration:none;color:#1f404b;padding:10px;border:1px solid #e2eceb;border-radius:6px;margin:8px 0}
.vcm-alert-row:hover{border-color:#8fcfc5;background:#f8fdfc}
.vcm-alert-row strong{font-size:13px;line-height:1.4}
.vcm-alert-row small{font-size:12px;color:#6a7f83}
.vcm-alert-row .vcm-tag{align-self:start}
.vcm-alert-info{border-left:3px solid #e5b862;background:#fff9ed;border-radius:3px;padding:10px 12px;font-size:13px}
.vcm-empty-state{font-size:13px;padding:15px;color:#587079;background:#f4f8f8;border-radius:5px}
.vcm-dashboard .vcm-help{line-height:1.5}
@media(max-width:1020px){.vcm-dashboard-columns{grid-template-columns:1fr}}
@media(max-width:680px){.vcm-dashboard{padding:18px 14px}.vcm-dashboard .vcm-section-heading{display:block}.vcm-quick-entry{margin-top:12px}.vcm-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.vcm-trend-filters{grid-template-columns:1fr 1fr}.vcm-trend-filters label:first-child{grid-column:1/-1}.vcm-trends,.vcm-alerts{padding:13px}}

/* v1.4 — searchable, mobile-friendly report archive */
.vcm-report-filters{display:grid;grid-template-columns:minmax(210px,1.4fr) minmax(190px,1.1fr) minmax(140px,.8fr) minmax(140px,.8fr);gap:12px;align-items:end;padding:17px;background:#f4f9f8;border:1px solid #dcece8;border-radius:8px;margin:18px 0 22px}
.vcm-report-filters label{margin:0;min-width:0}
.vcm-report-filter-actions{grid-column:1/-1;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.vcm-report-filter-actions .vcm-primary{width:auto;min-width:150px}
.vcm-filter-reset{font-weight:700;color:#126a63;text-decoration:underline;text-underline-offset:3px}
.vcm-report-archive .vcm-step{align-self:flex-start}
.vcm-archive-pagination{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}
.vcm-archive-pagination .vcm-next{margin:0}
.vcm-archive-table tbody tr:hover{background:#f8fcfb}
@media(max-width:1100px){.vcm-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .vcm-report-filters{grid-template-columns:1fr;padding:14px;gap:12px}
 .vcm-report-filter-actions{grid-column:auto}
 .vcm-report-archive .vcm-section-heading{display:block}
 .vcm-report-archive .vcm-step{display:inline-block;margin-top:9px}
 .vcm-archive-table{min-width:0}
 .vcm-archive-table thead{display:none}
 .vcm-archive-table,.vcm-archive-table tbody,.vcm-archive-table tr,.vcm-archive-table td{display:block;width:100%}
 .vcm-archive-table tr{border:1px solid #d9e8e4;border-radius:8px;margin-bottom:11px;padding:12px;background:white}
 .vcm-archive-table td{border:0;padding:5px 0}
 .vcm-archive-table td[data-label]:before{content:attr(data-label) ': ';font-weight:750;color:#537078;font-size:12px;margin-right:5px}
 .vcm-archive-table td:last-child{padding-top:12px}
 .vcm-archive-table .vcm-open-report{min-height:42px;align-items:center;border-radius:6px;background:#e7f5f1;padding:0 13px}
}

/* v1.6 chemistry section, print-friendly and responsive */
.vcm-chemistry{margin:24px 0 18px;padding:22px;border:1px solid #cbdcde;background:#f6faf9;border-radius:12px;break-inside:avoid}
.vcm-chemistry .vcm-section-heading{align-items:center}
.vcm-chemistry h3{font-size:21px;margin:4px 0;color:#123441}
.vcm-academy-link{font-size:13px;text-decoration:underline;color:#075b61}
.vcm-chemistry-item{border-top:1px solid #d5e2e3;margin-top:15px;padding-top:16px}
.vcm-chemistry-location{display:block;font-size:15px;margin-bottom:12px}
.vcm-chemistry-stats{display:grid;grid-template-columns:1fr 1fr 2fr;gap:12px}
.vcm-chemistry-stats>div{background:white;border:1px solid #dde7e8;border-radius:8px;padding:13px}
.vcm-chemistry-stats small{display:block;color:#526b70;font-size:12px}
.vcm-chemistry-stats strong{display:block;color:#113c48;font-size:19px;margin-top:4px}
.vcm-chemistry-inputs,.vcm-chemistry-empty{margin:14px 0;font-size:13px;color:#35545d}
@media(max-width:680px){.vcm-chemistry{padding:16px}.vcm-chemistry-stats{grid-template-columns:1fr}.vcm-chemistry .vcm-section-heading{display:block}}
@media print{.vcm-chemistry{background:#fff;border:1px solid #aaa;break-inside:avoid}.vcm-academy-link{display:none}}
/* v1.7 — independent Pool / Spa operational log */
.vcm-log-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:4px 0 20px}
.vcm-log-tabs a{display:inline-flex;padding:12px 18px;background:#f2f6f6;border:1px solid #cfdcdd;border-radius:7px;color:#16444e;font-weight:700;text-decoration:none}
.vcm-log-tabs a.is-active{background:#125c60;border-color:#125c60;color:#fff}
.vcm-pool h3{font-size:18px;margin:20px 0 12px;color:#173e46}
.vcm-pool-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:13px}
.vcm-pool-measurements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.vcm-pool-measurements label{display:flex;align-items:center;justify-content:space-between;flex-direction:row;border-bottom:1px solid #e4eded;min-width:0;gap:12px;padding:8px 0;margin-bottom:0}
.vcm-pool-measurements label>span{flex:1;min-width:0}
.vcm-pool-field{width:185px;flex:0 0 185px;display:flex;gap:6px;align-items:center}
.vcm-pool-field input{width:90px;min-width:0}
.vcm-pool-field small{color:#58757b;font-size:11px;line-height:1.3;flex:1}
.vcm-pool-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}
.vcm-pool-bottom{display:grid;grid-template-columns:1fr 2fr;gap:14px}
.vcm-pool-export{margin-top:18px}
@media(max-width:900px){.vcm-pool-top{grid-template-columns:repeat(2,minmax(0,1fr))}.vcm-pool-measurements,.vcm-pool-checks{grid-template-columns:1fr}}
@media(max-width:610px){.vcm-pool-top,.vcm-pool-bottom{grid-template-columns:1fr}.vcm-pool-measurements label{gap:8px}.vcm-pool-field{width:135px;flex-basis:135px}.vcm-pool-field input{width:65px}.vcm-log-tabs a{flex:1;justify-content:center;padding:11px}}
@media print{.vcm-log-tabs,.vcm-pool-export{display:none}}

/* v1.8 — vessel-specific chemistry history; display only, no alerts */
.vcm-chem-filter{display:flex;align-items:flex-end;gap:13px;flex-wrap:wrap;margin:18px 0}
.vcm-chem-filter label{display:flex;flex-direction:column;gap:6px;flex:1 1 180px;min-width:160px;font-size:13px;font-weight:600}
.vcm-chem-filter select{width:100%;min-height:40px;background:#fff;border:1px solid #bbcccf;border-radius:5px;padding:8px;color:#193847}
.vcm-chem-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}
.vcm-chem-summary>div{border:1px solid #dce9e9;border-radius:6px;background:#f7fbfb;padding:13px 12px;min-width:0}
.vcm-chem-summary small{display:block;font-size:11px;line-height:1.4;color:#5a747b}
.vcm-chem-summary strong{display:block;font-size:24px;line-height:1.4;color:#103b48;font-variant-numeric:tabular-nums}
.vcm-chem-table th,.vcm-chem-table td{white-space:nowrap}
@media(max-width:850px){.vcm-chem-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.vcm-chem-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.vcm-chem-filter{display:none}}

/* v1.9 · Water Chemistry Assessment */
.vcm-chem-assessment{margin:24px 0;border:1px solid #c3d5d7;background:#f7faf9;padding:22px}
.vcm-chem-assessment-item{padding:15px 0;border-top:1px solid #d6e2e4}
.vcm-chem-assessment-item h4{margin:0 0 9px;color:#173b4b;font-size:16px}
.vcm-chem-assessment-item ul{margin:6px 0 0 21px;padding:0}
.vcm-chem-assessment-item li{margin-bottom:7px;line-height:1.5}
@media print{.vcm-chem-assessment{break-inside:avoid;border-color:#aabdc2;background:#fff}}
