/* R6. Only the editable Team planner uses this layout. Reports keep their original geometry. */
#planner-view .planner-fit-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 8px;color:var(--pine-800);font-size:14px;font-weight:700}
#planner-view .planner-size-options{display:inline-flex;gap:2px;background:var(--pine-50);border:1px solid var(--line);padding:3px;border-radius:10px}
#planner-view .planner-size-options button{border:0;border-radius:7px;background:transparent;color:var(--pine-800);font:inherit;min-height:36px;line-height:1.3;padding:5px 15px;cursor:pointer}
#planner-view .planner-size-options button[aria-pressed=true]{background:var(--pine-800);color:#fff}
#planner-view .planner-size-options button:focus-visible,#planner-view .fit-day-head:focus-visible{outline:3px solid var(--pine-700);outline-offset:2px}
#planner-view[data-table-size=fit] .schedule-scroll-table{max-height:min(70vh,760px);max-width:100%;overscroll-behavior:contain;scrollbar-gutter:auto}
#planner-view[data-table-size=fit] .schedule.daily-grid{width:100%;min-width:0;table-layout:fixed;font-size:14px}
#planner-view[data-table-size=fit] .schedule .col-age{width:6%}#planner-view[data-table-size=fit] .schedule .col-product{width:21%}#planner-view[data-table-size=fit] .schedule .col-rate{width:12%}#planner-view[data-table-size=fit] .schedule .col-amount{width:12%}#planner-view[data-table-size=fit] .schedule .col-purpose{width:23%}#planner-view[data-table-size=fit] .schedule .col-water{width:6.5%}#planner-view[data-table-size=fit] .schedule .col-hours{width:5.5%}#planner-view[data-table-size=fit] .schedule .col-weight{width:8%}#planner-view[data-table-size=fit] .schedule .col-tools{width:6%}
#planner-view[data-table-size=fit] .schedule th,#planner-view[data-table-size=fit] .schedule td{padding:5px 4px;min-width:0;overflow-wrap:anywhere;line-height:1.35}
#planner-view[data-table-size=fit] .schedule tbody tr.day-start>td,#planner-view[data-table-size=fit] .schedule tbody tr.day-end>td{padding-block:5px}
#planner-view[data-table-size=fit] .schedule th{font-size:12px;padding-block:8px}
#planner-view[data-table-size=fit] .daily-product-control{display:flex;min-width:0;gap:3px;align-items:center}
#planner-view[data-table-size=fit] .schedule .day-product{flex:1;width:100%;min-width:0;max-width:100%;min-height:36px;height:auto;padding:5px 20px 5px 5px;font-size:14px;text-overflow:ellipsis}
#planner-view[data-table-size=fit] .schedule .cell-age-num{font-size:18px;line-height:1.2}#planner-view[data-table-size=fit] .schedule .cell-age-phase,#planner-view[data-table-size=fit] .schedule .age-date{font-size:11px;line-height:1.25}
#planner-view[data-table-size=fit] .schedule .rate-box,#planner-view[data-table-size=fit] .schedule .amount-tools{flex-wrap:wrap;gap:3px;min-width:0}
#planner-view[data-table-size=fit] .schedule .day-rate{min-width:0;width:5ch;min-height:32px;max-width:100%;padding:3px;font-size:14px}
#planner-view[data-table-size=fit] .schedule .amount-cell{min-width:0;gap:1px}
#planner-view[data-table-size=fit] .schedule .cell-tools{white-space:normal}#planner-view[data-table-size=fit] .schedule .icon-btn{min-width:28px;width:auto;min-height:28px;height:auto;margin:1px;padding:3px}
#planner-view[data-table-size=fit] .schedule .purpose-tools{display:none}
#planner-view[data-table-size=fit] .schedule .purpose-field:focus-within .purpose-tools{display:flex;flex-wrap:wrap;gap:2px;padding:2px}
#planner-view[data-table-size=fit] .schedule .purpose-tools button{min-height:28px;min-width:28px;padding:3px}
#planner-view[data-table-size=fit] .purpose-editor{min-height:34px!important;height:auto;max-height:none;padding:5px 8px;font-size:14px;line-height:1.5}
#planner-view[data-table-size=fit] .purpose-editor:empty:before{font-size:13px}#planner-view[data-table-size=fit] .schedule .merge-tag{margin:1px 0 3px;font-size:11px}
#planner-view[data-table-size=fit] .schedule-scroll-table:before{display:none}
#planner-view .fit-day-head{display:grid;grid-template-columns:38px minmax(0,1fr) max-content 12px;align-items:center;gap:10px;list-style:none;padding:8px 10px;cursor:pointer;min-height:48px}
#planner-view .fit-day-head::-webkit-details-marker{display:none}#planner-view .fit-age{display:grid;place-items:center;border-radius:7px;background:var(--pine-50);color:var(--pine-800);padding:3px;line-height:1.1}#planner-view .fit-age strong{font-size:17px;font-variant-numeric:tabular-nums}#planner-view .fit-age small,#planner-view .fit-day-head small{font-size:11px}
#planner-view .fit-day-copy{min-width:0;display:grid;line-height:1.4}#planner-view .fit-day-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#planner-view .fit-day-head small{color:var(--ink-700)}#planner-view .fit-day-water{display:grid;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;line-height:1.3}#planner-view .fit-chevron{width:7px;height:7px;transform:rotate(45deg);border:solid var(--pine-700);border-width:0 2px 2px 0}#planner-view details[open]>.fit-day-head .fit-chevron{transform:rotate(225deg)}
#planner-view .fit-day-body{padding:8px 12px 12px;border-top:1px solid var(--line-soft)}#planner-view .fit-day-meta,#planner-view .fit-purpose-label{font-size:12px;font-weight:600;color:var(--pine-800)}#planner-view .fit-day-body .day-card-item{min-width:0;margin:6px 0;padding:8px}#planner-view .fit-day-body .day-product{min-width:0;width:100%;font-size:16px;min-height:44px}#planner-view .fit-day-body .purpose-editor{font-size:16px;min-height:46px!important}#planner-view .fit-day-body .purpose-tools{flex-wrap:wrap}
@media(max-width:960px){
 #planner-view[data-table-size=fit] .schedule-scroll-table{display:none}#planner-view[data-table-size=fit] .day-cards{display:flex;gap:5px;min-width:0}#planner-view .day-cards .day-card{display:block;margin:0;padding:0;overflow:visible;min-width:0}#planner-view .day-cards .day-card[open]{border-color:var(--pine-700)}
 #planner-view[data-table-size=wide] .schedule-scroll-table{display:block;max-width:100%;overflow:auto}#planner-view[data-table-size=wide] .day-cards{display:none}#planner-view .planner-size-options button,#planner-view .fit-day-body .purpose-tools button,#planner-view .fit-day-body .icon-btn{min-height:44px}#planner-view .fit-day-body .purpose-tools button{min-width:38px}
}
@media(min-width:961px){#planner-view .day-cards{display:none}#planner-view .schedule-scroll-table{display:block}}
@media print{#planner-view .planner-fit-bar{display:none}}

.catalog-product-meta{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;max-width:100%;min-width:0}
.catalog-product-meta>.catalog-badge{max-width:100%;margin:0}
.catalog-product-meta>.catalog-product-code{font-size:11px;font-weight:500;line-height:1.35;font-family:var(--font-num,sans-serif);color:var(--ink-700,#40554a);font-variant-numeric:tabular-nums;letter-spacing:.015em;overflow-wrap:anywhere;max-width:100%;text-align:left}
#catalog-grid.is-compact .catalog-product-meta>.catalog-product-code{display:inline;font-size:10.5px}

/* Team main menu: equal geometry for all six destinations. */
#home-view .home-menu{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr}
#home-view .home-link{grid-column:auto;grid-row:auto;min-width:0}
.home-link-productlist{--menu-accent:var(--pine-700)}
@media(min-width:1350px){#home-view .home-menu{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){#home-view .home-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#home-view .home-menu .home-link{min-height:145px;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;padding:16px 12px}#home-view .home-menu .home-icon{width:clamp(58px,17vw,80px);height:clamp(58px,17vw,80px);margin:0 0 8px}#home-view .home-menu .home-link-label{font-size:clamp(15px,4vw,18px);line-height:1.45}}
/* Keep short Thai category names intact. The separate code can wrap below the chip. */
#catalog-grid.is-compact .catalog-product-meta{align-items:center;justify-content:flex-start;gap:3px 5px}
#catalog-grid.is-compact .catalog-product-meta>.catalog-badge{flex:0 0 auto;width:max-content;max-width:100%;word-break:normal;overflow-wrap:normal;white-space:normal;line-height:1.4}
#catalog-grid.is-compact [data-theme="vaccine"] .catalog-product-meta>.catalog-badge{white-space:nowrap}
#catalog-grid.is-compact .catalog-product-meta>.catalog-product-code{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
#catalog-grid .category-dot{flex:none}

#productlist-view{width:min(100%,1230px);margin-inline:auto;min-width:0;box-sizing:border-box;color:var(--ink-900,#193e2d);padding-bottom:55px}
#productlist-view [hidden],.pl-dialog [hidden]{display:none!important}
.pl-title,.pl-section,.pl-actions,.pl-pager{display:flex;align-items:center;justify-content:space-between;gap:10px}.pl-title{margin:12px 0 17px}.pl-title h2,.pl-section h3,.pl-document h3,.pl-result h4{margin:0}.pl-actions{justify-content:flex-end;flex-wrap:wrap}.pl-section{margin:20px 0 12px}.pl-section>span,.pl-doc-copy small,.pl-list small,.pl-result>small,.pl-hints{font-size:13px;color:var(--ink-700,#52695d)}.pl-section h3 small{font:600 12px var(--font-thai,sans-serif);color:var(--pine-700);margin-inline-start:4px}
.pl-tabs{display:flex;border-bottom:1px solid var(--ui-border);margin-bottom:20px;gap:6px}.pl-tabs button{border:0;border-bottom:3px solid transparent;min-height:44px;background:transparent;padding:7px 16px;color:var(--ink-700,#52695d);font:700 16px var(--font-thai,sans-serif);cursor:pointer}.pl-tabs [aria-selected=true]{color:var(--pine-700);border-color:currentColor}.pl-tabs button:focus-visible,.pl-line:focus-visible,.pl-search button:focus-visible{outline:3px solid var(--ui-focus);outline-offset:-3px}
.pl-document,.pl-panel,.pl-list{background:var(--surface,#fff);border:1px solid var(--ui-border);border-radius:16px;box-shadow:var(--ui-shadow)}.pl-document{padding:16px 20px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.pl-pdf-seal{display:grid;place-items:center;width:42px;height:53px;border-radius:5px 12px 5px 5px;color:var(--pine-700);background:var(--pine-50,#e9f2ec);font-weight:800;letter-spacing:.025em}.pl-doc-copy b,.pl-doc-copy small{display:block;overflow-wrap:anywhere}.pl-doc-pending{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--ui-border);padding-top:10px}.pl-doc-pending>span{overflow-wrap:anywhere}.pl-doc-pending>p,[data-pl-edit-error]{color:#973d33}.pl-state{margin:8px 0;line-height:1.5}.pl-doc-copy .pl-state{font-size:14px;margin:4px 0}.pl-state .btn{margin-left:8px}
.pl-filters,.pl-two,.pl-deal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pl-filters{grid-template-columns:2fr 1fr;margin:0 0 12px}.pl-search{position:relative;display:block}.pl-search input{padding-right:38px}.pl-search button{position:absolute;inset-inline-end:4px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;background:transparent;color:var(--pine-700);font-size:22px;cursor:pointer}.pl-list{overflow:hidden}.pl-line,.pl-rate{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,minmax(75px,.2fr));align-items:center;gap:10px;padding:12px 16px;text-align:left;box-sizing:border-box;width:100%;border:0;border-top:1px solid var(--ui-border);background:var(--surface,#fff);color:inherit;font:inherit}.pl-line>:not(:first-child),.pl-rate>:last-child{text-align:right;font-variant-numeric:tabular-nums}.pl-line b,.pl-line small{display:block;overflow-wrap:anywhere}.pl-line strong{color:var(--pine-700)}.pl-head{border-top:0;background:var(--pine-50,#ecf2ed);color:var(--ink-700,#52695d);font-size:13px;font-weight:700}.pl-line[type=button]{cursor:pointer}.pl-line[type=button]:hover{background:var(--pine-50,#ecf2ed)}.pl-rate{grid-template-columns:minmax(0,1fr) auto}.pl-pager{justify-content:center;margin:14px 0}.pl-panel{padding:18px;min-width:0}.pl-deal-grid{align-items:start}.pl-hints{margin:10px 0 16px}.pl-result>strong,.pl-result>small{display:block}.pl-amount{font-weight:800;font-size:clamp(25px,4vw,36px);color:var(--pine-700)}.pl-metrics{margin:16px 0}.pl-metrics>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--ui-border);padding:9px 0}.pl-metrics dd{font-weight:700;margin:0;text-align:end;overflow-wrap:anywhere}.pl-owner{margin-bottom:12px;max-width:550px}.pl-check{display:flex;align-items:center;gap:6px;margin-top:8px}.pl-check input{width:auto}.pl-dialog{max-width:min(560px,94vw);max-height:86dvh;overflow:auto}.pl-dialog h2{overflow-wrap:anywhere}.pl-edit-fields{min-width:0;display:grid;gap:12px;padding:12px 0;border:0}.pl-discard{background:var(--pine-50,#e9f2ec);padding:14px;border-radius:10px}.pl-dialog .btn{min-height:40px}#productlist-view .field input,#productlist-view .field select,.pl-dialog .field input,.pl-dialog .field select{min-width:0;width:100%;box-sizing:border-box}
@media(max-width:700px){.pl-title{align-items:flex-end}.pl-title .eyebrow{margin-bottom:4px}.pl-title .pl-actions{gap:4px}.pl-title .btn{font-size:13px;padding-inline:8px}.pl-tabs{gap:0}.pl-tabs button{flex:1;min-width:0;font-size:14px;padding-inline:3px;line-height:1.35}.pl-document{grid-template-columns:36px minmax(0,1fr);gap:9px 12px;padding:12px}.pl-document>.pl-actions{grid-column:1/-1;justify-content:flex-start}.pl-pdf-seal{width:36px;height:45px}.pl-line{grid-template-columns:minmax(0,1fr) minmax(46px,.28fr) minmax(64px,.32fr);gap:6px;padding:10px 9px;font-size:14px}.pl-line>:nth-child(2){display:none}.pl-line small,.pl-head{font-size:11px}.pl-filters{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.pl-deal-grid{grid-template-columns:1fr}.pl-two,.pl-filters{gap:8px}.pl-panel{padding:12px}.pl-rate{padding:10px;font-size:14px}.pl-filters .field input,.pl-filters .field select,.pl-two input,.pl-dialog input,.pl-dialog select{font-size:16px}}

/* Product list: a comparable price register on wide screens, labelled rows on a phone. */
.pl-register{min-width:0;border:1px solid var(--ui-border);border-radius:14px;background:var(--surface,#fff);overflow:hidden}
.pl-checklist-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:14px;line-height:1.45;color:var(--ink-900,#193e2d)}
.pl-checklist-table th,.pl-checklist-table td{padding:11px 8px;vertical-align:top;text-align:start;overflow-wrap:anywhere;border:0}
.pl-checklist-table thead th{background:var(--pine-50,#ecf2ed);font-size:12px;font-weight:700;color:var(--ink-700,#52695d);vertical-align:middle}
.pl-checklist-table tbody tr{border-top:1px solid var(--ui-border);scroll-margin-block:6rem 2rem}.pl-checklist-table tbody tr:nth-child(even){background:#f6f9f6}.pl-checklist-table tbody tr:focus{outline:2px solid var(--ui-focus,#267055);outline-offset:-2px}
.pl-checklist-table .pl-col-product{min-width:9rem;font-weight:normal}.pl-checklist-table .pl-col-product strong{display:block;color:var(--pine-900,#183e2e)}.pl-checklist-table .pl-col-warehouse{max-width:12rem}
.pl-checklist-table .pl-col-price,.pl-checklist-table .pl-col-floor,.pl-checklist-table .pl-col-comm,.pl-checklist-table .pl-col-gp{text-align:end;font-variant-numeric:tabular-nums}.pl-checklist-table .pl-col-comm,.pl-checklist-table .pl-col-gp{color:var(--pine-700,#176249);font-weight:700}.pl-sku{display:inline-block;max-width:100%;font-size:12px;font-weight:650;letter-spacing:.025em;line-height:1.6;color:var(--ink-700,#52695d);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pl-cell-value{min-width:0}.pl-sub,.pl-dim{color:var(--ink-700,#52695d)}.pl-sub{display:block;font-size:12px;font-weight:400;margin-top:2px}.pl-offer{white-space:normal}.pl-mobile-label{display:none}.pl-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:3px}.pl-row-actions .btn{white-space:nowrap;min-height:32px;padding:4px 7px;font-size:12px}.pl-row-edit{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;color:var(--pine-700,#176249);text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:12px;min-height:27px;cursor:pointer}.pl-row-actions button:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}
@media(max-width:940px){
 .pl-register{overflow:visible;border:0;border-radius:0;background:transparent}.pl-checklist-table,.pl-checklist-table tbody{display:block;width:100%}.pl-checklist-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pl-checklist-table tbody{display:grid;gap:9px}
 .pl-checklist-table tbody tr,.pl-checklist-table tbody tr:nth-child(even){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;min-width:0;border:1px solid var(--ui-border);border-radius:12px;background:var(--surface,#fff);padding:11px 12px}
 .pl-checklist-table tbody td,.pl-checklist-table tbody th{padding:0;min-width:0;max-width:none;line-height:1.4;text-align:start}.pl-checklist-table tbody .pl-col-product{grid-column:1/-1;order:-2;border-bottom:1px solid var(--ui-border);padding:0 0 6px;min-width:0}.pl-checklist-table tbody .pl-col-product strong{font-size:16px}.pl-checklist-table tbody .pl-col-price,.pl-checklist-table tbody .pl-col-floor,.pl-checklist-table tbody .pl-col-comm,.pl-checklist-table tbody .pl-col-gp{text-align:start}
 .pl-mobile-label{display:block;color:var(--ink-700,#52695d);font-size:11.5px;font-weight:500;line-height:1.45;margin-bottom:1px}.pl-checklist-table .pl-sku{font-size:13px}.pl-checklist-table .pl-col-actions{grid-column:1/-1}.pl-row-actions{flex-direction:row;align-items:center;justify-content:flex-end;gap:12px}.pl-row-actions .btn,.pl-row-edit{font-size:14px;min-height:40px}.pl-row-edit{padding-inline:8px}
}

/* R10: quiet code-family tones, common baselines and explicit labels. */
#productlist-view{--pl-rule:#d6dadc;--pl-copy:#28332f}
#productlist-view [data-code-tone=agu]{--pl-tone:#edf0f2;--pl-accent:#687782;--pl-badge:#dce2e6}
#productlist-view [data-code-tone=prm]{--pl-tone:#fff;--pl-accent:#9b9386;--pl-badge:#f7f5f0}
#productlist-view [data-code-tone=vac]{--pl-tone:#f6f7f8;--pl-accent:#a5afb5;--pl-badge:#e9ecee}
#productlist-view [data-code-tone=med]{--pl-tone:#f5f1e9;--pl-accent:#a49273;--pl-badge:#ebe4d7}
#productlist-view [data-code-tone=other]{--pl-tone:#f1f5f2;--pl-accent:#8a9c90;--pl-badge:#e6ece7}
#productlist-view .pl-title{align-items:center;gap:12px}
#productlist-view .pl-tabs{border-bottom:1px solid var(--pl-rule)}
#productlist-view .pl-tabs button{border-radius:0;box-shadow:none}
#productlist-view .pl-document{border:1px solid var(--pl-rule);border-radius:8px;padding:14px 16px;box-shadow:none;background:#fff}
#productlist-view .pl-document h3{font-size:17px;margin:0 0 3px}
#productlist-view .pl-document .pl-pdf-seal{font-size:15px;width:40px;height:46px;border-radius:4px;background:#f1f3f1;color:#4f6056}
#productlist-view .pl-document .pl-state{margin:0;font-size:13px}
#productlist-view .pl-register{border-radius:8px;border-color:var(--pl-rule);box-shadow:none}
#productlist-view .pl-checklist-table{color:var(--pl-copy);font-size:13px}
#productlist-view .pl-checklist-table thead th{background:#edf0ed;color:#39483e;border-bottom:2px solid #a5b2a9;padding:12px 10px;font-weight:650;white-space:normal}
#productlist-view .pl-checklist-table tbody tr{background:var(--pl-tone,#fff);border-color:var(--pl-rule)}
#productlist-view .pl-checklist-table td,#productlist-view .pl-checklist-table tbody th{padding:13px 10px;vertical-align:middle}
#productlist-view .pl-checklist-table .pl-col-code{border-left:3px solid var(--pl-accent,#999);min-width:106px}
#productlist-view .pl-checklist-table .pl-col-product strong{font-size:14px;font-weight:650;color:#263b30;white-space:nowrap}
#productlist-view .pl-checklist-table .pl-col-price,#productlist-view .pl-checklist-table .pl-col-floor{white-space:nowrap;color:#26332b}
#productlist-view .pl-sub{color:#5d6962;font-size:12px;line-height:1.65}
#productlist-view .pl-offer{white-space:nowrap;color:#4a584e;font-weight:500}
#productlist-view .pl-sku{padding:2px 6px;border:1px solid #00000012;border-radius:4px;background:var(--pl-badge,#e9eeea);color:#344139;font-size:11px;white-space:nowrap;margin:2px 0}
#productlist-view .pl-row-actions{gap:5px}
#productlist-view .pl-row-actions .btn{border:1px solid #aebfb4;border-radius:6px;box-shadow:none;background:#fff;color:#1c573e;min-height:34px}
#productlist-view .pl-row-edit{min-height:30px;color:#526258;text-decoration:none}
#productlist-view .pl-row-edit:hover{text-decoration:underline}
#productlist-view .pl-code-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:12px 0 8px;font-size:11px;color:#58655d}
#productlist-view .pl-code-legend>span{display:inline-flex;align-items:center;gap:5px;font-weight:600}
#productlist-view .pl-code-legend i{width:11px;height:11px;border:1px solid var(--pl-accent);background:var(--pl-tone);border-radius:2px}
#productlist-view .pl-code-legend small{margin-left:auto;font-size:11px;font-weight:400}
@media(max-width:940px){
 #productlist-view .pl-checklist-table tbody{gap:12px}
 #productlist-view .pl-checklist-table tbody tr{border-radius:8px;border-left:3px solid var(--pl-accent);padding:12px 14px;gap:10px 16px;box-shadow:none}
 #productlist-view .pl-checklist-table tbody th,#productlist-view .pl-checklist-table tbody td{padding:0}
 #productlist-view .pl-checklist-table .pl-col-code{grid-column:1/-1;order:-3;border:0;min-width:0}
 #productlist-view .pl-col-code .pl-mobile-label{display:none}
 #productlist-view .pl-checklist-table .pl-col-product{order:-2;padding:0 0 9px;border-bottom:1px solid var(--pl-rule)}
 #productlist-view .pl-checklist-table .pl-col-product strong{font-size:15px}
 #productlist-view .pl-sku{font-size:12px}
 #productlist-view .pl-mobile-label{font-size:11px;margin-bottom:3px;color:#68726c}
 #productlist-view .pl-checklist-table .pl-col-actions{padding-top:9px;border-top:1px solid var(--pl-rule)}
 #productlist-view .pl-row-actions .btn,#productlist-view .pl-row-edit{min-height:40px}
 #productlist-view .pl-code-legend{gap:7px 12px}
 #productlist-view .pl-document{padding:12px;gap:10px}
}

.r9-price{display:grid;gap:2px;justify-items:end}.r9-price input{box-sizing:border-box;width:min(100%,7.5rem);min-width:3rem;border:1px solid var(--line,#cbd7ce);border-radius:6px;background:white;padding:6px 8px;font:inherit;text-align:right;color:inherit}.r9-price small{color:#52685c}.r9-price-help{font-size:13px;color:#53675a;margin:6px 0 10px}.r9-send-bar{min-height:44px}.r9-report-options{display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap}.r9-report-options label{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:#263f33}.r9-report-options input{accent-color:#145538}.r9-report-options select{font:inherit;min-height:36px;background:#fff;color:#163829;border:1px solid #becfc3;border-radius:6px;padding:3px 7px}.r9-report-options .report-cost-toggle{margin:0}.r9-report-options [data-role=report-cost-status]{display:none}.r9-print-note{font-size:13px}
html[data-siam-input=pointer] .page h2[tabindex="-1"]:focus,html[data-siam-input=pointer] [data-pl-row]:focus,html[data-siam-input=pointer] .topnav button:focus{outline:0!important}
.report-document .c-schedule .r9-product-label{font:inherit;font-weight:600;line-height:1.45}.report-document .c-schedule .r9-number{display:inline;white-space:nowrap;font:inherit;vertical-align:baseline;border:none;background:none;padding:0}
.r9-formal .c-head{margin:0 0 5px;padding:0 0 4px;border-bottom:1px solid #383838}.r9-formal .c-logo{display:none}.r9-formal .c-head h1{font-size:21px;line-height:1.25;margin:0;color:#202020}.r9-formal .c-head .c-company{font-size:10px;letter-spacing:.08em;color:#484848;margin:0}.r9-formal .c-farm{margin:7px 0 4px;gap:12px}.r9-formal .c-farm div{padding:0}.r9-formal .c-farm strong,.r9-formal .c-farm span{color:#292929;font-size:12px}.r9-water-caption{font:12px/1.35 Sarabun,sans-serif;color:#303030;margin:4px 0 8px}.r9-formal{color:#222}.r9-formal .c-product img{display:none}.r9-formal .c-table th{color:#151515!important;background:#eee!important}.r9-formal .c-table td,.r9-formal .c-total,.r9-formal .c-product,.r9-formal .c-products{background:white!important;color:#242424!important}.r9-formal .c-note,.r9-formal .c-product-note,.r9-formal h2,.r9-formal h3,.r9-formal strong{color:#252525!important}.r9-formal .c-total{border-color:#555}
@media(max-width:760px){#planner-view .r9-send-bar{position:fixed;z-index:12;bottom:0;left:0;right:0;margin:0;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-top:1px solid #c9d7ce;background:#fffffc;box-shadow:0 -2px 10px #20433012}.r9-send-bar .btn{min-height:44px}#planner-view:not([hidden]){padding-bottom:calc(76px + env(safe-area-inset-bottom))}#planner-view .workspace-title [data-action=customer-view],.customer-open .r9-send-bar{display:none}.customer-toolbar:has(.r9-report-options){height:auto;max-height:44dvh;overflow:auto}.r9-report-options{gap:4px 9px}.r9-report-options label{min-height:28px}.r9-report-options select{max-width:100%}}
@media print{@page siamreport{size:A4 landscape;margin:0}body.r9-printing{overflow:visible!important;margin:0!important;padding:0!important}body.r9-printing> :not(#r9-print-pages){display:none!important}body.r9-printing #r9-print-pages{display:block!important;position:static!important;inset:auto!important;overflow:visible!important;width:297mm!important;padding:0!important;margin:0!important}#r9-print-pages .report-export-page{page:siamreport;width:297mm!important;height:209.8mm!important;box-sizing:border-box;break-after:page;break-inside:avoid;display:flex!important;print-color-adjust:exact}#r9-print-pages .report-export-page:last-child{break-after:auto}#r9-print-pages .r9-pair{display:grid!important}#r9-print-pages .r9-half{font-size:12px}.r9-send-bar,.r9-measure{display:none!important}}

.r9-formal-page{width:100%;padding:0;margin:0;background:#fff;line-height:0;break-inside:avoid}.r9-formal-page img{display:block;width:100%;height:auto;margin:0;border:0;box-shadow:none}.report-export-host .report-export-page.r9-sheet-only{padding:0}.r9-sheet-only>.report-page-footer{display:none}.r9-sheet-only .report-page-content{padding:0}.r9-formal.customer-sheet:not(.report-export-page):has(.r9-formal-page){padding:0}.r9-formal.customer-sheet:not(.report-export-page)>:not(.r9-formal-page){margin-left:22px;margin-right:22px}.report-document.r9-formal .report-page-content{margin:0}
@media(max-width:940px){.pl-row-actions .btn,.pl-row-actions .pl-row-edit{min-height:44px}}
/* R10: document scroll owns both reference and editing tables. */
#planner-view[data-table-size=fit] .schedule-scroll-table,#standard-table{height:auto;max-height:none;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto}
#standard-table .reference-table{min-width:0;width:100%;table-layout:fixed}
#planner-view[data-table-size=fit] .schedule{min-width:0;width:100%}
.planner-report-settings{margin-block:14px}.r10-working-options{padding:12px;background:#f3f6f2;border:1px solid var(--line);border-radius:10px}
.r10-working-options label{min-height:38px}.r9-report-options input[type=checkbox]{width:16px;height:16px;flex:none}.r9-report-options select{font-size:14px}
#planner-view[data-report-purpose=false] .schedule .col-purpose,#planner-view[data-report-purpose=false] .schedule .cell-purpose,#planner-view[data-report-purpose=false] .day-card-purpose{display:none}
#planner-view[data-report-weight=false] .schedule .col-weight,#planner-view[data-report-weight=false] .schedule .cell-weight{display:none}
#planner-view[data-report-style=mono] .schedule{--line:#aaa;--line-soft:#ddd}.page#planner-view[data-report-style=mono] .schedule thead th{background:#e9e9e9;color:#202020;border-color:#aaa}
.page#planner-view[data-report-style=mono] .schedule td{background:#fff;color:#222;border-color:#bbb}.page#planner-view[data-report-style=mono] .schedule .cell-age{background:#f0f0f0}
.r10-row-image{width:42px;height:42px;object-fit:contain;vertical-align:middle;display:inline-block;margin-right:7px}.r9-formal .c-product img{display:block}.r10-no-images .c-product img{display:none}
@media(max-width:760px){
 #planner-view .age-phase{padding:10px 8px}.age-phase .age-phase-days{display:flex;flex-wrap:nowrap;gap:3px;max-width:100%}
 #planner-view .age-phase .age-chip{flex:1 1 0;width:0;min-width:0;height:36px;padding:0;font-size:12px;line-height:1;letter-spacing:-.3px}
 #planner-view .r10-working-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;padding:10px}
 #planner-view .r10-working-options label{font-size:12px;min-width:0;flex-wrap:wrap}
 #planner-view .r10-working-options select{width:100%;font-size:16px}
 #planner-view .age-tools{gap:6px}#planner-view .age-tools .mini-input{width:56px}
 #standard-table .reference-table th,#standard-table .reference-table td{font-size:12px;padding:7px 4px;overflow-wrap:anywhere}
}
/* Product names and offers remain intact on one line; vertical scrolling stays on the document. */
.pl-register{overflow-x:auto;overflow-y:visible}
.pl-checklist-table .pl-col-product strong{white-space:nowrap;overflow-wrap:normal;font-size:13px}
.pl-checklist-table .pl-offer,.pl-checklist-table .pl-sku{white-space:nowrap;overflow-wrap:normal}
.pl-checklist-table .pl-col-floor{min-width:90px}.pl-checklist-table .pl-col-product{min-width:0}
@media(max-width:940px){.pl-register{overflow:visible}.pl-checklist-table tbody .pl-col-product .pl-cell-value{overflow-x:auto;padding-bottom:3px;max-width:100%}.pl-checklist-table tbody .pl-col-product strong{font-size:14px;width:max-content;min-width:100%}.pl-checklist-table .pl-offer{font-size:12px}}
