/* White-label reports: sign-up box (/white-label-reports/) and the agency dashboard (/agency/) */
.agx-join, .agx-card, .agx-form, .agx-grid > div, .agx-join-text, .agx-status > div, .agx-copy, .agx-logo-now { float: none !important; width: auto; }

/* Sign-up box */
.agx-join { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; width: 100% !important; box-sizing: border-box; padding: 36px 40px !important; border: 0 !important; border-radius: 20px !important; background: #fff; box-shadow: var(--brand-shadow); }
.agx-join .ag-h2 { margin: 6px 0 14px 0; }
.agx-join .ag-bullets { margin: 0; }
.agx-form { display: block; }
.agx-form label, .agx-form legend { display: block; margin: 0 0 6px 0; font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.agx-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="color"]) {
    display: block; width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; margin: 0 0 16px 0;
    border: 1px solid #ddd6d1; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--brand-ink);
}
.agx-form input:focus { outline: 2px solid var(--brand-orange); outline-offset: 1px; }
.agx-form input[type="color"] { width: 64px; height: 46px; padding: 2px; border: 1px solid #ddd6d1; border-radius: 10px; background: #fff; margin: 0 0 16px 0; }
.agx-form input[type="file"] { font-size: 14px; margin: 0 0 16px 0; }
.agx-form button.ag-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.agx-form button.ag-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.agx-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agx-small { font-size: 13px; color: var(--brand-ink-2); margin: 12px 0 0 0; }
.agx-error { color: var(--brand-red); font-weight: 600; }
.agx-note, .agx-ok { padding: 12px 14px; border-radius: 10px; background: #fff4e5; color: var(--brand-ink); font-size: 14px; }
.agx-ok { background: #eaf6ea; }
.agx-banner { padding: 12px 14px; border-radius: 10px; background: #fdecea; }

/* Dashboard */
body.agx-dash { min-height: 100vh; }
.agx-top { display: flex; align-items: center; gap: 16px; max-width: 1040px; margin: 0 auto; padding: 24px 20px 8px; box-sizing: border-box; }
.agx-top span { font-size: 14px; font-weight: 600; color: var(--brand-ink-2); width: auto; float: none; }
.agx-top .ag-logo img { display: block; }
.agx-main { display: block; max-width: 1040px; margin: 0 auto; padding: 12px 20px 60px; box-sizing: border-box; }
.agx-main > p { margin: 0 0 18px 0; }
.agx-card { display: block; width: 100% !important; box-sizing: border-box; margin: 0 0 22px 0 !important; padding: 28px 30px !important; border: 0 !important; border-radius: 18px !important; background: #fff; box-shadow: var(--brand-shadow); }
.agx-card p { font-size: 15px; line-height: 1.6; }
.agx-h1 { margin: 0 0 6px 0; font-size: 26px; letter-spacing: -0.02em; }
.agx-h2 { margin: 0 0 16px 0; font-size: 20px; letter-spacing: -0.02em; }
.agx-status { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.agx-status p { margin: 0; }
.agx-status button { cursor: pointer; font: inherit; font-weight: 700; background: #fff; }
.agx-grid { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: end; }
.agx-grid > div:last-child { grid-column: 1 / -1; }
.agx-kinds { grid-column: 1 / -1; border: 0; padding: 0; margin: 0 0 18px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.agx-kinds legend { width: 100%; }
.agx-kinds label, .agx-inline { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; font-size: 15px !important; margin: 0 !important; cursor: pointer; }
.agx-logo-field { grid-column: 1 / -1; }
.agx-logo-now { display: flex !important; align-items: center; gap: 18px; margin: 0 0 12px 0; }
.agx-logo-now img { max-height: 48px; max-width: 200px; width: auto; padding: 8px; border: 1px solid #eee7e2; border-radius: 8px; background: #fff; }
.agx-made { margin: 0 0 18px 0; }
.agx-made p { margin: 0 0 10px 0; }
.agx-copy { display: flex !important; gap: 10px; }
.agx-copy input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #ddd6d1; border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.agx-copy button { border: 0; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }
.agx-table-wrap { overflow-x: auto; width: 100%; float: none; }
.agx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.agx-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--brand-ink-2); padding: 0 12px 10px 0; border-bottom: 1px solid #eee7e2; }
.agx-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid #f3eeea; vertical-align: middle; }
.agx-actions { white-space: nowrap; text-align: right; }
.agx-actions a, .agx-link { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-orange); text-underline-offset: 3px; }
.agx-link { background: none; border: 0; padding: 0; margin-left: 12px; font: inherit; font-weight: 600; cursor: pointer; }

@media screen and (max-width: 800px) {
    .agx-join { grid-template-columns: 1fr; gap: 20px; padding: 26px 22px !important; }
    .agx-grid { grid-template-columns: 1fr; }
    .agx-card { padding: 22px 18px !important; }
    .agx-table thead { display: none; }
    .agx-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid #f3eeea; }
    .agx-table td { padding: 2px 0; border: 0; }
    .agx-table td:nth-child(1) { font-weight: 700; }
    .agx-table td:nth-child(2), .agx-table td:nth-child(3), .agx-table td:nth-child(4) { grid-column: 1; color: var(--brand-ink-2); font-size: 13px; }
    .agx-table td.agx-actions { grid-column: 2; grid-row: 1 / span 4; align-self: center; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
    .agx-link { margin-left: 0; }
}

/* app.css floats almost everything: switch that off inside the sign-up box and dashboard */
.agx-main *, .agx-join * { float: none !important; }
.agx-main form, .agx-main p, .agx-main div:not(.agx-grid):not(.agx-status):not(.agx-copy):not(.agx-logo-now) { width: auto; }
.agx-main form:not(.agx-grid) { display: block; }
.agx-kinds input, .agx-inline input { width: auto !important; height: auto !important; margin: 0 !important; flex: none; }
.agx-kinds label { white-space: nowrap; }
.agx-copy input { width: auto !important; }
.agx-grid > div { min-width: 0; }

/* U110: sign-up box, laid out like the pricing cards (Ronnie: tidy it up) */
.agx-plan { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 900px; margin: 0 auto; float: none !important; width: auto !important; background: #fff; border-radius: 24px; box-shadow: var(--brand-shadow); overflow: hidden; }
.agx-plan * { float: none !important; }
.agx-plan > div, .agx-plan > form { width: auto !important; box-sizing: border-box; padding: 40px 44px; }
.agx-plan h3 { margin: 0 0 14px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--brand-ink); }
.agx-plan-info { background: #fbf8f6; border-right: 1px solid #f0e9e4; }
.agx-price { margin: 0 0 24px 0 !important; font-family: Inter, sans-serif; font-size: 52px !important; line-height: 1 !important; font-weight: 800; letter-spacing: -0.04em; color: var(--brand-ink); }
.agx-price span { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--brand-ink-2); margin-left: 4px; }
.agx-plan-info ul { list-style: none; margin: 0; padding: 0; }
.agx-plan-info li { position: relative; padding: 0 0 0 20px; margin: 0 0 12px 0; font-size: 14px; line-height: 22px; color: #2b2626; list-style: none; }
.agx-plan-info li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-orange); }
.agx-plan-form { display: flex !important; flex-direction: column; justify-content: center; }
.agx-plan-form label { display: block; margin: 0 0 6px 0; font-size: 13px; font-weight: 600; color: var(--brand-ink); width: auto; }
.agx-plan-form input:not(#agx-site) { display: block; width: 100% !important; box-sizing: border-box; height: 48px; padding: 0 16px; margin: 0 0 16px 0; border: 1px solid #ddd6d1; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--brand-ink); }
.agx-plan-form input:focus { outline: 2px solid var(--brand-orange); outline-offset: 1px; border-color: transparent; }
.agx-plan-form input::placeholder { color: #b3acaa; }
.agx-plan-form .ag-btn { width: 100% !important; height: 50px; margin: 6px 0 0 0; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; justify-content: center; }
.agx-plan-form .agx-small { margin: 14px 0 0 0; font-size: 12.5px; line-height: 19px; color: var(--brand-ink-2); text-align: center; }
.agx-plan-form .agx-note, .agx-plan-form .agx-error { margin: 0 0 16px 0; font-size: 13px; line-height: 19px; }
.agx-plan-form .agx-error { padding: 10px 12px; border-radius: 10px; background: #fdecea; }
@media screen and (max-width: 760px) {
    .agx-plan { grid-template-columns: 1fr; border-radius: 20px; }
    .agx-plan > div, .agx-plan > form { padding: 28px 22px; }
    .agx-plan-info { border-right: 0; border-bottom: 1px solid #f0e9e4; }
    .agx-price { font-size: 44px !important; }
}
