@import "https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700&display=swap";:root{color:#24364a;font-synthesis:none;text-rendering:optimizelegibility;background:#faf9f7;font-family:Sarabun,Noto Sans Thai,Tahoma,sans-serif;font-size:16px}*{box-sizing:border-box}body{min-width:0;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}body{line-height:1.6}button{cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{color:#374151;background:#fff;border-right:1px solid #e9e5e0;flex-direction:column;flex-shrink:0;width:250px;padding:23px 14px 16px;display:flex}.brand-lockup{align-items:center;gap:11px;padding:0 9px 32px;display:flex}.brand-mark{color:#9a3412;background:#ffedd5;border-radius:12px;place-items:center;width:40px;height:40px;font-size:16px;font-weight:700;display:grid}.brand-name{font-size:20px;font-weight:700;line-height:1.35}.brand-name span{color:#6b7280;margin-top:5px;font-size:15px;font-weight:400;display:block}.nav-caption{color:#fff4e8;letter-spacing:1.2px;padding:0 12px 9px;font-size:14px}.main-nav{gap:4px;display:grid}.nav-item{color:#4b5563;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;width:100%;padding:11px 12px;font-size:16px;display:flex}.nav-item:hover{color:#8f451b;background:#faf2eb}.nav-item.active{color:#93471c;background:#f8e9dc;font-weight:700;box-shadow:inset 3px 0 #c76a2a}.nav-icon{color:currentColor;text-align:center;width:20px;font-size:20px}.nav-count{color:#fff;background:#a94a10;border-radius:10px;margin-left:auto;padding:2px 7px;font-size:14px}.sidebar-spacer{flex:1}.settings-nav{margin-bottom:9px}.sidebar-footer{color:#fff4e8;border-top:1px solid #e9e5e0;padding:16px 9px 0;font-size:14px}.online-dot,.connection-dot{background:#52bd8b;border-radius:50%;width:7px;height:7px;margin-right:7px;display:inline-block}.main-area{flex:1;min-width:0}.topbar{background:#fff;border-bottom:1px solid #e6ebf1;justify-content:space-between;align-items:center;height:68px;padding:0 34px;display:flex}.breadcrumb{color:#53677c;font-size:15px}.breadcrumb span{color:#bdc7d2;padding:0 9px}.topbar-right{align-items:center;gap:25px;display:flex}.connection{color:#75879a;font-size:15px}.connection.disconnected{color:#bc4b54}.connection.disconnected .connection-dot{background:#dc6972}.connection:not(.connected):not(.disconnected) .connection-dot{background:#e0a83e}.user-chip{color:#53677c;align-items:center;gap:9px;font-size:15px;display:flex}.avatar{color:#9a3412;background:#ffedd5;border-radius:50%;place-items:center;width:30px;height:30px;font-size:14px;font-weight:700;display:grid}.page-content{max-width:1500px;margin:0 auto;padding:30px 34px 42px}.page-heading{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;display:flex}.eyebrow{color:#7187a1;letter-spacing:1.2px;margin-bottom:7px;font-size:13px;font-weight:700}.page-heading h1{color:#20364e;letter-spacing:-.3px;margin:0;font-size:30px}.page-heading p{color:#77889b;margin:6px 0 0;font-size:15px}.button{white-space:nowrap;border:1px solid #0000;border-radius:7px;padding:9px 13px;font-size:15px;font-weight:600;transition:all .15s}.button:disabled{opacity:.55;cursor:wait}.button-light:hover{background:#f7f9fc}.button-primary{color:#fff;background:#c76a2a;box-shadow:0 2px 5px #c76a2a26}.button-primary:hover{background:#9a3412}.button-primary span{padding-left:8px}.button{min-height:44px}.refresh-icon{vertical-align:-1px;margin-right:4px;font-size:18px}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px;display:grid}.metric-card{background:#fff;border:1px solid #e5eaf0;border-radius:10px;min-height:104px;padding:17px 18px;position:relative;overflow:hidden;box-shadow:0 2px 6px #25374a06}.metric-card:after{content:"";background:#8fa6c0;border-radius:4px;width:3px;position:absolute;top:15px;bottom:15px;left:0}.metric-blue:after{background:#c76a2a}.metric-amber:after{background:#e1a647}.metric-green:after{background:#40a77d}.metric-label{color:#718398;font-size:14px;display:block}.metric-value{color:#253c55;letter-spacing:-.3px;margin-top:13px;font-size:26px;display:block}.metric-blue .metric-value{color:#c76a2a}.metric-green .metric-value{color:#27815c;font-size:19px}.panel{background:#fff;border:1px solid #e4e9ef;border-radius:10px;overflow:hidden;box-shadow:0 2px 7px #26374a07}.contract-panel{margin-bottom:17px}.panel-heading{border-bottom:1px solid #edf0f4;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;display:flex}.panel-heading h2{color:#293e54;margin:0;font-size:16px}.panel-heading p{color:#64748b;margin:5px 0 0;font-size:14px}.table-scroll{width:100%;overflow:auto}table{border-collapse:collapse;width:100%;min-width:830px}th{color:#75869a;text-align:left;white-space:nowrap;padding:12px 16px;font-size:13px;font-weight:600}td{color:#4b5e72;white-space:nowrap;border-top:1px solid #eef1f4;padding:15px 16px;font-size:15px}.click-row{cursor:pointer}.customer-link{color:#b63e0b;text-align:left;background:0 0;border:0;padding:0;font-size:15px;font-weight:600}.customer-link:hover{text-decoration:underline}.contract-sub{color:#64748b;margin-top:4px;font-size:13px;display:block}.days-badge{color:#526b88;background:#eff4fb;border-radius:12px;padding:4px 7px;font-size:13px;display:inline-block}.days-high{color:#ae6a16;background:#fff2e5}.align-right{text-align:right}.amount-cell{color:#253b53;text-align:right;font-weight:600}.result-count{color:#7e8da0;margin-left:5px;font-size:14px;font-weight:400}.list-heading{padding:16px 19px}.search-box{color:#8293a6;border:1px solid #dce3eb;border-radius:7px;align-items:center;gap:8px;width:280px;min-height:44px;padding:0 12px;display:flex}.search-box span{font-size:22px}.search-box input{color:#31465d;border:0;outline:0;width:100%;font-size:14px}.search-box input::placeholder{color:#718096}.table-state{color:#61758a;text-align:center;padding:34px;font-size:15px}.muted-state{color:#64748b}.spinner{vertical-align:-3px;border:2px solid #dce5f1;border-top-color:#c76a2a;border-radius:50%;width:14px;height:14px;margin-right:7px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.alert{border-radius:8px;align-items:center;gap:12px;margin:-5px 0 19px;padding:12px 14px;font-size:15px;display:flex}.alert-error{color:#90434a;background:#fff5f5;border:1px solid #f2d8da}.alert-icon{color:#c35b64;border:1px solid #e8b9bd;border-radius:50%;flex-shrink:0;place-items:center;width:21px;height:21px;font-size:15px;display:grid}.alert strong,.alert span{display:block}.alert strong{font-size:15px}.alert div span{color:#a35b62;margin-top:3px;font-size:14px}.alert .button{margin-left:auto}.source-note{color:#6b7d90;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;align-items:center;gap:9px;padding:11px 13px;font-size:14px;display:flex}.source-note strong{color:#9a3412;margin-right:4px}.note-check{color:#b63e0b;background:#ffedd5;border-radius:50%;place-items:center;width:18px;height:18px;font-size:15px;display:grid}.coming-panel{text-align:center;padding:70px 20px}.coming-icon{color:#b45309;background:#fff0e0;border-radius:16px;place-items:center;width:52px;height:52px;margin:0 auto 14px;font-size:26px;display:grid}.coming-panel h2{color:#2a4058;margin:0;font-size:19px}.coming-panel p{color:#8693a1;margin:8px auto 18px;font-size:15px}.modal-backdrop{z-index:10;background:#10223780;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.detail-modal{background:#fff;border-radius:12px;width:min(650px,100%);max-height:90vh;padding:22px;overflow:auto;box-shadow:0 18px 60px #0a172633}.modal-top{border-bottom:1px solid #edf0f3;justify-content:space-between;align-items:flex-start;padding-bottom:16px;display:flex}.modal-top h2{color:#273e56;margin:0;font-size:22px}.modal-top p{color:#7d8b9a;margin:5px 0 0;font-size:14px}.close-button{color:#566b7f;background:#f1f4f7;border:0;border-radius:50%;width:29px;height:29px;font-size:24px;line-height:1}.detail-summary{background:#fff7ed;border:1px solid #fed7aa;border-radius:9px;margin:17px 0;padding:13px 15px}.detail-summary span,.detail-summary small{color:#7b8da1;font-size:14px;display:block}.detail-summary strong{color:#b63e0b;margin:3px 0;font-size:28px;display:block}.detail-grid{grid-template-columns:1fr 1fr;gap:0 22px;display:grid}.detail-item{border-bottom:1px solid #f0f2f5;justify-content:space-between;gap:10px;padding:11px 0;font-size:14px;display:flex}.detail-item span{color:#7f8e9d}.detail-item strong{color:#334b64;text-align:right;font-weight:600}.detail-footnote{color:#64748b;margin-top:16px;font-size:13px}.modal-loading{color:#718398;text-align:center;padding:40px;font-size:15px}.modal-error{margin:16px 0 0}.detail-modal .alert-error{padding:14px;display:block}@media (width<=1050px){.sidebar{width:235px}.page-content{padding:25px 22px}.topbar{padding:0 22px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.app-shell{display:block}.sidebar{width:100%;padding:10px 12px;display:block}.brand-lockup{padding:0 5px 11px}.brand-mark{border-radius:9px;width:32px;height:32px}.brand-name{font-size:16px}.brand-name span{margin-left:0;font-size:13px;display:block}.nav-caption,.sidebar-footer,.sidebar-spacer,.settings-nav{display:none}.main-nav{gap:3px;display:flex;overflow:auto}.nav-item{flex-shrink:0;gap:6px;width:auto;padding:8px 9px;font-size:14px}.nav-icon{width:auto}.nav-count{display:none}.topbar{flex-wrap:wrap;gap:12px;height:auto;min-height:64px;padding:12px 14px}.topbar-right{gap:0}.connection{display:none}.user-chip{font-size:13px}.avatar{width:25px;height:25px}.breadcrumb{font-size:14px}.page-content{padding:20px 12px}.page-heading{flex-direction:column;align-items:flex-start;margin-bottom:17px}.page-heading h1{font-size:26px}.metric-grid{gap:9px}.metric-card{min-height:88px;padding:13px}.metric-label{font-size:13px}.metric-value{font-size:19px}.metric-green .metric-value{font-size:16px}.panel-heading{flex-direction:column;align-items:flex-start;padding:14px}.panel-heading .button{align-self:flex-start}.search-box{width:100%}.alert{flex-wrap:wrap}.alert .button{margin-left:32px}.detail-modal{padding:17px}.detail-grid{grid-template-columns:1fr}.detail-item{padding:9px 0}.source-note{align-items:flex-start;line-height:1.6}}.workflow-page{gap:16px;display:grid}.workflow-actions,.queue-tabs,.pagination{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.workflow-actions{justify-content:space-between}.workflow-note{color:#718096;font-size:15px;line-height:1.8}.pagination{justify-content:flex-end;padding:16px;font-size:15px}.assignment-form{flex-wrap:wrap;align-items:flex-end;gap:16px;padding:20px;display:flex}.assignment-form label{flex:1;gap:7px;min-width:170px;font-size:15px;display:grid}.assignment-form select,.assignment-form input{font:inherit;border:1px solid #dce3ea;border-radius:7px;padding:10px}.workflow-modal{width:min(850px,95vw)}.case-history{border-left:2px solid #e0e8f2;margin:18px 0 25px;padding-left:18px}.case-history article{margin-bottom:22px;font-size:16px}.case-history article p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;line-height:1.7}.case-history small{color:#718096}.contact-form{border-top:1px solid #e5eaf0;padding-top:22px}.contact-form textarea{resize:vertical;width:100%;min-height:100px;font:inherit;border:1px solid #dce3ea;border-radius:7px;padding:10px}.contact-form label{font-size:15px}.contact-form h3,.workflow-modal h3{color:#344c64;font-size:18px}.legal-actions{border-top:1px solid #e5eaf0;margin-top:24px;padding-top:20px}.legal-actions .detail-grid{margin-bottom:16px}.legal-actions label{font-size:15px}.auth-screen{background:radial-gradient(circle at 50% 8%,#ffedd5,#faf9f7 48%,#fff0e5);flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:28px 16px;display:flex}.auth-brand{color:#7c2d12;align-items:center;gap:11px;margin-bottom:20px;display:flex}.auth-brand strong,.auth-brand span{display:block}.auth-brand strong{font-size:22px}.auth-brand span{color:#64748b;margin-top:2px;font-size:14px}.auth-card{background:#fff;border:1px solid #e6ebf0;border-radius:14px;width:min(430px,100%);padding:27px;box-shadow:0 14px 44px #1d355412}.auth-card h1{color:#283f57;margin:5px 0 4px;font-size:26px}.auth-subtitle{color:#7e8b98;margin:0 0 20px;font-size:15px;line-height:1.65}.auth-form,.admin-form{gap:14px;display:grid}.auth-form label,.admin-form label,.tenant-select{color:#53687d;gap:6px;font-size:14px;font-weight:600;display:grid}.auth-form input,.auth-form select,.admin-form input,.admin-form select,.tenant-select select{color:#30475f;width:100%;min-height:38px;font:inherit;background:#fff;border:1px solid #dce3ea;border-radius:7px;outline:none;padding:8px 10px}.auth-form input:focus,.auth-form select:focus,.admin-form input:focus,.admin-form select:focus,.tenant-select select:focus{border-color:#c76a2a;box-shadow:0 0 0 3px #c76a2a26}.auth-form small,.admin-form small,.form-hint{color:#64748b;font-size:13px;font-weight:400}.auth-submit{justify-content:center;width:100%;min-height:39px;margin-top:3px}.auth-footnote{color:#64748b;text-align:center;margin:17px 0 0;font-size:13px}.auth-logout{margin:16px auto 0;display:block}.text-button{color:#b63e0b;font:inherit;cursor:pointer;background:0 0;border:0;padding:3px 5px;font-size:13px}.form-error{color:#a3443d;background:#fff7f6;border:1px solid #f2d4d2;border-radius:6px;padding:9px 10px;font-size:14px}.user-chip{gap:8px}.signout-button{white-space:nowrap;margin-left:2px}.user-admin-page{gap:15px;display:grid}.admin-intro{justify-content:space-between;align-items:center;gap:16px;display:flex}.admin-intro h2{color:#314a63;margin:0;font-size:18px}.admin-intro p{color:#64748b;margin:5px 0 0;font-size:14px}.tenant-select{min-width:210px}.admin-forms{grid-template-columns:1fr 1fr;gap:15px;display:grid}.admin-form-panel,.admin-table-panel{padding:17px}.form-step{align-items:center;gap:10px;margin-bottom:15px;display:flex}.form-step>span{color:#fff;background:#c76a2a;border-radius:50%;place-items:center;width:27px;height:27px;font-size:15px;font-weight:700;display:grid}.form-step h3{color:#344c64;margin:0;font-size:15px}.form-step p{color:#64748b;margin:3px 0 0;font-size:13px}.form-row{grid-template-columns:1fr 1fr;gap:9px;display:grid}.role-choices{border:1px solid #e7ebef;border-radius:7px;flex-wrap:wrap;gap:8px 14px;padding:10px;display:flex}.role-choices legend{color:#53687d;padding:0 4px;font-size:13px}.role-choices label{color:#617387;align-items:center;gap:5px;font-size:13px;font-weight:400;display:flex}.role-choices input{accent-color:#c76a2a}.role-choices input[type=checkbox],table input[type=checkbox]{accent-color:#c76a2a;flex:none;width:20px;height:20px;min-height:20px}.admin-table-panel .panel-heading{padding:0 0 12px}.status-chip{color:#64748b;background:#f0f2f5;border-radius:20px;padding:4px 8px;font-size:13px;display:inline-block}.status-active{color:#327553;background:#e9f6ee}.alert-success{background:#f1faf4;border-color:#cce9d8}.alert-success .alert-icon{color:#368254;background:#dff2e5}.alert-success strong{color:#327553}.close-alert{color:#617387;cursor:pointer;background:0 0;border:0;margin-left:auto;font-size:13px}@media (width<=700px){.auth-card{padding:21px}.admin-forms{grid-template-columns:1fr}.admin-intro{flex-direction:column;align-items:stretch}.tenant-select{min-width:unset}.user-chip>span{display:none}.signout-button{font-size:13px}}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:3px;outline:3px solid #c76a2a}.button-primary:hover{color:#fff;background:#bf4606;border-color:#bf4606}.button-light{color:#914315;background:#fffaf5;border-color:#f2d2b8}.button-light:hover{background:#ffeddd;border-color:#e8ae83}.button:disabled{box-shadow:none}.nav-caption{color:#6b7280}.thai-date-input{gap:7px;min-width:0;font-weight:400;display:grid;position:relative}.thai-date-controls{gap:5px;display:flex}.thai-date-controls input{cursor:pointer;width:100%;min-width:0}.thai-calendar{z-index:30;background:#fff;border:1px solid #f2d2b8;border-radius:10px;width:300px;max-width:85vw;padding:12px;position:absolute;top:100%;left:0;box-shadow:0 8px 28px #30201026}.thai-calendar-heading{justify-content:space-between;gap:8px;margin-bottom:8px;display:flex}.thai-calendar-heading select{width:50%;min-width:0}.thai-calendar-grid{text-align:center;grid-template-columns:repeat(7,1fr);gap:3px;display:grid}.thai-calendar-grid button{color:#763810;background:#fff7ed;border:0;border-radius:6px;min-height:34px}.thai-calendar-grid button:hover,.thai-calendar-grid button[aria-pressed=true]{color:#fff;background:#d9570b}.thai-calendar-grid button:disabled{opacity:.3;cursor:default}.panel:has(.thai-calendar){z-index:5;position:relative;overflow:visible}.customer-info{border-top:1px solid #eee5dc;border-bottom:1px solid #eee5dc;margin:20px 0;padding:18px 0}.contact-block{overflow-wrap:anywhere;border:1px solid #eee5dc;border-radius:8px;margin:12px 0;padding:14px}.contact-block h4{margin:0 0 10px}.contact-block p{margin:9px 0 0}.contact-phone{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.contact-phone a{color:#a33e08}.payment-excluded{background:#faf4f2}.customer-info details summary{cursor:pointer;color:#a33e08}.workflow-modal{flex-direction:column;width:min(1500px,97vw);height:94vh;max-height:94vh;display:flex;overflow:hidden}.workflow-modal .modal-top{flex:none}.case-workspace{flex:1;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;min-height:0;padding-top:18px;display:grid}.case-view-section,.case-record-section{min-width:0;padding:0 10px 24px 0;overflow:auto}.case-record-section{background:#fffaf5;border:1px solid #f1dfcf;border-radius:10px;padding:18px}.case-record-section .contact-form{border-top:0;padding-top:0}.case-record-section .contact-form h3{margin-top:0}.case-record-section textarea{min-height:160px}.workspace-heading{margin-top:0}.history-only-modal{width:min(1200px,97vw)}.history-only-modal .case-workspace{display:block;overflow:auto}.history-only-modal .case-view-section{padding:0 16px 24px;overflow:visible}.customer-info table{min-width:580px}@media (width<=1000px){.case-workspace{grid-template-columns:1fr;overflow:auto}.case-view-section,.case-record-section{overflow:visible}.case-record-section .form-row{grid-template-columns:1fr}}.customer-info .customer-refresh{border-radius:50%;place-items:center;width:34px;height:34px;min-height:34px;margin-left:auto;padding:0;font-size:22px;display:inline-grid}.customer-info .contact-extra summary{color:#763810;cursor:pointer;font-weight:600}.contact-extra-content{padding-top:12px}.overdue-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 20px;display:grid}.overdue-facts>div{background:#fffaf5;border:1px solid #f1dfcf;border-radius:8px;padding:12px}.overdue-facts span{color:#64748b;font-size:14px;display:block}.overdue-facts strong{color:#93471c;margin-top:5px;font-size:18px;display:block}@media (width<=450px){.overdue-facts{grid-template-columns:1fr}}.management-overview{gap:12px;margin-bottom:32px;display:grid}.management-overview h2{margin:0;font-size:22px}.management-overview p{margin:0}.overview-card{text-align:left;font:inherit;cursor:pointer}.overview-card:hover{border-color:#d88a53;box-shadow:0 3px 12px #c76a2a18}.overview-card:disabled{cursor:default}.activity-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}@media (width<=1050px){.activity-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}.dashboard-content{padding-top:20px}.dashboard-content .page-heading{align-items:center;margin-bottom:14px}.dashboard-content .page-heading h1{font-size:26px;line-height:1.4}.dashboard-content .overview-refresh{border-radius:50%;place-items:center;width:36px;height:36px;min-height:36px;padding:0;display:grid}.overview-refresh .refresh-icon{margin:0;font-size:21px}.dashboard-content .management-overview{gap:10px;margin-bottom:24px}.overview-section-label{color:#64748b;font-size:14px;font-weight:600}.management-overview .metric-grid{gap:12px;margin-bottom:4px}.management-overview .overview-card{border-color:#e6e8eb;min-height:106px;padding:12px 16px;box-shadow:0 1px 4px #1e293b05}.overview-card .metric-value{margin-top:5px;font-size:27px}.overview-card .contract-sub{margin-top:1px;font-size:12px}.overview-card:after{background:var(--status-color);top:12px;bottom:12px}.overview-card .metric-value{color:var(--status-color)}.overview-card .metric-label{color:#526174}.overview-card.tone-orange{--status-color:#c65b18}.overview-card.tone-red{--status-color:#bd414a}.overview-card.tone-purple{--status-color:#7956a8}.overview-card.tone-green{--status-color:#288466}.overview-card.tone-slate{--status-color:#506b86}.overview-filter-bar{background:#fff;border:1px solid #e6e8eb;border-radius:9px;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:4px;padding:10px 14px;display:flex}.overview-filter-bar>strong{color:#334155;margin-right:4px;font-size:15px}.overview-filter-bar>label{color:#64748b;align-items:center;gap:8px;font-size:14px;display:flex}.overview-filter-bar .thai-date-input{width:176px}.overview-filter-bar .thai-date-controls input{background:#fff;border:1px solid #dce3ea;border-radius:6px;height:36px;padding:7px 9px;font-size:14px}.overview-filter-bar .button{height:36px;min-height:36px;padding:5px 10px;font-size:14px}.overview-definitions{color:#64748b;margin-bottom:2px;font-size:13px}.overview-definitions summary{cursor:pointer;width:fit-content}.overview-definitions p{padding:6px 0;line-height:1.7}.management-overview .panel-heading{padding:13px 16px}.management-overview .panel-heading h2{font-size:18px}@media (width<=700px){.dashboard-content .page-heading{flex-direction:row}.dashboard-content .page-heading h1{font-size:22px}.overview-filter-bar{gap:8px}.overview-filter-bar>strong{width:100%}.overview-filter-bar>label{flex:220px}.overview-filter-bar .thai-date-input{flex:1;width:auto}}.brand-mark{isolation:isolate;color:#fff;background:linear-gradient(140deg,#ffba51 0%,#f78725 38%,#df4e0b 100%);border-radius:14px;flex:none;width:46px;height:46px;position:relative;overflow:hidden;box-shadow:0 4px 10px #d9570b26,inset 0 1px #fff6}.brand-mark svg{z-index:-1;width:100%;height:100%;position:absolute;inset:0}.brand-mark>span{color:#fff;letter-spacing:-.4px;text-shadow:0 1px 2px #8e300326;margin:0;padding-top:4px;font-size:14px;font-weight:800;line-height:1;display:block}.brand-name,.auth-brand strong{color:#20364e;letter-spacing:-.4px}@media (width<=700px){.brand-mark{border-radius:11px;width:38px;height:38px}.brand-mark>span{font-size:12px}}:root{color:#334155;background:#f7f8fa}.ui-icon{vertical-align:middle;flex:none}.button{border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:8px 12px;display:inline-flex}.button-light{color:#475569;background:#fff;border-color:#dce2e9;box-shadow:0 1px 2px #0f172a03}.button-light:hover{color:#24364a;background:#f8fafc;border-color:#bac5d2}.button-primary{color:#fff;background:#db590d;border-color:#db590d;box-shadow:0 2px 5px #d9570b18}.button-primary:hover{background:#c34808;border-color:#c34808}.icon-button{border-radius:8px;width:36px;height:36px;min-height:36px;padding:0}.page-content{padding-top:20px}.page-heading{flex-direction:row;align-items:center;margin-bottom:18px}.page-heading h1{font-size:26px;line-height:1.4}.page-heading .overview-refresh{border-radius:50%;width:36px;height:36px;min-height:36px;padding:0}.nav-icon{justify-content:center;width:22px;display:inline-flex}.nav-item{padding:10px 12px}.nav-item.active{color:#ab460f;background:#fff0e4;box-shadow:inset 3px 0 #df661a}.nav-item:hover{background:#faf5f0}.sidebar{border-right-color:#e5e9ef}.sidebar-footer{border-top-color:#e5e9ef}.panel{border-color:#e4e9ef;box-shadow:0 1px 4px #1e293b04}.panel-heading{gap:12px;padding:13px 16px}.panel-heading h2{font-size:17px}.panel-heading .search-box{margin-left:auto}.search-box{background:#fff;width:300px;min-height:40px}.search-box input{font-size:15px}thead{background:#f3f5f8}th{color:#596a7d;padding:10px 14px;font-size:14px}td{border-top-color:#edf0f4;padding:11px 14px;font-size:15px}tbody tr:hover{background:#fafbfd}.amount-cell{font-variant-numeric:tabular-nums}.status-chip{color:#58687b;background:#edf1f5;border:1px solid #e4e9ef}.status-active{color:#267456;background:#edf8f1;border-color:#d8eddf}.close-button{place-items:center;width:32px;height:32px;display:inline-grid}.compact-filters{align-items:flex-end;gap:12px;padding:12px 14px}.compact-filters>label{color:#526174;flex:0 200px;gap:4px;min-width:150px;font-size:14px}.compact-filters input,.compact-filters select{border-color:#dce2e9;border-radius:7px;min-height:38px;padding:7px 9px}.compact-filters>label>select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.line-chat-actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;display:flex}.line-chat-editor{background:#fff;border:1px solid #dce3ea;border-radius:8px;flex-basis:100%;gap:10px;min-width:0;padding:12px;display:grid}.line-chat-editor>label{gap:6px;display:grid}.line-chat-editor input[type=url]{box-sizing:border-box;width:100%;min-width:0;font:inherit;border:1px solid #dce3ea;border-radius:6px;padding:9px}.line-chat-editor .line-chat-confirm{align-items:flex-start;gap:8px;font-size:14px;display:flex}.line-chat-editor>div{flex-wrap:wrap;gap:8px;display:flex}.line-member-contracts{overflow-wrap:anywhere;max-width:360px}.line-member-uid{overflow-wrap:anywhere;max-width:280px;font-size:13px;display:block}.line-member-actions{flex-wrap:wrap;gap:8px;display:flex}.compact-filters .thai-date-input{width:190px;max-width:100%}.compact-filters .thai-date-controls input{width:100%;min-width:0}.compact-filters .thai-date-controls .button{height:38px;min-height:38px;padding:7px}.compact-filters>.workflow-note{flex:200px;margin:0;font-size:13px}.thai-date-controls .button{padding:8px}.queue-tabs{gap:7px}.workflow-page{gap:12px}.pagination{padding:12px 16px}@media (width<=700px){.page-heading{flex-direction:row;align-items:center}.page-heading h1{font-size:22px}.panel-heading{flex-flow:wrap;align-items:center}.panel-heading>div:first-child{flex:220px}.panel-heading .search-box{flex:210px;width:auto;margin-left:0}.panel-heading .button{align-self:auto}.compact-filters>label{flex:180px;min-width:0}.compact-filters .thai-date-input{width:100%}}.case-status-open{color:#526b88;background:#edf3f9;border-color:#dce7f1}.case-status-legal{color:#76519d;background:#f4eefb;border-color:#e9ddf5}.case-status-closed{color:#28765a;background:#edf8f1;border-color:#d8eddf}.record-modal{background:#f5f7fa;padding:0}.record-modal>.modal-top{background:#fff;padding:16px 22px}.record-modal>.case-workspace{gap:16px;padding:16px}.record-modal .case-view-section{background:#fff;border:1px solid #e5e9ef;border-radius:12px;padding:18px}.record-modal .case-record-section{background:#fff7ef;border-color:#f2dcc8;border-radius:12px;padding:18px}.workspace-heading,.record-heading{align-items:center;gap:8px;display:flex}.workspace-tag{color:#64748b;background:#f1f5f9;border-radius:20px;margin-left:auto;padding:3px 8px;font-size:12px;font-weight:400}.record-heading{color:#9a4515!important}.record-modal .case-record-section label{color:#46566b;gap:6px}.record-modal .case-record-section input,.record-modal .case-record-section select,.record-modal .case-record-section textarea{background:#fff;border-color:#dfd9d2}.record-modal .case-record-section .workflow-note{margin-top:0;font-size:13px;line-height:1.7}.record-modal .case-record-section textarea{min-height:180px}.record-footer{background:#fff;border-top:1px solid #e4e9ef;flex:none;justify-content:space-between;align-items:center;gap:14px;padding:12px 22px;display:flex;box-shadow:0 -3px 12px #0f172a05}.record-footer>span{color:#64748b;align-items:center;gap:7px;font-size:14px;display:flex}.record-footer .button{min-width:220px;min-height:44px}.record-modal>.form-error,.record-modal>.alert{margin:8px 16px 0}@media (width<=1000px){.record-modal .case-workspace{display:block}.record-modal .case-record-section{margin-top:16px}}@media (width<=700px){.record-modal>.modal-top{padding:12px 14px}.record-modal>.case-workspace{padding:10px}.record-modal .case-view-section,.record-modal .case-record-section{padding:14px}.record-footer{padding:10px 14px}.record-footer>span{display:none}.record-footer .button{width:100%}}.appointment-page{gap:14px;display:grid}.appointment-layout{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);align-items:start;gap:16px;display:grid}.appointment-legend{flex-wrap:wrap;gap:8px;margin-left:auto;display:flex}.appointment-kind{border-radius:6px;padding:3px 8px;font-size:13px;display:inline-block}.kind-contact{color:#a64b12;background:#fff0e2}.kind-promise{color:#26734d;background:#eaf6ee}.kind-legal{color:#73509a;background:#f1eafb}.month-toolbar{align-items:center;gap:10px;padding:14px 16px;display:flex}.month-toolbar h2{text-align:center;flex:1;margin:0;font-size:20px}.appointment-month-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:0 10px 10px;display:grid}.month-weekday{text-align:center;color:#64748b;padding:6px 0;font-size:14px}.month-day{text-align:left;min-width:0;min-height:100px;font:inherit;background:#fff;border:1px solid #e8edf2;border-radius:8px;flex-direction:column;gap:4px;padding:7px;display:flex}.month-day:hover{background:#faf6f2;border-color:#e5b897}.month-day.is-selected{background:#fff8f1;border:2px solid #dd6a20;padding:6px}.month-day-number{font-size:15px;font-weight:600}.is-today .month-day-number{color:#fff;text-align:center;background:#dc5a0c;border-radius:50%;width:26px;height:26px}.month-day-events{gap:3px;width:100%;display:grid}.day-kind{white-space:nowrap;text-overflow:ellipsis;border-radius:4px;padding:1px 4px;font-size:12px;overflow:hidden}.calendar-note{color:#64748b;margin:0;padding:0 14px 12px;font-size:13px}.appointment-list{max-height:640px;overflow:auto}.appointment-item{border-bottom:1px solid #edf0f4;justify-items:start;gap:7px;padding:16px;display:grid}.appointment-item strong{color:#334155;font-size:16px}.appointment-item p{color:#64748b;margin:0;font-size:14px}@media (width<=1100px){.appointment-layout{grid-template-columns:1fr}}@media (width<=700px){.month-day{min-height:76px;padding:4px}.month-day.is-selected{padding:3px}.month-toolbar{gap:6px;padding:12px 10px}.month-toolbar h2{font-size:17px}.day-kind-label{display:none}.month-day-events{flex-wrap:wrap;gap:2px;display:flex}.appointment-legend{margin-left:0}}.guide-intro{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.guide-tag{color:#b64d13;align-items:center;gap:8px;font-weight:700;display:inline-flex}.guide-intro p{color:#64748b;margin:10px 0 18px}.guide-version{color:#64748b;white-space:nowrap;font-size:14px}.guide-search{width:100%;max-width:720px}.guide-search input{width:100%}.guide-result-count{color:#64748b;margin:12px 0;font-size:14px}.guide-layout{grid-template-columns:minmax(240px,310px) minmax(0,1fr);align-items:start;gap:22px;display:grid}.guide-topics{gap:4px;padding:8px;display:grid}.guide-topics button{text-align:left;color:#334155;background:0 0;border:0;border-radius:8px;padding:12px}.guide-topics strong{font-size:16px;display:block}.guide-topics span{color:#64748b;margin-top:4px;font-size:14px;line-height:1.6;display:block}.guide-topics button:hover{background:#fff7ed}.guide-topics button.is-active{color:#9a3412;background:#ffedd5;box-shadow:inset 3px 0 #f97316}.guide-article{padding:26px 30px}.guide-article-heading{border-bottom:1px solid #e2e8f0;padding-bottom:18px}.guide-article-heading h2{margin:0;font-size:23px;line-height:1.5}.guide-article-heading p{color:#64748b;margin:8px 0 0}.guide-steps{margin:24px 0;padding-left:28px}.guide-steps li{overflow-wrap:anywhere;margin:0 0 20px;padding-left:8px;font-size:17px;line-height:1.9}.guide-steps li::marker{color:#c2410c;font-weight:700}.guide-note{background:#fff7ed;border-left:3px solid #f59e0b;border-radius:0 8px 8px 0;margin:20px 0;padding:16px 18px;line-height:1.8}.guide-note strong{color:#9a3412}.guide-note p{margin:5px 0 0}.guide-shortcut{align-items:center;gap:6px;display:inline-flex}.guide-topics button:focus-visible,.guide-article-heading h2:focus-visible{outline-offset:3px;outline:3px solid #ea580c}@media (width<=1100px){.guide-shortcut span{display:none}.guide-layout{grid-template-columns:240px minmax(0,1fr);gap:16px}.guide-article{padding:22px}}@media (width<=760px){.guide-layout{grid-template-columns:1fr}.guide-topics{max-height:290px;overflow:auto}.guide-intro{flex-direction:column;gap:0;margin-bottom:14px}.guide-article{padding:20px}}.debt-amount-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:12px;display:grid}.debt-amount-grid>div{min-width:0}.debt-amount-grid strong{overflow-wrap:anywhere;font-size:22px}.debt-grand-total{border-left:1px solid #e8c8ad;padding-left:14px}.financial-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}@media (width<=1000px){.debt-amount-grid{grid-template-columns:1fr;gap:12px}.debt-grand-total{border-top:1px solid #e8c8ad;border-left:0;padding:12px 0 0}}@media (width<=760px){.financial-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=480px){.financial-metrics{grid-template-columns:1fr}}.loan-data-scroll{overscroll-behavior:contain;max-height:min(420px,55vh);overflow:auto}.loan-data-scroll table{border-collapse:separate;border-spacing:0}.loan-data-scroll thead th{z-index:2;background:#f3f5f8;position:sticky;top:0;box-shadow:inset 0 -1px #dce3eb}.loan-data-scroll:focus-visible{outline-offset:2px;outline:2px solid #ea580c}.installment-filters{gap:12px;margin:12px 0;display:flex}.installment-filters label{color:#52667b;gap:6px;font-size:15px;display:grid}.installment-filters select{min-width:220px;max-width:100%;font:inherit;color:#20364e;background:#fff;border:1px solid #dce3eb;border-radius:7px;padding:9px 12px}.schedule-overdue{color:#b91c1c;font-weight:600}.pre-due-setting{flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:16px;padding:14px 18px;display:flex}.pre-due-setting label{align-items:center;gap:8px;display:flex}.pre-due-setting input{width:86px}.pre-due-setting small{color:#64748b}.follow-up-pre{color:#176450;background:#e8f4f1}.follow-up-overdue{color:#a54410;background:#fff0e4}.pre-due-setting input{min-height:40px;font:inherit;color:#253447;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px}.pre-due-setting input:focus{outline-offset:1px;outline:2px solid #fdba74}.schedule-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.expanded-schedule-dialog{color:#26384c;background:#fff;border:1px solid #e2e8f0;border-radius:14px;width:min(1680px,96vw);max-width:96vw;height:90vh;max-height:94vh;margin:auto;padding:0;overflow:hidden;box-shadow:0 24px 80px #0f172a55}.expanded-schedule-dialog[open]{flex-direction:column;display:flex}.expanded-schedule-dialog::backdrop{background:#0f172a99}.expanded-schedule-dialog>.modal-top{flex:none;padding:18px 22px}.expanded-schedule-note{color:#64748b;flex:none;margin:0;padding:12px 22px;font-size:13px;line-height:1.7}.expanded-schedule-scroll{overscroll-behavior:contain;border-block:1px solid #e2e8f0;flex:1;min-height:0;overflow:auto}.expanded-schedule-scroll:focus-visible{outline-offset:-2px;outline:2px solid #ea580c}.expanded-schedule-scroll table{border-collapse:separate;border-spacing:0;width:100%;min-width:1450px;font-size:14px}.expanded-schedule-scroll th,.expanded-schedule-scroll td{white-space:nowrap;padding:12px 14px}.expanded-schedule-scroll thead th{z-index:2;color:#34465a;background:#f1f5f9;position:sticky;top:0;box-shadow:inset 0 -1px #d6e0eb}.expanded-schedule-scroll tfoot th,.expanded-schedule-scroll tfoot td{z-index:3;color:#7c360d;background:#fff0df;font-weight:700;position:sticky;bottom:0;box-shadow:inset 0 2px #edb88d}.expanded-schedule-scroll .schedule-paid-row td{background:#f8fafc}.expanded-schedule-scroll .schedule-overdue-row td{background:#fff7ed}.expanded-schedule-dialog>.form-error{margin:16px 22px}@media (width<=700px){.expanded-schedule-dialog{height:94vh}.expanded-schedule-dialog>.modal-top{padding:14px}.expanded-schedule-dialog .modal-top h2{font-size:19px}.expanded-schedule-note{padding:10px 14px}}.line-contact{background:#f7fcf9;border-left:3px solid #06a85a}.line-linked{color:#176844;background:#e0f5e9}.line-contact-id{flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;display:flex}.line-contact-id code{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all;font-size:13px}.line-contact-id>span{color:#64748b;font-size:13px}.line-id-button{color:#14754b;cursor:pointer;text-align:left;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:3px;max-width:100%;padding:4px 0;display:inline-flex}.line-id-button code{text-underline-offset:3px;text-decoration:underline}.line-id-button>span{font-size:12px}.line-id-button:focus-visible{outline-offset:3px;border-radius:4px;outline:2px solid #22a86c}.line-profile-dialog{color:#26384c;border:0;border-radius:16px;width:min(520px,94vw);max-height:92vh;padding:0;overflow:auto;box-shadow:0 24px 80px #0f172a55}.line-profile-dialog::backdrop{background:#0f172a99}.line-profile-dialog .modal-top{padding:18px 22px}.line-profile-body{text-align:center;padding:24px}.line-profile-body h3{margin:16px 0 8px;font-size:24px}.line-profile-avatar{object-fit:cover;border:4px solid #e2f6eb;border-radius:50%;width:140px;height:140px;margin:0 auto;display:block}.line-profile-placeholder{color:#178353;background:#e8f7ef;place-items:center;font-size:44px;display:grid}.line-profile-status{white-space:pre-wrap;overflow-wrap:anywhere;color:#64748b}.line-profile-body dl{text-align:left;border-top:1px solid #e2e8f0;margin:24px 0 0;padding-top:16px}.line-profile-body dt{color:#64748b;margin-top:12px;font-size:13px}.line-profile-body dd{overflow-wrap:anywhere;margin:4px 0}.line-profile-footer{background:#f8fafc;border-top:1px solid #e2e8f0;justify-content:flex-end;gap:10px;padding:14px 22px;display:flex}
