﻿/* ---------------------------------------------------------------------------
   Gestão de Projetos (tickets e registo diário).
   --------------------------------------------------------------------------- */

/* --------------------------------------------------------------- filtros --- */

.portal-gp-filters {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: flex-end;
   gap: 10px;
}

   .portal-gp-filters .form-control,
   .portal-gp-filters .form-select {
      min-width: 140px;
      max-width: 260px;
   }

   .portal-gp-filters input[type="date"] {
      max-width: 170px;
   }

   .portal-gp-filters .form-check {
      margin: 0;
      padding-left: 2.6em;
   }

/* -------------------------------------------------------------- listagem --- */

.portal-gp-table {
   margin-bottom: 0;
}

   .portal-gp-table > :not(caption) > * > * {
      padding: .6rem .55rem;
      vertical-align: middle;
   }

.portal-gp-row {
   cursor: pointer;
}

.portal-gp-ticket {
   font-weight: 700;
   color: var(--portal-primary-dark, #0d47a1);
   font-variant-numeric: tabular-nums;
}

.portal-gp-subject {
   max-width: 320px;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

/* ---------------------------------------------------------------- edição --- */

.portal-gp-actions {
   display: flex;
   flex-wrap: wrap;
   justify-content: flex-end;
   gap: 10px;
   margin-top: 20px;
}

   .portal-gp-actions .form-control {
      max-width: 320px;
   }

/* -------------------------------------------------------- registo diário --- */

.portal-gp-col-terceiro {
   min-width: 230px;
}

.portal-gp-col-natureza {
   min-width: 190px;
}

.portal-gp-col-tempo {
   width: 92px;
}

.portal-gp-col-numero {
   width: 96px;
}

.portal-gp-col-obs {
   min-width: 200px;
}

.portal-gp-col-acao {
   width: 52px;
}

.portal-gp-table-edit .form-control,
.portal-gp-table-edit .form-select {
   min-width: 0;
}

.portal-gp-terceiro {
   display: flex;
   align-items: center;
   gap: 8px;
}

   .portal-gp-terceiro .btn {
      flex: 0 0 auto;
      padding: .3rem .5rem;
   }

.portal-gp-terceiro-info {
   display: flex;
   flex-direction: column;
   min-width: 0;
   line-height: 1.15;
}

.portal-gp-terceiro-code {
   font-size: 12.5px;
   font-weight: 600;
}

.portal-gp-terceiro-info small {
   max-width: 160px;
   overflow: hidden;
   font-size: 11px;
   color: var(--portal-muted);
   text-overflow: ellipsis;
   white-space: nowrap;
}

.portal-gp-hint {
   margin: 12px 0 0;
   font-size: 11.5px;
}

/* ---------------------------------------------------- modal de terceiros --- */

.portal-gp-picker {
   display: flex;
   flex-direction: column;
   gap: 6px;
   max-height: 320px;
   overflow-y: auto;
}

.portal-gp-picker-item {
   display: flex;
   align-items: center;
   gap: 10px;
   width: 100%;
   padding: 8px 10px;
   border: 1px solid var(--portal-line, #e3e8ee);
   border-radius: var(--radius-md);
   background: transparent;
   text-align: left;
}

   .portal-gp-picker-item:hover {
      background: var(--portal-primary-soft, #eaf2fb);
   }

.portal-gp-picker-code {
   flex: 0 0 auto;
   font-size: 12px;
   font-weight: 700;
   font-variant-numeric: tabular-nums;
}

.portal-gp-picker-name {
   flex: 1 1 auto;
   min-width: 0;
   overflow: hidden;
   font-size: 12.5px;
   text-overflow: ellipsis;
   white-space: nowrap;
}

@media (max-width: 767.98px) {
   .portal-gp-filters {
      justify-content: flex-start;
   }
}
