.my-afs.my-afs{padding:0;background:#f4f7fb;background-image:radial-gradient(ellipse at 90% 0%,#e5eefb 0,transparent 45%);color:#182b45;font-family:Outfit,sans-serif}
.my-afs .my-afs-inner{max-width:1480px;padding:28px clamp(18px,4vw,56px) 48px;margin:auto}
.my-afs .my-afs-header{padding-bottom:22px;margin-bottom:0;border-bottom:1px solid #dbe3ed;gap:18px}
.my-afs-brand{display:flex;align-items:center;gap:22px;min-width:0}
.my-afs-brand img{width:146px;height:63px;object-fit:contain;mix-blend-mode:multiply}
.my-afs-brand-copy{border-left:1px solid #ccd8e8;padding-left:22px}
.my-afs .my-afs-brand-copy h1{font-size:25px;letter-spacing:-.7px;margin:0 0 4px}
.my-afs-identity{font-size:13px;color:#5c6e84;display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.my-afs-role{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;border:1px solid #d9e3ef;border-radius:5px;padding:3px 6px;color:#526783}
.my-afs .my-afs-nav{display:flex;gap:24px;flex-wrap:wrap;margin:0 0 28px;border-bottom:1px solid #dbe3ed}
.my-afs-nav button{font:inherit;font-size:14px;font-weight:500;padding:18px 0 15px;border:0;border-bottom:3px solid transparent;background:transparent;color:#63758a;cursor:pointer}
.my-afs-nav button[aria-current=page]{color:#1568d4;border-bottom-color:#1568d4}
.my-afs button:focus-visible,.my-afs input:focus-visible,.my-afs select:focus-visible{outline:3px solid #91bdf6;outline-offset:3px}
.my-afs #myAfsMessage:empty{display:none}
.my-afs [hidden]{display:none!important}
.my-afs #myAfsMessage{margin:0 0 20px}
.afs-workspace{display:grid;grid-template-columns:225px minmax(0,1fr);gap:30px;align-items:start}
.afs-groups{position:sticky;top:24px;padding-right:24px;border-right:1px solid #dbe3ed;min-width:0}
.afs-overline{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;font-weight:600;color:#7890ad;margin:4px 0 18px}
.afs-group-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 0 10px}
.afs-group-heading .afs-overline{margin:0}
.afs-icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.afs-group{display:flex;align-items:center;width:100%;gap:10px;padding:11px 12px;font:inherit;font-size:13px;line-height:1.4;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;color:#566c87;cursor:pointer;margin-bottom:4px}
.afs-group span:first-of-type{flex:1;overflow-wrap:anywhere}.afs-group b{font-size:11px;font-weight:500;min-width:23px;text-align:center;background:#e9eef5;border-radius:5px;padding:2px}
.afs-group:hover{background:#e9f0fa}.afs-group[aria-pressed=true]{color:#1768ce;background:#e5effd;border-color:#cbdffa;font-weight:600}.afs-group[aria-pressed=true] b{background:#cde1fb}
.afs-group-note{font-size:12px;line-height:1.65;color:#7b8da3!important;margin-top:18px}
.afs-groups .afs-new-group{width:100%;margin-top:8px;background:transparent;border:1px dashed #bdcce0;color:#37628d;padding:10px;font:inherit;font-size:12px;border-radius:8px;cursor:pointer}
.afs-new-group:disabled{opacity:.5;cursor:not-allowed}
.afs-list-main{min-width:0}.afs-list-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px}
.my-afs .afs-list-title h2{font-size:27px;letter-spacing:-.75px;margin:0 0 5px;line-height:1.2}.afs-list-title p{font-size:13px;margin:0;color:#7a8da5}
.afs-count-label{font-size:11px;border-radius:6px;padding:7px 10px;color:#58718e;background:#e8eef6;white-space:nowrap}
.afs-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 18px;flex-wrap:wrap}
.afs-search{display:flex!important;align-items:center;gap:9px;flex:1;min-width:180px;background:#fff;border:1px solid #d5dfec;border-radius:8px;padding:0 12px;color:#8aa0bd}
.afs-search input{width:100%;min-width:0;border:0!important;background:transparent!important;padding:12px 0!important;margin:0!important;font:inherit;font-size:13px;box-shadow:none!important;color:#203c5d}
.afs-search:focus-within{border-color:#3f8beb;box-shadow:0 0 0 3px #2b7fe016}
.afs-sort{display:flex!important;align-items:center;gap:8px!important;font-size:12px;color:#6f829b}
.my-afs .afs-sort select{width:auto;margin:0;background:#fff;border:1px solid #d5dfec;border-radius:8px;font:inherit;padding:11px 30px 11px 10px;color:#304b6b;max-width:205px}
.afs-list-card{background:#fff;border:1px solid #dce5ef;border-radius:13px;overflow:hidden;box-shadow:0 5px 18px #203d6205}
.my-afs .afs-company-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0;font-size:13px}
.my-afs .afs-company-table th{padding:13px 18px;background:#f9fbfe;color:#8295ae;text-transform:uppercase;font-size:9px;letter-spacing:1.1px;font-weight:600;border-bottom:1px solid #e6ecf3;min-width:0;text-align:left}
.my-afs .afs-company-table th:first-child{width:40%}.my-afs .afs-company-table th:nth-child(2){width:12%}.my-afs .afs-company-table th:nth-child(3){width:24%}.my-afs .afs-company-table th:last-child{width:24%;text-align:right}
.my-afs .afs-company-table td{padding:19px 18px;border-bottom:1px solid #edf1f6;min-width:0;vertical-align:middle;white-space:normal}.afs-company-table tr:last-child td{border-bottom:0}.afs-company-table tbody tr:hover{background:#fafcff}
.afs-company-name{display:flex;align-items:center;gap:12px;min-width:0}
.afs-company-monogram{display:flex;align-items:center;justify-content:center;width:38px;height:40px;flex-shrink:0;border:1px solid #dbe8fa;background:#edf4fe;border-radius:9px;color:#2b6cb9;font-size:11px;font-weight:600;letter-spacing:.4px}
.afs-company-name strong{font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.afs-company-name small{display:block;font-size:11px;margin-top:4px;color:#8799b0;line-height:1.5;overflow-wrap:anywhere}
.afs-currency{font-family:'DM Mono',monospace;font-size:11px;font-weight:500;border:1px solid #dce5f0;border-radius:5px;padding:4px 6px;color:#667e9a;display:inline-block}
.afs-last-date{color:#4e6785;font-size:12px}.afs-last-date small{display:block;color:#91a1b6;font-size:10px;margin-top:5px}.afs-never{font-size:11px;color:#96a5b8}
.afs-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}
.my-afs .afs-open{display:flex;gap:8px;align-items:center;border:0;border-radius:7px;padding:9px 12px;background:#176bda;color:#fff;font:inherit;font-size:11px;font-weight:500;cursor:pointer}.afs-open .afs-icon{width:13px;height:13px}
.my-afs .afs-team{border:0;background:transparent;color:#6f87a5;font:inherit;font-size:11px;cursor:pointer;padding:8px 2px}
.afs-list-footer{font-size:11px;color:#8b9cb1;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:14px;line-height:1.6}
.afs-inline-error{font-size:12px;color:#a34032!important;line-height:1.5}.afs-link{border:0;background:none;color:#176bda;text-decoration:underline;cursor:pointer;font:inherit}
.afs-empty{text-align:center;padding:48px 22px}.afs-empty .afs-icon{width:34px;height:34px;color:#a3bbd8}.afs-empty h3{font-size:17px;margin:15px 0 7px}.afs-empty p{font-size:13px;line-height:1.7;max-width:340px;margin:0 auto 18px}
.afs-group-dialog{font-family:Outfit,sans-serif;color:#182b45;width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;border:1px solid #d8e2ef;border-radius:16px;padding:25px;background:#fff;box-shadow:0 24px 90px #0a274b30}
.afs-group-dialog::backdrop{background:#0d244660;backdrop-filter:blur(3px)}
.afs-group-dialog h2{font-size:22px;letter-spacing:-.5px;margin:0 0 7px}.afs-group-dialog p{font-size:13px;color:#7b8da5;line-height:1.6;margin:0 0 18px}
.afs-group-dialog label{display:block;font-size:12px;font-weight:500;color:#46607e}.afs-group-dialog input[type=text],.afs-group-dialog input[type=search]{display:block;width:100%;box-sizing:border-box;border:1px solid #d5dfed;background:#f9fbff;border-radius:7px;padding:11px;font:inherit;margin:7px 0 16px;color:#183353}
.afs-group-dialog fieldset{border:0;padding:0;margin:0;min-width:0}.afs-group-dialog .afs-choice-list{border:1px solid #e0e7f1;border-radius:9px;max-height:245px;overflow:auto;padding:6px;margin-bottom:20px}.afs-choice-list label{display:flex;align-items:center;gap:10px;padding:11px 8px;font-size:13px;overflow-wrap:anywhere}.afs-choice-list label:hover{background:#f1f6fd}.afs-choice-list input{accent-color:#176bda;flex-shrink:0}
.afs-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.afs-dialog-actions .danger{margin-right:auto}.afs-dialog-alert{min-height:0;font-size:12px;color:#b34338;margin-bottom:12px;line-height:1.5}.afs-dialog-alert:empty{display:none}.afs-choice-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;font-size:11px;color:#7f92ac}
.my-afs .my-afs-panel{background:#fff;border-color:#dce5ef;box-shadow:0 5px 18px #203d6205}.my-afs .my-afs-panel h2{letter-spacing:-.5px}.my-afs .my-afs-panel>.my-afs-header{margin-bottom:20px}
@media(min-width:1500px){.afs-workspace{gap:38px;grid-template-columns:240px minmax(0,1fr)}.my-afs .afs-company-table td{padding-top:23px;padding-bottom:23px}}
@media(max-width:1000px){.afs-workspace{grid-template-columns:180px minmax(0,1fr);gap:20px}.afs-groups{padding-right:15px}.my-afs .afs-company-table td,.my-afs .afs-company-table th{padding-left:12px;padding-right:12px}.afs-row-actions{gap:2px}.my-afs .afs-company-table th:first-child{width:38%}.my-afs .afs-company-table th:last-child{width:26%}.afs-company-monogram{display:none}}
@media(max-width:760px){.my-afs .my-afs-inner{padding:18px 16px 30px}.my-afs-brand{gap:12px}.my-afs-brand img{width:102px;height:45px}.my-afs-brand-copy{padding-left:12px}.my-afs .my-afs-brand-copy h1{font-size:23px}.my-afs-identity{font-size:11px}.my-afs .my-afs-header{gap:14px;padding-bottom:16px}.my-afs .my-afs-header>.my-afs-actions{margin-left:auto}.my-afs .my-afs-nav{gap:20px;margin-bottom:22px}.my-afs-nav button{font-size:12px;padding-top:16px}.afs-workspace{display:block}.afs-groups{position:static;border:0;padding:0 0 20px;margin-bottom:22px;border-bottom:1px solid #dbe3ed}.afs-groups>.afs-overline{display:none}.afs-group-heading{margin:14px 0 8px}.afs-group-list{display:flex;flex-wrap:wrap;gap:6px}.afs-group-list .afs-group{width:auto;max-width:100%;margin:0}.afs-groups>.afs-group{max-width:230px}.afs-groups .afs-new-group{width:auto;padding:9px 16px}.afs-group-note{margin:10px 0 0}.afs-list-title{align-items:flex-start}.my-afs .afs-list-title h2{font-size:24px}.afs-toolbar{gap:12px}.afs-search{flex-basis:100%}.afs-sort{flex:1}.my-afs .afs-sort select{max-width:none;width:100%}.my-afs .afs-company-table,.my-afs .afs-company-table tbody{display:block}.my-afs .afs-company-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.my-afs .afs-company-table tr{display:grid;grid-template-columns:1fr auto;gap:12px;padding:18px;border-bottom:1px solid #e7edf5}.my-afs .afs-company-table tr:last-child{border:0}.my-afs .afs-company-table td{display:block;border:0;padding:0;min-width:0}.my-afs .afs-company-table td:first-child{grid-column:1;grid-row:1}.my-afs .afs-company-table td:nth-child(2){grid-column:2;grid-row:1;align-self:start}.my-afs .afs-company-table td:nth-child(3){grid-column:1;grid-row:2;align-self:center}.my-afs .afs-company-table td:last-child{grid-column:2;grid-row:2;align-self:center}.afs-row-actions{gap:8px}.afs-last-date small{display:inline;margin-left:5px}.afs-company-name strong{font-size:13px}.afs-company-name small{font-size:10px}.afs-count-label{padding:6px;font-size:10px}.afs-list-footer{font-size:10px}.afs-group-dialog{padding:20px}}

/* My AFS company creation reuses the existing permission/licence-checked editor. */
.afs-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.afs-list-actions .btn{white-space:nowrap}
.afs-add-company-dialog{position:fixed;inset:0;margin:0;padding:0;border:0;max-width:none;max-height:none;width:100vw;height:100vh;height:100dvh;background:transparent;color:var(--text-1);font-family:var(--font)}
.afs-add-company-dialog::backdrop{background:transparent}
.afs-add-company-dialog .modal{box-sizing:border-box}
@media(max-width:760px){.afs-list-title{flex-wrap:wrap}.afs-list-actions{width:100%;justify-content:space-between}.afs-add-company-dialog .modal{padding:20px;max-height:92vh;max-height:92dvh}.afs-add-company-dialog .form-grid{grid-template-columns:minmax(0,1fr)}.afs-add-company-dialog .form-group{min-width:0}.afs-add-company-dialog .form-group[style*="grid-column"]{grid-column:1!important}}
