.crm-table .repeat-inquiry td{background:#fff5f5!important}.crm-table .repeat-inquiry.selected-customer td{background:#ffeded!important}.fg-row.repeat-inquiry .fg-cell{background:#fff5f5!important}.fg-row.repeat-inquiry .fg-select-cell{box-shadow:none}.material-bamboo{color:#ff0000!important;font-weight:700!important}.material-bagasse{color:#f88825!important;font-weight:700!important}.crm-table .pool-customer:not(.repeat-inquiry) td{background:#f3f5f4!important;color:#7a8980}.fg-row.pool-customer:not(.repeat-inquiry) .fg-cell{background:#f3f5f4!important}.inquiry-date-strong{font-size:15px;font-weight:700;color:#153f31;display:block}.inquiry-week-small{font-size:10px!important;color:#879b8d!important;font-weight:400;display:block;margin-top:4px}.next-body{padding:12px 16px!important}.next-state{display:flex;gap:7px;align-items:center;font-size:11px;color:#809386;margin-bottom:10px}.business-state{background:#007a65;color:#fff;padding:5px 8px;border-radius:5px}.pool-state{background:#e5eae7;padding:5px 8px;border-radius:5px}.repeat-state{background:#fff0f0;color:#a96464;padding:4px 7px;border-radius:5px}.next-section{border-top:1px solid #e3ebe5;padding:12px 0;font-size:12px}.next-section h3{display:flex;justify-content:space-between;font-size:13px;color:#355a46;margin:0 0 10px}.next-section summary{cursor:pointer;font-weight:600;color:#486c56;padding:4px 0}.next-section p{line-height:1.65;white-space:pre-wrap}.next-section h3 span,.next-section summary span{font-size:10px;color:#8a9e90;font-weight:400}.next-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.next-section label{font-size:11px;color:#5f7869;display:block}.next-section input,.next-section select,.next-section textarea{font:inherit;color:#345946;padding:7px 8px;border:1px solid #dce7df;border-radius:6px;background:white;width:100%;margin:4px 0;min-height:32px}.next-section textarea{min-height:76px;resize:vertical;line-height:1.6}.next-section button[data-next]{background:#007a65;color:#fff;border:0;border-radius:6px;padding:7px 11px;font-size:11px;cursor:pointer;margin-top:6px}.next-periods{display:flex;gap:5px;margin:9px 0}.next-periods button{border:1px solid #cfe0d6;background:#fff;border-radius:6px;padding:6px 10px;color:#26624e;font-size:11px;cursor:pointer}.next-note{border-left:2px solid #c5dfd2;padding:5px 0 9px 10px;margin:12px 0}.next-note header{display:flex;align-items:center;gap:8px;color:#758c7d;font-size:10px}.next-note header button{margin-left:auto;color:#b14f45;border:0;background:white;cursor:pointer;font-size:10px}.next-note p{color:#35543f;font-size:12px;margin:6px 0;overflow-wrap:anywhere}.next-files{display:flex;gap:7px;flex-wrap:wrap}.next-files a{max-width:120px;overflow-wrap:anywhere;font-size:10px;color:#16745a}.next-files img{display:block;max-width:110px;max-height:80px;object-fit:cover;border-radius:5px}.next-upload{margin-top:6px}.next-upload input{font-size:10px}.next-section>small{font-size:10px;color:#74897d}.next-history{padding:7px 0;border-bottom:1px solid #edf2ee;font-size:11px}.next-history time{display:block;font-size:10px;color:#7a8d81}.next-history b{font-weight:500}.next-history p{margin:3px 0}.next-owner,.next-sample{background:#f4f8f5;border-radius:6px;padding:8px;font-size:11px}.next-owner small,.next-sample small{display:block;color:#7c9184}.next-inquiry{padding:7px 0;border-bottom:1px solid #e7eee9;font-size:11px}.next-inquiry p{overflow-wrap:anywhere}.next-inquiry dl{display:grid;grid-template-columns:85px 1fr;gap:5px;font-size:10px}.next-inquiry dt{color:#768c7e}.next-error{font-size:12px;color:#b54837;white-space:pre-wrap}.next-hover{position:fixed;z-index:700;width:390px;max-height:350px;overflow:auto;background:white;border:1px solid #d5e5db;box-shadow:0 8px 28px #193f3026;border-radius:9px;padding:14px;color:#315747;font-size:12px}.next-hover .next-note{margin:8px 0}.next-empty{font-size:11px;color:#7d9184;padding:10px 0}#nextDashboard{margin-top:16px;border:1px solid #dce8e0;border-radius:10px;padding:18px;color:#315747;background:white}#nextDashboard header{display:flex;justify-content:space-between;font-size:12px}#nextDashboard h3{font-size:15px;margin:0}#nextDashboard>button{display:flex;align-items:center;gap:18px;width:100%;background:white;border:0;border-top:1px solid #e7eee9;padding:11px 0;text-align:left;color:#315747;cursor:pointer}#nextDashboard small{font-size:11px;color:#70877a}#nextDashboard details{margin-top:10px;font-size:12px}#nextDashboard p{font-size:12px;color:#617d6c}.next-body .choice-button{min-height:34px!important;padding:5px 8px!important;font-size:12px}.next-compact .choice-button,.next-body[data-stage=ray] .next-compact .choice-button{background:#fff!important;color:#244d3d!important;border-color:#d4e2d9!important}.drawer-top{padding:16px!important}.drawer-top h2{font-size:19px!important}.drawer-tabs{padding:0 16px!important;gap:16px!important}.drawer-tabs button{padding:10px 0!important;font-size:12px!important}.drawer-footer{padding:10px 16px!important}.drawer-footer .save-hint{font-size:10px!important}.next-compose{margin-top:10px}
.next-date-sort{display:flex;gap:8px;padding:10px}.next-date-sort button{border:1px solid #d7e5dc;border-radius:5px;background:#eef6f1;color:#315747;padding:7px 10px;cursor:pointer}@media(min-width:1440px){.workflow-overlay.docked{width:440px!important;right:18px!important}#page-customers.with-customer-panel{padding-right:480px!important}}
.workflow-overlay.open.sheet-dialog{display:flex;align-items:center;justify-content:center;background:#173d3040}.sheet-dialog .customer-drawer{height:85vh;width:650px;max-width:calc(100vw - 36px);border:1px solid #d8e7dd;border-radius:12px;overflow:hidden}
.next-two .choice-control{display:block;width:100%;margin:4px 0}.next-two .choice-button{width:100%}.next-compact .choice-control{display:block}.next-compact label{display:block}.next-body[data-stage=ray] .next-compact .choice-button{background:#c2dfcf;color:#265843;border-color:#b5d6c2}.next-section button[data-next]:disabled{opacity:.5;cursor:wait}.next-section input:disabled,.next-section textarea:disabled{background:#f5f8f6;color:#6a8072}.paused-state,.reminder-date{display:block;font-size:10px;line-height:1.6;color:#7c658a}.reminder-date{color:#8f6a35}.empty-value{color:#9baba1}
.next-inquiry dd{margin:0;overflow-wrap:anywhere}.next-upload+small{display:block}.next-note time{white-space:nowrap}.next-state{flex-wrap:wrap}.next-hover .next-note p{white-space:pre-wrap}

/* 2026-09-16 visual system: clean color tokens and task-focused drawer. */
@media(min-width:1440px){#page-customers.with-customer-panel{padding-right:458px!important}.workflow-overlay.docked{width:440px!important;right:18px!important;box-shadow:0 18px 60px #173d3026!important}}
.next-status-card,.next-follow-card,.next-reminders{border:1px solid #dce8e1!important;border-radius:10px;background:#fff;padding:14px!important;margin:0 0 10px}.next-status-card{box-shadow:0 3px 14px #183d3008}.next-status-card>h3{margin-bottom:12px}.next-reminders summary{display:flex;align-items:center;justify-content:space-between;padding:0!important;list-style:none}.next-reminders summary::-webkit-details-marker{display:none}.next-reminders summary:after{content:'⌄';color:#5f7d6d;font-size:15px}.next-reminders[open] summary:after{transform:rotate(180deg)}.next-reminder-body{padding-top:10px}.next-history-title{margin-top:18px!important;padding-top:13px;border-top:1px solid #e6eee9}.next-follow-card textarea{min-height:88px}


.crm-table .pool-customer td,.crm-table .pool-customer.selected-customer td,.fg-row.pool-customer .fg-cell{background:#f3f5f4!important}

/* Complete compact form: same typography and controls as the restored workflow. */
.next-body .next-section{font-size:13px;padding:14px 0}
.next-body .next-section:first-of-type{border-top:0;padding-top:0}
.next-body .next-section h3{font-size:14px;color:#254e3d;margin-bottom:10px}
.next-body .next-section h4{font-size:12px;color:#355f4b;margin:14px 0 7px;font-weight:650}
.next-body .next-section label{font-size:12px;color:#52715f}
.next-body .next-section input,.next-body .next-section textarea,.next-body .choice-button{font-size:13px;min-height:35px}
.next-body .next-two{gap:9px 12px}
.next-body .next-two>*{min-width:0}
.next-body [hidden]{display:none!important}
.next-body .next-week{font-size:11px;color:#678273;margin:3px 0 8px}
.next-body .next-inquiry-form>label,.next-body .next-inquiry-form>.choice-control{display:block;margin:8px 0}
.next-body .next-legacy-value{font-size:12px;color:#597666;overflow-wrap:anywhere}
.next-body .next-inquiry-form>label textarea{min-height:88px}
.next-body .next-inquiry button[data-edit-inquiry]{float:right;background:#edf6f1;border:1px solid #cbded3;color:#215940;border-radius:5px;padding:4px 8px;font-size:11px;cursor:pointer}
.next-body .next-section>small{font-size:11px;color:#647f6e}
.next-body .next-section button[data-next]{background:#024440}
.next-inquiry-form>label>.choice-control{display:block;width:100%;margin-top:4px}
.next-inquiry-form>label>.choice-control>.choice-button{width:100%}
.next-body .next-status-card,.next-body .next-follow-card,.next-body .next-reminders{border-radius:8px;padding:12px!important;box-shadow:none}
.drawer-footer .drawer-save{margin-left:auto;min-width:112px;font-size:13px}
.drawer-footer [hidden]{display:none!important}
.workflow-overlay.open.create-dialog{inset:0!important;width:auto!important;display:flex;align-items:center;justify-content:center;padding:24px;background:#173d3033!important;border:0!important;box-shadow:none!important}
.create-dialog .customer-drawer{width:760px;max-width:calc(100vw - 48px);height:min(850px,calc(100dvh - 48px));border-radius:12px;box-shadow:0 18px 60px #173d3026}
.create-dialog .drawer-body{padding:16px 22px}
.create-dialog .drawer-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.create-dialog .drawer-field input,.create-dialog .drawer-field textarea,.create-dialog .choice-button{min-height:36px;font-size:13px;padding:8px 10px}
.create-dialog .source-specific{margin-top:14px;padding-top:14px}
@media(min-width:1440px) and (max-width:1650px){.workflow-overlay.docked{width:405px!important}#page-customers.with-customer-panel{padding-right:423px!important}}
@media(max-width:650px){.create-dialog .drawer-fields,.next-body .next-two{grid-template-columns:1fr}.workflow-overlay.open.create-dialog{padding:10px}.create-dialog .customer-drawer{max-width:calc(100vw - 20px);height:calc(100dvh - 20px)}}

/* 2026-09-17: one responsibility per tab and a dedicated inquiry-history area. */
.next-body{display:flex;flex-direction:column;gap:10px;padding:14px 16px 18px!important;background:#fbfdfc}
.next-body>#drawerError:empty{display:none}
.next-body>.next-section{border:1px solid #dce8e1!important;border-radius:9px;background:#fff;padding:14px!important;margin:0!important;box-shadow:none}
.next-body>.next-section>h3{font-size:14px;margin-bottom:12px}
.next-body>.next-audit,.next-body>.next-handoff-recap{background:#fcfefd}
.next-body .next-section-intro{margin:-3px 0 10px;color:#70877a;font-size:11px;line-height:1.55;white-space:normal}
.next-body>.next-inquiry-hub{border-color:#cfe2d7!important;background:#f8fcfa}
.next-body[data-stage=base]>.next-section:first-of-type{order:1}
.next-body[data-stage=base]>.next-inquiry-hub{order:2}
.next-body[data-stage=base]>.next-inquiry-form{order:3}
.next-inquiry-hub>h3 span{display:inline-flex;align-items:center;border-radius:999px;background:#e4f3eb;color:#2b684f;padding:3px 8px;font-size:11px}
.next-inquiry-hub .next-inquiry{background:#fff;border:1px solid #e0ebe4;border-radius:7px;padding:9px 10px;margin:7px 0}
.next-inquiry-hub .next-inquiry:last-of-type{margin-bottom:0}
.next-inquiry-hub .next-compose{border-top:1px solid #dce9e1;margin-top:12px;padding-top:10px}
.next-inquiry-hub .next-compose>summary{display:flex;align-items:center;justify-content:space-between;color:#075f46}
.next-inquiry-hub .next-compose>summary:after{content:'＋';font-size:16px;font-weight:500}
.next-inquiry-hub .next-compose[open]>summary:after{content:'−'}
.next-body[data-stage=ray]>.next-status-card{border-left:3px solid #7db79c!important}
.next-body[data-stage=sales]>.next-status-card{border-left:3px solid #00a57b!important}
.next-body[data-stage=orders]>.next-section:first-of-type{border-left:3px solid #7db79c!important}
.next-body[data-stage=orders]>.next-section:nth-of-type(2){border-left:3px solid #d8a331!important}
.next-periods button[aria-pressed="true"]{-webkit-appearance:none!important;appearance:none!important;background-color:#08785c!important;color:#fff!important;border-color:#08785c!important;box-shadow:inset 0 0 0 100px #08785c,0 0 0 2px #d8eee4!important}
.next-reminder-choice{margin:7px 0 5px!important;padding:7px 9px;border-radius:6px;background:#eef7f2;color:#245f48;font-size:11px;white-space:normal!important}
.next-sample-log .next-sample{border:1px solid #e0ebe4;background:#f8fbf9;margin:7px 0;padding:9px 10px}
.next-sample-compose{margin-top:12px;border-top:1px solid #dce9e1;padding-top:10px}
.next-sample-compose>summary{display:flex;align-items:center;justify-content:space-between;color:#075f46;font-size:12px}
.next-sample-compose[open]>summary{margin-bottom:8px}
.next-business-timeline .next-timeline-item{margin:0;padding:10px 0 11px;border:0;border-bottom:1px solid #e7eee9;background:transparent}
.next-business-timeline .next-timeline-item:last-child{border-bottom:0;padding-bottom:0}
.next-business-timeline .next-timeline-item header{display:flex;align-items:center;gap:7px;color:#71877a;font-size:10px}
.next-business-timeline .next-timeline-item header time{margin-left:auto}
.next-business-timeline .next-timeline-item header button{margin-left:6px}
.next-record-badge{display:inline-flex;align-items:center;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:650}
.next-record-badge.follow{background:#e4f3eb;color:#216449}.next-record-badge.state{background:#e6effc;color:#315f9b}.next-record-badge.reminder{background:#fff0cf;color:#8a5a14}
