:root {
    --af-primary: #400de2;
    --af-primary-dark: #2b0ab7;
    --af-blue: #0e36d0;
    --af-cyan: #00b5fb;
    --af-orange: #f7a64f;
    --af-red: #ef5665;
    --af-ink: #001223;
    --af-muted: #8b949d;
    --af-line: #e7ebef;
    --af-bg: #f3f5f7;
    --af-shadow: 0 5px 16px rgba(42, 56, 70, .09);
}

/*
 * IMPORTANTE
 * Este arquivo complementa o Inspinia. Ele não redefine .btn, .nav, .ibox,
 * .table, .form-control, .label ou outros componentes globais do template.
 * As regras do sistema ficam restritas às classes .af-* e às três páginas
 * personalizadas, evitando conflito com as demais telas.
 */

/* Identidade no menu lateral, sem alterar o comportamento do MetisMenu. */
body.agencydesk-system .af-nav-header {
    padding: 18px 18px 16px;
    background: #001223;
}

body.agencydesk-system .af-sidebar-brand {
    margin-bottom: 14px;
}

body.agencydesk-system .af-sidebar-brand a,
body.agencydesk-system .af-sidebar-brand img {
    display: block;
}

body.agencydesk-system .af-sidebar-brand img {
    width: 170px;
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}

body.agencydesk-system .af-sidebar-company strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.agencydesk-system .af-sidebar-company span {
    display: block;
    margin-top: 3px;
    color: #a7b1c2;
    font-size: 10px;
}

body.agencydesk-system .logo-element img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

body.agencydesk-system.mini-navbar .af-sidebar-brand,
body.agencydesk-system.mini-navbar .af-sidebar-company {
    display: none;
}

/* Topo: mantém a estrutura padrão do Inspinia e posiciona o botão junto ao menu. */
body.agencydesk-system .af-topbar-row {
    background: #fff;
}

body.agencydesk-system .af-system-topbar {
    min-height: 60px;
    background: #fff;
}

body.agencydesk-system .af-system-topbar .af-topbar-left {
    display: flex;
    align-items: center;
    min-height: 60px;
}

body.agencydesk-system .af-system-topbar .navbar-minimalize {
    margin: 14px 8px 14px 20px;
}

body.agencydesk-system .af-topbar-title {
    padding-left: 4px;
    line-height: 1.25;
}

body.agencydesk-system .af-topbar-title strong {
    display: block;
    color: var(--af-ink);
    font-size: 13px;
    font-weight: 600;
}

body.agencydesk-system .af-topbar-title span {
    display: block;
    margin-top: 2px;
    color: #a0a7ad;
    font-size: 10px;
}

body.agencydesk-system .af-topbar-right {
    display: flex;
    align-items: center;
    min-height: 60px;
    margin-right: 18px;
}

body.agencydesk-system .af-topbar-right > li {
    float: none;
}

body.agencydesk-system .af-topbar-date {
    margin-right: 18px;
}

body.agencydesk-system .af-topbar-date > span {
    display: block;
    min-width: 128px;
    padding: 9px 13px;
    color: #6f777d;
    background: #fafbfc;
    border: 1px solid #e4e8eb;
    border-radius: 4px;
    font-size: 11px;
    text-align: center;
}

body.agencydesk-system .af-user-summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 5px;
}

body.agencydesk-system .af-user-avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    color: #fff;
    background: var(--af-primary);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

body.agencydesk-system .af-user-text strong {
    display: block;
    max-width: 165px;
    overflow: hidden;
    color: #435264;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.agencydesk-system .af-user-text span {
    display: block;
    margin-top: 1px;
    color: #a0a6ac;
    font-size: 9px;
}

body.agencydesk-system .af-topbar-logout {
    padding: 20px 10px;
    color: #8c969e;
}

body.agencydesk-system .af-topbar-logout:hover,
body.agencydesk-system .af-topbar-logout:focus {
    color: var(--af-red);
    background: transparent;
}

/* Cabeçalho próprio das três telas redesenhadas. */
body.agencydesk-system .af-page-head {
    min-height: 76px;
    padding: 19px 24px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

body.agencydesk-system .af-page-head h1 {
    margin: 0;
    color: var(--af-ink);
    font-size: 25px;
    font-weight: 400;
    line-height: 1.15;
}

body.agencydesk-system .af-page-head p {
    margin: 3px 0 0;
    color: #9aa2a9;
    font-size: 11px;
}

body.agencydesk-system .af-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.agencydesk-system .agencydesk-dashboard,
body.agencydesk-system .agencydesk-orcamentos,
body.agencydesk-system .agencydesk-fechamentos {
    padding: 8px 24px 30px;
}

/* Cards exclusivos das telas personalizadas. */
body.agencydesk-system .af-stat-card {
    position: relative;
    min-height: 104px;
    margin-bottom: 18px;
    padding: 18px 18px 16px;
    overflow: hidden;
    color: #fff;
    border-radius: 5px;
    box-shadow: var(--af-shadow);
}

body.agencydesk-system .af-stat-card small {
    display: block;
    color: rgba(255, 255, 255, .95);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: uppercase;
}

body.agencydesk-system .af-stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
}

body.agencydesk-system .af-stat-card i {
    position: absolute;
    right: 18px;
    bottom: 31px;
    color: rgba(255, 255, 255, .95);
    font-size: 23px;
}

body.agencydesk-system .af-stat-primary { background: #400de2; }
body.agencydesk-system .af-stat-warning { background: #f7a64f; }
body.agencydesk-system .af-stat-blue { background: #0e36d0; }
body.agencydesk-system .af-stat-cyan { background: #00b5fb; }
body.agencydesk-system .af-stat-red { background: #ef5665; }

body.agencydesk-system .af-mini-card {
    min-height: 94px;
    margin-bottom: 18px;
    padding: 16px 17px;
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--af-shadow);
}

body.agencydesk-system .af-mini-card small {
    display: block;
    color: #8f969c;
    font-size: 11px;
}

body.agencydesk-system .af-mini-card strong {
    display: block;
    margin-top: 8px;
    color: var(--af-ink);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

body.agencydesk-system .af-progress {
    height: 6px;
    margin-top: 12px;
    overflow: hidden;
    background: #e7ebef;
    border-radius: 999px;
}

body.agencydesk-system .af-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--af-primary);
}

/* Ibox e tabelas somente dentro das três páginas, nunca no sistema todo. */
body.agencydesk-system .agencydesk-dashboard .ibox,
body.agencydesk-system .agencydesk-orcamentos .ibox,
body.agencydesk-system .agencydesk-fechamentos .ibox {
    margin-bottom: 18px;
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--af-shadow);
}

body.agencydesk-system .agencydesk-dashboard .ibox-title,
body.agencydesk-system .agencydesk-orcamentos .ibox-title,
body.agencydesk-system .agencydesk-fechamentos .ibox-title {
    min-height: 49px;
    padding: 16px 19px 12px;
    background: #fff;
    border-bottom: 1px solid var(--af-line);
    border-radius: 4px 4px 0 0;
}

body.agencydesk-system .agencydesk-dashboard .ibox-title h5,
body.agencydesk-system .agencydesk-orcamentos .ibox-title h5,
body.agencydesk-system .agencydesk-fechamentos .ibox-title h5 {
    color: var(--af-ink);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}

body.agencydesk-system .agencydesk-dashboard .ibox-content,
body.agencydesk-system .agencydesk-orcamentos .ibox-content,
body.agencydesk-system .agencydesk-fechamentos .ibox-content {
    padding: 18px;
    background: #fff;
    border: 0;
    border-radius: 0 0 4px 4px;
}

body.agencydesk-system .agencydesk-dashboard .table-responsive,
body.agencydesk-system .agencydesk-orcamentos .table-responsive,
body.agencydesk-system .agencydesk-fechamentos .table-responsive {
    border: 0;
}

body.agencydesk-system .agencydesk-dashboard .table,
body.agencydesk-system .agencydesk-orcamentos .table,
body.agencydesk-system .agencydesk-fechamentos .table {
    margin-bottom: 0;
}

body.agencydesk-system .agencydesk-dashboard .table > thead > tr > th,
body.agencydesk-system .agencydesk-orcamentos .table > thead > tr > th,
body.agencydesk-system .agencydesk-fechamentos .table > thead > tr > th {
    padding: 12px 10px;
    color: #656d74;
    background: #f7f8fa;
    border-bottom: 1px solid #dfe4e8;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    vertical-align: middle;
}

body.agencydesk-system .agencydesk-dashboard .table > tbody > tr > td,
body.agencydesk-system .agencydesk-orcamentos .table > tbody > tr > td,
body.agencydesk-system .agencydesk-fechamentos .table > tbody > tr > td {
    padding: 13px 10px;
    color: #656d74;
    border-top: 1px solid #edf0f2;
    font-size: 11px;
    vertical-align: middle;
}

body.agencydesk-system .agencydesk-dashboard .table-bordered,
body.agencydesk-system .agencydesk-orcamentos .table-bordered,
body.agencydesk-system .agencydesk-fechamentos .table-bordered,
body.agencydesk-system .agencydesk-dashboard .table-bordered > thead > tr > th,
body.agencydesk-system .agencydesk-orcamentos .table-bordered > thead > tr > th,
body.agencydesk-system .agencydesk-fechamentos .table-bordered > thead > tr > th,
body.agencydesk-system .agencydesk-dashboard .table-bordered > tbody > tr > td,
body.agencydesk-system .agencydesk-orcamentos .table-bordered > tbody > tr > td,
body.agencydesk-system .agencydesk-fechamentos .table-bordered > tbody > tr > td {
    border-left: 0;
    border-right: 0;
}

body.agencydesk-system .agencydesk-dashboard .label,
body.agencydesk-system .agencydesk-orcamentos .label,
body.agencydesk-system .agencydesk-fechamentos .label {
    display: inline-block;
    padding: 7px 9px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
}

/* Formulários apenas em Orçamentos e Fechamentos. */
body.agencydesk-system .agencydesk-orcamentos .form-control,
body.agencydesk-system .agencydesk-fechamentos .form-control,
body.agencydesk-system .agencydesk-orcamentos .chosen-container-single .chosen-single,
body.agencydesk-system .agencydesk-fechamentos .chosen-container-single .chosen-single,
body.agencydesk-system .agencydesk-orcamentos .chosen-container-multi .chosen-choices,
body.agencydesk-system .agencydesk-fechamentos .chosen-container-multi .chosen-choices {
    color: #5b646c;
    background: #fff;
    border-color: #dfe4e8;
    box-shadow: none;
    font-size: 11px;
}

body.agencydesk-system .agencydesk-orcamentos .form-control:focus,
body.agencydesk-system .agencydesk-fechamentos .form-control:focus,
body.agencydesk-system .agencydesk-orcamentos .chosen-container-active .chosen-single,
body.agencydesk-system .agencydesk-fechamentos .chosen-container-active .chosen-single,
body.agencydesk-system .agencydesk-orcamentos .chosen-container-active .chosen-choices,
body.agencydesk-system .agencydesk-fechamentos .chosen-container-active .chosen-choices {
    border-color: var(--af-primary);
    box-shadow: 0 0 0 2px rgba(64, 13, 226, .08);
}

body.agencydesk-system .agencydesk-orcamentos .form-horizontal p.font-bold,
body.agencydesk-system .agencydesk-fechamentos .form-horizontal p.font-bold {
    margin-bottom: 6px;
    color: #56616b;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

body.agencydesk-system .af-filter-card .ibox-content {
    padding: 14px 10px 8px;
}

body.agencydesk-system .af-filter-card .row > [class*="col-"] {
    margin-bottom: 6px;
}

body.agencydesk-system .af-section-label {
    margin: 3px 0 14px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--af-ink);
    background: #f6f8f9;
    border: 1px solid #e6eaed;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Dashboard */
body.agencydesk-system .af-financial-total {
    margin-bottom: 8px;
    color: var(--af-ink);
    font-size: 28px;
    font-weight: 300;
}

body.agencydesk-system .af-financial-caption {
    color: #979fa6;
    font-size: 10px;
}

body.agencydesk-system .af-bar-chart {
    height: 116px;
    margin-top: 2px;
    padding: 0 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 11px;
    border-bottom: 1px solid #e7ebee;
    background: repeating-linear-gradient(to top, transparent 0, transparent 27px, #edf0f2 28px);
}

body.agencydesk-system .af-bar-item {
    height: 100%;
    display: flex;
    align-items: flex-end;
    flex: 1;
}

body.agencydesk-system .af-bar-item span {
    width: 100%;
    min-height: 5px;
    display: block;
    background: var(--af-primary);
    border-radius: 4px 4px 0 0;
}

body.agencydesk-system .af-timeline {
    position: relative;
    margin: 4px 0 0;
    padding: 4px 0 2px 30px;
    list-style: none;
}

body.agencydesk-system .af-timeline:before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 8px;
    left: 13px;
    width: 1px;
    background: #dce2e6;
}

body.agencydesk-system .af-timeline li {
    position: relative;
    min-height: 46px;
    padding-bottom: 8px;
}

body.agencydesk-system .af-timeline li:before {
    content: "";
    position: absolute;
    top: 4px;
    left: -21px;
    width: 10px;
    height: 10px;
    background: var(--af-primary);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--af-primary);
}

body.agencydesk-system .af-timeline strong {
    display: block;
    color: var(--af-ink);
    font-size: 11px;
}

body.agencydesk-system .af-timeline small {
    display: block;
    margin-top: 3px;
    color: #9aa2a9;
    font-size: 9px;
}

body.agencydesk-system .af-empty {
    padding: 30px 12px;
    color: #9aa2a9;
    text-align: center;
    font-size: 11px;
}

/* Orçamentos */
body.agencydesk-system .agencydesk-orcamentos {
    display: flex;
    flex-direction: column;
}

body.agencydesk-system .agencydesk-orcamentos .af-filter-row { order: 1; }
body.agencydesk-system .agencydesk-orcamentos .af-summary-row { order: 2; }
body.agencydesk-system .agencydesk-orcamentos .af-list-row { order: 3; }
body.agencydesk-system .agencydesk-orcamentos .af-orc-form-row { order: 4; }

body.agencydesk-system .agencydesk-orcamentos #header_1 .alert-info,
body.agencydesk-system .agencydesk-orcamentos #header_1 p.alert-info {
    color: var(--af-ink);
    background: #f5f8f8;
    border: 1px solid #e5e9ec;
}

body.agencydesk-system .agencydesk-orcamentos #form_itens > div {
    margin-bottom: 12px !important;
    padding: 14px;
    background: #fafbfc;
    border: 1px solid #e5eaed;
    border-radius: 4px;
}

/* Fechamentos */
body.agencydesk-system .af-cost-summary-table td,
body.agencydesk-system .af-cost-summary-table th {
    padding: 10px 0 !important;
    border-color: #edf0f2 !important;
}

body.agencydesk-system .agencydesk-fechamentos .custo-box {
    border: 1px solid #e6eaed !important;
    background: #fafbfc !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    border-radius: 4px !important;
}

body.agencydesk-system .af-timeline-horizontal {
    margin: 0;
    padding: 22px 10px 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
}

body.agencydesk-system .af-timeline-horizontal li {
    position: relative;
    min-height: 62px;
    padding-top: 22px;
    color: #8e979e;
    font-size: 10px;
}

body.agencydesk-system .af-timeline-horizontal li:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 14px;
    height: 14px;
    background: var(--af-primary);
    border-radius: 50%;
}

body.agencydesk-system .af-timeline-horizontal li:after {
    content: "";
    position: absolute;
    top: 6px;
    left: 14px;
    right: -18px;
    height: 2px;
    background: #d9e0e4;
}

body.agencydesk-system .af-timeline-horizontal li:last-child:after {
    display: none;
}

body.agencydesk-system .af-timeline-horizontal strong {
    display: block;
    margin-bottom: 4px;
    color: var(--af-ink);
    font-size: 10px;
}

body.agencydesk-system .af-donut {
    width: 138px;
    height: 138px;
    margin: 2px auto 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

body.agencydesk-system .af-donut > div {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #fff;
    border-radius: 50%;
}

body.agencydesk-system .af-donut strong {
    color: var(--af-ink);
    font-size: 14px;
    font-weight: 600;
}

body.agencydesk-system .af-donut small {
    margin-top: 2px;
    color: #9ba3aa;
    font-size: 8px;
}

body.agencydesk-system .af-donut-legend {
    display: grid;
    gap: 6px;
    color: #7f8991;
    font-size: 9px;
    text-align: left;
}

body.agencydesk-system .af-donut-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

body.agencydesk-system .af-donut-legend i {
    width: 8px;
    height: 8px;
    display: inline-block;
}

/* Rodapé no fim da página, sem position:absolute/fixed e sem flutuar. */
body.agencydesk-system #page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.agencydesk-system #page-wrapper > .wrapper.wrapper-content {
    flex: 1 0 auto;
    width: 100%;
}

body.agencydesk-system #page-wrapper > .footer {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    min-height: 46px;
    margin: auto 20px 0;
    padding: 14px 0 16px;
    float: none !important;
    color: #9aa3aa;
    background: transparent;
    border-top: 1px solid #e0e5e8;
    font-size: 10px;
}

/* Login e recuperação: classes exclusivas, sem interferir no Inspinia. */
.af-auth-page {
    min-height: 100vh;
    margin: 0;
    background: #f7f9fb;
}

.af-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(430px, .75fr);
}

.af-auth-visual {
    position: relative;
    min-height: 100vh;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(98, 20, 238, .36), transparent 31%),
        radial-gradient(circle at 88% 75%, rgba(0, 181, 251, .30), transparent 26%),
        linear-gradient(135deg, #001223, #0a2a4a 48%, #0e36d0);
}

.af-auth-visual:before,
.af-auth-visual:after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 34px;
    transform: rotate(11deg);
}

.af-auth-visual:before {
    top: -110px;
    right: -90px;
    width: 330px;
    height: 330px;
}

.af-auth-visual:after {
    bottom: -160px;
    left: -100px;
    width: 390px;
    height: 390px;
}

.af-auth-brand,
.af-auth-copy,
.af-auth-preview {
    position: relative;
    z-index: 2;
}

.af-auth-brand img {
    width: 205px;
    max-height: 56px;
    object-fit: contain;
    object-position: left center;
}

.af-auth-copy {
    max-width: 560px;
    margin-top: 30px;
}

.af-auth-copy span {
    display: inline-block;
    margin-bottom: 15px;
    padding: 7px 12px;
    color: #ede9ff;
    background: rgba(64, 13, 226, .16);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.af-auth-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 300;
    line-height: 1.05;
}

.af-auth-copy p {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.65;
}

.af-auth-preview {
    width: min(760px, 92%);
    margin-top: 36px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    box-shadow: 0 30px 75px rgba(0, 0, 0, .34);
}

.af-auth-preview-top {
    height: 30px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .08);
}

.af-auth-preview-top i {
    width: 7px;
    height: 7px;
    display: block;
    background: rgba(255, 255, 255, .45);
    border-radius: 50%;
}

.af-auth-preview img {
    width: 100%;
    display: block;
}

.af-auth-form-side {
    min-height: 100vh;
    padding: 48px 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .97);
}

.af-auth-box {
    width: 100%;
    max-width: 370px;
}

.af-auth-mobile-logo {
    display: none;
    margin-bottom: 32px;
    text-align: center;
}

.af-auth-mobile-logo img {
    width: 190px;
    max-height: 55px;
}

.af-auth-box h2 {
    margin: 0;
    color: var(--af-ink);
    font-size: 23px;
    font-weight: 600;
    text-align: center;
}

.af-auth-box > p {
    margin: 8px 0 24px;
    color: #9099a1;
    font-size: 12px;
    text-align: center;
}

.af-auth-box .form-group {
    position: relative;
    margin-bottom: 13px;
}

.af-auth-box .form-control {
    height: 45px;
    padding: 10px 42px 10px 13px;
    background: #f8fafb;
    border-color: #dbe2e7;
    font-size: 12px;
}

.af-auth-field-icon {
    position: absolute;
    top: 15px;
    right: 14px;
    color: #9aa4ac;
    font-size: 14px;
}

.af-auth-box .btn-primary {
    height: 44px;
    background: linear-gradient(90deg, #0e36d0, #400de2 58%, #00b5fb);
    border: 0;
}

.af-auth-link {
    display: block;
    margin-top: 14px;
    color: #0e36d0;
    font-size: 10px;
    text-align: center;
}

.af-auth-footer {
    margin-top: 34px;
    color: #9ca4ab;
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

.af-auth-alert {
    margin-bottom: 18px;
    padding: 11px 13px;
    font-size: 10px;
    text-align: left;
}

@media (max-width: 1100px) {
    body.agencydesk-system .af-topbar-date {
        display: none;
    }

    .af-auth-shell {
        grid-template-columns: 1fr 440px;
    }

    .af-auth-visual {
        padding: 38px;
    }
}

@media (max-width: 991px) {
    body.agencydesk-system .af-page-head {
        padding-inline: 20px;
    }

    body.agencydesk-system .agencydesk-dashboard,
    body.agencydesk-system .agencydesk-orcamentos,
    body.agencydesk-system .agencydesk-fechamentos {
        padding-inline: 20px;
    }

    body.agencydesk-system .af-timeline-horizontal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.agencydesk-system .af-timeline-horizontal li:nth-child(2):after {
        display: none;
    }

    .af-auth-shell {
        display: block;
    }

    .af-auth-visual {
        display: none;
    }

    .af-auth-form-side {
        min-height: 100vh;
        padding: 34px 24px;
    }

    .af-auth-mobile-logo {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.agencydesk-system .af-system-topbar .navbar-minimalize {
        margin-left: 15px;
    }

    body.agencydesk-system .af-topbar-title,
    body.agencydesk-system .af-user-text,
    body.agencydesk-system .af-topbar-logout {
        display: none;
    }

    body.agencydesk-system .af-topbar-right {
        margin-right: 8px;
    }

    body.agencydesk-system .af-page-head {
        padding: 17px 15px 8px;
        flex-direction: column;
    }

    body.agencydesk-system .af-page-actions {
        width: 100%;
    }

    body.agencydesk-system .agencydesk-dashboard,
    body.agencydesk-system .agencydesk-orcamentos,
    body.agencydesk-system .agencydesk-fechamentos {
        padding: 8px 15px 25px;
    }

    body.agencydesk-system .af-timeline-horizontal {
        grid-template-columns: 1fr;
    }

    body.agencydesk-system .af-timeline-horizontal li:after {
        display: none;
    }

    body.agencydesk-system #page-wrapper > .footer {
        margin-inline: 15px;
    }
}

@media (max-width: 480px) {
    body.agencydesk-system .af-page-head h1 {
        font-size: 22px;
    }

    body.agencydesk-system .af-stat-card strong {
        font-size: 24px;
    }

    .af-auth-form-side {
        padding: 28px 18px;
    }
}
