.hsw-home{font-family:'IBM Plex Sans Thai',sans-serif;color:#183945}.hsw-home button,.hsw-home input,.hsw-home select,.hsw-dialog input,.hsw-dialog select,.hsw-dialog textarea{font:inherit}.hsw-home-tabs{display:flex;gap:8px;margin:0 0 20px;padding:6px;background:#eaf3f5;border-radius:12px;width:fit-content}.hsw-home button,.hsw-dialog button{cursor:pointer;border:1px solid #d4e3e7;border-radius:9px;padding:9px 16px;background:#fff;color:#17616a;min-height:42px}.hsw-home button:disabled,.hsw-dialog button:disabled{opacity:.5;cursor:default}.hsw-home button[aria-pressed=true]{background:#e2f5f2;border-color:#0aada9;color:#066660}.hsw-home .hsw-primary,.hsw-dialog .hsw-primary{background:#088a87;color:white;border-color:#088a87;box-shadow:0 3px 8px #088a871c}.hsw-work{background:#f2f7f8;border-radius:16px;padding:24px;display:grid;gap:20px;min-width:0}.hsw-heading,.hsw-actions,.hsw-section-head,.hsw-filter-meta,.hsw-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hsw-heading h1{font-size:26px;margin:0 0 6px}.hsw-heading p,.hsw-panel small,.hsw-filter-meta{color:#67818a;font-size:13px}.hsw-heading p{margin:0}.hsw-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.hsw-home .hsw-kpi{display:grid;gap:10px;text-align:left;padding:20px;border:1px solid transparent;border-radius:14px;min-height:140px;color:#183945;box-shadow:0 3px 14px #10343b05}.hsw-kpi strong{font-size:26px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.hsw-kpi small{font-size:11px;color:#67818a}.hsw-home .hsw-kpi.is-overdue{background:#fff0ee}.hsw-home .hsw-kpi.is-today{background:#fff6e7}.hsw-home .hsw-kpi.is-missing{background:#e4f5f3}.hsw-home .hsw-kpi[aria-pressed=true]{border-color:#088a87;box-shadow:0 0 0 2px #088a8720}.hsw-panel,.hsw-filter{padding:24px;border-radius:16px;background:white;min-width:0;box-shadow:0 4px 16px #102f3b08}.hsw-topics{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.hsw-topics button{min-width:100px}.hsw-filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px}.hsw-filter label,.hsw-dialog label{display:grid;gap:8px;font-size:13px;color:#58737c}.hsw-filter input,.hsw-filter select,.hsw-section-head select,.hsw-dialog input,.hsw-dialog select,.hsw-dialog textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d4e3e7;background:#fff;border-radius:8px;color:#183945;min-height:42px}.hsw-filter-meta{margin-top:16px}.hsw-panel h2{font-size:19px;margin:0 0 18px}.hsw-section-head h2{margin-bottom:0}.hsw-section-head{margin-bottom:16px}.hsw-table-scroll{overflow:auto;max-width:100%}.hsw-panel table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:14px}.hsw-panel th{background:#eaf4f5;color:#67818a;font-size:12px;font-weight:500;text-align:left;padding:12px}.hsw-panel th:first-child{border-radius:8px 0 0 8px}.hsw-panel th:last-child{border-radius:0 8px 8px 0}.hsw-panel td{vertical-align:middle;padding:16px 12px;overflow-wrap:anywhere;border:0;font-variant-numeric:tabular-nums}.hsw-panel tbody tr:nth-child(odd){background:#f7fafb}.hsw-panel td p{margin:0 0 8px;white-space:pre-wrap;max-height:90px;overflow:auto}.hsw-home .hsw-link{border:0;padding:0;min-height:30px;text-align:left;color:#087c78;background:transparent;box-shadow:none}.hsw-panel td .hsw-link{font-weight:500}.hsw-badge{display:inline-block;border-radius:20px;padding:5px 10px;font-size:12px;background:#eaf4f5}.hsw-badge.is-overdue{background:#fff0ee;color:#b74439}.hsw-badge.is-today{background:#fff6e7;color:#9f6519}.hsw-badge.is-missing{background:#e4f5f3;color:#078d87}.hsw-pagination{justify-content:flex-end;font-size:13px;margin-top:16px}.hsw-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:stretch}.hsw-summary .hsw-panel{display:flex;flex-direction:column}.hsw-summary .hsw-panel table{table-layout:fixed}.hsw-summary th:first-child,.hsw-summary td:first-child{width:40%}.hsw-summary th:not(:first-child),.hsw-summary td.is-number{text-align:right}.hsw-summary td{height:52px;padding-top:0;padding-bottom:0}.hsw-summary small{display:block;margin-top:auto;padding-top:18px}.hsw-dialog{width:min(560px,calc(100vw - 32px));max-height:90dvh;box-sizing:border-box;border:0;border-radius:16px;padding:0;box-shadow:0 20px 60px #102f3b40;color:#183945}.hsw-dialog::backdrop{background:#102f3b66}.hsw-dialog header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #eaf2f4}.hsw-dialog header h2{font-size:20px;margin:0}.hsw-dialog .hsw-close{background:#f90013;color:white;border:0;width:30px;height:30px;min-height:30px;padding:0;font-size:28px;line-height:1;border-radius:6px}.hsw-dialog form{padding:24px;display:grid;gap:18px}.hsw-dialog footer{display:flex;gap:12px;justify-content:flex-end}.hsw-context{margin:0;padding:14px;background:#e6f7f7;border-radius:8px;color:#088a87}.hsw-quotation-dialog>.qf-center>:not(dialog){display:none}.hsw-quotation-dialog>.qf-center>.crm-error{display:block}.hsw-quotation-dialog>.qf-center{padding:0;border:0;margin:0}.hsw-home :focus-visible,.hsw-dialog :focus-visible{outline:3px solid #2dd4bf;outline-offset:3px}@media(max-width:1000px){.hsw-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.hsw-filter-grid{grid-template-columns:1fr 1fr}.hsw-panel:not(.hsw-summary .hsw-panel)>.hsw-table-scroll>table{min-width:850px}}@media(max-width:640px){.hsw-home-tabs{width:100%;box-sizing:border-box}.hsw-home-tabs button{flex:1;padding:8px}.hsw-work{padding:12px;gap:14px}.hsw-heading h1{font-size:22px}.hsw-kpis{grid-template-columns:1fr 1fr;gap:10px}.hsw-home .hsw-kpi{padding:14px;min-height:120px}.hsw-kpi strong{font-size:22px}.hsw-panel,.hsw-filter{padding:16px}.hsw-filter-grid{grid-template-columns:1fr}.hsw-summary{grid-template-columns:1fr}.hsw-summary table{font-size:12px}.hsw-summary th,.hsw-summary td{padding-left:7px;padding-right:7px}.hsw-summary th:first-child,.hsw-summary td:first-child{width:34%}.hsw-actions{width:100%}.hsw-actions button{flex:1}}

.hsw-work{gap:14px;padding:18px}
.hsw-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hsw-home .hsw-kpi{align-content:start;gap:4px;min-height:92px;padding:12px 16px}
.hsw-home .hsw-kpi.is-expiry{background:#edf0fb}
.hsw-kpi strong{font-size:25px}
.hsw-panel,.hsw-filter{padding:16px}
.hsw-topics{margin-bottom:12px}
.hsw-filter-grid{grid-template-columns:minmax(190px,2fr) repeat(4,minmax(0,1fr));gap:12px}
.hsw-filter-grid label{min-width:0}
.hsw-filter-meta{margin-top:8px}
.hsw-queue-panel{padding:22px 24px}
.hsw-queue-panel .hsw-section-head h2{font-size:22px;font-weight:600}
.hsw-queue-panel .hsw-section-head label{display:grid;gap:4px;font-size:12px;color:#58737c}
.hsw-queue-panel .hsw-section-head select{width:228px;max-width:100%;font-size:13px}
.hsw-queue{border-radius:10px}
.hsw-queue-panel .hsw-queue>table{min-width:1120px}
.hsw-queue-panel .hsw-queue th{box-sizing:border-box;height:44px;color:#58737c;font-size:13px;line-height:19px}
.hsw-queue th:nth-child(1){width:9.48%}
.hsw-queue th:nth-child(2){width:19.97%}
.hsw-queue th:nth-child(3){width:12.64%}
.hsw-queue th:nth-child(4){width:8.33%}
.hsw-queue th:nth-child(5){width:24.28%}
.hsw-queue th:nth-child(6){width:12.36%}
.hsw-queue th:nth-child(7){width:12.94%}
.hsw-queue-panel .hsw-queue tbody tr:nth-child(odd){background:#f6fafb}
.hsw-queue-panel .hsw-queue td{vertical-align:middle;padding:12px;line-height:20px}
.hsw-queue-panel .hsw-queue td p{margin:0;max-height:none;overflow:visible}
.hsw-queue td .hsw-expiry,.hsw-queue td .hsw-queue-type{display:block;margin-top:2px}
.hsw-queue-panel .hsw-queue .hsw-link{display:block;min-height:0;line-height:20px}
.hsw-queue-panel .hsw-queue td:last-child button{box-sizing:border-box;width:156px;max-width:100%;padding:6px;font-size:12px;line-height:16px}
.hsw-value{font-weight:500}
@media(min-width:641px){
 .hsw-queue-panel .hsw-queue tbody tr{height:84px}
 .hsw-queue-panel .hsw-queue :is(th,td):is(:nth-child(4),:last-child){text-align:right}
}
@media(max-width:1000px){
 .hsw-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hsw-filter-grid label:first-child{grid-column:1/-1}
}
@media(max-width:640px){
 .hsw-work{padding:10px}
 .hsw-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .hsw-home .hsw-kpi{padding:10px;min-height:90px}
 .hsw-panel,.hsw-filter{padding:12px}
 .hsw-topics{gap:6px}
 .hsw-topics button{min-width:0;padding-inline:10px}
}

.hsw-mobile-label{display:none}
@media(max-width:640px){
 .hsw-queue-panel{padding:12px}
 .hsw-panel .hsw-queue.hsw-table-scroll>table{min-width:0}
 .hsw-queue table,.hsw-queue tbody{display:block}
 .hsw-queue thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .hsw-queue tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin-bottom:10px;padding:12px;border:1px solid #d4e3e7;border-radius:10px}
 .hsw-queue-panel .hsw-queue tbody td{display:block;padding:0;min-width:0}
 .hsw-queue td:nth-child(-n+2),.hsw-queue td:nth-child(n+5){grid-column:1/-1}
 .hsw-queue-panel .hsw-queue td:last-child button{width:100%}
 .hsw-queue td .hsw-mobile-label{display:block;font-size:12px;font-weight:400;color:#58737c}
 .hsw-queue td:nth-child(-n+2) .hsw-mobile-label,.hsw-queue td:nth-child(7) .hsw-mobile-label{display:none}
}
