.ex-app{margin:0;background:#eef2f7;color:#142344;font:16px/1.5 Tahoma,"Noto Sans Thai",sans-serif}.ex-app *{box-sizing:border-box}.ex-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#152675;color:#fff}.ex-head a{color:#fff}.ex-head img{vertical-align:middle;object-fit:contain}.ex-entry{max-width:900px;margin:30px auto;padding:24px;background:#fff;border:1px solid #ccd5e4;border-radius:10px}.ex-entry h1{font-size:1.45rem;margin:0 0 12px}.ex-app button,.ex-app input{font:inherit}.ex-app button{min-height:40px;padding:7px 12px;border:1px solid #a8b5cd;border-radius:6px;background:#fff;color:#142344;cursor:pointer}.ex-app button:hover:enabled{background:#edf2ff}.ex-app button:disabled{opacity:.55;cursor:default}.ex-app button:focus-visible,.ex-app input:focus-visible,.ex-result-grid:focus-visible{outline:3px solid #ed9b12;outline-offset:2px}.ex-app [hidden]{display:none!important}.ex-app .sw-doc-body{background:#fff}.ex-app .sw-doc-control{min-height:30px;padding:3px 8px}.ex-app .sw-doc-titlebar h2{font-size:1rem}.ex-content,.ex-conditions,.ex-child,.ex-calendar,.ex-parameter,.ex-result{padding:16px;container-type:inline-size;background:#fff;color:#142344}.ex-muted{font-size:.88rem;color:#4d5d7b;margin:8px 0}.ex-error{padding:10px;background:#fff0ed;color:#922b16;border:1px solid #d38b7c;border-radius:6px}.ex-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px;padding:10px 0;background:#fff}.ex-child>.ex-actions,.ex-content>.ex-actions,.ex-parameter>.ex-actions{position:sticky;bottom:0;z-index:2;border-top:1px solid #d9e0ec}.ex-setup,.ex-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ex-field{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0}.ex-field>span{font-size:.9rem}.ex-field>input[type=text],.ex-field>input[type=search],.ex-month>input{width:100%;min-width:0;min-height:40px;border:1px solid #a8b5cd;border-radius:5px;padding:7px 9px;background:#fff;color:#142344}.ex-field>input:read-only{background:#f2f4f8}.ex-criteria{display:grid;grid-template-columns:minmax(195px,.8fr) minmax(0,1.2fr);gap:12px;align-items:start}.ex-tree{background:#f6f8fc;border:1px solid #a8b5cd;border-radius:6px;padding:10px}.ex-tree h3,.ex-selected h3{margin:0 0 8px;font-size:1rem;color:#152675}.ex-tree section+section{margin-top:14px}.ex-tree-row{display:grid;gap:3px;padding:3px 0 6px 10px;border-left:1px solid #bcc8dc}.ex-tree-row>button{text-align:left}.ex-tree-row>button[aria-pressed=true]{background:#dce7ff;border-color:#152675}.ex-tree-row>small{font-size:.8rem;color:#4d5d7b;overflow-wrap:anywhere}.ex-selected{margin:0;min-width:0;border:1px solid #a8b5cd;border-radius:6px;padding:12px}.ex-selected>legend{font-weight:bold;color:#152675}.ex-selected .ex-option,.ex-modes .ex-field,.ex-choice{display:flex;flex-direction:row-reverse;align-items:flex-start;justify-content:flex-end;gap:9px;padding:7px 0;cursor:pointer}.ex-option>input,.ex-modes input,.ex-choice>input{margin:3px 0 0;width:18px;height:18px;accent-color:#152675;flex-shrink:0}.ex-option>span{font-size:1rem}.ex-modes{display:flex;gap:12px;flex-wrap:wrap;border:1px solid #d9e0ec;margin:0 0 12px;padding:6px 10px}.ex-range{margin:12px 0}.ex-choice-list{max-height:270px;overflow:auto;border:1px solid #d9e0ec;border-radius:5px;margin-top:12px;padding:10px}.ex-date-row{display:flex;gap:8px;align-items:end}.ex-date-row>.ex-field{flex:1}.ex-month{display:flex;gap:6px;align-items:center;margin:8px 0}.ex-spin{display:grid;gap:1px}.ex-spin>button{min-height:20px;line-height:1;font-size:11px;padding:3px 8px}.ex-days table{width:100%;table-layout:fixed;border-collapse:collapse}.ex-days th,.ex-days td{text-align:center;padding:2px}.ex-days th{font-size:.85rem;color:#4d5d7b}.ex-days button{width:100%;padding:4px 0;min-height:34px;border-color:transparent}.ex-days button[aria-pressed=true]{background:#dce7ff;border-color:#152675}.ex-parameter table{width:100%;border-collapse:collapse}.ex-parameter th,.ex-parameter td{border:1px solid #a8b5cd;padding:8px;text-align:left}.ex-parameter th{color:#152675;background:#e7edfa}.ex-parameter input{width:100%;min-height:40px;padding:7px;border:1px solid #a8b5cd;border-radius:5px}.ex-result h2{font-size:1.15rem;margin:0 0 8px}.ex-result-criteria{display:grid;grid-template-columns:repeat(3,minmax(90px,.6fr) minmax(100px,1fr));font-size:.85rem;gap:4px 10px;margin:12px 0}.ex-result-criteria dt{font-weight:bold}.ex-result-criteria dd{margin:0;overflow-wrap:anywhere}.ex-result-grid{overflow:auto;max-height:57vh;border:1px solid #a8b5cd;background:#fff}.ex-result-grid table{width:100%;min-width:1240px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:.88rem}.ex-result-grid th,.ex-result-grid td{border-right:1px solid #d9e0ec;border-bottom:1px solid #d9e0ec;padding:8px;vertical-align:top;text-align:left;background:#fff;color:#142344;overflow-wrap:anywhere}.ex-result-grid thead th{position:sticky;top:0;z-index:1;background:#152675;color:#fff}.ex-result-grid thead th:nth-child(1){width:10%}.ex-result-grid thead th:nth-child(2){width:22%}.ex-result-grid thead th:nth-child(3){width:9%}.ex-result-grid thead th:nth-child(n+4):nth-child(-n+8){width:10%}.ex-result-grid thead th:nth-child(9){width:9%}.ex-result-grid tbody [data-creditor-group]{color:#152675;background:#e7edfa;text-align:left}.ex-result-grid td:not([data-column="1"]){white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}.ex-result>.ex-actions>span{margin-right:auto;font-size:.9rem;color:#4d5d7b}.ex-app #excess-entry-status{max-width:900px;margin:12px auto;padding:0 16px}
@container(max-width:760px){.ex-result-criteria{grid-template-columns:repeat(2,minmax(90px,.7fr) minmax(100px,1fr))}.ex-criteria{grid-template-columns:minmax(145px,.8fr) minmax(0,1.2fr);gap:8px}.ex-tree{padding:7px}.ex-tree-row{padding-left:5px}.ex-tree-row button{font-size:.9rem;padding:6px}}
@container(max-width:500px){.ex-setup,.ex-range{grid-template-columns:minmax(0,1fr)}.ex-result-criteria{grid-template-columns:minmax(90px,.7fr) minmax(0,1fr)}.ex-selected{padding:8px}.ex-option>span{font-size:.9rem}}
@media(max-width:600px){.ex-head{padding:10px 12px;flex-wrap:wrap}.ex-entry{margin:16px 10px;padding:16px}.ex-entry h1{font-size:1.2rem}.ex-content,.ex-conditions,.ex-child,.ex-calendar,.ex-parameter,.ex-result{padding:12px}.ex-app .sw-doc-titlebar h2{font-size:.85rem}.ex-result-grid{max-height:51vh}}
