.dni {
  background-color: #f1f1f1b7;
  color: black;
}
.headerModalSearchCustomer {
  background-color: #5cfa00 !important;
}

.DivDni > .form-control:focus {
  border-color: #00fa60 !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset,
    0 0 8px rgba(0, 204, 85, 0.3);
}
.BtnSearch {
  color: #ffffff;
  background-color: #5dd11a;
}

.LabelDni {
  font-size: large;
  text-align: end;
  /* margin-right: 14px; */
  font-style: italic;
  font-family: cursive;
}

.LabelName {
  text-align: center;
  font-size: xx-large;
  margin-top: -10px;
  font-family: math;
}

.DivBodyTramite {
  border-radius: 28px !important;
  margin: 10px;
  padding-left: 54px;
  padding-right: 54px;
}

.DivHeaderTramite {
  background-color: #66339980 !important;
  border-radius: 28px;
  text-align: center;
}

.DivFooterTramite {
  border-radius: 0px;
  margin: 10px;
}

.DivBodyTramite > div > div > .form-group {
  text-align: center;
}

.DivBodyTramite > div > div > .form-group > input,
.DivBodyTramite > div > div > .form-group > textarea,
.DivBodyTramite > div > div > .form-group > select {
  border-radius: 15px;
}

.DivBodyTramite > div > div > .form-group > input:focus,
.DivBodyTramite > div > div > .form-group > textarea:focus,
.DivBodyTramite > div > div > .form-group > select:focus {
  border-color: #b300fa !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset,
    0 0 8px rgba(187, 0, 204, 0.3);
}

.DivBodyTramite > div > div > .form-group > select > option {
  color: #3e0355;
}

/* .DivBodyTramite > div > div > .form-group > select > option:hover{
    background-color: #ffffff;
}

.DivBodyTramite > div > div > .form-group > select > option:checked{
    background-color: #fa9600;
} */

.BtnAgregar {
  position: relative;
  width: 150px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 1px solid #34974d;
  background-color: #3aa856;
}

.BtnAgregar,
.BtnAgregar__icon,
.BtnAgregar__text {
  transition: all 0.3s;
}

.BtnAgregar .BtnAgregar__text {
  transform: translateX(30px);
  color: #fff;
  font-weight: 600;
}

.BtnAgregar .BtnAgregar__icon {
  position: absolute;
  transform: translateX(109px);
  height: 100%;
  width: 39px;
  background-color: #34974d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.BtnAgregar .BtnIcon {
  width: 30px;
  stroke: #fff;
  color: white;
}

.BtnAgregar:hover {
  background: #34974d;
}

.BtnAgregar:hover .BtnAgregar__text {
  color: transparent;
}

.BtnAgregar:hover .BtnAgregar__icon {
  width: 148px;
  transform: translateX(0);
}

.BtnAgregar:active .BtnAgregar__icon {
  background-color: #2e8644;
}

.BtnAgregar:active {
  border: 1px solid #2e8644;
}

.Proceso {
  background: linear-gradient(
      15deg,
      #ffbb33,
      #ff9933,
      #ff7f32,
      #ff5a1f,
      #e64a19,
      #ff5a1f,
      #ff7f32,
      #ff9933,
      #ffbb33
    )
    no-repeat;
}
.Terminado {
  background: linear-gradient(
      15deg,
      #a8e6a3,
      #6dbf6f,
      #3d9b45,
      #2d7b30,
      #1e5e24,
      #2d7b30,
      #3d9b45,
      #6dbf6f,
      #a8e6a3
    )
    no-repeat;
}

.Atendido {
  background: linear-gradient(
      15deg,
      #a8e6a3,
      #6dbf6f,
      #3d9b45,
      #2d7b30,
      #1e5e24,
      #2d7b30,
      #3d9b45,
      #6dbf6f,
      #a8e6a3
    )
    no-repeat;
}

.En-Atencion {
  background: linear-gradient(
      15deg,
      #ff6666,
      #ff4d4d,
      #ff3333,
      #e60000,
      #b30000,
      #e60000,
      #ff3333,
      #ff4d4d,
      #ff6666
    )
    no-repeat;
}

.En-Espera {
  background: linear-gradient(
      15deg,
      #004d7f,
      #0066b3,
      #0077cc,
      #3399ff,
      #66b3ff,
      #3399ff,
      #0077cc,
      #0066b3,
      #004d7f
    )
    no-repeat;
}

.Continuar-Atencion {
  background: linear-gradient(
      15deg,
      #004d7f,
      #0066b3,
      #0077cc,
      #3399ff,
      #66b3ff,
      #3399ff,
      #0077cc,
      #0066b3,
      #004d7f
    )
    no-repeat;
}

.buttonTablaNew {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8em 1.1em;
  gap: 0.4rem;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
  background-size: 300%;
  background-position: left center;
  transition: background 0.3s ease;
  color: #fff;
}

.buttonTablaNew:hover {
  background-size: 320%;
  background-position: right center;
}

.LabelProject {
  text-align: center;
  font-size: 26px;
  margin-top: 0px;
  font-family: math;
}
.LabelProcess {
  text-align: center;
  font-size: 26px;
  margin-top: 0px;
  font-family: math;
}
.LabelArea {
  text-align: center;
  font-size: 26px;
  margin-top: 0px;
  font-family: math;
}

.TextAreaDetail:disabled {
  background-color: rgb(255, 255, 255);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.315);
  max-width: 100%;
  max-height: 100px;
}

.DivSeparador {
  text-align: -webkit-center;
}

.main__action {
  text-decoration: none;
}
.main__action {
  width: 45px;
}
.main__scroll-text {
  color: rgba(28, 28, 30, 1);
}
.main__action .main__scroll-box {
  animation: scroll-down 3s infinite;
}

@keyframes scroll-down {
  0%,
  100% {
    transform: translateY(0rem);
    opacity: 1;
  }

  35% {
    transform: translateY(1rem);
    opacity: 0;
  }

  70% {
    transform: translateY(-1rem);
    opacity: 0;
  }
}

.DivBtn > .btn {
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
  color: white;
  margin: 5px;
  border-radius: 20px;
  height: 45px;
  align-content: center;
  min-width: 150px;
  -webkit-text-stroke-width: thin;
  box-shadow: 1px 3px 2px rgb(57 57 57 / 50%);
}
.DivBtn > .BtnSave {
  background: linear-gradient(15deg,rgb(7, 50, 241),rgb(137, 157, 247),rgb(7, 50, 241)) no-repeat;
  background-size: 300%;
  background-position: left center;
  transition: background 0.3s ease ;
}
.DivBtn > .BtnSave:hover {
  background-size: 320%;
  background-position: right center;
}
.DivBtn > .BtnSendArea {
  background: linear-gradient(15deg,rgb(2, 167, 16),rgb(137, 243, 145),rgb(7, 241, 26)) no-repeat;
  background-size: 300%;
  background-position: left center;
  transition: background 0.3s ease ;
}
.DivBtn > .BtnSendArea:hover {
  background-size: 320%;
  background-position: right center;
}
.DivBtn > .BtnClose {
  background: linear-gradient(15deg,rgb(241, 7, 7),rgb(255, 89, 89),rgb(241, 7, 7)) no-repeat;
  background-size: 300%;
  background-position: left center;
  transition: background 0.3s ease ;
}
.DivBtn > .BtnClose:hover {
  background-size: 320%;
  background-position: right center;
}

.ParraDetailProcess{
  margin: 15px;
  padding: 10px;
  border-radius: 20px;
  font-size:15px;
  box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.process-workspace {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(25, 42, 70, 0.08);
  overflow: hidden;
}

.process-workspace > .panel-heading {
  background: #ffffff;
  border-bottom: 1px solid #e8edf3;
  padding: 18px 22px;
}

.process-heading {
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.process-heading h3 {
  color: #1f2937;
  font-size: 22px;
  font-weight: 700;
  margin: 2px 0 0;
}

.process-eyebrow {
  color: #607086;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.process-user-area {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  color: #243145;
  display: flex;
  gap: 8px;
  padding: 9px 12px;
}

.process-user-area small {
  border-left: 1px solid #d6dee8;
  color: #607086;
  padding-left: 8px;
}

.process-table > thead > tr > th {
  background: #f7f9fc;
  border-bottom: 1px solid #dce4ef;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.process-table > tbody > tr > td {
  vertical-align: middle;
}

.process-workspace .panel-heading {
  padding: 18px 22px 14px;
}

.process-workspace .row {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
}

.process-filter label {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.ticket-cell,
.client-cell {
  display: grid;
  gap: 2px;
}

.ticket-cell strong {
  color: #1d4ed8;
  font-size: 13px;
}

.ticket-cell small,
.client-cell small {
  color: #667085;
  font-size: 11px;
}

.client-cell strong {
  color: #1f2937;
  font-size: 13px;
}

.truncate-cell {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-modal .panel {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.process-modal .panel-heading {
  background: #253247 !important;
  border-radius: 0;
  color: #ffffff;
  padding: 16px 20px;
}

.process-modal .panel-title {
  color: #ffffff;
  font-weight: 700;
}

.process-modal-label {
  color: #607086;
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.LabelDni,
.LabelName,
.LabelProject,
.LabelProcess,
.LabelArea {
  color: #1f2937;
  font-family: inherit;
  letter-spacing: 0;
}

.LabelName {
  font-size: 28px;
  font-weight: 700;
}

.LabelProject,
.LabelProcess,
.LabelArea {
  font-size: 20px;
  font-weight: 600;
}

.DivBodyTramite {
  border-radius: 0 !important;
  margin: 0;
  padding: 26px 34px;
}

.DivHeaderTramite {
  background-color: #253247 !important;
  border-radius: 0;
}

.ParraDetailProcess {
  background: #f8fafc;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  color: #344054;
  line-height: 1.55;
  margin: 15px 0;
  padding: 14px 16px;
}

.buttonTablaNew {
  border-radius: 8px;
  box-shadow: none;
  flex-direction: column;
  gap: 2px;
  min-height: 42px;
  padding: 8px 10px;
  text-shadow: none;
}

.buttonTablaNew small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.92;
}

.Proceso,
.Continuar-Atencion {
  background: #2563eb;
}

.Terminado,
.Atendido {
  background: #16835f;
}

.En-Atencion {
  background: #c2410c;
}

.En-Espera {
  background: #475569;
}

.process-history {
  margin-top: 10px;
}

.process-history-title {
  align-items: center;
  color: #253247;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 14px;
}

.process-timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr;
}

.timeline-index {
  align-items: center;
  background: #e8edf3;
  border-radius: 50%;
  color: #253247;
  display: flex;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.timeline-item.is-active .timeline-index {
  background: #f97316;
  color: #ffffff;
}

.timeline-item.is-finished .timeline-index {
  background: #16835f;
  color: #ffffff;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 14px 16px;
}

.timeline-card-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.timeline-card-head strong {
  color: #1f2937;
  display: block;
  font-size: 15px;
}

.timeline-card-head span {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.timeline-card-head em {
  background: #f1f5f9;
  border-radius: 999px;
  color: #334155;
  font-style: normal;
  font-weight: 700;
  padding: 5px 9px;
  white-space: nowrap;
}

.timeline-card p {
  color: #344054;
  line-height: 1.5;
  margin: 12px 0;
}

.timeline-meta {
  border-top: 1px solid #edf1f5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 10px;
}

.timeline-meta span {
  color: #607086;
  font-size: 12px;
}

.empty-history {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #607086;
  padding: 18px;
  text-align: center;
}

.attendant-chip {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #c9def7;
  border-radius: 999px;
  color: #253247;
  display: inline-flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 12px;
}

.attendant-chip strong {
  color: #0f5ea8;
}

.attend-modal.modal-block-lg {
  max-width: 920px;
}

.attend-modal .panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
}

.attend-modal .panel-heading .close {
  color: #ffffff;
  opacity: 0.85;
}

.attend-ticket-card {
  background: #f8fafc;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-bottom: 18px;
  padding: 18px;
}

.attend-ticket-main .TicketCode {
  color: #2563eb;
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

.attend-ticket-main .LabelName {
  font-size: 24px;
  margin: 8px 0;
  text-align: left;
}

.attend-ticket-side {
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  padding: 14px;
}

.attend-ticket-side > span {
  color: #667085;
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.attend-ticket-side > strong {
  color: #1f2937;
  display: block;
  font-size: 17px;
  margin: 4px 0 12px;
}

.attend-readonly {
  background: #f8fafc !important;
  min-height: 86px;
}

.attend-modal .form-group,
.attend-modal label {
  text-align: left;
}

.detailProcess {
  min-height: 104px;
}

.DivAreaAttend {
  background: #f8fafc;
  border: 1px dashed #b8c7dc;
  border-radius: 8px;
  padding: 14px;
}

.DivFooterTramite {
  background: #ffffff;
  border-top: 1px solid #e8edf3;
  margin: 0;
  padding: 14px 18px;
}

.DivBtn,
.attend-actions,
.AttendOwnerActions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.BtnRelease {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
}

.BtnRelease:hover,
.BtnRelease:focus {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.BtnComment {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #344054;
}

.DetailProcessActions {
  margin-top: 14px;
}

.DetailProcessActions .btn {
  width: 100%;
}

.detail-action-note {
  background: #f8fafc;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  color: #475569;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
  padding: 10px;
}

@media (max-width: 767px) {
  .process-heading,
  .timeline-card-head,
  .timeline-meta {
    display: block;
  }

  .process-user-area {
    margin-top: 12px;
  }

  .DivBodyTramite {
    padding: 20px 16px;
  }

  .attend-ticket-card {
    grid-template-columns: 1fr;
  }

  .DivBtn,
  .attend-actions,
  .AttendOwnerActions {
    align-items: stretch;
    flex-direction: column;
  }

  .DivBtn .btn,
  .AttendOwnerActions .btn {
    width: 100%;
  }
}

html.fixed .page-header {
  display: none;
}

.page-header h2 {
  background: transparent !important;
  border: 0 !important;
  display: block;
  color: #172033;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
  padding: 0;
  text-shadow: none;
  width: auto;
}

.breadcrumbs,
.breadcrumbs span,
.breadcrumbs a {
  color: #667085;
  font-size: 12px;
}

.header {
  border-bottom: 1px solid #e6edf4;
  box-shadow: 0 4px 18px rgba(25, 42, 70, 0.05);
}

.sidebar-left {
  background: #172033;
  box-shadow: 8px 0 28px rgba(16, 24, 40, 0.12);
}

.sidebar-left .sidebar-header {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-left .sidebar-title {
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0;
}

ul.nav-main li a {
  border-radius: 8px;
  color: #cbd5e1;
  margin: 4px 10px;
  min-height: 42px;
}

ul.nav-main li a:hover,
ul.nav-main li.nav-active > a,
ul.nav-main li.nav-expanded > a {
  background: #243145;
  color: #ffffff;
}

ul.nav-main li a i {
  color: #8db2e5;
}

.content-body {
  background: #f4f7fb;
}

.panel {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(25, 42, 70, 0.08);
}

.panel > .panel-heading {
  background: #ffffff;
  border-bottom: 1px solid #e8edf3;
  border-radius: 8px 8px 0 0;
}

.panel-title {
  color: #1f2937;
  font-weight: 700;
  letter-spacing: 0;
}

.app-crud-panel > .panel-heading {
  padding: 18px 22px;
}

.app-panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.app-panel-title h3 {
  color: #1f2937;
  font-size: 22px;
  font-weight: 700;
  margin: 2px 0 0;
}

.app-eyebrow {
  color: #607086;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-panel-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.app-switch {
  margin-top: 4px;
}

.app-data-table > thead > tr > th,
.table > thead > tr > th {
  background: #f7f9fc;
  border-bottom: 1px solid #dce4ef;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-data-table > tbody > tr > td,
.table > tbody > tr > td {
  border-color: #edf1f5;
  color: #344054;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-child(odd) > td {
  background-color: #fbfdff;
}

.btn {
  border-radius: 7px;
  font-weight: 700;
  letter-spacing: 0;
}

.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-success {
  background: #16835f;
  border-color: #16835f;
}

.btn-danger {
  background: #c2410c;
  border-color: #c2410c;
}

.form-control {
  border-color: #d8e1ec;
  border-radius: 7px;
  box-shadow: none;
}

.form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.modal-block .panel,
.app-modal-panel {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.app-modal-panel > .panel-heading,
.modal-block .panel > .panel-heading {
  background: #253247 !important;
  color: #ffffff;
}

.app-modal-panel .panel-title,
.modal-block .panel > .panel-heading .panel-title {
  color: #ffffff;
}

.app-modal-panel > .panel-footer,
.modal-block .panel > .panel-footer {
  background: #f8fafc;
  border-top: 1px solid #e8edf3;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 18px;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d8e1ec;
  border-radius: 7px;
  margin-left: 8px;
  min-height: 34px;
}

.dataTables_wrapper .dataTables_filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter label {
  align-items: center;
  display: flex;
  margin: 0;
}

.dt-export-excel {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-height: 34px;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #d8e1ec;
  border-radius: 7px;
  min-height: 34px;
}

.customer-history-modal {
  max-width: 980px;
}

.customer-profile-strip {
  background: #f8fafc;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  margin-bottom: 18px;
  padding: 14px;
}

.customer-profile-strip span {
  color: #667085;
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.customer-profile-strip strong {
  color: #1f2937;
  display: block;
  font-size: 14px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.CustomerEventForm {
  border-bottom: 1px solid #e8edf3;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.customer-event-actions {
  display: flex;
  justify-content: flex-end;
}

.customer-history-title {
  align-items: center;
  color: #253247;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 12px;
}

.customer-history-timeline {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.customer-event-card {
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr;
}

.customer-event-icon {
  align-items: center;
  background: #e8f1ff;
  border-radius: 50%;
  color: #2563eb;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.customer-event-body {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 13px 15px;
}

.customer-event-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.customer-event-head strong {
  color: #1f2937;
  display: block;
}

.customer-event-head span,
.customer-event-body em,
.customer-event-head small {
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.customer-event-body p {
  color: #344054;
  line-height: 1.5;
  margin: 10px 0;
}

.event-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.event-attachment {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  color: #253247;
  display: inline-flex;
  gap: 8px;
  max-width: 220px;
  min-height: 38px;
  padding: 6px 9px;
  text-decoration: none;
}

.event-attachment:hover,
.event-attachment:focus {
  border-color: #2563eb;
  color: #1d4ed8;
  text-decoration: none;
}

.event-attachment img {
  border-radius: 6px;
  height: 34px;
  object-fit: cover;
  width: 44px;
}

.event-attachment i {
  color: #d92d20;
  font-size: 20px;
}

.event-attachment span {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-comments {
  display: grid;
  gap: 10px;
}

.ticket-action-entry {
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  box-shadow: inset 3px 0 0 #2563eb;
  display: grid;
  gap: 8px;
  padding: 11px 13px;
}

.ticket-action-entry-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.ticket-action-entry-head strong {
  color: #1f2937;
  flex: 1 1 100%;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ticket-action-entry-head span {
  color: #667085;
  font-size: 12px;
}

.ticket-action-entry-head i {
  color: #0088cc;
  margin-right: 4px;
}

.ticket-action-empty {
  color: #344054;
  line-height: 1.5;
  margin: 0;
}

.attachment-preview-modal {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10050;
}

.attachment-preview-modal.hidden {
  display: none;
}

.attachment-preview-backdrop {
  background: rgba(15, 23, 42, 0.72);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.attachment-preview-dialog {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  max-height: 92vh;
  max-width: 980px;
  min-height: 420px;
  overflow: hidden;
  position: relative;
  width: min(980px, 96vw);
}

.attachment-preview-header,
.attachment-preview-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 18px;
}

.attachment-preview-header {
  background: #253247;
  color: #ffffff;
}

.attachment-preview-header span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
  text-transform: uppercase;
}

.attachment-preview-header strong {
  display: block;
  font-size: 16px;
  max-width: 760px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.attachment-preview-body {
  align-items: center;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 16px;
}

.attachment-preview-image {
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
}

.attachment-preview-frame {
  background: #ffffff;
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  height: 72vh;
  width: 100%;
}

.attachment-preview-document {
  align-items: center;
  color: #344054;
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 520px;
  text-align: center;
}

.attachment-preview-document i {
  color: #2563eb;
  font-size: 54px;
}

.attachment-preview-document strong {
  color: #1f2937;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.attachment-preview-document p {
  line-height: 1.5;
  margin: 0;
}

.attachment-preview-footer {
  background: #ffffff;
  border-top: 1px solid #e1e8f0;
  justify-content: flex-end;
}

.ticket-customer-context {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin: 8px 0 16px;
}

.context-column {
  background: #f8fafc;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 14px;
}

.CustomerTicketHistory,
.CustomerEventHistory {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.related-ticket,
.related-event {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.related-ticket.is-current {
  border-color: #2563eb;
  box-shadow: inset 3px 0 0 #2563eb;
}

.related-ticket strong,
.related-event strong {
  color: #1f2937;
}

.related-ticket span {
  color: #344054;
  font-weight: 700;
}

.related-ticket small,
.related-event small {
  color: #667085;
  font-size: 12px;
}

.related-event p {
  color: #344054;
  line-height: 1.45;
  margin: 4px 0;
}

@media (max-width: 767px) {
  html.fixed .page-header {
    margin: -20px -15px 20px;
    padding: 18px 15px;
  }

  .app-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-panel-actions {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
  }

  .customer-profile-strip {
    grid-template-columns: 1fr;
  }

  .customer-event-head {
    display: block;
  }

  .ticket-customer-context {
    grid-template-columns: 1fr;
  }
}

.process-modal.modal-block-lg {
  max-width: 1080px;
}

.ticket-detail-hero {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 18px;
}

.ticket-detail-hero .LabelName {
  font-size: 24px;
  margin: 4px 0 8px;
  text-align: left;
}

.ticket-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-detail-meta span {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.ticket-detail-process {
  background: #ffffff;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  min-width: 260px;
  padding: 12px 14px;
}

.ticket-detail-process span {
  color: #667085;
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ticket-detail-process strong {
  color: #1f2937;
  display: block;
  font-size: 16px;
  margin-top: 5px;
}

.ticket-detail-hero .LabelProject,
.ticket-detail-hero .LabelArea,
.ticket-detail-hero .LabelProcess {
  font-size: inherit;
  margin: 0;
  text-align: left;
}

.related-ticket {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.related-ticket.is-current {
  background: #eef6ff;
  border-color: #2563eb;
  box-shadow: inset 3px 0 0 #2563eb;
}

.related-ticket:hover {
  border-color: #8bb7ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .ticket-detail-hero {
    display: block;
  }

  .ticket-detail-process {
    margin-top: 12px;
    min-width: 0;
  }
}
