/*
 * Auto GST Billing Pro v2.0.110
 * Unified deep blue dashboard theme polish.
 * Design-only layer: no business logic changes.
 */

/* -------------------------------------------------------------------------- */
/* Shared close / cross controls                                              */
/* -------------------------------------------------------------------------- */
.agbp-ui-close-control,
.agbp-auth-modal__close,
.agbp-auth-close,
.agbp-camera-close,
.agbp-bs-close,
.agbp-feature-close{
    box-sizing:border-box!important;
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
    max-width:38px!important;max-height:38px!important;flex:0 0 38px!important;
    display:inline-grid!important;place-items:center!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:0!important;border:1px solid rgba(191,208,245,.55)!important;
    border-radius:12px!important;background:rgba(255,255,255,.98)!important;color:#10284b!important;
    font:900 25px/1 Arial,sans-serif!important;text-decoration:none!important;
    box-shadow:0 10px 24px rgba(16,40,75,.16)!important;cursor:pointer!important;overflow:hidden!important;
    vertical-align:top!important;transform:none!important;z-index:20!important;-webkit-tap-highlight-color:transparent!important;
}
.agbp-ui-close-control:hover,
.agbp-ui-close-control:focus-visible,
.agbp-auth-modal__close:hover,
.agbp-auth-modal__close:focus-visible,
.agbp-auth-close:hover,
.agbp-auth-close:focus-visible,
.agbp-camera-close:hover,
.agbp-camera-close:focus-visible,
.agbp-bs-close:hover,
.agbp-bs-close:focus-visible,
.agbp-feature-close:hover,
.agbp-feature-close:focus-visible{
    background:#fee2e2!important;border-color:#fca5a5!important;color:#b91c1c!important;
    outline:3px solid rgba(239,68,68,.16)!important;outline-offset:2px!important;
}
.agbp-camera-head,.agbp-bs-modal-head{position:relative!important;align-items:flex-start!important;overflow:visible!important}
.agbp-camera-head>div,.agbp-bs-modal-head>div,.agbp-bs-modal-head>h3{min-width:0!important;flex:1 1 auto!important}
.agbp-camera-head .agbp-camera-close,.agbp-bs-modal-head .agbp-bs-close{margin-left:auto!important;position:sticky!important;top:0!important;right:0!important}
.agbp-auth-modal__panel{overflow:auto!important}
.agbp-auth-modal__close{position:sticky!important;top:0!important;right:0!important;float:right!important}
.agbp-feature-close{position:relative!important;inset:auto!important}

/* -------------------------------------------------------------------------- */
/* Unified theme variables                                                    */
/* -------------------------------------------------------------------------- */
:root{
    --agbp-theme-bg:#eef3fb;
    --agbp-theme-bg-soft:#f7faff;
    --agbp-theme-card:#ffffff;
    --agbp-theme-border:#d6e1f5;
    --agbp-theme-border-strong:#bdd0ef;
    --agbp-theme-shadow:0 10px 28px rgba(16,40,75,.08);
    --agbp-theme-shadow-lg:0 18px 42px rgba(16,40,75,.14);
    --agbp-theme-navy:#0f2346;
    --agbp-theme-navy-2:#112b5c;
    --agbp-theme-blue:#1e57ff;
    --agbp-theme-blue-2:#2c72ff;
    --agbp-theme-blue-3:#3462f4;
    --agbp-theme-muted:#5a6f92;
    --agbp-theme-text:#13284a;
    --agbp-theme-teal:#18c37d;
    --agbp-theme-danger:#ff6b6b;
    --agbp-theme-warning:#ffb100;
}

body[class*="auto-gst"],
body.wp-admin [class*="agbp-"],
body [class*="agbp-"]{
    --c-brand:var(--agbp-theme-blue-3);
    --c-border:var(--agbp-theme-border);
    --c-shadow:var(--agbp-theme-shadow);
    --c-shadow-lg:var(--agbp-theme-shadow-lg);
    --c-muted:var(--agbp-theme-muted);
    --c-text:var(--agbp-theme-text);
}

/* Default text fallback must stay specificity-neutral.
 * Module-level dark/light surfaces are allowed to define their own foreground.
 * Using :where() prevents this shared stylesheet from overriding local contrast. */
:where(body.wp-admin [class*="agbp-"], body [class*="agbp-"]){
    color:var(--agbp-theme-text);
}

/* -------------------------------------------------------------------------- */
/* Frontend dashboard shell                                                   */
/* -------------------------------------------------------------------------- */
body .agbp-app-shell{
    background:var(--agbp-theme-card)!important;
    border:1px solid var(--agbp-theme-border)!important;
    box-shadow:var(--agbp-theme-shadow-lg)!important;
    border-radius:24px!important;
    overflow:hidden!important;
}
body .agbp-main{background:linear-gradient(180deg,#f7faff 0%,#f2f6fd 100%)!important}
body .agbp-topbar{
    background:#fff!important;
    border-bottom:1px solid var(--agbp-theme-border)!important;
    box-shadow:0 2px 12px rgba(16,40,75,.04)!important;
}
/* Text colours are intentionally scoped to light surfaces below.
 * Do not force dark text globally because many plugin modules use dark hero/banner panels. */
body .agbp-page-title h1{color:var(--agbp-theme-navy)!important}
body .agbp-page-title small{color:var(--agbp-theme-muted)!important}

/* -------------------------------------------------------------------------- */
/* Left sidebar                                                               */
/* -------------------------------------------------------------------------- */
body .agbp-sidebar,
body .agbp-theme-blue .agbp-sidebar,
body .agbp-theme-green .agbp-sidebar,
body .agbp-theme-purple .agbp-sidebar,
body .agbp-theme-dark .agbp-sidebar{
    background:linear-gradient(180deg,#0a2c81 0%,#092773 55%,#081f62 100%)!important;
    border-right:1px solid rgba(255,255,255,.08)!important;
    box-shadow:inset -1px 0 0 rgba(255,255,255,.05)!important;
}
body .agbp-brand{color:#fff!important;font-weight:800!important}
body .agbp-brand-icon,
body .agbp-theme-green .agbp-brand-icon,
body .agbp-theme-purple .agbp-brand-icon,
body .agbp-theme-dark .agbp-brand-icon{
    background:linear-gradient(135deg,#2f8cff,#1e57ff)!important;
    color:#fff!important;
    box-shadow:0 10px 24px rgba(9,39,115,.32)!important;
}
body .agbp-mobile-nav-toggle{
    background:rgba(255,255,255,.08)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.14)!important;
}
body .agbp-mobile-nav-toggle span{color:#dce7ff!important}
body .agbp-plan-box{
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    box-shadow:none!important;
    color:#fff!important;
}
body .agbp-plan-box strong,
body .agbp-plan-box small{color:#fff!important}
body .agbp-plan-bar{background:rgba(255,255,255,.18)!important}
body .agbp-plan-fill{background:linear-gradient(90deg,#18c37d,#4de2a9)!important}
body .agbp-plan-badge:before{background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.12)!important}
body .agbp-crown-svg,body .agbp-plan-sparkle{color:#8af3bf!important;background:#8af3bf!important}

body .agbp-menu-section{
    background:rgba(255,255,255,.03)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    box-shadow:none!important;
}
body .agbp-menu-group-toggle{background:transparent!important}
body .agbp-menu-group-icon,
body .agbp-menu-group-title,
body .agbp-menu-group-copy small,
body .agbp-menu-group-chevron,
body .agbp-group-svg{color:#ffffff!important}
body .agbp-menu-group-copy small{opacity:.74!important}
body .agbp-menu-group-chevron{
    background:rgba(255,255,255,.06)!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:none!important;
}
body .agbp-tabs-link{
    background:transparent!important;
    border-color:rgba(255,255,255,.10)!important;
    box-shadow:none!important;
}
body .agbp-tab-icon{
    background:rgba(255,255,255,.06)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    color:#7ad1ff!important;
}
body .agbp-tab-label{color:#ffffff!important}
body .agbp-tab-note{color:#dce7ff!important;opacity:.88!important}
body .agbp-menu-item-arrow{
    background:rgba(255,255,255,.06)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:none!important;
}
body .agbp-tabs-link.active{
    background:linear-gradient(135deg,#2591ff 0%,#1e57ff 100%)!important;
    border-color:#53a8ff!important;
    box-shadow:0 14px 30px rgba(20,67,182,.35)!important;
}
body .agbp-tabs-link.active .agbp-tab-icon{
    background:rgba(255,255,255,.18)!important;
    border-color:rgba(255,255,255,.24)!important;
    color:#ffffff!important;
}
body .agbp-tabs-link.active .agbp-menu-item-arrow{
    background:#ffffff!important;color:#1e57ff!important;border-color:#fff!important;
}

/* Fallback for older non-card menu links */
body .agbp-tabs a,
body .agbp-sidebar a.agbp-tabs-link,
body .agbp-sidebar .agbp-tabs > a{
    color:#fff!important;
    border-color:rgba(255,255,255,.10)!important;
}
body .agbp-sidebar .agbp-tabs > a.active,
body .agbp-tabs a.active{background:linear-gradient(135deg,#2591ff,#1e57ff)!important;color:#fff!important}

/* -------------------------------------------------------------------------- */
/* Buttons / chips / tabs                                                     */
/* -------------------------------------------------------------------------- */
body .agbp-btn,
body .agbp-profile-save,
body .agbp-profile-upgrade-btn,
body .agbp-profile-buy-btn,
body .agbp-pwp-btn,
body .agbp-admin-dash .button-primary,
body .agbp-admin-dash .button.button-primary,
body .agbp-main .button-primary,
body .agbp-main .button.button-primary{
    background:linear-gradient(135deg,#2f8cff 0%,#1e57ff 100%)!important;
    border:1px solid #3d8cff!important;
    color:#fff!important;
    border-radius:12px!important;
    box-shadow:0 10px 24px rgba(30,87,255,.22)!important;
}
body .agbp-btn.green,
body .agbp-pwp-btn.green{background:linear-gradient(135deg,#18c37d,#10a865)!important;border-color:#2fd58f!important;box-shadow:0 10px 24px rgba(24,195,125,.22)!important}
body .agbp-btn.red,
body .agbp-pwp-btn.red{background:linear-gradient(135deg,#ff7e7e,#ff5a5a)!important;border-color:#ff8d8d!important;box-shadow:0 10px 24px rgba(255,90,90,.18)!important}
body .agbp-btn.soft,
body .agbp-pwp-btn.soft,
body .agbp-admin-dash .button,
body .agbp-main .button{
    background:#fff!important;color:var(--agbp-theme-blue)!important;border:1px solid var(--agbp-theme-border)!important;
    border-radius:12px!important;box-shadow:0 6px 16px rgba(16,40,75,.06)!important;
}
body .agbp-nav a,
body .agbp-tabs-pill a,
body .agbp-project-tab,
body .agbp-pwp-nav a,
body .agbp-main .agbp-nav-pill,
body .agbp-main [class*="agbp-tab"] a{
    border-radius:999px!important;
}
body .agbp-main .agbp-nav-pill.is-active,
body .agbp-pwp-nav a.is-active{background:linear-gradient(135deg,#2f8cff,#1e57ff)!important;color:#fff!important;border-color:#3d8cff!important}

/* -------------------------------------------------------------------------- */
/* Cards / tables / panels                                                    */
/* -------------------------------------------------------------------------- */
body .agbp-card,
body .agbp-summary-card,
body .agbp-table-box,
body .agbp-ai-front-card,
body .agbp-profile-panel,
body .agbp-profile-hero,
body .agbp-admin-card,
body .agbp-admin-panel,
body .agbp-pwp-card,
body .agbp-pwp-form,
body .agbp-pwp-public-card,
body .agbp-auth-hero,
body .agbp-auth-panel,
body .agbp-feature-card,
body .agbp-user-card,
body .agbp-mlc-card,
body .agbp-mlc-diagnostic-report,
body .agbp-mgc-section,
body .agbp-mgc-card,
body .agbp-bs-card,
body .agbp-bs-panel,
body .agbp-qbd-card,
body .agbp-qbd-panel{
    background:var(--agbp-theme-card)!important;
    border:1px solid var(--agbp-theme-border)!important;
    box-shadow:var(--agbp-theme-shadow)!important;
    border-radius:20px!important;
}
body .agbp-summary-card,
body .agbp-admin-card.kpi,
body .agbp-pwp-kpi>div,
body .agbp-pwp-work-summary>div,
body .agbp-check-card,
body .agbp-action-card{
    background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%)!important;
}
body .agbp-summary-card strong,
body .agbp-card strong,
body .agbp-admin-card .value,
body .agbp-pwp-stat strong,
body .agbp-pwp-kpi strong,
body .agbp-status-number{color:var(--agbp-theme-blue)!important}
body .agbp-status,
body .agbp-badge,
body .agbp-user-chip,
body .agbp-pwp-badge,
body .agbp-status-pill{
    background:#edf4ff!important;color:var(--agbp-theme-blue)!important;border:1px solid #d6e6ff!important;border-radius:999px!important;
}
body .agbp-status-good{background:#e9fff5!important;color:#0a9d63!important;border-color:#c5f3de!important}
body .agbp-status-warn{background:#fff5de!important;color:#b97200!important;border-color:#ffe1a0!important}
body .agbp-status-low{background:#ffecec!important;color:#d84949!important;border-color:#ffc9c9!important}

body .agbp-table,
body .agbp-admin-table,
body .agbp-pwp-table,
body .agbp-mlc-diagnostic-table,
body .agbp-main table.widefat{
    border-collapse:separate!important;border-spacing:0!important;width:100%!important;
}
body .agbp-table thead,
body .agbp-main table.widefat thead{background:linear-gradient(135deg,#0f2346,#1e57ff)!important}
body .agbp-table th,
body .agbp-admin-table th,
body .agbp-pwp-table th,
body .agbp-main table.widefat th{
    background:#f6f9ff!important;color:#4b6086!important;border-bottom:1px solid var(--agbp-theme-border)!important;
    text-transform:uppercase!important;font-size:11px!important;letter-spacing:.05em!important;font-weight:800!important;
}
body .agbp-table td,
body .agbp-admin-table td,
body .agbp-pwp-table td,
body .agbp-main table.widefat td{
    border-bottom:1px solid #e7edf8!important;color:var(--agbp-theme-text)!important;
    background:#fff!important;
}
body .agbp-table tbody tr:hover td,
body .agbp-admin-table tbody tr:hover td,
body .agbp-pwp-table tbody tr:hover td,
body .agbp-main table.widefat tbody tr:hover td{background:#f8fbff!important}

/* -------------------------------------------------------------------------- */
/* Input fields / forms                                                       */
/* -------------------------------------------------------------------------- */
body .agbp-main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="color"]),
body .agbp-main select,
body .agbp-main textarea,
body .agbp-admin-dash input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="color"]),
body .agbp-admin-dash select,
body .agbp-admin-dash textarea,
body .agbp-pwp-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="color"]),
body .agbp-pwp-wrap select,
body .agbp-pwp-wrap textarea,
body .agbp-pwp-public-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="color"]),
body .agbp-pwp-public-card select,
body .agbp-pwp-public-card textarea{
    border:1px solid var(--agbp-theme-border-strong)!important;
    background:#fff!important;color:var(--agbp-theme-text)!important;border-radius:12px!important;
    box-shadow:inset 0 1px 2px rgba(16,40,75,.03)!important;
}
body .agbp-main input:focus,
body .agbp-main select:focus,
body .agbp-main textarea:focus,
body .agbp-admin-dash input:focus,
body .agbp-admin-dash select:focus,
body .agbp-admin-dash textarea:focus,
body .agbp-pwp-wrap input:focus,
body .agbp-pwp-wrap select:focus,
body .agbp-pwp-wrap textarea:focus,
body .agbp-pwp-public-card input:focus,
body .agbp-pwp-public-card select:focus,
body .agbp-pwp-public-card textarea:focus{
    border-color:#70a6ff!important;
    box-shadow:0 0 0 4px rgba(47,140,255,.14)!important;
    outline:none!important;
}

/* -------------------------------------------------------------------------- */
/* Hero / major panels                                                        */
/* -------------------------------------------------------------------------- */
body .agbp-admin-hero,
body .agbp-main .agbp-hero,
body .agbp-pwp-hero,
body .agbp-auth-hero,
body .agbp-project-hero,
body .agbp-portal-banner,
body .agbp-main .agbp-gradient-banner{
    background:linear-gradient(135deg,#0f2346 0%,#173d8f 52%,#245cff 100%)!important;
    border:1px solid rgba(255,255,255,.08)!important;
    box-shadow:0 18px 40px rgba(16,40,75,.20)!important;
    color:#fff!important;
}
body .agbp-admin-hero h1,
body .agbp-admin-hero h2,
body .agbp-admin-hero h3,
body .agbp-admin-hero p,
body .agbp-pwp-hero h1,
body .agbp-pwp-hero h2,
body .agbp-pwp-hero h3,
body .agbp-pwp-hero p,
body .agbp-auth-hero h1,
body .agbp-auth-hero h2,
body .agbp-auth-hero h3,
body .agbp-auth-hero p,
body .agbp-main .agbp-hero h1,
body .agbp-main .agbp-hero h2,
body .agbp-main .agbp-hero h3,
body .agbp-main .agbp-hero p,
body .agbp-main .agbp-gradient-banner h1,
body .agbp-main .agbp-gradient-banner h2,
body .agbp-main .agbp-gradient-banner h3,
body .agbp-main .agbp-gradient-banner p{color:#fff!important}
body .agbp-admin-badge,
body .agbp-pill,
body .agbp-kicker{background:rgba(255,255,255,.12)!important;color:#deebff!important;border:1px solid rgba(255,255,255,.12)!important}

/* -------------------------------------------------------------------------- */
/* Project / portal / workflow helpers                                        */
/* -------------------------------------------------------------------------- */
body .agbp-pwp-control-step,
body .agbp-pwp-stage-node,
body .agbp-pwp-update,
body .agbp-pwp-credentials,
body .agbp-pwp-check-card,
body .agbp-pwp-action-card,
body .agbp-qbd-unified-card,
body .agbp-qbd-stage-card,
body .agbp-qbd-payment-card{
    background:#fff!important;border:1px solid var(--agbp-theme-border)!important;border-radius:16px!important;box-shadow:0 8px 20px rgba(16,40,75,.06)!important;
}
body .agbp-pwp-control-step.done,
body .agbp-pwp-stage-node.done,
body .agbp-qbd-stage-card.done{border-color:#b9edd6!important;background:#f0fff8!important}
body .agbp-pwp-progress,
body .agbp-qbd-progress{background:#dde7f6!important;border-radius:999px!important}
body .agbp-pwp-progress span,
body .agbp-qbd-progress span{background:linear-gradient(90deg,#1e57ff,#18c37d)!important}

/* -------------------------------------------------------------------------- */
/* Notices / alerts                                                           */
/* -------------------------------------------------------------------------- */
body .agbp-note,
body .agbp-alert,
body .agbp-msg,
body .agbp-profile-note,
body .agbp-pwp-alert{
    border-radius:14px!important;border:1px solid #dce8ff!important;background:#f6faff!important;color:var(--agbp-theme-text)!important;
}
body .agbp-alert.error,
body .agbp-profile-note.error,
body .agbp-pwp-alert.error{background:#fff1f1!important;border-color:#ffc9c9!important;color:#b63131!important}
body .agbp-pwp-alert.warning{background:#fff8e7!important;border-color:#ffe0a3!important;color:#9d6a00!important}

/* -------------------------------------------------------------------------- */
/* Admin dashboard polish                                                     */
/* -------------------------------------------------------------------------- */
body .agbp-admin-dash{padding-top:14px!important}
body .agbp-admin-shell{gap:16px!important}
body .agbp-admin-mini-card{
    background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;
}
body .agbp-admin-mini-card span{color:#d6e5ff!important}
body .agbp-admin-mini-card strong{color:#fff!important}
body .agbp-users-list .agbp-user-card{background:linear-gradient(180deg,#fff,#f8fbff)!important}

/* -------------------------------------------------------------------------- */
/* Small responsive cleanup                                                   */
/* -------------------------------------------------------------------------- */
@media(max-width:1080px){
    body .agbp-app-shell{width:calc(100% - 18px)!important;margin:12px auto 24px!important;border-radius:20px!important}
}
@media(max-width:600px){
    .agbp-ui-close-control,.agbp-auth-modal__close,.agbp-auth-close,.agbp-camera-close,.agbp-bs-close,.agbp-feature-close{
        width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;flex-basis:34px!important;font-size:22px!important;border-radius:10px!important;
    }
    body .agbp-card,body .agbp-summary-card,body .agbp-table-box,body .agbp-admin-card,body .agbp-admin-panel,body .agbp-pwp-card,body .agbp-pwp-form,body .agbp-pwp-public-card{border-radius:16px!important}
    body .agbp-topbar{padding-left:12px!important;padding-right:12px!important}
}

/* -------------------------------------------------------------------------- */
/* v2.0.83 theme correction pass                                              */
/* -------------------------------------------------------------------------- */
/* Keep plugin overall light, with dark-blue sidebar + hero only. */
body .agbp-app-shell .agbp-main,
body .agbp-app-shell .agbp-content,
body .agbp-app-shell .agbp-page,
body .agbp-admin-dash,
body .agbp-pwp-wrap,
body .agbp-pwp-public-card,
body .agbp-auth-main{
    background:#f4f7fc!important;
    color:var(--agbp-theme-text)!important;
}

/* Sidebar group headers stay dark-panel, submenu items become readable white cards. */
body .agbp-app-shell .agbp-sidebar .agbp-menu-section{
    background:rgba(255,255,255,.05)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-group-toggle,
body .agbp-app-shell .agbp-sidebar .agbp-menu-group-heading{
    background:transparent!important;
    color:#ffffff!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-group-title,
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-menu-group-title{
    color:#ffffff!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-group-copy small{
    color:#d8e6ff!important;
    opacity:.88!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-group-icon{
    color:#9addff!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-group-chevron{
    background:rgba(255,255,255,.08)!important;
    color:#ffffff!important;
    border:1px solid rgba(255,255,255,.14)!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section.is-open{
    background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.07))!important;
    border-color:rgba(179,214,255,.28)!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section-items,
body .agbp-app-shell .agbp-sidebar .agbp-menu-section.is-open .agbp-menu-section-items{
    padding:0 12px 12px!important;
    gap:8px!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link{
    background:#ffffff!important;
    color:#173258!important;
    border:1px solid #d9e8fb!important;
    box-shadow:0 6px 16px rgba(7,29,74,.08)!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link:hover{
    background:#f8fbff!important;
    border-color:#bfd8ff!important;
    box-shadow:0 10px 20px rgba(7,29,74,.10)!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tab-icon{
    background:#edf4ff!important;
    border:1px solid #d5e6ff!important;
    color:#214c92!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tab-label{
    color:#0f2346!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tab-note{
    color:#6b7f9e!important;
    opacity:1!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-menu-item-arrow{
    background:#ffffff!important;
    border:1px solid #d8e6fb!important;
    color:#173d8f!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link.active{
    background:linear-gradient(135deg,#1f6fff 0%,#0f56ea 100%)!important;
    border-color:#5ca7ff!important;
    box-shadow:0 14px 30px rgba(16,86,234,.28)!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link.active .agbp-tab-label,
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link.active .agbp-tab-note{
    color:#ffffff!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link.active .agbp-tab-icon{
    background:#ffffff!important;
    border-color:#ffffff!important;
    color:#0f56ea!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link.active .agbp-menu-item-arrow{
    background:#ffffff!important;
    color:#0f56ea!important;
    border-color:#ffffff!important;
}

/* Make top controls light and crisp. */
body .agbp-app-shell .agbp-topbar,
body .agbp-app-shell .agbp-table-box,
body .agbp-app-shell .agbp-card,
body .agbp-app-shell .agbp-summary-card{
    background:#ffffff!important;
}

/* Improve dark-blue portal banner readability. */
body .agbp-pwp-portal-banner,
body .agbp-main .agbp-pwp-portal-banner{
    background:linear-gradient(135deg,#102a73 0%,#2149b8 100%)!important;
    color:#ffffff!important;
    border:1px solid rgba(255,255,255,.08)!important;
}
body .agbp-pwp-portal-banner h1,
body .agbp-pwp-portal-banner h2,
body .agbp-pwp-portal-banner h3,
body .agbp-pwp-portal-banner b,
body .agbp-pwp-portal-banner strong,
body .agbp-main .agbp-pwp-portal-banner h1,
body .agbp-main .agbp-pwp-portal-banner h2,
body .agbp-main .agbp-pwp-portal-banner h3,
body .agbp-main .agbp-pwp-portal-banner b,
body .agbp-main .agbp-pwp-portal-banner strong{
    color:#ffffff!important;
}
body .agbp-pwp-portal-banner p,
body .agbp-pwp-portal-banner small,
body .agbp-main .agbp-pwp-portal-banner p,
body .agbp-main .agbp-pwp-portal-banner small{
    color:#dce8ff!important;
}
body .agbp-pwp-portal-banner .agbp-pwp-copy-box,
body .agbp-main .agbp-pwp-portal-banner .agbp-pwp-copy-box{
    background:rgba(255,255,255,.10)!important;
    border:1px solid rgba(255,255,255,.18)!important;
    color:#ffffff!important;
    box-shadow:none!important;
}
body .agbp-pwp-portal-banner .agbp-pwp-copy-box b,
body .agbp-pwp-portal-banner .agbp-pwp-copy-box strong,
body .agbp-main .agbp-pwp-portal-banner .agbp-pwp-copy-box b,
body .agbp-main .agbp-pwp-portal-banner .agbp-pwp-copy-box strong{
    color:#ffffff!important;
}
body .agbp-pwp-portal-banner .agbp-pwp-btn.soft,
body .agbp-main .agbp-pwp-portal-banner .agbp-pwp-btn.soft{
    background:#ffffff!important;
    color:#1e57ff!important;
    border-color:#ffffff!important;
}

/* Prevent accidental dark text inside blue hero bands/cards. */
body .agbp-admin-hero *,
body .agbp-pwp-hero *,
body .agbp-main .agbp-hero *,
body .agbp-main .agbp-gradient-banner *{
    color:inherit!important;
}

/* Sidebar plan card stays readable. */
body .agbp-app-shell .agbp-sidebar .agbp-plan-copy strong,
body .agbp-app-shell .agbp-sidebar .agbp-plan-copy small,
body .agbp-app-shell .agbp-sidebar .agbp-plan-box > small{
    color:#ffffff!important;
}

/* -------------------------------------------------------------------------- */
/* v2.0.84 — full contrast and visibility guard                               */
/* -------------------------------------------------------------------------- */

/* The legacy light glass pseudo-panel was causing white text on white. */
html body .agbp-app-shell .agbp-sidebar:before{
    background:linear-gradient(180deg,rgba(11,47,132,.98) 0%,rgba(8,37,108,.99) 55%,rgba(6,29,89,.99) 100%)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    box-shadow:0 18px 38px rgba(3,16,53,.26),inset 0 1px 0 rgba(255,255,255,.05)!important;
}

/* Sidebar header/group contrast. */
html body .agbp-app-shell .agbp-sidebar .agbp-brand,
html body .agbp-app-shell .agbp-sidebar .agbp-brand > span,
html body .agbp-app-shell .agbp-sidebar .agbp-menu-group-title,
html body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-menu-group-title{
    color:#ffffff!important;
    text-shadow:0 1px 1px rgba(0,0,0,.12)!important;
}
html body .agbp-app-shell .agbp-sidebar .agbp-menu-group-copy small{
    color:#d9e8ff!important;
    opacity:1!important;
}
html body .agbp-app-shell .agbp-sidebar .agbp-plan-box,
html body .agbp-app-shell .agbp-sidebar .agbp-plan-copy,
html body .agbp-app-shell .agbp-sidebar .agbp-plan-copy strong,
html body .agbp-app-shell .agbp-sidebar .agbp-plan-copy small,
html body .agbp-app-shell .agbp-sidebar .agbp-plan-box > small{
    color:#ffffff!important;
}

/* Submenu cards are deliberately light, so their text must remain dark. */
html body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link:not(.active) .agbp-tab-label{
    color:#0d2449!important;
}
html body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link:not(.active) .agbp-tab-note{
    color:#5f7598!important;
    opacity:1!important;
}
html body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link.active .agbp-tab-label,
html body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link.active .agbp-tab-note{
    color:#ffffff!important;
}

/* Dark/gradient module heroes: force readable white text only inside known dark panels. */
html body .agbp-main .agbp-hero-box,
html body .agbp-main .agbp-admin-hero,
html body .agbp-main .agbp-pwp-hero,
html body .agbp-main .agbp-cap-hero,
html body .agbp-main .agbp-ecl-hero,
html body .agbp-main .agbp-mgc-hero,
html body .agbp-main .agbp-portal-hero,
html body .agbp-main .agbp-sp-hero,
html body .agbp-main .agbp-suite-hero,
html body .agbp-main .agbp-feature-hero,
html body .agbp-main .agbp-form-hero,
html body .agbp-main .agbp-bs-settings-hero,
html body .agbp-main .agbp-project-hero,
html body .agbp-main .agbp-gradient-banner,
html body .agbp-admin-dash .agbp-admin-hero,
html body .agbp-pwp-wrap .agbp-pwp-hero,
html body .agbp-pwp-public-card .agbp-pwp-hero{
    color:#ffffff!important;
}
html body .agbp-main .agbp-hero-box :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-admin-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-pwp-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-cap-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-ecl-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-mgc-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-portal-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-sp-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-suite-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-feature-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-form-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-bs-settings-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-project-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-main .agbp-gradient-banner :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-admin-dash .agbp-admin-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-pwp-wrap .agbp-pwp-hero :is(h1,h2,h3,h4,p,small,strong,span),
html body .agbp-pwp-public-card .agbp-pwp-hero :is(h1,h2,h3,h4,p,small,strong,span){
    color:#ffffff!important;
}

/* Portal access panels and copy boxes. */
html body .agbp-main .agbp-pwp-portal-banner,
html body .agbp-pwp-wrap .agbp-pwp-portal-banner,
html body .agbp-pwp-public-card .agbp-pwp-portal-banner{
    color:#ffffff!important;
}
html body .agbp-main .agbp-pwp-portal-banner :is(h1,h2,h3,h4,b,strong),
html body .agbp-pwp-wrap .agbp-pwp-portal-banner :is(h1,h2,h3,h4,b,strong),
html body .agbp-pwp-public-card .agbp-pwp-portal-banner :is(h1,h2,h3,h4,b,strong){
    color:#ffffff!important;
}
html body .agbp-main .agbp-pwp-portal-banner :is(p,small),
html body .agbp-pwp-wrap .agbp-pwp-portal-banner :is(p,small),
html body .agbp-pwp-public-card .agbp-pwp-portal-banner :is(p,small){
    color:#dbe8ff!important;
}
html body .agbp-main .agbp-pwp-copy-box,
html body .agbp-pwp-wrap .agbp-pwp-copy-box,
html body .agbp-pwp-public-card .agbp-pwp-copy-box{
    color:#ffffff!important;
    background:rgba(255,255,255,.11)!important;
    border-color:rgba(255,255,255,.22)!important;
}
html body .agbp-main .agbp-pwp-copy-box :is(b,strong,span,small),
html body .agbp-pwp-wrap .agbp-pwp-copy-box :is(b,strong,span,small),
html body .agbp-pwp-public-card .agbp-pwp-copy-box :is(b,strong,span,small){
    color:#ffffff!important;
}

/* Light surface text guard: cards and forms must never inherit white from parent sections. */
html body .agbp-main :is(.agbp-card,.agbp-summary-card,.agbp-table-box,.agbp-ai-front-card,.agbp-profile-panel,.agbp-pwp-card,.agbp-pwp-form,.agbp-cap-card,.agbp-cap-form,.agbp-ecl-card,.agbp-ecl-form,.agbp-mlc-card,.agbp-mgc-card,.agbp-admin-card,.agbp-admin-panel),
html body .agbp-admin-dash :is(.agbp-admin-card,.agbp-admin-panel,.agbp-user-card),
html body .agbp-pwp-wrap :is(.agbp-pwp-card,.agbp-pwp-form){
    color:#13284a!important;
}
html body .agbp-main :is(.agbp-card,.agbp-summary-card,.agbp-table-box,.agbp-ai-front-card,.agbp-profile-panel,.agbp-pwp-card,.agbp-pwp-form,.agbp-cap-card,.agbp-cap-form,.agbp-ecl-card,.agbp-ecl-form,.agbp-mlc-card,.agbp-mgc-card,.agbp-admin-card,.agbp-admin-panel) :is(h1,h2,h3,h4,b,strong,label),
html body .agbp-admin-dash :is(.agbp-admin-card,.agbp-admin-panel,.agbp-user-card) :is(h1,h2,h3,h4,b,strong,label),
html body .agbp-pwp-wrap :is(.agbp-pwp-card,.agbp-pwp-form) :is(h1,h2,h3,h4,b,strong,label){
    color:#0f2346!important;
}
html body .agbp-main :is(.agbp-card,.agbp-summary-card,.agbp-table-box,.agbp-ai-front-card,.agbp-profile-panel,.agbp-pwp-card,.agbp-pwp-form,.agbp-cap-card,.agbp-cap-form,.agbp-ecl-card,.agbp-ecl-form,.agbp-mlc-card,.agbp-mgc-card,.agbp-admin-card,.agbp-admin-panel) :is(p,small,.sub,.muted),
html body .agbp-admin-dash :is(.agbp-admin-card,.agbp-admin-panel,.agbp-user-card) :is(p,small,.sub,.muted),
html body .agbp-pwp-wrap :is(.agbp-pwp-card,.agbp-pwp-form) :is(p,small,.sub,.muted){
    color:#5f7393!important;
}

/* Primary button family — explicit foreground/background contrast. */
html body :is(.agbp-btn,.agbp-btn-primary,.agbp-ai-front-btn,.agbp-ai-mini-btn,.agbp-ai-suggest-btn,.agbp-cap-btn,.agbp-cf-btn,.agbp-ecl-btn,.agbp-mc-btn,.agbp-mgc-btn,.agbp-mlc-btn,.agbp-photo-btn,.agbp-plan-btn,.agbp-ppg-pay-button,.agbp-profile-buy-btn,.agbp-profile-upgrade-btn,.agbp-pwp-btn,.agbp-smart-action-btn,.agbp-sp-btn,.agbp-suite-btn,.agbp-upam-button,.agbp-qbd-upload-button){
    color:#ffffff!important;
    text-shadow:none!important;
}
html body :is(.agbp-btn-secondary,.agbp-btn.soft,.agbp-pwp-btn.soft,.agbp-ecl-btn.soft,.agbp-mlc-btn.soft,.agbp-home-btn-soft,.agbp-mini-invoice-btn){
    background:#ffffff!important;
    color:#1d56e8!important;
    border-color:#c9dcfb!important;
    text-shadow:none!important;
}
html body :is(.agbp-btn-green,.agbp-share-btn-green,.agbp-pwp-btn.green,.agbp-ecl-btn.green,.agbp-cap-btn.green,.agbp-mlc-btn.green){
    background:linear-gradient(135deg,#18c37d,#0fa865)!important;
    color:#ffffff!important;
}
html body :is(.agbp-btn-danger,.agbp-btn-red,.agbp-reject-btn,.agbp-pwp-btn.red){
    background:linear-gradient(135deg,#ff6f73,#dc3545)!important;
    color:#ffffff!important;
}
html body :is(.agbp-btn-dark,.agbp-btn-slate,.agbp-pwp-btn.dark,.agbp-ecl-btn.dark,.agbp-cap-btn.dark){
    background:linear-gradient(135deg,#16325c,#0c2345)!important;
    color:#ffffff!important;
}

/* Never allow disabled buttons to become invisible. */
html body [class*="agbp-"][disabled],
html body [class*="agbp-"].disabled{
    opacity:.58!important;
    filter:saturate(.65)!important;
    cursor:not-allowed!important;
}

@media(max-width:600px){
    html body .agbp-app-shell .agbp-sidebar:before{border-radius:22px!important}
}

/* -------------------------------------------------------------------------- */
/* v2.0.85 targeted text/button visibility fixes                              */
/* Only the reported spots are corrected.                                     */
/* -------------------------------------------------------------------------- */

/* 1) My Invoices header / invoice stats hero */
body .agbp-page-header,
body .agbp-app .agbp-page-header{
    color:#ffffff!important;
}
body .agbp-page-header .agbp-page-title,
body .agbp-app .agbp-page-header .agbp-page-title,
body .agbp-page-header h1,
body .agbp-page-header h2,
body .agbp-page-header h3{
    color:#ffffff!important;
}
body .agbp-page-header .agbp-page-subtitle,
body .agbp-page-header p,
body .agbp-page-header small{
    color:rgba(255,255,255,.84)!important;
}
body .agbp-page-header .agbp-stat,
body .agbp-app .agbp-page-header .agbp-stat{
    background:rgba(255,255,255,.16)!important;
    border-color:rgba(255,255,255,.18)!important;
}
body .agbp-page-header .agbp-stat-val,
body .agbp-page-header .agbp-stat strong{
    color:#ffffff!important;
}
body .agbp-page-header .agbp-stat-lbl,
body .agbp-page-header .agbp-stat small{
    color:rgba(255,255,255,.78)!important;
}

/* 2) Create GST Invoice hero */
body .agbp-hero-box,
body .agbp-app .agbp-hero-box{
    color:#ffffff!important;
}
body .agbp-hero-box h1,
body .agbp-hero-box h2,
body .agbp-hero-box h3,
body .agbp-hero-box strong,
body .agbp-app .agbp-hero-box h1,
body .agbp-app .agbp-hero-box h2,
body .agbp-app .agbp-hero-box h3,
body .agbp-app .agbp-hero-box strong{
    color:#ffffff!important;
}
body .agbp-hero-box p,
body .agbp-hero-box small,
body .agbp-app .agbp-hero-box p,
body .agbp-app .agbp-hero-box small{
    color:rgba(255,255,255,.86)!important;
}

/* 3) Universal Barcode Scanner workbench */
body .agbp-bs-workbench,
body .agbp-bs-workbench *{
    color:inherit;
}
body .agbp-bs-workbench .agbp-bs-title h3,
body .agbp-bs-workbench .agbp-bs-title strong,
body .agbp-bs-workbench .agbp-bs-state,
body .agbp-bs-workbench .agbp-bs-state span,
body .agbp-bs-workbench .agbp-bs-state b{
    color:#ffffff!important;
}
body .agbp-bs-workbench .agbp-bs-title p,
body .agbp-bs-workbench .agbp-bs-kicker,
body .agbp-bs-workbench .agbp-bs-message,
body .agbp-bs-workbench .agbp-bs-message span,
body .agbp-bs-workbench .agbp-bs-message b,
body .agbp-bs-workbench .agbp-bs-message small{
    color:#dce8ff!important;
}
body .agbp-bs-workbench .agbp-bs-input-wrap span{
    color:#4b5e7e!important;
}
body .agbp-bs-workbench .agbp-bs-input,
body .agbp-bs-workbench .agbp-bs-input::placeholder{
    color:#94a3b8!important;
    opacity:1!important;
}
body .agbp-bs-workbench .agbp-bs-input-wrap button,
body .agbp-bs-workbench .agbp-bs-input-wrap .button,
body .agbp-bs-workbench .agbp-bs-input-wrap input[type="button"],
body .agbp-bs-workbench .agbp-bs-input-wrap input[type="submit"]{
    background:#2f67f6!important;
    color:#ffffff!important;
}
body .agbp-bs-workbench .agbp-bs-btn,
body .agbp-bs-workbench button.agbp-bs-btn,
body .agbp-bs-workbench a.agbp-bs-btn{
    color:#eef5ff!important;
    border-color:rgba(255,255,255,.26)!important;
    background:rgba(255,255,255,.12)!important;
}
body .agbp-bs-workbench .agbp-bs-btn:hover,
body .agbp-bs-workbench .agbp-bs-btn:focus-visible{
    color:#ffffff!important;
    background:rgba(255,255,255,.18)!important;
}
body .agbp-bs-workbench .agbp-bs-btn.primary{
    background:#1e57ff!important;
    border-color:#4582ff!important;
    color:#ffffff!important;
}
body .agbp-bs-workbench .agbp-bs-btn.dark{
    background:#0c1836!important;
    border-color:#1a315e!important;
    color:#cfe0ff!important;
}
body .agbp-bs-workbench .agbp-bs-message{
    background:rgba(255,255,255,.12)!important;
}
body .agbp-bs-workbench .agbp-bs-message.ok{background:rgba(22,163,74,.26)!important;color:#ecfff3!important}
body .agbp-bs-workbench .agbp-bs-message.error{background:rgba(220,38,38,.26)!important;color:#fff3f3!important}
body .agbp-bs-workbench .agbp-bs-message.warn{background:rgba(234,88,12,.26)!important;color:#fff8ee!important}
body .agbp-bs-workbench select,
body .agbp-bs-workbench .agbp-bs-row select{
    color:#12284a!important;
    background:#ffffff!important;
}
body .agbp-bs-workbench option{color:#12284a!important;background:#ffffff!important}

/* 4) E-Way saved table source / status visibility */
body .agbp-main .agbp-table td .agbp-pill,
body .agbp-main .agbp-card td .agbp-pill,
body .agbp-main table td .agbp-pill,
body .agbp-main .agbp-pill{
    color:#0f4f86!important;
    background:#e0f2fe!important;
    border:1px solid #b9def8!important;
}
body .agbp-main .agbp-pill.agbp-pill-green,
body .agbp-main .agbp-table td .agbp-pill.agbp-pill-green,
body .agbp-main table td .agbp-pill.agbp-pill-green{
    color:#166534!important;
    background:#dcfce7!important;
    border-color:#86efac!important;
}
body .agbp-main .agbp-pill.agbp-pill-amber,
body .agbp-main .agbp-table td .agbp-pill.agbp-pill-amber,
body .agbp-main table td .agbp-pill.agbp-pill-amber{
    color:#92400e!important;
    background:#fef3c7!important;
    border-color:#fcd34d!important;
}
body .agbp-main .agbp-pill.agbp-pill-red,
body .agbp-main .agbp-table td .agbp-pill.agbp-pill-red,
body .agbp-main table td .agbp-pill.agbp-pill-red{
    color:#991b1b!important;
    background:#fee2e2!important;
    border-color:#fca5a5!important;
}
body .agbp-main table td small,
body .agbp-main .agbp-table td small,
body .agbp-main .agbp-card td small{
    color:#5b6f91!important;
}

/* 5) Sidebar plan badge icon and copy visibility */
body .agbp-app-shell .agbp-sidebar .agbp-plan-box .agbp-plan-copy strong,
body .agbp-app-shell .agbp-sidebar .agbp-plan-box .agbp-plan-copy small,
body .agbp-app-shell .agbp-sidebar .agbp-plan-box > small{
    color:#ffffff!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-plan-badge:before{
    background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.12))!important;
    border-color:rgba(255,255,255,.26)!important;
}
body .agbp-app-shell .agbp-sidebar .agbp-crown-svg{
    color:#8bf2bd!important;
    filter:drop-shadow(0 4px 10px rgba(24,195,125,.18));
}

/* -------------------------------------------------------------------------- */
/* v2.0.86 targeted sidebar/mobile/text refinements                           */
/* -------------------------------------------------------------------------- */

/* 1) Sidebar/menu should feel slightly more expanded downward and breathable */
html body .agbp-app-shell .agbp-sidebar{
    padding-bottom:22px!important;
}
html body .agbp-app-shell .agbp-sidebar .agbp-tabs,
html body .agbp-app-shell .agbp-sidebar .agbp-menu,
html body .agbp-app-shell .agbp-sidebar .agbp-menu-wrap{
    padding-bottom:18px!important;
}
html body .agbp-app-shell .agbp-sidebar .agbp-plan-box{
    margin-top:16px!important;
    margin-bottom:10px!important;
}

/* 2) Mobile responsive menu stabilization */
@media(max-width:767px){
    html body .agbp-app-shell .agbp-sidebar{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        min-height:0!important;
        height:auto!important;
        display:block!important;
        overflow:visible!important;
        padding:10px 10px 12px!important;
    }
    html body .agbp-app-shell .agbp-sidebar:before{
        inset:8px!important;
        border-radius:24px!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-brand{
        margin:16px 16px 12px!important;
        flex:0 0 auto!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-mobile-nav-toggle{
        margin-right:16px!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-tabs,
    html body .agbp-app-shell .agbp-sidebar .agbp-menu,
    html body .agbp-app-shell .agbp-sidebar .agbp-menu-wrap{
        flex:1 1 auto!important;
        min-height:0!important;
        overflow-y:auto!important;
        overflow-x:hidden!important;
        padding:0 14px 16px!important;
        scrollbar-width:thin;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-menu-section,
    html body .agbp-app-shell .agbp-sidebar .agbp-menu-section.is-open{
        margin-bottom:12px!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-menu-section-items,
    html body .agbp-app-shell .agbp-sidebar .agbp-menu-section.is-open .agbp-menu-section-items{
        padding:0 10px 12px!important;
        gap:10px!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-menu-section .agbp-tabs-link{
        grid-template-columns:54px minmax(0,1fr) 34px!important;
        min-height:78px!important;
        padding:12px!important;
        gap:10px!important;
        border-radius:18px!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-tab-icon{
        width:48px!important;
        height:48px!important;
        min-width:48px!important;
        border-radius:14px!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-tab-label{
        font-size:14px!important;
        line-height:1.25!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-tab-note{
        font-size:11.5px!important;
        line-height:1.3!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-menu-item-arrow{
        width:34px!important;
        height:34px!important;
        min-width:34px!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-plan-box{
        margin:14px 14px 6px!important;
        padding:14px!important;
        border-radius:18px!important;
        flex:0 0 auto!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-plan-copy strong{
        font-size:13px!important;
        line-height:1.25!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-plan-copy small,
    html body .agbp-app-shell .agbp-sidebar .agbp-plan-box > small{
        font-size:11px!important;
        line-height:1.35!important;
    }
}

/* 3) Risk score contrast guards.
 * Photo health score is a dark blue card; Smart Pack score is intentionally light. */
html body .agbp-health-score{
    color:#ffffff!important;
}
html body .agbp-health-score strong,
html body .agbp-health-score span{
    color:#ffffff!important;
}
html body .agbp-sp-score{
    color:#13284a!important;
}
html body .agbp-sp-score span{
    color:#526784!important;
}
html body .agbp-sp-score strong{
    color:#1d4ed8!important;
}
html body .agbp-sp-score em{
    color:#15803d!important;
}

/* 4) Top bar avatar / blue initial badge text should stay white */
html body .agbp-avatar,
html body .agbp-topbar .agbp-avatar,
html body .agbp-app-shell .agbp-avatar{
    color:#ffffff!important;
}


/* -------------------------------------------------------------------------- */
/* v2.0.90 Company Admin edit + rollback controls                             */
/* -------------------------------------------------------------------------- */
.agbp-admin-edit-rollback-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important}
.agbp-admin-control-card{padding:0!important;overflow:hidden!important}
.agbp-admin-control-card>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:17px 18px!important;cursor:pointer!important;background:linear-gradient(180deg,#fff,#f7faff)!important;color:#10284b!important;list-style:none!important}
.agbp-admin-control-card>summary::-webkit-details-marker{display:none!important}
.agbp-admin-control-card>summary:after{content:'⌄';width:34px;height:34px;display:grid;place-items:center;border:1px solid #d4e2f7;border-radius:11px;background:#fff;color:#1e57ff;font-size:18px;font-weight:900;flex:0 0 auto}
.agbp-admin-control-card[open]>summary:after{content:'⌃'}
.agbp-admin-control-card>summary strong{font-size:16px;color:#10284b!important}
.agbp-admin-control-card>summary span{margin-left:auto;color:#607593!important;font-size:12px;text-align:right}
.agbp-admin-control-card>.agbp-pwp-form{border:0!important;border-top:1px solid #e1e9f6!important;border-radius:0!important;margin:0!important;box-shadow:none!important;background:#fff!important}
.agbp-admin-rollback-card{border-color:#fecaca!important}
.agbp-admin-rollback-card>summary{background:linear-gradient(180deg,#fff,#fff7f7)!important}
.agbp-admin-rollback-card>summary strong{color:#a72828!important}
.agbp-admin-member-edit{border:1px solid #a8caff!important;box-shadow:0 14px 30px rgba(30,87,255,.10)!important}
.agbp-admin-client-directory{margin-top:18px!important}
.agbp-admin-control-card .agbp-pwp-alert{margin-top:12px!important}
@media(max-width:900px){.agbp-admin-edit-rollback-grid{grid-template-columns:1fr!important}.agbp-admin-control-card>summary{align-items:flex-start!important}.agbp-admin-control-card>summary span{display:none!important}}
@media(max-width:600px){.agbp-admin-control-card>summary{padding:14px!important}.agbp-admin-control-card>summary strong{font-size:14px!important}.agbp-admin-control-card>summary:after{width:30px;height:30px}.agbp-admin-member-edit,.agbp-admin-control-card>.agbp-pwp-form{padding:14px!important}}

/* v2.0.94 Cashfree resilient checkout status */
.agbp-ppg-checkout{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.agbp-ppg-checkout>small{flex:1 1 260px;color:#64748b!important;line-height:1.45}
.agbp-ppg-status{display:none;flex:1 1 100%;padding:10px 12px;border-radius:11px;font-size:12px;font-weight:800;line-height:1.4}
.agbp-ppg-status:not(:empty){display:block}
.agbp-ppg-status.working{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}
.agbp-ppg-status.success{background:#ecfdf5;border:1px solid #a7f3d0;color:#166534}
.agbp-ppg-status.error{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}
@media(max-width:640px){.agbp-ppg-checkout{align-items:stretch}.agbp-ppg-checkout .agbp-ppg-pay-button{width:100%}.agbp-ppg-checkout>small{flex-basis:100%}}


/* -------------------------------------------------------------------------- */
/* v2.0.99 mobile dashboard shell width / collapsed-height guard              */
/* -------------------------------------------------------------------------- */
@media screen and (max-width:1080px){
    html body .agbp-app-shell{
        display:block!important;grid-template-columns:minmax(0,1fr)!important;
        width:100%!important;max-width:100%!important;min-width:0!important;
        min-height:0!important;height:auto!important;margin-left:auto!important;margin-right:auto!important;
        overflow:visible!important;
    }
    html body .agbp-app-shell > .agbp-sidebar{
        position:relative!important;inset:auto!important;top:auto!important;
        width:100%!important;min-width:0!important;max-width:100%!important;
        height:auto!important;min-height:0!important;max-height:none!important;
        flex:none!important;margin:0!important;overflow:visible!important;box-sizing:border-box!important;
    }
    html body .agbp-app-shell > .agbp-main{
        display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
        margin:0!important;box-sizing:border-box!important;
    }
}
@media screen and (max-width:767px){
    html body .agbp-homepage-software-mode,
    html body .agbp-homepage-software-mode .agbp-app-shell,
    html body .entry-content .agbp-app-shell,
    html body .site-main .agbp-app-shell,
    html body .wp-site-blocks .agbp-app-shell{
        width:100%!important;max-width:100%!important;min-width:0!important;
        margin-left:0!important;margin-right:0!important;
    }
    html body .agbp-app-shell{border-left:0!important;border-right:0!important;border-radius:0!important;box-shadow:none!important}
    html body .agbp-app-shell > .agbp-sidebar,
    html body .agbp-app-shell > .agbp-sidebar:not(.agbp-mobile-open){
        display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
        height:auto!important;min-height:0!important;max-height:none!important;
        padding:10px 10px 12px!important;border-radius:0!important;overflow:visible!important;
    }
    html body .agbp-app-shell > .agbp-sidebar:before{inset:6px!important;border-radius:18px!important}
    html body .agbp-app-shell .agbp-sidebar .agbp-brand{
        min-height:48px!important;margin:6px 10px 8px!important;gap:10px!important;
        font-size:18px!important;line-height:1.2!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-brand-icon{
        width:44px!important;height:44px!important;min-width:44px!important;border-radius:14px!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-mobile-nav-toggle{
        display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
        float:none!important;width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;
        min-height:46px!important;margin:0 10px!important;padding:11px 13px!important;
        border-radius:14px!important;font-size:13px!important;line-height:1.2!important;box-sizing:border-box!important;
    }
    html body .agbp-app-shell .agbp-sidebar .agbp-mobile-nav-toggle span{
        float:none!important;margin-left:auto!important;white-space:nowrap!important;
    }
    html body .agbp-app-shell .agbp-sidebar:not(.agbp-mobile-open) .agbp-tabs,
    html body .agbp-app-shell .agbp-sidebar:not(.agbp-mobile-open) .agbp-plan-box{display:none!important}
    html body .agbp-app-shell .agbp-sidebar.agbp-mobile-open .agbp-tabs{
        display:flex!important;flex-direction:column!important;
        width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;
        max-height:min(68vh,640px)!important;min-height:0!important;
        margin:10px 10px 0!important;padding:0 0 10px!important;
        overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important;
        -webkit-overflow-scrolling:touch!important;
    }
    html body .agbp-app-shell .agbp-sidebar.agbp-mobile-open .agbp-plan-box{
        display:grid!important;width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;
        margin:10px 10px 2px!important;box-sizing:border-box!important;
    }
    html body .agbp-app-shell > .agbp-main{padding-left:10px!important;padding-right:10px!important;overflow:visible!important}
    html body .agbp-app-shell > .agbp-main > *,
    html body .agbp-app-shell .agbp-content,
    html body .agbp-app-shell .agbp-page-wrap{
        width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
    }
}


/* -------------------------------------------------------------------------- */
/* v2.0.110 — cascade-safe dark/light text contrast audit                     */
/* -------------------------------------------------------------------------- */
/* These simple gradient heroes contain only copy; force their copy readable. */
html body .agbp-phase1-hero,
html body .agbp-p2-hero{
    color:#ffffff!important;
}
html body .agbp-phase1-hero :is(h1,h2,h3,h4,p,small,strong,span,b,em),
html body .agbp-p2-hero :is(h1,h2,h3,h4,p,small,strong,span,b,em){
    color:#ffffff!important;
}

/* Dark code/webhook surfaces must not inherit the normal dashboard ink. */
html body :is(.agbp-ecl-code,.agbp-mgc-code,.agbp-home-code,.agbp-bs-wireless-code){
    color:#eaf2ff!important;
    -webkit-text-fill-color:#eaf2ff!important;
    text-shadow:none!important;
}

/* Light Smart Pack score card must stay dark/blue even inside dashboard themes. */
html body .agbp-smart-pack-wrap .agbp-sp-score{
    color:#13284a!important;
}
html body .agbp-smart-pack-wrap .agbp-sp-score span{color:#526784!important;-webkit-text-fill-color:#526784!important}
html body .agbp-smart-pack-wrap .agbp-sp-score strong{color:#1d4ed8!important;-webkit-text-fill-color:#1d4ed8!important}
html body .agbp-smart-pack-wrap .agbp-sp-score em{color:#15803d!important;-webkit-text-fill-color:#15803d!important}
