/* Estilos das abas montadas localmente (Historico e Documentos). */
.gp-demo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gp-demo-table th {
  text-align: left; padding: 9px 12px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: #4a5568; background: #f3f5f9; border-bottom: 1px solid #dfe3ec;
}
.gp-demo-table td { padding: 10px 12px; border-bottom: 1px solid #edf0f5; color: #1f2937; vertical-align: top; }
.gp-demo-table tbody tr:hover td { background: #f8fafd; }
.gp-demo-table td.nowrap { white-space: nowrap; }
.gp-demo-table td.strong { font-weight: 600; color: #1b2a5c; }
.gp-demo-doc-icon { color: #c0392b; margin-right: 8px; }

.gp-processo-form-section .gp-unfolding-table td { white-space: nowrap; }

/* Pop-up local (substitui o modal que buscava dados no servidor) */
.gp-demo-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.gp-demo-modal { background: #fff; border-radius: 8px; width: min(1100px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
.gp-demo-modal-head { display: flex; align-items: center; justify-content: space-between; background: #1b2a5c; color: #fff; padding: 10px 16px; font-size: 14px; }
.gp-demo-modal-close { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.gp-demo-modal-body { padding: 14px; background: #f4f6fb; max-height: calc(100vh - 140px); overflow: auto; }

/* Lista de processos (Resultado da Pesquisa) */
.gp-demo-lista { background: #fff; margin: 12px 16px; padding: 18px 22px 24px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.gp-demo-lista-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 6px; }
.gp-demo-lista-titulo { font-family: Verdana, Arial, sans-serif; font-size: 24px; font-weight: 700; color: #000; line-height: 1.1; }
.gp-demo-lista-sub { font-family: Verdana, Arial, sans-serif; font-size: 13px; font-weight: 700; font-style: italic; text-decoration: underline; color: #000; }
.gp-demo-lista-ferramentas { display: flex; gap: 6px; padding-bottom: 2px; }
.gp-demo-lista-ico { color: #fff; font-size: 9px; font-weight: 700; padding: 6px 7px; border-radius: 3px; font-family: Arial, sans-serif; }
.gp-demo-lista-tabela { border-collapse: collapse; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; color: #000; max-width: 100%; }
.gp-demo-lista-tabela th { color: #000 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 12px; background: #e9e9e9; border: 1px solid #222; padding: 2px 5px; text-align: left; vertical-align: bottom; white-space: nowrap; }
.gp-demo-lista-tabela th .ord { font-size: 9px; font-weight: 400; color: #333; letter-spacing: 1px; margin-bottom: 1px; }
.gp-demo-lista-tabela td { border: 1px solid #222; padding: 3px 4px; white-space: nowrap; background: #fff; }
.gp-demo-lista-tabela tbody tr:nth-child(even) td { background: #fdfbd4; }
.gp-demo-lista-tabela tbody tr { cursor: pointer; }
.gp-demo-lista-tabela tbody tr:hover td { background: #dbe9ff; }
.gp-demo-lista-tabela td.num { text-align: right; }
.gp-demo-lista-tabela td.ico, .gp-demo-lista-tabela th.ico { width: 26px; text-align: center; color: #d6a21f; font-size: 16px; padding: 1px 3px; }
.gp-sidebar-section-main a.gp-demo-inativo { background: transparent !important; border-left-color: transparent !important; color: #374151 !important; font-weight: 400; }
.gp-sidebar-section-operacional a.gp-demo-ativo { background: #eff3fc !important; border-left: 3px solid #2f56a6 !important; color: #2f56a6 !important; font-weight: 500; }

.gp-demo-lista { overflow-x: auto; }
.gp-demo-lista-tabela td:last-child { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.gp-demo-lista-tabela td:nth-child(8) { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }

/* Calendario / Workflow / Relatorios (layout do Gerpro de desenvolvimento) */
#demoPagina { margin: 12px 16px; font-family: Arial, sans-serif; }
.gp-ag-agenda { padding: 3px 0; font-size: 12px; }
.postbox { background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12); padding: 14px 18px; }
.postbox h3 { font-size: 18px; color: #1b2a5c; margin: 0 0 12px; }
.hor-inst-b { border-collapse: collapse; width: 100%; font-size: 13px; }
.hor-inst-b th { text-align: left; padding: 8px 10px; background: #f3f5f9; border-bottom: 1px solid #dfe3ec; font-size: 12px; }
.hor-inst-b td { padding: 8px 10px; border-bottom: 1px solid #edf0f5; }
.gp-wf-canvas { position: relative; border: 1px solid #dfe3ec; border-radius: 6px; margin: 8px 0; padding: 10px; background: #fafbfd; }
.gp-wf-salvar { position: absolute; top: 8px; right: 10px; border: 3px solid green; background: #fff; padding: 4px 10px; cursor: pointer; }
.gp-rel-lay { display: flex; gap: 18px; align-items: flex-start; }
.gp-rel-tree, .gp-rel-tree ul { list-style: none; margin: 0; padding-left: 16px; font-size: 13px; }
.gp-rel-tree { width: 330px; flex: none; padding-left: 0; }
.gp-rel-tree li { padding: 3px 0; } .gp-rel-tree a { color: #2f56a6; text-decoration: none; } .gp-rel-tree a.at { font-weight: 700; text-decoration: underline; }
.gp-rel-area { flex: 1; min-width: 0; }
.gp-rel-crit { background: #f4f6fb; padding: 8px 10px; margin-bottom: 14px; font-size: 12px; border-radius: 4px; }
.gp-rel-t { background: #000; font: 11px Verdana, Arial, sans-serif; margin-bottom: 4px; }
.gp-rel-t td { background: #fff; padding: 2px 6px; } .gp-rel-t tr.cab td { background: #c0c0c0; }
.gp-rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gp-rel-graf { background: #f4f6fb; border-radius: 6px; padding: 12px 14px; }
.gp-rel-graf h4 { margin: 0 0 10px; font-size: 14px; color: #1b2a5c; }
.gp-rel-graf .b { display: grid; grid-template-columns: 150px 1fr 90px; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 6px; }
.gp-rel-graf .b div { background: #dfe3ec; height: 12px; border-radius: 6px; } .gp-rel-graf .b i { display: block; height: 100%; border-radius: 6px; } .gp-rel-graf .b b { text-align: right; }
.gp-rel-pizza { display: flex; align-items: center; gap: 16px; font-size: 12px; } .gp-rel-pizza .leg div, .leg2 { margin: 4px 0; }
.gp-rel-pizza i, .leg2 i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 5px 0 8px; }
.gp-rel-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.gp-rel-kpis div { background: #1b2a5c; color: #cfd8f0; border-radius: 6px; padding: 10px 12px; font-size: 12px; } .gp-rel-kpis b { display: block; color: #fff; font-size: 22px; }
.gp-rel-graf h4, .gp-wf-canvas h4 { background: none !important; color: #1b2a5c !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; padding: 0 !important; }
.gp-rel-graf .b { grid-template-columns: 150px 1fr 100px; } .gp-rel-graf .b b { white-space: nowrap; }
.gp-ag-lado { padding: 10px 16px; font-size: 13px; }
.gp-ag-lado h5 { font-size: 12px; text-transform: uppercase; color: #6b7280; margin: 12px 0 6px; }
body.gp-demo-pagina aside.aside-menu { display: none !important; }
.hor-inst-b th { color: #1f2937 !important; text-transform: none !important; }
.hor-inst-b td { color: #1f2937; }
