/* Listagem operacional de chamados — acabamento */
.hd-cl-panel > .panel-heading,
.hd-cl-panel > .card-header {
  padding: 8px 16px 2px !important;
}
.hd-cl-panel > .panel-body,
.hd-cl-panel > .card-body {
  padding-top: 6px !important;
}

.hd-cl-toolbar.datagrid-header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
  margin-top: 0;
}
.hd-cl-toolbar .datagrid-header-actions-left-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.hd-cl-toolbar .hd-cl-search {
  position: relative;
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 640px;
}
.hd-cl-search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}
.hd-cl-toolbar .hd-cl-search input,
.hd-cl-toolbar .hd-cl-search .form-control {
  background: #fff !important;
  color: #333 !important;
  height: 34px;
  width: 100%;
  padding-left: 30px !important;
  padding-right: 28px !important;
}
.hd-cl-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085 !important;
  font-size: 16px;
  line-height: 1;
  text-decoration: none !important;
  z-index: 2;
  display: none;
}
.hd-cl-search input:not(:placeholder-shown) + .hd-cl-search-clear,
.hd-cl-search.has-q .hd-cl-search-clear {
  display: block;
}

.hd-cl-views {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 8px 8px;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
}
.hd-cl-views a,
.hd-cl-views .hd-cl-view {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #c5d4c8;
  border-radius: 16px;
  background: #fff;
  color: #053F08 !important;
  font-size: 13px;
  text-decoration: none !important;
  white-space: nowrap;
}
.hd-cl-views .hd-cl-view i {
  font-size: 12px;
  width: 14px;
  text-align: center;
}
.hd-cl-views .hd-cl-view.is-on {
  background: #053F08;
  color: #fff !important;
  border-color: #053F08;
}
.hd-cl-views .hd-cl-view.is-on i { color: #fff !important; }
#hd-cl-view-sem_atendente:not(.is-on) i { color: #a67c52; }
#hd-cl-view-sla_vencido:not(.is-on) i { color: #a65a4e; }
#hd-cl-view-sem_atendente:not(.is-on) { border-color: #e4d5c4; }
#hd-cl-view-sla_vencido:not(.is-on) { border-color: #e4d4d0; }

.hd-cl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0 8px 8px;
  font-size: 12px;
  color: #667085;
  min-height: 0;
}
.hd-cl-chips:empty { display: none; padding: 0; }
.hd-cl-chip {
  display: inline-block;
  background: #eaf6ee;
  color: #053F08 !important;
  border-radius: 12px;
  padding: 2px 8px;
  text-decoration: none !important;
  font-size: 12px;
}
.hd-cl-chip-k { margin-right: 6px; }
.hd-cl-wipe { color: #053F08 !important; text-decoration: underline; font-size: 12px; }

.hd-cl-foot {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px 4px;
  min-height: 36px;
}
.hd-cl-foot .tpagenavigation_resume {
  justify-self: start;
  margin: 0;
  font-size: 12px;
  color: #667085;
  white-space: nowrap;
}
.hd-cl-foot .pagination,
.hd-cl-foot nav,
.hd-cl-foot .tpagenavigation {
  justify-self: center;
  margin: 0 !important;
}
.hd-cl-foot .pagination { margin-bottom: 0 !important; }
.hd-cl-foot .hd-cl-limit-wrap {
  justify-self: end;
  text-align: right;
}
.hd-cl-foot .hd-cl-limit-wrap .btn { height: 30px; padding: 4px 10px; font-size: 12px; }

.hd-cl-panel table {
  width: 100% !important;
  table-layout: auto;
  border-collapse: collapse !important;
  border-spacing: 0;
}
.hd-cl-panel .panel-body.table-responsive,
.hd-cl-panel .table-responsive {
  margin-top: 12px;
  max-height: calc(100vh - 270px);
  overflow: auto;
}
.hd-cl-panel .panel-body.table-responsive thead th,
.hd-cl-panel .table-responsive thead th,
.hd-cl-panel table thead th,
table.tdatagrid_table > thead.tdatagrid_head > tr > th.tdatagrid_col,
table.tdatagrid_table > thead.tdatagrid_head > tr > th.tdatagrid_action {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #e6efe8 !important;
  border-bottom: 1px solid #c5d4c8;
  font-size: 13px;
  font-weight: 600;
  color: #2c4a32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-cl-panel table thead th.tdatagrid_action,
table.tdatagrid_table > thead.tdatagrid_head > tr > th.tdatagrid_action {
  overflow: visible !important;
  text-overflow: clip;
}
.hd-cl-panel table thead th.hd-cl-sorted,
table.tdatagrid_table > thead.tdatagrid_head > tr > th.tdatagrid_col.hd-cl-sorted {
  background: #d5e6d8 !important;
  box-shadow: inset 0 -2px 0 #053F08;
}
.hd-cl-panel table tbody tr td {
  vertical-align: middle;
  padding: 8px 8px;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}
.hd-cl-panel .hd-cl-panel table.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #ffffff;
}
.hd-cl-panel .hd-cl-panel table.table-striped > tbody > tr:nth-of-type(even) {
  background-color: #f7f9f7;
}
.hd-cl-panel .hd-cl-panel table.table-hover > tbody > tr:hover,
.hd-cl-panel table tbody tr:hover {
  background-color: #eef3ee !important;
}

.hd-cl-panel table th.hd-cl-acts-col,
.hd-cl-panel table td.hd-cl-acts-col {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 160px !important;
  padding: 6px 8px !important;
  overflow: visible !important;
  white-space: nowrap !important;
  text-align: left;
}
.hd-cl-acts {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.hd-cl-act {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  text-decoration: none !important;
}
.hd-cl-act i {
  display: inline-block !important;
  font-size: 16px !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
}
.hd-cl-panel table th.hd-cl-crit,
.hd-cl-panel table td.hd-cl-crit { width: 3%; }
.hd-cl-panel table th.hd-cl-idc,
.hd-cl-panel table td.hd-cl-idc { width: 4%; }
.hd-cl-panel table th.hd-cl-open,
.hd-cl-panel table td.hd-cl-open { width: 6%; }
.hd-cl-panel table th.hd-cl-ass,
.hd-cl-panel table td.hd-cl-ass { width: 17%; max-width: 0; }
.hd-cl-panel table th.hd-cl-sla1,
.hd-cl-panel table td.hd-cl-sla1,
.hd-cl-panel table th.hd-cl-sla2,
.hd-cl-panel table td.hd-cl-sla2,
.hd-cl-panel table th.hd-cl-sitc,
.hd-cl-panel table td.hd-cl-sitc {
  width: 13%;
  min-width: 11.8em;
  overflow: visible;
  text-align: center;
}
.hd-cl-panel table th.hd-cl-atend,
.hd-cl-panel table td.hd-cl-atend,
.hd-cl-panel table th.hd-cl-sol,
.hd-cl-panel table td.hd-cl-sol { width: 11%; max-width: 0; }
.hd-cl-panel table td.hd-cl-sla1 .hd-cl-sla,
.hd-cl-panel table td.hd-cl-sla2 .hd-cl-sla,
.hd-cl-panel table td.hd-cl-sitc .hd-cl-sit {
  width: 100%;
  max-width: 100%;
  justify-content: center;
}
.hd-cl-panel table th.hd-cl-tipo,
.hd-cl-panel table td.hd-cl-tipo { width: 16%; max-width: 0; }

.hd-cl-panel table .hd-cl-id {
  color: #053F08;
  font-weight: 500;
  text-decoration: none !important;
}
.hd-cl-panel table .hd-cl-ass-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2933;
  font-weight: 500;
  text-decoration: none !important;
}
.hd-cl-panel table td.hd-cl-open {
  color: #4a5560;
  font-weight: 400;
  font-size: 12px;
}
.hd-cl-panel table td.hd-cl-atend,
.hd-cl-panel table td.hd-cl-sol,
.hd-cl-panel table .hd-cl-clip {
  color: #3d4a54;
  font-weight: 400;
  font-size: 13px;
}
.hd-cl-panel table .hd-cl-clip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hd-cl-panel table .hd-cl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 auto;
  border: 1px solid rgba(31, 41, 51, 0.12);
}
.hd-cl-panel table .hd-cl-sit,
.hd-cl-sla {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  max-width: none;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  overflow: visible;
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
}
.hd-cl-sla {
  gap: 4px;
}
.hd-cl-sla i { font-size: 11px; flex: 0 0 auto; }
.hd-cl-sla.is-ok { background: #E8F3E9; color: #32683B; border-color: #C9DCCB; }
.hd-cl-sla.is-hist { background: #F3E8E6; color: #8B5A56; border-color: #E4D0CC; }
.hd-cl-sla.is-warn { background: #FFF3DF; color: #966119; border-color: #EAD4A8; }
.hd-cl-sla.is-hot { background: #FBE9E7; color: #A23D35; border-color: #E8C8C3; }
.hd-cl-sla.is-pause { background: #E7F0EF; color: #426F70; border-color: #C5D8D6; }
.hd-cl-sla.is-na { background: #f3f4f4; color: #4a5560; border-color: #e4e7e6; }

.hd-cl-panel table td.action a[disabled],
.hd-cl-panel table td.action a.disabled,
.hd-cl-panel table td.action a[disabled] i,
.hd-cl-panel table td.action a.disabled i {
  opacity: 0.4;
  pointer-events: none;
}
.hd-cl-panel table thead th[generator="adianti"] { cursor: pointer; }
.hd-cl-panel table thead th .fa-chevron-up,
.hd-cl-panel table thead th .fa-chevron-down {
  margin-left: 4px;
  color: #053F08;
  font-size: 10px;
}

.hd-cl-panel.hd-cl-density-compact table tbody tr td {
  height: 32px !important;
  max-height: 32px;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  font-size: 12px;
  line-height: 1.2;
}
.hd-cl-panel.hd-cl-density-compact table td.hd-cl-acts-col {
  height: auto !important;
  max-height: none !important;
  padding: 3px 8px !important;
}
.hd-cl-panel.hd-cl-density-compact table .hd-cl-sit,
.hd-cl-panel.hd-cl-density-compact .hd-cl-sla {
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  font-size: 11px;
}
.hd-cl-panel.hd-cl-density-compact table .hd-cl-dot {
  width: 12px;
  height: 12px;
}
.hd-cl-panel.hd-cl-density-compact table td.hd-cl-atend,
.hd-cl-panel.hd-cl-density-compact table td.hd-cl-sol,
.hd-cl-panel.hd-cl-density-compact table .hd-cl-clip {
  font-size: 12px;
}
.hd-cl-panel.hd-cl-density-default table tbody tr td {
  height: 42px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.hd-cl-panel.hd-cl-density-comfort table tbody tr td {
  height: 56px !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  font-size: 14px;
}
.hd-cl-panel.hd-cl-density-comfort table td.hd-cl-open {
  font-size: 13px;
}
.hd-cl-panel.hd-cl-density-comfort table .hd-cl-ass-link {
  font-size: 14px;
  font-weight: 500;
}
.hd-cl-panel.hd-cl-density-comfort table .hd-cl-sit,
.hd-cl-panel.hd-cl-density-comfort .hd-cl-sla {
  font-size: 12px;
  height: 24px;
  line-height: 24px;
}
.hd-cl-panel.hd-cl-density-default table td.hd-cl-acts-col,
.hd-cl-panel.hd-cl-density-comfort table td.hd-cl-acts-col {
  height: auto !important;
  max-height: none !important;
}

@media (max-width: 1100px) {
  .hd-cl-toolbar { flex-wrap: wrap; }
  .hd-cl-toolbar .hd-cl-search { flex: 1 1 100%; max-width: none; }
  .hd-cl-foot {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
  }
  .hd-cl-foot .tpagenavigation_resume,
  .hd-cl-foot .hd-cl-limit-wrap { justify-self: center; }
}

/* Meus chamados — distribuição própria (não reutiliza larguras do atendente) */
.hd-cl-panel-meus .panel-body.table-responsive,
.hd-cl-panel-meus .table-responsive {
  max-height: none;
  overflow: visible;
}
.hd-cl-panel-meus .hd-cl-table-wrap {
  overflow-x: auto;
}
.hd-cl-panel-meus > .panel-footer,
.hd-cl-panel-meus > .card-footer {
  background: #fff;
  border-top: 1px solid #dfe6dc;
}
.hd-cl-panel-meus .hd-cl-foot .pagination .page-item.off {
  display: none;
}

.hd-cl-panel-meus table {
  table-layout: fixed !important;
  width: 100% !important;
}
.hd-cl-panel-meus table thead th,
.hd-cl-panel-meus table tbody tr td {
  font-size: 14px;
}
.hd-cl-panel-meus table tbody tr td {
  padding: 10px 10px;
}
.hd-cl-panel-meus table th.hd-cl-acts-col,
.hd-cl-panel-meus table td.hd-cl-acts-col {
  width: 7% !important;
  min-width: 86px !important;
  max-width: none !important;
  padding: 6px 6px !important;
  text-align: center !important;
}
.hd-cl-panel-meus .hd-cl-acts {
  gap: 6px;
  justify-content: center;
  width: 100%;
}
.hd-cl-panel-meus table th.hd-cl-crit,
.hd-cl-panel-meus table td.hd-cl-crit {
  width: 3% !important;
  min-width: 36px;
  text-align: center !important;
}
.hd-cl-panel-meus table th.hd-cl-idc,
.hd-cl-panel-meus table td.hd-cl-idc {
  width: 5% !important;
  text-align: center !important;
}
.hd-cl-panel-meus table .hd-cl-id {
  font-weight: 600;
}
.hd-cl-panel-meus table th.hd-cl-open,
.hd-cl-panel-meus table td.hd-cl-open {
  width: 9% !important;
  font-size: 13px;
  text-align: left !important;
}
.hd-cl-panel-meus table th.hd-cl-ass,
.hd-cl-panel-meus table td.hd-cl-ass {
  width: 32% !important;
  max-width: 0;
  min-width: 0;
  text-align: left !important;
}
.hd-cl-panel-meus table .hd-cl-ass-link {
  font-weight: 500;
}
.hd-cl-panel-meus table th.hd-cl-atend,
.hd-cl-panel-meus table td.hd-cl-atend {
  width: 17% !important;
  max-width: 0;
  min-width: 0;
  text-align: left !important;
  white-space: normal;
}
.hd-cl-panel-meus table th.hd-cl-tipo,
.hd-cl-panel-meus table td.hd-cl-tipo {
  width: 15% !important;
  max-width: 0;
  min-width: 0;
  text-align: left !important;
}
.hd-cl-panel-meus table th.hd-cl-sol,
.hd-cl-panel-meus table td.hd-cl-sol {
  width: 9% !important;
  max-width: 0;
  min-width: 0;
  text-align: left !important;
}
.hd-cl-panel-meus table th.hd-cl-sitc,
.hd-cl-panel-meus table td.hd-cl-sitc {
  width: 12% !important;
  min-width: 0;
  overflow: hidden;
  text-align: center !important;
}
.hd-cl-panel-meus table td.hd-cl-sitc .hd-cl-sit,
.hd-cl-panel-meus table .hd-cl-sit {
  width: auto !important;
  max-width: 100%;
  height: auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}
.hd-cl-panel-meus table td.hd-cl-atend,
.hd-cl-panel-meus table td.hd-cl-sol,
.hd-cl-panel-meus table .hd-cl-clip {
  font-size: 14px;
}
.hd-cl-panel-meus table td.hd-cl-atend .hd-cl-clip {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.hd-cl-panel-meus.hd-cl-density-compact table tbody tr td {
  font-size: 13px;
}
.hd-cl-panel-meus.hd-cl-density-compact table .hd-cl-sit,
.hd-cl-panel-meus.hd-cl-density-comfort table .hd-cl-sit {
  height: auto;
  min-height: 20px;
  line-height: 1.25;
  padding: 3px 8px;
  white-space: normal;
}
.hd-cl-panel-meus.hd-cl-density-comfort table tbody tr td {
  font-size: 14px;
}

@media (max-width: 1366px) {
  .hd-cl-panel-meus table th.hd-cl-acts-col,
  .hd-cl-panel-meus table td.hd-cl-acts-col {
    min-width: 84px !important;
  }
}
