/* V34: scope styles to accounts workspace; no global topbar overrides. */
body:has(#page-content > .au34-layout) .workspace{padding:0!important;min-width:0!important}
#page-content:has(> .au34-layout){max-width:none!important;width:100%!important;margin:0!important;padding:0!important;background:var(--theme-page)!important}
.au34-layout,.au34-layout *{box-sizing:border-box}.au34-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100dvh - 54px);background:var(--theme-page);color:var(--theme-ink);font:14px/1.45 Tahoma,'Noto Sans Thai',sans-serif}
.au34-side{padding:24px 12px;background:var(--theme-accent-pale);border-right:1px solid var(--theme-border)}.au34-side nav{display:grid;gap:6px}.au34-layout .au34-side button{display:flex;align-items:center;gap:12px;width:100%;min-height:49px;padding:10px 14px;text-align:left;justify-content:flex-start;border:1px solid var(--theme-border)!important;background:var(--theme-panel)!important;color:var(--theme-ink)!important;border-radius:9px!important;font:600 15px/1.4 Tahoma,sans-serif;box-shadow:none!important;white-space:normal}.au34-layout .au34-side button[aria-current=page]{background:var(--theme-accent-strong)!important;color:#fff!important;border-color:var(--theme-accent-strong)!important}.au34-side svg{width:23px;height:23px;color:var(--theme-accent);flex:none}.au34-side button[aria-current=page] svg{color:#fff}.au34-main{padding:28px 24px;min-width:0}.au34{width:100%;min-width:0;color:var(--theme-ink)}.au34 *{box-sizing:border-box}.au34 svg{width:19px;height:19px;flex:none;vertical-align:middle}.au34-head{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:20px}.au34-title{display:flex;align-items:center;gap:15px;min-width:0}.au34-title h1{font-size:28px;line-height:1.25;margin:0 0 5px;color:var(--theme-ink);font-weight:800}.au34-title p{margin:0;font-size:13px;color:var(--theme-muted)}.au34-bigicon{display:grid;place-items:center;width:60px;height:60px;background:var(--theme-accent-soft);color:var(--theme-accent);border-radius:13px;flex:none}.au34-bigicon svg{width:35px;height:35px}.au34-stats{display:flex;align-items:stretch;background:var(--theme-accent-pale);border:1px solid var(--theme-border);border-radius:10px;padding:12px 4px;flex:0 1 50%}.au34-stats>div{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;padding:2px 9px;border-right:1px solid var(--theme-border)}.au34-stats>div:last-child{border:0}.au34-stats svg{width:25px;height:25px;color:var(--theme-accent)}.au34-stats small,.au34-stats strong{display:block;white-space:nowrap}.au34-stats small{font-size:11px}.au34-stats strong{font-size:24px;color:var(--theme-accent-strong);line-height:1.1;margin-top:4px}.au34-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:23px}.au34 button{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:34px;padding:7px 11px;background:var(--theme-panel)!important;border:1px solid var(--theme-border)!important;color:var(--theme-accent-strong)!important;border-radius:7px!important;box-shadow:none!important;font:600 12px/1.35 Tahoma,sans-serif;cursor:pointer;white-space:nowrap}.au34 button.au34-primary{background:var(--theme-accent-strong)!important;color:white!important;border-color:var(--theme-accent-strong)!important}.au34 button:disabled{opacity:.48;cursor:default}.au34 button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}.au34-actions button{min-height:40px;padding:10px 17px;font-size:14px}.au34-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,27%);gap:18px;align-items:start}.au34-left{min-width:0;display:grid;gap:17px}.au34-panel{border:1px solid var(--theme-border);border-radius:11px;overflow:hidden;background:var(--theme-panel);min-width:0}.au34-panel h2{display:flex;gap:9px;align-items:center;font-size:16px;font-weight:700;margin:0;padding:12px 15px;background:var(--theme-accent-pale);color:var(--theme-ink)}.au34-panel h2 svg,.au34-panel h3 svg{color:var(--theme-accent)}.au34-filters{display:grid;grid-template-columns:minmax(170px,1.65fr) repeat(3,minmax(100px,1fr)) auto auto;align-items:end;gap:9px;padding:13px 14px 5px}.au34-filters label{display:grid;gap:5px;font-weight:600;font-size:12px;margin:0;min-width:0}.au34-filters :is(input,select){width:100%;height:35px;min-width:0;border:1px solid var(--theme-border)!important;background:var(--theme-panel)!important;color:var(--theme-ink)!important;border-radius:6px;padding:5px 8px;font:12px Tahoma,sans-serif}.au34-filter-note{display:block;color:var(--theme-muted);font-size:10px;padding:0 14px 11px}.au34-tablewrap{overflow:auto}.au34 table{border-collapse:collapse;width:100%;font-size:12px;min-width:760px;color:var(--theme-ink)}.au34 th{padding:13px 8px;text-align:left;background:var(--theme-table-head)!important;color:var(--theme-table-head-ink)!important;white-space:nowrap}.au34 td{padding:10px 8px;border-top:1px solid var(--theme-border);vertical-align:middle;background:var(--theme-panel)!important;overflow-wrap:anywhere}.au34 tr.selected td{background:var(--theme-accent-soft)!important}.au34 tr[data-row]:hover td{background:var(--theme-hover)!important;cursor:pointer}.au34 td:nth-child(7){white-space:nowrap}.au34 button.au34-userpick{background:transparent!important;border:0!important;padding:0;text-align:left;justify-content:flex-start;white-space:normal;color:var(--theme-ink)!important;gap:8px}.au34-userpick small,.au34-person small{display:block;font-size:11px;color:var(--theme-muted);font-weight:400;overflow-wrap:anywhere}.au34-userpick strong{display:block;font-size:12px}.au34-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--theme-accent-soft);color:var(--theme-accent);flex:none}.au34-status{white-space:nowrap;font-size:11px;font-weight:700;color:var(--theme-muted)}.au34-status.active{color:#087238}.au34-status i{display:inline-block;background:currentColor;width:7px;height:7px;border-radius:50%;margin-right:5px}.au34-row-actions{display:flex;gap:4px}.au34-row-actions button{padding:5px;min-width:29px;min-height:29px}.au34-row-actions svg{width:16px;height:16px}.au34-list footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px;color:var(--theme-muted);font-size:12px;border-top:1px solid var(--theme-border)}.au34-list footer>div{display:flex;align-items:center;gap:7px}.au34-list footer b{background:var(--theme-accent-strong);color:white;padding:6px 11px;border-radius:5px}.au34-list footer button{min-height:30px;padding:4px 10px}.au34-detail [data-detail]{padding:14px 14px 17px}.au34-person{display:flex;align-items:center;gap:9px;min-width:0;margin-bottom:10px}.au34-person>div{flex:1;min-width:0;overflow-wrap:anywhere}.au34-person .au34-avatar{width:48px;height:48px;border-radius:10px}.au34-person .au34-avatar svg{width:28px;height:28px}.au34-person strong{font-size:14px}.au34-detail dl{margin:0}.au34-detail dl>div{display:grid;grid-template-columns:43% minmax(0,1fr);gap:8px;border-top:1px solid var(--theme-border);padding:9px 0;font-size:12px}.au34-detail dt{font-weight:600;color:var(--theme-ink)}.au34-detail dd{margin:0;overflow-wrap:anywhere}.au34-detail h3{display:flex;align-items:center;gap:7px;font-size:14px;border-top:1px solid var(--theme-border);margin:0;padding:12px 0 8px}.au34-permissions{padding:10px 12px;background:var(--theme-accent-soft);border-radius:7px;font-size:12px}.au34-permissions p{margin:0 0 6px}.au34-permissions small{color:var(--theme-muted)}.au34-detail-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:18px}.au34-detail-actions button{flex:1}.au34-empty{padding:20px!important;text-align:center;color:var(--theme-muted)}.au34-error:empty{display:none}.au34-error{color:#a72727;margin:8px 0;padding:8px 12px;background:#fff3f2;border-left:3px solid #a72727}
@media(max-width:1450px){.au34-main{padding:23px 18px}.au34-layout{grid-template-columns:200px minmax(0,1fr)}.au34-filters{grid-template-columns:repeat(3,minmax(0,1fr));}.au34-title h1{font-size:25px}.au34-stats svg{display:none}.au34-grid{grid-template-columns:minmax(0,1fr) minmax(260px,26%)}}
@media(max-width:1100px){.au34-head{flex-direction:column;align-items:stretch}.au34-grid{grid-template-columns:1fr}.au34-stats svg{display:block}.au34-stats{flex:auto}.au34-main{padding:20px 15px}}
@media(max-width:650px){.au34-layout{grid-template-columns:1fr}.au34-side{padding:8px}.au34-side nav{display:flex;flex-wrap:wrap}.au34-layout .au34-side button{width:auto;min-height:36px;padding:6px 9px;font-size:12px}.au34-side svg{width:17px;height:17px}.au34-main{padding:14px 10px}.au34-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.au34-stats{flex-wrap:wrap}.au34-stats>div{flex:1 1 45%;border:0}.au34-title h1{font-size:22px}.au34-title p{font-size:12px}.au34-list footer{flex-wrap:wrap}}


/* Account listing: one line per field, with one scope line per company. */
.au34-filters {grid-template-columns:minmax(150px,1.5fr) repeat(4,minmax(95px,1fr)) auto auto}
.au34 .au35-table {table-layout:fixed;min-width:1000px}
.au35-login {width:9%}
.au35-email {width:13%}
.au35-company {width:auto}
.au35-name {width:12%}
.au35-role {width:10%}
.au35-status {width:79px}
.au35-mfa {width:82px}
.au35-stamp {width:115px}
.au35-actions {width:76px}
.au34 .au35-table th {padding:9px 7px}
.au34 .au35-table td {height:37px;padding:4px 7px;white-space:nowrap;overflow:hidden}
.au35-clip {display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.au34 .au35-table button.au34-userpick {width:100%;min-height:24px;white-space:nowrap}
.au35-scope {margin:0;padding-inline-start:15px}
.au35-scope li+li {margin-top:2px}
.au34-detail dd {white-space:pre-line}
@media(max-width:1450px) {.au34-filters {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px) {.au34-filters {grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Revenue Department lookup is available only while adding a company. */
.org-master-form .org-company-tax {display:flex;flex-direction:column;align-items:stretch;gap:5px}
.org-master-form .org-company-tax > label {margin:0}
.org-master-form [data-company-rd] {align-self:flex-start}
.org-master-form .org-company-rd-status {margin:10px 0 0;font-size:12px}
.org-master-form .org-company-rd-status:empty {display:none}
.org-master-form .org-company-rd-status[data-state="error"] {color:#a22727}
.org-master-form .org-company-rd-status[data-state="success"] {color:var(--theme-accent-strong,#0b593e)}
