@import url("ua_agents_theme.css?v=20260620e");

*{box-sizing:border-box}
html,body{width:100%;min-height:100%;overflow-x:hidden}
body{margin:0;background:#06111f;color:var(--ua-agent-text);font-family:Tahoma,Arial,sans-serif;letter-spacing:0}
.ap-shell{min-height:100vh;padding:22px;background:radial-gradient(circle at 82% 8%,rgba(54,199,144,.16),transparent 34%),linear-gradient(180deg,#0b1e34 0%,#06111f 56%,#050d18 100%)}
.ap-container{width:100%;max-width:1680px;margin:0 auto}
.ap-hero{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border:1px solid rgba(125,184,244,.18);border-bottom:4px solid var(--ua-agent-green);border-radius:8px;background:linear-gradient(135deg,rgba(16,43,70,.98),rgba(9,24,42,.94));box-shadow:0 20px 55px rgba(0,0,0,.28)}
.ap-brand,.ap-hero-tools,.ap-link-badge,.ap-nav,.ap-action-grid,.ap-card-title,.ap-stat-row,.ap-result-head,.ap-status-line{display:flex;align-items:center}
.ap-brand{gap:13px;min-width:0}
.ap-brand-mark{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border-radius:8px;background:linear-gradient(135deg,#238b68,#36c790);color:#fff;font-size:22px;font-weight:900}
.ap-brand-logo{overflow:hidden;padding:4px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.18)}
.ap-brand-logo img{width:100%;height:100%;display:block;object-fit:contain}
.ap-brand h1{margin:0 0 4px;font-size:24px;font-weight:900;color:#fff}
.ap-brand p{margin:0;color:#b9c8d9;font-size:13px}
.ap-brand-meta{display:block;margin-top:2px;color:#91a4bb;font-size:11px;font-weight:700}
.ap-hero-tools{gap:10px}
.ap-link-badge{gap:10px;min-width:250px;padding:9px 12px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(255,255,255,.045)}
.ap-link-badge>span{width:12px;height:12px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.12)}
.ap-link-badge strong,.ap-link-badge small{display:block}
.ap-link-badge strong{font-size:12px;color:#fff}
.ap-link-badge small{margin-top:2px;color:#b8c6d7;font-size:11px}
.ap-link-badge.is-online>span{background:#36c790;box-shadow:0 0 0 4px rgba(54,199,144,.16),0 0 18px rgba(54,199,144,.55)}
.ap-link-badge.is-warn>span{background:#f3bb46;box-shadow:0 0 0 4px rgba(243,187,70,.16)}
.ap-link-badge.is-offline>span{background:#ff7185;box-shadow:0 0 0 4px rgba(255,113,133,.16)}
.ap-icon-btn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(255,255,255,.04);color:#e7f1ff}
.ap-icon-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.ap-danger{color:#ff9aa7}
.ap-nav{gap:8px;overflow-x:auto;padding:14px 0 18px}
.ap-nav a{min-height:44px;display:inline-flex;align-items:center;gap:8px;padding:0 15px;border:1px solid rgba(125,184,244,.16);border-radius:8px;background:rgba(9,24,42,.76);color:#b8c6d7;text-decoration:none;white-space:nowrap}
.ap-nav a:hover,.ap-nav a.active{color:#fff;background:rgba(54,199,144,.13);border-color:rgba(54,199,144,.32)}
.ap-nav a.active i{color:#f1c76b}
.ap-nav{display:none!important}
.ap-alert{border-radius:8px;padding:12px 14px;margin:0 0 14px}
.ap-toast-stack{position:fixed;left:22px;right:auto;top:auto;bottom:22px;z-index:160;display:grid;gap:8px;width:min(520px,calc(100vw - 44px));transform:none;pointer-events:none}
.ap-toast{min-height:46px;display:flex;align-items:center;justify-content:center;padding:12px 16px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(9,24,42,.96);color:#fff;font-size:13px;font-weight:900;text-align:center;box-shadow:0 18px 42px rgba(0,0,0,.38);pointer-events:auto}
.ap-toast-success{border-color:rgba(54,199,144,.45);background:linear-gradient(180deg,rgba(18,91,70,.98),rgba(10,54,48,.98))}
.ap-toast-warning{border-color:rgba(243,187,70,.50);background:linear-gradient(180deg,rgba(105,77,21,.98),rgba(70,50,15,.98))}
.ap-toast-danger{border-color:rgba(255,113,133,.48);background:linear-gradient(180deg,rgba(106,35,48,.98),rgba(73,24,35,.98))}
.ap-panel{border:1px solid var(--ua-agent-border);border-radius:8px;background:rgba(11,27,47,.92);box-shadow:var(--ua-agent-shadow)}
.ap-card{padding:18px}
.ap-card-title{gap:11px;margin-bottom:14px}
.ap-card-title i{width:39px;height:39px;display:grid;place-items:center;border-radius:8px;border:1px solid rgba(54,199,144,.26);background:rgba(54,199,144,.11);color:#65dcae}
.ap-card-title h2,.ap-card-title h3{margin:0;font-size:17px;font-weight:900;color:#fff}
.ap-card-title p{margin:3px 0 0;color:#8fa2b8;font-size:12px}
.ap-dashboard{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}
.ap-billing-stack{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}
.ap-services-panel,.ap-invoice-panel{min-width:0}
.ap-services-panel{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:10px 12px}
.ap-services-panel .ap-card-title{margin:0;white-space:nowrap}
.ap-services-panel .ap-card-title i{width:34px;height:34px}
.ap-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:10px;overflow:hidden;border:1px solid rgba(125,184,244,.16);border-radius:8px;background:rgba(11,27,47,.88);box-shadow:var(--ua-agent-shadow)}
.ap-stat{min-height:58px;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:10px;row-gap:2px;padding:6px 14px;border:0;border-radius:0;background:transparent}
.ap-stat+.ap-stat{border-inline-start:1px solid rgba(125,184,244,.16)}
.ap-stat span{display:block;color:#8fa2b8;font-size:12px;white-space:nowrap}
.ap-stat strong{display:block;min-width:0;margin:0;overflow:hidden;color:#fff;font-size:20px;font-weight:900;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
.ap-stat small{display:block;grid-column:1/-1;min-width:0;margin:0;overflow:hidden;color:#8fa2b8;text-overflow:ellipsis;white-space:nowrap}
.ap-action-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.ap-action{min-height:50px;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:7px 8px;border:1px solid rgba(125,184,244,.18);border-radius:8px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));color:#fff;text-decoration:none}
.ap-action:hover{color:#fff;border-color:rgba(54,199,144,.42);background:rgba(54,199,144,.10)}
.ap-action.is-active{color:#fff;border-color:rgba(54,199,144,.62);background:linear-gradient(180deg,rgba(54,199,144,.18),rgba(54,199,144,.08));box-shadow:inset 0 -2px 0 rgba(54,199,144,.72)}
.ap-action>i{width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;border-radius:8px;background:rgba(54,199,144,.14);color:#65dcae;font-size:19px}
.ap-action div{min-width:0}
.ap-action strong{display:block;margin:0;font-size:15px;white-space:nowrap}
.ap-action small{display:block;margin-top:4px;color:#9fb0c4;line-height:1.6}
.ap-services-panel .ap-action small{display:none}
.ap-login{max-width:530px;margin:7vh auto 0;padding:24px}
.ap-agent-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.ap-result{display:block;padding:13px;border:1px solid var(--ua-agent-border);border-radius:8px;background:rgba(255,255,255,.035);color:#fff;text-decoration:none}
.ap-result-form{margin:0}
.ap-result-row{display:grid;grid-template-columns:minmax(0,1fr) 112px 112px;gap:8px;align-items:stretch}.ap-router-button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:8px;border:1px solid rgba(54,199,144,.32);border-radius:8px;background:rgba(54,199,144,.1);color:#76e3b8;font-size:11px;font-weight:900;text-align:center;text-decoration:none}.ap-router-button i{font-size:18px}.ap-router-button:hover{border-color:rgba(54,199,144,.7);background:rgba(54,199,144,.18);color:#fff}.ap-selected-actions{display:flex;justify-content:flex-start}.ap-router-button .ua-router-icon,.ap-selected-actions .ua-router-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ap-result-row-edit{grid-template-columns:minmax(0,1fr)}
.ap-result-button{width:100%;appearance:none;-webkit-appearance:none;font:inherit;text-align:inherit;cursor:pointer}
.ap-result.is-selected{border-color:rgba(54,199,144,.72);background:rgba(54,199,144,.14)}
.ap-result:hover{color:#fff;border-color:rgba(54,199,144,.42);background:rgba(54,199,144,.08)}
.ap-result-head{justify-content:space-between;gap:10px}
.ap-result-title{font-weight:900}
.ap-muted{color:#8fa2b8!important}
.ap-empty{padding:20px;border:1px dashed var(--ua-agent-border);border-radius:8px;background:rgba(255,255,255,.025);color:#8fa2b8;text-align:center}
.ap-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ap-field{min-width:0}
.ap-field label{display:block;margin:0 0 6px;color:#c9d8e9;font-size:12px;font-weight:800}
.ap-field-full{grid-column:1/-1}
.ap-form-control,.ap-field .form-control,.ap-field .form-select{height:43px;border-radius:7px;border:1px solid var(--ua-agent-border);background:var(--ua-agent-field);color:#fff}
.ap-field textarea.form-control{height:auto;min-height:78px}
.ap-form-control:focus,.ap-field .form-control:focus,.ap-field .form-select:focus{border-color:var(--ua-agent-green);box-shadow:0 0 0 2px rgba(54,199,144,.15)}
.ap-form-control::placeholder{color:#71849b}
.ap-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}
.ap-login-panel{max-width:520px;margin:40px auto}
.ap-password-row{display:grid;grid-template-columns:1fr 44px;gap:8px;align-items:center}
.ap-btn{min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;border:1px solid transparent;padding:9px 15px;font-weight:900;text-decoration:none}
.ap-btn-primary{background:#286cb0;color:#fff}
.ap-btn-success{background:#238b68;color:#fff}
.ap-btn-light{border-color:rgba(125,184,244,.22);background:rgba(255,255,255,.045);color:#dce9f8}
.ap-btn:hover{color:#fff;filter:brightness(1.08)}
.ap-home-btn{border-color:rgba(54,199,144,.34);color:#76e3b8}
.ap-two-col{display:grid;grid-template-columns:360px 1fr;gap:16px;align-items:start}
.ap-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ap-tag{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:rgba(125,184,244,.12);color:#b9d9f8;font-size:12px}
.ap-tag-green{background:rgba(54,199,144,.14);color:#65dcae}
.ap-tag-red{background:rgba(255,113,133,.12);color:#ff91a0}
.ap-status-card{padding:18px;border-radius:8px;border:1px solid rgba(125,184,244,.16);background:rgba(255,255,255,.035)}
.ap-status-line{gap:11px;margin-bottom:14px}
.ap-status-dot{width:16px;height:16px;border-radius:50%;background:#f3bb46;box-shadow:0 0 0 5px rgba(243,187,70,.12)}
.ap-status-dot.is-online{background:#36c790;box-shadow:0 0 0 5px rgba(54,199,144,.13),0 0 18px rgba(54,199,144,.42)}
.ap-status-dot.is-danger{background:#ff7185;box-shadow:0 0 0 5px rgba(255,113,133,.13)}
.ap-status-line strong{display:block;font-size:22px;color:#fff}
.ap-status-line span{display:block;margin-top:3px;color:#9fb0c4}
.ap-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ap-info{padding:12px;border:1px solid rgba(125,184,244,.14);border-radius:8px;background:rgba(255,255,255,.025)}
.ap-info span{display:block;color:#8fa2b8;font-size:11px}
.ap-info strong{display:block;margin-top:5px;color:#fff}
.ap-table{width:100%;border-collapse:collapse;color:#dce9f8}
.ap-table th,.ap-table td{padding:10px;border-bottom:1px solid rgba(125,184,244,.14);text-align:right}
.ap-table th{color:#b8c6d7;background:rgba(255,255,255,.035);white-space:nowrap}

.ap-shell-login{display:grid;place-items:center;padding:0;background:transparent}
.ap-shell-login .ap-login-container{width:100%;max-width:none;margin:0}

.ap-search-panel{position:relative;z-index:80;display:grid;grid-template-columns:minmax(230px,.38fr) minmax(420px,1fr);align-items:center;gap:12px;overflow:visible;padding:10px 12px}
.ap-search-panel>.ap-card-title{margin:0}
.ap-search-form{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin:0}
.ap-search-form .ap-form-actions{margin:0}
.ap-search-form .ap-btn{min-width:92px}
.ap-search-results-list{position:relative;z-index:2;direction:ltr;display:grid;grid-column:1/-1;align-content:start;grid-auto-rows:max-content;gap:8px;max-height:188px;margin-top:0;padding:10px 12px;border:1px solid rgba(54,199,144,.28);border-radius:8px;background:linear-gradient(180deg,rgba(9,24,42,.96),rgba(6,17,31,.96));box-shadow:0 16px 34px rgba(0,0,0,.26);overflow-y:auto;overflow-x:hidden;scrollbar-color:#36c790 rgba(125,184,244,.12);scrollbar-gutter:stable}
.ap-search-results-list .ap-result{direction:rtl;min-height:78px;margin:0}
.ap-search-results-list::-webkit-scrollbar{width:11px}
.ap-search-results-list::-webkit-scrollbar-track{border-radius:999px;background:rgba(125,184,244,.12)}
.ap-search-results-list::-webkit-scrollbar-thumb{border:2px solid rgba(9,24,42,.98);border-radius:999px;background:#36c790}
.ap-search-results-list::-webkit-scrollbar-thumb:hover{background:#65dcae}

.ap-workspace{min-width:0;min-height:460px;border:1px solid rgba(125,184,244,.14);border-radius:8px;background:linear-gradient(180deg,rgba(8,21,37,.88),rgba(5,15,27,.78));box-shadow:var(--ua-agent-shadow);overflow:hidden}
.ap-workspace-welcome{min-height:clamp(380px,calc(100vh - 300px),650px);display:flex;align-items:center;justify-content:center;gap:16px;padding:32px;text-align:center}
.ap-workspace-welcome>span{width:62px;height:62px;display:grid;place-items:center;flex:0 0 62px;border:1px solid rgba(54,199,144,.34);border-radius:16px;background:rgba(54,199,144,.11);color:#65dcae;font-size:25px}
.ap-workspace-welcome h2{margin:0 0 6px;color:#fff;font-size:22px;font-weight:900}
.ap-workspace-welcome p{max-width:620px;margin:0;color:#8fa2b8;line-height:1.8}
.ap-workspace-frame{width:100%;height:clamp(460px,calc(100vh - 270px),790px);display:block;border:0;background:#06111f}
.ap-workspace>.ap-billing-stack,.ap-workspace>.ap-balance-page{margin:12px}
.ap-workspace>.ap-edit-access-gate{width:min(760px,calc(100% - 24px));margin:12px auto}
.ap-billing-stack.is-search-only{grid-template-columns:minmax(0,1fr)}
.ap-edit-access-gate{display:grid;gap:12px}
.ap-edit-access-gate .ap-card-title{margin:0}
.ap-edit-access-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
.ap-edit-access-state{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:10px;padding:12px;border:1px solid rgba(243,187,70,.28);border-radius:8px;background:rgba(243,187,70,.07)}
.ap-edit-access-state .ap-status-dot{grid-row:1/3;margin-inline-end:2px}
.ap-edit-access-state strong{color:#fff;font-size:13px}
.ap-edit-access-state small{color:#9fb0c4;font-size:11px}
.ap-edit-workspace-panel{min-width:0;overflow:hidden;border:1px solid rgba(125,184,244,.14);border-radius:8px;background:#06111f}
.ap-edit-workspace-frame{height:clamp(540px,calc(100vh - 330px),820px)}
.ap-balance-page{min-height:310px}
.ap-balance-value{display:grid;place-items:center;min-height:120px;margin-bottom:12px;border:1px solid rgba(54,199,144,.28);border-radius:8px;background:radial-gradient(circle,rgba(54,199,144,.15),rgba(54,199,144,.03));color:#fff;font-size:42px;font-weight:900;font-variant-numeric:tabular-nums}
.ap-workspace-body{min-height:100%;background:#06111f;overflow-x:hidden}
.ap-workspace-document{min-height:100vh;padding:12px;background:linear-gradient(180deg,#08182a 0%,#06111f 100%)}
.ap-workspace-document__inner{width:100%;max-width:1580px;margin:0 auto}
.ap-workspace-body .ap-page-heading{margin-top:0}
.ap-workspace-body .ap-page-heading>.ap-btn,.ap-workspace-body .ap-printer-title>.ap-btn{display:none}
.ap-workspace-body .ap-page-heading{grid-template-columns:48px minmax(0,1fr)}

.ap-owner-help{position:fixed;left:18px;bottom:18px;z-index:120;direction:rtl}
.ap-owner-help>button{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(54,199,144,.36);border-radius:50%;background:linear-gradient(180deg,rgba(18,65,78,.96),rgba(9,35,52,.96));color:#fff;font-size:20px;font-weight:900;box-shadow:0 14px 34px rgba(0,0,0,.34);cursor:pointer}
.ap-owner-popover{position:absolute;left:0;bottom:50px;min-width:245px;max-width:min(320px,calc(100vw - 34px));display:none;padding:12px;border:1px solid rgba(125,184,244,.22);border-radius:8px;background:rgba(9,24,42,.98);box-shadow:0 22px 48px rgba(0,0,0,.42);text-align:right}
.ap-owner-popover strong{display:block;margin-bottom:7px;color:#fff;font-size:13px}
.ap-owner-popover span{display:block;margin-top:5px;color:#b8c6d7;font-size:12px}
.ap-owner-help:hover .ap-owner-popover,.ap-owner-help:focus-within .ap-owner-popover{display:block}
.ap-page-heading{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;margin:14px 0;padding:14px 16px;border:1px solid rgba(125,184,244,.18);border-radius:8px;background:rgba(11,27,47,.92)}
.ap-page-heading__icon{width:48px;height:48px;display:grid;place-items:center;border-radius:10px;background:rgba(54,199,144,.14);color:#65dcae;font-size:21px}
.ap-page-heading small{display:block;color:#65dcae;font-size:10px;letter-spacing:.12em}
.ap-page-heading h2{margin:2px 0 0;color:#fff;font-size:19px;font-weight:900}
.ap-page-heading p{margin:3px 0 0;color:#8fa2b8;font-size:11px}
.ap-profile-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:12px;align-items:start}
.ap-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ap-profile-details>div{min-width:0;padding:10px;border:1px solid rgba(125,184,244,.14);border-radius:8px;background:rgba(255,255,255,.025)}
.ap-profile-details span{display:block;color:#8fa2b8;font-size:10.5px}
.ap-profile-details strong{display:block;margin-top:4px;overflow-wrap:anywhere;color:#fff;font-size:12.5px}
.ap-profile-details__wide{grid-column:1/-1}
.ap-profile-password{grid-template-columns:repeat(2,minmax(0,1fr))}
.ap-agent-add-page{direction:rtl}
.ap-agent-add-page .sa-wrap{width:100%;max-width:none;margin:0;padding:0}
.ap-agent-add-page form{margin:0}
.ap-agent-add-page .sa-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:16px;align-items:start}
.ap-agent-add-page .sa-input-zone,.ap-agent-add-page .sa-preview{display:grid;gap:14px;min-width:0}
.ap-agent-add-page .sa-preview{position:sticky;top:12px}
.ap-agent-add-page .sa-card{overflow:hidden;border:1px solid var(--ua-agent-border);border-radius:8px;background:rgba(11,27,47,.92);box-shadow:var(--ua-agent-shadow)}
.ap-agent-add-page .sa-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 16px 0;border:0;background:transparent}
.ap-agent-add-page .sa-card-head h3{margin:0 0 12px;color:#fff;font-size:16px;font-weight:900}
.ap-agent-add-page .sa-preview .sa-card-head h3{width:100%;padding-bottom:8px;border-bottom:1px solid var(--ua-agent-border)}
.ap-agent-add-page .sa-card-body{padding:0 16px 16px}
.ap-agent-add-page .sa-form-grid{display:grid;gap:12px;align-items:start}
.ap-agent-add-page .sa-personal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ap-agent-add-page .sa-form-grid.sa-3,.ap-agent-add-page .sa-service-line,.ap-agent-add-page .sa-identity-card .sa-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ap-agent-add-page .sa-field{min-width:0}
.ap-agent-add-page .sa-field-span-2{grid-column:span 2}
.ap-agent-add-page .sa-personal-grid .sa-field-span-2{grid-column:1/-1}
.ap-agent-add-page .sa-field-full{grid-column:1/-1}
.ap-agent-add-page .sa-field label{display:block;margin:0 0 6px;color:#c9d8e9;font-size:12px;font-weight:800}
.ap-agent-add-page .sa-help-tip{width:20px;height:20px;display:inline-grid;place-items:center;margin-inline-start:4px;border:1px solid rgba(243,187,70,.38);border-radius:50%;background:rgba(243,187,70,.10);color:#f1c76b;font-size:12px;font-weight:900;line-height:1}
.ap-agent-add-page .sa-field .form-control,.ap-agent-add-page .sa-field .form-select{width:100%;height:39px;min-height:39px;border-radius:7px;border:1px solid var(--ua-agent-border);background:var(--ua-agent-field);color:#fff;box-shadow:none}
.ap-agent-add-page .sa-field textarea.form-control{height:56px;min-height:56px;resize:vertical}
.ap-agent-add-page .sa-field .form-control:focus,.ap-agent-add-page .sa-field .form-select:focus{border-color:var(--ua-agent-green);box-shadow:0 0 0 2px rgba(54,199,144,.15)}
.ap-agent-add-page .sa-file-upload{min-height:78px;display:grid;place-items:center;position:relative;padding:12px;border:1px dashed rgba(125,184,244,.30);border-radius:8px;background:rgba(255,255,255,.025);text-align:center;cursor:pointer}
.ap-agent-add-page .sa-file-upload:hover{border-color:rgba(54,199,144,.46);background:rgba(54,199,144,.07)}
.ap-agent-add-page .sa-file-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ap-agent-add-page .sa-file-upload span{color:#dce9f8;font-size:12px;font-weight:900}
.ap-agent-add-page .sa-file-upload small{display:block;margin-top:3px;color:#8fa2b8;font-size:11px}
.ap-agent-add-page .sa-kpi,.ap-agent-add-page .sa-summary{border:1px solid rgba(125,184,244,.16);border-radius:8px;background:rgba(255,255,255,.035);padding:12px}
.ap-agent-add-page .sa-kpi-title{margin-bottom:5px;color:#8fa2b8;font-size:12px}
.ap-agent-add-page .sa-kpi-value{color:#fff;font-size:15px;font-weight:900;overflow-wrap:anywhere}
.ap-agent-add-page .sa-summary ul{display:grid;gap:9px;margin:0;padding:0;list-style:none;color:#9fb0c4;font-size:12px}
.ap-agent-add-page .sa-summary li{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ap-agent-add-page .sa-summary li:nth-child(5),.ap-agent-add-page .sa-summary li:nth-child(7),.ap-agent-add-page .sa-summary li:nth-child(10){padding-top:9px;border-top:1px solid rgba(125,184,244,.14)}
.ap-agent-add-page .sa-summary strong{color:#fff;font-weight:900;text-align:left}
.ap-agent-add-page .sa-actions{display:flex;flex-direction:row-reverse;justify-content:flex-start;gap:10px;margin-top:0}
.ap-agent-add-page .sa-actions .btn{min-height:43px;border-radius:8px;padding:9px 16px;font-weight:900}
.ap-agent-add-page .sa-empty{margin-bottom:14px}

/* Compact density for the agent portal: tighter typography and controls without changing the workflow. */
body{font-size:13px}
.ap-shell{padding:14px}
.ap-container{max-width:1680px}
.ap-hero{min-height:70px;gap:12px;padding:12px 16px;border-bottom-width:3px}
.ap-brand{gap:10px}
.ap-brand-mark{width:38px;height:38px;flex-basis:38px;font-size:18px}
.ap-brand h1{margin-bottom:2px;font-size:18px}
.ap-brand p{font-size:11.5px}
.ap-brand-meta{font-size:10.5px}
.ap-hero-tools{gap:8px}
.ap-link-badge{gap:8px;min-width:210px;padding:7px 10px}
.ap-link-badge>span{width:10px;height:10px;box-shadow:0 0 0 3px rgba(148,163,184,.12)}
.ap-link-badge strong{font-size:11px}
.ap-link-badge small{font-size:10px}
.ap-icon-btn{width:36px;height:36px}
.ap-nav{gap:6px;padding:10px 0 12px}
.ap-nav a{min-height:36px;gap:6px;padding:0 11px;font-size:12.5px}
.ap-alert{padding:9px 11px;margin-bottom:10px;font-size:12.5px}
.ap-toast-stack{left:12px;right:12px;bottom:14px;width:auto}
.ap-toast{min-height:40px;padding:10px 14px;font-size:12.5px}
.ap-card{padding:13px}
.ap-card-title{gap:8px;margin-bottom:10px}
.ap-card-title i{width:32px;height:32px;font-size:14px}
.ap-card-title h2,.ap-card-title h3{font-size:15px}
.ap-card-title p{font-size:11px}
.ap-dashboard{gap:10px}
.ap-billing-stack{gap:10px}
.ap-services-panel{gap:10px;padding:9px 10px}
.ap-profile-grid{margin-bottom:10px}
.ap-stat{min-height:56px;padding:6px 12px}
.ap-stat span{font-size:11px}
.ap-stat strong{margin:0;font-size:17px}
.ap-stat small{margin:0;font-size:10.5px}
.ap-action-grid{gap:7px}
.ap-action{min-height:48px;gap:7px;padding:6px 7px}
.ap-action>i{width:32px;height:32px;flex-basis:32px;font-size:15px}
.ap-action strong{font-size:13.2px}
.ap-login{max-width:460px;padding:18px}
.ap-agent-list{gap:9px}
.ap-result{padding:10px}
.ap-empty{padding:14px;font-size:12px}
.ap-form-grid{gap:9px}
.ap-field label{margin-bottom:4px;font-size:11.5px}
.ap-form-control,.ap-field .form-control,.ap-field .form-select{height:36px;font-size:12.5px}
.ap-field textarea.form-control{min-height:58px}
.ap-form-actions{gap:7px;margin-top:10px}
.ap-btn{min-height:36px;gap:6px;padding:7px 12px;font-size:12.5px}
.ap-two-col{grid-template-columns:320px 1fr;gap:12px}
.ap-tag{padding:3px 7px;font-size:11px}
.ap-status-card{padding:13px}
.ap-status-line{gap:8px;margin-bottom:10px}
.ap-status-dot{width:12px;height:12px;box-shadow:0 0 0 4px rgba(243,187,70,.12)}
.ap-status-line strong{font-size:17px}
.ap-status-line span{font-size:11.5px}
.ap-info-grid{gap:8px}
.ap-info{padding:9px}
.ap-info span{font-size:10.5px}
.ap-info strong{margin-top:3px;font-size:12.5px}
.ap-table th,.ap-table td{padding:7px 8px;font-size:12px}
.ap-agent-add-page .sa-grid{grid-template-columns:minmax(0,1fr) 360px;gap:12px}
.ap-agent-add-page .sa-input-zone,.ap-agent-add-page .sa-preview{gap:10px}
.ap-agent-add-page .sa-preview{top:8px}
.ap-agent-add-page .sa-card-head{gap:8px;padding:11px 12px 0}
.ap-agent-add-page .sa-card-head h3{margin-bottom:9px;font-size:14px}
.ap-agent-add-page .sa-preview .sa-card-head h3{padding-bottom:6px}
.ap-agent-add-page .sa-card-body{padding:0 12px 12px}
.ap-agent-add-page .sa-form-grid{gap:8px}
.ap-agent-add-page .sa-field label{margin-bottom:4px;font-size:11px}
.ap-agent-add-page .sa-help-tip{width:17px;height:17px;font-size:10px}
.ap-agent-add-page .sa-field .form-control,.ap-agent-add-page .sa-field .form-select{height:33px;min-height:33px;border-radius:6px;font-size:12px}
.ap-agent-add-page .sa-field textarea.form-control{height:44px;min-height:44px}
.ap-agent-add-page .sa-file-upload{min-height:62px;padding:9px}
.ap-agent-add-page .sa-file-upload span{font-size:11px}
.ap-agent-add-page .sa-file-upload small{font-size:10px}
.ap-agent-add-page .sa-kpi,.ap-agent-add-page .sa-summary{padding:9px}
.ap-agent-add-page .sa-kpi-title{margin-bottom:3px;font-size:11px}
.ap-agent-add-page .sa-kpi-value{font-size:12.5px}
.ap-agent-add-page .sa-summary ul{gap:7px;font-size:11px}
.ap-agent-add-page .sa-summary li{gap:8px}
.ap-agent-add-page .sa-summary li:nth-child(5),.ap-agent-add-page .sa-summary li:nth-child(7),.ap-agent-add-page .sa-summary li:nth-child(10){padding-top:7px}
.ap-agent-add-page .sa-actions{gap:8px}
.ap-agent-add-page .sa-actions .btn{min-height:36px;padding:7px 12px;border-radius:7px;font-size:12px}
@media (max-width: 1180px){
  .ap-action-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width: 991px){
  .ap-dashboard,.ap-two-col,.ap-profile-layout{grid-template-columns:1fr}
  .ap-billing-stack{grid-template-columns:1fr}
  .ap-search-panel{grid-template-columns:1fr;align-items:stretch}
  .ap-agent-add-page .sa-grid{grid-template-columns:1fr}
  .ap-agent-add-page .sa-preview{position:static}
  .ap-form-grid,.ap-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ap-hero{align-items:flex-start;flex-direction:column}
  .ap-hero-tools{width:100%;justify-content:space-between}
  .ap-link-badge{min-width:0;flex:1}
  .ap-workspace-frame{height:clamp(540px,calc(100vh - 330px),780px)}
}
@media (max-width: 575px){
  .ap-shell{padding:12px}
  .ap-agent-add-page .sa-personal-grid,.ap-agent-add-page .sa-form-grid.sa-3,.ap-agent-add-page .sa-service-line,.ap-agent-add-page .sa-identity-card .sa-form-grid{grid-template-columns:1fr}
  .ap-agent-add-page .sa-field-span-2{grid-column:1/-1}
  .ap-agent-add-page .sa-actions{flex-direction:column}
  .ap-agent-add-page .sa-actions .btn{width:100%}
  .ap-profile-grid,.ap-form-grid,.ap-info-grid,.ap-action-grid{grid-template-columns:1fr}
  .ap-page-heading{grid-template-columns:42px minmax(0,1fr)}
  .ap-page-heading>.ap-btn{grid-column:1/-1}
  .ap-profile-details,.ap-profile-password{grid-template-columns:1fr}
  .ap-profile-details__wide{grid-column:auto}
  .ap-hero-tools{align-items:stretch;flex-direction:column}
  .ap-form-actions{flex-direction:column}
  .ap-search-form{grid-template-columns:1fr}
  .ap-edit-access-form{grid-template-columns:1fr}
  .ap-btn{width:100%}
  .ap-result-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ap-result-row>.ap-result-form{grid-column:1/-1}
  .ap-router-button{padding:6px;font-size:9.5px}
  .ap-workspace{min-height:420px}
  .ap-workspace-welcome{min-height:420px;flex-direction:column;padding:24px}
  .ap-workspace>.ap-billing-stack,.ap-workspace>.ap-balance-page{margin:8px}
  .ap-workspace-document{padding:8px}
}
.ap-edit-request-form{display:flex;margin:0}
.ap-edit-request-button{width:100%;font:inherit;cursor:pointer}
.ap-edit-request-button small{display:inline-flex;align-items:center;gap:4px;margin-inline-start:auto;color:#fabe23;font-size:11px}
.ap-edit-approval-card{border-color:rgba(250,190,35,.5)!important;background:linear-gradient(135deg,rgba(250,190,35,.08),rgba(11,27,47,.96))!important}
.ap-edit-approval-card.is-approved{border-color:rgba(45,212,191,.6)!important}
.ap-edit-approval-card.is-rejected{border-color:rgba(248,113,113,.6)!important}
.ap-contract-print-box{margin-top:16px;padding:16px;border:1px solid rgba(250,190,35,.34);border-radius:16px;background:rgba(6,19,34,.58)}
.ap-contract-print-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.ap-contract-print-form>label{display:flex;align-items:flex-start;gap:9px;margin:0;padding:12px;border:1px solid rgba(148,163,184,.2);border-radius:12px;background:rgba(255,255,255,.025);cursor:pointer}
.ap-contract-print-form>label:has(input:checked){border-color:rgba(250,190,35,.7);background:rgba(250,190,35,.08)}
.ap-contract-print-form input{margin-top:4px;accent-color:#fabe23}.ap-contract-print-form span{display:flex;flex-direction:column;gap:3px}.ap-contract-print-form small{color:#8fa4bc}
.ap-contract-template-name,.ap-contract-print-actions{grid-column:1/-1}.ap-contract-template-name{color:#a9bdd2}.ap-contract-template-name i{color:#2dd4bf;margin-inline-end:6px}
.ap-contract-print-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ap-contract-print-actions .ap-btn{width:100%;justify-content:center}
@media(max-width:720px){.ap-contract-print-form{grid-template-columns:1fr}}
@media(max-width:520px){.ap-contract-print-actions{grid-template-columns:1fr}}
