/* Scoped buyer settings; administrator tables retain their existing styles. */
body[data-portal="client"] .buyer-name-button{border:0;background:none;color:inherit;font:inherit;font-weight:500;cursor:pointer;padding:0}
body[data-portal="client"] .buyer-name-button:hover{color:#9b82e7}
body[data-portal="client"] .buyer-actions{display:flex;justify-content:center;gap:6px}
body[data-portal="client"] .buyer-actions button,body[data-portal="client"] .buyer-member-remove{border:0;background:none;color:var(--muted);padding:0;cursor:pointer}
body[data-portal="client"] .buyer-actions svg,body[data-portal="client"] .buyer-member-remove svg,[data-buyer-destination] svg{width:24px;height:24px}
body[data-portal="client"] .buyer-actions button:hover{color:#8b65dc}
body[data-portal="client"] .buyer-editor{max-width:928px;margin:0 auto;padding-top:2px;font-size:9px}
body[data-portal="client"] .buyer-editor .campaign-back{margin-bottom:32px}
body[data-portal="client"] .buyer-editor .campaign-editor-heading{margin-bottom:24px}
body[data-portal="client"] .buyer-timezone{width:302px;height:42px}
body[data-portal="client"] .buyer-editor .campaign-editor-card{padding:18px;margin-bottom:22px}
body[data-portal="client"] .buyer-editor .campaign-editor-card header{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:0}
body[data-portal="client"] .buyer-editor h3{font-size:16px;font-weight:500;line-height:20px;margin:0 0 8px}
body[data-portal="client"] .buyer-editor header p,body[data-portal="client"] .buyer-permission-row p{color:var(--muted);font-size:11px;line-height:14px;margin:0}
body[data-portal="client"] .buyer-permission-row{display:flex;align-items:center;justify-content:space-between;min-height:72px;border-bottom:1px solid var(--line);gap:14px}
body[data-portal="client"] .buyer-permission-row strong{display:block;font-size:11px;margin-bottom:4px}
body[data-portal="client"] .buyer-members-toolbar{display:flex;justify-content:flex-end;gap:10px;padding:14px 0 6px}
body[data-portal="client"] .buyer-members-toolbar input{width:178px}
body[data-portal="client"] .buyer-editor .campaign-status-toggle{width:26px;height:12px;min-width:26px}
body[data-portal="client"] .buyer-editor .campaign-status-toggle span{width:8px;height:8px}
@media(max-width:768px){body[data-portal="client"] .buyer-editor .campaign-editor-heading{flex-wrap:wrap;gap:10px}body[data-portal="client"] .buyer-timezone{max-width:100%}body[data-portal="client"] .buyer-editor .campaign-editor-card{padding:12px}body[data-portal="client"] .buyer-permission-row{min-height:78px}}

body[data-portal="client"][data-view="buyers"] #app > section table th:nth-child(n+3):nth-child(-n+6){width:72px}
body[data-portal="client"][data-view="buyers"] #app > section table th:nth-child(7){width:80px}
body[data-portal="client"][data-view="buyers"] #app > section table th:nth-child(8){width:114px}

body[data-buyer="true"] #notificationBell,body[data-buyer="true"] .money-pill{display:none!important}

body[data-portal="client"] .buyer-editor .client-destination-name{height:40px;min-height:40px}
body[data-portal="client"] .buyer-members-toolbar .button{width:63px;height:34px;min-height:34px;font-size:11px;line-height:14px;font-weight:400;padding:6px 10px}
body[data-portal="client"] .buyer-member-tools{display:flex;align-items:center;gap:10px}
body[data-portal="client"] .buyer-member-tools button{background:none;border:0;padding:0;color:var(--muted);cursor:pointer}
body[data-portal="client"] .buyer-member-tools svg{width:22px;height:22px}
body[data-portal="client"] .buyer-member-tools [hidden]{display:none!important}
body[data-portal="client"] .buyer-block-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}
body[data-portal="client"] .buyer-block-form input{flex:1;min-width:180px}
body[data-portal="client"] .buyer-block-form button{min-width:65px}

/* Buyer Edit uses measured reference type and nested cap rows. */
body[data-portal="client"] .buyer-members .buyer-members-toolbar{min-height:58px;box-sizing:border-box;align-items:center;padding:14px 0 6px}
body[data-portal="client"] .buyer-members .console-sized-table th{height:38px;padding:1px 10px;font:400 11px/14.25px 'Fira Sans',sans-serif;letter-spacing:0}
body[data-portal="client"] .buyer-members .console-sized-table td{height:38px;font:400 11px/14px 'Fira Sans',sans-serif;padding:0 10px}
body[data-portal="client"] .buyer-members .console-sized-table .empty-row{height:46px;font-size:11px}
body[data-portal="client"] .buyer-members .buyer-member-remove svg{width:18px;height:18px}
body[data-portal="client"] .buyer-advanced{padding:0!important;overflow:hidden}
body[data-portal="client"] .buyer-advanced>header{padding:18px!important;border-bottom:1px solid var(--line)}
body[data-portal="client"] .buyer-cap-panel{padding:0 18px;background:var(--client-surface-23242a,#23242a)}
body[data-portal="client"] .buyer-cap-panel>summary{display:flex;align-items:center;gap:18px;min-height:74px;cursor:pointer;list-style:none}
body[data-portal="client"] .buyer-cap-panel>summary::-webkit-details-marker{display:none}
body[data-portal="client"] .buyer-cap-panel>summary strong{display:block;font:500 12px/15px 'Fira Sans',sans-serif;margin-bottom:6px}
body[data-portal="client"] .buyer-cap-panel>summary small{display:block;color:var(--muted);font:400 11px/14px 'Fira Sans',sans-serif}
body[data-portal="client"] .buyer-cap-symbol{width:30px;height:30px;border-radius:4px;background:var(--client-surface-2f3038,#2f3038);color:var(--muted);display:flex;align-items:center;justify-content:center;flex-shrink:0}
body[data-portal="client"] .buyer-cap-symbol svg{width:22px;height:22px}
body[data-portal="client"] .buyer-cap-status{margin-left:auto;border-radius:4px;background:var(--client-surface-2f3038,#2f3038);width:66px;height:18px;display:flex;align-items:center;justify-content:center;font:400 8px/8px 'Fira Sans',sans-serif;flex-shrink:0}
body[data-portal="client"] .buyer-cap-panel>summary>svg{width:10px;height:10px;flex-shrink:0;transition:transform .15s ease}
body[data-portal="client"] .buyer-cap-panel[open]>summary>svg{transform:rotate(180deg)}
body[data-portal="client"] .buyer-cap-body{padding-bottom:18px}
body[data-portal="client"] .buyer-cap-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;min-height:72px;box-sizing:border-box;border-top:1px solid var(--line)}
body[data-portal="client"] .buyer-cap-row strong{font:500 12px/15px 'Fira Sans',sans-serif;display:block;margin-bottom:6px}
body[data-portal="client"] .buyer-cap-row p{font:400 11px/14px 'Fira Sans',sans-serif;color:var(--muted);margin:0}
body[data-portal="client"] .buyer-cap-row:last-of-type{border-bottom:1px solid var(--line)}
body[data-portal="client"] .buyer-cap-modes{display:flex;gap:3px;margin:0;border:1px solid var(--line);padding:2px;border-radius:4px;flex-shrink:0}
body[data-portal="client"] .buyer-cap-modes button{border:0;border-radius:4px;background:transparent;color:inherit;font:500 11px/14px 'Fira Sans',sans-serif;min-height:36px;padding:8px 18px;cursor:pointer}
body[data-portal="client"] .buyer-cap-modes button[aria-checked="true"]{background:var(--client-surface-2f3038,#2f3038)}
body[data-portal="client"] .buyer-set-cap{border:1px solid currentColor;border-radius:5px;background:transparent;color:inherit;font:400 11px/14px 'Fira Sans',sans-serif;min-width:82px;height:42px;padding:10px 16px;cursor:pointer}
body[data-portal="client"] .buyer-cap-value .campaign-setting-input{width:94px;height:42px;min-height:42px;font:400 11px/14px 'Fira Sans',sans-serif;text-align:right;padding:10px}
body[data-portal="client"] .buyer-cap-value [hidden],body[data-portal="client"] .buyer-cap-body [hidden]{display:none!important}
body[data-portal="client"] [data-buyer-cap-error]{color:var(--red);font:400 10px/14px 'Fira Sans',sans-serif;margin:12px 0 0}
body[data-portal="client"] [data-buyer-revenue-pending]{color:var(--muted);font:400 10px/14px 'Fira Sans',sans-serif;margin:12px 0 0}
body[data-portal="client"] .buyer-cap-body button:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
@media(max-width:760px){body[data-portal="client"] .buyer-cap-panel{padding:0 12px}body[data-portal="client"] .buyer-cap-panel>summary{gap:8px;flex-wrap:wrap;padding:14px 0}body[data-portal="client"] .buyer-cap-panel>summary>span:nth-child(2){flex:1;min-width:158px}body[data-portal="client"] .buyer-cap-status{margin-left:42px}body[data-portal="client"] .buyer-cap-row:has(.buyer-cap-modes){flex-wrap:wrap}body[data-portal="client"] .buyer-cap-modes{max-width:100%;width:100%;box-sizing:border-box;gap:2px}body[data-portal="client"] .buyer-cap-modes button{flex:1;padding:8px 3px;font-size:9px}body[data-portal="client"] .buyer-cap-row>div:first-child{min-width:0}}
@media(prefers-reduced-motion:reduce){body[data-portal="client"] .buyer-cap-panel>summary>svg{transition:none}}

body[data-portal="client"] .buyer-editor{--muted:#727478}
body[data-portal="client"] .buyer-editor .campaign-editor-card{background:var(--client-surface-1c1d23,#1c1d23)}
body[data-portal="client"] .buyer-permission-row strong{font-size:12px;line-height:15px;margin-bottom:6px}
body[data-portal="client"] .buyer-advanced>header{padding-bottom:17px!important}
body[data-portal="client"] .buyer-cap-row:has(.buyer-cap-modes){min-height:78px;padding:13px 0}
body[data-portal="client"] .buyer-cap-row[data-buyer-cap-period]{min-height:72px;padding:12px 0}

body[data-portal="client"] .buyer-editor .campaign-editor-heading h2{font-size:22px;line-height:30px}
body[data-portal="client"] .buyer-editor .campaign-back{font-size:9px;line-height:14px}
body[data-portal="client"] .buyer-editor .campaign-setting-input{font-size:9px;line-height:14px;min-height:42px}
body[data-portal="client"] .buyer-editor .buyer-cap-value .campaign-setting-input{font-size:11px;line-height:14px}
body[data-portal="client"] .buyer-editor .buyer-members-toolbar .campaign-setting-input{height:42px}

body[data-portal="client"] .buyer-editor [data-buyer-resend],body[data-portal="client"] .buyer-editor [data-buyer-revoke]{font-size:9px;line-height:14px}
