@import url('./theme-v2.css');

:root {
    --teiner-red: #e30613;
    --teiner-red-dark: #b8040f;

    --black: #0b0b0d;
    --black-soft: #151518;
    --black-light: #222226;

    --white: #ffffff;

    --gray-100: #f5f5f6;
    --gray-200: #e5e5e8;
    --gray-300: #d1d1d6;
    --gray-500: #8b8b93;
    --gray-700: #44444b;

    --success: #1f8a4c;
    --danger: #b4232c;
    --warning: #b7791f;

    --border-radius: 10px;

    --shadow-sm:
        0 2px 8px rgba(0, 0, 0, 0.08);

    --shadow-md:
        0 8px 30px rgba(0, 0, 0, 0.12);
}


/*
|--------------------------------------------------------------------------
| Reset básico
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/*
|--------------------------------------------------------------------------
| Estrutura geral
|--------------------------------------------------------------------------
*/

html {
    font-size: 16px;
}

body {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background-color: var(--gray-100);

    color: var(--black);

    min-height: 100vh;
}


/*
|--------------------------------------------------------------------------
| Links
|--------------------------------------------------------------------------
*/

a {
    color: inherit;
    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| Formulários
|--------------------------------------------------------------------------
*/

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;

    border: 1px solid var(--gray-300);

    border-radius: 7px;

    padding: 12px 14px;

    background-color: var(--white);

    color: var(--black);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teiner-red);

    box-shadow:
        0 0 0 3px rgba(227, 6, 19, 0.10);
}


/*
|--------------------------------------------------------------------------
| Botões
|--------------------------------------------------------------------------
*/

button {
    border: none;
    cursor: pointer;
}

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 10px 18px;

    border-radius: 7px;

    font-weight: 700;

    transition:
        transform 0.15s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--teiner-red);

    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--teiner-red-dark);
}

.btn-dark {
    background-color: var(--black);

    color: var(--white);
}

.btn-light {
    background-color: var(--white);

    color: var(--black);

    border: 1px solid var(--gray-300);
}


/*
|--------------------------------------------------------------------------
| Utilidades
|--------------------------------------------------------------------------
*/

.text-muted {
    color: var(--gray-500);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.card {
    background-color: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--border-radius);

    box-shadow: var(--shadow-sm);
}
/*
|--------------------------------------------------------------------------
| LOGIN TEINER - MODELO PREMIUM
|--------------------------------------------------------------------------
*/

.login-body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 70% 70%,
            rgba(120, 0, 0, 0.30),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #0b0b0c 0%,
            #090909 55%,
            #120000 100%
        );

    color: #ffffff;
}

.login-screen {
    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 18px;
}

.login-panel {
    width: 100%;

    max-width: 410px;

    min-height: 620px;

    position: relative;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    padding: 26px 26px 18px;

    border: 1px solid #4b4b4f;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(5, 5, 6, 0.96) 0%,
            rgba(10, 10, 11, 0.97) 50%,
            rgba(5, 0, 0, 0.98) 100%
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.65);
}

.login-panel::before {
    content: "";

    position: absolute;

    inset: 42% -90px -40px 20%;

    background:
        radial-gradient(
            circle,
            rgba(170, 0, 0, 0.30),
            rgba(80, 0, 0, 0.15) 35%,
            transparent 70%
        );

    filter: blur(10px);

    pointer-events: none;
}

.login-panel::after {
    content: "";

    position: absolute;

    top: 95px;

    right: -2px;

    width: 3px;

    height: 30px;

    background: var(--teiner-red);

    box-shadow:
        0 0 10px rgba(227, 6, 19, 0.65);

    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Logo
|--------------------------------------------------------------------------
*/

.login-logo-wrapper {
    position: relative;

    z-index: 1;

    display: flex;

    justify-content: center;

    margin-top: 4px;

    margin-bottom: 20px;
}

.login-logo {
    display: block;

    width: min(100%, 340px);

    max-height: 135px;

    object-fit: contain;
}


/*
|--------------------------------------------------------------------------
| Título
|--------------------------------------------------------------------------
*/

.login-title {
    position: relative;

    z-index: 1;

    text-align: center;

    margin-bottom: 30px;
}

.login-title h1 {
    margin: 0;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 500;

    color: #ffffff;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.55);
}


/*
|--------------------------------------------------------------------------
| Formulário
|--------------------------------------------------------------------------
*/

.login-form-modern {
    position: relative;

    z-index: 1;

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 17px;
}

.login-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    color: #f0f0f1;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap input {
    height: 47px;

    padding:
        0
        46px
        0
        12px;

    border:
        1px solid
        #343438;

    border-radius: 7px;

    background:
        rgba(11, 11, 13, 0.88);

    color: #ffffff;

    box-shadow:
        inset
        0 0 12px
        rgba(0, 0, 0, 0.25);
}

.login-input-wrap input::placeholder {
    color: #89898f;
}

.login-input-wrap input:focus {
    border-color:
        rgba(227, 6, 19, 0.75);

    box-shadow:
        0 0 0 3px
        rgba(227, 6, 19, 0.08),
        inset
        0 0 12px
        rgba(0, 0, 0, 0.25);
}

.input-icon {
    position: absolute;

    top: 50%;

    right: 13px;

    transform:
        translateY(-50%);

    color: #b9b9bd;

    font-size: 16px;

    pointer-events: none;
}

.password-toggle {
    position: absolute;

    top: 50%;

    right: 9px;

    transform:
        translateY(-50%);

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 6px;

    background: transparent;

    color: #aaaab0;

    font-size: 16px;

    cursor: pointer;
}

.password-toggle:hover {
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Opções
|--------------------------------------------------------------------------
*/

.login-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    margin-top: -1px;
}

.remember-option {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 11px;

    color: #e3b2b2;
}

.remember-option input {
    appearance: none;

    width: 13px;

    height: 13px;

    min-width: 13px;

    padding: 0;

    margin: 0;

    border:
        1px solid
        var(--teiner-red);

    border-radius: 3px;

    background: transparent;

    cursor: pointer;
}

.remember-option input:checked {
    background:
        var(--teiner-red);

    box-shadow:
        inset
        0 0 0
        2px
        #090909;
}

.forgot-link {
    font-size: 11px;

    color:
        var(--teiner-red);

    text-decoration: underline;

    text-underline-offset: 2px;
}

.forgot-link:hover {
    color: #ff303a;
}


/*
|--------------------------------------------------------------------------
| Botão
|--------------------------------------------------------------------------
*/

.login-submit {
    width: 100%;

    height: 47px;

    margin-top: 4px;

    border: 0;

    border-radius: 7px;

    background:
        linear-gradient(
            180deg,
            #d40a14 0%,
            #b60009 100%
        );

    color: #ffffff;

    font-weight: 800;

    font-size: 13px;

    letter-spacing: 0.15px;

    box-shadow:
        0 8px 25px
        rgba(160, 0, 0, 0.25);

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

.login-submit:hover {
    filter: brightness(1.08);

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 28px
        rgba(190, 0, 0, 0.34);
}


/*
|--------------------------------------------------------------------------
| Erro
|--------------------------------------------------------------------------
*/

.login-error {
    position: relative;

    z-index: 1;

    margin-bottom: 17px;

    padding:
        10px
        12px;

    border:
        1px solid
        rgba(227, 6, 19, 0.45);

    border-radius: 6px;

    background:
        rgba(100, 0, 0, 0.28);

    color: #ffd7d9;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Rodapé
|--------------------------------------------------------------------------
*/

.login-footer {
    position: relative;

    z-index: 1;

    margin-top: auto;

    padding-top: 55px;

    padding-bottom: 0;

    text-align: center;

    font-size: 9px;

    color: #77777d;
}


/*
|--------------------------------------------------------------------------
| Responsivo
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {

    .login-screen {
        align-items: flex-start;

        padding: 8px;
    }

    .login-panel {
        min-height:
            calc(100vh - 16px);

        padding:
            22px
            20px
            16px;
    }

    .login-logo {
        width: min(100%, 320px);
    }

    .login-title h1 {
        font-size: 17px;
    }

    .login-options {
        gap: 10px;
    }
}

/*
|--------------------------------------------------------------------------
| CRM - Estrutura principal
|--------------------------------------------------------------------------
*/

.crm-body {
    min-height: 100vh;
    background-color: #f4f4f5;
    color: var(--black);
}

.crm-layout {
    min-height: 100vh;
    display: flex;
}


/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.crm-sidebar {
    width: 260px;
    min-width: 260px;
    min-height: 100vh;

    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #09090a 0%,
            #111113 100%
        );

    border-right:
        1px solid #26262a;

    color: #ffffff;

    transition:
        transform 0.25s ease;
}

.crm-sidebar-top {
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 18px 14px;

    border-bottom:
        1px solid #242428;
}

.crm-sidebar-logo img {
    display: block;
    max-width: 185px;
    max-height: 60px;
    object-fit: contain;
}

.crm-sidebar-close {
    display: none;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 7px;

    background: #1d1d21;
    color: #ffffff;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| Menu
|--------------------------------------------------------------------------
*/

.crm-menu {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 18px 12px;

    overflow-y: auto;
}

.crm-menu-item {
    min-height: 47px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 14px;

    border-radius: 8px;

    color: #b8b8bf;

    font-size: 13px;
    font-weight: 600;

    border-left:
        3px solid transparent;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.crm-menu-item:hover {
    background-color: #1b1b1f;
    color: #ffffff;
}

.crm-menu-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(227, 6, 19, 0.20),
            rgba(227, 6, 19, 0.04)
        );

    color: #ffffff;

    border-left-color:
        var(--teiner-red);
}

.crm-menu-icon {
    width: 24px;
    min-width: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;

    color: var(--teiner-red);
}


/*
|--------------------------------------------------------------------------
| Usuário da sidebar
|--------------------------------------------------------------------------
*/

.crm-sidebar-bottom {
    padding: 14px;

    border-top:
        1px solid #242428;
}

.crm-sidebar-user {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 13px;
}

.crm-user-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--teiner-red);

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}

.crm-user-info {
    min-width: 0;
}

.crm-user-info strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
    color: #ffffff;
}

.crm-user-info span {
    display: block;

    margin-top: 3px;

    font-size: 10px;
    color: #77777f;
}

.crm-logout {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #333338;

    border-radius: 7px;

    color: #bbbbc0;

    font-size: 12px;
    font-weight: 700;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.crm-logout:hover {
    color: #ffffff;

    border-color:
        var(--teiner-red);

    background:
        rgba(227, 6, 19, 0.10);
}


/*
|--------------------------------------------------------------------------
| Área principal
|--------------------------------------------------------------------------
*/

.crm-main {
    width: calc(100% - 260px);
    min-height: 100vh;

    margin-left: 260px;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.crm-header {
    min-height: 78px;

    position: sticky;
    top: 0;

    z-index: 500;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        14px
        30px;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid #e4e4e7;

    backdrop-filter:
        blur(10px);
}

.crm-header-left {
    display: flex;
    align-items: center;

    gap: 14px;
}

.crm-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid #dedee2;
    border-radius: 8px;

    background: #ffffff;

    color: #111113;

    font-size: 20px;

    cursor: pointer;
}

.crm-page-eyebrow {
    display: block;

    margin-bottom: 3px;

    color:
        var(--teiner-red);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.crm-header h1 {
    margin: 0;

    font-size: 24px;
    line-height: 1.1;
}

.crm-header-user {
    font-size: 12px;

    color: #6d6d75;
}

.crm-header-user strong {
    color: #1a1a1d;
}


/*
|--------------------------------------------------------------------------
| Conteúdo
|--------------------------------------------------------------------------
*/

.crm-content {
    width: 100%;

    padding: 26px 30px 40px;
}


/*
|--------------------------------------------------------------------------
| Banner
|--------------------------------------------------------------------------
*/

.crm-welcome {
    min-height: 185px;

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding:
        30px
        34px;

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 85% 60%,
            rgba(140, 0, 0, 0.45),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #070708 0%,
            #151518 58%,
            #250003 100%
        );

    color: #ffffff;

    box-shadow:
        var(--shadow-md);
}

.crm-welcome::after {
    content: "";

    position: absolute;

    top: -80px;
    right: -90px;

    width: 270px;
    height: 270px;

    border:
        1px solid rgba(227, 6, 19, 0.18);

    border-radius: 50%;
}

.crm-welcome-small {
    display: block;

    margin-bottom: 8px;

    color: var(--teiner-red);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.7px;
}

.crm-welcome h2 {
    max-width: 560px;

    margin: 0 0 10px;

    font-size: 28px;
    line-height: 1.15;
}

.crm-welcome p {
    max-width: 620px;

    color: #aaaab1;

    font-size: 13px;
    line-height: 1.55;
}

.crm-welcome-brand {
    position: relative;
    z-index: 2;

    color:
        var(--teiner-red);

    font-size: 42px;
    font-weight: 900;

    letter-spacing: 6px;

    transform:
        skew(-7deg);

    opacity: 0.9;
}


/*
|--------------------------------------------------------------------------
| Cards de indicadores
|--------------------------------------------------------------------------
*/

.crm-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-top: 20px;
}

.crm-stat-card {
    min-width: 0;

    padding: 20px;

    border:
        1px solid #e2e2e5;

    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);
}

.crm-stat-card > span {
    display: block;

    color: #777780;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.crm-stat-card strong {
    display: block;

    margin:
        11px
        0
        7px;

    color: #111113;

    font-size: 28px;
}

.crm-stat-card small {
    color: #929299;
    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Grid inferior
|--------------------------------------------------------------------------
*/

.crm-dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(300px, 0.8fr);

    gap: 18px;

    margin-top: 18px;
}

.crm-dashboard-card {
    min-height: 300px;

    padding: 21px;

    border:
        1px solid #e2e2e5;

    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);
}

.crm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 17px;

    border-bottom:
        1px solid #efeff1;
}

.crm-card-header span {
    display: block;

    margin-bottom: 4px;

    color:
        var(--teiner-red);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.crm-card-header h3 {
    margin: 0;

    font-size: 16px;
}

.crm-card-header a {
    color:
        var(--teiner-red);

    font-size: 11px;
    font-weight: 700;
}

.crm-empty-state {
    min-height: 210px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 25px;
}

.crm-empty-state strong {
    margin-bottom: 8px;

    font-size: 13px;
}

.crm-empty-state p {
    max-width: 330px;

    color: #8b8b93;

    font-size: 11px;
    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Overlay mobile
|--------------------------------------------------------------------------
*/

.crm-sidebar-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 900;

    background:
        rgba(0, 0, 0, 0.62);

    opacity: 0;

    transition:
        opacity 0.25s ease;
}

.crm-sidebar-overlay.is-visible {
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .crm-sidebar {
        transform:
            translateX(-100%);

        box-shadow:
            20px 0 50px rgba(0, 0, 0, 0.35);
    }

    .crm-sidebar.is-open {
        transform:
            translateX(0);
    }

    .crm-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .crm-sidebar-overlay {
        display: block;

        pointer-events: none;
    }

    .crm-sidebar-overlay.is-visible {
        pointer-events: auto;
    }

    .crm-main {
        width: 100%;
        margin-left: 0;
    }

    .crm-menu-toggle {
        display: inline-flex;
    }

    .crm-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .crm-dashboard-grid {
        grid-template-columns:
            1fr;
    }
}


/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .crm-sidebar {
        width: min(86vw, 290px);
        min-width: 0;
    }

    .crm-header {
        min-height: 68px;

        padding:
            11px
            15px;
    }

    .crm-header-user {
        display: none;
    }

    .crm-header h1 {
        font-size: 20px;
    }

    .crm-content {
        padding:
            16px
            14px
            28px;
    }

    .crm-welcome {
        min-height: auto;

        display: block;

        padding:
            24px
            21px;
    }

    .crm-welcome h2 {
        font-size: 23px;
    }

    .crm-welcome p {
        font-size: 12px;
    }

    .crm-welcome-brand {
        margin-top: 28px;

        font-size: 29px;
    }

    .crm-stats {
        grid-template-columns:
            1fr;

        gap: 11px;
    }

    .crm-stat-card {
        padding: 17px;
    }

    .crm-stat-card strong {
        font-size: 25px;
    }

    .crm-dashboard-grid {
        gap: 12px;

        margin-top: 12px;
    }

    .crm-dashboard-card {
        min-height: 250px;

        padding: 17px;
    }

    .crm-card-header {
        align-items: flex-start;
    }

}


/*
|--------------------------------------------------------------------------
| Celulares pequenos
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .crm-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .crm-header h1 {
        font-size: 18px;
    }

    .crm-page-eyebrow {
        font-size: 8px;
    }

    .crm-welcome h2 {
        font-size: 21px;
    }

}

/*
|--------------------------------------------------------------------------
| Página de Leads
|--------------------------------------------------------------------------
*/

.leads-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 22px;
}

.leads-page-header h2 {
    margin: 4px 0 8px;

    font-size: 26px;
    line-height: 1.15;
}

.leads-page-header p {
    max-width: 620px;

    color: var(--gray-500);

    font-size: 12px;
    line-height: 1.55;
}

.leads-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}


/*
|--------------------------------------------------------------------------
| Resumo de Leads
|--------------------------------------------------------------------------
*/

.leads-summary {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 18px;
}

.leads-summary-card {
    min-width: 0;

    padding: 18px 19px;

    border:
        1px solid var(--gray-200);

    border-radius: 10px;

    background: var(--white);

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);
}

.leads-summary-card span {
    display: block;

    color: var(--gray-500);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.leads-summary-card strong {
    display: block;

    margin-top: 10px;

    color: var(--black);

    font-size: 25px;
}


/*
|--------------------------------------------------------------------------
| Painel principal
|--------------------------------------------------------------------------
*/

.leads-panel {
    overflow: hidden;

    border:
        1px solid var(--gray-200);

    border-radius: 11px;

    background: var(--white);

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);
}


/*
|--------------------------------------------------------------------------
| Barra de pesquisa e filtros
|--------------------------------------------------------------------------
*/

.leads-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 16px;

    border-bottom:
        1px solid #ececef;

    background: #ffffff;
}

.leads-search {
    flex: 1;
    max-width: 460px;
}

.leads-search input {
    height: 42px;

    background:
        #fafafb;
}

.leads-filters {
    display: flex;
    align-items: center;

    gap: 9px;
}

.leads-filters select {
    width: auto;
    min-width: 150px;

    height: 42px;

    padding:
        0
        34px
        0
        11px;

    background-color:
        #fafafb;

    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Tabela
|--------------------------------------------------------------------------
*/

.leads-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.leads-table {
    width: 100%;
    min-width: 920px;

    border-collapse: collapse;

    font-size: 12px;
}

.leads-table thead {
    background: #f8f8f9;
}

.leads-table th {
    padding:
        13px
        15px;

    border-bottom:
        1px solid #e8e8eb;

    color: #6d6d75;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-align: left;
    white-space: nowrap;
}

.leads-table td {
    padding:
        14px
        15px;

    border-bottom:
        1px solid #efeff1;

    vertical-align: middle;
}

.leads-table tbody tr:not(.leads-empty-row):hover {
    background:
        #fafafa;
}


/*
|--------------------------------------------------------------------------
| Estado vazio
|--------------------------------------------------------------------------
*/

.leads-empty-row td {
    padding: 0;
}

.leads-empty-state {
    min-height: 330px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding:
        35px
        20px;

    text-align: center;
}

.leads-empty-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    border-radius: 50%;

    background:
        rgba(227, 6, 19, 0.10);

    color:
        var(--teiner-red);

    font-size: 26px;
    font-weight: 400;
}

.leads-empty-state strong {
    margin-bottom: 7px;

    font-size: 14px;
}

.leads-empty-state p {
    max-width: 340px;

    margin-bottom: 17px;

    color: var(--gray-500);

    font-size: 11px;
    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .leads-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .leads-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .leads-search {
        max-width: none;
    }

    .leads-filters {
        width: 100%;
    }

    .leads-filters select {
        flex: 1;
        width: 100%;
    }

}


/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .leads-page-header {
        align-items: stretch;
        flex-direction: column;

        gap: 16px;
    }

    .leads-page-header h2 {
        font-size: 23px;
    }

    .leads-page-actions {
        width: 100%;
    }

    .leads-page-actions .btn {
        flex: 1;
    }

    .leads-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .leads-summary-card {
        padding: 15px;
    }

    .leads-summary-card span {
        font-size: 8px;
    }

    .leads-summary-card strong {
        font-size: 23px;
    }

    .leads-toolbar {
        padding: 12px;
    }

    .leads-filters {
        flex-direction: column;
    }

    .leads-filters select {
        width: 100%;
    }

    .leads-empty-state {
        min-height: 290px;
    }

}


/*
|--------------------------------------------------------------------------
| Celulares muito pequenos
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .leads-summary {
        grid-template-columns:
            1fr;
    }

    .leads-page-actions {
        flex-direction: column;
    }

    .leads-page-actions .btn {
        width: 100%;
    }

}

/*
|--------------------------------------------------------------------------
| Novo Lead
|--------------------------------------------------------------------------
*/

.lead-form-page-header {
    margin-bottom: 24px;
}

.lead-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 22px;

    color: #777780;

    font-size: 12px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.lead-back-link:hover {
    color: var(--teiner-red);
}

.lead-form-page-header h2 {
    margin: 5px 0 8px;

    font-size: 27px;
    line-height: 1.2;

    color: #111113;
}

.lead-form-page-header p {
    max-width: 650px;

    color: #85858d;

    font-size: 12px;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Estrutura do formulário
|--------------------------------------------------------------------------
*/

.lead-form {
    width: 100%;
}

.lead-form-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(300px, 0.75fr);

    gap: 20px;

    align-items: start;
}

.lead-form-main,
.lead-form-side {
    display: flex;
    flex-direction: column;

    gap: 20px;
}


/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.lead-form-card {
    overflow: hidden;

    border: 1px solid #e3e3e7;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.045);
}

.lead-form-card-header {
    padding: 19px 22px 17px;

    border-bottom: 1px solid #eeeeF1;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fcfcfd 100%
        );
}

.lead-form-card-header span {
    display: block;

    margin-bottom: 5px;

    color: var(--teiner-red);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.lead-form-card-header h3 {
    margin: 0;

    color: #17171a;

    font-size: 16px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Grid dos campos
|--------------------------------------------------------------------------
*/

.lead-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 19px 18px;

    padding: 23px;
}

.lead-field-full {
    grid-column: 1 / -1;
}

.lead-form-side-fields {
    display: flex;
    flex-direction: column;

    gap: 18px;

    padding: 22px;
}

.lead-form-side > .lead-form-card:last-child
> .lead-form-field {
    padding: 22px;
}


/*
|--------------------------------------------------------------------------
| Campos
|--------------------------------------------------------------------------
*/

.lead-form-field {
    min-width: 0;
}

.lead-form-field label {
    display: block;

    margin-bottom: 7px;

    color: #44444b;

    font-size: 11px;
    font-weight: 700;
}

.lead-form-field label strong {
    color: var(--teiner-red);
}

.lead-form-field input,
.lead-form-field select,
.lead-form-field textarea {
    width: 100%;

    border: 1px solid #dcdce1;
    border-radius: 7px;

    background: #fafafb;

    color: #17171a;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.lead-form-field input,
.lead-form-field select {
    height: 44px;
}

.lead-form-field input {
    padding: 0 13px;
}

.lead-form-field select {
    padding:
        0
        34px
        0
        13px;
}

.lead-form-field textarea {
    min-height: 115px;

    padding: 12px 13px;

    line-height: 1.55;

    resize: vertical;
}

.lead-form-field input::placeholder,
.lead-form-field textarea::placeholder {
    color: #a1a1a8;
}

.lead-form-field input:hover,
.lead-form-field select:hover,
.lead-form-field textarea:hover {
    border-color: #c6c6cc;
}

.lead-form-field input:focus,
.lead-form-field select:focus,
.lead-form-field textarea:focus {
    border-color: var(--teiner-red);

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(227, 6, 19, 0.08);
}


/*
|--------------------------------------------------------------------------
| Ações
|--------------------------------------------------------------------------
*/

.lead-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid #e3e3e6;
}

.lead-form-actions .btn {
    min-width: 125px;
}


/*
|--------------------------------------------------------------------------
| Detalhe visual da coluna comercial
|--------------------------------------------------------------------------
*/

.lead-form-side .lead-form-card:first-child {
    border-top:
        3px solid var(--teiner-red);
}

.lead-form-side .lead-form-card:first-child
.lead-form-card-header {
    padding-top: 17px;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .lead-form-layout {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(280px, 0.8fr);
    }

}


/*
|--------------------------------------------------------------------------
| Tablet menor
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .lead-form-layout {
        grid-template-columns: 1fr;
    }

    .lead-form-side {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

}


/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .lead-form-page-header {
        margin-bottom: 18px;
    }

    .lead-back-link {
        margin-bottom: 17px;
    }

    .lead-form-page-header h2 {
        font-size: 23px;
    }

    .lead-form-grid {
        grid-template-columns: 1fr;

        gap: 16px;

        padding: 18px;
    }

    .lead-field-full {
        grid-column: auto;
    }

    .lead-form-side {
        display: flex;
    }

    .lead-form-card-header {
        padding:
            17px
            18px
            15px;
    }

    .lead-form-side-fields {
        padding: 18px;
    }

    .lead-form-side > .lead-form-card:last-child
    > .lead-form-field {
        padding: 18px;
    }

    .lead-form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .lead-form-actions .btn {
        width: 100%;
    }

}

/*
|--------------------------------------------------------------------------
| Leads cadastrados
|--------------------------------------------------------------------------
*/

.crm-success-message {
    margin-bottom: 18px;
    padding: 13px 15px;

    border: 1px solid rgba(31, 138, 76, 0.24);
    border-radius: 8px;

    background: rgba(31, 138, 76, 0.08);

    color: #176a3b;

    font-size: 12px;
    font-weight: 700;
}

.lead-client-cell {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 190px;
}

.lead-client-avatar {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #17171a;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.lead-client-cell strong {
    display: block;

    color: #17171a;

    font-size: 12px;
}

.lead-client-cell span {
    display: block;

    max-width: 190px;

    margin-top: 3px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #8b8b93;

    font-size: 10px;
}

.lead-source-badge,
.lead-stage-badge {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 4px 9px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}

.lead-source-badge {
    background: #f1f1f3;
    color: #55555d;
}

.lead-stage-badge {
    background: rgba(227, 6, 19, 0.08);
    color: var(--teiner-red);
}

.lead-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 5px 11px;

    border: 1px solid #e0e0e4;
    border-radius: 6px;

    color: #55555c;

    font-size: 10px;
    font-weight: 700;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.lead-action-link:hover {
    border-color: var(--teiner-red);

    background: rgba(227, 6, 19, 0.05);

    color: var(--teiner-red);
}
.lead-field-help {
    display: block;
    margin-top: 6px;

    color: #96969d;

    font-size: 9px;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| Alertas de retorno dos Leads
|--------------------------------------------------------------------------
*/

.leads-summary-card.has-alert {
    border-color: rgba(180, 35, 44, 0.25);

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        rgba(180, 35, 44, 0.045) 100%
    );
}

.leads-summary-card.has-alert strong {
    color: var(--danger);
}


/*
|--------------------------------------------------------------------------
| Retorno
|--------------------------------------------------------------------------
*/

.lead-return-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 27px;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.lead-return-none {
    background: #f3f3f5;
    color: #96969d;
}

.lead-return-future {
    background: #f0f0f2;
    color: #5c5c64;
}

.lead-return-tomorrow {
    background: rgba(183, 121, 31, 0.10);
    color: #946414;
}

.lead-return-today {
    background: rgba(227, 6, 19, 0.09);
    color: var(--teiner-red);
}

.lead-return-late {
    background: rgba(180, 35, 44, 0.10);
    color: var(--danger);
}

.lead-return-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--danger);

    box-shadow: 0 0 0 3px rgba(180, 35, 44, 0.10);
}


/*
|--------------------------------------------------------------------------
| Linha atrasada
|--------------------------------------------------------------------------
*/

.lead-row-late td:first-child {
    box-shadow: inset 3px 0 0 var(--danger);
}

/*
|--------------------------------------------------------------------------
| Detalhes do Lead
|--------------------------------------------------------------------------
*/

.lead-detail-back {
    margin-bottom: 6px;
}

.lead-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 22px;

    margin-bottom: 20px;

    padding: 22px 24px;

    border: 1px solid #e2e2e6;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);
}

.lead-detail-client {
    display: flex;
    align-items: center;

    gap: 15px;

    min-width: 0;
}

.lead-detail-avatar {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            180deg,
            #1c1c1f 0%,
            #0e0e10 100%
        );

    color: #ffffff;

    font-size: 18px;
    font-weight: 900;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.14);
}

.lead-detail-header h2 {
    margin: 4px 0 7px;

    color: #151518;

    font-size: 25px;
    line-height: 1.15;
}

.lead-detail-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 16px;

    color: #7d7d85;

    font-size: 11px;
}

.lead-detail-header-actions {
    display: flex;
    align-items: center;

    gap: 9px;

    flex-shrink: 0;
}


/*
|--------------------------------------------------------------------------
| Grid da ficha
|--------------------------------------------------------------------------
*/

.lead-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(300px, 0.72fr);

    gap: 20px;

    align-items: start;
}

.lead-detail-main,
.lead-detail-side {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.lead-detail-card {
    overflow: hidden;

    border: 1px solid #e2e2e6;
    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);
}

.lead-detail-card-header {
    padding: 17px 20px 15px;

    border-bottom: 1px solid #eeeeF1;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fcfcfd 100%
        );
}

.lead-detail-card-header span {
    display: block;

    margin-bottom: 4px;

    color: var(--teiner-red);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.lead-detail-card-header h3 {
    margin: 0;

    color: #17171a;

    font-size: 15px;
}


/*
|--------------------------------------------------------------------------
| Informações
|--------------------------------------------------------------------------
*/

.lead-detail-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0;

    padding: 6px 20px 14px;
}

.lead-detail-info {
    min-width: 0;

    padding: 15px 10px 15px 0;

    border-bottom: 1px solid #f0f0f2;
}

.lead-detail-info:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.lead-detail-info span,
.lead-detail-side-item > span {
    display: block;

    margin-bottom: 6px;

    color: #93939a;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.lead-detail-info strong {
    display: block;

    overflow-wrap: anywhere;

    color: #242428;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| Observações
|--------------------------------------------------------------------------
*/

.lead-detail-notes {
    min-height: 130px;

    padding: 20px;

    color: #4d4d54;

    font-size: 12px;
    line-height: 1.7;

    white-space: normal;
}

.lead-detail-empty-text {
    color: #97979e;
}


/*
|--------------------------------------------------------------------------
| Coluna comercial
|--------------------------------------------------------------------------
*/

.lead-detail-commercial {
    border-top: 3px solid var(--teiner-red);
}

.lead-detail-side-list {
    padding: 5px 19px 12px;
}

.lead-detail-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 0;

    border-bottom: 1px solid #f0f0f2;
}

.lead-detail-side-item:last-child {
    border-bottom: 0;
}

.lead-detail-side-item > span {
    margin-bottom: 0;
}

.lead-detail-side-item > strong {
    max-width: 58%;

    text-align: right;

    color: #2c2c31;

    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Próximo retorno
|--------------------------------------------------------------------------
*/

.lead-detail-return {
    padding: 20px;
}

.lead-detail-return .lead-return-badge {
    min-height: 34px;

    padding: 7px 12px;

    font-size: 10px;
}


/*
|--------------------------------------------------------------------------
| Histórico vazio
|--------------------------------------------------------------------------
*/

.lead-detail-empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 25px;

    text-align: center;
}

.lead-detail-empty strong {
    margin-bottom: 7px;

    color: #37373c;

    font-size: 12px;
}

.lead-detail-empty p {
    max-width: 240px;

    color: #929299;

    font-size: 10px;
    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1000px) {

    .lead-detail-grid {
        grid-template-columns: 1fr;
    }

    .lead-detail-side {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .lead-detail-side .lead-detail-card:last-child {
        grid-column: 1 / -1;
    }
}


/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .lead-detail-header {
        align-items: stretch;
        flex-direction: column;

        padding: 18px;
    }

    .lead-detail-header h2 {
        font-size: 22px;
    }

    .lead-detail-header-actions {
        width: 100%;
    }

    .lead-detail-header-actions .btn {
        flex: 1;
    }

    .lead-detail-info-grid {
        grid-template-columns: 1fr;

        padding:
            5px
            17px
            12px;
    }

    .lead-detail-info {
        padding:
            14px
            0;

        border-bottom:
            1px solid #f0f0f2;
    }

    .lead-detail-info:nth-last-child(-n + 2) {
        border-bottom:
            1px solid #f0f0f2;
    }

    .lead-detail-info:last-child {
        border-bottom: 0;
    }

    .lead-detail-side {
        display: flex;
    }

    .lead-detail-side-item {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

    .lead-detail-side-item > strong {
        max-width: 100%;

        text-align: left;
    }
}


/*
|--------------------------------------------------------------------------
| Celulares pequenos
|--------------------------------------------------------------------------
*/

@media (max-width: 400px) {

    .lead-detail-client {
        align-items: flex-start;
    }

    .lead-detail-avatar {
        width: 46px;
        height: 46px;

        font-size: 16px;
    }

    .lead-detail-header-actions {
        flex-direction: column;
    }

    .lead-detail-header-actions .btn {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Histórico de atividades do Lead
|--------------------------------------------------------------------------
*/

.lead-activity-list {
    padding: 4px 20px 10px;
}

.lead-activity-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid #eeeeF1;
}

.lead-activity-item:last-child {
    border-bottom: 0;
}

.lead-activity-marker {
    position: relative;
    display: flex;
    justify-content: center;
}

.lead-activity-marker::after {
    content: "";
    position: absolute;
    top: 18px;
    bottom: -26px;
    width: 1px;
    background: #e5e5e8;
}

.lead-activity-item:last-child
.lead-activity-marker::after {
    display: none;
}

.lead-activity-marker span {
    position: relative;
    z-index: 2;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--teiner-red);
    box-shadow:
        0 0 0 3px rgba(227, 6, 19, 0.10);
}

.lead-activity-content {
    min-width: 0;
}

.lead-activity-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lead-activity-top > div {
    min-width: 0;
}

.lead-activity-type {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    margin-bottom: 7px;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(227, 6, 19, 0.08);
    color: var(--teiner-red);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.lead-activity-top strong {
    display: block;
    color: #242428;
    font-size: 12px;
    line-height: 1.45;
}

.lead-activity-top time {
    flex-shrink: 0;
    padding-top: 4px;
    color: #97979e;
    font-size: 9px;
    white-space: nowrap;
}

.lead-activity-description {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8f8f9;
    color: #55555c;
    font-size: 11px;
    line-height: 1.65;
}

.lead-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
    color: #96969d;
    font-size: 9px;
}

.lead-activity-meta strong {
    color: #66666d;
    font-weight: 800;
}

.lead-detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.lead-detail-card-header .btn {
    flex-shrink: 0;
}


/*
|--------------------------------------------------------------------------
| Responsividade do histórico
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .lead-activity-list {
        padding: 3px 16px 8px;
    }

    .lead-activity-item {
        grid-template-columns: 19px minmax(0, 1fr);
        gap: 9px;
        padding: 16px 0;
    }

    .lead-activity-top {
        flex-direction: column;
        gap: 4px;
    }

    .lead-activity-top time {
        padding-top: 0;
    }

    .lead-activity-description {
        padding: 11px 12px;
    }

    .lead-activity-meta {
        flex-direction: column;
        gap: 5px;
    }

    .lead-detail-card-header {
        align-items: flex-start;
    }

    .lead-detail-card-header .btn {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 9px;
    }
}

/*
|--------------------------------------------------------------------------
| Funil de vendas - Kanban
|--------------------------------------------------------------------------
*/

.kanban-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.kanban-page-header h2 {
    margin: 5px 0 6px;
    color: #17171a;
    font-size: 26px;
}

.kanban-page-header p {
    margin: 0;
    max-width: 520px;
    color: #85858d;
    font-size: 11px;
    line-height: 1.6;
}

.kanban-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.kanban-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 290px;
    gap: 14px;
    align-items: start;
    min-width: max-content;
}

.kanban-column {
    overflow: hidden;
    border: 1px solid #e1e1e5;
    border-radius: 12px;
    background: #f7f7f8;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 14px 15px;
    border-bottom: 1px solid #e5e5e8;
    background: #ffffff;
}

.kanban-column-title {
    color: #27272b;
    font-size: 11px;
    font-weight: 900;
}

.kanban-column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 20px;
    background: #f0f0f2;
    color: #66666d;
    font-size: 9px;
    font-weight: 900;
}

.kanban-column-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
    padding: 10px;
}

.kanban-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 16px;
    border: 1px dashed #d9d9de;
    border-radius: 9px;
    color: #a0a0a6;
    font-size: 10px;
    text-align: center;
}

.kanban-card {
    padding: 14px;
    border: 1px solid #e0e0e4;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    border-color: #d2d2d7;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.07);
}

.kanban-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.kanban-card-name {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #1b1b1e;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
    text-decoration: none;
}

.kanban-card-name:hover {
    color: var(--teiner-red);
}

.kanban-card-id {
    flex-shrink: 0;
    color: #a1a1a8;
    font-size: 8px;
    font-weight: 800;
}

.kanban-card-interest {
    margin-bottom: 7px;
    color: #55555c;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.kanban-card-location {
    margin-bottom: 12px;
    color: #929299;
    font-size: 9px;
}

.kanban-card-value,
.kanban-card-probability {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f2;
}

.kanban-card-value span,
.kanban-card-probability span {
    color: #96969d;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.kanban-card-value strong {
    color: #242428;
    font-size: 10px;
}

.kanban-card-probability strong {
    color: var(--teiner-red);
    font-size: 10px;
}

.kanban-card-return {
    margin-top: 9px;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(227, 6, 19, 0.06);
    color: #7d7d84;
    font-size: 8px;
    line-height: 1.45;
}

.kanban-card-return strong {
    color: var(--teiner-red);
    font-weight: 900;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eeeeF1;
}

.kanban-card-footer span {
    min-width: 0;
    overflow: hidden;
    color: #909097;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-card-footer a {
    flex-shrink: 0;
    color: var(--teiner-red);
    font-size: 8px;
    font-weight: 900;
    text-decoration: none;
}

.kanban-card-footer a:hover {
    text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| Destaques das etapas
|--------------------------------------------------------------------------
*/

.kanban-column:nth-child(1) {
    border-top: 3px solid #7b7b83;
}

.kanban-column:nth-child(2) {
    border-top: 3px solid #696971;
}

.kanban-column:nth-child(3) {
    border-top: 3px solid #b18428;
}

.kanban-column:nth-child(4) {
    border-top: 3px solid #a76520;
}

.kanban-column:nth-child(5) {
    border-top: 3px solid var(--teiner-red);
}

.kanban-column:nth-child(6) {
    border-top: 3px solid #b4232c;
}

.kanban-column:nth-child(7) {
    border-top: 3px solid #367a4a;
}

.kanban-column:nth-child(8) {
    border-top: 3px solid #333338;
}


/*
|--------------------------------------------------------------------------
| Scroll horizontal
|--------------------------------------------------------------------------
*/

.kanban-wrapper::-webkit-scrollbar {
    height: 9px;
}

.kanban-wrapper::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #eeeeF1;
}

.kanban-wrapper::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #c9c9ce;
}

.kanban-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaaaB0;
}


/*
|--------------------------------------------------------------------------
| Responsividade
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .kanban-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .kanban-page-header .btn {
        width: 100%;
        text-align: center;
    }

    .kanban-board {
        grid-auto-columns: 265px;
    }

    .kanban-column-body {
        min-height: 150px;
    }
}

/* =========================================================
   AJUSTE VISUAL DO DRAG AND DROP
   ========================================================= */

/* Não exibir mensagem de sucesso */
.kanban-message-success {
    display: none !important;
}

/* Card que pode ser arrastado */
.kanban-card[draggable="true"] {
    cursor: grab;
    user-select: none;
}

/* Enquanto segura o card */
.kanban-card.is-dragging {
    opacity: 0.25 !important;
    transform: scale(0.96) rotate(1deg) !important;
    border-color: var(--teiner-red) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18) !important;
    cursor: grabbing !important;
}

/* Coluna onde o lead será solto */
.kanban-column-body.is-drag-over {
    background: rgba(227, 6, 19, 0.08) !important;
    outline: 2px dashed var(--teiner-red) !important;
    outline-offset: -7px;
    border-radius: 9px;
}

/* Área vazia da coluna de destino */
.kanban-column-body.is-drag-over .kanban-empty {
    background: rgba(227, 6, 19, 0.07) !important;
    border-color: var(--teiner-red) !important;
    color: var(--teiner-red) !important;
}

/* =========================================================
   DASHBOARD - CARDS CLICÁVEIS
   ========================================================= */

.crm-stat-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.crm-stat-link .crm-stat-card {
    height: 100%;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.crm-stat-link:hover .crm-stat-card {
    transform: translateY(-3px);
    border-color: rgba(227, 6, 19, 0.25);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   DASHBOARD - AGENDA DE RETORNOS
   ========================================================= */

.dashboard-agenda-list {
    display: flex;
    flex-direction: column;
    padding: 4px 20px 18px;
}

.dashboard-agenda-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 4px;
    border-bottom: 1px solid #ededf0;
    color: inherit;
    text-decoration: none;
    transition:
        background 0.15s ease,
        padding 0.15s ease;
}

.dashboard-agenda-item:last-child {
    border-bottom: 0;
}

.dashboard-agenda-item:hover {
    padding-left: 9px;
    padding-right: 9px;
    border-radius: 8px;
    background: #f7f7f8;
}

.dashboard-agenda-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.dashboard-agenda-main strong {
    overflow: hidden;
    color: #232327;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-agenda-main span {
    color: #96969d;
    font-size: 8px;
}

.dashboard-agenda-date {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.dashboard-agenda-date strong {
    color: #55555c;
    font-size: 9px;
}

.dashboard-agenda-date span {
    color: #a0a0a6;
    font-size: 8px;
}

.dashboard-agenda-late .dashboard-agenda-date strong {
    color: var(--danger);
}

.dashboard-agenda-today .dashboard-agenda-date strong {
    color: var(--teiner-red);
}

.dashboard-agenda-tomorrow .dashboard-agenda-date strong {
    color: #946414;
}

@media (max-width: 600px) {

    .dashboard-agenda-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-agenda-date {
        text-align: left;
    }
}

/* =========================================================
   DASHBOARD - RESUMO DO FUNIL
   ========================================================= */

.dashboard-funnel {
    padding: 18px 20px 22px;
}

.dashboard-funnel-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 9px;
    background: #f7f7f8;
}

.dashboard-funnel-total span {
    color: #898990;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.dashboard-funnel-total strong {
    color: var(--teiner-red);
    font-size: 20px;
}

.dashboard-funnel-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-funnel-item {
    display: block;
    color: inherit;
    text-decoration: none;
}

.dashboard-funnel-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 6px;
}

.dashboard-funnel-item-top span {
    color: #55555c;
    font-size: 9px;
    font-weight: 700;
}

.dashboard-funnel-item-top strong {
    color: #242428;
    font-size: 10px;
}

.dashboard-funnel-progress {
    overflow: hidden;
    width: 100%;
    height: 6px;
    border-radius: 20px;
    background: #ededf0;
}

.dashboard-funnel-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--teiner-red);
    transition: width 0.25s ease;
}

.dashboard-funnel-item:hover .dashboard-funnel-item-top span {
    color: var(--teiner-red);
}


/* =========================================================
   PÁGINA DE ATIVIDADES
   ========================================================= */

.activities-page-header {
    margin-bottom: 18px;
}

.activities-page-header p {
    margin: 6px 0 0;
    color: #77777e;
    font-size: 10px;
}

.activities-panel {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid #ececef;
    border-radius: 12px;
    background: #fff;
}

.activities-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #ededf0;
}

.activities-panel-header h3 {
    margin: 4px 0 0;
    color: #29292d;
    font-size: 15px;
}

.activities-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid #ededf0;
    transition: background 0.15s ease;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-item:hover {
    background: #fafafa;
}

.activity-item-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.activity-type {
    flex-shrink: 0;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f1f1f3;
    color: #5d5d63;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.activity-content {
    min-width: 0;
}

.activity-content > strong {
    display: block;
    margin-bottom: 5px;
    color: #29292d;
    font-size: 11px;
}

.activity-content p {
    max-width: 650px;
    margin: 7px 0 0;
    color: #77777e;
    font-size: 9px;
    line-height: 1.55;
}

.activity-lead-link {
    color: var(--teiner-red);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.activity-lead-link:hover {
    text-decoration: underline;
}

.activity-item-meta {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.activity-item-meta small {
    color: #9b9ba1;
    font-size: 8px;
}

.activity-status {
    padding: 5px 7px;
    border-radius: 20px;
    background: #f1f1f3;
    color: #67676d;
    font-size: 8px;
    font-weight: 800;
}

.activity-status-late {
    background: rgba(196, 42, 42, 0.09);
    color: #b52929;
}

.activity-status-today {
    background: rgba(227, 6, 19, 0.09);
    color: var(--teiner-red);
}

.activity-status-tomorrow {
    background: rgba(184, 131, 36, 0.1);
    color: #946414;
}

.activity-status-future {
    background: #f1f1f3;
    color: #67676d;
}

.activity-status-completed {
    background: rgba(41, 131, 76, 0.09);
    color: #287548;
}

.activity-item-late {
    box-shadow: inset 3px 0 0 #b52929;
}

.activity-item-today {
    box-shadow: inset 3px 0 0 var(--teiner-red);
}

@media (max-width: 700px) {

    .activity-item {
        flex-direction: column;
    }

    .activity-item-meta {
        align-items: flex-start;
    }

    .activity-item-main {
        width: 100%;
    }

}

/* =========================================================
   AJUSTE GLOBAL DE LEGIBILIDADE - TEINER CRM
   ========================================================= */

/* Sidebar */
.crm-menu-item { font-size: 14px; }
.crm-user-info strong { font-size: 13px; }
.crm-user-info span { font-size: 11px; }
.crm-logout { font-size: 13px; }

/* Textos auxiliares gerais */
.crm-page-eyebrow { font-size: 10px; }
.crm-welcome-small { font-size: 11px; }
.crm-welcome p,
.leads-page-header p,
.kanban-page-header p,
.activities-page-header p { font-size: 13px; line-height: 1.65; }

/* Botões */
.btn { font-size: 13px; }

/* Dashboard */
.crm-stat-card > span { font-size: 10px; }
.crm-stat-card small { font-size: 12px; }
.crm-card-header span { font-size: 10px; }
.crm-card-header h3 { font-size: 18px; }
.crm-card-header a { font-size: 12px; }
.crm-empty-state strong { font-size: 14px; }
.crm-empty-state p { font-size: 12px; }
.dashboard-agenda-main strong { font-size: 14px; }
.dashboard-agenda-main span { font-size: 11px; }
.dashboard-agenda-date strong { font-size: 12px; }
.dashboard-agenda-date span { font-size: 11px; }
.dashboard-funnel-total span { font-size: 10px; }
.dashboard-funnel-total strong { font-size: 22px; }
.dashboard-funnel-item-top span,
.dashboard-funnel-item-top strong { font-size: 12px; }

/* Leads */
.leads-summary-card span { font-size: 10px; }
.leads-summary-card strong { font-size: 26px; }
.leads-summary-card small { font-size: 11px; line-height: 1.45; }
.leads-filters select { font-size: 12px; }
.leads-search input { font-size: 13px; }
.leads-table { font-size: 13px; }
.leads-table th { font-size: 10px; }
.leads-table td { font-size: 13px; }
.lead-client-cell strong { font-size: 13px; }
.lead-client-cell span { font-size: 11px; }
.lead-source-badge,
.lead-stage-badge,
.lead-return-badge { font-size: 10px; }
.lead-action-link { font-size: 11px; }
.lead-field-help { font-size: 10px; }

/* Formulários */
.lead-form-field label { font-size: 12px; }
.lead-form-field input,
.lead-form-field select,
.lead-form-field textarea { font-size: 13px; }
.lead-form-card-header span { font-size: 10px; }
.lead-form-card-header h3 { font-size: 17px; }
.lead-back-link { font-size: 13px; }
.lead-form-page-header p { font-size: 13px; }

/* Detalhe do lead */
.lead-detail-header-meta { font-size: 12px; }
.lead-detail-card-header span { font-size: 10px; }
.lead-detail-card-header h3 { font-size: 17px; }
.lead-detail-info span,
.lead-detail-side-item > span { font-size: 10px; }
.lead-detail-info strong,
.lead-detail-side-item > strong { font-size: 13px; }
.lead-detail-notes { font-size: 13px; }
.lead-detail-return .lead-return-badge { font-size: 11px; }
.lead-detail-empty strong { font-size: 13px; }
.lead-detail-empty p { font-size: 11px; }

/* Histórico */
.lead-activity-type { font-size: 9px; }
.lead-activity-top strong { font-size: 13px; }
.lead-activity-top time { font-size: 10px; }
.lead-activity-description { font-size: 12px; }
.lead-activity-meta { font-size: 10px; }

/* Funil / Kanban */
.kanban-column-title { font-size: 13px; }
.kanban-column-count { font-size: 11px; }
.kanban-empty { font-size: 11px; }
.kanban-card-name { font-size: 14px; }
.kanban-card-id { font-size: 9px; }
.kanban-card-interest { font-size: 12px; }
.kanban-card-location { font-size: 11px; }
.kanban-card-value span,
.kanban-card-probability span { font-size: 9px; }
.kanban-card-value strong,
.kanban-card-probability strong { font-size: 12px; }
.kanban-card-return { font-size: 10px; }
.kanban-card-footer span,
.kanban-card-footer a { font-size: 10px; }

/* Atividades */
.activities-panel-header h3 { font-size: 18px; }
.activity-type { font-size: 10px; }
.activity-content > strong { font-size: 14px; }
.activity-content p { font-size: 12px; line-height: 1.65; }
.activity-lead-link { font-size: 11px; }
.activity-status { font-size: 10px; }
.activity-item-meta small { font-size: 10px; }

/* Mobile: não deixar textos ficarem minúsculos */
@media (max-width: 640px) {
    .crm-menu-item { font-size: 14px; }
    .crm-stat-card small { font-size: 11px; }
    .leads-summary-card span { font-size: 10px; }
    .leads-summary-card strong { font-size: 24px; }
    .lead-form-field label { font-size: 12px; }
    .lead-form-field input,
    .lead-form-field select,
    .lead-form-field textarea { font-size: 14px; }
    .kanban-card-name { font-size: 14px; }
    .activity-content > strong { font-size: 13px; }
    .activity-content p { font-size: 12px; }
}

/* =========================================================
   DASHBOARD - ROTINA COMERCIAL / FOLLOW-UP
   ========================================================= */

.dashboard-followup-section {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #ececf0;
    border-radius: 10px;
    background: #ffffff;
}

.dashboard-followup-section + .dashboard-followup-section {
    margin-top: 14px;
}


/* Cabeçalho interno */

.dashboard-followup-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-followup-title > div > span {
    display: block;
    margin-bottom: 4px;

    color: var(--teiner-red);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dashboard-followup-title > div > strong {
    display: block;

    color: #202024;

    font-size: 14px;
    font-weight: 800;
}


/* Prioridade */

.dashboard-followup-section:first-of-type {
    border-color: rgba(227, 6, 19, 0.18);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            rgba(227, 6, 19, 0.025) 100%
        );
}


/* Badge atrasadas */

.dashboard-followup-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    border-radius: 20px;

    background: rgba(227, 6, 19, 0.10);

    color: var(--teiner-red);

    font-size: 10px;
    font-weight: 800;
}


/* Badge hoje */

.dashboard-followup-today {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    border-radius: 20px;

    background: rgba(183, 121, 31, 0.12);

    color: #946414;

    font-size: 10px;
    font-weight: 800;
}


/* Estado vazio */

.dashboard-followup-empty {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 14px;

    border-radius: 8px;

    background: #f8f8f9;
}

.dashboard-followup-empty strong {
    color: #29292d;

    font-size: 12px;
}

.dashboard-followup-empty span {
    color: #898990;

    font-size: 10px;
}


/* Próximos retornos */

.dashboard-followup-next {
    background: #fafafb;
}


/* Lista */

.dashboard-followup-section .dashboard-agenda-list {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


/* Item */

.dashboard-followup-section .dashboard-agenda-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 11px 12px;

    border: 1px solid #ededf0;
    border-radius: 8px;

    background: #ffffff;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.dashboard-followup-section .dashboard-agenda-item:hover {
    transform: translateY(-1px);

    border-color: #d9d9de;

    background: #fafafa;
}


/* Cliente */

.dashboard-followup-section .dashboard-agenda-main {
    min-width: 0;
}

.dashboard-followup-section .dashboard-agenda-main strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #202024;

    font-size: 12px;
    font-weight: 800;
}

.dashboard-followup-section .dashboard-agenda-main span {
    display: block;

    margin-top: 3px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #898990;

    font-size: 10px;
}


/* Data */

.dashboard-followup-section .dashboard-agenda-date {
    flex-shrink: 0;

    text-align: right;
}

.dashboard-followup-section .dashboard-agenda-date strong {
    display: block;

    font-size: 10px;
    font-weight: 800;

    color: #55555c;
}


/* Atrasado */

.dashboard-followup-section .dashboard-agenda-late {
    border-left: 3px solid var(--teiner-red);

    background:
        rgba(227, 6, 19, 0.025);
}

.dashboard-followup-section
.dashboard-agenda-late
.dashboard-agenda-date strong {
    color: var(--teiner-red);
}


/* Hoje */

.dashboard-followup-section .dashboard-agenda-today {
    border-left: 3px solid #b7791f;

    background:
        rgba(183, 121, 31, 0.035);
}

.dashboard-followup-section
.dashboard-agenda-today
.dashboard-agenda-date strong {
    color: #946414;
}


/* Amanhã */

.dashboard-followup-section .dashboard-agenda-tomorrow {
    border-left: 3px solid #777780;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .dashboard-followup-section {
        padding: 13px;
    }

    .dashboard-followup-title {
        align-items: flex-start;
    }

    .dashboard-followup-section .dashboard-agenda-item {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .dashboard-followup-section .dashboard-agenda-date {
        width: 100%;

        text-align: left;
    }

}

/* ==========================================================================
   ATIVIDADES - LAYOUT FINAL
   ========================================================================== */

.activities-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.activities-page-header p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}


/* ==========================================================================
   CARDS DE RESUMO
   ========================================================================== */

.crm-content .leads-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0 0 24px;
}

.crm-content .leads-summary-grid .leads-summary-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    width: auto;
    min-width: 0;
    min-height: 125px;

    padding: 20px 22px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.crm-content .leads-summary-grid .leads-summary-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.crm-content .leads-summary-grid .leads-summary-card.is-active {
    border-color: #ef1b2d;
    box-shadow: 0 0 0 1px rgba(239, 27, 45, .08);
}

.crm-content .leads-summary-grid .leads-summary-card.is-active::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;

    width: 4px;

    background: #ef1b2d;
}

.crm-content .leads-summary-grid .leads-summary-card > span {
    display: block;

    margin-bottom: 8px;

    color: #7b8190;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.crm-content .leads-summary-grid .leads-summary-card > strong {
    display: block;

    margin-bottom: 5px;

    color: #111827;

    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.crm-content .leads-summary-grid .leads-summary-card > small {
    display: block;

    color: #7b8190;

    font-size: 12px;
    line-height: 1.4;
}


/* ==========================================================================
   PAINEL DA AGENDA
   ========================================================================== */

.activities-panel {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e3e6eb;
    border-radius: 16px;

    overflow: hidden;
}

.activities-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px;

    border-bottom: 1px solid #eceef1;
}

.activities-panel-header h3 {
    margin: 4px 0 0;

    color: #111827;

    font-size: 19px;
    line-height: 1.2;
}


/* ==========================================================================
   LISTA DE ATIVIDADES
   ========================================================================== */

.activities-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    gap: 28px;

    padding: 19px 22px;

    border-bottom: 1px solid #eef0f3;

    transition: background .15s ease;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-item:hover {
    background: #fafafa;
}

.activity-item-main {
    display: flex;
    align-items: flex-start;

    min-width: 0;

    gap: 16px;
}

.activity-type {
    flex: 0 0 auto;

    padding: 6px 9px;

    background: #f3f4f6;

    border-radius: 7px;

    color: #4b5563;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .45px;
    text-transform: uppercase;
}

.activity-content {
    min-width: 0;
}

.activity-content > strong {
    display: block;

    margin-bottom: 4px;

    color: #111827;

    font-size: 14px;
    line-height: 1.4;
}

.activity-content p {
    max-width: 700px;

    margin: 7px 0 0;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.5;
}

.activity-lead-link {
    display: inline-block;

    color: #e50920;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.activity-lead-link:hover {
    text-decoration: underline;
}


/* ==========================================================================
   META / STATUS
   ========================================================================== */

.activity-item-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 13px;

    white-space: nowrap;
}

.activity-item-meta small {
    color: #8a909c;

    font-size: 11px;
}

.activity-status {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}

.activity-status-late {
    background: #fff0f1;
    color: #d7192d;
}

.activity-status-today {
    background: #fff7e6;
    color: #9a6700;
}

.activity-status-tomorrow,
.activity-status-future {
    background: #eef5ff;
    color: #315f9f;
}

.activity-status-completed {
    background: #edf8f0;
    color: #247a42;
}

.activity-status-none {
    background: #f3f4f6;
    color: #6b7280;
}


/* ==========================================================================
   BOTÕES
   ========================================================================== */

.activity-complete-form {
    margin: 0;
}

.activity-complete-button {
    min-height: 34px;

    padding: 7px 12px;

    background: #ffffff;

    border: 1px solid #ef1b2d;
    border-radius: 8px;

    color: #df1427;

    cursor: pointer;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;

    transition:
        background .15s ease,
        color .15s ease;
}

.activity-complete-button:hover {
    background: #ef1b2d;
    color: #ffffff;
}

.activity-completed-label {
    color: #2e7d49;

    font-size: 11px;
    font-weight: 800;
}


/* ==========================================================================
   ESTADO VAZIO
   ========================================================================== */

.activities-panel .crm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 230px;

    padding: 45px 24px;

    text-align: center;
}

.activities-panel .crm-empty-state strong {
    margin-bottom: 6px;

    color: #111827;

    font-size: 14px;
}

.activities-panel .crm-empty-state p {
    margin: 0;

    color: #9096a2;

    font-size: 12px;
}


/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1100px) {

    .crm-content .leads-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .activity-item-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


@media (max-width: 650px) {

    .activities-page-header {
        margin-bottom: 18px;
    }

    .crm-content .leads-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .crm-content .leads-summary-grid .leads-summary-card {
        min-height: 105px;

        padding: 15px;
    }

    .crm-content .leads-summary-grid .leads-summary-card > strong {
        font-size: 25px;
    }

    .activities-panel {
        border-radius: 12px;
    }

    .activities-panel-header {
        padding: 17px;
    }

    .activity-item {
        padding: 17px;
    }

    .activity-item-main {
        flex-direction: column;
        gap: 9px;
    }

    .activity-item-meta {
        gap: 8px;
    }
}

/* ==========================================================================
   RELATÓRIOS - CRM TEINER
   ========================================================================== */

.reports-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 12px;
}

.reports-page-header h2 {
    margin: 6px 0 3px;

    color: #111827;

    font-size: 24px;
    line-height: 1.2;
}

.reports-page-header p {
    margin: 0;

    color: #6b7280;

    font-size: 13px;
}


/* PERÍODO */

.reports-period-form {
    display: flex;
    flex-direction: column;

    min-width: 210px;

    gap: 6px;
}

.reports-period-form label {
    color: #6b7280;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .8px;
    text-transform: uppercase;
}

.reports-period-form select {
    width: 100%;
    height: 42px;

    padding: 0 38px 0 13px;

    background: #ffffff;

    border: 1px solid #d9dde4;
    border-radius: 9px;

    color: #111827;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;
    outline: none;
}

.reports-period-form select:focus {
    border-color: #ef1b2d;

    box-shadow:
        0 0 0 3px
        rgba(239, 27, 45, .08);
}

.reports-period-label {
    margin-bottom: 20px;

    color: #8a909c;

    font-size: 11px;
}

.reports-period-label strong {
    color: #4b5563;
}


/* ==========================================================================
   KPIs PRINCIPAIS
   ========================================================================== */

.reports-kpi-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 14px;
}

.reports-kpi-card {
    position: relative;

    min-width: 0;
    min-height: 125px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e3e6eb;
    border-radius: 14px;

    overflow: hidden;
}

.reports-kpi-card:first-child {
    border-left:
        4px solid #ef1b2d;
}

.reports-kpi-card > span,
.reports-small-card > span {
    display: block;

    margin-bottom: 10px;

    color: #7c8390;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}

.reports-kpi-card > strong {
    display: block;

    margin-bottom: 8px;

    color: #111827;

    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.reports-kpi-card > small,
.reports-small-card > small {
    color: #8b919d;

    font-size: 11px;
    line-height: 1.4;
}


/* ==========================================================================
   KPIs SECUNDÁRIOS
   ========================================================================== */

.reports-secondary-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 22px;
}

.reports-small-card {
    min-width: 0;

    padding: 16px 18px;

    background: #ffffff;

    border: 1px solid #e3e6eb;
    border-radius: 12px;
}

.reports-small-card > strong {
    display: block;

    margin-bottom: 5px;

    color: #111827;

    font-size: 21px;
    line-height: 1;
}


/* ==========================================================================
   PAINÉIS
   ========================================================================== */

.reports-two-columns {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, .65fr);

    gap: 16px;

    margin-bottom: 16px;
}

.reports-panel {
    margin-bottom: 16px;

    background: #ffffff;

    border: 1px solid #e3e6eb;
    border-radius: 14px;

    overflow: hidden;
}

.reports-two-columns .reports-panel {
    margin-bottom: 0;
}

.reports-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 76px;

    padding: 17px 20px;

    border-bottom: 1px solid #eceef1;
}

.reports-panel-header h3 {
    margin: 4px 0 0;

    color: #111827;

    font-size: 17px;
    line-height: 1.2;
}

.reports-panel-body {
    padding: 20px;
}


/* ==========================================================================
   ORIGEM DOS LEADS
   ========================================================================== */

.reports-source-list {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.reports-source-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 7px;
}

.reports-source-top strong {
    color: #343944;

    font-size: 12px;
}

.reports-source-top span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 22px;

    padding: 0 7px;

    background: #f3f4f6;

    border-radius: 999px;

    color: #555d69;

    font-size: 10px;
    font-weight: 800;
}

.reports-source-track {
    width: 100%;
    height: 7px;

    background: #f0f1f3;

    border-radius: 999px;

    overflow: hidden;
}

.reports-source-bar {
    min-width: 5px;
    height: 100%;

    background: #ef1b2d;

    border-radius: 999px;
}


/* ==========================================================================
   INSIGHTS
   ========================================================================== */

.reports-insights {
    display: flex;
    flex-direction: column;
}

.reports-insight {
    padding: 15px 0;

    border-bottom: 1px solid #eef0f2;
}

.reports-insight:first-child {
    padding-top: 0;
}

.reports-insight:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.reports-insight > span {
    display: block;

    margin-bottom: 5px;

    color: #858b97;

    font-size: 10px;
    font-weight: 700;
}

.reports-insight > strong {
    display: block;

    margin-bottom: 3px;

    color: #111827;

    font-size: 18px;
}

.reports-insight > small {
    color: #969ca7;

    font-size: 10px;
}


/* ==========================================================================
   TABELA DE DESEMPENHO
   ========================================================================== */

.reports-table-wrap {
    width: 100%;

    overflow-x: auto;
}

.reports-table {
    width: 100%;

    border-collapse: collapse;
}

.reports-table th {
    padding: 12px 18px;

    background: #fafafa;

    border-bottom: 1px solid #e8eaee;

    color: #858b96;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;
    text-align: left;
    text-transform: uppercase;
}

.reports-table td {
    padding: 15px 18px;

    border-bottom: 1px solid #eef0f2;

    color: #555c68;

    font-size: 12px;
}

.reports-table tbody tr:last-child td {
    border-bottom: 0;
}

.reports-table tbody tr:hover {
    background: #fcfcfc;
}

.reports-table td strong {
    color: #111827;
}

.reports-conversion-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    background: #edf8f0;

    border-radius: 999px;

    color: #287946;

    font-size: 10px;
    font-weight: 800;
}


/* ==========================================================================
   VENDAS RECENTES
   ========================================================================== */

.reports-sales-list {
    display: flex;
    flex-direction: column;
}

.reports-sale-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 20px;

    border-bottom: 1px solid #eef0f2;

    color: inherit;

    text-decoration: none;

    transition: background .15s ease;
}

.reports-sale-item:last-child {
    border-bottom: 0;
}

.reports-sale-item:hover {
    background: #fafafa;
}

.reports-sale-main {
    min-width: 0;
}

.reports-sale-main > strong {
    display: block;

    margin-bottom: 4px;

    color: #111827;

    font-size: 13px;
}

.reports-sale-main > span {
    color: #8a909b;

    font-size: 10px;
}

.reports-sale-meta {
    display: flex;
    align-items: center;

    gap: 22px;

    white-space: nowrap;
}

.reports-sale-meta small {
    color: #8a909b;

    font-size: 10px;
}

.reports-sale-meta strong {
    color: #111827;

    font-size: 13px;
}


/* ==========================================================================
   ESTADO VAZIO
   ========================================================================== */

.reports-empty {
    padding: 45px 20px;

    color: #9298a3;

    font-size: 12px;
    text-align: center;
}


/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1150px) {

    .reports-kpi-grid,
    .reports-secondary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .reports-two-columns {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .reports-page-header {
        align-items: stretch;
        flex-direction: column;

        gap: 16px;
    }

    .reports-period-form {
        width: 100%;
        min-width: 0;
    }

    .reports-kpi-grid,
    .reports-secondary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .reports-kpi-card {
        min-height: 110px;

        padding: 15px;
    }

    .reports-kpi-card > strong {
        font-size: 20px;
    }

    .reports-small-card {
        padding: 14px;
    }

    .reports-small-card > strong {
        font-size: 19px;
    }

    .reports-panel-header {
        padding: 15px;
    }

    .reports-panel-body {
        padding: 16px;
    }

    .reports-sale-item {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;

        padding: 15px;
    }

    .reports-sale-meta {
        width: 100%;

        justify-content: space-between;
    }
}


@media (max-width: 430px) {

    .reports-kpi-grid,
    .reports-secondary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PORTAL DO CLIENTE - ADMIN
   ========================================================================== */

.portal-admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.portal-admin-header h2 {
    margin: 5px 0 6px;
    font-size: 28px;
    line-height: 1.15;
    color: #171717;
}

.portal-admin-header p {
    margin: 0;
    color: #737373;
    font-size: 14px;
    line-height: 1.6;
}


/* BUSCA
   ========================================================================== */

.portal-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 380px;
}

.portal-search-form input {
    width: 100%;
    height: 42px;
    padding: 0 14px;

    border: 1px solid #e2e2e2;
    border-radius: 10px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 14px;

    outline: none;
    transition: 0.2s ease;
}

.portal-search-form input:focus {
    border-color: #c91f2c;
    box-shadow: 0 0 0 3px rgba(201, 31, 44, 0.08);
}


/* PAINEL
   ========================================================================== */

.portal-admin-panel {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 8px 24px rgba(0, 0, 0, 0.035);
}

.portal-admin-panel-header {
    min-height: 88px;
    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid #eeeeee;
}

.portal-admin-panel-header h3 {
    margin: 4px 0 0;
    font-size: 18px;
    color: #1d1d1d;
}

.portal-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 0 12px;

    border-radius: 20px;

    background: #f5f5f5;
    color: #555;

    font-size: 12px;
    font-weight: 700;
}


/* LISTA
   ========================================================================== */

.portal-client-list {
    width: 100%;
}

.portal-client-item {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.5fr)
        minmax(360px, 1fr)
        auto;

    align-items: center;
    gap: 24px;

    min-height: 105px;
    padding: 20px 24px;

    border-bottom: 1px solid #f0f0f0;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.portal-client-item:last-child {
    border-bottom: 0;
}

.portal-client-item:hover {
    background: #fcfcfc;
}


/* DADOS DO CLIENTE
   ========================================================================== */

.portal-client-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.portal-client-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #171717;
    color: #fff;

    font-size: 17px;
    font-weight: 800;
}

.portal-client-info {
    min-width: 0;
}

.portal-client-info > strong {
    display: block;

    margin-bottom: 6px;

    color: #202020;
    font-size: 15px;
    font-weight: 750;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-client-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 14px;

    color: #777;
    font-size: 12px;
}

.portal-client-meta span {
    position: relative;
}

.portal-client-meta span:not(:last-child)::after {
    content: "";
    position: absolute;

    width: 3px;
    height: 3px;

    right: -9px;
    top: 50%;

    border-radius: 50%;
    background: #c9c9c9;

    transform: translateY(-50%);
}


/* ESTATÍSTICAS
   ========================================================================== */

.portal-client-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    align-items: center;
    gap: 12px;
}

.portal-client-stats > div {
    min-width: 0;
}

.portal-client-stats small {
    display: block;

    margin-bottom: 7px;

    color: #999;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.portal-client-stats strong {
    color: #252525;
    font-size: 15px;
}


/* STATUS
   ========================================================================== */

.portal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 27px;
    padding: 0 9px;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 750;

    white-space: nowrap;
}

.portal-status-ok {
    background: #edf8f0;
    color: #27753c;
}

.portal-status-neutral {
    background: #f3f3f3;
    color: #747474;
}

.portal-status-off {
    background: #fff0f0;
    color: #b4232c;
}


/* AÇÕES
   ========================================================================== */

.portal-client-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.portal-client-actions .btn {
    white-space: nowrap;
}


/* EMPTY STATE
   ========================================================================== */

.portal-admin-panel .crm-empty-state {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    text-align: center;
}

.portal-admin-panel .crm-empty-state strong {
    margin-bottom: 6px;
    color: #333;
    font-size: 15px;
}

.portal-admin-panel .crm-empty-state p {
    margin: 0;
    color: #888;
    font-size: 13px;
}


/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1200px) {

    .portal-client-item {
        grid-template-columns:
            minmax(240px, 1fr)
            minmax(300px, 1fr);
    }

    .portal-client-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;

        padding-top: 14px;
        border-top: 1px solid #f1f1f1;
    }
}


@media (max-width: 850px) {

    .portal-admin-header {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-search-form {
        width: 100%;
        min-width: 0;
    }

    .portal-client-item {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portal-client-stats {
        padding: 15px;

        border: 1px solid #eeeeee;
        border-radius: 12px;

        background: #fafafa;
    }

    .portal-client-actions {
        grid-column: auto;
        padding-top: 0;
        border-top: 0;
    }

    .portal-client-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 600px) {

    .portal-admin-header h2 {
        font-size: 24px;
    }

    .portal-search-form {
        flex-direction: column;
    }

    .portal-search-form .btn {
        width: 100%;
    }

    .portal-admin-panel {
        border-radius: 12px;
    }

    .portal-admin-panel-header {
        padding: 18px;
    }

    .portal-client-item {
        padding: 18px;
    }

    .portal-client-stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .portal-client-stats > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .portal-client-stats small {
        margin: 0;
    }

    .portal-client-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .portal-client-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .portal-client-meta span::after {
        display: none !important;
    }
}

/* ==========================================================================
   GERENCIAR PORTAL DO CLIENTE
   ========================================================================== */

.portal-manage-header {
    margin-bottom: 24px;
}

.portal-manage-header h2 {
    margin: 6px 0;
    font-size: 28px;
    line-height: 1.2;
    color: #171717;
}

.portal-manage-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.portal-back-link {
    display: block;
    width: fit-content;
    margin-bottom: 18px;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.portal-back-link:hover {
    color: #c91f2c;
}


/* GRID PRINCIPAL */

.portal-manage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}


/* CARDS */

.portal-manage-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 8px 24px rgba(0, 0, 0, 0.035);
}

.portal-manage-card-header {
    min-height: 78px;
    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid #eeeeee;
}

.portal-manage-card-header h3 {
    margin: 4px 0 0;
    color: #202020;
    font-size: 17px;
}

.portal-manage-card-body {
    padding: 22px;
}


/* DADOS */

.portal-detail-row {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid #f1f1f1;
}

.portal-detail-row:first-child {
    padding-top: 0;
}

.portal-detail-row:last-child {
    border-bottom: 0;
}

.portal-detail-row span {
    color: #888;
    font-size: 12px;
}

.portal-detail-row strong {
    max-width: 65%;
    color: #292929;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}


/* ACESSO AINDA NÃO CRIADO */

.portal-access-empty {
    min-height: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px;

    text-align: center;
}

.portal-access-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 14px;

    background: rgba(201, 31, 44, 0.08);
    color: #c91f2c;

    font-size: 23px;
    font-weight: 800;
}

.portal-access-empty > strong {
    margin-bottom: 7px;
    color: #242424;
    font-size: 15px;
}

.portal-access-empty > p {
    max-width: 360px;
    margin: 0 0 20px;

    color: #888;
    font-size: 13px;
    line-height: 1.6;
}


/* ACESSO EXISTENTE */

.portal-access-info {
    width: 100%;
}

.portal-access-warning {
    margin: 18px 0;
    padding: 13px 15px;

    border: 1px solid #eee1c5;
    border-radius: 10px;

    background: #fffaf0;
    color: #856a32;

    font-size: 12px;
    line-height: 1.55;
}


/* CONTRATOS */

.portal-contracts-card {
    width: 100%;
}

.portal-contract-list {
    width: 100%;
}

.portal-contract-item {
    display: grid;
    grid-template-columns:
        minmax(170px, 1.3fr)
        minmax(130px, 1fr)
        minmax(170px, 1fr)
        auto;

    align-items: center;
    gap: 20px;

    min-height: 82px;
    padding: 16px 22px;

    border-bottom: 1px solid #f0f0f0;
}

.portal-contract-item:last-child {
    border-bottom: 0;
}

.portal-contract-item:hover {
    background: #fcfcfc;
}

.portal-contract-item > div {
    min-width: 0;
}

.portal-contract-item small {
    display: block;
    margin-bottom: 6px;

    color: #999;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.055em;
}

.portal-contract-item strong {
    display: block;

    color: #292929;
    font-size: 13px;
    font-weight: 700;
}

.portal-contract-action {
    display: flex;
    justify-content: flex-end;
}


/* STATUS - GARANTIA */

.portal-manage-card .portal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 27px;
    padding: 0 9px;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.portal-manage-card .portal-status-ok {
    background: #edf8f0;
    color: #27753c;
}

.portal-manage-card .portal-status-neutral {
    background: #f3f3f3;
    color: #747474;
}

.portal-manage-card .portal-status-off {
    background: #fff0f0;
    color: #b4232c;
}


/* RESPONSIVO */

@media (max-width: 1000px) {

    .portal-manage-grid {
        grid-template-columns: 1fr;
    }

    .portal-contract-item {
        grid-template-columns: repeat(3, 1fr);
    }

    .portal-contract-action {
        grid-column: 1 / -1;

        padding-top: 12px;

        border-top: 1px solid #f0f0f0;
    }
}

@media (max-width: 650px) {

    .portal-manage-header h2 {
        font-size: 24px;
    }

    .portal-manage-card {
        border-radius: 12px;
    }

    .portal-manage-card-header,
    .portal-manage-card-body {
        padding-left: 17px;
        padding-right: 17px;
    }

    .portal-detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;

        padding: 12px 0;
    }

    .portal-detail-row strong {
        max-width: 100%;
        text-align: left;
    }

    .portal-contract-item {
        grid-template-columns: 1fr;
        gap: 15px;

        padding: 18px;
    }

    .portal-contract-action {
        grid-column: auto;
        padding-top: 12px;
    }

    .portal-contract-action .btn {
        width: 100%;
        justify-content: center;
    }

    .portal-access-empty {
        min-height: 220px;
        padding: 10px 0;
    }
}

/* ==========================================================================
   PORTAL DO CLIENTE - LINK DE ACESSO GERADO
   ========================================================================== */

.portal-generated-access {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-bottom: 22px;
    padding: 22px;

    background: #fff;
    border: 1px solid #dcecdf;
    border-radius: 16px;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 8px 24px rgba(0, 0, 0, 0.035);
}


/* ÍCONE */

.portal-generated-access-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #edf8f0;
    color: #27753c;

    font-size: 20px;
    font-weight: 900;
}


/* CONTEÚDO */

.portal-generated-access-content {
    flex: 1;
    min-width: 0;
}

.portal-generated-access-content h3 {
    margin: 4px 0 6px;

    color: #202020;
    font-size: 17px;
    font-weight: 750;
}

.portal-generated-access-content > p {
    margin: 0 0 17px;

    color: #777;
    font-size: 13px;
    line-height: 1.55;
}


/* CAMPO COM LINK */

.portal-generated-link {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    margin-bottom: 14px;
}

.portal-generated-link input {
    flex: 1;
    min-width: 0;
    height: 43px;

    padding: 0 14px;

    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 9px;

    color: #555;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 12px;

    outline: none;
}

.portal-generated-link input:focus {
    border-color: #c91f2c;

    box-shadow:
        0 0 0 3px rgba(201, 31, 44, 0.07);
}

.portal-generated-link .btn {
    flex: 0 0 auto;
    min-height: 43px;
}


/* WHATSAPP */

.portal-generated-access-content > .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 41px;
}


/* DETALHE VERDE NA LATERAL */

.portal-generated-access {
    position: relative;
    overflow: hidden;
}

.portal-generated-access::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background: #3d9b59;
}


/* RESPONSIVO */

@media (max-width: 700px) {

    .portal-generated-access {
        gap: 13px;
        padding: 18px;
    }

    .portal-generated-access-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;

        border-radius: 11px;

        font-size: 18px;
    }

    .portal-generated-link {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-generated-link .btn {
        width: 100%;
        justify-content: center;
    }

    .portal-generated-access-content > .btn-primary {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .portal-generated-access {
        flex-direction: column;
    }

    .portal-generated-access-icon {
        margin-bottom: 2px;
    }
}

/* ==========================================================================
   PORTAL EXTERNO DO CLIENTE
   ========================================================================== */

.client-portal-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f5f7;
    color: #202020;
    font-family: Arial, Helvetica, sans-serif;
}

.client-portal-layout {
    min-height: 100vh;
}


/* HEADER
   ========================================================================== */

.client-portal-header {
    background: #111;
    border-bottom: 3px solid #c91f2c;
}

.client-portal-header-inner {
    max-width: 1180px;
    min-height: 76px;

    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.client-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-brand-mark {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #c91f2c;
    color: #fff;

    font-size: 22px;
    font-weight: 900;
}

.client-brand-text {
    display: flex;
    flex-direction: column;
}

.client-brand-text strong {
    color: #fff;
    font-size: 17px;
    letter-spacing: 0.06em;
}

.client-brand-text span {
    margin-top: 2px;
    color: #999;
    font-size: 11px;
}

.client-header-account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-header-account-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.client-header-account-text small {
    margin-bottom: 3px;
    color: #777;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.client-header-account-text strong {
    max-width: 250px;

    color: #fff;
    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-header-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #333;
    border-radius: 50%;

    background: #222;
    color: #fff;

    font-size: 14px;
    font-weight: 800;
}


/* CONTEÚDO
   ========================================================================== */

.client-portal-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 24px 50px;
}


/* BOAS-VINDAS */

.client-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.client-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #c91f2c;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.client-welcome h1 {
    margin: 0 0 7px;

    color: #171717;

    font-size: 32px;
    line-height: 1.15;
}

.client-welcome p {
    max-width: 640px;
    margin: 0;

    color: #727272;
    font-size: 14px;
    line-height: 1.6;
}

.client-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 34px;
    padding: 0 12px;

    border: 1px solid #dcebdd;
    border-radius: 20px;

    background: #edf8f0;
    color: #347646;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.client-secure-badge span {
    font-size: 13px;
}


/* RESUMO
   ========================================================================== */

.client-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    margin-bottom: 22px;
}

.client-summary-card {
    padding: 21px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 14px;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 5px 18px rgba(0, 0, 0, 0.025);
}

.client-summary-label {
    display: block;

    margin-bottom: 11px;

    color: #999;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.client-summary-value {
    display: block;

    margin-bottom: 5px;

    color: #202020;

    font-size: 24px;
    font-weight: 800;
}

.client-summary-text {
    font-size: 20px;
}

.client-summary-card small {
    color: #8c8c8c;
    font-size: 11px;
}


/* CARDS PRINCIPAIS
   ========================================================================== */

.client-section-card {
    margin-bottom: 22px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 8px 24px rgba(0, 0, 0, 0.025);
}

.client-section-header {
    min-height: 95px;
    padding: 21px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid #ececec;
}

.client-section-header h2 {
    margin: 3px 0 5px;

    color: #202020;

    font-size: 18px;
}

.client-section-header p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.5;
}

.client-section-count {
    min-height: 30px;
    padding: 0 11px;

    display: inline-flex;
    align-items: center;

    border-radius: 20px;

    background: #f3f3f3;
    color: #666;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* PEDIDOS
   ========================================================================== */

.client-orders-list {
    padding: 0 24px;
}

.client-order-card {
    padding: 23px 0;

    border-bottom: 1px solid #ededed;
}

.client-order-card:last-child {
    border-bottom: 0;
}

.client-order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.client-order-number small {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.client-order-number strong {
    color: #222;
    font-size: 16px;
}

.client-contract-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 0 10px;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

.client-status-success {
    background: #edf8f0;
    color: #347746;
}

.client-status-warning {
    background: #fff7e8;
    color: #936b20;
}

.client-status-neutral {
    background: #f2f2f2;
    color: #737373;
}

.client-order-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;

    padding: 17px;

    border: 1px solid #ededed;
    border-radius: 11px;

    background: #fafafa;
}

.client-order-details span {
    display: block;

    margin-bottom: 6px;

    color: #999;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.client-order-details strong {
    color: #292929;
    font-size: 12px;
}

.client-order-footer {
    margin-top: 15px;
}

.client-order-message {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #777;
}

.client-order-message > span {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0f0f0;

    font-size: 11px;
    font-weight: 900;
}

.client-order-message div {
    display: flex;
    flex-direction: column;
}

.client-order-message strong {
    margin-bottom: 2px;

    color: #444;
    font-size: 11px;
}

.client-order-message small {
    color: #999;
    font-size: 10px;
}

.client-order-message-success > span {
    background: #edf8f0;
    color: #347746;
}

.client-order-message-warning > span {
    background: #fff6e5;
    color: #936b20;
}


/* PRODUÇÃO FUTURA
   ========================================================================== */

.client-progress-placeholder {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 22px;
    padding: 19px;

    border: 1px dashed #dcdcdc;
    border-radius: 12px;

    background: #fafafa;
}

.client-progress-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #1d1d1d;
    color: #fff;

    font-weight: 900;
}

.client-progress-placeholder > div:nth-child(2) {
    flex: 1;
}

.client-progress-placeholder strong {
    display: block;

    margin-bottom: 4px;

    color: #333;
    font-size: 12px;
}

.client-progress-placeholder p {
    margin: 0;

    color: #888;
    font-size: 11px;
    line-height: 1.5;
}

.client-coming-soon {
    min-height: 28px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;

    border-radius: 20px;

    background: #eeeeee;
    color: #777;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}


/* SUPORTE
   ========================================================================== */

.client-support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 28px;

    border-radius: 16px;

    background: #191919;
    color: #fff;
}

.client-eyebrow-light {
    color: #e55a64;
}

.client-support-card h2 {
    margin: 4px 0 7px;

    color: #fff;
    font-size: 19px;
}

.client-support-card p {
    max-width: 620px;
    margin: 0;

    color: #aaa;

    font-size: 12px;
    line-height: 1.55;
}

.client-support-button,
.client-primary-button {
    min-height: 42px;
    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #c91f2c;
    color: #fff;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    transition: 0.2s ease;
}

.client-support-button:hover,
.client-primary-button:hover {
    background: #b41925;
}


/* RODAPÉ
   ========================================================================== */

.client-portal-footer {
    max-width: 1180px;

    margin: 0 auto;
    padding: 0 24px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: #999;
}

.client-portal-footer > div {
    display: flex;
    flex-direction: column;
}

.client-portal-footer strong {
    color: #555;

    font-size: 10px;
    letter-spacing: 0.08em;
}

.client-portal-footer span,
.client-portal-footer p {
    margin: 3px 0 0;
    font-size: 9px;
}


/* ACESSO INVÁLIDO
   ========================================================================== */

.client-invalid-page {
    min-height: 100vh;

    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #111 0%,
            #202020 100%
        );
}

.client-invalid-card {
    width: 100%;
    max-width: 440px;

    padding: 38px;

    background: #fff;

    border-radius: 17px;

    text-align: center;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25);
}

.client-invalid-logo {
    margin-bottom: 27px;

    color: #c91f2c;

    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.client-invalid-icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0f0;
    color: #c91f2c;

    font-size: 23px;
    font-weight: 900;
}

.client-invalid-card h1 {
    margin: 0 0 9px;

    color: #222;
    font-size: 23px;
}

.client-invalid-card > p {
    margin: 0 0 19px;

    color: #777;

    font-size: 13px;
    line-height: 1.6;
}

.client-invalid-help {
    margin-bottom: 20px;
    padding: 14px;

    border-radius: 9px;

    background: #f6f6f6;

    color: #777;

    font-size: 11px;
    line-height: 1.55;
}


/* EMPTY
   ========================================================================== */

.client-empty-state {
    min-height: 230px;

    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.client-empty-icon {
    width: 46px;
    height: 46px;

    margin-bottom: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f2f2f2;
    color: #777;
}

.client-empty-state strong {
    margin-bottom: 5px;

    color: #444;
    font-size: 13px;
}

.client-empty-state p {
    margin: 0;

    color: #999;
    font-size: 11px;
}


/* RESPONSIVO
   ========================================================================== */

@media (max-width: 800px) {

    .client-summary-grid {
        grid-template-columns: 1fr;
    }

    .client-order-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-support-card {
        align-items: stretch;
        flex-direction: column;
    }

    .client-support-button {
        width: 100%;
    }
}


@media (max-width: 600px) {

    .client-portal-header-inner {
        min-height: 68px;
        padding: 0 16px;
    }

    .client-brand-text span,
    .client-header-account-text {
        display: none;
    }

    .client-brand-mark {
        width: 38px;
        height: 38px;
    }

    .client-portal-main {
        padding:
            27px
            15px
            38px;
    }

    .client-welcome h1 {
        font-size: 26px;
    }

    .client-section-card {
        border-radius: 12px;
    }

    .client-section-header {
        align-items: flex-start;
        flex-direction: column;

        padding: 18px;
    }

    .client-orders-list {
        padding: 0 18px;
    }

    .client-order-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .client-order-details {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .client-progress-placeholder {
        align-items: flex-start;
        flex-wrap: wrap;

        margin: 18px;
    }

    .client-coming-soon {
        margin-left: 59px;
    }

    .client-support-card {
        padding: 22px;
    }

    .client-portal-footer {
        align-items: flex-start;
        flex-direction: column;

        padding:
            0
            15px
            25px;
    }

    .client-invalid-page {
        padding: 16px;
    }

    .client-invalid-card {
        padding: 27px 20px;
    }
}

/* ==========================================================================
   LOGIN DO PORTAL DO CLIENTE
   ========================================================================== */

.client-login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px 16px;

    background:
        linear-gradient(
            135deg,
            #111 0%,
            #1d1d1d 100%
        );
}

.client-login-card {
    width: 100%;
    max-width: 450px;

    padding: 34px;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.28);
}

.client-login-brand {
    margin-bottom: 26px;

    color: #c91f2c;

    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.client-login-card h1 {
    margin: 4px 0 8px;

    color: #202020;

    font-size: 26px;
}

.client-login-intro {
    margin: 0 0 20px;

    color: #777;

    font-size: 13px;
    line-height: 1.6;
}

.client-login-help {
    margin-bottom: 20px;
    padding: 14px 15px;

    background: #f7f7f7;

    border: 1px solid #ececec;
    border-radius: 11px;
}

.client-login-help strong {
    display: block;

    margin-bottom: 5px;

    color: #333;

    font-size: 12px;
}

.client-login-help p {
    margin: 0;

    color: #777;

    font-size: 11px;
    line-height: 1.55;
}

.client-login-error {
    margin-bottom: 18px;
    padding: 12px 14px;

    background: #fff0f0;

    border: 1px solid #f0cccc;
    border-radius: 10px;

    color: #b4232c;

    font-size: 12px;
    font-weight: 700;
}

.client-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.client-login-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.client-login-form label > span {
    color: #555;

    font-size: 11px;
    font-weight: 800;
}

.client-login-form input {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid #dedede;
    border-radius: 9px;

    background: #fff;
    color: #222;

    font-size: 13px;

    outline: none;
}

.client-login-form input:focus {
    border-color: #c91f2c;

    box-shadow:
        0 0 0 3px rgba(201, 31, 44, 0.08);
}

.client-login-button {
    width: 100%;

    margin-top: 5px;

    border: 0;
    cursor: pointer;
}

.client-login-footer {
    margin-top: 20px;

    padding-top: 17px;

    border-top: 1px solid #eeeeee;

    color: #999;

    font-size: 10px;
    text-align: center;
}

@media (max-width: 500px) {

    .client-login-card {
        padding: 25px 19px;
    }

    .client-login-card h1 {
        font-size: 23px;
    }
}
