
.twt-pro {
    --twt-bg: #07111f;
    --twt-bg-soft: #0f1b2d;
    --twt-surface: #ffffff;
    --twt-surface-soft: #f6f8fb;
    --twt-border: #d8e0ea;
    --twt-text: #102033;
    --twt-text-soft: #5f7288;
    --twt-accent: #d64f2a;
    --twt-accent-2: #ef7d3a;
    --twt-success: #1f8d5c;
    --twt-warning: #c97a1f;
    --twt-danger: #cc3d31;
    --twt-shadow: 0 22px 60px rgba(8, 15, 34, .09);
    font-family: inherit;
    color: var(--twt-text);
}

.twt-pro * {
    box-sizing: border-box;
}

.twt-front-panel {
    background: var(--twt-surface);
    border: 1px solid var(--twt-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--twt-shadow);
    margin: 18px 0;
}

.twt-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
    gap: 24px;
    align-items: stretch;
    background: linear-gradient(135deg, var(--twt-bg) 0%, #152743 62%, #213552 100%);
    color: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(5, 9, 20, .18);
    margin: 0 0 24px;
}


.twt-pro .twt-hero,
.twt-pro .twt-hero *,
.twt-pro .twt-hero h1,
.twt-pro .twt-hero h2,
.twt-pro .twt-hero h3,
.twt-pro .twt-hero p,
.twt-pro .twt-hero span,
.twt-pro .twt-hero strong,
.twt-pro .twt-hero small {
    color: #fff !important;
}

.twt-pro .twt-hero .twt-chip,
.twt-pro .twt-hero .twt-eyebrow,
.twt-pro .twt-hero .twt-kicker-card,
.twt-pro .twt-hero .twt-kicker-card span,
.twt-pro .twt-hero .twt-kicker-card strong,
.twt-pro .twt-hero .twt-kicker-card small {
    color: #fff !important;
}
.twt-hero-copy h2 {
    margin: 10px 0 10px;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
}

.twt-hero-copy p {
    margin: 0;
    color: rgba(255,255,255,.78);
    max-width: 840px;
}

.twt-hero-logo {
    max-width: 190px;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.twt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}

.twt-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.twt-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
    line-height: 1;
}

.twt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
    justify-content: flex-end;
}

.twt-hero-side {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

.twt-kicker-card {
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 20px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.twt-kicker-card span,
.twt-kicker-card small {
    color: rgba(255,255,255,.76);
}

.twt-kicker-card strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
}

.twt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none !important;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.twt-btn-primary {
    background: linear-gradient(135deg, var(--twt-accent) 0%, var(--twt-accent-2) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(214, 79, 42, .24);
}

.twt-btn-primary:hover {
    transform: translateY(-1px);
    color: #fff;
}

.twt-btn-secondary {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.16);
    color: #fff;
}

.twt-btn-secondary:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.twt-btn-ghost {
    background: transparent;
    border-color: var(--twt-border);
    color: var(--twt-text);
}

.twt-btn-ghost:hover {
    background: var(--twt-surface-soft);
}

.twt-front-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.twt-front-cards-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.twt-front-cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.twt-front-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0d1830 0%, #14284c 100%);
    color: #fff;
    border-radius: 20px;
    padding: 20px;
    min-height: 148px;
    box-shadow: 0 18px 40px rgba(11, 17, 32, .12);
}

.twt-front-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -34px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
}

.twt-front-card span,
.twt-front-card small {
    display: block;
    color: rgba(255,255,255,.7);
}

.twt-front-card span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
    font-weight: 700;
}

.twt-front-card strong {
    display: block;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.1;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.twt-front-card .is-danger {
    color: #ffad9d;
}

.twt-front-card .is-success {
    color: #a5ffd1;
}

.twt-front-card-soft {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: var(--twt-text);
    border: 1px solid var(--twt-border);
    min-height: 120px;
}

.twt-front-card-soft span,
.twt-front-card-soft small {
    color: var(--twt-text-soft);
}

.twt-front-card-soft strong {
    color: var(--twt-text);
}

.twt-front-cards-compact .twt-front-card {
    min-height: 120px;
}

.twt-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

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

.twt-panel {
    background: var(--twt-surface);
    border: 1px solid var(--twt-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--twt-shadow);
    margin: 0 0 24px;
}

.twt-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.twt-panel-head h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--twt-text);
}

.twt-panel-head p {
    margin: 0;
    color: var(--twt-text-soft);
}

.twt-panel-chart {
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.twt-chart {
    width: 100%;
    display: block;
    min-height: 280px;
}

.twt-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--twt-text-soft);
    font-size: 13px;
}

.twt-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.twt-chart-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.twt-chart-legend .is-revenue { background: #d64f2a; }
.twt-chart-legend .is-expense { background: #102033; }
.twt-chart-legend .is-received { background: #1f8d5c; }

.twt-table-wrap {
    overflow: auto;
    border: 1px solid var(--twt-border);
    border-radius: 18px;
}

.twt-pro-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
}

.twt-pro-table th,
.twt-pro-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e8edf3;
    text-align: left;
    vertical-align: top;
}

.twt-pro-table thead th {
    background: #f7f9fc;
    color: #5a6b7f;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: 11px;
    font-weight: 800;
}

.twt-pro-table td strong {
    display: block;
    color: var(--twt-text);
}

.twt-pro-table td small {
    display: block;
    color: var(--twt-text-soft);
    margin-top: 4px;
}

.twt-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.twt-pill-success { background: rgba(31,141,92,.12); color: var(--twt-success); }
.twt-pill-warning { background: rgba(201,122,31,.14); color: var(--twt-warning); }
.twt-pill-danger { background: rgba(204,61,49,.12); color: var(--twt-danger); }
.twt-pill-info { background: rgba(57,104,171,.12); color: #3968ab; }
.twt-pill-secondary { background: #edf1f6; color: #667789; }

.twt-insight {
    position: relative;
    overflow: hidden;
}

.twt-insight::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 22px 0 0 22px;
    background: var(--twt-border);
}

.twt-insight-success::before { background: var(--twt-success); }
.twt-insight-warning::before { background: var(--twt-warning); }
.twt-insight-danger::before { background: var(--twt-danger); }

.twt-insight h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.twt-insight p {
    margin: 0;
    color: var(--twt-text-soft);
}

.twt-checklist {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--twt-text);
}

.twt-checklist li + li {
    margin-top: 8px;
}

.twt-form-premium {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.twt-form-section {
    background: #fff;
    border: 1px solid var(--twt-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--twt-shadow);
}

.twt-section-head {
    margin-bottom: 16px;
}

.twt-section-head-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.twt-section-head h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.twt-section-head p {
    margin: 0;
    color: var(--twt-text-soft);
}

.twt-form-grid {
    display: grid;
    gap: 14px;
}

.twt-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twt-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.twt-form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.twt-form-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.twt-field-span-2 { grid-column: span 2; }

.twt-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--twt-text);
}

.twt-field input,
.twt-field select,
.twt-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfd7e3;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: var(--twt-text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.twt-field textarea {
    min-height: 130px;
    resize: vertical;
}

.twt-field input:focus,
.twt-field select:focus,
.twt-field textarea:focus {
    border-color: rgba(214, 79, 42, .65);
    box-shadow: 0 0 0 4px rgba(214, 79, 42, .11);
}

.twt-line-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.twt-line-item {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.twt-line-stat,
.twt-line-actions {
    border: 1px dashed #d7dee8;
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.twt-line-stat span {
    color: var(--twt-text-soft);
    font-size: 12px;
    margin-bottom: 8px;
}

.twt-line-stat strong {
    font-size: 20px;
    color: var(--twt-text);
}

.twt-line-actions {
    align-items: flex-start;
    justify-content: center;
}

.twt-summary-box {
    background: linear-gradient(180deg, #0b172d 0%, #132645 100%);
    color: #fff;
    border-color: rgba(255,255,255,.06);
}

.twt-summary-box .twt-section-head h3,
.twt-summary-box .twt-section-head p,
.twt-summary-note span,
.twt-summary-note p {
    color: #fff;
}

.twt-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.twt-summary-card {
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.twt-summary-card span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 8px;
}

.twt-summary-card strong {
    font-size: 24px;
    color: #fff;
}

.twt-summary-note {
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}

.twt-summary-note span {
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.72);
}

.twt-summary-note p {
    margin: 0;
    color: rgba(255,255,255,.86);
}

.twt-submit-row {
    display: flex;
    justify-content: flex-end;
}

.twt-front-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--twt-border);
}

.twt-front-notice.is-success {
    background: rgba(31,141,92,.08);
    border-color: rgba(31,141,92,.25);
    color: var(--twt-success);
}

.twt-front-notice.is-error {
    background: rgba(204,61,49,.08);
    border-color: rgba(204,61,49,.2);
    color: var(--twt-danger);
}

.twt-meter-block + .twt-meter-block {
    margin-top: 18px;
}

.twt-meter-head,
.twt-meter-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.twt-meter-head {
    margin-bottom: 10px;
}

.twt-meter-head span {
    color: var(--twt-text-soft);
}

.twt-meter-head strong {
    color: var(--twt-text);
}

.twt-meter-meta {
    margin-top: 10px;
    color: var(--twt-text-soft);
}

.twt-meter {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.twt-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--twt-accent) 0%, var(--twt-accent-2) 100%);
}

.twt-meter-danger span {
    background: linear-gradient(135deg, #102033 0%, #385273 100%);
}

@media (max-width: 1200px) {
    .twt-front-cards-6,
    .twt-form-grid-6,
    .twt-form-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .twt-hero,
    .twt-grid-2,
    .twt-grid-3,
    .twt-form-grid-3,
    .twt-form-grid-2,
    .twt-form-grid-4,
    .twt-form-grid-6,
    .twt-front-cards-6,
    .twt-front-cards-4 {
        grid-template-columns: 1fr;
    }

    .twt-grid-mobile-1 {
        grid-template-columns: 1fr;
    }

    .twt-panel-head,
    .twt-section-head-inline,
    .twt-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .twt-actions {
        justify-content: flex-start;
    }

    .twt-field-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .twt-hero,
    .twt-panel,
    .twt-form-section,
    .twt-front-panel {
        padding: 18px;
        border-radius: 18px;
    }

    .twt-front-card {
        min-height: 132px;
    }

    .twt-summary-grid {
        grid-template-columns: 1fr;
    }
}


.twt-tabs-nav {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:0 0 18px;
}
.twt-tab-btn {
    appearance:none;
    border:1px solid var(--twt-border);
    background:#fff;
    color:var(--twt-text);
    border-radius:999px;
    padding:12px 16px;
    font-weight:700;
    cursor:pointer;
    box-shadow:var(--twt-shadow);
}
.twt-tab-btn.is-active {
    background:linear-gradient(135deg, var(--twt-bg) 0%, #152743 100%);
    color:#fff;
    border-color:transparent;
}
.twt-tab-panel { display:none; }
.twt-tab-panel.is-active { display:block; }

.twt-table-wrap { overflow:auto; }
.twt-table {
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border:1px solid var(--twt-border);
    border-radius:16px;
    overflow:hidden;
}
.twt-table th, .twt-table td {
    padding:14px 12px;
    border-bottom:1px solid var(--twt-border);
    text-align:left;
    vertical-align:top;
    font-size:14px;
}
.twt-table th {
    background:var(--twt-surface-soft);
    color:var(--twt-text-soft);
    text-transform:uppercase;
    letter-spacing:.04em;
    font-size:12px;
}
.twt-table-actions {
    white-space:nowrap;
}
.twt-btn-small {
    padding:8px 12px;
    font-size:12px;
}


/* v1.3.1 — floating tabs + robust button states */
.twt-pro .twt-btn,
.twt-pro a.twt-btn,
.twt-pro button.twt-btn,
.twt-pro .twt-tab-btn {
    text-decoration: none !important;
    line-height: 1.15;
}

.twt-pro .twt-btn-primary,
.twt-pro a.twt-btn-primary,
.twt-pro button.twt-btn-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--twt-accent) 0%, var(--twt-accent-2) 100%) !important;
    border-color: transparent !important;
}

.twt-pro .twt-btn-primary:hover,
.twt-pro .twt-btn-primary:focus,
.twt-pro a.twt-btn-primary:hover,
.twt-pro a.twt-btn-primary:focus,
.twt-pro button.twt-btn-primary:hover,
.twt-pro button.twt-btn-primary:focus {
    color: #ffffff !important;
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.twt-pro .twt-btn-secondary,
.twt-pro a.twt-btn-secondary,
.twt-pro button.twt-btn-secondary {
    background: #ffffff !important;
    border-color: var(--twt-border) !important;
    color: var(--twt-text) !important;
    box-shadow: 0 10px 26px rgba(9, 17, 34, .08);
}

.twt-pro .twt-btn-secondary:hover,
.twt-pro .twt-btn-secondary:focus,
.twt-pro a.twt-btn-secondary:hover,
.twt-pro a.twt-btn-secondary:focus,
.twt-pro button.twt-btn-secondary:hover,
.twt-pro button.twt-btn-secondary:focus {
    background: var(--twt-surface-soft) !important;
    color: var(--twt-text) !important;
    border-color: var(--twt-border) !important;
    transform: translateY(-1px);
}

.twt-pro .twt-btn-ghost,
.twt-pro a.twt-btn-ghost,
.twt-pro button.twt-btn-ghost {
    background: #ffffff !important;
    border-color: var(--twt-border) !important;
    color: var(--twt-text) !important;
}

.twt-pro .twt-btn-ghost:hover,
.twt-pro .twt-btn-ghost:focus,
.twt-pro a.twt-btn-ghost:hover,
.twt-pro a.twt-btn-ghost:focus,
.twt-pro button.twt-btn-ghost:hover,
.twt-pro button.twt-btn-ghost:focus {
    background: var(--twt-surface-soft) !important;
    color: var(--twt-text) !important;
    border-color: var(--twt-border) !important;
}

.twt-dashboard-tabs-wrap {
    position: relative;
    padding-top: 92px;
}

.twt-tabs-nav-floating {
    position: sticky;
    top: 24px;
    z-index: 25;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: fit-content;
    max-width: calc(100% - 16px);
    margin: 0 auto 22px;
    padding: 10px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(216,224,234,.95);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(11,17,32,.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.twt-pro .twt-tab-btn {
    min-height: 48px;
    padding: 0 18px;
    background: #ffffff !important;
    color: var(--twt-text) !important;
    border: 1px solid var(--twt-border) !important;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.twt-pro .twt-tab-btn:hover,
.twt-pro .twt-tab-btn:focus {
    background: var(--twt-surface-soft) !important;
    color: var(--twt-text) !important;
    border-color: var(--twt-border) !important;
    box-shadow: 0 10px 24px rgba(10,18,35,.08);
    transform: translateY(-1px);
}

.twt-pro .twt-tab-btn.is-active,
.twt-pro .twt-tab-btn[aria-selected="true"] {
    background: linear-gradient(135deg, var(--twt-bg) 0%, #152743 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 12px 26px rgba(7,17,31,.22);
}

.twt-dashboard-tabs-wrap .twt-tab-panel {
    scroll-margin-top: 120px;
}

@media (max-width: 900px) {
    .twt-dashboard-tabs-wrap {
        padding-top: 84px;
    }

    .twt-tabs-nav-floating {
        top: 14px;
        width: 100%;
        justify-content: center;
        border-radius: 20px;
        padding: 10px;
    }
}

@media (max-width: 640px) {
    .twt-dashboard-tabs-wrap {
        padding-top: 78px;
    }

    .twt-tabs-nav-floating {
        gap: 8px;
    }

    .twt-pro .twt-tab-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}


/* v1.5.0 – projeto, score e ações */
.twt-actions-stack{display:flex;flex-direction:column;gap:10px;align-items:flex-end}
.twt-actions-inline{justify-content:flex-end}
.twt-score-grid{margin:18px 0}
.twt-score-card{
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    background:#fff;
    padding:18px 20px;
    box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.twt-score-card span{display:block;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin-bottom:6px}
.twt-score-card strong{display:block;font-size:28px;line-height:1.1;color:#0f172a}
.twt-score-card small{display:block;margin-top:6px;color:#475569}
.twt-score-card-success{background:linear-gradient(180deg,#f0fdf4 0%,#ffffff 100%)}
.twt-score-card-warning{background:linear-gradient(180deg,#fffbeb 0%,#ffffff 100%)}
.twt-score-card-danger{background:linear-gradient(180deg,#fef2f2 0%,#ffffff 100%)}
.twt-score-note{margin-top:12px;color:#475569}
@media (max-width: 768px){
    .twt-actions-stack{align-items:stretch}
}


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

.twt-front-card small + small {
    margin-top: 6px;
}

@media (max-width: 1100px) {
    .twt-front-cards-3 {
        grid-template-columns: 1fr;
    }
}


.twt-front-global-filters {
    margin: 0 0 16px;
    position: relative;
    z-index: 5;
}


.twt-dashboard-shell-hero {
    margin-bottom: 18px;
}

.twt-dashboard-shell-hero .twt-hero-side {
    align-self: stretch;
}

.twt-header-filter-form {
    height: 100%;
}

.twt-header-filter-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.twt-dashboard-shell-hero .twt-header-filter-card,
.twt-dashboard-shell-hero .twt-header-filter-card *,
.twt-dashboard-shell-hero .twt-header-filter-card label {
    color: #fff !important;
}

.twt-header-filter-grid {
    gap: 12px;
}

.twt-dashboard-shell-hero .twt-field select,
.twt-dashboard-shell-hero .twt-field input {
    background: rgba(255,255,255,.98);
    color: var(--twt-text) !important;
    border: 1px solid rgba(255,255,255,.22);
}

.twt-header-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.twt-dashboard-shell-hero .twt-btn.twt-btn-ghost {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.24);
    color: #fff !important;
}

.twt-dashboard-shell-hero .twt-btn.twt-btn-ghost:hover,
.twt-dashboard-shell-hero .twt-btn.twt-btn-ghost:focus {
    background: rgba(255,255,255,.2);
    color: #fff !important;
    border-color: rgba(255,255,255,.32);
}

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

.twt-front-filter-form .twt-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}

.twt-front-filter-form .twt-filter-head h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.twt-front-filter-form .twt-filter-head p {
    margin: 0;
    color: var(--twt-text-soft);
}

.twt-form-inline .twt-field-actions {
    display: flex;
    align-items: flex-end;
}

.twt-form-inline .twt-field-actions .twt-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .twt-front-filter-form .twt-filter-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* v1.6.4 — filtros globais: contraste e legibilidade */
.twt-dashboard-shell-hero .twt-header-filter-card select,
.twt-dashboard-shell-hero .twt-header-filter-card select:focus,
.twt-dashboard-shell-hero .twt-header-filter-card select:hover {
    background: #ffffff !important;
    color: var(--twt-text) !important;
    -webkit-text-fill-color: var(--twt-text) !important;
    border-color: rgba(255,255,255,.24) !important;
    text-shadow: none !important;
    color-scheme: light;
}

.twt-dashboard-shell-hero .twt-header-filter-card select option,
.twt-dashboard-shell-hero .twt-header-filter-card select optgroup {
    background: #ffffff !important;
    color: var(--twt-text) !important;
    -webkit-text-fill-color: var(--twt-text) !important;
}

.twt-dashboard-shell-hero .twt-header-filter-card select option[value=""] {
    color: #5f7288 !important;
}

.twt-dashboard-shell-hero .twt-header-filter-actions .twt-btn,
.twt-dashboard-shell-hero .twt-header-filter-actions .twt-btn * {
    text-shadow: none !important;
}

.twt-dashboard-shell-hero .twt-header-filter-actions .twt-btn.twt-btn-primary {
    color: #ffffff !important;
}

.twt-dashboard-shell-hero .twt-header-filter-actions .twt-btn.twt-btn-ghost {
    background: #ffffff !important;
    color: var(--twt-text) !important;
    border-color: #ffffff !important;
}

.twt-dashboard-shell-hero .twt-header-filter-actions .twt-btn.twt-btn-ghost:hover,
.twt-dashboard-shell-hero .twt-header-filter-actions .twt-btn.twt-btn-ghost:focus {
    background: #eef3f8 !important;
    color: var(--twt-text) !important;
    border-color: #eef3f8 !important;
}


/* v1.7.5 – estabilidade Elementor + header não bloqueante */
.twt-company-dashboard-shell {
    position: relative;
    z-index: 0;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
}

.twt-company-dashboard-shell .twt-front-global-filters,
.twt-company-dashboard-shell .twt-dashboard-shell-hero,
.twt-company-dashboard-shell .twt-front-panel,
.twt-company-dashboard-shell .twt-panel,
.twt-company-dashboard-shell .twt-table-wrap {
    max-width: 100%;
}

.twt-dashboard-tabs-wrap,
.twt-company-dashboard-shell {
    padding-top: 0 !important;
}

.twt-company-dashboard-shell .twt-tabs-nav-floating {
    position: relative;
    top: auto;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 0 22px;
    justify-content: center;
    overflow-x: auto;
    overflow-y: visible;
}

.twt-company-dashboard-shell .twt-tab-btn {
    flex: 0 0 auto;
}

.twt-company-dashboard-shell .twt-front-global-filters {
    position: relative;
    z-index: 1;
}

.twt-company-dashboard-shell .twt-front-global-filters .twt-hero,
.twt-company-dashboard-shell .twt-front-global-filters .twt-dashboard-shell-hero {
    overflow: visible;
}

.twt-company-dashboard-shell .twt-front-global-filters .twt-hero-side,
.twt-company-dashboard-shell .twt-front-global-filters .twt-header-filter-form {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .twt-company-dashboard-shell .twt-tabs-nav-floating {
        border-radius: 20px;
        justify-content: flex-start;
    }
}


/* v1.7.6 — responsive tables + pagination */
.twt-table-wrap-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: var(--twt-surface);
}

.twt-table-wrap-responsive table {
    width: 100%;
    min-width: 820px;
    table-layout: auto;
}

.twt-table-wrap-responsive::-webkit-scrollbar {
    height: 10px;
}
.twt-table-wrap-responsive::-webkit-scrollbar-thumb {
    background: rgba(16,32,51,.18);
    border-radius: 999px;
}
.twt-table-wrap-responsive::-webkit-scrollbar-track {
    background: rgba(16,32,51,.05);
    border-radius: 999px;
}

.twt-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 4px 0;
    flex-wrap: wrap;
}

.twt-table-pagination-summary {
    color: var(--twt-text-soft);
    font-size: 13px;
}

.twt-table-pagination-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.twt-table-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--twt-border);
    background: #fff;
    color: var(--twt-text);
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}
.twt-table-page-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(16,32,51,.24);
}
.twt-table-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.twt-table-page-current {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--twt-surface-soft);
    color: var(--twt-text);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .twt-table-wrap-responsive table {
        min-width: 760px;
    }
}

@media (max-width: 767px) {
    .twt-front-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .twt-panel-head {
        gap: 14px;
    }

    .twt-actions,
    .twt-toolbar {
        gap: 8px;
    }

    .twt-table-wrap-responsive {
        margin: 0 -2px;
        border-radius: 14px;
    }

    .twt-table-wrap-responsive table {
        min-width: 680px;
    }

    .twt-table-pagination {
        padding-top: 12px;
    }

    .twt-table-page-btn,
    .twt-table-page-current {
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .twt-table-wrap-responsive table {
        min-width: 620px;
    }

    .twt-table-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .twt-table-pagination-actions {
        justify-content: space-between;
    }

    .twt-table-page-btn,
    .twt-table-page-current {
        flex: 1 1 auto;
        justify-content: center;
    }
}



.twt-front-runtime-error {
    border: 1px solid rgba(201,122,31,.28);
    background: linear-gradient(180deg, rgba(255,248,240,.96), rgba(255,255,255,.98));
}
.twt-front-runtime-error .twt-panel-head {
    align-items: center;
}

.twt-table-wrap {
    position: relative;
    background: #fff;
}

.twt-table-wrap.has-overflow-x::before,
.twt-table-wrap.has-overflow-x::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
    z-index: 2;
    pointer-events: none;
    transition: opacity .18s ease;
    opacity: 0;
}
.twt-table-wrap.has-overflow-x::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,0));
}
.twt-table-wrap.has-overflow-x::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255,255,255,.98), rgba(255,255,255,0));
}
.twt-table-wrap.has-overflow-x:not(.is-at-start)::before { opacity: 1; }
.twt-table-wrap.has-overflow-x:not(.is-at-end)::after { opacity: 1; }

.twt-company-dashboard-shell .twt-front-global-filters {
    scroll-margin-top: 24px;
}

@media (max-width: 767px) {
    .twt-company-dashboard-shell .twt-tabs-nav-floating {
        justify-content: flex-start;
        padding: 8px;
        gap: 8px;
        border-radius: 18px;
    }
    .twt-company-dashboard-shell .twt-tab-btn {
        min-height: 44px;
        padding: 0 14px;
        font-size: 13px;
    }
    .twt-table-pagination {
        align-items: stretch;
    }
    .twt-table-pagination-actions {
        width: 100%;
        justify-content: space-between;
    }
}
