.crm-settings.kc-brand-master{width:100%;max-width:none;min-width:0;font-family:'IBM Plex Sans Thai',sans-serif;color:var(--crm-text,#1e1e1e)}
.kc-brand-master .kc-master-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.kc-brand-master .kc-master-heading :is(h1,h2){margin:0;font-size:24px;line-height:32px;font-weight:600}
.kc-brand-master .kc-master-count{font-size:13px;color:var(--crm-muted,#64748b);white-space:nowrap}
.kc-brand-master .kc-master-toolbar{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;margin:20px 0}
.kc-brand-master .kc-master-toolbar .crm-search{flex:1 1 0;min-width:0;width:auto;max-width:none;height:40px;margin:0;padding:0 14px;border-radius:8px;font:inherit;font-size:13px;background:var(--crm-surface,#fff);border:1px solid var(--crm-border,#d9d9d9)}
.kc-brand-master .kc-master-toolbar button{flex:0 0 auto;height:40px;margin:0;padding:0 18px;border-radius:8px;font:inherit;font-size:13px;white-space:nowrap;background:var(--crm-surface,#fff);color:var(--crm-text,#475569);border:1px solid var(--crm-border,#d9d9d9)}
.kc-brand-master .kc-master-toolbar .crm-save{background:var(--kc-section-action,#6053a2);border-color:var(--kc-section-action,#6053a2);color:#fff}
.kc-brand-master .crm-master-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--crm-border,#d9d9d9);border-radius:12px;background:var(--crm-surface,#fff);margin-top:20px}
.kc-brand-master .crm-master-table{width:100%;min-width:1080px;table-layout:fixed;border-collapse:collapse;margin:0;background:var(--crm-surface,#fff)}
.kc-brand-master .kc-master-col-code{width:13%}.kc-brand-master .kc-master-col-name{width:13%}.kc-brand-master .kc-master-col-description{width:25%}.kc-brand-master .kc-master-col-english{width:13%}.kc-brand-master .kc-master-col-order{width:7%}.kc-brand-master .kc-master-col-status{width:12%}.kc-brand-master .kc-master-col-actions{width:17%}
.kc-brand-master .crm-master-table :is(th,td){padding:0 18px;text-align:left;vertical-align:middle;font:inherit;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0}
.kc-brand-master .crm-master-table th{height:44px;background:var(--crm-background,#f8fafc);color:var(--crm-muted,#64748b);font-weight:500}
.kc-brand-master .crm-master-table td{height:56px}.kc-brand-master .crm-master-table td:first-child{color:var(--kc-section-action,#6053a2);font-weight:500}.kc-brand-master .crm-master-table td:nth-child(2){font-weight:500}.kc-brand-master .kc-master-description-cell{color:var(--crm-muted,#64748b)}
.kc-brand-master .crm-master-table tbody tr:hover{background:color-mix(in srgb,var(--kc-section-action,#6053a2) 4%,var(--crm-surface,#fff))}
.kc-brand-master .kc-master-row-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.kc-brand-master .kc-master-row-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;height:32px;margin:0;padding:0 12px;border-radius:8px;font:inherit;font-size:13px;background:var(--crm-surface,#fff);color:var(--crm-text,#475569);border:1px solid var(--crm-border,#d9d9d9)}
.kc-brand-master .kc-master-row-actions .kc-inventory-delete{background:#fff5f5;color:#b91c1c;border-color:#fecaca}.kc-brand-master .kc-master-row-actions .kc-inventory-delete svg{color:inherit}
.kc-brand-master .kc-master-status{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:26px;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:500;line-height:20px}.kc-brand-master .kc-master-status::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.kc-brand-master .kc-master-status.is-active{background:#ecfdf5;color:#047857}.kc-brand-master .kc-master-status.is-inactive{background:var(--crm-background,#f1f5f9);color:var(--crm-muted,#64748b)}
.kc-brand-master .kc-master-footer{padding:18px;color:var(--crm-muted,#64748b);font-size:12px;min-width:320px}
@media(max-width:600px){.kc-brand-master .kc-master-heading :is(h1,h2){font-size:20px}.kc-brand-master .kc-master-toolbar{flex-wrap:wrap;gap:8px}.kc-brand-master .kc-master-toolbar .crm-search{flex-basis:100%;height:44px}.kc-brand-master .kc-master-toolbar button{height:44px;flex:1}.kc-brand-master .kc-master-row-actions button{height:44px;min-height:44px}.kc-brand-master .crm-master-table td{height:60px}}

/* Product reference screens share the approved table; allow wider item names. */
.kc-product-master .kc-master-col-code{width:11%}.kc-product-master .kc-master-col-name{width:21%}.kc-product-master .kc-master-col-description{width:20%}.kc-product-master .kc-master-col-english{width:16%}.kc-product-master .kc-master-col-order{width:6%}.kc-product-master .kc-master-col-status{width:11%}.kc-product-master .kc-master-col-actions{width:15%}
.kc-product-master .crm-master-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--kc-section-action,#6053a2) 2%,var(--crm-surface,#fff))}
