.xc-desc{white-space:pre-wrap;overflow-wrap:anywhere;max-width:760px;line-height:1.8;color:var(--mu)}.xc-product-desc{display:block;white-space:normal;color:var(--mu);font-size:10px;line-height:1.6;margin-top:5px;max-width:220px}.xc-partner-cell{min-width:235px;width:44%}.xc-partner-cell select{width:100%;max-width:100%;display:block;margin-bottom:7px}.xc-partner-cell [data-partner-type]{font-size:11px;background:var(--sf2);color:var(--mu);padding:6px 8px}.xc-inline-create{display:inline-block;border:0;padding:3px 0;background:none;color:var(--pr);font:600 11px Inter,system-ui;cursor:pointer}.xc-inline-create:hover{text-decoration:underline}.xpartner table{min-width:620px}.xpartner td{vertical-align:top}.xpartner td:nth-child(2),.xpartner td:nth-child(4){min-width:90px}.xpartner input{min-width:70px}#xc-rows table{min-width:520px}.xmodalbox{width:min(560px,100%)}@media(max-width:600px){.xc-partner-cell{min-width:215px}}

/* Product list follows the customer table: one compact table, no outer card. */
#xc-rows.xc-catalog-list .tw{border:1px solid var(--bd);border-radius:8px;background:var(--sf)}
#xc-rows.xc-catalog-list .xc-catalog-table{width:100%;min-width:520px;table-layout:fixed;border-collapse:collapse}
#xc-rows.xc-catalog-list .xc-catalog-table th{padding:10px 12px;font-size:12px;font-weight:600;text-transform:none;letter-spacing:normal;background:var(--sf2);color:var(--mu)}
#xc-rows.xc-catalog-list .xc-catalog-table th:first-child{width:30%}
#xc-rows.xc-catalog-list .xc-catalog-body td{padding:11px 12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;vertical-align:top}
.xc-catalog-link{display:inline;padding:0;border:0;background:none;color:var(--pr);font:500 13px/1.5 Inter,system-ui;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.xc-catalog-link:hover{text-decoration:underline;text-underline-offset:3px}
.xc-catalog-link:focus-visible{outline:2px solid var(--pr);outline-offset:3px;border-radius:2px;text-decoration:underline}
.xc-catalog-dialog{width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:24px;overflow:auto;border:1px solid var(--bd);border-radius:12px;background:var(--sf);color:var(--tx);font:13px/1.5 Inter,system-ui;box-shadow:0 24px 80px #14294c33}
.xc-catalog-dialog::backdrop{background:rgba(15,23,42,.45)}
.xc-catalog-dialog form{margin:0}.xc-catalog-dialog .xf textarea{resize:vertical}
#xc-rows.xc-catalog-list .xc-catalog-table th:last-child{width:164px}
#xc-rows.xc-catalog-list .xc-catalog-body td:last-child{white-space:nowrap}
.xc-status-filter{width:100%;height:34px;font-size:12px;padding:5px 8px;background:var(--sf);border:1px solid var(--bd)}
@media(max-width:600px){.xc-catalog-dialog{padding:18px}}
#xc-rows.xc-catalog-list .xc-desc{font-size:13px;line-height:1.5;color:var(--tx)}
/* Filters have a dedicated row aligned with their respective columns. */
#xc-rows.xc-catalog-list .xc-search-row td{padding:8px 12px;background:var(--sf);border-bottom:1px solid var(--bd)}
#xc-rows.xc-catalog-list .xc-column-search{display:flex;align-items:center;gap:8px;width:100%;height:34px;min-height:34px;box-sizing:border-box;border:1px solid var(--bd);border-radius:6px;padding:0 10px;background:var(--sf);transition:border-color .15s,box-shadow .15s}
#xc-rows.xc-catalog-list .xc-column-search svg{position:static;flex:none;color:var(--mu)}
#xc-rows.xc-catalog-list .xc-column-search:hover{border-color:#bac9dc}
#xc-rows.xc-catalog-list .xc-column-search:focus-within{border-color:var(--pr);box-shadow:0 0 0 2px #285dc512}
#xc-rows.xc-catalog-list .xc-column-search:focus-within svg{color:var(--pr)}
#xc-rows.xc-catalog-list .xc-column-search input{display:block;flex:1;width:100%;min-width:0;height:32px;min-height:32px;border:0;border-radius:0;background:transparent;padding:5px 0;color:var(--tx);font:400 12px/20px Inter,system-ui;box-shadow:none;outline:none;box-sizing:border-box}
#xc-rows.xc-catalog-list .xc-column-search input::placeholder{color:var(--mu);opacity:.7}
/* Pagination sits directly on the page below the table. */
.xc-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;margin:0;border:0;background:transparent;color:var(--mu);font-size:12px}
.xc-page-controls,.xc-page-size,.xc-pagination nav{display:flex;align-items:center;gap:6px}
.xc-page-controls{gap:22px}.xc-page-size{gap:10px;white-space:nowrap}
.xc-page-size select{width:64px;min-height:32px;height:32px;padding:4px 26px 4px 10px!important;background-position:right 9px center!important;font-size:12px;border:1px solid var(--bd);border-radius:6px;background-color:var(--sf);color:var(--tx)}
.xc-pagination nav button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border:1px solid var(--bd);border-radius:6px;background:var(--sf);color:var(--tx);font:500 12px Inter,system-ui;cursor:pointer}
.xc-pagination nav button[aria-current=page]{background:var(--pri-tint);border-color:#cbdcfb;color:var(--pr);font-weight:600}
.xc-pagination nav button:hover:not(:disabled){border-color:#9bb6e5;color:var(--pr)}
.xc-pagination nav button:disabled{opacity:.4;cursor:default}.xc-page-gap{padding:0 3px}
.xc-pagination button:focus-visible,.xc-page-size select:focus-visible{outline:2px solid var(--pr);outline-offset:2px}
@media(max-width:700px){.xc-pagination{align-items:flex-start;flex-wrap:wrap}.xc-page-controls{flex-wrap:wrap;gap:12px}}

#xc-rows.xc-partners-list .xc-catalog-table th:first-child{width:48%}

/* Customer list shares the compact catalog table, filter row and pagination. */
#xc-rows.xc-customers-list .xc-customer-table{min-width:1056px;table-layout:fixed;width:100%}
.xc-customer-table col:nth-child(1){width:106px}.xc-customer-table col:nth-child(2){width:148px}.xc-customer-table col:nth-child(3){width:160px}.xc-customer-table:not(.xc-customer-table-no-owner) col:nth-child(4){width:118px}.xc-customer-table col:nth-last-child(4){width:138px}.xc-customer-table col:nth-last-child(3){width:118px}.xc-customer-table col:nth-last-child(2){width:134px}.xc-customer-table col:nth-last-child(1){width:134px}
#xc-rows.xc-customers-list .xc-customer-table-no-owner{min-width:938px}
#xc-rows.xc-customers-list .xc-customer-table th:first-child,#xc-rows.xc-customers-list .xc-customer-table th:last-child{width:auto}
#xc-rows.xc-customers-list .xc-customer-table th,#xc-rows.xc-customers-list .xc-customer-table td{padding:11px 9px}
#xc-rows.xc-customers-list .xc-customer-table th{font-size:12px}
#xc-rows.xc-customers-list .xc-catalog-body td{font-size:12px;line-height:1.6}
#xc-rows.xc-customers-list .xc-search-row td{padding:8px 9px}
#xc-rows.xc-customers-list .xc-column-search{padding:0 8px;gap:6px}
#xc-rows.xc-customers-list .xc-customer-name{font-size:13px;font-weight:500}
.xc-customer-table small{display:block;color:var(--mu);font-size:11px;line-height:1.6;margin-top:3px}
.xc-customer-table .b{font-size:11px;padding:2px 7px;white-space:nowrap}
.xc-customer-date,.xc-customer-order>a{white-space:nowrap}.xc-customer-empty{color:var(--mu)}
.xc-customer-table abbr{cursor:help;text-underline-offset:3px}
.xc-milestone-line{display:flex;align-items:baseline;gap:6px;line-height:1.6}.xc-milestone-line>span:first-child{width:24px;flex:none;font-size:10px;color:var(--mu);font-weight:500}
.xc-date-filter{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;height:34px;padding:0 6px;border:1px solid var(--bd);border-radius:6px;background:#fff;color:var(--tx);font:400 11px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer;white-space:nowrap}
.xc-date-filter.empty{color:var(--mu)}.xc-date-filter svg,.xc-calendar-icon svg{position:static;display:block;flex:none;color:#677c97}
.xc-date-value{overflow:hidden;text-overflow:ellipsis}.xc-date-filter:hover,.xc-calendar-icon:hover{color:var(--pr);border-color:#a5b8d4}
.xc-date-filter:focus-visible,.xc-calendar-icon:focus-visible{outline:2px solid var(--pr);outline-offset:2px}.xc-date-filter[aria-expanded=true]{border-color:var(--pr);box-shadow:0 0 0 2px #285dc513}
#xc-rows.xc-customers-list .xc-order-date-search{padding-right:3px;gap:2px}.xc-calendar-icon{display:flex;align-items:center;justify-content:center;flex:none;width:24px;height:28px;padding:0;border:0;border-radius:4px;background:transparent;cursor:pointer}.xc-calendar-icon:hover,.xc-calendar-icon[aria-expanded=true]{background:var(--pri-tint)}
.xi-dialog{width:660px}.xi-dialog [hidden]{display:none!important}.xi-description{color:var(--mu);margin:-6px 0 20px;font-size:13px;line-height:1.7}
.xi-template{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--bd);border-radius:8px;background:var(--pri-tint)}.xi-template>svg{color:var(--pr);flex:none;position:static}.xi-template>div{flex:1;min-width:0}.xi-template strong{font-size:13px}.xi-template p{font-size:12px;color:var(--mu);margin:4px 0 0}.xi-template a{flex:none;text-decoration:none}
.xi-guide{color:var(--mu);font-size:12px;line-height:1.8;margin:12px 0 16px}.xi-guide strong{font-weight:500;color:var(--tx)}
.xi-dropzone{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px dashed var(--bd);border-radius:8px;padding:25px 16px;background:var(--sf2);text-align:center}.xi-dropzone>svg{position:static;color:#8398b5}.xi-dropzone>strong{font-size:13px;font-weight:500}.xi-dropzone>span{font-size:12px;color:var(--mu)}.xi-dropzone.dragover{border-color:var(--pr);background:var(--pri-tint)}
.xi-file{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--bd);border-radius:8px}.xi-file>svg{position:static;color:var(--pr);flex:none}.xi-file>div{min-width:0;flex:1}.xi-file strong{display:block;font-size:13px;overflow-wrap:anywhere}.xi-file span{display:block;color:var(--mu);font-size:12px;margin-top:4px}.xi-file>button{flex:none}
.xi-result:empty{display:none}.xi-result{margin-top:18px}.xi-loading{display:flex;align-items:center;gap:14px;background:var(--pri-tint);padding:17px;border-radius:8px}.xi-loading p,.xi-complete p{margin:5px 0 0;color:var(--mu);font-size:12px;line-height:1.7}.xi-loading strong,.xi-complete strong{font-size:14px}.xi-spinner{width:22px;height:22px;border:2px solid #d5e1f5;border-top-color:var(--pr);border-radius:50%;animation:xi-spin .75s linear infinite;flex:none}@keyframes xi-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.xi-spinner{animation-duration:2s}}
.xi-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}.xi-summary>div{border:1px solid var(--bd);border-radius:7px;padding:12px 14px}.xi-summary strong{display:block;font-size:22px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}.xi-summary span{display:block;font-size:12px;margin-top:6px;color:var(--mu)}.xi-summary .xi-success strong{color:var(--gr)}.xi-summary .xi-skipped strong{color:var(--am)}.xi-summary .xi-failed strong{color:var(--rd)}
.xi-issues{margin-top:18px}.xi-issues summary{font-size:12px;font-weight:600;cursor:pointer;padding:0 0 10px}.xi-issue-scroll{max-height:220px;overflow:auto;border:1px solid var(--bd);border-radius:7px}.xi-issues table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;font-size:12px}.xi-issues th{padding:9px 10px;background:var(--sf2);color:var(--mu);text-align:left;font-weight:500;position:sticky;top:0}.xi-issues th:first-child{width:48px}.xi-issues th:nth-child(2){width:32%}.xi-issues td{padding:10px;border-top:1px solid var(--bd);vertical-align:top;overflow-wrap:anywhere}.xi-row-status{display:block;font-weight:500;margin-bottom:3px}.xi-row-status.skipped{color:var(--am)}.xi-row-status.error{color:var(--rd)}
.xi-error{padding:13px 15px;background:var(--rdb);border:1px solid var(--bd);border-radius:7px;color:var(--rd);font-size:12px;line-height:1.8}.xi-error p{margin:4px 0 0}.xi-dialog button:disabled{opacity:.55;cursor:default}.xi-dialog .xmodalfoot{margin-top:22px}
@media(max-width:560px){.xi-template{flex-wrap:wrap;padding:13px}.xi-template a{margin-left:34px}.xi-summary>div{padding:11px}.xi-issues th:nth-child(2){width:29%}}
.xc-action-context{font-size:13px;line-height:1.7;margin:-5px 0 20px;color:var(--tx);font-weight:500}.xc-action-context span{display:block;color:var(--mu);font-size:12px;font-weight:400}.xc-action-error{font-size:12px;color:var(--rd);line-height:1.7;margin:0 0 14px}
.cl-history-table{width:100%;min-width:780px;table-layout:fixed;border-collapse:collapse}.cl-history-table th{padding:10px 12px;background:var(--sf2);font-size:12px;color:var(--mu);text-align:left;font-weight:500}.cl-history-table td{font-size:12px;line-height:1.7;padding:11px 12px;vertical-align:middle;border-top:1px solid var(--bd);overflow-wrap:anywhere}.cl-history-table th:first-child{width:184px}.cl-history-table th:nth-child(2){width:160px}.cl-history-table th:nth-child(3){width:120px}.cl-history-table th:last-child{width:auto}.cl-method{display:inline-block;padding:2px 7px;border-radius:5px;background:var(--pri-tint);color:var(--pr);font-size:11px}.cl-content{white-space:pre-wrap;overflow-wrap:anywhere}.tl p.cl-content{margin:7px 0 0;font-size:13px;line-height:1.7}.cl-empty{text-align:center;padding:32px 20px}.cl-empty h2{font-size:16px}.cl-empty p{font-size:13px;color:var(--mu)}

.cl-time-link{font-size:12px;white-space:nowrap;line-height:1.7}.cl-content-preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.cl-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:17px 20px;margin:0 0 22px}.cl-detail-meta>div:last-child{grid-column:1/-1}.cl-detail-meta dt,.cl-detail-label{font-size:12px;font-weight:600;color:var(--mu);line-height:1.6}.cl-detail-meta dd{margin:6px 0 0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.cl-detail-label{margin:0 0 8px}.cl-detail-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;background:var(--sf2);border:1px solid var(--bd);border-radius:7px;padding:13px 15px;max-height:50vh;overflow:auto;min-height:100px}
@media(max-width:560px){.cl-detail-meta{grid-template-columns:1fr}.cl-detail-meta>div:last-child{grid-column:auto}}
#xc-rows.fu-list .fu-table{min-width:1030px}#xc-rows.fu-list .fu-table th:first-child,#xc-rows.fu-list .fu-table th:last-child{width:auto}.fu-table col:nth-child(1){width:240px}.fu-table col:nth-child(2){width:174px}.fu-table col:nth-child(3){width:154px}.fu-table col:nth-child(4){width:156px}.fu-table col:nth-child(5){width:306px}
#xc-rows.fu-list .fu-table th,#xc-rows.fu-list .fu-table tbody.xc-catalog-body td{padding:11px 10px}#xc-rows.fu-list .fu-table tbody.xc-catalog-body td{font-size:12px;line-height:1.6;vertical-align:middle}.fu-table time{white-space:nowrap}.fu-table .b{font-size:11px;padding:2px 7px;white-space:nowrap}.fu-title-link,.fu-content-preview{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fu-title-link{font-size:13px}.fu-content-preview{color:var(--tx)}#xc-rows.fu-list .xc-search-row td{padding:8px 10px}

/* Customer profile actions follow the customer header reference. */
.ca-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ca-action-group{position:relative}.ca-header-actions .btn{height:36px;min-height:36px;box-sizing:border-box;white-space:nowrap}.ca-actions-trigger,.ca-order-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px}.ca-header-actions svg{position:static;flex:none}.ca-actions-trigger>svg{width:14px;height:14px}.ca-header-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:100;min-width:238px;padding:6px;background:var(--sf);border:1px solid var(--bd);border-radius:8px;box-shadow:0 10px 30px #22395a20}.ca-header-menu[hidden]{display:none}.ca-menu-label{padding:10px 12px 6px;color:var(--mu);font-size:11px;font-weight:600;line-height:1.5;letter-spacing:.03em;text-transform:uppercase}.ca-menu-separator{height:1px;background:var(--bd);margin:6px 8px}.ca-header-menu [role=menuitem]{display:block;width:100%;border:0;border-radius:5px;background:transparent;text-align:left;padding:10px 12px;color:var(--tx);font:500 13px/1.5 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}.ca-header-menu [role=menuitem]:hover,.ca-header-menu [role=menuitem]:focus-visible{background:var(--pri-tint);color:var(--pr);outline:none}.ca-actions-trigger[aria-expanded=true]{box-shadow:0 0 0 2px #c7d8f3}.ca-actions-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
@media(max-width:600px){.ca-header-actions{gap:6px}.ca-header-actions>.btn,.ca-actions-trigger{font-size:12px;padding-left:10px;padding-right:10px}.ca-header-menu{min-width:226px}.ca-header-menu [role=menuitem]{font-size:12px}}

/* Consistent filter-row and action-menu spacing. */
#xc-rows.xc-catalog-list .xc-search-row td{padding:10px 14px}
.ca-header-menu{padding:6px}
.ca-header-menu [role=menuitem]{padding:9px 12px}

/* Global follow up uses the same compact table as the customer tab. */
.fu-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 14px}.fu-toolbar>span{color:var(--mu);font-size:13px}
.fu-global .fu-table col:nth-child(1){width:22%}.fu-global .fu-table col:nth-child(2){width:18%}.fu-global .fu-table col:nth-child(3){width:16%}.fu-global .fu-table col:nth-child(4){width:15%}.fu-global .fu-table col:nth-child(5){width:14%}.fu-global .fu-table col:nth-child(6){width:15%}.fu-customer-link{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Center the empty state within the visible section of a scrollable table. */
:is(.tw,.om-table-wrap,.nn-table-wrap,.sa-table-wrap):has(.xc-empty-cell){container-type:inline-size}
table td.xc-empty-cell{padding:0!important;text-align:center;background:var(--sf)}
.xc-empty-state{position:sticky;left:0;width:min(100%,100cqw);box-sizing:border-box;display:grid;justify-items:center;align-content:center;gap:6px;min-height:100px;padding:24px 16px;color:var(--tx);line-height:1.5}
.xc-empty-state strong{font-size:14px;font-weight:600}
.xc-empty-state p{margin:0;font-size:12px;color:var(--mu)}
.xc-empty-state .btn{margin-top:6px}

/* Trạng thái trống: cho phép xuống dòng để không bị cắt chữ trên màn hình hẹp (bảng dùng nowrap) */
.xc-empty-state,.xc-empty-state strong,.xc-empty-state p{white-space:normal;overflow-wrap:anywhere}
.xc-empty-state p{max-width:520px}
