 :root {
    --tw-primary: #153B5B;
    --tw-primary-dark: #102A3D;
    --tw-accent: #12A594;
    --tw-accent-dark: #0E8F80;
    --tw-primary-rgb: 21, 59, 91;
    --tw-accent-rgb: 18, 165, 148;
    --tw-bg: #F5F7F9;
    --tw-surface: #FFFFFF;
    --tw-text: #25333D;
    --tw-muted: #6E7C86;
    --tw-border: #DDE3E8;

    --app-bg: var(--tw-bg);
    --app-border: var(--tw-border);
    --app-muted: var(--tw-muted);
    --app-shadow: 0 8px 24px rgba(16, 42, 61, .08);
    --app-radius: 16px;
    --purple: #7c3aed;
}


body {
    background: var(--app-bg);
    color: var(--tw-text);
    font-family: "Manrope", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fs-1{
    font-size:.625rem!important
}
.fs-2{
    font-size:.75rem!important
}
.fs-3{
    font-size:.875rem!important
}
.fs-4{
    font-size:1rem!important
}
.fs-5{
    font-size:1.125rem!important
}
.fs-6{
    font-size:1.25rem!important
}
.fs-7{
    font-size:calc(1.275rem + .3vw)!important
}
.fs-8{
    font-size:calc(1.3125rem + .75vw)!important
}
.fs-9{
    font-size:calc(1.35rem + 1.2vw)!important
}
.fs-10{
    font-size:calc(1.375rem + 1.5vw)!important
}
.fs-11{
    font-size:.8125rem!important
}
.fs-12{
    font-size:.9375rem!important
}
.fs-13{
    font-size:calc(1.425rem + 2.1vw)!important
}
.fs-14{
    font-size:calc(1.46875rem + 2.625vw)!important
}

.fst-normal{
    font-style:normal!important
}
.fw-lighter{
    font-weight:300!important
}
.fw-light{
    font-weight:300!important
}
.fw-normal{
    font-weight:400!important
}
.fw-medium{
    font-weight:500!important
}
.fw-semibold{
    font-weight:600!important
}
.fw-bold{
    font-weight:600!important
}
.fw-bolder{
    font-weight:700!important
}

.app-topbar {
    height: 68px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #12A594, #7c3aed);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
}

.menuativo{
    cursor:pointer 
}

.menuinat{
    cursor: not-allowed !important;
}

.user-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.taskway-toolbar {
    min-height: 84px;
}

.kanban-users img,
.kanban-users span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
}

.kanban-users img:first-child {
    margin-left: 0;
}

.kanban-users img {
    object-fit: cover;
}

.kanban-users span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #12A594;
    font-size: 12px;
    font-weight: 700;
}

.kanban-search {
    width: 280px;
}

.app-main {
    min-height: calc(100vh - 68px);
    background: var(--app-bg);
}

.kanban-main {
    height: calc(100vh - 153px);
    overflow: hidden;
}

.kanban-board {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 28px;
}

.kanban-board::-webkit-scrollbar {
    height: 12px;
}

.kanban-board::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 3px solid var(--app-bg);
}

.kanban-column {
    width: 360px;
    min-width: 360px;
    max-height: 100%;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    display: flex;
    flex-direction: column;
    transition: width .2s ease, min-width .2s ease, background .2s ease;
}

.kanban-column-header {
    min-height: 62px;
    padding: 0 16px;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-column-heading {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kanban-column-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kanban-column-title strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-column-role {
    min-height: 11px;
    margin-top: 2px;
    padding-left: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #0f766e;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.kanban-column-role i {
    font-size: 9px;
}

.kanban-column-role.is-empty {
    visibility: hidden;
}

.kanban-column-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.kanban-count {
    flex-shrink: 0;
    font-size: 12px;
}

/* Saúde atual da etapa: proporção de Cards no prazo x atrasados */
.kanban-column:not(.kanban-column-special):not(.is-collapsed) .kanban-column-header {
    height: 62px;
    max-height: 62px;
    border-bottom: 0;
}

.kanban-column-health {
    padding: 0 16px 10px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--app-border);
}

.kanban-column-health-track {
    width: 100%;
    height: 6px;
    display: flex;
    overflow: hidden;
    background: #e6ebef;
    border-radius: 999px;
}

.kanban-column-health-ok,
.kanban-column-health-late {
    display: block;
    height: 100%;
    transition: width .2s ease;
}

.kanban-column-health-ok {
    background: #16a34a;
}

.kanban-column-health-late {
    background: #dc3545;
}

.kanban-column-health.is-empty .kanban-column-health-track {
    background: #e6ebef;
}

.kanban-column.is-collapsed .kanban-column-health {
    display: none;
}

.kanban-column-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
}

.kanban-column-body::-webkit-scrollbar {
    width: 8px;
}

.kanban-column-body::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-column-body::-webkit-scrollbar-thumb {
    background: #d5dbea;
    border-radius: 999px;
}

.kanban-list {
    min-height: 180px;
}

.kanban-card {
    background: #F6FBFA;
    border: 1px solid #CFEEE9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.kanban-card:hover {
    background: #f3f8ff;
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card h6 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.kanban-card p {
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.kanban-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.kanban-drag-handle {
    position: absolute;
    top: 15px;
    left: 8px;
    color: #c4cbd8;
    font-size: 12px;
}

.kanban-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    margin-top: 8px;
}

.kanban-card-cover-fields {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
}

.kanban-card-cover-field {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #475569;
    word-break: break-word;
}

.kanban-card-cover-label {
    font-weight: 600;
    color: #334155;
    margin-right: 4px;
}

.kanban-card-cover-value {
    color: #475569;
}

.kanban-card-esteira {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.25;
}

.kanban-card-esteira-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tw-bg);
    border: 1px solid var(--tw-border);
    font-size: .72rem;
}

.kanban-card-esteira-nome {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-card-title {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    font-size: 0.95rem;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.kanban-card-user {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.kanban-card-prazo {
    font-size: 0.78rem;
    white-space: nowrap;
}

.kanban-card-prazo.is-atrasado {
    color: #dc3545;
    font-weight: 600;
}

.kanban-card-prazo.is-hoje {
    color: #f59e0b;
    font-weight: 600;
}

.kanban-card-prazo.is-ok {
    color: #198754;
}

.kanban-card-prazo.is-sem-prazo {
    color: #64748b;
}

.kanban-card-image {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding-left: 14px;
}

.kanban-card-image .kanban-drag-handle {
    display: none;
}

.kanban-card-image img {
    width: 120px;
    height: 95px;
    object-fit: cover;
    border-radius: 10px;
}

/* ======================================================
   COLUNAS ESPECIAIS DO KANBAN
   Cancelados / Finalizados
====================================================== */

.kanban-column-special {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.kanban-column-special .kanban-column-header {
    min-height: 58px;
    padding: 14px 16px;
    border-bottom: 0;
}

.kanban-column-header-special {
    color: #fff;
}

.kanban-column-header-cancelado {
    background: linear-gradient(135deg, #dc3545 0%, #b91c1c 100%);
}

.kanban-column-header-finalizado {
    background: linear-gradient(135deg, #111827 0%, #020617 100%);
}

.kanban-column-header-special .kanban-column-title {
    color: #fff;
    gap: 10px;
}

.kanban-column-header-special .kanban-column-title strong {
    color: #fff;
    font-weight: 700;
}

.kanban-column-header-special .kanban-column-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kanban-column-header-special .kanban-column-icon i {
    color: #fff !important;
    font-size: .9rem;
}

.kanban-column-special .kanban-count {
    background: rgba(255, 255, 255, .92) !important;
    color: #111827 !important;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kanban-column-special .kanban-column-body {
    background: #f8fafc;
    padding-top: 14px;
}

.kanban-column-special-cancelado .kanban-column-body {
    background: #fffafa;
}

.kanban-column-special-finalizado .kanban-column-body {
    background: #f8fafc;
}

.kanban-column-special .kanban-list {
    padding: 0 14px 14px;
}

.kanban-column-special .kanban-card {
    background: #ffffff;
    border: 1px solid #CFEEE9;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    position: relative;
}

.kanban-column-special .kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .10);
}

.kanban-column-special-cancelado .kanban-card {
    border-left: 4px solid #dc3545;
}

.kanban-column-special-finalizado .kanban-card {
    border-left: 4px solid #111827;
}

.kanban-column-special .kanban-card-title {
    font-weight: 700;
}

.kanban-column-special .kanban-card-meta,
.kanban-column-special .kanban-card-description {
    color: #475569;
}

.kanban-column-special .kanban-card .badge {
    font-size: .72rem;
}

.kanban-column-fixed {
    cursor: default;
}

.kanban-special-footer {
    padding: 0 14px 14px;
    background: #f8fafc;
}

.kanban-special-footer .btn {
    border-style: dashed;
    font-size: .82rem;
}

.done-card {
    border-left: 3px solid #22c55e;
}

.btn-add-task {
    border: 1px dashed #cbd5e1;
    color: #64748b;
    background: #fff;
    border-radius: 12px;
    height: 44px;
}

.btn-add-task:hover {
    border-color: #12A594;
    color: #12A594;
    background: #F6FBFA;
}

.kanban-column.is-collapsed {
    width: 82px;
    min-width: 82px;
    min-height: 620px;
    background: linear-gradient(180deg, #ffffff, #f3f7ff);
    border-radius: 24px;
}

.kanban-column.is-collapsed .kanban-column-body {
    display: none;
}

.kanban-column.is-collapsed .kanban-column-header {
    position: relative;
    min-height: 620px;
    padding: 58px 8px 18px;
    border-bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
}

.kanban-column.is-collapsed .kanban-column-actions {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
}

.kanban-column.is-collapsed .kanban-column-title {
    flex-direction: column;
    gap: 16px;
}

.kanban-column.is-collapsed .kanban-column-heading {
    flex: 0 0 auto;
    align-items: center;
}

.kanban-column.is-collapsed .kanban-column-role {
    display: none;
}

.kanban-column.is-collapsed .kanban-column-title strong {
    overflow: visible;
    text-overflow: clip;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 15px;
    letter-spacing: .2px;
}

.kanban-column.is-collapsed .kanban-column-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #E7F7F5;
}

.kanban-column.is-collapsed .kanban-count {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.archive-column {
    background: linear-gradient(180deg, #fff, #f7f2ff);
}

.text-purple {
    color: var(--purple);
}

.bg-purple {
    background: var(--purple);
}

.kanban-ghost {
    opacity: .45;
    background: #E7F7F5;
}

.kanban-chosen {
    border-color: #12A594;
}

.kanban-drag {
    opacity: .9;
}

.kanban-card.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .kanban-main {
        height: calc(100vh - 190px);
    }

    .kanban-search {
        width: 100%;
    }

    .kanban-column {
        width: 310px;
        min-width: 310px;
    }

    .kanban-card-image {
        grid-template-columns: 1fr;
    }

    .kanban-card-image img {
        width: 100%;
        height: 130px;
    }
}

.navbar-taskway {
    min-height: 68px;
    background: #fff;
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}

.navbar-taskway .navbar-brand {
    color: #141824;
    font-size: 1.08rem;
}

.navbar-taskway .navbar-brand:hover {
    color: #141824;
    text-decoration: none;
}

.navbar-taskway .brand-text {
    letter-spacing: -.02em;
}

.navbar-taskway-nav {
    gap: .25rem;
}

.navbar-taskway-nav .nav-link {
    height: 40px;
    padding: 0 1rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #525b75;
    font-size: .86rem;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease;
}

.navbar-taskway-nav .nav-link:hover,
.navbar-taskway-nav .nav-link.show {
    color: #222834;
    background: #eff2f6;
    text-decoration: none;
}

.navbar-taskway-nav .nav-link.active {
    color: #12A594;
    background: #F2FAF8;
}

.navbar-taskway-nav .nav-link-icon {
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
}

.dropdown-menu-taskway {
    min-width: 13rem;
    padding: .5rem;
    border: 1px solid #e3e6ed;
    border-radius: .75rem;
    background: #fff;
    margin-top: .65rem;
}

.dropdown-menu-taskway .dropdown-item {
    min-height: 36px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    color: #525b75;
    font-size: .84rem;
    font-weight: 700;
}

.dropdown-menu-taskway .dropdown-item:hover,
.dropdown-menu-taskway .dropdown-item:focus {
    color: #222834;
    background: #eff2f6;
}

.dropdown-menu-taskway .dropdown-item.active {
    color: #12A594;
    background: #F2FAF8;
}

.navbar-taskway .dropdown-toggle::after {
    margin-left: .35rem;
    font-size: .8rem;
}

@media (max-width: 991.98px) {
    .navbar-taskway {
        height: auto;
        min-height: 68px;
    }

    .navbar-taskway-collapse {
        padding: 1rem 0;
    }

    .navbar-taskway-nav {
        gap: .35rem;
        margin-bottom: 1rem;
    }

    .navbar-taskway-nav .nav-link {
        justify-content: flex-start;
    }

    .dropdown-menu-taskway {
        border: 0;
        box-shadow: none !important;
        margin-top: .25rem;
        padding-left: 1.5rem;
    }
}

@media (min-width: 992px) {
    .navbar-taskway .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar-taskway .nav-item.dropdown:hover > .nav-link {
        color: #222834;
        background: #eff2f6;
        text-decoration: none;
    }

    .navbar-taskway .nav-item.dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .navbar-taskway .dropdown-toggle::after {
        transition: transform .15s ease;
    }

    .dropdown-menu-taskway {
        margin-top: .65rem;
    }

    .dropdown-menu-taskway::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -.75rem;
        height: .75rem;
    }
}

.app-page {
    padding: 24px 28px;
}

.app-logo {
    height: 34px;
    width: auto;
    display: block;
}

.user-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.taskway-card-table {
    border-radius: 12px;
    overflow: hidden;
}

.taskway-card-table .card-body {
    padding: 1.5rem;
}

.taskway-table thead th {
    background-color: #fff;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 500 !important;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0.9rem;
    white-space: nowrap;
}

.taskway-table tbody td {
    color: #334155;
    font-size: 0.84rem;
    padding: 0.95rem 0.9rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.taskway-table tbody tr:hover {
    background-color: #f8fafc;
}

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


.user-avatar-table {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    max-width: 38px;
    object-fit: cover;
    display: inline-flex;
    vertical-align: middle;
}

.user-avatar-empty {
    background: #E7F7F5;
    color: #12A594;
    font-weight: 700;
    font-size: 13px;
}

.taskway-table .btn-light {
    background-color: transparent;
}

.taskway-table .btn-light:hover {
    background-color: #E7F7F5;
    color: #12A594;
}

/* DataTables - TaskWay baseado no estilo do outro sistema */

.taskway-datatable-card {
    border-radius: 7px;
    border: 0;
    background-color: #fff;
    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03), 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
}

.taskway-datatable-card .card-body {
    padding: 24px;
}

.taskway-datatable-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
    .taskway-datatable-card .table-responsive {
        overflow-x: clip;
    }
}

.taskway-table {
    --bs-table-color: var(--bs-heading-color);
    --bs-table-bg: #fff;
    --bs-table-border-color: rgba(51, 55, 71, 0.08);
    --bs-table-hover-bg: #ebf3f5;

    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-color: var(--bs-table-border-color);
    border-collapse: separate;
    border-spacing: 0;    
}

.taskway-table > :not(caption) > * > * {
    padding: 14px 14px;
    color: var(--bs-table-color);
    background-color: var(--bs-table-bg);
    border-bottom-width: var(--bs-border-width);
    border-color: var(--bs-table-border-color);
}

.taskway-table > thead {
    vertical-align: bottom;
}

.taskway-table th {
    color: var(--bs-heading-color);
    font-weight: 600;
}

.taskway-table.table-hover > tbody > tr:hover > * {
    background-color: var(--bs-table-hover-bg);
}

.taskway-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #e9ecef;
}

/* DataTables - seletor de registros */

.table-responsive .dataTables_wrapper .dataTables_length {
    margin-bottom: 1rem;
}

.table-responsive .dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--bs-body-color);
}

.table-responsive .dataTables_wrapper .dataTables_length select {
    min-width: 80px;
    padding-top: .25rem;
    padding-bottom: .25rem;
    padding-left: .5rem;
    padding-right: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: .765625rem;
    border-radius: 5px;
    border-color: var(--bs-border-color);
}

/* DataTables - filtro padrão, caso algum dia use */

.table-responsive .dataTables_wrapper .dataTables_filter {
    margin-bottom: 25px;
}

.table-responsive .dataTables_wrapper .dataTables_filter input {
    padding: .25rem .5rem;
    font-size: .765625rem;
    border-radius: 5px;
    border: 1px solid var(--bs-border-color);
}

/* DataTables - informação de registros */

.dataTables_info {
    white-space: nowrap;
}

.table-responsive .dataTables_wrapper .dataTables_info {
    padding-left: 10px;
    color: var(--bs-body-color);
}

/* DataTables - paginação */

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button {
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    margin: 0 3px;
}

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Remove glow azul de foco */

.table-responsive .dataTables_wrapper .dataTables_length select:focus,
.table-responsive .dataTables_wrapper .dataTables_filter input:focus,
.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button:focus,
.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button:active {
    outline: none;
    box-shadow: none;
}

/* DataTables - botões de exportação, se usar futuramente */

body div.dt-buttons > .dt-button,
body div.dt-buttons > div.dt-button-split .dt-button {
    background: var(--bs-primary);
    border-radius: var(--bs-border-radius-sm);
    background-color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    color: #fff;
}

body div.dt-buttons > .dt-button:hover,
body div.dt-buttons > div.dt-button-split .dt-button:hover {
    background: var(--bs-primary) !important;
    border-radius: var(--bs-border-radius-sm) !important;
    background-color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    color: #fff !important;
}

/* Dark mode, se for usar depois */

[data-bs-theme="dark"] .dataTables_length select {
    background-color: #1e293b;
    color: #fff;
    border: 1px solid #334155;
}

[data-bs-theme="dark"] .dataTables_length select option {
    background-color: #1e293b;
    color: #fff;
}

.app-datatable-card {
    border: 0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 1px rgba(0, 0, 0, 0.1);
}

.app-datatable-card .card-body {
    padding: 22px 28px 18px 28px;
}

.app-datatable-card .dataTables_wrapper {
    padding-top: 4px;
}

.app-datatable-card .dataTables_length {
    padding-left: 4px;
    margin-bottom: 12px;
}

.app-datatable-card .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0;
    color: #334155;
    font-size: 0.875rem;
}

.app-datatable-card .dataTables_length select {
    min-width: 80px;
    margin-left: 12px;
    margin-right: 12px;
    padding: 6px 32px 6px 10px;
    font-size: 0.82rem;
    border-radius: 7px;
    border: 1px solid #dbe2ea;
    color: #334155;
    background-color: #fff;
}

.app-datatable-card .dataTables_length select:focus {
    border-color: #b8c7d9;
    box-shadow: none;
    outline: none;
}

.app-datatable {
    color: #334155;
    margin-bottom: 0;
}

.app-datatable thead th,
.app-datatable.dataTable thead th,
table.dataTable.app-datatable thead th,
table.dataTable.app-datatable > thead > tr > th {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    padding: 12px 14px !important;
    background-color: #fff !important;
    border-bottom: 1px solid rgba(51, 55, 71, 0.08) !important;
    white-space: nowrap;
}

.app-datatable tbody td {
    font-size: 0.84rem;
    color: #334155;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(51, 55, 71, 0.08);
    vertical-align: middle;
}

.app-datatable tbody tr:hover td {
    background-color: #f8fafc;
}

.app-datatable-card .dataTables_info {
    padding-left: 4px;
    padding-top: 14px;
    color: #334155;
    font-size: 0.875rem;
    white-space: nowrap;
}

.app-datatable-card .dataTables_paginate {
    padding-top: 10px;
}

.app-datatable-card .pagination {
    justify-content: flex-end;
    margin-bottom: 0;
}

.app-datatable-card .pagination .page-link {
    color: #334155;
    border-color: #dbe2ea;
    border-radius: 7px;
    margin-left: 6px;
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.app-datatable-card .pagination .page-link:focus {
    box-shadow: none;
    outline: none;
}

.app-datatable-card .pagination .page-item.active .page-link {
    color: #fff;
    background-color: #12A594;
    border-color: #12A594;
}

.app-datatable-card .pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f1f5f9;
    border-color: #dbe2ea;
}


.user-config-box {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
    flex-wrap: nowrap;
}

.user-config-box .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: auto;
    margin-bottom: 0;
    padding-left: 0;
}

.user-config-box .form-check-input {
    margin-left: 0;
    margin-top: 0;
}

.user-config-box .form-check-label {
    margin-bottom: 0;
    color: #334155;
    white-space: nowrap;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.user-avatar-img,
.user-avatar-initial {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-img {
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(7, 27, 58, .14);
}

.user-avatar-initial {
    background: linear-gradient(135deg, #12A594, #0E8F80);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(7, 27, 58, .14);
}

.user-dropdown {
    min-width: 270px;
    border: 0;
    border-radius: 14px;
    padding: 8px;
    margin-top: 12px;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
}

.user-dropdown-avatar img,
.user-dropdown-avatar span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.user-dropdown-avatar img {
    object-fit: cover;
}

.user-dropdown-avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #12A594, #0E8F80);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.user-dropdown-info {
    min-width: 0;
}

.user-dropdown-info strong {
    display: block;
    font-size: 14px;
    color: #071b3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-info small {
    display: block;
    font-size: 12px;
    color: #7b879d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown .dropdown-item {
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 14px;
    color: #26344d;
}

.user-dropdown .dropdown-item:hover {
    background: #f3f6fb;
    color: #12A594;
}

.user-dropdown .dropdown-item.text-danger {
    color: #dc3545;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, .08);
    color: #dc3545;
}

.user-photo-preview {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12A594, #0E8F80);
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(7, 27, 58, .16);
}

.user-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-menu {
    position: relative;
}

.notification-dropdown {
    width: 360px;
    border: 0;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    margin-top: 12px;
}

.notification-header {
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header strong {
    font-size: 15px;
    color: #071b3a;
}

.notification-header small {
    font-size: 12px;
    color: #7b879d;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f0f3f8;
    color: #26344d;
}

.notification-item:hover {
    background: #f7faff;
    color: #26344d;
}

.notification-item-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #E7F7F5;
    color: #12A594;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notification-item-body {
    min-width: 0;
    flex: 1;
}

.notification-item-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #071b3a;
    margin-bottom: 2px;
}

.notification-item-text {
    display: block;
    font-size: 12px;
    color: #6e7d96;
    line-height: 1.35;
}

.notification-item-date {
    display: block;
    font-size: 11px;
    color: #9aa6ba;
    margin-top: 5px;
}

.notification-empty {
    padding: 28px 16px;
    text-align: center;
    color: #7b879d;
    font-size: 13px;
}

.notification-footer {
    padding: 10px 16px;
    border-top: 1px solid #edf1f7;
    text-align: center;
}

.notification-footer a {
    font-size: 13px;
    color: #12A594;
    text-decoration: none;
    font-weight: 600;
}

.notification-footer a:hover {
    text-decoration: underline;
}

.notification-item-unread {
    background: #f7faff;
}

.notification-item-unread .notification-item-title:after {
    content: "";
    width: 7px;
    height: 7px;
    background: #12A594;
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

.app-list-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.03), 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.app-list-body {
    padding: 24px;
    background-color: #fff;
}

.members-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
}

.members-box-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8fafc;
}

.members-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.members-list {
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
}

.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.member-item:last-child {
    border-bottom: 0;
}

.member-item:hover {
    background-color: #f8fafc;
}

.member-info {
    min-width: 0;
}

.member-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-email {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #E7F7F5;
    color: #12A594;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}


#divWorkflowPainelAberto .app-list-card {
    min-height: 300px;
}

#divWorkflowBoardConteudo {
    min-height: 220px;
}

@media (max-width: 767px) {
    .painel-card {
        padding: 1rem;
    }

    .painel-card-desc {
        min-height: auto;
    }

    .painel-card .d-flex.justify-content-between.align-items-end {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .painel-card .d-flex.justify-content-end.gap-2 {
        width: 100%;
    }

    .painel-card .btnAbrirPainel {
        flex: 1;
    }
}

.app-card {
    height: 100%;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    transition: all .15s ease-in-out;
}

.app-card:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.app-card-clickable {
    cursor: pointer;
}

.app-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background-color: #E7F7F5;
    color: #12A594;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
    line-height: 1.2;
}

.app-card-meta {
    font-size: 0.82rem;
    color: #475569;
}

.app-card-desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
}

.app-card-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.app-card-label {
    font-size: .825rem;
    color: #64748b;
    margin-top: .25rem;
}

.app-card .btn {
    box-shadow: none;
    white-space: nowrap;
}

.app-card .btn-sm {
    border-radius: 8px;
}

#divWorkflowPainelAberto .app-list-card {
    min-height: 300px;
}

#divWorkflowBoardConteudo {
    min-height: 220px;
}

@media (max-width: 767px) {
    .app-card {
        padding: 1rem;
    }

    .app-card-desc {
        min-height: auto;
    }

    .painel-card .d-flex.justify-content-between.align-items-end {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .painel-card .d-flex.justify-content-end.gap-2 {
        width: 100%;
    }

    .painel-card .btnAbrirPainel {
        flex: 1;
    }
}

.app-card .btn-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wizard-steps {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.wizard-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background-color: #f8fafc;
    color: #64748b;
}

.wizard-step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.wizard-step strong {
    display: block;
    font-size: .86rem;
    color: #334155;
    line-height: 1.1;
}

.wizard-step small {
    display: block;
    font-size: .74rem;
    color: #64748b;
}

.wizard-step.active {
    background-color: #E7F7F5;
    border-color: #12A594;
}

.wizard-step.active span {
    background-color: #12A594;
    color: #fff;
}

.wizard-step.done span {
    background-color: #16a34a;
    color: #fff;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.permission-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    background-color: #f8fafc;
}

.permission-panel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
}

.permission-panel-header {
    min-height: 50px;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


@media (max-width: 767px) {
    .wizard-steps {
        flex-direction: column;
    }
}

.permission-search {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fff;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.permission-item:last-child {
    border-bottom: 0;
}

.permission-item:hover {
    background-color: #f8fafc;
}

.permission-item-info {
    min-width: 0;
}

.permission-item-title {
    font-size: .86rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.permission-item-sub {
    font-size: .76rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.permission-list {
    min-height: 120px;
    max-height: 280px;
    overflow-y: auto;
}

#mdPainel .modal-body {
    height: 540px;
    overflow-y: auto;
}

.etapa-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.etapa-icon-preview {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.04);
}

#mdEtapasPainel .modal-content {
    max-height: calc(100vh - 60px);
}

#mdEtapasPainel .modal-body {
    overflow: hidden;
}

#listaEtapasPainel {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
}

.taskway-color-list,
.taskway-icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.taskway-color-radio,
.taskway-icon-radio {
    display: none;
}

.taskway-color-option,
.taskway-icon-option {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d8e0ea;
    background-color: #fff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease-in-out;
}

.taskway-color-option {
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d8e0ea;
}

.taskway-icon-option:hover,
.taskway-color-option:hover {
    transform: translateY(-1px);
}

.taskway-icon-radio:checked + .taskway-icon-option {
    border-color: #12A594;
    color: #12A594;
    background-color: rgba(13, 110, 253, 0.08);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.taskway-color-radio:checked + .taskway-color-option {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.20);
    border-color: #fff;
}

.drag-etapa-handle {
    cursor: grab;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
}

.drag-etapa-handle:active {
    cursor: grabbing;
}

.drag-etapa-handle:hover {
    color: #12A594;
}

.esteira-card {
    position: relative;
}

.esteira-card-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 8px;
    white-space: nowrap;
}

.esteira-card-status-liberada {
    color: #087443;
    background-color: #dff8ec;
}

.esteira-card-status-rascunho {
    color: #946200;
    background-color: #fff4d6;
}

.esteira-card-status-bloqueada {
    color: #9f1239;
    background-color: #ffe4ea;
}

.esteira-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esteira-card-actions .btn {
    width: 33px;
    height: 33px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.esteira-card-icon-liberada {
    background-color: #E7F7F5;
    color: #12A594;
}

.esteira-card-icon-rascunho {
    background-color: #fff4d6;
    color: #946200;
}

.esteira-card-icon-bloqueada {
    background-color: #ffe4ea;
    color: #9f1239;
}

.esteira-builder-card {
    min-height: 620px;
}

.flow-node {
    width: 210px;
    min-height: 86px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease-in-out;
    padding: 12px 14px;
}


.flow-node-empty {
    border: 2px dashed #94a3b8;
    color: #64748b;
    background-color: #f8fafc;
    cursor: pointer;
}

.flow-node-empty:hover {
    border-color: #12A594;
    color: #12A594;
    background-color: #E7F7F5;
    transform: translateY(-1px);
}

.flow-node-empty-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
}

.flow-node-empty-text i {
    font-size: 1.2rem;
}

.flow-node-filled {
    border: 1px solid #b9d3ff;
    background-color: #E7F7F5;
    color: #1e293b;
    cursor: pointer;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.flow-node-filled:hover {
    background-color: #e3efff;
    border-color: #8bbcff;
    transform: translateY(-1px);
}

.flow-node-selected {
    border-color: #12A594;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .14);
}

.flow-node-complete {
    border-color: #86efac;
    background-color: #ecfdf5;
}

.flow-node-invalid {
    border-color: #fecaca;
    background-color: #fff1f2;
}

.flow-node-final {
    border-color: #bbf7d0;
    background-color: #f0fdf4;
}

.flow-node-title {
    font-size: .9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}


.flow-node-meta {
    font-size: .78rem;
    color: #64748b;
    margin-top: 4px;
}


.flow-node-icon {
    font-size: .78rem;
    color: #64748b;
}

.flow-node-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 999px;
    margin-top: 8px;
}


.flow-node-badge-pending {
    color: #946200;
    background-color: #fff4d6;
}

.flow-node-badge-complete {
    color: #087443;
    background-color: #dff8ec;
}

.flow-node-badge-final {
    color: #087443;
    background-color: #dff8ec;
}

.flow-node-badge-invalid {
    color: #9f1239;
    background-color: #ffe4ea;
}

.esteira-node-panel .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
}

.esteira-node-panel .btnNodeSaida {
    text-align: left;
    justify-content: flex-start;
}

.esteira-node-panel .btnNodeSaida i {
    width: 18px;
    text-align: center;
}

.esteira-flow-line {
    width: 2px;
    height: 38px;
    background-color: #cbd5e1;
    margin: 10px auto;
    position: relative;
}

.esteira-flow-line::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    transform: translateX(-50%) rotate(45deg);
}

.esteira-flow-branch-label {
    font-size: .75rem;
    font-weight: 700;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 10px;
}

.esteira-decision-box {
    min-width: 230px;
    max-width: 280px;
    border: 1px solid #CFEEE9;
    background-color: #EEF9F7;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    color: #1e3a8a;
    font-size: .88rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.esteira-decision-box i {
    color: #12A594;
}

.alternativa-condicional {
    font-size: .9rem;
}

@media (max-width: 1199.98px) {
    .esteira-builder-card,
    .esteira-node-panel {
        min-height: auto;
    }

    .esteira-flow-area {
        min-height: 420px;
    }

    .flow-start-wrapper {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .esteira-flow-area {
        padding: 20px;
    }

    .flow-node {
        width: 100%;
        max-width: 230px;
    }

    .esteira-flow-branch {
        flex-direction: column;
        gap: 22px;
    }
}

@media (max-width: 1400px) {
    .flow-node {
        width: 190px;
        min-height: 78px;
        padding: 10px 12px;
    }

    .esteira-flow-branch {
        gap: 22px;
    }

    .esteira-flow-branch-item {
        min-width: 190px;
    }

    .esteira-decision-card {
        min-width: 230px;
        max-width: 300px;
        padding: 12px 14px;
    }
}

.esteira-wizard-card {
    background-color: #fff;
}

.esteira-wizard-card .wizard-steps {
    margin-bottom: 24px;
}

.esteira-wizard-card .wizard-panel {
    min-height: 360px;
}

.node-saida-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.node-saida-option {
    display: block;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all .15s ease-in-out;
}

.node-saida-option:hover {
    background-color: #fff;
    border-color: #cbd5e1;
}

.node-saida-label {
    display: block;
    cursor: pointer;
}

.node-saida-option .form-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding-left: 0;
}

.node-saida-option .form-check-input {
    margin-left: 0;
    margin-top: 3px;
    flex-shrink: 0;
}

.node-saida-title {
    font-size: .86rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.node-saida-desc {
    font-size: .76rem;
    color: #64748b;
    line-height: 1.35;
    margin-top: 3px;
}

.node-saida-option:has(.node-tipo-saida:checked) {
    border-color: #12A594;
    background-color: #E7F7F5;
}

.node-condicional-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #CFEEE9;
    cursor: default;
}

.node-condicional-box .form-label {
    font-size: .8rem;
    font-weight: 600;
    color: #334155;
}

.alternativa-no-row .btn {
    width: 42px;
    padding-left: 0;
    padding-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#btnAddAlternativaNo {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.esteira-decision-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.esteira-decision-card {
    min-width: 260px;
    max-width: 380px;
    border: 1px solid #bfdbfe;
    background-color: #EEF9F7;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.esteira-decision-title {
    font-size: .72rem;
    font-weight: 700;
    color: #12A594;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.esteira-decision-question {
    font-size: .94rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}

.flow-node-wrapper > .flow-node {
    margin-left: auto;
    margin-right: auto;
}

.flow-next-simple,
.flow-conditional-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-node-reference {
    border: 1px solid #bfdbfe;
    background-color: #EEF9F7;
    color: #1e293b;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}


.esteira-node-panel {
    position: sticky;
    top: 10px;
    height: calc(100vh - 110px);
    overflow-y: auto;
}

.btn-flow-node {
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .86rem;
}

.btn-flow-node:hover {
    color: #dc3545;
}

.esteira-flow-area {
    height: calc(100vh - 100px);
    background-color: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 0;
    overflow: auto;
    position: relative;
}

.esteira-flow-canvas {
    width: max-content;
    min-width: 100%;
    padding: 42px 80px 56px 80px;
    box-sizing: border-box;
}

.flow-start-wrapper {
    min-height: 430px;
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.flow-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
}

.flow-conditional-area {
    width: max-content;
    margin-top: 10px;
}

.esteira-flow-branch {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 36px;
    margin-top: 8px;
    flex-wrap: nowrap;
}

.esteira-flow-branch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 230px;
}

.node-custom-fields-box {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.node-fields-list {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.node-fields-empty {
    font-size: .82rem;
    color: #64748b;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.node-custom-fields-box #btnNovoCampoNode {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.node-fields-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.node-field-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 9px 10px;
}

.node-field-drag {
    color: #94a3b8;
    cursor: grab;
    font-size: .9rem;
    flex-shrink: 0;
}

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

.node-field-title {
    font-size: .86rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.node-field-meta {
    font-size: .75rem;
    color: #64748b;
    margin-top: 2px;
}

.node-field-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.node-field-actions .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.node-field-cover-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: auto;
    margin-top: 6px;
    margin-bottom: 0;
    padding-left: 0;
}

.node-field-cover-switch .form-check-input {
    margin: 0;
    float: none;
}

.node-field-cover-switch .form-check-label {
    font-size: .73rem;
    color: #64748b;
    cursor: pointer;
}

.node-field-cover-switch .form-check-input:disabled + .form-check-label {
    cursor: not-allowed;
    opacity: .65;
}

.campo-opcoes-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.campo-opcao-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 6px 8px 6px 10px;
}

.campo-opcao-label {
    font-size: .84rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.2;
    min-width: 0;
    word-break: break-word;
}

.btnRemoveOpcaoCampoNode {
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    color: #dc3545;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.btnRemoveOpcaoCampoNode:hover {
    background-color: #fee2e2;
    color: #b91c1c;
}

.access-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.access-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
}

.access-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background-color: #E7F7F5;
    color: #12A594;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 700;
}

.access-avatar-group {
    border-radius: 10px;
}

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

.access-title {
    font-size: .9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.access-sub {
    font-size: .78rem;
    color: #64748b;
    margin-top: 2px;
}

.access-meta {
    font-size: .76rem;
    color: #475569;
    margin-top: 4px;
}

.etapa-permissoes-box .SumoSelect {
    width: 100%;
    display: block;
}

.etapa-permissoes-box .SumoSelect > .CaptionCont {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d9dee7;
    border-radius: 7px;
    padding: 6px 34px 6px 12px;
    background-color: #fff;
}

.etapa-permissoes-box .SumoSelect > .CaptionCont > span {
    color: #2d3748;
    font-size: .95rem;
    line-height: 24px;
}

.etapa-permissoes-box .SumoSelect.open > .optWrapper {
    width: 100%;
    top: 40px;
    border-radius: 8px;
    border-color: #d9dee7;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .12);
}

.etapa-permissoes-box .SumoSelect .optWrapper .options li.opt {
    padding: 8px 10px;
}

.etapa-permissoes-box .SumoSelect .optWrapper .options li.group > label {
    font-weight: 700;
    color: #1f2937;
    padding: 8px 10px 4px;
}

.etapa-permissoes-box .SumoSelect > .CaptionCont {
    position: relative;
    width: 100%;
    min-height: 38px;
    border: 1px solid #d9dee7;
    border-radius: 7px;
    padding: 7px 38px 7px 12px;
    background: #fff;
}

.etapa-permissoes-box .SumoSelect > .CaptionCont > label {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: 0;
    transform: translateY(-50%);
}

.etapa-permissoes-box .SumoSelect > .CaptionCont > label > i {
    display: block;
    width: 8px;
    height: 8px;
    border: solid #475569;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: 0;
    background: none;
}

.access-avatar-photo {
    overflow: hidden;
    padding: 0;
    background-color: transparent;
}

.access-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-permissions-box {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
}

.access-summary-card {
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 14px;
}

.access-summary-label {
    font-size: .78rem;
    color: #64748b;
}

.access-summary-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}

.review-access-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-access-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
}

.review-access-avatar,
.review-access-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #EEF9F7;
    color: #12A594;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-access-avatar-photo {
    padding: 0;
    overflow: hidden;
    background-color: transparent;
}

.review-access-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-access-content {
    min-width: 0;
}

.review-access-title {
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
}

.review-access-sub {
    font-size: .78rem;
    color: #64748b;
}

.review-access-meta {
    font-size: .76rem;
    color: #475569;
    margin-top: 2px;
}

.kanban-toolbar-search {
    width: 260px;
}

.kanban-toolbar-select {
    width: 220px;
}

@media (max-width: 768px) {
    .kanban-toolbar-search,
    .kanban-toolbar-select {
        width: 100%;
    }

    #toolbarKanbanPainel .btn {
        width: 100%;
    }
}

.kanban-nav-btn {
    position: fixed;
    top: 56%;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 99, 235, .25);
    border-radius: 50%;
    background-color: rgba(219, 234, 254, .82);
    color: #12A594;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .18);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.kanban-nav-btn:hover {
    background-color: rgba(191, 219, 254, .95);
    color: #0E8F80;
    border-color: rgba(37, 99, 235, .4);
    transform: translateY(-1px);
}

.kanban-nav-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
    background-color: rgba(226, 232, 240, .75);
    color: #64748b;
    border-color: rgba(148, 163, 184, .35);
}

.kanban-nav-left {
    left: 18px;
}

.kanban-nav-right {
    right: 18px;
}

.kanban-empty {
    max-width: 980px;
    margin: 28px auto 0 auto;
}

.kanban-empty > p {
    max-width: 720px;
    line-height: 1.55;
}

.kanban-empty .row {
    margin-bottom: 1.25rem !important;
}

.kanban-empty .alert {
    font-size: 13px;
    border-radius: 999px;
    padding: 8px 14px;
}

@media (max-height: 820px) {
    .kanban-empty {
        margin-top: 18px;
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }

    .kanban-empty .mb-3 {
        margin-bottom: .75rem !important;
    }

    .kanban-empty .fa-3x {
        font-size: 2.2em;
    }

    .kanban-empty h5 {
        margin-bottom: .5rem !important;
    }

    .kanban-empty > p {
        margin-bottom: 1.25rem !important;
        line-height: 1.45;
    }

    .kanban-empty .row {
        margin-bottom: 1rem !important;
    }

    .kanban-empty .border.rounded-3 {
        padding: .85rem !important;
    }

    .kanban-empty .small {
        font-size: .8rem;
    }
}

img.member-avatar {
    object-fit: cover;
    padding: 0;
}

#kanbanMainPainel {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
}

#kanbanBoardTaskway {
    width: max-content;
    min-width: 100%;
}

@media (max-width: 768px) {
    .kanban-nav-btn {
        width: 38px;
        height: 38px;
    }

    .kanban-nav-left {
        left: 10px;
    }

    .kanban-nav-right {
        right: 10px;
    }
}

.empty-state {
    width: 100%;
    min-height: 320px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 24px;
    text-align: center;
}

.empty-state-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(13, 110, 253, 0.10);
    color: #12A594;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 22px;
}

.empty-state h4 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.empty-state p {
    max-width: 680px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.empty-state-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.empty-state-info div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

.empty-state-info i {
    color: #12A594;
}

.campo-node-config-list {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.campo-node-config-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}

.campo-node-config-item:last-child {
    border-bottom: 0;
}

.campo-node-config-switch {
    margin: 0;
    padding-top: 2px;
    min-width: 42px;
}

.campo-node-config-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    cursor: pointer;
}

.campo-node-config-title {
    font-weight: 600;
    color: #1f2937;
}

.campo-node-config-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}


/* =========================================================
   CARD PAGE
========================================================= */

.card-page .app-card {
    height: auto;
    background-color: #fff;
}

.card-detail-board {
    padding: 0;
    overflow: hidden;
}

.card-detail-grid {
    display: grid;
    grid-template-columns: 1.25fr .95fr;
    grid-template-rows: auto minmax(360px, 1fr);
}

.card-detail-section {
    padding: 22px 24px;
    min-width: 0;
}

.card-detail-section-main {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.card-detail-section-fields {
    border-bottom: 1px solid #e5e7eb;
}

.card-detail-section-history {
    border-right: 1px solid #e5e7eb;
}

.card-section-title {
    font-size: .98rem;
    font-weight: 700;
    color: #0f172a;
}

.card-section-sub {
    font-size: .8rem;
    color: #64748b;
}

.card-data-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.card-data-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #334155;
    font-size: .9rem;
    line-height: 1.45;
}

.card-data-row span {
    color: #475569;
    font-weight: 600;
    min-width: 118px;
}

.card-data-row strong {
    color: #0f172a;
    font-weight: 500;
}

.card-data-row-description {
    margin-top: 6px;
    flex-direction: column;
    gap: 4px;
}

.card-data-row-description span {
    min-width: 0;
}

.card-data-row-description div {
    color: #334155;
    line-height: 1.55;
    white-space: pre-line;
}

.card-actions-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.card-field-group {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background-color: #fff;
}

.card-field-group-header {
    min-height: 46px;
    padding: 10px 14px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-field-group-title {
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
}

.card-field-group-meta {
    font-size: .76rem;
    color: #64748b;
}

.card-field-list {
    padding: 14px;
}

.card-field-row {
    display: grid;
    grid-template-columns: minmax(170px, 230px) 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.card-field-row:last-child {
    border-bottom: 0;
}

.card-field-label {
    font-size: .86rem;
    font-weight: 600;
    color: #334155;
}

.card-field-help {
    font-size: .75rem;
    color: #64748b;
    margin-top: 3px;
}

.card-field-locked {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 9px 10px;
    color: #64748b;
    font-size: .82rem;
}

.card-field-locked i {
    color: #12A594;
}

.card-history-list,
.card-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-history-item,
.card-attachment-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f8fafc;
}

.card-history-icon,
.card-attachment-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background-color: #E7F7F5;
    color: #12A594;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-history-title,
.card-attachment-title {
    font-size: .9rem;
    font-weight: 700;
    color: #1e293b;
}

.card-history-meta,
.card-attachment-meta {
    font-size: .78rem;
    color: #64748b;
    margin-top: 2px;
}

.card-history-desc,
.card-attachment-desc {
    font-size: .84rem;
    color: #475569;
    margin-top: 6px;
}

.card-history-desc {
    white-space: pre-line;
}

@media (max-width: 1199.98px) {
    .card-detail-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-detail-section-main,
    .card-detail-section-history {
        border-right: 0;
    }

    .card-detail-section-main,
    .card-detail-section-fields,
    .card-detail-section-history {
        border-bottom: 1px solid #e5e7eb;
    }
}

@media (max-width: 767.98px) {
    .card-detail-section {
        padding: 18px;
    }

    .card-data-row {
        flex-direction: column;
        gap: 2px;
    }

    .card-data-row span {
        min-width: 0;
    }

    .card-actions-footer .btn {
        width: 100%;
    }

    .card-field-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.btn-card-action {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: .84rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.card-toolbar {
    width: 100%;
    min-height: 86px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
}

.card-toolbar-title-area {
    min-width: 0;
    flex: 1;
}

.card-toolbar-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.card-toolbar-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.card-toolbar-meta {
    font-size: .84rem;
    color: #64748b;
}

.card-toolbar-meta strong {
    color: #1f2937;
    font-weight: 600;
}

.card-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.card-page {
    padding: 24px 28px;
}

.card-page .app-page-content {
    padding: 0;
}

.card-action-hint {
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background-color: #EEF9F7;
    color: #1e3a8a;
    font-size: .86rem;
}

.card-action-hint-title {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.card-action-hint-question {
    color: #1e40af;
    margin-bottom: 8px;
}

.card-action-hint-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-action-hint-option {
    padding: 4px 9px;
    border-radius: 999px;
    background-color: #CFEEE9;
    color: #0E8F80;
    font-size: .78rem;
    font-weight: 600;
}

.card-action-radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.card-action-radio-option {
    cursor: pointer;
    margin: 0;
}

.card-action-radio-option input {
    display: none;
}

.card-action-radio-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: #CFEEE9;
    color: #0E8F80;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all .15s ease;
}

.card-action-radio-option:hover span {
    background-color: #bfdbfe;
}

.card-action-radio-option input:checked + span {
    background-color: #12A594;
    border-color: #12A594;
    color: #fff;
}

.card-field-edit-row {
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}

.card-field-edit-row:last-child {
    border-bottom: 0;
}

.card-field-edit-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 3px;
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
}

.card-field-readonly-group {
    max-width: 100%;
}

.card-field-readonly-input {
    background-color: #f8fafc;
    border-color: #dbe3ef;
    color: #0f172a;
    font-size: .9rem;
    cursor: default;
}

.card-field-readonly-input:focus {
    background-color: #f8fafc;
    border-color: #dbe3ef;
    box-shadow: none;
}

.btn-card-field-edit {
    border-color: #f59e0b;
    background-color: #fff7ed;
    color: #ea580c;
    min-width: 42px;
}

.btn-card-field-edit:hover {
    border-color: #ea580c;
    background-color: #ea580c;
    color: #fff;
}

/* ======================================================
   Permissões extras da etapa
   ====================================================== */

#boxPermissoesExtrasEtapa {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

#boxPermissoesExtrasEtapa .table-responsive {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
}

#boxPermissoesExtrasEtapa table {
    margin-bottom: 0;
    font-size: .875rem;
}

#boxPermissoesExtrasEtapa thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .68rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: .01em;
    border-bottom: 1px solid #e5e7eb;
    padding: .6rem .75rem;
    white-space: nowrap;
}

.etapa-extra-perm-col {
    width: 120px;
}

#boxPermissoesExtrasEtapa tbody td {
    padding: .65rem .75rem;
}

#boxPermissoesExtrasEtapa .form-switch .form-check-input {
    width: 2.1em;
    height: 1.15em;
}

#boxPermissoesExtrasEtapa tbody tr:last-child td {
    border-bottom: 0;
}

#boxPermissoesExtrasEtapa tbody tr:hover {
    background: #f8fafc;
}

.etapa-extra-perm-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex: 0 0 auto;
}

.etapa-extra-perm-title {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.15;
}

.etapa-extra-perm-sub {
    color: #64748b;
    font-size: .78rem;
    margin-top: 2px;
}

#boxPermissoesExtrasEtapa .form-switch {
    padding-left: 0;
}

#boxPermissoesExtrasEtapa .form-switch .form-check-input {
    margin-left: 0;
    cursor: pointer;
    width: 2.4em;
    height: 1.25em;
}

#boxPermissoesExtrasEtapa .form-check-input:checked {
    background-color: #12A594;
    border-color: #12A594;
}

/* ======================================================
   Modal de etapas com rolagem
   ====================================================== */

#mdEtapasPainel .modal-content {
    max-height: calc(100vh - 32px);
}

#mdEtapasPainel .modal-body {
    overflow-y: auto;
}

#mdEtapasPainel .modal-header {
    flex-shrink: 0;
}

#mdEtapasPainel .modal-footer {
    flex-shrink: 0;
    background: #fff;
}

.coluna-projeto.is-collapsed .btnEditColunaProjeto,
.coluna-projeto.is-collapsed .btnExcluirColunaProjeto {
    display: none;
}

.kanban-column-drag {
    cursor: grab;
}

.kanban-column-drag:active {
    cursor: grabbing;
}

.kanban-column-ghost {
    opacity: .45;
}

.campo-projeto-item {
    background: #fff;
}

.campo-projeto-item .form-control,
.campo-projeto-item .form-select,
.campo-projeto-item .input-group-text {
    min-height: 36px;
    padding-top: .375rem;
    padding-bottom: .375rem;
    font-size: .875rem;
}

.campo-projeto-item .form-label {
    font-size: .86rem;
}

.campo-projeto-item .btnEditarCampoProjetoIcone {
    color: #fd7e14;
    text-decoration: none;
    box-shadow: none !important;
}

.campo-projeto-item .btnEditarCampoProjetoIcone:hover,
.campo-projeto-item .btnEditarCampoProjetoIcone:focus {
    color: #e46b0a;
    text-decoration: none;
}

.campo-projeto-item .btnSalvarValorCampoProjeto {
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.campo-projeto-item .btnSalvarValorCampoProjeto:disabled {
    opacity: .65;
}

.campo-projeto-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.campo-projeto-input-row .form-control,
.campo-projeto-input-row .form-select,
.campo-projeto-input-row .input-group {
    flex: 1 1 auto;
    min-width: 0;
}

.campo-projeto-item .btnEditarCampoProjetoIcone {
    color: #f59e0b;
    text-decoration: none;
    box-shadow: none !important;
}

.campo-projeto-item .btnEditarCampoProjetoIcone:hover,
.campo-projeto-item .btnEditarCampoProjetoIcone:focus {
    color: #d97706;
    text-decoration: none;
}

.campo-projeto-item .btnSalvarValorCampoProjeto {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.campo-projeto-item .btnSalvarValorCampoProjeto:disabled {
    opacity: .65;
}

.btn-icon-action {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-editar-inline,
.btnEditarCampoProjetoIcone {
    color: #f59e0b !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.btn-editar-inline:hover,
.btnEditarCampoProjetoIcone:hover {
    color: #d97706 !important;
}

.projeto-toolbar-descricao {
    max-width: 720px;
}

.projeto-checklists-box {
    position: sticky;
    top: 90px;
}

.projeto-participantes-offcanvas {
    width: 420px !important;
    max-width: 92vw;
}

.campo-projeto-item .form-label {
    min-width: 0;
}

.campo-projeto-info {
    color: #6c757d;
    text-decoration: none;
    box-shadow: none !important;
}

.campo-projeto-info:hover,
.campo-projeto-info:focus {
    color: #12A594;
}

.campo-projeto-meta {
    font-size: .9rem;
    line-height: 1;
}

.campo-projeto-item .btnEditarCampoProjetoIcone,
.campo-projeto-item .campo-projeto-info {
    font-size: .8rem;
}

@media (max-width: 1199.98px) {
    .projeto-checklists-box {
        position: static;
    }
}

.campo-projeto-drag-handle {
    display: none;
    color: #6c757d;
    text-decoration: none;
    cursor: grab;
    box-shadow: none !important;
}

.campo-projeto-drag-handle:active {
    cursor: grabbing;
}

#listaCamposProjeto.modo-ordenacao .campo-projeto-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#listaCamposProjeto.modo-ordenacao .campo-projeto-corpo,
#listaCamposProjeto.modo-ordenacao .campo-projeto-acoes-titulo,
#listaCamposProjeto.modo-ordenacao .campo-projeto-metadados {
    display: none !important;
}

#listaCamposProjeto.modo-ordenacao .campo-projeto-item {
    min-height: 58px;
    display: flex;
    align-items: center;
    cursor: default;
}

#listaCamposProjeto.modo-ordenacao .campo-projeto-cabecalho {
    width: 100%;
}

#listaCamposProjeto.modo-ordenacao .campo-projeto-drag-handle {
    font-size: 1rem;
}

.campo-projeto-ghost {
    opacity: .35;
}

.campo-projeto-chosen .campo-projeto-item {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12);
}

.projeto-historico-offcanvas {
    width: 560px !important;
    max-width: 95vw;
}

.historico-projeto-grupo {
    position: relative;
    padding: 0 20px 8px 20px;
}

.historico-projeto-data {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 16px 0 10px 0;
    font-size: .72rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.historico-projeto-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 4px 0 22px 0;
}

.historico-projeto-linha {
    position: absolute;
    left: 16px;
    top: 34px;
    bottom: -4px;
    width: 1px;
    background: #e5e7eb;
}

.historico-projeto-item:last-child .historico-projeto-linha {
    display: none;
}

.historico-projeto-icone {
    position: relative;
    z-index: 1;
    width: 33px;
    min-width: 33px;
    height: 33px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    border: 1px solid transparent;
}

.historico-projeto-icone-primary {
    color: #12A594;
    background: #EEF9F7;
    border-color: #bfdbfe;
}

.historico-projeto-icone-success {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.historico-projeto-icone-warning {
    color: #d97706;
    background: #fffbeb;
    border-color: #fde68a;
}

.historico-projeto-icone-danger {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.historico-projeto-icone-secondary {
    color: #6b7280;
    background: #f8fafc;
    border-color: #e5e7eb;
}

.historico-projeto-conteudo {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 4px;
}

.historico-projeto-titulo {
    font-size: .9rem;
    line-height: 1.4;
    color: #212529;
}

.historico-projeto-hora {
    flex-shrink: 0;
    font-size: .75rem;
    color: #9ca3af;
}

.historico-projeto-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
}

.historico-projeto-ver-detalhes {
    font-size: .76rem;
    text-decoration: none;
}

.historico-projeto-detalhes {
    margin-top: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: .8rem;
}

.historico-projeto-detalhe-item + .historico-projeto-detalhe-item,
.historico-projeto-alteracao + .historico-projeto-alteracao {
    margin-top: 10px;
}

.historico-projeto-detalhe-label {
    color: #6b7280;
    font-size: .72rem;
    margin-bottom: 3px;
}

.historico-projeto-detalhe-valor {
    color: #212529;
    word-break: break-word;
}

.historico-projeto-valores {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.historico-projeto-valor-anterior {
    color: #6b7280;
    text-decoration: line-through;
    word-break: break-word;
}

.historico-projeto-valor-novo {
    color: #212529;
    font-weight: 500;
    word-break: break-word;
}

.historico-projeto-ordem {
    margin: 4px 0 0 0;
    padding-left: 20px;
}

.historico-projeto-ordem li {
    margin-bottom: 3px;
    color: #374151;
}

.peso-projeto-resumo {
    height: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.peso-projeto-resumo-label {
    color: #6b7280;
    font-size: .75rem;
    margin-bottom: 4px;
}

.peso-projeto-resumo-valor {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
}

.peso-projeto-item .txtPesoEfetivoProjeto {
    font-size: .9rem;
    color: #111827;
}

.peso-projeto-item .edtPesoDistribuicaoProjeto:disabled {
    background: #f8fafc;
    color: #9ca3af;
}

.projeto-historico-offcanvas .offcanvas-header .btn-icon-action {
    width: 38px;
    height: 38px;
}

.projeto-historico-offcanvas .offcanvas-header .btn-icon-action i {
    font-size: .9rem;
}

.checklist-projeto-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.checklist-projeto-card + .checklist-projeto-card {
    margin-top: 10px;
}

.checklist-projeto-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
}

.checklist-projeto-toggle {
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    color: #6b7280;
    text-decoration: none;
    box-shadow: none !important;
}

.checklist-projeto-titulo-box {
    flex: 1 1 auto;
    min-width: 0;
}

.checklist-projeto-titulo {
    font-size: .86rem;
    font-weight: 600;
    color: #111827;
}

.checklist-projeto-descricao {
    margin-top: 3px;
    font-size: .74rem;
    color: #6b7280;
}

.checklist-projeto-info {
    font-size: .75rem;
    color: #6b7280;
    text-decoration: none;
    box-shadow: none !important;
}

.checklist-projeto-info:hover {
    color: #12A594;
}

.btnEditarChecklistProjeto {
    font-size: .75rem;
    color: #f59e0b !important;
    text-decoration: none;
    box-shadow: none !important;
}

.btnEditarChecklistProjeto:hover {
    color: #d97706 !important;
}

.checklist-projeto-contador {
    flex-shrink: 0;
    font-size: .7rem;
}

.checklist-projeto-conteudo {
    padding: 0 12px 12px 44px;
    border-top: 1px solid #f1f5f9;
}

.checklist-projeto-chevron {
    transition: transform .2s ease;
}

.checklist-projeto-toggle[aria-expanded="true"] .checklist-projeto-chevron {
    transform: rotate(180deg);
}

.checklist-projeto-progress {
    height: 4px;
    background: #eef2f7;
}

.checklist-projeto-percentual {
    font-size: .68rem;
    color: #6b7280;
}

.checklist-projeto-itens {
    padding-top: 8px;
}

.checklist-projeto-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.checklist-projeto-item:last-child {
    border-bottom: 0;
}

.checklist-projeto-item .form-check {
    padding-left: 1.35rem;
    flex-shrink: 0;
}

.checklist-projeto-item-conteudo {
    flex: 1 1 auto;
    min-width: 0;
}

.checklist-projeto-item-descricao {
    font-size: .8rem;
    line-height: 1.35;
    color: #374151;
}

.checklist-projeto-item-descricao.checklist-item-concluido {
    color: #9ca3af;
    text-decoration: line-through;
}

.checklist-projeto-item-meta {
    font-size: .7rem;
}

.btnEditarItemChecklistProjeto {
    color: #f59e0b !important;
    text-decoration: none !important;
    box-shadow: none !important;
    font-size: .7rem;
}

.btnEditarItemChecklistProjeto:hover {
    color: #d97706 !important;
}

.btnPesosChecklistProjeto {
    color: #64748b !important;
    text-decoration: none !important;
    box-shadow: none !important;
    font-size: .75rem;
}

.btnPesosChecklistProjeto:hover {
    color: #12A594 !important;
}

.projeto-toolbar-grid {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    column-gap: 16px;
    align-items: start;
}

.projeto-toolbar-voltar {
    grid-column: 1;
    grid-row: 1;
}

.projeto-toolbar-conteudo {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.projeto-toolbar-acoes {
    grid-column: 3;
    grid-row: 1;
}

.projeto-andamento {
    grid-column: 2 / 4;
    grid-row: 2;
    width: 100%;
    margin-top: 10px;
}

.projeto-andamento-barra {
    height: 6px;
    border-radius: 999px;
}

.projeto-andamento-barra .progress-bar {
    border-radius: 999px;
    transition: width .3s ease;
}

.projeto-andamento-info {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 400;
    color: #6c757d;
}
/* ======================================================
   HOME - CENTRAL DE TRABALHO
====================================================== */

.home-dashboard {
    padding: 28px;
    max-width: 1600px;
    margin: 0 auto;
}

.home-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.home-dashboard-eyebrow {
    color: #12A594;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.home-dashboard-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -.03em;
}

.home-dashboard-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: .95rem;
}

.home-dashboard-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.home-kpi-card {
    height: 100%;
    min-height: 178px;
    padding: 20px;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .045);
}

.home-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 18px;
}

.home-kpi-icon-blue {
    background: #E7F7F5;
    color: #12A594;
}

.home-kpi-icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.home-kpi-icon-amber {
    background: #fff7df;
    color: #d97706;
}

.home-kpi-icon-green {
    background: #e9f8ef;
    color: #198754;
}

.home-kpi-value {
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.03em;
}

.home-kpi-label {
    color: #1e293b;
    font-size: .92rem;
    font-weight: 700;
    margin-top: 8px;
}

.home-kpi-meta {
    min-height: 34px;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.4;
    margin-top: 5px;
}

.home-kpi-alert {
    display: inline-block;
    margin-left: 5px;
    color: #dc3545;
    font-weight: 700;
}

.home-panel-card {
    overflow: hidden;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .04);
}

.home-panel-header {
    min-height: 84px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-panel-title {
    color: #172033;
    font-size: .96rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-panel-subtitle {
    color: #7a8799;
    font-size: .78rem;
    line-height: 1.4;
    margin-top: 4px;
}

.home-panel-link {
    color: #12A594;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-panel-link:hover {
    color: #0E8F80;
    text-decoration: underline;
}

.home-panel-body {
    min-height: 230px;
}

.home-attention-list,
.home-project-action-list,
.home-stage-list,
.home-project-list {
    display: flex;
    flex-direction: column;
}

.home-attention-item,
.home-project-action,
.home-stage-item,
.home-project-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    text-align: left;
    transition: background-color .15s ease;
}

.home-attention-item:last-child,
.home-project-action:last-child,
.home-stage-item:last-child,
.home-project-item:last-child {
    border-bottom: 0;
}

.home-attention-item:hover,
.home-project-action:hover,
.home-stage-item:hover,
.home-project-item:hover {
    background: #F6FBFA;
}

.home-attention-item {
    position: relative;
    min-height: 74px;
    padding: 13px 42px 13px 22px;
    display: grid;
    grid-template-columns: 5px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
}

.home-attention-marker {
    width: 5px;
    height: 38px;
    border-radius: 999px;
    background: #cbd5e1;
}

.home-attention-marker-atrasado {
    background: #dc3545;
}

.home-attention-marker-vence_hoje {
    background: #f59e0b;
}

.home-attention-content,
.home-project-action-content,
.home-stage-content,
.home-project-main {
    min-width: 0;
}

.home-attention-title,
.home-project-action-title,
.home-stage-title,
.home-project-title {
    display: block;
    color: #172033;
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-attention-meta,
.home-project-action-meta,
.home-stage-meta,
.home-project-meta {
    display: block;
    color: #7a8799;
    font-size: .75rem;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-attention-side {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
}

.home-attention-arrow,
.home-project-arrow {
    position: absolute;
    right: 18px;
    color: #c0cad8;
    font-size: .7rem;
}

.home-deadline {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #64748b;
    font-size: .74rem;
    font-weight: 600;
}

.home-deadline-atrasado {
    color: #dc3545;
}

.home-deadline-hoje,
.home-deadline-vence_hoje {
    color: #d97706;
}

.home-deadline-ok {
    color: #198754;
}

.home-deadline-sem_prazo {
    color: #94a3b8;
}

.home-project-action {
    min-height: 72px;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.home-project-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #E7F7F5;
    color: #12A594;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
}

.home-stage-item {
    min-height: 72px;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
}

.home-stage-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f4f7fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-stage-numbers {
    min-width: 52px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.home-stage-numbers strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1;
}

.home-stage-numbers span {
    color: #94a3b8;
    font-size: .7rem;
    margin-top: 3px;
}

.home-stage-overdue {
    min-width: 82px;
    text-align: center;
}

.home-project-item {
    position: relative;
    min-height: 82px;
    padding: 13px 42px 13px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.home-project-progress-wrap {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-project-progress {
    width: 150px;
    max-width: 55%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
}

.home-project-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #12A594;
}

.home-project-progress-text {
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
}

.home-empty-state {
    min-height: 230px;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
}

.home-empty-state-small {
    min-height: 210px;
}

.home-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #edf8f1;
    color: #198754;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.home-empty-state strong {
    color: #334155;
    font-size: .88rem;
}

.home-empty-state span {
    max-width: 420px;
    font-size: .76rem;
    line-height: 1.45;
    margin-top: 4px;
}

@media (max-width: 1199.98px) {
    .home-dashboard {
        padding: 22px;
    }
}

@media (max-width: 767.98px) {
    .home-dashboard {
        padding: 18px 14px 28px;
    }

    .home-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-dashboard-actions {
        width: 100%;
    }

    .home-dashboard-actions .btn {
        flex: 1;
    }

    .home-kpi-card {
        min-height: auto;
    }

    .home-attention-item {
        grid-template-columns: 5px minmax(0, 1fr);
        padding-right: 18px;
    }

    .home-attention-side {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .home-attention-arrow {
        display: none;
    }

    .home-project-action {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .home-project-action .home-deadline {
        grid-column: 2;
    }

    .home-stage-item {
        grid-template-columns: 36px minmax(0, 1fr) auto;
    }

    .home-stage-overdue {
        grid-column: 2 / 4;
        justify-self: start;
    }

    .home-project-item {
        grid-template-columns: 1fr;
    }

    .home-project-item > .home-deadline {
        margin-top: -6px;
    }

    .home-project-arrow {
        display: none;
    }
}


/* ======================================================
   CABEÇALHOS INTERNOS - PADRÃO TASKWAY
   ====================================================== */

.taskway-page-header {
    background: #fff;
    border-bottom: 1px solid var(--app-border);
}

.taskway-page-header-inner {
    padding: 12px 28px 0;
}

.taskway-page-header-simple {
    padding-bottom: 14px;
}

.taskway-page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;
}

.taskway-page-back:hover,
.taskway-page-back:focus {
    color: #12A594;
    text-decoration: none;
}

.taskway-page-back i {
    font-size: .78rem;
}

.taskway-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.taskway-page-heading-content {
    min-width: 0;
    flex: 1 1 auto;
}

.taskway-page-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.taskway-page-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.taskway-page-subtitle {
    margin-top: 3px;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.35;
}

.taskway-page-subtitle strong {
    color: #334155;
    font-weight: 600;
}

.taskway-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.taskway-page-actions .btn {
    min-height: 34px;
    font-size: .84rem;
}

.taskway-config-dropdown .dropdown-menu {
    min-width: 210px;
    padding: 7px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
}

.taskway-config-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #475569;
    font-size: .86rem;
}

.taskway-config-dropdown .dropdown-item:hover,
.taskway-config-dropdown .dropdown-item:focus {
    background: #F2FAF8;
    color: #12A594;
}

.taskway-page-tabs-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
}

.taskway-view-tabs {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    min-width: 0;
}

.taskway-view-tab {
    min-height: 36px;
    margin-bottom: -1px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.taskway-view-tab:hover:not(:disabled):not(.active) {
    color: #12A594;
    background: #F6FBFA;
}

.taskway-view-tab.active {
    border-color: var(--app-border);
    border-bottom-color: #fff;
    background: #fff;
    color: #12A594;
}

.taskway-view-tab:disabled {
    color: #a0aabc;
    cursor: default;
}

.taskway-tabs-action {
    margin-bottom: 4px;
    flex-shrink: 0;
}

.taskway-page-filterbar {
    background: #fff;
    border-bottom: 1px solid var(--app-border);
    padding: 8px 28px;
}

.taskway-page-filterbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.taskway-page-filterbar .form-control,
.taskway-page-filterbar .form-select,
.taskway-page-filterbar .input-group-text,
.taskway-page-filterbar .btn {
    min-height: 32px;
}

.taskway-list-search {
    width: min(420px, 100%);
}

.taskway-list-select-esteira {
    width: 240px;
}

.taskway-list-select-status {
    width: 170px;
}

.taskway-list-select-prioridade {
    width: 150px;
}

.card-page-header .taskway-page-title {
    font-size: 1.35rem;
}

@media (max-width: 991.98px) {
    .taskway-page-heading {
        flex-direction: column;
        gap: 14px;
    }

    .taskway-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .taskway-page-tabs-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .taskway-tabs-action {
        margin-bottom: 12px;
    }
}

@media (max-width: 767.98px) {
    .taskway-page-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .taskway-page-title {
        font-size: 1.35rem;
    }

    .taskway-page-actions .btn,
    .taskway-config-dropdown,
    .taskway-config-dropdown > .btn,
    .taskway-tabs-action,
    .taskway-tabs-action .btn {
        width: 100%;
    }

    .taskway-view-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .taskway-view-tab {
        flex: 0 0 auto;
    }

    .taskway-page-filterbar {
        padding: 8px 16px;
    }

    .taskway-page-filterbar-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .taskway-page-filterbar .kanban-toolbar-search,
    .taskway-page-filterbar .kanban-toolbar-select,
    .taskway-list-search,
    .taskway-list-select-esteira,
    .taskway-list-select-status,
    .taskway-list-select-prioridade,
    .taskway-page-filterbar .btn {
        width: 100%;
    }
}


/* ======================================================
   PROJETOS - ADEQUAÇÃO AO CABEÇALHO PADRÃO TASKWAY
   ====================================================== */

.projeto-page-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 6px;
    color: #64748b;
    font-size: .78rem;
}

.projeto-page-meta strong {
    color: #334155;
    font-weight: 600;
}

.projeto-page-progress {
    max-width: 720px;
    margin-top: 8px;
}

.projeto-page-actions {
    flex-wrap: nowrap;
}

.projeto-painel-header + .kanban-main {
    height: calc(100vh - 140px);
}

@media (max-width: 991.98px) {
    .projeto-page-actions {
        flex-wrap: wrap;
    }

    .projeto-painel-header + .kanban-main {
        height: calc(100vh - 170px);
    }
}

@media (max-width: 767.98px) {
    .projeto-page-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .projeto-page-actions {
        width: auto;
        flex-direction: row;
    }

    .projeto-page-header .taskway-page-actions .btn-icon-action {
        width: 38px;
        min-width: 38px;
    }

    .projeto-painel-header + .kanban-main {
        height: auto;
        min-height: calc(100vh - 180px);
    }
}

/* ======================================================
   DASHBOARD DO PAINEL
   ====================================================== */

.dashboard-filterbar-inner {
    align-items: flex-end;
    justify-content: flex-start;
}

.dashboard-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-filter-label {
    color: #64748b;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-period-select {
    width: 180px;
}

.dashboard-custom-period {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.dashboard-custom-period .form-control {
    width: 145px;
}

.dashboard-filter-esteiras {
    margin-left: 2px;
}

.dashboard-esteiras-button {
    min-width: 210px;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dashboard-esteiras-button > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-esteiras-menu {
    width: min(360px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-esteiras-search {
    padding: 10px;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
}

.dashboard-esteiras-list {
    max-height: 290px;
    overflow-y: auto;
    padding: 6px;
}

.dashboard-esteira-option {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #334155;
    font-size: .82rem;
    cursor: pointer;
}

.dashboard-esteira-option:hover {
    background: #f6f8fc;
}

.dashboard-esteira-option-all {
    font-weight: 700;
}

.dashboard-filter-loading {
    padding: 14px 10px;
    color: #64748b;
    font-size: .8rem;
    text-align: center;
}

.dashboard-period-caption {
    margin-left: auto;
    padding-bottom: 7px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 600;
}

.dashboard-page {
    position: relative;
    max-width: 1680px;
    margin: 0 auto;
    padding: 16px 20px 28px;
}

.dashboard-loading {
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 1080;
    padding: 8px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
}

.dashboard-kpi-card {
    height: 100%;
    min-height: 142px;
    padding: 16px 18px;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,23,42,.035);
}

.dashboard-kpi-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.dashboard-kpi-icon-blue {
    background: #E7F7F5;
    color: #12A594;
}

.dashboard-kpi-icon-red {
    background: #fff0f0;
    color: #dc3545;
}

.dashboard-kpi-icon-green {
    background: #eaf8ef;
    color: #198754;
}

.dashboard-kpi-icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.dashboard-kpi-value {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
}

.dashboard-kpi-label {
    margin-top: 7px;
    color: #1e293b;
    font-size: .86rem;
    font-weight: 700;
}

.dashboard-kpi-meta {
    margin-top: 4px;
    color: #7a8799;
    font-size: .72rem;
    line-height: 1.35;
}

.dashboard-panel-card {
    overflow: hidden;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,23,42,.03);
}

.dashboard-panel-header {
    min-height: 68px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-panel-header-wrap {
    flex-wrap: wrap;
}

.dashboard-panel-title {
    color: #172033;
    font-size: .94rem;
    font-weight: 700;
}

.dashboard-panel-subtitle {
    margin-top: 3px;
    color: #7a8799;
    font-size: .75rem;
    line-height: 1.35;
}

.dashboard-panel-badge {
    padding: 5px 9px;
    border: 1px solid #e1e7ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-chart {
    width: 100%;
    padding: 8px 10px 4px;
}

.dashboard-chart-trend,
.dashboard-chart-stage {
    min-height: 310px;
}

.dashboard-chart-performance {
    min-height: 220px;
    border-bottom: 1px solid #edf1f6;
}

.dashboard-chart-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: .8rem;
    text-align: center;
}

.dashboard-chart-empty i {
    font-size: 1.5rem;
}

.dashboard-table-wrap {
    padding: 0 16px 10px;
}

.dashboard-table {
    font-size: .78rem;
}

.dashboard-table thead th {
    padding-top: 12px;
    padding-bottom: 10px;
    border-bottom-color: #dfe6ef;
    color: #64748b;
    font-size: .69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.dashboard-table tbody td {
    padding-top: 11px;
    padding-bottom: 11px;
    border-bottom-color: #edf1f6;
    color: #475569;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-table-name {
    color: #1e293b;
    font-weight: 600;
}

.dashboard-table-percent {
    display: inline-block;
    min-width: 46px;
    margin-left: 5px;
    font-size: .7rem;
    font-weight: 700;
}

.dashboard-history-note {
    padding: 9px 12px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .73rem;
}

@media (max-width: 991.98px) {
    .dashboard-filterbar-inner {
        align-items: stretch;
    }

    .dashboard-period-caption {
        width: 100%;
        margin-left: 0;
        padding: 2px 0 0;
    }

    .dashboard-filter-group,
    .dashboard-period-select,
    .dashboard-filter-esteiras,
    .dashboard-esteiras-button {
        width: 100%;
        max-width: none;
    }

    .dashboard-custom-period {
        width: 100%;
    }

    .dashboard-custom-period .dashboard-filter-group,
    .dashboard-custom-period .form-control {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .dashboard-page {
        padding: 12px 12px 24px;
    }

    .dashboard-custom-period {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-kpi-card {
        min-height: 128px;
    }

    .dashboard-panel-header {
        padding: 13px 14px;
    }

    .dashboard-table-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* ======================================================
   IDENTIDADE VISUAL TASKWAY - FAMÍLIA CMA
   Paleta-base: navy + teal + superfícies claras
   ====================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--tw-primary-dark);
}

a {
    color: var(--tw-primary);
}

a:hover {
    color: var(--tw-accent);
}

.app-main {
    background: var(--tw-bg);
}

/* TOPBAR */
.navbar-taskway {
    min-height: 68px;
    background: var(--tw-primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 4px 16px rgba(16, 42, 61, .13);
}

.navbar-taskway .navbar-brand,
.navbar-taskway .navbar-brand:hover {
    color: #fff;
}

.navbar-taskway .app-logo {
    height: 36px;
}

.taskway-brand-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 44px;
}

.taskway-company-name {
    position: absolute;
    left: 34px;
    bottom: -1px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, .58);
    font-size: .70rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .01em;
}

.navbar-taskway-nav .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .68);
}

.navbar-taskway-nav .nav-link:hover,
.navbar-taskway-nav .nav-link.show,
.navbar-taskway .nav-item.dropdown:hover > .nav-link {
    color: #fff;
    background: rgba(var(--tw-accent-rgb), .10);
}

.navbar-taskway-nav .nav-link.active {
    color: #fff;
    background: rgba(var(--tw-accent-rgb), .14);
    box-shadow: inset 0 -2px 0 var(--tw-accent);
}

.navbar-taskway-nav .nav-link.active .nav-link-icon,
.navbar-taskway-nav .nav-link:hover .nav-link-icon,
.navbar-taskway-nav .nav-link.show .nav-link-icon {
    color: var(--tw-accent);
}

.navbar-taskway .navbar-toggler {
    border-color: rgba(255, 255, 255, .20);
}

.navbar-taskway .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(var(--tw-accent-rgb), .18);
}

.navbar-taskway .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

/* Dropdowns da topbar continuam claros no desktop */
.dropdown-menu-taskway,
.user-dropdown {
    border: 1px solid var(--tw-border);
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 42, 61, .12) !important;
}

.dropdown-menu-taskway .dropdown-item,
.user-dropdown .dropdown-item {
    color: var(--tw-text);
}

.dropdown-menu-taskway .dropdown-item:hover,
.dropdown-menu-taskway .dropdown-item:focus,
.dropdown-menu-taskway .dropdown-item.active,
.user-dropdown .dropdown-item:hover {
    color: var(--tw-primary-dark);
    background: rgba(var(--tw-accent-rgb), .09);
}

.dropdown-menu-taskway .dropdown-item.active {
    font-weight: 700;
}

.user-avatar-img {
    border-color: rgba(255, 255, 255, .85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.user-avatar-initial,
.user-dropdown-avatar span,
.user-photo-preview {
    background: linear-gradient(135deg, var(--tw-accent), var(--tw-accent-dark));
}

.user-dropdown-info strong {
    color: var(--tw-primary-dark);
}

.user-dropdown-info small {
    color: var(--tw-muted);
}

/* BOOTSTRAP / AÇÕES */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--tw-accent);
    --bs-btn-border-color: var(--tw-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tw-accent-dark);
    --bs-btn-hover-border-color: var(--tw-accent-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--tw-accent-dark);
    --bs-btn-active-border-color: var(--tw-accent-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--tw-accent);
    --bs-btn-disabled-border-color: var(--tw-accent);
}

.btn-outline-primary {
    --bs-btn-color: var(--tw-primary);
    --bs-btn-border-color: var(--tw-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tw-primary);
    --bs-btn-hover-border-color: var(--tw-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--tw-primary-dark);
    --bs-btn-active-border-color: var(--tw-primary-dark);
}

.text-primary {
    color: var(--tw-accent) !important;
}

.bg-primary {
    background-color: var(--tw-accent) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--tw-accent);
    box-shadow: 0 0 0 .2rem rgba(var(--tw-accent-rgb), .12);
}

.form-check-input:checked {
    background-color: var(--tw-accent);
    border-color: var(--tw-accent);
}

/* CABEÇALHOS / ABAS */
.taskway-page-header {
    background: #fff;
    border-bottom-color: var(--tw-border);
}

.taskway-page-title {
    color: var(--tw-primary-dark);
}

.taskway-page-subtitle,
.taskway-page-back {
    color: var(--tw-muted);
}

.taskway-page-back:hover,
.taskway-page-back:focus {
    color: var(--tw-accent);
}

.taskway-config-dropdown .dropdown-menu,
.dashboard-esteiras-menu {
    border-color: var(--tw-border);
    box-shadow: 0 10px 28px rgba(16, 42, 61, .10);
}

.taskway-config-dropdown .dropdown-item:hover,
.taskway-config-dropdown .dropdown-item:focus {
    background: rgba(var(--tw-accent-rgb), .08);
    color: var(--tw-primary-dark);
}

.taskway-view-tab:hover:not(:disabled):not(.active) {
    color: var(--tw-accent);
    background: rgba(var(--tw-accent-rgb), .05);
}

.taskway-view-tab.active {
    border-color: rgba(var(--tw-accent-rgb), .22);
    border-bottom-color: #fff;
    background: rgba(var(--tw-accent-rgb), .08);
    color: var(--tw-primary-dark);
}

.taskway-view-tab.active i {
    color: var(--tw-accent);
}

.taskway-page-filterbar {
    border-bottom-color: var(--tw-border);
}

/* CARDS E TABELAS */
.card,
.taskway-card-table,
.taskway-datatable-card,
.app-datatable-card,
.dashboard-kpi-card,
.dashboard-panel-card {
    border-color: var(--tw-border);
}

.taskway-datatable-card,
.app-datatable-card,
.dashboard-kpi-card,
.dashboard-panel-card {
    box-shadow: 0 4px 16px rgba(16, 42, 61, .055);
}

.taskway-table thead th {
    background: #F8FAFB;
    color: var(--tw-muted);
    border-bottom-color: var(--tw-border);
    font-weight: 700 !important;
}

.taskway-table tbody td {
    color: var(--tw-text);
    border-bottom-color: #EDF1F3;
}

.taskway-table tbody tr:hover,
.taskway-table.table-hover > tbody > tr:hover > * {
    background-color: rgba(var(--tw-accent-rgb), .045);
}

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff !important;
    background: var(--tw-accent) !important;
    border-color: var(--tw-accent) !important;
}

/* KANBAN */
.kanban-column {
    border-color: var(--tw-border);
    box-shadow: 0 8px 24px rgba(16, 42, 61, .06);
}

.kanban-card {
    border-color: #E3E9ED;
    box-shadow: 0 4px 14px rgba(16, 42, 61, .055);
}

.kanban-card:hover {
    border-color: rgba(var(--tw-accent-rgb), .32);
    box-shadow: 0 9px 22px rgba(16, 42, 61, .09);
}

.btn-add-task:hover {
    border-color: var(--tw-accent);
    color: var(--tw-accent);
    background: rgba(var(--tw-accent-rgb), .04);
}

.kanban-column.is-collapsed {
    background: linear-gradient(180deg, #fff, rgba(var(--tw-accent-rgb), .045));
}

.kanban-column.is-collapsed .kanban-column-icon,
.kanban-users span,
.user-avatar-empty {
    background: rgba(var(--tw-accent-rgb), .10);
    color: var(--tw-accent);
}

.kanban-chosen {
    border-color: var(--tw-accent);
}

/* DASHBOARD */
.dashboard-kpi-value,
.dashboard-panel-title {
    color: var(--tw-primary-dark);
}

.dashboard-kpi-label {
    color: var(--tw-text);
}

.dashboard-kpi-meta,
.dashboard-panel-subtitle,
.dashboard-filter-label,
.dashboard-period-caption,
.dashboard-panel-badge {
    color: var(--tw-muted);
}

.dashboard-kpi-icon-blue {
    background: rgba(var(--tw-accent-rgb), .10);
    color: var(--tw-accent);
}

.dashboard-kpi-icon-purple {
    background: rgba(var(--tw-primary-rgb), .09);
    color: var(--tw-primary);
}

.dashboard-esteira-option:hover {
    background: rgba(var(--tw-accent-rgb), .06);
}

/* Modal e SweetAlert com a mesma linguagem */
.modal-content {
    border-color: var(--tw-border);
    box-shadow: 0 18px 50px rgba(16, 42, 61, .12);
}

.modal-title {
    color: var(--tw-primary-dark);
}

.swal-title {
    color: var(--tw-primary-dark);
}

@media (max-width: 991.98px) {
    .taskway-company-name {
        display: none;
    }

    .navbar-taskway-collapse {
        border-top: 1px solid rgba(255, 255, 255, .07);
    }

    .navbar-taskway .dropdown-menu-taskway {
        background: rgba(255, 255, 255, .045);
    }

    .navbar-taskway .dropdown-menu-taskway .dropdown-item {
        color: rgba(255, 255, 255, .72);
    }

    .navbar-taskway .dropdown-menu-taskway .dropdown-item:hover,
    .navbar-taskway .dropdown-menu-taskway .dropdown-item:focus,
    .navbar-taskway .dropdown-menu-taskway .dropdown-item.active {
        color: #fff;
        background: rgba(var(--tw-accent-rgb), .12);
    }
}

/* ======================================================
   PAINÉIS WORKFLOW - RESUMO OPERACIONAL DO CARD
   ====================================================== */

.painel-card {
    background: var(--tw-surface);
    border-color: var(--tw-border);
    box-shadow: 0 3px 12px rgba(16, 42, 61, .045);
}

.painel-card:hover {
    border-color: rgba(var(--tw-accent-rgb), .38);
    box-shadow: 0 10px 24px rgba(16, 42, 61, .09);
}

.painel-card-structure {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: var(--tw-muted);
    font-size: .76rem;
}

.painel-card-structure span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.painel-card-structure i {
    color: var(--tw-accent);
    font-size: .68rem;
}

.painel-card-structure .painel-card-structure-separator {
    color: #B0BAC1;
}

.painel-card-desc {
    min-height: 42px;
}

.painel-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.painel-card-metric {
    min-width: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
}

.painel-card-metric-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .78rem;
}

.painel-card-metric-content {
    min-width: 0;
}

.painel-card-metric-content strong,
.painel-card-metric-content span {
    display: block;
}

.painel-card-metric-content strong {
    margin-bottom: 3px;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 700;
}

.painel-card-metric-content span {
    overflow: hidden;
    font-size: .68rem;
    line-height: 1.15;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.painel-card-metric-andamento {
    border-color: rgba(var(--tw-primary-rgb), .12);
    background: rgba(var(--tw-primary-rgb), .055);
    color: var(--tw-primary);
}

.painel-card-metric-andamento .painel-card-metric-icon {
    background: rgba(var(--tw-primary-rgb), .09);
    color: var(--tw-primary);
}

.painel-card-metric-atraso {
    border-color: rgba(239, 68, 68, .15);
    background: rgba(239, 68, 68, .065);
    color: #C52F2F;
}

.painel-card-metric-atraso .painel-card-metric-icon {
    background: rgba(239, 68, 68, .11);
    color: #D83838;
}

.painel-card-metric-acao {
    border-color: rgba(var(--tw-accent-rgb), .16);
    background: rgba(var(--tw-accent-rgb), .075);
    color: var(--tw-accent-dark);
}

.painel-card-metric-acao .painel-card-metric-icon {
    background: rgba(var(--tw-accent-rgb), .12);
    color: var(--tw-accent);
}

.painel-card-metric.is-zero {
    border-color: #E8EDF0;
    background: #F8FAFB;
    color: #7A8790;
}

.painel-card-metric.is-zero .painel-card-metric-icon {
    background: #EEF2F4;
    color: #8B98A1;
}

.painel-card-actions {
    padding-top: 13px;
    border-top: 1px solid #EDF1F3;
}

@media (max-width: 1199.98px) {
    .painel-card-metric {
        gap: 7px;
        padding: 9px 8px;
    }

    .painel-card-metric-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .painel-card-metric-content span {
        font-size: .64rem;
    }
}

@media (max-width: 575.98px) {
    .painel-card-metrics {
        grid-template-columns: 1fr;
    }

    .painel-card-metric {
        min-height: 56px;
    }

    .painel-card-desc {
        min-height: auto;
    }
}


/* ======================================================
   PAINÉIS DE PROJETOS - RESUMO OPERACIONAL DO CARD
   ====================================================== */

.painel-projeto-card .painel-card-metric-concluido {
    border-color: rgba(var(--tw-accent-rgb), .16);
    background: rgba(var(--tw-accent-rgb), .075);
    color: var(--tw-accent-dark);
}

.painel-projeto-card .painel-card-metric-concluido .painel-card-metric-icon {
    background: rgba(var(--tw-accent-rgb), .12);
    color: var(--tw-accent);
}

.painel-projeto-card .painel-card-metric-concluido.is-zero {
    border-color: #E8EDF0;
    background: #F8FAFB;
    color: #7A8790;
}

.painel-projeto-card .painel-card-metric-concluido.is-zero .painel-card-metric-icon {
    background: #EEF2F4;
    color: #8B98A1;
}

/* ======================================================
   SELETOR COMPACTO DE COR
   Usado inicialmente nas Etapas do Workflow
   ====================================================== */

.taskway-color-picker-compact {
    max-width: 420px;
}

.taskway-color-picker-compact .dropdown {
    width: 100%;
}

.taskway-color-compact-trigger {
    width: 100%;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
    color: var(--tw-text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.taskway-color-compact-trigger:hover {
    border-color: #bfc9d2;
    background: #fbfcfd;
}

.taskway-color-compact-trigger:focus,
.taskway-color-compact-trigger.show {
    outline: 0;
    border-color: var(--tw-accent);
    box-shadow: 0 0 0 3px rgba(var(--tw-accent-rgb), .12);
}

.taskway-color-compact-trigger::after {
    margin-left: 4px;
    color: var(--tw-muted);
}

.taskway-color-compact-swatch {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    border: 1px solid rgba(16, 42, 61, .10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.taskway-color-compact-name {
    flex: 1;
    min-width: 0;
    font-size: .86rem;
    font-weight: 600;
}

.taskway-color-compact-hex {
    color: var(--tw-muted);
    font-size: .74rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.taskway-color-compact-menu {
    width: 360px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    border: 1px solid var(--tw-border);
    border-radius: 12px;
    background: #fff;
}

.taskway-color-compact-title {
    margin-bottom: 8px;
    color: var(--tw-muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.taskway-color-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.taskway-color-compact-option {
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 500;
    text-align: left;
}

.taskway-color-compact-option:hover {
    background: #f6f8fa;
    border-color: #edf1f4;
}

.taskway-color-compact-option.active {
    background: #F2FAF8;
    border-color: #BFE7E1;
    color: var(--tw-accent-dark);
    font-weight: 600;
}

.taskway-color-compact-option-swatch {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 5px;
    border: 1px solid rgba(16, 42, 61, .10);
}

.taskway-color-compact-custom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf1f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.taskway-color-compact-custom-title {
    color: #334155;
    font-size: .8rem;
    font-weight: 600;
}

.taskway-color-compact-custom-sub {
    margin-top: 1px;
    color: var(--tw-muted);
    font-size: .7rem;
}

.taskway-color-compact-custom-control {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.taskway-color-compact-custom-input.form-control-color {
    width: 38px;
    height: 32px;
    padding: 3px;
    border-radius: 7px;
    cursor: pointer;
}

.taskway-color-compact-custom-value {
    min-width: 62px;
    color: var(--tw-muted);
    font-size: .7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 575.98px) {
    .taskway-color-picker-compact {
        max-width: none;
    }

    .taskway-color-compact-menu {
        width: 320px;
    }

    .taskway-color-compact-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   KANBAN - DESTAQUE VISUAL DOS CARDS
   Mantém a coluna neutra e destaca os Cards por contraste,
   borda e sombra discretos.
   ====================================================== */

.kanban-column:not(.kanban-column-special) .kanban-column-body {
    background: #F3F6F8;
}

.kanban-column:not(.kanban-column-special) .kanban-card {
    background: #FFFFFF;
    border-color: #D7E0E7;
    box-shadow: 0 2px 8px rgba(16, 42, 61, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.kanban-column:not(.kanban-column-special) .kanban-card:hover {
    background: #FFFFFF;
    border-color: #C8D4DD;
    box-shadow: 0 6px 16px rgba(16, 42, 61, .08);
    transform: translateY(-1px);
}

/* ======================================================
   KANBAN - INDICADOR DE CARD DEVOLVIDO
   Exibe um sinal discreto enquanto a entrada atual do Card
   na etapa tiver ocorrido por uma devolução.
   ====================================================== */

.kanban-card-top-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.kanban-card-returned {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    color: #EA580C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    cursor: help;
}

.kanban-card-returned i {
    line-height: 1;
}

/* ======================================================
   KANBAN - TOOLTIP ESTRUTURADO DE DEVOLUÇÃO
   ====================================================== */
.kanban-return-tooltip .tooltip-inner {
    width: 300px;
    max-width: min(300px, calc(100vw - 32px));
    padding: 11px 13px;
    background: var(--tw-primary-dark);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(16, 42, 61, .20);
    text-align: left;
}

.kanban-return-tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--tw-primary-dark);
}

.kanban-return-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--tw-primary-dark);
}

.kanban-return-tooltip-title,
.kanban-return-tooltip-row,
.kanban-return-tooltip-label,
.kanban-return-tooltip-value {
    display: block;
}

.kanban-return-tooltip-title {
    margin-bottom: 8px;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
}

.kanban-return-tooltip-row {
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.kanban-return-tooltip-row + .kanban-return-tooltip-row {
    margin-top: 6px;
}

.kanban-return-tooltip-label {
    margin-bottom: 2px;
    color: #9FDCD5;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.kanban-return-tooltip-value {
    color: rgba(255, 255, 255, .94);
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.kanban-return-tooltip-row-motivo .kanban-return-tooltip-value {
    max-height: 7.8em;
    overflow-y: auto;
}

/* ======================================================
   PROJETO - ARQUIVOS E ATIVIDADE
   ====================================================== */

.projeto-lateral-sticky {
    position: sticky;
    top: 90px;
}

.projeto-checklists-box {
    position: static;
    top: auto;
}

.projeto-arquivos-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projeto-arquivo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--tw-border);
    border-radius: 10px;
    background: #fff;
}

.projeto-arquivo-icone {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tw-bg);
    border: 1px solid var(--tw-border);
    font-size: .9rem;
}

.projeto-arquivo-info {
    min-width: 0;
    flex: 1 1 auto;
}

.projeto-arquivo-nome {
    display: block;
    color: var(--tw-text);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.projeto-arquivo-nome:hover {
    color: var(--tw-accent-dark);
}

.projeto-arquivo-descricao {
    margin-top: 3px;
    color: var(--tw-muted);
    font-size: .76rem;
    line-height: 1.35;
    word-break: break-word;
}

.projeto-arquivo-meta {
    margin-top: 4px;
    color: #8b98a2;
    font-size: .7rem;
    line-height: 1.35;
}

.projeto-arquivo-acoes {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.projeto-arquivo-protegido {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 7px;
    font-size: .68rem;
}

.projeto-arquivo-acao {
    width: 25px;
    height: 25px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tw-muted);
    text-decoration: none !important;
    box-shadow: none !important;
}

.projeto-arquivo-acao:hover {
    color: var(--tw-accent-dark);
}

.projeto-arquivo-permissoes .permission-list {
    max-height: 300px;
    overflow-y: auto;
}

.projeto-arquivo-permissao-item {
    cursor: pointer;
}

.projeto-arquivo-permissao-item .form-check-input {
    margin-top: 2px;
    flex-shrink: 0;
}

.projeto-atividade-box {
    scroll-margin-top: 95px;
}

.projeto-atividade-registro {
    padding: 14px;
    border: 1px solid var(--tw-border);
    border-radius: 10px;
    background: var(--tw-bg);
}

.projeto-atividade-registro textarea {
    resize: vertical;
    min-height: 86px;
}

.projeto-atividade-historico {
    max-width: 1050px;
}

.projeto-atividade-historico .historico-projeto-grupo {
    padding-left: 0;
    padding-right: 0;
}

.projeto-atividade-historico .historico-projeto-data {
    position: static;
    background: transparent;
    padding-top: 12px;
}

.projeto-atividade-historico .historico-projeto-conteudo {
    max-width: 900px;
}

.historico-projeto-informacao-manual {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: var(--tw-text);
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 1199.98px) {
    .projeto-lateral-sticky {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .projeto-atividade-registro .d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }

    #btnRegistrarInformacaoProjeto {
        width: 100%;
    }
}

/* =====================================================
   CENTRAL DE AJUDA
   ===================================================== */
.taskway-help-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 1.05rem;
    transition: .15s ease;
}

.taskway-help-link:hover,
.taskway-help-link.active {
    color: #fff;
    background: rgba(18,165,148,.18);
}

.help-page {
    padding: 28px 30px 40px;
    max-width: 1680px;
    margin: 0 auto;
}

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 600px);
    gap: 28px;
    align-items: end;
    margin-bottom: 22px;
}

.help-eyebrow {
    color: var(--tw-accent-dark);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    margin-bottom: 7px;
}

.help-hero h1 {
    margin: 0 0 6px;
    color: var(--tw-primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
}

.help-hero p {
    margin: 0;
    color: var(--tw-muted);
    font-size: .9rem;
}

.help-search-wrap {
    position: relative;
}

.help-search-wrap > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tw-muted);
    z-index: 2;
}

.help-search-wrap .form-control {
    height: 48px;
    padding-left: 45px;
    padding-right: 44px;
    border-radius: 13px;
    border-color: var(--tw-border);
    background: #fff;
    box-shadow: 0 5px 20px rgba(16,42,61,.035);
}

.help-search-wrap .form-control:focus {
    border-color: rgba(18,165,148,.65);
    box-shadow: 0 0 0 .2rem rgba(18,165,148,.08);
}

.help-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--tw-muted);
}

.help-search-clear:hover {
    background: var(--tw-bg);
    color: var(--tw-primary);
}

.help-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.help-sidebar,
.help-content-card {
    border: 1px solid var(--tw-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(16,42,61,.035);
}

.help-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow: hidden;
}

.help-sidebar-head {
    min-height: 70px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--tw-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.help-sidebar-head > div {
    display: flex;
    flex-direction: column;
}

.help-sidebar-head strong {
    color: var(--tw-primary-dark);
    font-size: .9rem;
}

.help-sidebar-head small {
    color: var(--tw-muted);
    font-size: .72rem;
    margin-top: 2px;
}

.help-tree-expand {
    width: 34px;
    height: 34px;
    border: 1px solid var(--tw-border);
    border-radius: 9px;
    background: #fff;
    color: var(--tw-primary);
}

.help-tree-expand:hover {
    background: var(--tw-bg);
}

.help-tree {
    padding: 10px 8px 16px;
    overflow-y: auto;
    max-height: calc(100vh - 183px);
}

.help-tree-row {
    display: flex;
    align-items: center;
    min-width: 0;
}

.help-tree-node[data-level="1"] > .help-tree-row { padding-left: 12px; }
.help-tree-node[data-level="2"] > .help-tree-row { padding-left: 24px; }
.help-tree-node[data-level="3"] > .help-tree-row { padding-left: 36px; }
.help-tree-node[data-level="4"] > .help-tree-row { padding-left: 48px; }
.help-tree-node[data-level="5"] > .help-tree-row { padding-left: 60px; }

.help-tree-toggle,
.help-tree-spacer {
    width: 24px;
    height: 34px;
    flex: 0 0 24px;
}

.help-tree-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: #9aa6ae;
    font-size: .62rem;
}

.help-tree-toggle i {
    transition: transform .15s ease;
}

.help-tree-toggle i.rotated {
    transform: rotate(90deg);
}

.help-tree-item {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #45545e;
    text-align: left;
    font-size: .82rem;
    font-weight: 600;
}

.help-tree-item > i {
    width: 16px;
    color: #8a98a2;
    text-align: center;
    flex-shrink: 0;
}

.help-tree-item > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-tree-item:hover {
    background: #f6f9fa;
    color: var(--tw-primary-dark);
}

.help-tree-item.active {
    background: rgba(18,165,148,.1);
    color: var(--tw-accent-dark);
}

.help-tree-item.active > i {
    color: var(--tw-accent-dark);
}

.help-tree-children {
    display: none;
}

.help-content-card {
    min-height: 560px;
    overflow: hidden;
}

.help-topic {
    padding: 30px 34px 42px;
}

.help-topic-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: #87949d;
    font-size: .7rem;
    font-weight: 600;
}

.help-topic-breadcrumb i {
    font-size: .48rem;
    color: #b4bdc3;
}

.help-topic-head {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--tw-border);
}

.help-topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    color: var(--tw-accent-dark);
    background: rgba(18,165,148,.1);
    font-size: 1.15rem;
}

.help-topic-head h2 {
    margin: 1px 0 5px;
    color: var(--tw-primary-dark);
    font-size: 1.45rem;
    font-weight: 700;
}

.help-topic-head p {
    margin: 0;
    color: var(--tw-muted);
    font-size: .86rem;
    line-height: 1.55;
}

.help-topic-body {
    color: #35444e;
    font-size: .88rem;
    line-height: 1.72;
    max-width: 1000px;
}

.help-topic-body h2,
.help-topic-body h3,
.help-topic-body h4 {
    color: var(--tw-primary-dark);
    font-weight: 700;
    margin: 28px 0 10px;
}

.help-topic-body h2 { font-size: 1.2rem; }
.help-topic-body h3 { font-size: 1.02rem; }
.help-topic-body h4 { font-size: .92rem; }
.help-topic-body p { margin: 0 0 14px; }
.help-topic-body ul,
.help-topic-body ol { padding-left: 22px; margin: 0 0 16px; }
.help-topic-body li { margin-bottom: 6px; }
.help-topic-body strong { color: var(--tw-primary-dark); }
.help-topic-body code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #eef2f4;
    color: #31516a;
    font-size: .79rem;
}
.help-topic-body pre {
    padding: 14px 16px;
    border-radius: 10px;
    background: #102a3d;
    color: #e8f2f5;
    overflow-x: auto;
    font-size: .78rem;
}
.help-topic-body blockquote,
.help-topic-body .help-callout {
    margin: 18px 0;
    padding: 13px 15px;
    border-left: 4px solid var(--tw-accent);
    border-radius: 8px;
    background: #f3fbf9;
    color: #36534f;
}
.help-topic-body .help-callout.warning {
    border-left-color: #d97706;
    background: #fff8eb;
    color: #70460e;
}
.help-topic-body .help-callout.danger {
    border-left-color: #dc2626;
    background: #fff1f1;
    color: #7f1d1d;
}
.help-topic-body a { color: var(--tw-accent-dark); }

.help-loading {
    padding: 30px 20px;
    color: var(--tw-muted);
    text-align: center;
    font-size: .82rem;
}

.help-empty-state {
    min-height: 440px;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.help-empty-state.compact {
    min-height: 330px;
}

.help-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--tw-accent-dark);
    background: rgba(18,165,148,.09);
    font-size: 1.25rem;
}

.help-empty-state h2 {
    margin: 0 0 7px;
    color: var(--tw-primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.help-empty-state p {
    margin: 0;
    color: var(--tw-muted);
    font-size: .83rem;
}

.help-search-results {
    padding: 24px 28px 34px;
}

.help-results-head {
    padding-bottom: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--tw-border);
}

.help-results-head > div {
    display: flex;
    flex-direction: column;
}

.help-results-head strong {
    color: var(--tw-primary-dark);
    font-size: 1rem;
}

.help-results-head small {
    color: var(--tw-muted);
    margin-top: 2px;
}

.help-result-list {
    display: flex;
    flex-direction: column;
}

.help-result-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 8px;
    border: 0;
    border-bottom: 1px solid #edf1f3;
    background: transparent;
    text-align: left;
}

.help-result-item:hover {
    background: #fbfcfc;
}

.help-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    background: rgba(18,165,148,.08);
    color: var(--tw-accent-dark);
}

.help-result-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.help-result-path {
    color: #91a0a9;
    font-size: .65rem;
    margin-bottom: 2px;
}

.help-result-path i {
    font-size: .42rem;
    margin: 0 4px;
}

.help-result-text strong {
    color: var(--tw-primary-dark);
    font-size: .88rem;
}

.help-result-text > span {
    color: var(--tw-muted);
    font-size: .76rem;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-result-arrow {
    color: #b2bcc2;
    font-size: .7rem;
}

@media (max-width: 991.98px) {
    .help-page { padding: 22px 18px 32px; }
    .help-hero { grid-template-columns: 1fr; gap: 18px; }
    .help-layout { grid-template-columns: 1fr; }
    .help-sidebar { position: static; max-height: none; }
    .help-tree { max-height: 340px; }
}

@media (max-width: 575.98px) {
    .help-page { padding: 18px 12px 28px; }
    .help-hero h1 { font-size: 1.45rem; }
    .help-topic { padding: 22px 18px 30px; }
    .help-search-results { padding: 18px 16px 26px; }
    .help-topic-head { gap: 12px; }
    .help-topic-icon { width: 42px; height: 42px; flex-basis: 42px; }
}
