﻿.loading-table {
    font-size: 75px !important;
    margin: 50px;
}
.agenda-table-full {
    width: 100%;
}
.modal-agenda-xl {
    max-width: 98%;
    width: 98%;
    margin: 10px auto;
    height: calc(100vh - 20px);
}
.modal-agenda-content {
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.modal-agenda-body {
    background: #f4f6f9;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
}
.card-secao {
    border: 1px solid #d0d7de;
    border-radius: 6px;
}
.card-header-secao {
    background: #f8f9fb;
    border-bottom: 1px solid #d0d7de;
}
.card-header-label {
    font-size: .75rem;
    letter-spacing: .08em;
    color: #495057;
}
.icon-cinza {
    color: #495057 !important;
}
.aviso-sem-os {
    border-radius: 0 !important;
    font-size: .8rem;
}
.col-checkbox {
    width: 30px;
}
.age-titulo-textarea {
    resize: vertical;
    min-height: 90px;
    max-height: 200px;
}
.age-descricao-textarea {
    resize: vertical;
    min-height: 70px;
}
.mapa-popup {
    height: 450px;
    width: 100%;
}
.mapa-agenda-form {
    height: 380px;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}
.mapa-nova-localizacao {
    width: 100%;
    height: 400px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}
.step-circle {
    width: 36px;
    height: 36px;
}
.mt-agenda-titulo {
    margin-top: 10px;
}
#div-table {
    width: 100%;
    overflow: visible !important;
}
#tblAgendas {
    width: 100% !important;
}
.agenda-acoes-menu {
    background-color: #fff;
    z-index: 2000;
    min-width: 230px;
    white-space: nowrap;
    padding: 4px 0;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    transform: none !important;
    will-change: auto !important;
}
.agenda-acoes-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: transparent;
    color: #212529;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.agenda-acoes-menu .dropdown-item i {
    width: 18px;
    text-align: center;
    color: #6c757d;
}
.agenda-acoes-menu .dropdown-item:hover,
.agenda-acoes-menu .dropdown-item:focus {
    background-color: #1f6fda;
    color: #fff;
}
.agenda-acoes-menu .dropdown-item:hover i,
.agenda-acoes-menu .dropdown-item:focus i {
    color: #fff;
}
#tblServicosBody tr.row-selected td {
    background: #dcebff !important;
    border-top: 1px solid #8eb9ff !important;
    border-bottom: 1px solid #8eb9ff !important;
}

    #tblServicosBody tr.row-selected td:first-child {
        box-shadow: inset 6px 0 0 #1f6fda;
    }
#tblAgendas thead th {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: normal;
    vertical-align: middle;
    padding: .45rem .4rem;
}
#tblAgendas.dataTable thead > tr > th.sorting,
#tblAgendas.dataTable thead > tr > th.sorting_asc,
#tblAgendas.dataTable thead > tr > th.sorting_desc {
    padding-right: 14px;
}
#tblAgendas.dataTable thead .sorting:before,
#tblAgendas.dataTable thead .sorting_asc:before,
#tblAgendas.dataTable thead .sorting_desc:before {
    right: 7px;
    font-size: .7rem;
}
#tblAgendas.dataTable thead .sorting:after,
#tblAgendas.dataTable thead .sorting_asc:after,
#tblAgendas.dataTable thead .sorting_desc:after {
    right: 1px;
    font-size: .7rem;
}
.th-subtitulo {
    display: block;
    font-size: .62rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: .6;
}
#tblAgendas td.celula-agenda {
    vertical-align: middle;
    font-size: .8rem;
    padding: .45rem .55rem;
}
#tblAgendas tbody tr:hover > td {
    background-color: #dbe7fa !important;
}
.theme-dark #tblAgendas tbody tr:hover > td {
    background-color: #303c4d !important;
}
#tblAgendas tbody tr.agenda-inicio-dia > td {
    border-top: 2px solid #b9c9e0;
}
.theme-dark #tblAgendas tbody tr.agenda-inicio-dia > td {
    border-top: 2px solid #44597a;
}
.celula-empilhada {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.celula-empilhada > span + span {
    margin-top: 3px;
}
.celula-linha-principal {
    font-weight: 600;
    line-height: 1.25;
}
.celula-linha-secundaria {
    font-size: .7rem;
    color: #6c757d;
    line-height: 1.25;
}
.celula-linha-secundaria i {
    margin-right: 4px;
    opacity: .75;
}
.celula-assunto-titulo {
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.2;
}
.celula-modulo-badge {
    display: inline-block;
    color: #fff;
    font-size: .61rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 2px 7px;
    border-radius: 10px;
}
.celula-cliente-nome {
    text-transform: uppercase;
    font-size: .76rem;
    white-space: normal;
    word-break: break-word;
}
.celula-cliente-local {
    text-transform: uppercase;
    font-size: .66rem;
    white-space: normal;
    word-break: break-word;
}
.celula-dia-semana {
    margin-left: 5px;
    padding-left: 5px;
    border-left: 1px solid rgba(108,117,125,.45);
    text-transform: capitalize;
}
.celula-participante-item {
    display: flex;
    font-size: .72rem;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
}
.celula-participante-item i {
    flex: 0 0 auto;
    margin-right: 4px;
    margin-top: 3px;
    font-size: .58rem;
    opacity: .5;
}
#tblAgendas td.celula-historico {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}
#tblAgendas td.celula-data,
#tblAgendas td.celula-status,
#tblAgendas td.celula-acoes {
    white-space: nowrap;
    width: 1%;
}
#tblAgendas td.celula-assunto {
    max-width: 86px;
}
#tblAgendas td.celula-participantes-col {
    max-width: 104px;
}
#tblAgendas td.celula-recursos-col {
    max-width: 108px;
}
#tblAgendas td.celula-historico,
#tblAgendas td.celula-cliente {
    max-width: none;
}
#tblAgendas td.celula-data {
    font-size: .76rem;
}
.celula-historico-texto {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.celula-recurso-item {
    display: flex;
    font-size: .74rem;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}
.celula-recurso-item i {
    flex: 0 0 auto;
    margin-right: 5px;
    margin-top: 3px;
    font-size: .62rem;
    opacity: .55;
}
.celula-vazia {
    color: #adb5bd;
}
.status-agenda {
    display: inline-flex;
    align-items: center;
    font-size: .68rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 2px 7px;
    border-radius: 10px;
}
.status-agenda i {
    font-size: .45rem;
    margin-right: 4px;
}
.status-agenda-aguardando {
    color: #a97400;
    background-color: rgba(201,138,0,.14);
}
.status-agenda-confirmada {
    color: #1e7e34;
    background-color: rgba(40,167,69,.14);
}
.status-agenda-cancelada {
    color: #c22a38;
    background-color: rgba(220,53,69,.14);
}
.agenda-acoes-grupo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.agenda-acoes-grupo > * + * {
    margin-left: 3px;
}
.btn-acao-agenda {
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #d0d7de;
    background-color: #fff;
    color: #4a5560;
    font-size: .68rem;
    line-height: 1;
}
.btn-acao-agenda:hover,
.btn-acao-agenda:focus {
    background-color: #1f6fda;
    border-color: #1f6fda;
    color: #fff;
}
.btn-acao-agenda.dropdown-toggle::after {
    display: none;
}
.btn-expandir-linha {
    color: #6c757d;
}
.agenda-linha-expandida > td {
    background-color: #f3f6fa !important;
    padding: 8px 16px;
    font-size: .78rem;
}
.theme-dark .celula-linha-secundaria,
.theme-dark .celula-vazia,
.theme-dark .btn-expandir-linha {
    color: #9aa7b4;
}
.theme-dark .status-agenda-aguardando {
    color: #ffc94d;
    background-color: rgba(255,201,77,.16);
}
.theme-dark .status-agenda-confirmada {
    color: #4ddb7f;
    background-color: rgba(77,219,127,.16);
}
.theme-dark .status-agenda-cancelada {
    color: #ff7b7b;
    background-color: rgba(255,123,123,.16);
}
.theme-dark .celula-dia-semana {
    border-left-color: rgba(154,167,180,.5);
}
.theme-dark .btn-acao-agenda {
    background-color: #2b3543;
    border-color: #3d4a5c;
    color: #cfd8e3;
}
.theme-dark .btn-acao-agenda:hover,
.theme-dark .btn-acao-agenda:focus {
    background-color: #4ea3ff;
    border-color: #4ea3ff;
    color: #fff;
}
.theme-dark .agenda-linha-expandida > td {
    background-color: #202834 !important;
    color: #dee5ec;
}
#tblAgendas tbody tr.agenda-dia-a > td {
    background-color: #ffffff !important;
}
#tblAgendas tbody tr.agenda-dia-b > td {
    background-color: #e8f0fb !important;
}
.theme-dark #tblAgendas tbody tr.agenda-dia-a > td {
    background-color: #1e242e !important;
}
.theme-dark #tblAgendas tbody tr.agenda-dia-b > td {
    background-color: #27313f !important;
}
#boxObservacoesCliente {
    border-left: 4px solid #17a2b8;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.obs-cliente-header {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
    margin-bottom: .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(0,0,0,.12);
}
.obs-cliente-item {
    padding: .45rem 0;
}
.obs-cliente-item + .obs-cliente-item {
    border-top: 1px dashed rgba(0,0,0,.15);
}
.obs-cliente-titulo {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .15rem;
    display: flex;
    align-items: baseline;
}
.obs-cliente-titulo i {
    margin-right: .45rem;
    opacity: .85;
}
.obs-cliente-texto {
    font-size: .82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.theme-dark .obs-cliente-header {
    border-bottom-color: rgba(255,255,255,.15);
}
.theme-dark .obs-cliente-item + .obs-cliente-item {
    border-top-color: rgba(255,255,255,.15);
}
.theme-dark #boxObservacoesCliente {
    border-left: 4px solid #4ea3ff !important;
}
.card-sugestao-recurso-overlay {
    position: absolute;
    z-index: 50;
    background: #fff;
    border-radius: .85rem;
    box-shadow: rgba(0, 0, 0, .18) 0px 6px 24px;
    padding: .75rem;
}
.card-sugestao-recurso {
    position: relative;
    min-width: 210px;
    max-width: 280px;
}
.card-sugestao-recurso-close {
    position: absolute;
    top: -1.15rem;
    right: -.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    font-size: .75rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, .18) 0px 2px 6px;
}
.card-sugestao-recurso-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}
.card-sugestao-recurso-titulo {
    font-weight: 700;
    font-size: .95rem;
    color: #1f2937;
    margin-bottom: .3rem;
    padding-right: 1.1rem;
}
.card-sugestao-recurso-sub {
    font-size: .82rem;
    color: #4b5563;
    margin-bottom: .35rem;
}
.card-sugestao-recurso-btn {
    border: none;
    background: #e85a34;
    color: #fff;
    border-radius: .5rem;
    padding: .35rem .7rem;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: .25rem;
}
.card-sugestao-recurso-btn:hover {
    background: #d1491f;
}
.theme-dark .card-sugestao-recurso-overlay {
    background: #142235;
}
.theme-dark .card-sugestao-recurso-close {
    background: #1b2d44;
    color: #9fb3c8;
}
.theme-dark .card-sugestao-recurso-close:hover {
    background: #21344d;
    color: #e6edf5;
}
/* Documentos GED (Agenda / Minha OS) - tabela de documentos */
.doc-ged-dropzone {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
    border: 2px dashed #93c5fd;
    border-radius: .75rem;
    background: #eff6ff;
    padding: .9rem 1.1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.doc-ged-dropzone.dragover {
    border-color: #2563eb;
    background: #dbeafe;
}
.doc-ged-dropzone-icon {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.doc-ged-dropzone-texto {
    flex: 1 1 220px;
}
.doc-ged-dropzone-texto a {
    font-weight: 600;
}
.doc-ged-dropzone-acao {
    margin-left: auto;
}
.doc-ged-selecionado {
    font-size: .82rem;
    margin-top: -.6rem;
    margin-bottom: .9rem;
    color: #374151;
}
.doc-ged-tabela td,
.doc-ged-tabela th {
    vertical-align: middle;
}
.doc-ged-tipo {
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}
.doc-ged-tipo i {
    color: #6b7280;
}
.doc-ged-arquivo {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.doc-ged-arquivo-icon {
    color: #dc2626;
    font-size: 1.1rem;
    flex: 0 0 auto;
}
.doc-ged-arquivo-nome {
    font-weight: 600;
    color: #1f2937;
    word-break: break-all;
}
.doc-ged-pill {
    font-size: .78rem;
    padding: .35rem .6rem;
    font-weight: 600;
    white-space: nowrap;
}
.doc-ged-pill i {
    margin-right: .3rem;
}
.doc-ged-canal {
    display: block;
    font-size: .75rem;
    color: #6b7280;
    margin-top: .3rem;
}
.doc-ged-canal i {
    margin-right: .25rem;
}
.doc-ged-canal.canal-email {
    color: #059669;
}
.doc-ged-canal.canal-gespam {
    color: #7c3aed;
}
.theme-dark .doc-ged-dropzone {
    background: var(--dt-input-bg);
    border-color: var(--dt-border);
}
.theme-dark .doc-ged-dropzone.dragover {
    background: var(--dt-hover);
    border-color: var(--dt-link);
}
.theme-dark .doc-ged-dropzone-icon {
    background: var(--dt-bg-3);
    color: var(--dt-link);
}
.theme-dark .doc-ged-selecionado {
    color: var(--dt-text-2);
}
.theme-dark .doc-ged-tipo i {
    color: var(--dt-text-2);
}
.theme-dark .doc-ged-arquivo-nome {
    color: var(--dt-text);
}
.theme-dark .doc-ged-canal {
    color: var(--dt-text-2);
}
.theme-dark .doc-ged-canal.canal-email {
    color: #34d399;
}
.theme-dark .doc-ged-canal.canal-gespam {
    color: #a78bfa;
}
.theme-dark .card-sugestao-recurso-titulo {
    color: #e6edf5;
}
.theme-dark .card-sugestao-recurso-sub {
    color: #9fb3c8;
}