/* Compatibilidade Bootstrap 3 → layout Flatkit (BS4) */
.panel {
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid rgba(120, 130, 140, 0.13);
    border-radius: 3px;
}

.panel-default {
    border-color: rgba(120, 130, 140, 0.13);
}

.panel-primary {
    border-color: #6887ff;
}

.panel-primary > .panel-heading {
    background: #6887ff;
    color: #fff;
    border-color: #6887ff;
}

.panel-success {
    border-color: #6cc788;
}

.panel-success > .panel-heading {
    background: #6cc788;
    color: #fff;
    border-color: #6cc788;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(120, 130, 140, 0.13);
    background: #f8f8f8;
}

.panel-body {
    padding: 15px;
}

.panel-footer {
    padding: 10px 15px;
    background: #f8f8f8;
    border-top: 1px solid rgba(120, 130, 140, 0.13);
}

.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border: 1px solid rgba(120, 130, 140, 0.13);
}

.btn-default:hover {
    background-color: #f1f2f3;
}

.label {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 75%;
    font-weight: 600;
    line-height: 1;
    border-radius: 0.2rem;
}

.label-success,
.label-primary {
    background-color: #6cc788;
    color: #fff;
}

.label-warning {
    background-color: #fcc100;
    color: #333;
}

.label-danger {
    background-color: #f44455;
    color: #fff;
}

.label-default {
    background-color: #888;
    color: #fff;
}

.label-info {
    background-color: #6887ff;
    color: #fff;
}

.breadcrumb-wrapper,
.breadcrumb,
.page-title {
    display: none !important;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.page-header-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.text-success-custom {
    color: #6cc788;
}

.text-danger-custom {
    color: #f44455;
}

.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(120, 130, 140, 0.13);
    border-top: none;
}

.list-group-item:first-child {
    border-top: 1px solid rgba(120, 130, 140, 0.13);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

.progress {
    display: flex;
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    height: 4px;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #6887ff;
    transition: width 0.6s ease;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.page-header-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kpi-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: inline-block;
    min-width: 200px;
    border: 1px solid rgba(120, 130, 140, 0.13);
}

.kpi-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    font-weight: 600;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.projetos-kanban-wrap {
    overflow-x: auto;
    padding-bottom: 12px;
    margin-top: 8px;
}

.projetos-kanban {
    display: flex;
    gap: 14px;
    align-items: stretch;
    min-width: min-content;
    padding-bottom: 4px;
}

.projetos-kanban-col {
    flex: 0 0 260px;
    width: 260px;
    background: #f4f5f7;
    border-radius: 8px;
    border: 1px solid #e2e4e8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: calc(100vh - 320px);
}

.projetos-kanban-col-header {
    padding: 10px 12px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.projetos-kanban-col-count {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 12px;
}

.projetos-kanban-col-body {
    padding: 10px;
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
}

.projetos-kanban-card {
    display: block;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    padding: 10px 11px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.projetos-kanban-card:last-child {
    margin-bottom: 0;
}

.projetos-kanban-card:hover,
.projetos-kanban-card:focus {
    text-decoration: none;
    color: inherit;
    border-color: #b8c0cc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.projetos-kanban-card-cliente {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.projetos-kanban-card-titulo {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projetos-kanban-card-meta {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
}

.projetos-kanban-card-progress {
    height: 4px;
    margin-bottom: 0;
}

.projetos-kanban-card-progress .progress-bar {
    background: #6887ff;
}

.projetos-kanban-empty {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    padding: 16px 8px;
}

.projetos-page-section {
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .projetos-kanban-col {
        flex: 0 0 220px;
        width: 220px;
        max-height: calc(100vh - 280px);
    }
}

.project-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.project-grid-item {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    display: flex;
}

.project-grid-item--3 {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
}

.uber-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.uber-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #333;
}

.uber-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.uber-card-icon {
    width: 64px;
    height: 64px;
    background: #f6f6f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uber-card-icon i {
    font-size: 24px;
    color: #333;
}

.uber-card-info {
    flex-grow: 1;
}

.uber-project-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
    display: block;
}

.uber-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f2f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.uber-pill-btn {
    background: #f1f2f3;
    color: #111;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    text-decoration: none;
}

.uber-pill-btn:hover {
    background: #e2e2e2;
    color: #111;
    text-decoration: none;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 10rem;
}

.dropdown-menu > li > a,
.dropdown-menu .dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #111;
    text-decoration: none;
}

.dropdown-menu > li > a:hover,
.dropdown-menu .dropdown-item:hover {
    background: #f1f2f3;
    color: #111;
    text-decoration: none;
}

@media (max-width: 991px) {
    .project-grid-item,
    .project-grid-item--3 {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .project-grid-item,
    .project-grid-item--3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .project-grid-container {
        gap: 16px;
    }
}

.thiago-topbar-icons {
    gap: 2px;
}

.thiago-topbar-icon {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 18px;
    border-radius: 50%;
}

.thiago-topbar-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    text-decoration: none;
}

.thiago-topbar-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #f44455;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #6887ff;
}

.thiago-topbar-badge--wa {
    background: #25d366;
    box-shadow: 0 0 0 2px #6887ff;
}

.thiago-topbar-user {
    font-size: 12px !important;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thiago-topbar-user-wrap {
    margin-left: 6px;
}

.thiago-topbar-user-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px !important;
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none !important;
    max-width: 240px;
}

.thiago-topbar-user-btn:hover,
.thiago-topbar-user-btn:focus,
.thiago-topbar-user-wrap.open > .thiago-topbar-user-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
}

.thiago-topbar-user-btn::after {
    margin-left: 2px;
    opacity: .75;
}

.thiago-topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    flex-shrink: 0;
}

.thiago-topbar-avatar--lg {
    width: 44px;
    height: 44px;
    font-size: 14px;
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: #fff;
}

.thiago-topbar-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.thiago-topbar-user-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.thiago-topbar-user-role {
    font-size: 10px;
    opacity: .8;
}

.thiago-user-menu {
    min-width: 260px;
    padding: 8px 0;
    margin-top: 8px !important;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(30, 40, 60, 0.18);
}

.thiago-user-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 8px;
}

.thiago-user-menu-head strong {
    display: block;
    font-size: 14px;
    color: #2e3a46;
}

.thiago-user-menu-head small {
    display: block;
    color: #7a8694;
    font-size: 12px;
    word-break: break-all;
}

.thiago-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #2e3a46;
}

.thiago-user-menu .dropdown-item:hover {
    background: #f4f6fb;
    color: #3b5bdb;
}

.thiago-user-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    opacity: .8;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-bordered {
    background: #fff;
}

.table-bordered th,
.table-bordered td {
    vertical-align: middle;
}

input.linha_invisivel {
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: #ddd;
    background: transparent;
    width: 100%;
    padding: 2px 4px;
    outline: none;
}

input.linha_invisivel:focus {
    border-color: #6887ff;
}

.processos-table td {
    vertical-align: top;
}

.processo-procedimentos {
    margin-top: 8px;
    font-size: 12px;
}

.processo-procedimento-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.processo-procedimento-form--novo {
    margin-top: 10px;
}

.processo-procedimento-del {
    flex: 0 0 auto;
    color: #f44455;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    padding: 0 2px;
}

.processo-procedimento-del:hover {
    color: #c82333;
    text-decoration: none;
}

.thiago-tarefa-ativa {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
    pointer-events: none;
}

.thiago-tarefa-ativa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(92vw, 720px);
    padding: 5px 14px 6px;
    background: linear-gradient(180deg, #fff8e6 0%, #ffeeba 100%);
    border: 1px solid #f0c36d;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    color: #5c4a1f;
    font-size: 11px;
    line-height: 1.2;
    text-decoration: none !important;
    pointer-events: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thiago-tarefa-ativa-link:hover,
.thiago-tarefa-ativa-link:focus {
    color: #3f3215;
    text-decoration: none;
}

.thiago-tarefa-ativa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.6);
    animation: thiago-tarefa-pulse 1.8s infinite;
    flex-shrink: 0;
}

.thiago-tarefa-ativa-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
    font-weight: 600;
    color: #8a6d3b;
    flex-shrink: 0;
}

.thiago-tarefa-ativa-nome {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thiago-tarefa-ativa-meta {
    color: #8a6d3b;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thiago-tarefa-ativa-meta::before {
    content: "·";
    margin: 0 4px;
}

.thiago-tarefa-ativa-tempo {
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 12px;
    color: #333;
    background: rgba(255, 255, 255, 0.65);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

@keyframes thiago-tarefa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.55);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

body.thiago-tem-tarefa-ativa {
    padding-top: 28px;
}

/* Projeto single — abas e rodapé (antes em style.css) */
.well {
    min-height: 20px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
}

.well-sm {
    padding: 9px;
    border-radius: 2px;
}

ul.nav.nav-tabs.projeto-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    border-bottom: 1px solid rgba(120, 130, 140, 0.13);
    margin-bottom: 0;
}

ul.nav.nav-tabs.projeto-tabs > li {
    margin-bottom: -1px;
    background-color: #f3f3f3;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

ul.nav.nav-tabs.projeto-tabs > li > a {
    display: block;
    padding: 8px 14px;
    color: #58666e;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 5px 5px 0 0;
}

ul.nav.nav-tabs.projeto-tabs > li.active > a,
ul.nav.nav-tabs.projeto-tabs > li.active > a:hover,
ul.nav.nav-tabs.projeto-tabs > li.active > a:focus {
    background: #fff;
    border-color: rgba(120, 130, 140, 0.13) rgba(120, 130, 140, 0.13) transparent;
    color: #333;
    font-weight: 600;
}

.projeto-tab-content {
    background: #fff;
    border: 1px solid rgba(120, 130, 140, 0.13);
    border-top: none;
    padding: 16px;
    margin-bottom: 24px;
}

.projeto-tab-content > .tab-pane.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.projeto-tab-content > .tab-pane:not(.active) {
    display: none !important;
}

.projeto-acoes-finais {
    margin-top: 24px;
    background: #fff;
    border: 1px solid rgba(120, 130, 140, 0.13);
    border-radius: 4px;
}

.projeto-acoes-finais-inner {
    padding: 20px 20px 18px;
}

.projeto-acoes-finais-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
}

.projeto-acoes-finais-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.projeto-rodape {
    margin: 12px 0 8px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(120, 130, 140, 0.13);
    border-radius: 4px;
}

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

.projeto-rodape-info strong {
    display: block;
    font-size: 13px;
    color: #333;
}

.projeto-rodape-info span {
    font-size: 12px;
    color: #58666e;
}

.projeto-rodape-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.projeto-rodape-links a {
    color: #6887ff;
    font-size: 13px;
    text-decoration: none;
}

.projeto-rodape-links a:hover {
    color: #4a6cf0;
    text-decoration: underline;
}

.projeto-rodape-copy {
    display: none;
}

.comentario {
    margin-bottom: 12px;
}

.comentario_data {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.projeto-concluidos {
    margin: 20px 0 28px;
    background: #fff;
    border: 1px solid rgba(120, 130, 140, 0.13);
    border-radius: 4px;
    overflow: hidden;
}

.projeto-concluidos-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 16px;
    background: #f7f8f9;
    border-bottom: 1px solid rgba(120, 130, 140, 0.13);
}

.projeto-concluidos-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #333;
}

.projeto-concluidos-totais {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    font-size: 13px;
    color: #58666e;
}

.projeto-concluidos-total strong {
    font-weight: 600;
    color: #333;
}

.projeto-concluidos-total--qtd {
    color: #98a6ad;
}

.projeto-concluidos-vazio {
    margin: 0;
    padding: 16px;
    font-size: 13px;
}

.projeto-concluidos-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.projeto-concluidos-item {
    padding: 12px 16px;
    border-top: 1px solid rgba(120, 130, 140, 0.1);
    line-height: 1.4;
}

.projeto-concluidos-item:first-child {
    border-top: none;
}

.projeto-concluidos-item-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.projeto-concluidos-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #eef1f3;
    color: #58666e;
    font-size: 11px;
    font-weight: 700;
}

.projeto-concluidos-nome {
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 13px;
}

.projeto-concluidos-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: #58666e;
    padding-left: 30px;
}

.projeto-concluidos-meta-item i {
    margin-right: 3px;
    opacity: 0.7;
}

.projeto-concluidos-meta-item strong {
    font-weight: 600;
    color: #333;
}

@media (max-width: 576px) {
    .projeto-concluidos-meta {
        padding-left: 0;
    }
}
