.dtag-input-group {
    flex-wrap: nowrap;
}
.dtag-input-group > .select2-container {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}
.dtag-input-group > .btn {
    flex: 0 0 auto;
}
.dtag-modal-dialog {
    max-width: 96%;
    width: 96%;
    margin: 12px auto;
    height: calc(100vh - 24px);
}
.dtag-modal-content {
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.dtag-modal-header {
    align-items: center;
    border-bottom: 1px solid #e4e9f0;
    padding: 12px 18px;
}
.dtag-modal-body {
    background: #f4f6f9;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 18px;
}
.dtag-modal-footer {
    border-top: 1px solid #e4e9f0;
    padding: 10px 18px;
}
.dtag-titulo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.dtag-titulo-icone {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
    font-size: 15px;
    flex: 0 0 auto;
}
.dtag-titulo {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dtag-subtitulo {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}
.dtag-filtro {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.dtag-filtro-campo {
    display: flex;
    flex-direction: column;
}
.dtag-filtro-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: 3px;
}
.dtag-filtro-campo .form-control {
    height: 32px;
    font-size: 12px;
    padding: 4px 8px;
}
.dtag-filtro-periodo {
    min-width: 170px;
}
.dtag-filtro-data {
    width: 140px;
}
.dtag-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.dtag-kpi {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 96px;
}
.dtag-kpi-body {
    min-width: 0;
}
.dtag-kpi-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}
.dtag-kpi-valor {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: #1f2937;
}
.dtag-kpi-help {
    display: block;
    font-size: 11px;
    color: #8b98a9;
    margin-top: 4px;
}
.dtag-kpi-icone {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: 0 0 auto;
}
.dtag-kpi-info .dtag-kpi-icone {
    background: rgba(47, 128, 237, 0.12);
    color: #2f80ed;
}
.dtag-kpi-success .dtag-kpi-icone {
    background: rgba(18, 196, 139, 0.14);
    color: #12a877;
}
.dtag-kpi-warning .dtag-kpi-icone {
    background: rgba(245, 158, 11, 0.15);
    color: #d98207;
}
.dtag-kpi-danger .dtag-kpi-icone {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}
.dtag-kpi-purple .dtag-kpi-icone {
    background: rgba(124, 58, 237, 0.14);
    color: #7c3aed;
}
.dtag-kpi-destaque {
    border-color: #f0b429;
    box-shadow: 0 0 0 1px rgba(240, 180, 41, .35);
}
.dtag-card {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 10px;
    height: auto;
}
.row > [class*="col-"] > .dtag-card {
    height: 100%;
}
.dtag-card-body {
    padding: 14px 16px;
}
.dtag-card-titulo {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}
.dtag-card-titulo small {
    font-size: 11px;
    font-weight: 400;
    color: #8b98a9;
}
.dtag-chart {
    width: 100%;
    height: 250px;
}
.dtag-chart-alta {
    height: 290px;
}
.dtag-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.dtag-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.dtag-metric-icone {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: 0 0 auto;
}
.dtag-metric-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 2px;
}
.dtag-metric-valor {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
}
.dtag-metric-variacao {
    display: block;
    font-size: 11px;
    margin-top: 2px;
}
.dtag-variacao-boa {
    color: #12a877;
}
.dtag-variacao-ruim {
    color: #dc2626;
}
.dtag-variacao-neutra {
    color: #8b98a9;
}
.dtag-tabela {
    width: 100%;
    margin-bottom: 0;
    font-size: 12px;
}
.dtag-tabela thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    border-top: 0;
    border-bottom: 1px solid #e4e9f0;
    padding: 6px 8px;
    white-space: nowrap;
}
.dtag-tabela tbody td {
    padding: 6px 8px;
    border-top: 1px solid #f1f4f8;
    vertical-align: middle;
    color: #374151;
}
.dtag-tabela-clicavel tbody tr {
    cursor: pointer;
}
.dtag-tabela-clicavel tbody tr:hover {
    background: #f7f9fc;
}
.dtag-celula-titulo {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dtag-scroll {
    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden;
}
.dtag-scroll-alto {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
}
.dtag-scroll::-webkit-scrollbar,
.dtag-scroll-alto::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.dtag-scroll::-webkit-scrollbar-track,
.dtag-scroll-alto::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 8px;
}
.dtag-scroll::-webkit-scrollbar-thumb,
.dtag-scroll-alto::-webkit-scrollbar-thumb {
    background: #c7d0dc;
    border-radius: 8px;
}
.dtag-progress {
    height: 6px;
    border-radius: 4px;
    background: #eef2f7;
    overflow: hidden;
    min-width: 60px;
}
.dtag-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: #12a877;
}
.dtag-progress-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dtag-progress-texto {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}
.dtag-selo {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    white-space: nowrap;
}
.dtag-selo-atraso {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}
.dtag-selo-reaberto {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}
.dtag-ponto-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.dtag-empty {
    padding: 22px;
    text-align: center;
    font-size: 12px;
    color: #8b98a9;
    background: #f7f9fc;
    border-radius: 8px;
}
.dtag-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 0;
    font-size: 13px;
    color: #6b7280;
}
.dtag-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.dtag-chip {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    color: #4b5563;
}
.dtag-card-chamados {
    border-radius: 8px;
}
.dtag-lista-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.dtag-lista-contagem {
    font-size: 11px;
    color: #8b98a9;
}
.dtag-lista-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}
.dtag-lista-chip {
    min-width: 74px;
    border: 1px solid #e4e9f0;
    border-radius: 6px;
    padding: 5px 8px;
    background: #f8fafc;
    line-height: 1.15;
}
.dtag-lista-chip small,
.dtag-lista-chip strong {
    display: block;
}
.dtag-lista-chip small {
    font-size: 9px;
    text-transform: uppercase;
    color: #7b8794;
}
.dtag-lista-chip strong {
    margin-top: 2px;
    font-size: 14px;
    color: #1f2937;
}
.dtag-lista-chip-info {
    border-color: rgba(47, 128, 237, .35);
}
.dtag-lista-chip-success {
    border-color: rgba(18, 168, 119, .35);
}
.dtag-lista-chip-warning {
    border-color: rgba(245, 158, 11, .35);
}
.dtag-lista-chip-danger {
    border-color: rgba(220, 38, 38, .35);
}
.dtag-lista-chip-purple {
    border-color: rgba(124, 58, 237, .35);
}
.dtag-lista-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}
.dtag-busca-wrap {
    position: relative;
    flex: 1 1 260px;
    max-width: 360px;
}
.dtag-busca-wrap i {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
    color: #8b98a9;
    font-size: 12px;
    pointer-events: none;
}
.dtag-busca-wrap .form-control {
    height: 32px;
    padding: 5px 30px 5px 10px;
    font-size: 12px;
}
.dtag-select-sm {
    width: auto;
    min-width: 124px;
    height: 32px;
    padding: 4px 8px;
    font-size: 12px;
}
.dtag-tabela-chamados {
    min-width: 1080px;
}
.dtag-tabela-chamados tbody td {
    padding-top: 7px;
    padding-bottom: 7px;
}
.dtag-col-titulo {
    max-width: 260px;
}
.dtag-titulo-chamado,
.dtag-sub-linha {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dtag-titulo-chamado {
    color: #1f2937;
    font-weight: 600;
}
.dtag-sub-linha {
    margin-top: 2px;
    color: #8b98a9;
    font-size: 10px;
}
.dtag-link-chamado {
    color: #2f80ed;
    font-weight: 600;
}
.dtag-usuario {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 150px;
}
.dtag-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}
.dtag-avatar img,
.dtag-avatar-fallback {
    width: 100%;
    height: 100%;
}
.dtag-avatar img {
    object-fit: cover;
}
.dtag-avatar-brasao {
    background: #fff;
    border: 1px solid #e5e7eb;
}
.dtag-avatar-brasao img {
    object-fit: contain;
    padding: 2px;
}
.dtag-avatar-building {
    color: #64748b;
    font-size: 11px;
}
.dtag-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dtag-ranking-texto {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dtag-usuario-nome {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dtag-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(47, 128, 237, .08);
    color: var(--dtag-status-cor);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.dtag-status-badge .dtag-ponto-status {
    background: var(--dtag-status-cor);
    margin-right: 5px;
}
.dtag-tarefas-resumo {
    color: #4b5563;
    font-weight: 600;
    white-space: nowrap;
}
.dtag-tarefas-ok {
    color: #12a877;
}
.dtag-progress-wrap-compacto {
    justify-content: center;
}
.dtag-progress-wrap-compacto .dtag-progress {
    width: 70px;
}
.dtag-btn-abrir-chamado {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #dbe3ee;
    color: #2f80ed;
    background: #f8fbff;
}
.dtag-btn-abrir-chamado:hover {
    color: #fff;
    background: #2f80ed;
    border-color: #2f80ed;
}
.dtag-lista-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    color: #6b7280;
    font-size: 11px;
}
.dtag-paginacao {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dtag-pagina-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dbe3ee;
    border-radius: 4px;
    background: #ffffff;
    color: #4b5563;
    font-size: 12px;
    line-height: 1;
}
.dtag-pagina-btn.active {
    background: #2f80ed;
    border-color: #2f80ed;
    color: #ffffff;
}
.dtag-pagina-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.dtag-pagina-reticencias {
    padding: 0 4px;
    color: #8b98a9;
}
.dtag-modal-base {
    z-index: 1050;
}
.dtag-modal-tarefa-topo {
    z-index: 1075;
}
.modal-backdrop.dtag-backdrop-tarefa {
    z-index: 1068;
}
@media (max-width: 1400px) {
    .dtag-kpi-grid,
    .dtag-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 991px) {
    .dtag-modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
        height: 100vh;
    }
    .dtag-lista-topo,
    .dtag-lista-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .dtag-lista-chips,
    .dtag-paginacao {
        justify-content: flex-start;
    }
    .dtag-lista-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .dtag-busca-wrap {
        max-width: none;
        flex-basis: 100%;
    }
    .dtag-kpi-grid,
    .dtag-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dtag-kpi-valor {
        font-size: 20px;
    }
}
@media (max-width: 575px) {
    .dtag-kpi-grid,
    .dtag-metric-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
