
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f6fa;
    color: #25243a;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 255px;
    background: #211d35;
    color: #fff;
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 35px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #7958df;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand strong {
    display: block;
    font-size: 16px;
    letter-spacing: 1px;
}

.brand small {
    color: #aaa4c0;
    font-size: 11px;
}

.menu-label {
    color: #827c9d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    padding: 15px 12px 10px;
}

.menu-item {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    border-radius: 9px;
    text-decoration: none;
    color: #aaa6bc;
    font-size: 13px;
    margin-bottom: 5px;
    transition: .2s;
}

.menu-item i {
    width: 18px;
    font-size: 15px;
}

.menu-item:hover,
.menu-item.active {
    color: #fff;
    background: #7958df;
}

.menu-count {
    margin-left: auto;
    background: #ffffff20;
    padding: 3px 7px;
    border-radius: 5px;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #ffffff15;
    padding-top: 20px;
}

.profile,
.top-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile strong,
.top-user strong {
    display: block;
    font-size: 12px;
}

.profile small,
.top-user small {
    display: block;
    font-size: 10px;
    color: #aaa4bb;
    margin-top: 4px;
}

.profile > i {
    margin-left: auto;
    color: #aaa4bb;
}

.avatar {
    width: 36px;
    height: 36px;
    background: #7958df;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* MAIN */

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 82px;
    background: #fff;
    border-bottom: 1px solid #eeeef3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar h2 {
    font-size: 18px;
}

.topbar-left small {
    display: block;
    color: #9291a3;
    font-size: 11px;
    margin-top: 5px;
}

.search-box {
    height: 39px;
    background: #f7f7fa;
    border: 1px solid #ededf2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

.search-box i {
    color: #9896a9;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 155px;
    font-family: inherit;
    font-size: 12px;
}

.notification,
.menu-toggle {
    border: none;
    background: transparent;
    font-size: 18px;
    color: #77748b;
    cursor: pointer;
    position: relative;
}

.notification span {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 7px;
    background: #ed6575;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
}

/* DASHBOARD */

.dashboard {
    padding: 30px 35px;
    max-width: 1700px;
    margin: auto;
}

.welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.welcome h1 {
    font-size: 23px;
    font-weight: 700;
}

.welcome p {
    font-size: 12px;
    color: #9694a7;
    margin-top: 8px;
}

.date {
    background: #fff;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid #eeeef3;
}

/* CARDS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card,
.panel {
    background: #fff;
    border: 1px solid #eeeef3;
    border-radius: 12px;
}

.stat-card {
    padding: 21px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #858397;
}

.stat-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.purple { background: #f0ebff; color: #7958df; }
.green { background: #e6f8ef; color: #23a36a; }
.orange { background: #fff2e4; color: #ed963e; }
.blue { background: #e8f2ff; color: #4288dc; }

.stat-card h2 {
    font-size: 25px;
    margin: 18px 0 9px;
}

.stat-card > small {
    font-size: 10px;
}

.positive { color: #23a36a; }
.warning { color: #e49a42; }

/* PANELS */

.content-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.panel {
    padding: 22px;
    min-width: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
}

.panel-header h3 {
    font-size: 14px;
}

.panel-header p {
    font-size: 11px;
    color: #9997a8;
    margin-top: 6px;
}

.panel-header select {
    padding: 8px 12px;
    border: 1px solid #eeeef3;
    border-radius: 7px;
    background: #fff;
}

/* CHART */

.chart-legend {
    display: flex;
    gap: 20px;
    font-size: 10px;
    color: #858397;
    margin-bottom: 20px;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.purple-dot { background: #7958df; }
.green-dot { background: #42c98a; }

.chart {
    height: 220px;
    display: flex;
    gap: 15px;
}

.chart-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    font-size: 9px;
    color: #aaa8b7;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    border-bottom: 1px solid #eeeef3;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 49px,
        #f1f0f5 50px
    );
}

.chart-group {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.bars {
    height: 185px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.bar {
    width: 10px;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
}

.revenue { background: #7958df; }
.expenses { background: #42c98a; }

.chart-group small {
    font-size: 9px;
    color: #9694a7;
    padding-bottom: 6px;
}

/* OBRIGACOES */

.obligation {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f0f5;
}

.obligation-icon {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obligation strong {
    font-size: 11px;
    display: block;
}

.obligation small {
    font-size: 9px;
    color: #9997a8;
    display: block;
    margin-top: 4px;
}

.status {
    margin-left: auto;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.done {
    background: #e7f8ef;
    color: #219b65;
}

.pending {
    background: #fff1e5;
    color: #db8738;
}

/* CLIENTES */

.clients-panel {
    margin-bottom: 25px;
}

.primary-button {
    background: #7958df;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 11px 15px;
    font-size: 11px;
    cursor: pointer;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    font-size: 9px;
    color: #9997a8;
    font-weight: 600;
    padding: 14px 12px;
    border-bottom: 1px solid #eeeef3;
}

td {
    padding: 14px 12px;
    font-size: 11px;
    border-bottom: 1px solid #f3f2f6;
    white-space: nowrap;
}

.company {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-avatar {
    width: 30px;
    height: 30px;
    background: #f0ebff;
    color: #7958df;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.action-button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #858397;
}

footer {
    text-align: center;
    font-size: 10px;
    color: #aaa8b7;
    padding: 10px;
}

/* RESPONSIVO */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: .25s;
    }

    .sidebar.sidebar-open {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .topbar {
        padding: 0 15px;
    }

    .top-user {
        display: none;
    }

    .search-box {
        display: none;
    }

    .dashboard {
        padding: 22px 15px;
    }

    .welcome {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .welcome h1 {
        font-size: 19px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h2 {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 15px;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f6fa;
    color: #25243a;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 255px;
    background: #211d35;
    color: #fff;
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 35px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #7958df;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand strong {
    display: block;
    font-size: 16px;
    letter-spacing: 1px;
}

.brand small {
    color: #aaa4c0;
    font-size: 11px;
}

.menu-label {
    color: #827c9d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    padding: 15px 12px 10px;
}

.menu-item {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    border-radius: 9px;
    text-decoration: none;
    color: #aaa6bc;
    font-size: 13px;
    margin-bottom: 5px;
    transition: .2s;
}

.menu-item i {
    width: 18px;
    font-size: 15px;
}

.menu-item:hover,
.menu-item.active {
    color: #fff;
    background: #7958df;
}

.menu-count {
    margin-left: auto;
    background: #ffffff20;
    padding: 3px 7px;
    border-radius: 5px;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #ffffff15;
    padding-top: 20px;
}

.profile,
.top-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile strong,
.top-user strong {
    display: block;
    font-size: 12px;
}

.profile small,
.top-user small {
    display: block;
    font-size: 10px;
    color: #aaa4bb;
    margin-top: 4px;
}

.profile > i {
    margin-left: auto;
    color: #aaa4bb;
}

.avatar {
    width: 36px;
    height: 36px;
    background: #7958df;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* MAIN */

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 82px;
    background: #fff;
    border-bottom: 1px solid #eeeef3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar h2 {
    font-size: 18px;
}

.topbar-left small {
    display: block;
    color: #9291a3;
    font-size: 11px;
    margin-top: 5px;
}

.search-box {
    height: 39px;
    background: #f7f7fa;
    border: 1px solid #ededf2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

.search-box i {
    color: #9896a9;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 155px;
    font-family: inherit;
    font-size: 12px;
}

.notification,
.menu-toggle {
    border: none;
    background: transparent;
    font-size: 18px;
    color: #77748b;
    cursor: pointer;
    position: relative;
}

.notification span {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 7px;
    background: #ed6575;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
}

/* DASHBOARD */

.dashboard {
    padding: 30px 35px;
    max-width: 1700px;
    margin: auto;
}

.welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.welcome h1 {
    font-size: 23px;
    font-weight: 700;
}

.welcome p {
    font-size: 12px;
    color: #9694a7;
    margin-top: 8px;
}

.date {
    background: #fff;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid #eeeef3;
}

/* CARDS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card,
.panel {
    background: #fff;
    border: 1px solid #eeeef3;
    border-radius: 12px;
}

.stat-card {
    padding: 21px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #858397;
}

.stat-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.purple { background: #f0ebff; color: #7958df; }
.green { background: #e6f8ef; color: #23a36a; }
.orange { background: #fff2e4; color: #ed963e; }
.blue { background: #e8f2ff; color: #4288dc; }

.stat-card h2 {
    font-size: 25px;
    margin: 18px 0 9px;
}

.stat-card > small {
    font-size: 10px;
}

.positive { color: #23a36a; }
.warning { color: #e49a42; }

/* PANELS */

.content-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.panel {
    padding: 22px;
    min-width: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
}

.panel-header h3 {
    font-size: 14px;
}

.panel-header p {
    font-size: 11px;
    color: #9997a8;
    margin-top: 6px;
}

.panel-header select {
    padding: 8px 12px;
    border: 1px solid #eeeef3;
    border-radius: 7px;
    background: #fff;
}

/* CHART */

.chart-legend {
    display: flex;
    gap: 20px;
    font-size: 10px;
    color: #858397;
    margin-bottom: 20px;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.purple-dot { background: #7958df; }
.green-dot { background: #42c98a; }

.chart {
    height: 220px;
    display: flex;
    gap: 15px;
}

.chart-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    font-size: 9px;
    color: #aaa8b7;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    border-bottom: 1px solid #eeeef3;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 49px,
        #f1f0f5 50px
    );
}

.chart-group {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.bars {
    height: 185px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.bar {
    width: 10px;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
}

.revenue { background: #7958df; }
.expenses { background: #42c98a; }

.chart-group small {
    font-size: 9px;
    color: #9694a7;
    padding-bottom: 6px;
}

/* OBRIGACOES */

.obligation {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f0f5;
}

.obligation-icon {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obligation strong {
    font-size: 11px;
    display: block;
}

.obligation small {
    font-size: 9px;
    color: #9997a8;
    display: block;
    margin-top: 4px;
}

.status {
    margin-left: auto;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.done {
    background: #e7f8ef;
    color: #219b65;
}

.pending {
    background: #fff1e5;
    color: #db8738;
}

/* CLIENTES */

.clients-panel {
    margin-bottom: 25px;
}

.primary-button {
    background: #7958df;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 11px 15px;
    font-size: 11px;
    cursor: pointer;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    font-size: 9px;
    color: #9997a8;
    font-weight: 600;
    padding: 14px 12px;
    border-bottom: 1px solid #eeeef3;
}

td {
    padding: 14px 12px;
    font-size: 11px;
    border-bottom: 1px solid #f3f2f6;
    white-space: nowrap;
}

.company {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-avatar {
    width: 30px;
    height: 30px;
    background: #f0ebff;
    color: #7958df;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.action-button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #858397;
}

footer {
    text-align: center;
    font-size: 10px;
    color: #aaa8b7;
    padding: 10px;
}

/* RESPONSIVO */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: .25s;
    }

    .sidebar.sidebar-open {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .topbar {
        padding: 0 15px;
    }

    .top-user {
        display: none;
    }

    .search-box {
        display: none;
    }

    .dashboard {
        padding: 22px 15px;
    }

    .welcome {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .welcome h1 {
        font-size: 19px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h2 {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 15px;
    }
}

/* =====================================
   VMB CONTABIL - MODAL DE CLIENTES
===================================== */

.modal-dialog {
    margin-top: 40px;
}

.modal-content {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Cabeçalho */

.modal-header {
    padding: 22px 25px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-header h3 small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

/* Corpo */

.modal-body {
    padding: 20px 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h4 {
    margin: 10px 0 20px;
    padding-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #eee;
}

/* Campos */

.modal-body .form-group {
    margin-bottom: 25px;
}

.modal-body .fg-line {
    position: relative;
}

.modal-body .fg-input {
    height: 45px;
    padding: 10px 0;
    font-size: 14px;
    border: 0;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #333;
}

.modal-body .fg-input:focus {
    border-bottom: 2px solid #0596CD;
    box-shadow: none;
}

.modal-body .fg-label {
    color: #999;
    font-size: 13px;
}

.modal-body select.form-control {
    height: 45px;
    border: 0;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    color: #333;
}

.modal-body select.form-control:focus {
    border-bottom: 2px solid #0596CD;
}

/* Aviso */

.modal-body .alert-info {
    margin-top: 10px;
    border: 0;
    border-radius: 5px;
    background: #eaf6fb;
    color: #31708f;
    font-size: 13px;
}

/* Rodapé */

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.modal-footer .btn-link {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: #0596CD;
    border-radius: 4px;
}

.modal-footer .btn-link:hover {
    background: rgba(5, 150, 205, 0.08);
}

.modal-footer .btn-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsividade */

@media (max-width: 767px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        max-height: 75vh;
        padding: 15px;
    }

    .modal-header {
        padding: 18px;
    }

    .modal-footer {
        padding: 12px 15px;
    }
}
