.agent-backoffice-page,
body.agent-backoffice-page{min-height:100vh;background:#f2f7f8;color:#173e4b}
.agent-backoffice-page #root{min-height:100vh}
.agent-backoffice{min-height:100vh;display:flex;background:#f2f7f8}
.agent-bo-sidebar{width:270px;flex:0 0 270px;min-height:100vh;position:sticky;top:0;align-self:flex-start;display:flex;flex-direction:column;padding:28px 18px;background:#fff;border-right:1px solid #d9e7eb}
.agent-bo-brand{display:grid;gap:3px;padding:4px 10px 26px;color:#123e4d}
.agent-bo-brand span{font-size:24px;font-weight:800;letter-spacing:.02em}
.agent-bo-brand small,.agent-bo-site small{color:#8099a4;font-size:13px}
.agent-bo-site{display:grid;gap:5px;margin:0 2px 22px;padding:14px;border:1px solid #dce9ed;border-radius:14px;background:#f5fbfc;overflow-wrap:anywhere}
.agent-bo-site strong{font-size:14px;color:#197f93}
.agent-bo-sidebar nav{display:grid;gap:7px}
.agent-bo-sidebar nav button{width:100%;border:0;background:transparent;color:#5c7885;text-align:left;font:inherit;font-weight:650;padding:13px 14px;border-radius:12px;cursor:pointer}
.agent-bo-sidebar nav button:hover{background:#eff8fa;color:#167d91}
.agent-bo-sidebar nav button.active{background:#e5f4f7;color:#08788c}
.agent-bo-back{margin-top:auto;padding:14px 14px 4px;color:#56808c;text-decoration:none;font-weight:650}
.agent-bo-main{width:min(1500px,calc(100% - 270px));margin:0 auto;padding:30px 38px 56px}
.agent-bo-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.agent-bo-header small{font-size:12px;letter-spacing:.2em;font-weight:750;color:#16869a}
.agent-bo-header h1{margin:8px 0 0;font-size:32px;line-height:1.2;color:#173e4b}
.agent-bo-header-actions{display:flex;align-items:center;gap:16px}
.agent-bo-header-actions a{color:#16869a;text-decoration:none;font-weight:650;white-space:nowrap}
.agent-bo-context{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px;padding:16px 20px;background:#e8f6f8;border:1px solid #d2eaef;border-radius:14px;color:#177d90;overflow-wrap:anywhere}
.agent-bo-context span{flex:none;padding:6px 11px;border-radius:99px;background:#e2f5e9;color:#258456;font-size:13px;font-weight:700}
.agent-bo-context span.paused{background:#fff1db;color:#ad7322}
.agent-bo-content{display:grid;gap:20px}
.agent-bo-stats,.agent-bo-finance-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:2px}
.agent-bo-finance-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.agent-bo-stats article,.agent-bo-finance-stats article{min-height:105px;display:grid;align-content:center;gap:12px;padding:20px 22px;background:#fff;border:1px solid #dce8eb;border-radius:16px;box-shadow:0 5px 18px rgba(38,94,108,.035)}
.agent-bo-stats small,.agent-bo-finance-stats small{color:#7b939e;font-size:14px}
.agent-bo-stats strong,.agent-bo-finance-stats strong{font-size:26px;color:#163f4d}
.agent-bo-card{min-width:0;padding:24px;background:#fff;border:1px solid #dce8eb;border-radius:18px;box-shadow:0 5px 18px rgba(38,94,108,.035)}
.agent-bo-card h2{margin:0 0 9px;font-size:20px;color:#173e4b}
.agent-bo-hint{margin:0 0 20px;color:#7b939e;line-height:1.7}
.agent-bo-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.agent-bo-card-head h2{margin:0}
.agent-bo-table-wrap{width:100%;overflow:auto}
.agent-bo-table{width:100%;border-collapse:collapse;min-width:760px}
.agent-bo-table th,.agent-bo-table td{padding:14px 12px;border-bottom:1px solid #e7eef0;text-align:left;vertical-align:middle;white-space:nowrap}
.agent-bo-table th{background:#f7fafb;color:#718994;font-size:13px;font-weight:700}
.agent-bo-table td{color:#385967;font-size:14px}
.agent-bo-table td strong,.agent-bo-table td small{display:block}
.agent-bo-table td small{margin-top:5px;color:#91a4ad;font-size:12px}
.agent-bo-empty{padding:32px 12px;text-align:center;color:#8ba0a8}
.agent-bo-products{display:grid}
.agent-bo-products article{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(190px,1fr) auto;align-items:end;gap:16px;padding:18px 0;border-top:1px solid #e9eff1}
.agent-bo-product-name{display:grid;gap:6px;align-self:center;min-width:0}
.agent-bo-product-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1a4351}
.agent-bo-product-name small,.agent-bo-margin{color:#8299a3;font-size:13px}
.agent-bo-products label,.agent-bo-form label,.agent-bo-withdraw-form label{display:grid;gap:7px;color:#66818c;font-size:13px;font-weight:650}
.agent-bo-products input,.agent-bo-form textarea,.agent-bo-withdraw-form input,.agent-bo-withdraw-form select{width:100%;min-height:43px;padding:9px 12px;border:1px solid #d1e0e5;border-radius:10px;background:#fff;color:#173e4b;font:inherit;box-sizing:border-box}
.agent-bo-margin{align-self:center;line-height:1.7}
.agent-bo-actions{display:flex;align-items:center;gap:9px;justify-content:flex-end;flex-wrap:wrap}
.agent-bo-form textarea{min-height:220px;resize:vertical;line-height:1.7}
.agent-bo-form .agent-bo-actions{justify-content:space-between;margin-top:12px}
.agent-bo-form .agent-bo-actions small{color:#879da6}
.agent-bo-withdraw-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.agent-bo-withdraw-form>button{justify-self:start;min-width:190px}
.agent-bo-alert{margin:0 0 16px;padding:12px 16px;border-radius:11px}
.agent-bo-alert.error{background:#fff0f0;color:#ad3f46}
.agent-bo-alert.success{background:#e9f8ef;color:#26764b}
.agent-bo-denied{max-width:720px;margin:20px auto;text-align:center;padding:54px 26px}
.agent-bo-denied p{margin:0 auto 22px;color:#78929d;line-height:1.7}
.agent-backoffice-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;background:#fff;border:1px solid #dce8eb;border-radius:16px}
.agent-backoffice-entry-mark{font-size:18px;font-weight:800;color:#173e4b}
.agent-backoffice-entry p{flex:1;margin:0;color:#6f8994;line-height:1.6}
.agent-backoffice-entry .admin-primary{white-space:nowrap;text-decoration:none;text-align:center}
@media(max-width:1050px){.agent-bo-main{padding:26px 24px}.agent-bo-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-bo-products article{grid-template-columns:minmax(160px,1fr) repeat(2,minmax(130px,.8fr));align-items:start}.agent-bo-margin{grid-column:1/3}.agent-bo-actions{grid-column:3;grid-row:2}}
@media(max-width:720px){.agent-backoffice{display:block}.agent-bo-sidebar{position:static;width:auto;min-height:unset;padding:14px 14px 10px;border-right:0;border-bottom:1px solid #d9e7eb}.agent-bo-brand{padding:2px 5px 12px}.agent-bo-brand span{font-size:20px}.agent-bo-site{margin:0 2px 12px}.agent-bo-sidebar nav{display:flex;gap:6px;overflow:auto;padding-bottom:5px}.agent-bo-sidebar nav button{width:auto;flex:none;padding:10px 12px;font-size:13px}.agent-bo-back{margin-top:8px;padding:6px}.agent-bo-main{width:auto;padding:22px 14px 38px}.agent-bo-header{align-items:flex-start;flex-direction:column;gap:14px}.agent-bo-header h1{font-size:27px}.agent-bo-header-actions{width:100%;justify-content:space-between}.agent-bo-stats,.agent-bo-finance-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.agent-bo-stats article,.agent-bo-finance-stats article{min-height:90px;padding:15px}.agent-bo-stats strong,.agent-bo-finance-stats strong{font-size:22px}.agent-bo-card{padding:18px 14px;border-radius:15px}.agent-bo-products article{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.agent-bo-product-name{grid-column:1/-1}.agent-bo-margin{grid-column:1/-1}.agent-bo-actions{grid-column:1/-1;grid-row:auto;justify-content:flex-start}.agent-bo-withdraw-form{grid-template-columns:1fr}.agent-bo-withdraw-form>button{width:100%}.agent-bo-entry{align-items:stretch;flex-direction:column}.agent-backoffice-entry .admin-primary{width:100%;box-sizing:border-box}}
