/* ============================================================
   UAESA De-Register a Company — CoR 16.1
   ------------------------------------------------------------
   v2.0.0 — 100% UI parity with UAESA Shelf Company Selector:
     • Same .md-field-outlined dropdown shell
     • Same .md-menu with animations
     • Same .menu-group headers
     • Same .mi-scope status pills
     • Same .md-card--outlined hover
     • Same stepper hover
     • Same button / banner / totals styling
   ============================================================ */

/* ------------------------------------------------------------
   1 · TOKENS
   ------------------------------------------------------------ */
.uaesa-dereg-shell{
    --md-primary:#00A5A7;
    --md-on-primary:#FFFFFF;
    --md-primary-container:#6FF6FE;
    --md-on-primary-container:#002022;
    --md-secondary:#4A6365;
    --md-secondary-container:#CCE8E9;
    --md-on-secondary-container:#051F21;
    --md-error:#BA1A1A;
    --md-on-error:#FFFFFF;
    --md-error-container:#FFDAD6;
    --md-on-error-container:#410002;
    --md-success:#2E7D32;
    --md-success-container:#DCFCE7;
    --md-on-success-container:#052E16;
    --md-warning:#8C5000;
    --md-warning-container:#FFDDB3;
    --md-on-warning-container:#2E1500;
    --md-surface:#F4FBFB;
    --md-on-surface:#161D1D;
    --md-surface-variant:#DAE4E4;
    --md-on-surface-variant:#3F4849;
    --md-surface-container-lowest:#FFFFFF;
    --md-surface-container-low:#EEF5F5;
    --md-surface-container:#E9EFEF;
    --md-surface-container-high:#E3E9E9;
    --md-surface-container-highest:#DDE4E4;
    --md-outline:#6F7979;
    --md-outline-variant:#BEC8C8;
    --md-inverse-surface:#2B3232;
    --md-inverse-on-surface:#ECF2F2;
    --md-shape-xs:4px;
    --md-shape-sm:8px;
    --md-shape-md:12px;
    --md-shape-lg:16px;
    --md-shape-full:9999px;
    --md-elev-1:0 1px 2px rgba(0,0,0,.08),0 1px 3px rgba(0,0,0,.06);
    --md-elev-2:0 1px 2px rgba(0,0,0,.10),0 2px 6px rgba(0,0,0,.08);
    --md-elev-3:0 4px 8px rgba(0,0,0,.10),0 1px 3px rgba(0,0,0,.06);

    position:relative;
    color:var(--md-on-surface);
    line-height:1.5;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    box-sizing:border-box;
}
.uaesa-dereg-shell *,
.uaesa-dereg-shell *::before,
.uaesa-dereg-shell *::after{box-sizing:border-box}

/* Mode-specific shell sizing */
.uaesa-dereg-shell[data-mode="shortcode"]{
    max-width:900px;
    margin:0 auto;
    padding:24px 16px;
}
.uaesa-dereg-shell[data-mode="gf"]{
    max-width:none;
    margin:12px 0 0;
    padding:0;
}

/* ------------------------------------------------------------
   2 · DROPDOWN SHELL — .md-field-outlined
   ------------------------------------------------------------ */
.uaesa-dereg-shell .md-field-outlined{
    position:relative;
    margin:16px 0 24px;
}
.uaesa-dereg-shell .md-field-outlined__container{
    position:relative;
    min-height:56px;
    border:1px solid var(--md-outline);
    border-radius:var(--md-shape-xs);
    background:var(--md-surface-container-lowest);
    cursor:pointer;
    transition:border-color .15s, box-shadow .15s;
}
.uaesa-dereg-shell .md-field-outlined__container:hover{
    border-color:var(--md-on-surface);
}
.uaesa-dereg-shell .md-field-outlined__container:focus-within{
    border-color:var(--md-primary);
    box-shadow:0 0 0 1px var(--md-primary);
}
.uaesa-dereg-shell .md-field-outlined.is-filled .md-field-outlined__container{
    border-color:var(--md-primary);
}
.uaesa-dereg-shell .md-field-outlined.is-focused .md-field-outlined__container{
    border-color:var(--md-primary);
    box-shadow:0 0 0 1px var(--md-primary);
}

/* Floating label */
.uaesa-dereg-shell .md-field-outlined__label{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    background:var(--md-surface-container-lowest);
    padding:0 4px;
    font-size:16px;
    color:var(--md-on-surface-variant);
    pointer-events:none;
    transition:all .15s cubic-bezier(.4,0,.2,1);
    z-index:2;
    line-height:1;
}
.uaesa-dereg-shell .md-field-outlined.is-focused .md-field-outlined__label,
.uaesa-dereg-shell .md-field-outlined.is-filled .md-field-outlined__label{
    top:0;
    transform:translateY(-50%) scale(.75);
    color:var(--md-primary);
    font-weight:500;
}

/* Trigger */
.uaesa-dereg-shell .md-field-outlined__trigger{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px;
    min-height:56px;
    font-size:16px;
    color:var(--md-on-surface);
    position:relative;
    z-index:1;
}
.uaesa-dereg-shell .md-field-outlined__trigger-value{
    flex:1;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.uaesa-dereg-shell .md-field-outlined__trigger-icon{
    margin-left:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.uaesa-dereg-shell .md-field-outlined__trigger-icon svg{
    width:24px;
    height:24px;
    fill:var(--md-on-surface-variant);
    transition:transform .2s;
}
.uaesa-dereg-shell .md-field-outlined.is-focused .md-field-outlined__trigger-icon svg{
    transform:rotate(180deg);
}

/* ------------------------------------------------------------
   3 · DROPDOWN MENU — .md-menu
   ------------------------------------------------------------ */
.uaesa-dereg-shell .md-menu{
    position:absolute;
    top:calc(100% + 4px);
    left:0;
    right:0;
    background:var(--md-surface-container);
    border-radius:var(--md-shape-xs);
    box-shadow:var(--md-elev-2);
    max-height:280px;
    overflow-y:auto;
    list-style:none;
    padding:8px 0;
    margin:0;
    z-index:20;
    display:none;
}
.uaesa-dereg-shell .md-menu.open{
    display:block;
    animation:uaesaDeregMenuIn .15s cubic-bezier(.4,0,.2,1);
}
@keyframes uaesaDeregMenuIn{
    from{opacity:0;transform:scale(.98)}
    to{opacity:1;transform:scale(1)}
}

/* Menu items */
.uaesa-dereg-shell .md-menu li{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 16px;
    font-size:14px;
    color:var(--md-on-surface);
    cursor:pointer;
    min-height:48px;
    transition:background .12s;
}
.uaesa-dereg-shell .md-menu li:hover,
.uaesa-dereg-shell .md-menu li:focus{
    background:rgba(0,165,167,.08);
    outline:none;
}
.uaesa-dereg-shell .md-menu li.is-selected{
    background:var(--md-secondary-container);
    color:var(--md-on-secondary-container);
    font-weight:500;
}
.uaesa-dereg-shell .md-menu li .mi-name{
    display:block;
    font-weight:500;
    font-size:14px;
}

/* Menu group headers */
.uaesa-dereg-shell .md-menu li.menu-group{
    cursor:default !important;
    background:#FAFCFC !important;
    color:#6F7979 !important;
    font-size:10px !important;
    font-weight:700 !important;
    letter-spacing:.6px !important;
    text-transform:uppercase !important;
    padding:8px 16px 4px !important;
    min-height:auto !important;
    display:block !important;
}
.uaesa-dereg-shell .md-menu li.menu-group:hover,
.uaesa-dereg-shell .md-menu li.menu-group:focus{
    background:#FAFCFC !important;
}

/* Status pills inside menu items */
.uaesa-dereg-shell .md-menu li .mi-scope{
    margin-left:auto;
    font-size:9.5px;
    font-weight:700;
    padding:3px 9px;
    border-radius:999px;
    text-transform:uppercase;
    letter-spacing:.4px;
    white-space:nowrap;
    flex-shrink:0;
}
.uaesa-dereg-shell .md-menu li .mi-scope.ok{
    background:#DCFCE7;
    color:#052E16;
}
.uaesa-dereg-shell .md-menu li .mi-scope.warn{
    background:#FFF3E0;
    color:#7A3E00;
}
.uaesa-dereg-shell .md-menu li .mi-scope.er{
    background:#FFDAD6;
    color:#410002;
}
.uaesa-dereg-shell .md-menu li .mi-scope.unlisted{
    background:#E3F5F5;
    color:#00454A;
}

/* ------------------------------------------------------------
   4 · HEADING (shortcode mode)
   ------------------------------------------------------------ */
.uaesa-dereg-h1{
    font-size:22px;
    margin:0 0 4px;
    color:#002022;
    font-weight:700;
    line-height:1.25;
}
.uaesa-dereg-sub{
    font-size:13px;
    color:#3F4849;
    margin:0 0 20px;
    line-height:1.5;
}

/* ------------------------------------------------------------
   5 · WIZARD WRAPPER
   ------------------------------------------------------------ */
.uaesa-dereg-shell .uaesa-dereg-wizard{
    position:relative;
    margin-top:8px;
}

/* ------------------------------------------------------------
   6 · STEPPER
   ------------------------------------------------------------ */
.uaesa-dereg-shell .m3-stepper{
    display:flex;
    align-items:flex-start;
    padding:20px 0 24px;
    margin:0;
    list-style:none;
}
.uaesa-dereg-shell .m3-step{
    flex:1 1 0;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    position:relative;
    text-align:center;
    padding:0 4px;
}
.uaesa-dereg-shell .m3-step:not(:last-child)::after{
    content:'';
    position:absolute;
    top:20px;
    left:calc(50% + 24px);
    right:calc(-50% + 24px);
    height:1px;
    background:var(--md-outline-variant);
    z-index:0;
}
.uaesa-dereg-shell .m3-step.is-complete:not(:last-child)::after{
    background:var(--md-primary);
}
.uaesa-dereg-shell .m3-step-indicator{
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--md-surface-container-highest);
    color:var(--md-on-surface-variant);
    font-size:14px;
    font-weight:500;
    position:relative;
    z-index:1;
    transition:background .2s,color .2s,transform .2s,box-shadow .2s;
}
.uaesa-dereg-shell .m3-step-indicator svg{
    width:20px;
    height:20px;
    fill:currentColor;
}
.uaesa-dereg-shell .m3-step.is-active .m3-step-indicator,
.uaesa-dereg-shell .m3-step.is-complete .m3-step-indicator{
    background:var(--md-primary);
    color:var(--md-on-primary);
}
.uaesa-dereg-shell .m3-step-label{
    font-size:11px;
    font-weight:500;
    color:var(--md-on-surface-variant);
    line-height:1.25;
    word-break:break-word;
    transition:color .2s;
}
.uaesa-dereg-shell .m3-step.is-active .m3-step-label{
    color:var(--md-primary);
    font-weight:600;
}
.uaesa-dereg-shell .m3-step.is-complete .m3-step-label{
    color:var(--md-on-surface);
}
/* Stepper hover */
.uaesa-dereg-shell .m3-step:hover .m3-step-indicator{
    transform:translateY(-1px) scale(1.05);
}
.uaesa-dereg-shell .m3-step:hover .m3-step-label{
    color:#002022;
}

@media (max-width:600px){
    .uaesa-dereg-shell .m3-stepper{
        display:block;
        padding:4px 0 8px;
    }
    .uaesa-dereg-shell .m3-step{
        flex-direction:row;
        align-items:flex-start;
        gap:14px;
        padding:0 0 20px;
        text-align:left;
    }
    .uaesa-dereg-shell .m3-step:last-child{padding-bottom:0}
    .uaesa-dereg-shell .m3-step:not(:last-child)::after{display:none}
    .uaesa-dereg-shell .m3-step:not(:last-child)::before{
        content:'';
        position:absolute;
        left:16px;
        top:32px;
        bottom:0;
        width:2px;
        margin-left:-1px;
        background:var(--md-outline-variant);
    }
    .uaesa-dereg-shell .m3-step.is-complete:not(:last-child)::before{
        background:var(--md-primary);
    }
    .uaesa-dereg-shell .m3-step-indicator{
        width:32px;
        height:32px;
        font-size:13px;
        flex-shrink:0;
    }
    .uaesa-dereg-shell .m3-step-label{
        font-size:13px;
        line-height:32px;
        flex:1;
    }
}

/* ------------------------------------------------------------
   7 · PANELS + FOOTER
   ------------------------------------------------------------ */
.uaesa-dereg-shell .m3-step-panel{
    display:none;
}
.uaesa-dereg-shell .m3-step-panel.is-active{
    display:block;
    animation:uaesaDeregIn .28s cubic-bezier(.4,0,.2,1) both;
}
.uaesa-dereg-shell .m3-step-panel.back{
    animation:uaesaDeregBack .28s cubic-bezier(.4,0,.2,1) both;
}
@keyframes uaesaDeregIn{
    from{opacity:0;transform:translateX(12px)}
    to{opacity:1;transform:translateX(0)}
}
@keyframes uaesaDeregBack{
    from{opacity:0;transform:translateX(-12px)}
    to{opacity:1;transform:translateX(0)}
}

.uaesa-dereg-shell .m3-step-footer{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid var(--md-outline-variant);
    flex-wrap:wrap;
}
.uaesa-dereg-shell .m3-step-footer .spacer{flex:1}
.uaesa-dereg-shell .m3-step-footer .hint{
    font-size:12px;
    color:var(--md-on-surface-variant);
}

@media (max-width:600px){
    .uaesa-dereg-shell .m3-step-footer{
        flex-direction:column-reverse;
        align-items:stretch;
    }
    .uaesa-dereg-shell .m3-step-footer .md-btn{width:100%}
    .uaesa-dereg-shell .m3-step-footer .hint{text-align:center;order:-1}
}

/* ------------------------------------------------------------
   8 · CARDS (with shelf-identical hover)
   ------------------------------------------------------------ */
.uaesa-dereg-shell .md-card{
    background:var(--md-surface-container-low);
    border-radius:var(--md-shape-md);
    padding:20px;
    margin-bottom:16px;
}
.uaesa-dereg-shell .md-card.md-card--outlined{
    background:var(--md-surface-container-lowest);
    border:1px solid var(--md-outline-variant);
    transition:box-shadow .25s ease, border-color .25s ease;
}
.uaesa-dereg-shell .md-card.md-card--outlined:hover{
    border-color:#9DD6D8;
    box-shadow:0 6px 20px rgba(0,165,167,.10), 0 2px 6px rgba(0,0,0,.04);
}
.uaesa-dereg-shell .md-card-header{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:16px;
    flex-wrap:wrap;
}
.uaesa-dereg-shell .md-card-icon{
    width:40px;
    height:40px;
    flex-shrink:0;
    border-radius:var(--md-shape-sm);
    background:var(--md-primary-container);
    color:var(--md-on-primary-container);
    display:flex;
    align-items:center;
    justify-content:center;
}
.uaesa-dereg-shell .md-card-icon svg{width:24px;height:24px}
.uaesa-dereg-shell .md-card-icon.ok{
    background:var(--md-success-container);
    color:var(--md-on-success-container);
}
.uaesa-dereg-shell .md-card-icon.warn{
    background:var(--md-warning-container);
    color:var(--md-on-warning-container);
}
.uaesa-dereg-shell .md-card-icon.er{
    background:var(--md-error-container);
    color:var(--md-on-error-container);
}
.uaesa-dereg-shell .md-card-title{
    font-size:16px;
    font-weight:500;
    color:var(--md-on-surface);
    line-height:1.35;
    margin:0 0 2px;
}
.uaesa-dereg-shell .md-card-sub{
    font-size:12px;
    color:var(--md-on-surface-variant);
    margin:0;
    line-height:1.45;
}

/* ------------------------------------------------------------
   9 · BUTTONS
   ------------------------------------------------------------ */
.uaesa-dereg-shell .md-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    height:40px;
    padding:0 24px;
    border-radius:var(--md-shape-full);
    font-family:inherit;
    font-size:14px;
    font-weight:500;
    letter-spacing:.1px;
    border:none;
    cursor:pointer;
    transition:box-shadow .15s, background .15s, transform .1s;
    white-space:nowrap;
    text-decoration:none;
    -webkit-appearance:none;
    appearance:none;
}
.uaesa-dereg-shell .md-btn:not(:disabled):active{transform:scale(.98)}
.uaesa-dereg-shell .md-btn:disabled{
    opacity:.38;
    cursor:not-allowed;
    box-shadow:none;
}
.uaesa-dereg-shell .md-btn--filled{
    background:#00A5A7;
    color:#fff;
}
.uaesa-dereg-shell .md-btn--filled:not(:disabled):hover{
    background:#008B8D;
    box-shadow:var(--md-elev-2);
}
.uaesa-dereg-shell .md-btn--outlined{
    background:transparent;
    color:var(--md-primary);
    border:1px solid var(--md-primary);
}
.uaesa-dereg-shell .md-btn--outlined:not(:disabled):hover{
    background:rgba(0,165,167,.08);
}
.uaesa-dereg-shell .md-btn--danger{
    background:var(--md-error);
    color:#fff;
    border:1px solid var(--md-error);
}
.uaesa-dereg-shell .md-btn--danger:not(:disabled):hover{
    background:#8B0F0F;
    border-color:#8B0F0F;
    box-shadow:var(--md-elev-2);
}
.uaesa-dereg-shell .md-btn:focus,
.uaesa-dereg-shell .md-btn:focus-visible{
    outline:2px solid var(--md-primary);
    outline-offset:2px;
}
.uaesa-dereg-shell .md-btn--danger:focus,
.uaesa-dereg-shell .md-btn--danger:focus-visible{
    outline-color:var(--md-error);
}

/* ------------------------------------------------------------
   10 · BANNERS
   ------------------------------------------------------------ */
.uaesa-dereg-shell .md-banner{
    display:flex;
    gap:14px;
    padding:16px 18px;
    border-radius:var(--md-shape-md);
    margin-bottom:16px;
    align-items:flex-start;
}
.uaesa-dereg-shell .md-banner.ok{
    background:var(--md-success-container);
    color:var(--md-on-success-container);
}
.uaesa-dereg-shell .md-banner.warn{
    background:var(--md-warning-container);
    color:var(--md-on-warning-container);
}
.uaesa-dereg-shell .md-banner.er{
    background:var(--md-error-container);
    color:var(--md-on-error-container);
}
.uaesa-dereg-shell .md-banner-icon{
    width:40px;
    height:40px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.5);
    font-size:20px;
    font-weight:800;
}
.uaesa-dereg-shell .md-banner-icon svg{width:22px;height:22px}
.uaesa-dereg-shell .md-banner-title{
    font-size:14px;
    font-weight:600;
    margin:0 0 2px;
    line-height:1.35;
}
.uaesa-dereg-shell .md-banner-text{
    font-size:12.5px;
    line-height:1.5;
    margin:0;
    opacity:.92;
}

/* ------------------------------------------------------------
   11 · SCORE STRIP
   ------------------------------------------------------------ */
.uaesa-dereg-shell .uaesa-score{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 18px;
    border-radius:12px;
    margin-bottom:16px;
}
.uaesa-dereg-shell .uaesa-score.is-pass{
    background:var(--md-success-container);
    color:var(--md-on-success-container);
}
.uaesa-dereg-shell .uaesa-score.is-fail{
    background:var(--md-error-container);
    color:var(--md-on-error-container);
}
.uaesa-dereg-shell .uaesa-score.is-warn{
    background:var(--md-warning-container);
    color:var(--md-on-warning-container);
}
.uaesa-dereg-shell .uaesa-score__gauge{
    width:56px;
    height:56px;
    flex-shrink:0;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    font-weight:800;
    background:rgba(255,255,255,.7);
    font-variant-numeric:tabular-nums;
}
.uaesa-dereg-shell .uaesa-score__text{flex:1;min-width:0}
.uaesa-dereg-shell .uaesa-score__title{
    font-size:14px;
    font-weight:700;
    margin:0 0 2px;
    line-height:1.35;
}
.uaesa-dereg-shell .uaesa-score__sub{
    font-size:12px;
    margin:0;
    opacity:.9;
    line-height:1.45;
}

/* ------------------------------------------------------------
   12 · ELIGIBILITY ROWS
   ------------------------------------------------------------ */
.uaesa-dereg-shell .uaesa-elig{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top:8px;
}
.uaesa-dereg-shell .uaesa-elig-row{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:12px 14px;
    border:1px solid var(--md-outline-variant);
    border-radius:10px;
    background:#fff;
    transition:border-color .15s, background .15s, box-shadow .15s;
}
.uaesa-dereg-shell .uaesa-elig-row:hover{
    box-shadow:0 2px 6px rgba(0,0,0,.04);
}
.uaesa-dereg-shell .uaesa-elig-row.is-pass{
    border-color:#A5D6A7;
    background:#F1F8E9;
}
.uaesa-dereg-shell .uaesa-elig-row.is-fail{
    border-color:#FFB4AB;
    background:#FFF3F1;
}
.uaesa-dereg-shell .uaesa-elig-row.is-warn{
    border-color:#FFCC80;
    background:#FFF7E6;
}
.uaesa-dereg-shell .uaesa-elig-row__icon{
    width:24px;
    height:24px;
    flex-shrink:0;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:800;
    color:#fff;
    line-height:1;
}
.uaesa-dereg-shell .uaesa-elig-row.is-pass .uaesa-elig-row__icon{background:#2E7D32}
.uaesa-dereg-shell .uaesa-elig-row.is-fail .uaesa-elig-row__icon{background:#BA1A1A}
.uaesa-dereg-shell .uaesa-elig-row.is-warn .uaesa-elig-row__icon{background:#F57C00}
.uaesa-dereg-shell .uaesa-elig-row__meta{flex:1;min-width:0}
.uaesa-dereg-shell .uaesa-elig-row__label{
    font-size:13px;
    font-weight:600;
    color:#002022;
    line-height:1.35;
}
.uaesa-dereg-shell .uaesa-elig-row__detail{
    font-size:11.5px;
    color:#3F4849;
    margin-top:2px;
    line-height:1.4;
    word-break:break-word;
}

/* ------------------------------------------------------------
   13 · DOCUMENT ROWS
   ------------------------------------------------------------ */
.uaesa-dereg-shell .uaesa-doc{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border:1px solid var(--md-outline-variant);
    border-radius:10px;
    background:#fff;
    margin-bottom:8px;
    transition:border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.uaesa-dereg-shell .uaesa-doc:last-child{margin-bottom:0}
.uaesa-dereg-shell .uaesa-doc:hover{
    border-color:#9DD6D8;
    box-shadow:0 4px 12px rgba(0,165,167,.10), 0 1px 3px rgba(0,0,0,.03);
    transform:translateY(-1px);
}
.uaesa-dereg-shell .uaesa-doc.is-uploaded{
    border-color:#A5D6A7;
    background:#F1F8E9;
}
.uaesa-dereg-shell .uaesa-doc.is-missing{
    border-color:#FFCC80;
    background:#FFF7E6;
}
.uaesa-dereg-shell .uaesa-doc__icon{
    width:32px;
    height:32px;
    flex-shrink:0;
    border-radius:8px;
    background:#E3F5F5;
    color:#00A5A7;
    display:flex;
    align-items:center;
    justify-content:center;
}
.uaesa-dereg-shell .uaesa-doc__icon svg{width:18px;height:18px}
.uaesa-dereg-shell .uaesa-doc.is-uploaded .uaesa-doc__icon{
    background:#DCFCE7;
    color:#2E7D32;
}
.uaesa-dereg-shell .uaesa-doc__meta{flex:1;min-width:0}
.uaesa-dereg-shell .uaesa-doc__name{
    font-size:13px;
    font-weight:600;
    color:#002022;
    line-height:1.3;
    word-break:break-word;
}
.uaesa-dereg-shell .uaesa-doc__file{
    font-size:11px;
    color:#6F7979;
    margin-top:2px;
    line-height:1.4;
    word-break:break-all;
}
.uaesa-dereg-shell .uaesa-doc__badge{
    padding:3px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.4px;
    flex-shrink:0;
    line-height:1.2;
    white-space:nowrap;
}
.uaesa-dereg-shell .uaesa-doc.is-uploaded .uaesa-doc__badge{
    background:#DCFCE7;
    color:#052E16;
}
.uaesa-dereg-shell .uaesa-doc.is-missing .uaesa-doc__badge{
    background:#FFF3E0;
    color:#7A3E00;
}
.uaesa-dereg-shell .uaesa-doc__actions{
    display:flex;
    gap:6px;
    flex-shrink:0;
}
@media (max-width:600px){
    .uaesa-dereg-shell .uaesa-doc{flex-wrap:wrap}
    .uaesa-dereg-shell .uaesa-doc__actions{
        width:100%;
        margin-top:6px;
    }
    .uaesa-dereg-shell .uaesa-doc__actions .md-btn{flex:1}
}

/* ------------------------------------------------------------
   14 · DECLARATIONS
   ------------------------------------------------------------ */
.uaesa-dereg-shell .uaesa-decl{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.uaesa-dereg-shell .uaesa-decl label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px 14px;
    border:1px solid var(--md-outline-variant);
    border-radius:10px;
    background:#fff;
    cursor:pointer;
    font-size:13px;
    line-height:1.45;
    color:#002022;
    transition:border-color .15s, background .15s;
}
.uaesa-dereg-shell .uaesa-decl label:hover{
    border-color:#9DD6D8;
    background:#FBFDFD;
}
.uaesa-dereg-shell .uaesa-decl input[type=checkbox]{
    width:18px;
    height:18px;
    margin:1px 0 0;
    accent-color:#00A5A7;
    flex-shrink:0;
    cursor:pointer;
}
.uaesa-dereg-shell .uaesa-decl label.is-checked{
    background:#F1F8E9;
    border-color:#A5D6A7;
}
.uaesa-dereg-shell .uaesa-decl__penalty{
    background:var(--md-error-container);
    color:var(--md-on-error-container);
    padding:12px 14px;
    border-radius:8px;
    font-size:12px;
    line-height:1.55;
    margin-top:14px;
    border:1px solid #F87171;
}
.uaesa-dereg-shell .uaesa-decl__penalty strong{
    font-weight:700;
    color:#3B0000;
}

/* ------------------------------------------------------------
   15 · TOTALS
   ------------------------------------------------------------ */
.uaesa-dereg-shell .md-totals{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:1px;
    background:var(--md-outline-variant);
    border-radius:var(--md-shape-md);
    overflow:hidden;
    border:1px solid var(--md-outline-variant);
    margin-top:16px;
}
.uaesa-dereg-shell .md-total-cell{
    background:#fff;
    padding:14px 16px;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.uaesa-dereg-shell .md-total-label{
    font-size:11px;
    font-weight:500;
    letter-spacing:.6px;
    text-transform:uppercase;
    color:var(--md-on-surface-variant);
}
.uaesa-dereg-shell .md-total-value{
    font-size:20px;
    font-weight:500;
    color:var(--md-on-surface);
    font-variant-numeric:tabular-nums;
}
.uaesa-dereg-shell .md-total-cell.grand{
    background:var(--md-success-container);
}
.uaesa-dereg-shell .md-total-cell.grand .md-total-value{
    color:var(--md-on-success-container);
    font-weight:600;
}
@media (max-width:600px){
    .uaesa-dereg-shell .md-totals{grid-template-columns:1fr 1fr}
    .uaesa-dereg-shell .md-total-value{font-size:17px}
}

/* ------------------------------------------------------------
   16 · STATUS TIMELINE
   ------------------------------------------------------------ */
.uaesa-dereg-shell .uaesa-status-timeline{
    display:flex;
    flex-direction:column;
    gap:2px;
    margin-top:16px;
}
.uaesa-dereg-shell .uaesa-status-step{
    display:flex;
    gap:14px;
    padding:12px 14px;
    border-left:3px solid var(--md-outline-variant);
    background:#fff;
    border-radius:0 8px 8px 0;
    transition:border-color .15s, background .15s;
}
.uaesa-dereg-shell .uaesa-status-step.is-done{
    border-left-color:#2E7D32;
    background:#F1F8E9;
}
.uaesa-dereg-shell .uaesa-status-step.is-active{
    border-left-color:#00A5A7;
    background:#E0F7FA;
}
.uaesa-dereg-shell .uaesa-status-step__dot{
    width:24px;
    height:24px;
    flex-shrink:0;
    border-radius:50%;
    background:var(--md-surface-container-highest);
    color:var(--md-on-surface-variant);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:700;
    line-height:1;
}
.uaesa-dereg-shell .uaesa-status-step.is-done .uaesa-status-step__dot{
    background:#2E7D32;
    color:#fff;
}
.uaesa-dereg-shell .uaesa-status-step.is-active .uaesa-status-step__dot{
    background:#00A5A7;
    color:#fff;
    animation:uaesaDeregPulse 1.8s ease-out infinite;
}
.uaesa-dereg-shell .uaesa-status-step__meta{flex:1;min-width:0}
.uaesa-dereg-shell .uaesa-status-step__title{
    font-size:13px;
    font-weight:600;
    color:#002022;
    line-height:1.35;
}
.uaesa-dereg-shell .uaesa-status-step__sub{
    font-size:11.5px;
    color:#3F4849;
    margin-top:2px;
    line-height:1.45;
}
@keyframes uaesaDeregPulse{
    0%,100%{box-shadow:0 0 0 0 rgba(0,165,167,.55)}
    60%{box-shadow:0 0 0 6px rgba(0,165,167,0)}
}

/* ------------------------------------------------------------
   17 · SNACKBAR
   ------------------------------------------------------------ */
.md-snackbar-container{
    position:fixed;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
    z-index:100000;
    display:flex;
    flex-direction:column;
    gap:8px;
    max-width:420px;
    width:calc(100% - 40px);
    pointer-events:none;
}
.md-snackbar{
    pointer-events:auto;
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    background:#2B3232;
    color:#ECF2F2;
    border-left:3px solid #00A5A7;
    border-radius:4px;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
    font-size:14px;
    line-height:1.4;
    transform:translateY(120%);
    transition:transform .35s cubic-bezier(.4,0,.2,1);
}
.md-snackbar.show{transform:translateY(0)}
.md-snackbar.ok{border-left-color:#2E7D32}
.md-snackbar.er{border-left-color:#BA1A1A}
.md-snackbar__msg{flex:1}

/* ------------------------------------------------------------
   18 · HIDDEN NATIVE SELECT
   ------------------------------------------------------------ */
.uaesa-dereg-shell .uaesa-hidden-select,
.uaesa-hidden-select{
    position:absolute !important;
    left:-9999px !important;
    top:auto !important;
    width:1px !important;
    height:1px !important;
    opacity:0 !important;
    pointer-events:none !important;
    clip:rect(0 0 0 0) !important;
    clip-path:inset(50%) !important;
    overflow:hidden !important;
}

/* ------------------------------------------------------------
   19 · GF FIELD CONTAINER
   ------------------------------------------------------------ */
.gfield_type_uaesa_deregister_selector .uaesa-dereg-shell[data-mode="gf"]{
    max-width:none;
    padding:0;
    margin:0;
}
.gform_wrapper .gfield_type_uaesa_deregister_selector{
    margin-bottom:20px;
}

/* ------------------------------------------------------------
   20 · REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion:reduce){
    .uaesa-dereg-shell *,
    .uaesa-dereg-shell *::before,
    .uaesa-dereg-shell *::after{
        animation-duration:.001ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.001ms !important;
        scroll-behavior:auto !important;
    }
}

/* ------------------------------------------------------------
   21 · FORCED COLORS
   ------------------------------------------------------------ */
@media (forced-colors:active){
    .uaesa-dereg-shell .md-btn,
    .uaesa-dereg-shell .uaesa-elig-row,
    .uaesa-dereg-shell .uaesa-doc,
    .uaesa-dereg-shell .uaesa-decl label{
        border:1px solid CanvasText !important;
    }
}