@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ========================================
   Variáveis globais
======================================== */
:root {
    --lt-bg: #f5f5f5;
    --lt-card: #ffffff;
    --lt-text: #7c7f94;
    --lt-text-soft: #667085;
    --lt-accent: #59b95a;
    --lt-border: #e6e8ec;
    --lt-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --lt-radius: 18px;
    --lt-sidebar-width: 290px;
    --lt-topbar-height: 68px;

    --cf-bg: #f5f7fb;
    --cf-card: #ffffff;
    --cf-text: #1f2937;
    --cf-muted: #6b7280;
    --cf-border: #e5e7eb;
    --cf-primary: #2563eb;
    --cf-primary-hover: #1d4ed8;
    --cf-success: #16a34a;
    --cf-warning: #d97706;
    --cf-danger: #dc2626;
    --cf-radius: 14px;
    --cf-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Reset e base
======================================== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: Roboto, sans-serif;
    background: var(--lt-bg);
    color: var(--lt-text);
}

body.lt-layout {
    min-height: 100vh;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 220px;
    display: block;
    touch-action: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    box-sizing: border-box;
    border: 1px solid #d6dbe6;
    border-radius: 10px;
    background: #fff;
}

input {
    margin-bottom: 15px;
}

textarea.contrato-editor,
textarea.editor {
    min-height: 320px;
    line-height: 1.6;
}

textarea.contrato-editor {
    font-family: Arial, sans-serif;
}

/* ========================================
   Utilitários
======================================== */
.muted {
    color: #6b7280;
}

.text-sm {
    font-size: 13px;
}

.page-title-reset,
.section-title-sm,
.model-form-empty,
.form-reset,
.cf-table-title,
.cf-card-title {
    margin-top: 0;
}

.section-title-sm,
.cf-card-title,
.cf-table-title {
    margin-bottom: 0;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.c-global {
}

/* ========================================
   Layout principal do painel
======================================== */
.lt-app {
    display: flex;
    height: calc(100vh - var(--lt-topbar-height));
    position: relative;
}


.lt-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background: var(--lt-bg);
}
.lt-content-inner {
    padding: 24px;
}

.container {
    width: 1200px;
    max-width: calc(100% - 100px);
    margin: 30px auto;
    padding: 0 20px 0 var(--lt-sidebar-width);
    box-sizing: border-box;
}

/* ========================================
   Topbar
======================================== */
.lt-topbar {
    height: var(--lt-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px;
    background: #fff;
    border-bottom: 1px solid var(--lt-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.lt-topbar-left,
.lt-topbar-right,
.lt-topbar-brand-wrap {
    display: flex;
    align-items: center;
}

.lt-topbar-left {
    gap: 14px;
}

.lt-topbar-right {
    margin-left: auto;
}

.lt-topbar-brand-wrap {
    gap: 12px;
}

.lt-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.lt-topbar-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lt-topbar-page {
    color: #6b7280;
    font-size: 13px;
}

.lt-topbar-logo {
    width: 200px;
    height: 34px;
    object-fit: contain;
}

.lt-topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lt-text);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   Botão do menu
======================================== */

a.btn-ver-contrato {    
    font-size: 16px;
    text-decoration: none;
    display: flex;
    line-height: 28px;
    background: #efebfd;
    color: #614f91;
    padding: 10px 15px;
    border-radius: 24px;
    line-height: 24px;
    transition:all linear 0.2s;
}
a.btn-ver-contrato:hover {
    background: #dcd7f0;
}
a.btn-ver-contrato svg {
    width: 16px;
    margin-right: 5px;
}


/* ========================================
   Botão do menu
======================================== */
.lt-menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
    transition: 0.2s ease;
}

.lt-menu-toggle:hover {
    background: #e9edf3;
    color: #614f91;
}

.lt-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--lt-text);
    border-radius: 999px;
}

/* ========================================
   Overlay
======================================== */
.lt-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 1090;
}

.lt-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Sidebar
======================================== */
.lt-sidebar {
    width: var(--lt-sidebar-width);
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--lt-shadow);
    z-index: 1100;
}

.lt-sidebar-header,
.lt-sidebar-header-m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--lt-border);
    flex-shrink: 0;
}

.lt-sidebar-header-m {
    display: none;
}

.lt-sidebar-brand {
    align-items: center;
    gap: 12px;
}

.lt-sidebar-brand strong {
    display: block;
    color: var(--lt-text);
    font-size: 18px;
    line-height: 1.1;
}

.lt-sidebar-brand small {
    display: block;
    margin-top: 3px;
    color: var(--lt-text-soft);
    font-size: 13px;
}

.lt-sidebar-logo,
.lt-sidebar-logo-m {
    width: 180px;
    height: 42px;
    object-fit: contain;
}

.lt-sidebar-logo-m {
    display: none;
}

.lt-sidebar-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--lt-text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lt-sidebar-nav {
    flex: 1;
    padding: 16px 12px 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.lt-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    padding: 14px;
    text-decoration: none;
    color: var(--lt-text);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.2s ease;
}

.lt-sidebar-link:hover,
.lt-sidebar-link.is-active {
    background: #efebfd;
    color: #614f91;
}

.lt-sidebar-link i {
    font-size: 10px;
}

.lt-sidebar-link--highlight {
    background: rgb(89 139 245);
    color: #ffffff;
}

.lt-sidebar-link--highlight:hover {
    background: rgb(132 47 231);
    color: #ffffff;
}

/* ========================================
   Componentes genéricos antigos
======================================== */
.card {
    margin-bottom: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.card-flat {
    padding: 20px;
    border: 1px solid #eef2f7;
    box-shadow: none;
}

.card-sticky {
    position: sticky;
    top: 20px;
}

.box {
    margin: 20px 0;
    padding: 20px;
    background: #f2f2f2;
    border-radius: 10px;
}
.box_view_contrato {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border-top: 5px solid #7837e9;
}
.box_view_contrato p,
.box_view_contrato strong,
.box_view_contrato li,
.box_view_contrato em,
.box_view_contrato span,
.box_view_contrato div
{
    color:#555 !important;
    font-size: 16px;
}
.box_view_contrato ul{
    padding-left: 15px;

}
.box_view_contrato ul li{
    margin-bottom: 10px;
}
.box_view_contrato h2.title_view_contrato {
    color: #7837e9;
    border-bottom: 1px solid #d6d6d6;
    padding-bottom: 20px;
    margin-top: 10px;
}
.box-signature{
    display: inline-block;
    margin-bottom: 20px;
    margin-right: 20px;
}
.box-signature img{ 
    max-width: 200px;
}
.box-signature .name-signature{
    border-top:1px solid #555;
    color: #555;
    font-weight: normal;
}
.nav {
    margin-bottom: 20px;
}

.nav a {
    margin-right: 12px;
}

.btn,
.cf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn {
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, #862ce6, #2076fd);
    color: #fff;
    border-radius: 100px;
    transition:all linear 0.2s;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #862ce6, #6544ed);
    color: #fff;
    border-radius: 100px;
}

.btn-sec {
    background: #e5e7eb;
    color: #111827;
}

.btn-icon {
    min-width: 42px;
    padding: 10px 12px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.descricao {
    margin-top: -6px;
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 14px;
}

.preview-box {
    min-height: 180px;
    max-height: 260px;
    overflow: auto;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    line-height: 1.6;
}

.bloco-acoes,
.assinatura-acoes,
.cf-actions,
.cf-fav-actions,
.acoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bloco-acoes {
    margin-bottom: 14px;
}

.assinatura-acoes {
    margin-top: 10px;
    margin-bottom: 20px;
    gap: 10px;
}

.erro,
.cf-alert-error {
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.vazio,
.cf-empty {
    color: #6b7280;
    text-align: center;
}

.vazio {
    padding: 18px;
}

/*CARD PUBLICO*/
.card-public{
    margin-bottom: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin: auto;
    max-width: 700px;
}
.card-public h1{
    font-size:20px;
    text-align:center;
    margin-bottom:40px
}
.form-public{

}
.form-public input,
.form-public select,
.form-public textarea{
        margin-bottom: 0px;
    border-radius:0px 5px 5px 0px;
}
.form-public input{
    border-radius:0px 5px 5px 0px;
}
.form-public label{
    display: flex;
    margin-bottom: 15px;
}
.form-public label span{
    width: 150px;
    background: #f8f8f8;
    font-size: 14px;
    font-weight: normal;
    padding: 5px 5px;
    display: flex;
    align-items: center;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: 1px solid #d6dbe6;
    border-right:0;
}
.header-form-public{
    text-align:center;
    display:flex;
    margin:auto;
    max-width:400px;
    margin-bottom:50px;
}
.header-form-public img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:100%;
    margin-left:auto;
}
.header-form-public .info-empresa{
    text-align:left;
    margin:auto 20px;
    margin-right:auto
}
.header-form-public .info-empresa strong{
    display:block;
}
.header-form-public .info-empresa p{
    margin: 0px;
}
/* ========================================
   Assinatura
======================================== */
.assinatura-box,
#signature-pad {
    touch-action: none;
    -ms-touch-action: none;
}

.assinatura-box {
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
}

/* ========================================
   Status / labels
======================================== */
.label-status {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 38px;
    /* margin: auto 0; */
    height: 29px;
}

.label-concluido {
    background: #caffd4;
    color: green;
}

.label-aguardando-cliente {
    background: #fef3c7;
    color: #92400e;
}

.label-aguardando-empresa {
    background: #e8f1ff;
    color: #2f7ae5;
}

.status-badge,
.cf-status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-ativo {
    background: #dcfce7;
    color: #166534;
}

.status-inativo {
    background: #fee2e2;
    color: #991b1b;
}

.favorito-badge,
.cf-mini-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
}

.favorito-badge {
    margin-left: 8px;
    padding: 5px 9px;
    font-size: 11px;
    vertical-align: middle;
}

.cf-status-aguardando_cliente {
    background: #fef3c7;
    color: #92400e;
}

.cf-status-aguardando_empresa {
    background: #dbeafe;
    color: #1d4ed8;
}

.cf-status-concluido {
    background: #dcfce7;
    color: #166534;
}

.cf-status-cancelado,
.cf-status-expirado {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   Cards de contrato
======================================== */
.card-contrato {
    display: flex;
    padding: 20px 20px;
    /* border-bottom: 1px solid #d7d7d7; */
    border: 1px solid #f7f7f7; 
    margin-bottom: 10px;
    background: #f7f7f7;
    border-radius: 18px;
    transition:all linear 0.2s;
}
.card-contrato:hover {
    
    border: 1px solid #ebe8e8; 
    box-shadow:0px 0px 20px #efebfd;
}
.card-detalhe {
    margin-right: 20px;
    color: #333;
    display: flex;
    width:100%;
}
.card-detalhe .id-contrato {
    color:#767676;
    margin-right:30px;
    margin-top: auto;
    margin-bottom: auto;
}
.card-detalhe .name {
    font-size: 18px;
    font-weight: 400;
    color: #000;
    width:100%;
    max-width: 300px;
    margin-top: auto;
    margin-bottom: auto;
}

.card-detalhe .data {
    font-size: 14px;
    margin-right: 50px;
    margin-top: auto;
    margin-bottom: auto;
}

.card-detalhe .data strong {
    margin-right: 5px;
    padding: 2px 3px;
    background: #ebebeb;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0.5;
}

.card-detalhe .label-status {
    /* margin-right: auto; */
    /* margin-left: 0; */
    /* margin: 0 auto 0; */
    margin: auto auto auto 0;
}

.card-actions {
    display: flex;
    margin-left: auto;
}

.card-actions a {
    margin: auto 0;
}

/* ========================================
   Blocos CF (painel / dashboard / tabelas / forms)
======================================== */
.cf-wrap {
    max-width: 1180px;
    margin: 30px auto;
    padding: 0 20px;
    color: var(--cf-text);
}

.cf-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cf-page-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.cf-page-subtitle {
    margin: 6px 0 0;
    color: var(--cf-muted);
    font-size: 14px;
}

.cf-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s ease;
}

.cf-btn-primary {
    background: var(--cf-primary);
    color: #fff;
}

.cf-btn-primary:hover {
    background: var(--cf-primary-hover);
    color: #fff;
}

.cf-btn-secondary {
    background: #fff;
    color: var(--cf-text);
    border-color: var(--cf-border);
}

.cf-btn-secondary:hover {
    background: #f9fafb;
}

.cf-grid {
    display: grid;
    gap: 16px;
}

.cf-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.cf-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cf-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
}

.cf-card,
.cf-stat {
    padding: 20px;
    background: var(--cf-card);
    border: 1px solid var(--cf-border);
    border-radius: var(--cf-radius);
    box-shadow: var(--cf-shadow);
}

.cf-stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--cf-muted);
    font-size: 13px;
}

.cf-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.cf-card-title {
    font-size: 20px;
    color: #111827;
}

.cf-card-text {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.cf-fav-name {
    margin: 6px 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.cf-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--cf-border);
    border-radius: var(--cf-radius);
    box-shadow: var(--cf-shadow);
}

.cf-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 0;
    flex-wrap: wrap;
}

.cf-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.cf-table th,
.cf-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--cf-border);
}

.cf-table th {
    background: #f9fafb;
    color: var(--cf-muted);
    font-size: 13px;
    font-weight: 600;
}

.cf-table tr:last-child td {
    border-bottom: none;
}

.cf-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.cf-badge-success {
    background: #dcfce7;
    color: #166534;
}

.cf-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.cf-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.cf-badge-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.cf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cf-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cf-form-group-full {
    grid-column: 1 / -1;
}

.cf-label {
    font-size: 14px;
    font-weight: 600;
}

.cf-input,
.cf-select,
.cf-textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--cf-border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.cf-textarea {
    min-height: 140px;
    resize: vertical;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
    outline: none;
    border-color: var(--cf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cf-empty {
    padding: 40px 20px;
}

.cf-alert {
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
}

.cf-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.cf-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.cf-card-text,
.cf-fav-name,
.cf-mini-badge,
.cf-fav-actions,
.cf-status-badge {
    word-break: break-word;
}

/* ========================================
   Modelo - formulário
======================================== */
.campo-linha {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.7fr 0.8fr auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.campo-linha textarea {
    min-height: 44px;
}

.campo-linha .btn-remover {
    margin-bottom: 14px;
}

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

.campo-system {
    margin-bottom: 12px;
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.campo-system-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 10px;
    align-items: end;
}

.checkline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.checkline label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 400;
}

.placeholders-list {
    max-height: 300px;
    overflow: auto;
}

.badge {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 6px 10px;
    background: #eef2ff;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}

/* ========================================
   Modelo - listagem
======================================== */
.topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.topo h1 {
    margin: 0;
}

.status-badge {
    display: inline-block;
}

.menu-acoes-wrap {
    position: relative;
}

.menu-acoes {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 50;
}

.menu-acoes.is-open {
    display: block;
}

.menu-acoes a {
    display: block;
    padding: 10px 14px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
}

.menu-acoes a:hover {
    background: #f9fafb;
}

.menu-acoes a.menu-danger {
    color: #991b1b;
}

.menu-acoes a.menu-success {
    color: #166534;
}

/* ========================================
   Ajustes finos do Linktrato
======================================== */


.cf-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 0;
    flex-wrap: wrap;
}

/* ========================================
   Responsivo
======================================== */
@media (max-width: 991px) {
    .lt-menu-toggle {
        display: flex;
    }

    .lt-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
    }

    .lt-sidebar.is-open {
        transform: translateX(0);
    }

    .lt-sidebar-logo-m {
        display: block;
    }

    .lt-sidebar-header-m {
        display: flex;
    }

    .lt-topbar-page {
        display: none;
    }

    body.lt-menu-open {
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .lt-sidebar-overlay {
        display: none !important;
    }

    .lt-sidebar {
        position: relative;
        top: auto;
        left: auto;
        height: 100%;
        transform: none !important;
        box-shadow: none;
        border-right: 1px solid var(--lt-border);
    }

    .lt-menu-toggle {
        display: none !important;
    }

    .lt-sidebar-close {
        display: none;
    }
}

@media (max-width: 960px) {
    .cf-grid-4,
    .cf-grid-3,
    .cf-grid-2,
    .cf-form-grid {
        grid-template-columns: 1fr;
    }
    .cf-grid-4{
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

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

    .campo-linha,
    .campo-system-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .lt-topbar {
        padding: 0 14px;
    }
.cf-grid-4{
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
    .lt-topbar-brand span {
        font-size: 18px;
    }

    .lt-content-inner {
        padding: 16px;
    }
    .card-detalhe {
        display: block;
    }
    .card-detalhe .label-status {
        margin-top:15px
    }
}

@media (max-width: 700px) {
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 14px;
        padding: 10px;
        background: #fff;
        border: 1px solid #eef2f7;
        border-radius: 12px;
    }

    td {
        padding: 8px 0;
        border: 0;
    }

    td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
    }

    .menu-acoes {
        right: auto;
        left: 0;
    }
}
.lt-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lt-subscription-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 16px 0;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.lt-subscription-banner.is-limited {
    border-color: #f0c36d;
    background: #fff9ed;
}

.lt-subscription-banner.is-trial {
    border-color: #c7d2fe;
    background: #f5f7ff;
}

.lt-subscription-banner p {
    margin: 6px 0 0;
}

.lt-subscription-box {
    display: grid;
    gap: 8px;
}

.lt-subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.lt-signup-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2ff 100%);
}

.lt-signup-card {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
    padding: 28px;
}

.lt-signup-brand {
    text-align: center;
    margin-bottom: 20px;
}

.lt-signup-brand img {
    width: 160px;
    max-width: 100%;
    margin-bottom: 14px;
}

.lt-signup-brand h1 {
    margin-bottom: 10px;
}

.lt-signup-form {
    display: grid;
    gap: 10px;
}

.lt-signup-foot {
    margin-top: 18px;
    text-align: center;
}

@media (max-width: 768px) {
    .lt-subscription-banner {
        margin: 12px 12px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}
