/*
 * Argontec Dashboard Entry 3.0.1
 * Tela inicial e login do Portal do Cliente.
 * Tema propositalmente diferente do ADM: azul-petroleo, verde-esmeralda e dourado discreto.
 */
:root {
    --apc-deep-950: #052f38;
    --apc-deep-900: #073e47;
    --apc-deep-800: #0a555b;
    --apc-teal-700: #087b7c;
    --apc-teal-600: #0a9290;
    --apc-mint-500: #2bc5a4;
    --apc-mint-100: #dff8f1;
    --apc-gold-500: #e4b84b;
    --apc-gold-100: #fff5d8;
    --apc-page: #edf6f4;
    --apc-surface: #ffffff;
    --apc-text: #17343c;
    --apc-muted: #647b80;
    --apc-border: #d5e7e3;
    --apc-danger: #c94b58;
    --apc-shadow: 0 20px 58px rgba(5, 47, 56, .14);
    --apc-shadow-soft: 0 10px 32px rgba(5, 47, 56, .085);
}

html {
    min-height: 100%;
    background: var(--apc-page);
}

body.apc-login-page,
body.apc-entry-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--apc-text);
    background: var(--apc-page);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.apc-login-page *,
body.apc-entry-page *,
body.apc-login-page *::before,
body.apc-entry-page *::before,
body.apc-login-page *::after,
body.apc-entry-page *::after {
    box-sizing: border-box;
}

body.apc-login-page a,
body.apc-entry-page a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.apc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #baf7ea;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.apc-kicker-teal {
    color: var(--apc-teal-700);
}

/* =========================================================
   LOGIN
   ========================================================= */
body.apc-login-page {
    padding: 28px;
    display: grid;
    place-items: center;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 9% 9%, rgba(43, 197, 164, .24), transparent 29rem),
        radial-gradient(circle at 92% 90%, rgba(228, 184, 75, .18), transparent 25rem),
        linear-gradient(135deg, #e9f5f1 0%, #f6faf9 48%, #edf6f4 100%);
}

body.apc-login-page::before,
body.apc-login-page::after {
    content: "";
    position: fixed;
    z-index: 0;
    width: 420px;
    height: 420px;
    border: 50px solid rgba(8, 123, 124, .055);
    border-radius: 50%;
    pointer-events: none;
}

body.apc-login-page::before {
    top: -235px;
    right: -165px;
}

body.apc-login-page::after {
    bottom: -265px;
    left: -180px;
}

.apc-login-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    min-height: min(720px, calc(100dvh - 56px));
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
    overflow: hidden;
    background: var(--apc-surface);
    border: 1px solid rgba(7, 62, 71, .1);
    border-radius: 28px;
    box-shadow: 0 34px 100px rgba(5, 47, 56, .22);
}

.apc-login-brand {
    position: relative;
    min-height: 100%;
    padding: clamp(34px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 83% 15%, rgba(67, 225, 196, .2), transparent 25rem),
        radial-gradient(circle at 10% 95%, rgba(228, 184, 75, .18), transparent 20rem),
        linear-gradient(145deg, var(--apc-deep-950), var(--apc-deep-800) 64%, var(--apc-teal-700));
}

.apc-login-brand::before,
.apc-login-brand::after {
    content: "";
    position: absolute;
    border: 34px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
}

.apc-login-brand::before {
    width: 310px;
    height: 310px;
    right: -130px;
    top: -85px;
}

.apc-login-brand::after {
    width: 240px;
    height: 240px;
    left: -105px;
    bottom: -120px;
}

.apc-login-brand > * {
    position: relative;
    z-index: 1;
}

.apc-login-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.apc-environment-badge {
    min-height: 34px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d7fff6;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 780;
}

.apc-brand-logo {
    width: 154px;
    min-height: 78px;
    padding: 10px 14px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 17px;
    box-shadow: 0 14px 34px rgba(1, 23, 29, .22);
}

.apc-brand-logo img {
    width: auto;
    max-width: 125px;
    max-height: 62px;
    object-fit: contain;
}

.apc-login-brand-copy {
    max-width: 630px;
    margin: auto 0 35px;
}

.apc-login-brand-copy h1 {
    margin: 14px 0 16px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.apc-login-brand-copy p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(.9rem, 1.3vw, 1.02rem);
    line-height: 1.75;
}

.apc-login-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.apc-login-benefits div {
    min-height: 112px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
}

.apc-login-benefits i {
    color: #7cf0d9;
    font-size: 1.2rem;
}

.apc-login-benefits span {
    font-size: .72rem;
    font-weight: 760;
    line-height: 1.4;
}

.apc-login-brand-footer {
    margin-top: 30px;
    color: rgba(255, 255, 255, .48);
    font-size: .65rem;
}

.apc-login-panel {
    min-width: 0;
    padding: clamp(38px, 5vw, 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(43, 197, 164, .08), transparent 18rem),
        #fff;
}

.apc-login-mobile-logo {
    display: none;
}

.apc-login-heading {
    margin-bottom: 27px;
}

.apc-login-heading h2,
.apc-state-card h1,
.apc-modal-card h2 {
    margin: 9px 0 8px;
    color: #12343c;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.apc-login-heading p,
.apc-state-card > p,
.apc-modal-card > p {
    margin: 0;
    color: var(--apc-muted);
    font-size: .86rem;
    line-height: 1.65;
}

.apc-login-messages {
    margin-bottom: 4px;
}

.apc-login-messages:empty {
    display: none;
}

.apc-login-form,
.apc-recovery-form {
    display: grid;
    gap: 17px;
}

.apc-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.apc-field > span:first-child {
    color: #3d5960;
    font-size: .73rem;
    font-weight: 780;
}

.apc-input-wrap {
    position: relative;
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.apc-input-wrap > i {
    position: absolute;
    z-index: 2;
    left: 16px;
    color: #769095;
    font-size: .88rem;
    pointer-events: none;
}

.apc-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 48px 0 44px;
    color: var(--apc-text);
    background: #f9fcfb;
    border: 1px solid #c9dfdb;
    border-radius: 12px;
    outline: none;
    font: inherit;
    font-size: .88rem;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.apc-input-wrap input:focus {
    background: #fff;
    border-color: var(--apc-teal-600);
    box-shadow: 0 0 0 4px rgba(10, 146, 144, .12);
}

.apc-password-toggle {
    position: absolute;
    z-index: 3;
    right: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #617d82;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.apc-password-toggle:hover,
.apc-password-toggle:focus-visible {
    color: var(--apc-teal-700);
    background: var(--apc-mint-100);
    outline: none;
}

.apc-primary-button {
    width: 100%;
    min-height: 50px;
    padding: 12px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--apc-teal-700), var(--apc-teal-600));
    border: 1px solid #07706f;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(8, 123, 124, .22);
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-size: .83rem;
    font-weight: 830;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.apc-primary-button:hover,
.apc-primary-button:focus-visible {
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(8, 123, 124, .28);
    transform: translateY(-1px);
    outline: none;
}

.apc-forgot-trigger {
    justify-self: start;
    padding: 2px 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--apc-teal-700);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: .77rem;
    font-weight: 760;
}

.apc-forgot-trigger:hover {
    text-decoration: underline;
}

.apc-login-security {
    margin-top: 28px;
    padding: 14px 15px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #536c71;
    background: #f2f9f7;
    border: 1px solid #dcece8;
    border-radius: 12px;
}

.apc-login-security i {
    margin-top: 2px;
    color: var(--apc-teal-700);
}

.apc-login-security p {
    margin: 0;
    font-size: .7rem;
    line-height: 1.55;
}

.apc-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 20px;
    display: grid;
    place-items: center;
    background: rgba(2, 32, 38, .7);
    backdrop-filter: blur(6px);
}

body.apc-modal-open {
    overflow: hidden;
}

.apc-modal-card {
    position: relative;
    width: min(470px, 100%);
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 20px;
    box-shadow: 0 32px 90px rgba(1, 24, 29, .34);
}

.apc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #5a7378;
    background: #edf6f4;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.apc-modal-icon,
.apc-state-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--apc-teal-700), var(--apc-mint-500));
    border-radius: 17px;
    box-shadow: 0 12px 25px rgba(8, 123, 124, .2);
    font-size: 1.25rem;
}

.apc-modal-card .apc-recovery-form {
    margin-top: 23px;
}

.apc-flash-wrap {
    margin: 0 0 15px;
    padding: 0 !important;
}

.apc-flash-wrap .msg {
    min-height: 46px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #355158;
    background: #eff8f6;
    border: 1px solid #d2e9e3;
    border-left: 4px solid var(--apc-teal-700);
    border-radius: 10px;
    font-size: .75rem;
    line-height: 1.45;
}

.apc-flash-wrap .msg.erro {
    color: #7c2d36;
    background: #fff2f3;
    border-color: #f1cdd1;
    border-left-color: var(--apc-danger);
}

.apc-flash-wrap .msg.sucesso {
    color: #1c694e;
    background: #eefaf5;
    border-color: #ccebdd;
    border-left-color: #28a675;
}

.apc-flash-wrap .msg > span {
    flex: 1 1 auto;
}

.apc-msg-close {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    color: currentColor;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    opacity: .68;
}

/* Estados de recuperação */
body.apc-login-state-page {
    padding: 22px;
}

.apc-state-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: clamp(30px, 6vw, 54px);
    text-align: center;
    background: #fff;
    border: 1px solid var(--apc-border);
    border-radius: 24px;
    box-shadow: var(--apc-shadow);
}

.apc-state-logo {
    width: 135px;
    min-height: 74px;
    margin: 0 auto 25px;
    padding: 8px 12px;
    display: grid;
    place-items: center;
    background: #f5fbf9;
    border: 1px solid var(--apc-border);
    border-radius: 15px;
}

.apc-state-logo img {
    max-width: 105px;
    max-height: 58px;
}

.apc-state-icon {
    margin: 0 auto 17px;
}

.apc-state-icon-error {
    background: linear-gradient(135deg, #bf4653, #e46b75);
}

.apc-state-icon-success {
    background: linear-gradient(135deg, #168c65, #2bc5a4);
}

.apc-state-card .apc-recovery-form {
    margin-top: 24px;
    text-align: left;
}

.apc-state-back {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--apc-teal-700) !important;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 780;
}

.apc-state-button {
    max-width: 290px;
    margin: 25px auto 0;
}

/* =========================================================
   TELA PRINCIPAL DO PORTAL
   ========================================================= */
body.apc-entry-page {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 92% 4%, rgba(43, 197, 164, .11), transparent 26rem),
        linear-gradient(180deg, #eef7f5 0%, #f8fbfa 48%, #edf6f4 100%);
}

.apc-entry-topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    width: 100%;
    min-height: 78px;
    padding: 10px clamp(18px, 3vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--apc-border);
    box-shadow: 0 4px 20px rgba(5, 47, 56, .055);
    backdrop-filter: blur(14px);
}

.apc-entry-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.apc-entry-logo img {
    width: auto;
    max-width: 115px;
    max-height: 57px;
    object-fit: contain;
}

.apc-entry-logo span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.apc-entry-logo strong {
    color: #12343c;
    font-size: .9rem;
}

.apc-entry-logo small {
    margin-top: 2px;
    color: var(--apc-muted);
    font-size: .64rem;
}

.apc-entry-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.apc-entry-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.apc-entry-user-copy small {
    color: var(--apc-muted);
    font-size: .61rem;
}

.apc-entry-user-copy strong {
    max-width: 260px;
    overflow: hidden;
    color: #17343c;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apc-entry-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--apc-teal-700), var(--apc-mint-500));
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 7px 16px rgba(8, 123, 124, .22);
    font-size: .92rem;
    font-weight: 850;
}

.apc-entry-logout {
    min-height: 38px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #76525a !important;
    background: #fff7f7;
    border: 1px solid #efd9dc;
    border-radius: 9px;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 780;
}

.apc-entry-main {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 44px);
    flex: 1 1 auto;
}

.apc-entry-hero {
    position: relative;
    min-height: 280px;
    padding: clamp(30px, 5vw, 62px);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(43, 197, 164, .23), transparent 30rem),
        radial-gradient(circle at 15% 105%, rgba(228, 184, 75, .18), transparent 24rem),
        linear-gradient(135deg, var(--apc-deep-950), var(--apc-deep-800) 60%, var(--apc-teal-700));
    border-bottom: 5px solid var(--apc-mint-500);
    border-radius: 25px 25px 6px 6px;
    box-shadow: 0 24px 68px rgba(5, 47, 56, .2);
}

.apc-entry-hero::before,
.apc-entry-hero::after {
    content: "";
    position: absolute;
    border: 38px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
}

.apc-entry-hero::before {
    width: 350px;
    height: 350px;
    right: -130px;
    top: -145px;
}

.apc-entry-hero::after {
    width: 220px;
    height: 220px;
    left: 44%;
    bottom: -170px;
}

.apc-entry-hero > * {
    position: relative;
    z-index: 1;
}

.apc-entry-hero h1 {
    max-width: 780px;
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(1.75rem, 2.75vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.apc-entry-hero-copy > p {
    max-width: 790px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(.88rem, 1.2vw, 1rem);
    line-height: 1.72;
}

.apc-entry-hero-actions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.apc-entry-hero-actions a {
    min-height: 43px;
    padding: 11px 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 810;
}

.apc-hero-primary {
    color: #073e47 !important;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
}

.apc-hero-secondary {
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
}

.apc-entry-hero-status {
    display: grid;
    gap: 10px;
}

.apc-entry-hero-status > span {
    min-height: 74px;
    padding: 15px 17px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 13px;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 15px;
    backdrop-filter: blur(4px);
}

.apc-entry-hero-status i {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #0b5b5f;
    background: #bff7e9;
    border-radius: 11px;
}

.apc-entry-hero-status strong {
    font-size: .76rem;
}

.apc-entry-hero-status small {
    color: rgba(255, 255, 255, .62);
    font-size: .65rem;
}

.apc-module-section {
    margin-top: 27px;
    padding: clamp(20px, 3vw, 34px);
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--apc-border);
    border-radius: 21px;
    box-shadow: var(--apc-shadow-soft);
}

.apc-section-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.apc-section-heading h2 {
    margin: 7px 0 0;
    color: #12343c;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    letter-spacing: -.035em;
}

.apc-module-search {
    position: relative;
    width: min(340px, 100%);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.apc-module-search i {
    position: absolute;
    left: 14px;
    color: #718b90;
    pointer-events: none;
}

.apc-module-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 41px;
    color: var(--apc-text);
    background: #f8fcfb;
    border: 1px solid #cddfdb;
    border-radius: 11px;
    outline: none;
    font: inherit;
    font-size: .78rem;
}

.apc-module-search input:focus {
    background: #fff;
    border-color: var(--apc-teal-600);
    box-shadow: 0 0 0 4px rgba(10, 146, 144, .1);
}

.apc-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.apc-module-card {
    position: relative;
    min-width: 0;
    min-height: 238px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d7e6e2;
    border-radius: 17px;
    box-shadow: 0 8px 25px rgba(5, 47, 56, .055);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.apc-module-card::after {
    content: "";
    position: absolute;
    right: -46px;
    top: -46px;
    width: 105px;
    height: 105px;
    background: rgba(43, 197, 164, .065);
    border-radius: 50%;
}

.apc-module-card:hover {
    border-color: rgba(10, 146, 144, .42);
    box-shadow: 0 16px 38px rgba(5, 47, 56, .1);
    transform: translateY(-3px);
}

.apc-module-card[hidden] {
    display: none !important;
}

.apc-module-card-wide {
    grid-column: span 2;
}

.apc-module-icon {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--apc-teal-700), var(--apc-mint-500));
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(8, 123, 124, .2);
}

.apc-module-copy {
    position: relative;
    z-index: 1;
}

.apc-module-copy h3 {
    margin: 0 0 7px;
    color: #153841;
    font-size: 1rem;
    letter-spacing: -.015em;
}

.apc-module-copy p {
    margin: 0;
    color: var(--apc-muted);
    font-size: .72rem;
    line-height: 1.55;
}

.apc-module-main-link {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--apc-teal-700) !important;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 820;
}

.apc-module-links {
    position: relative;
    z-index: 1;
    margin-top: 17px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.apc-module-links a {
    min-height: 31px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    color: #35585f !important;
    background: #f1f8f6;
    border: 1px solid #d9e9e5;
    border-radius: 8px;
    text-decoration: none;
    font-size: .66rem;
    font-weight: 740;
}

.apc-module-links a:hover,
.apc-module-main-link:hover {
    color: #055e61 !important;
}

.apc-module-links a:hover {
    background: #e3f6f0;
    border-color: #b8e2d7;
}

.apc-module-card-exit {
    background: linear-gradient(180deg, #fff, #fff8f8);
    border-color: #efdadd;
}

.apc-module-card-exit .apc-module-icon {
    background: linear-gradient(135deg, #aa3f4c, #db6671);
    box-shadow: 0 10px 22px rgba(170, 63, 76, .19);
}

.apc-module-card-exit .apc-module-main-link {
    color: #a13d49 !important;
}

.apc-module-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--apc-muted);
    text-align: center;
}

.apc-module-empty i {
    margin-bottom: 5px;
    color: var(--apc-teal-700);
    font-size: 1.7rem;
}

.apc-module-empty strong {
    color: #23434a;
}

.apc-module-empty span {
    font-size: .75rem;
}

.apc-entry-footer {
    min-height: 62px;
    padding: 16px clamp(20px, 3vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #668085;
    background: rgba(255, 255, 255, .76);
    border-top: 1px solid var(--apc-border);
    font-size: .67rem;
}

.apc-entry-footer small {
    color: #809397;
}

@media (max-width: 1280px) {
    .apc-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1020px) {
    .apc-login-shell {
        grid-template-columns: 1fr;
        width: min(620px, 100%);
    }

    .apc-login-brand {
        display: none;
    }

    .apc-login-mobile-logo {
        width: 145px;
        min-height: 76px;
        margin: 0 auto 30px;
        padding: 9px 12px;
        display: grid;
        place-items: center;
        background: #f5fbf9;
        border: 1px solid var(--apc-border);
        border-radius: 15px;
    }

    .apc-login-mobile-logo img {
        max-width: 110px;
        max-height: 60px;
    }

    .apc-entry-hero {
        grid-template-columns: 1fr;
    }

    .apc-entry-hero-status {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .apc-entry-hero-status > span {
        min-height: 100px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }

    .apc-entry-hero-status i {
        grid-row: auto;
        margin: 0 auto 2px;
    }

    .apc-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.apc-login-page {
        padding: 12px;
    }

    .apc-login-shell {
        min-height: calc(100dvh - 24px);
        border-radius: 20px;
    }

    .apc-login-panel {
        padding: 28px 22px;
    }

    .apc-login-heading {
        margin-bottom: 22px;
    }

    .apc-modal-card {
        padding: 29px 22px 24px;
    }

    .apc-entry-topbar {
        min-height: 68px;
        padding: 8px 13px;
    }

    .apc-entry-logo span,
    .apc-entry-user-copy,
    .apc-entry-logout span {
        display: none;
    }

    .apc-entry-logo img {
        max-width: 98px;
        max-height: 51px;
    }

    .apc-entry-logout {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .apc-entry-main {
        padding: 13px;
    }

    .apc-entry-hero {
        min-height: 0;
        padding: 28px 22px;
        border-radius: 19px 19px 5px 5px;
    }

    .apc-entry-hero-status {
        grid-template-columns: 1fr;
    }

    .apc-entry-hero-status > span {
        min-height: 72px;
        grid-template-columns: 38px 1fr;
        grid-template-rows: auto auto;
        text-align: left;
    }

    .apc-entry-hero-status i {
        grid-row: 1 / 3;
        margin: 0;
    }

    .apc-entry-hero-actions {
        flex-direction: column;
    }

    .apc-entry-hero-actions a {
        width: 100%;
        justify-content: center;
    }

    .apc-module-section {
        margin-top: 16px;
        padding: 18px 13px;
        border-radius: 16px;
    }

    .apc-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .apc-module-search {
        width: 100%;
    }

    .apc-module-grid {
        grid-template-columns: 1fr;
    }

    .apc-module-card-wide {
        grid-column: auto;
    }

    .apc-module-card {
        min-height: 0;
    }

    .apc-entry-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
