/* -------------------------------------------------------------------------- */
/*                   Consulta compacta de ordenes de reparacion                */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/*                         Organigrama corporativo                            */
/* -------------------------------------------------------------------------- */
.org-page-header {
  padding: .75rem 0 .55rem;
}

.org-page-header h1 {
  margin: .08rem 0 0;
  color: #343a40;
  font-size: 1.65rem;
  font-style: normal;
  font-weight: 700;
}

.org-page-header p {
  margin: .12rem 0 0;
  color: #7a828a;
  font-size: .8rem;
}

.org-page-kicker {
  color: #b71c1c;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.org-workspace {
  --org-red: #b71c1c;
  --org-red-bright: #d72e38;
  --org-charcoal: #41464b;
  --org-gray: #6c757d;
  --org-border: #e0e3e6;
  --org-surface: #f5f6f7;
  padding-bottom: 1.25rem;
}

.org-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  padding: 1.25rem 1.4rem;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(118deg, #363a3e 0%, #565b60 59%, #a8171e 59.2%, #d72e38 100%);
  box-shadow: 0 10px 25px rgba(52, 58, 64, .18);
}

.org-hero::after {
  content: '';
  width: 180px;
  height: 180px;
  position: absolute;
  right: 12%;
  bottom: -145px;
  border: 25px solid rgba(255,255,255,.065);
  border-radius: 50%;
}

.org-hero > div {
  position: relative;
  z-index: 1;
}

.org-hero > div:first-child > span {
  color: rgba(255,255,255,.76);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.org-hero h2 {
  margin: .22rem 0 .12rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.org-hero p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: .8rem;
}

.org-hero__actions {
  display: flex;
  gap: .55rem;
}

.org-hero__actions .btn {
  min-width: 112px;
  font-weight: 600;
}

.org-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(260px, 1.45fr) minmax(205px, 1fr) auto;
  gap: .75rem;
  align-items: end;
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid var(--org-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(52, 58, 64, .06);
}

.org-toolbar__field label {
  display: block;
  margin: 0 0 .25rem;
  color: #59616a;
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.org-toolbar__field .form-control,
.org-toolbar__field .input-group-text,
.org-toolbar__field .btn {
  min-height: 34px;
  border-color: #d8dcdf;
  font-size: .75rem;
  font-weight: 600;
}

.org-toolbar__field .input-group-text {
  color: #6c757d;
  background: #f5f6f7;
}

.org-toolbar__controls {
  display: flex;
  align-items: center;
  gap: .28rem;
}

.org-toolbar__controls .btn {
  width: 34px;
  height: 34px;
  padding: 0;
}

#orgChartZoom {
  min-width: 42px;
  color: #606870;
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
}

.org-summary > [class*='col-'] {
  margin-bottom: 1rem;
}

.org-summary__item {
  display: flex;
  align-items: center;
  gap: .7rem;
  height: 100%;
  min-height: 74px;
  padding: .78rem .9rem;
  border: 1px solid var(--org-border);
  border-left: 4px solid var(--org-charcoal);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(52, 58, 64, .055);
}

.org-summary__item > i {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--org-red);
  background: #fff0f1;
}

.org-summary__item strong,
.org-summary__item span {
  display: block;
}

.org-summary__item strong {
  color: #343a40;
  font-size: 1.25rem;
  line-height: 1;
}

.org-summary__item span {
  margin-top: .2rem;
  color: #7a828a;
  font-size: .69rem;
  font-weight: 600;
}

.org-summary__item--vacancy {
  border-left-color: var(--org-red);
}

.org-feedback {
  display: none;
  margin-bottom: .8rem;
  padding: .55rem .8rem;
  font-size: .78rem;
}

.org-feedback.is-visible {
  display: block;
}

.org-feedback--loading.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #69717a;
}

.org-search-result {
  display: none;
  margin: -.25rem 0 .55rem;
  color: #727a82;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: right;
}

.org-search-result.is-visible {
  display: block;
}

.org-canvas {
  min-height: 560px;
  overflow: auto;
  position: relative;
  border: 1px solid var(--org-border);
  border-radius: 12px;
  background-color: #f6f7f8;
  background-image: radial-gradient(#d9dde1 .75px, transparent .75px);
  background-size: 16px 16px;
  box-shadow: inset 0 1px 3px rgba(52, 58, 64, .04);
}

.org-workspace.is-loading .org-canvas,
.org-workspace.is-loading + .org-canvas,
#orgChartPage.is-loading .org-canvas {
  opacity: .55;
  pointer-events: none;
}

.sir-org-tree {
  display: inline-block;
  min-width: 100%;
  padding: 2rem 1.25rem 3rem;
  transform-origin: top left;
  transition: zoom .16s ease;
}

.sir-org-tree ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 34px 0 0;
  position: relative;
  list-style: none;
}

.sir-org-tree > ul {
  padding-top: 0;
}

.sir-org-tree li {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 34px 9px 0;
  position: relative;
  text-align: center;
}

.sir-org-tree > ul > li {
  padding-top: 0;
}

.sir-org-tree li::before,
.sir-org-tree li::after {
  content: '';
  width: 50%;
  height: 34px;
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid #aeb4ba;
}

.sir-org-tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid #aeb4ba;
}

.sir-org-tree li:only-child::before,
.sir-org-tree li:only-child::after,
.sir-org-tree > ul > li::before,
.sir-org-tree > ul > li::after {
  display: none;
}

.sir-org-tree li:first-child::before,
.sir-org-tree li:last-child::after {
  border: 0;
}

.sir-org-tree li:last-child::before {
  border-right: 2px solid #aeb4ba;
  border-radius: 0 7px 0 0;
}

.sir-org-tree li:first-child::after {
  border-radius: 7px 0 0 0;
}

.sir-org-tree ul ul::before {
  content: '';
  width: 0;
  height: 34px;
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid #aeb4ba;
}

.org-position-card {
  width: 228px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid #d8dcdf;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(52, 58, 64, .1);
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.org-position-card:hover {
  transform: translateY(-2px);
  border-color: #c4c9ce;
  box-shadow: 0 9px 21px rgba(52, 58, 64, .15);
}

.org-position-card.is-match {
  border-color: var(--org-red-bright);
  box-shadow: 0 0 0 3px rgba(183, 28, 28, .13), 0 8px 20px rgba(52, 58, 64, .12);
}

.org-position-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: .35rem .55rem;
  color: #fff;
  background: linear-gradient(110deg, #3f4449 0%, #575d62 70%, #b71c1c 70.5%, #d72e38 100%);
}

.org-position-card__top > span {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.org-node-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: .58rem;
}

.org-position-card__body {
  padding: .72rem .72rem .62rem;
}

.org-position-class {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: .35rem;
  padding: .2rem .38rem;
  border-radius: 5px;
  color: #9c1a20;
  background: #fff0f1;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-position-card h3 {
  min-height: 34px;
  margin: 0 0 .55rem;
  color: #343a40;
  font-size: .79rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.org-position-card__employees {
  display: grid;
  gap: .32rem;
}

.org-employee {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: .4rem;
  align-items: center;
  width: 100%;
  padding: .3rem .36rem;
  border: 1px solid #eceeef;
  border-radius: 7px;
  color: #525960;
  background: #f8f9fa;
  font-size: .65rem;
  font-weight: 700;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}

.org-employee:hover,
.org-employee:focus {
  border-color: #d8aeb0;
  color: #8e181e;
  background: #fff5f5;
  outline: 0;
}

.org-employee img {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(52,58,64,.16);
}

.org-employee span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-employee i {
  color: #adb3b8;
  font-size: .55rem;
}

.org-vacancy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  min-height: 36px;
  border: 1px dashed #d3a5a7;
  border-radius: 7px;
  color: #a24b4f;
  background: #fff8f8;
  font-size: .59rem;
  font-weight: 800;
}

.org-position-card footer {
  padding: .34rem .7rem;
  border-top: 1px solid #eceeef;
  color: #81888f;
  background: #fafbfb;
  font-size: .56rem;
  font-weight: 700;
  text-align: right;
}

.sir-org-tree .is-collapsed > ul {
  display: none;
}

.org-empty {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 480px;
  color: #7b838a;
  text-align: center;
}

.org-empty.is-visible {
  display: flex;
}

.org-empty i {
  margin-bottom: .65rem;
  color: #b71c1c;
  font-size: 2rem;
}

.org-empty h3 {
  margin: 0;
  color: #4c5359;
  font-size: 1rem;
  font-weight: 700;
}

.org-empty p {
  margin: .2rem 0 0;
  font-size: .75rem;
}

.org-employee-modal .modal-header,
.org-structure-modal .modal-header {
  color: #fff;
  background: linear-gradient(110deg, #3d4247 0%, #555b60 68%, #b71c1c 68.5%, #d72e38 100%);
  border-bottom: 0;
}

.org-employee-modal .modal-header span,
.org-structure-modal .modal-header span {
  display: block;
  margin-bottom: .15rem;
  color: rgba(255,255,255,.72);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.org-employee-modal .modal-title,
.org-structure-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
}

.org-employee-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e2e5e8;
  border-left: 4px solid #b71c1c;
  border-radius: 9px;
  background: #f8f9fa;
}

.org-employee-profile img {
  width: 78px;
  height: 78px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(52,58,64,.18);
}

.org-employee-profile h3 {
  margin: 0;
  color: #343a40;
  font-size: 1.05rem;
  font-weight: 800;
}

.org-employee-profile p {
  margin: .15rem 0 .3rem;
  color: #5f666d;
  font-size: .77rem;
  font-weight: 600;
}

.org-employee-profile span {
  padding: .22rem .4rem;
  border-radius: 5px;
  color: #97181e;
  background: #fff0f1;
  font-size: .58rem;
  font-weight: 800;
}

.org-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.org-contact-grid > div {
  display: grid;
  grid-template-columns: 26px 1fr;
  padding: .65rem;
  border: 1px solid #e5e7e9;
  border-radius: 8px;
}

.org-contact-grid i {
  grid-row: 1 / 3;
  color: #b71c1c;
}

.org-contact-grid span {
  color: #8a9198;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.org-contact-grid strong {
  overflow-wrap: anywhere;
  color: #4b5258;
  font-size: .7rem;
  font-weight: 600;
}

.org-contact-grid__wide {
  grid-column: 1 / -1;
}

.org-structure-note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: .75rem .85rem;
  border: 1px solid #e0e3e6;
  border-left: 4px solid #b71c1c;
  border-radius: 8px;
  color: #626a71;
  background: #f7f8f9;
}

.org-structure-note i {
  margin-top: .1rem;
  color: #b71c1c;
}

.org-structure-note p {
  margin: 0;
  font-size: .74rem;
}

.org-structure-modal label {
  color: #555d64;
  font-size: .69rem;
  font-weight: 800;
  text-transform: uppercase;
}

.org-structure-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 62px;
  margin-top: .35rem;
  padding: .8rem;
  border: 1px dashed #cbd0d4;
  border-radius: 8px;
  color: #555d64;
  background: #fafafa;
  font-size: .75rem;
}

.org-structure-preview span,
.org-structure-preview strong {
  max-width: 42%;
  text-align: center;
}

.org-structure-preview i {
  color: #b71c1c;
  font-size: 1.15rem;
}

@media (max-width: 1199.98px) {
  .org-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .org-toolbar__controls {
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  .org-page-header p {
    display: none;
  }

  .org-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .org-hero h2 {
    font-size: 1.25rem;
  }

  .org-hero__actions {
    width: 100%;
    margin-top: .8rem;
  }

  .org-hero__actions .btn {
    flex: 1;
    min-width: 0;
  }

  .org-toolbar {
    grid-template-columns: 1fr;
    padding: .75rem;
  }

  .org-toolbar__controls {
    justify-content: center;
  }

  .org-summary__item {
    min-height: 68px;
    padding: .65rem;
  }

  .org-summary__item > i {
    display: none;
  }

  .org-canvas {
    min-height: 460px;
    overflow-x: hidden;
    padding: .35rem;
  }

  .sir-org-tree {
    display: block;
    width: 100%;
    min-width: 0;
    padding: .5rem;
    zoom: 1 !important;
  }

  .sir-org-tree ul,
  .sir-org-tree > ul {
    display: block;
    padding: 0;
  }

  .sir-org-tree ul ul {
    margin: .35rem 0 0 .85rem;
    padding-left: .75rem;
    border-left: 2px solid #c1c6cb;
  }

  .sir-org-tree ul ul::before,
  .sir-org-tree li::before,
  .sir-org-tree li::after {
    display: none;
  }

  .sir-org-tree li,
  .sir-org-tree > ul > li {
    display: block;
    padding: .45rem 0 0;
  }

  .org-position-card {
    width: 100%;
  }

  .org-position-card h3 {
    min-height: 0;
  }

  .org-contact-grid {
    grid-template-columns: 1fr;
  }

  .org-contact-grid__wide {
    grid-column: auto;
  }

  .org-structure-preview {
    align-items: stretch;
    flex-direction: column;
  }

  .org-structure-preview span,
  .org-structure-preview strong {
    max-width: none;
  }

  .org-structure-preview i {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #orgChartPage,
  #orgChartPage * {
    visibility: visible !important;
  }

  #orgChartPage {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }

  .org-page-header,
  .org-hero__actions,
  .org-toolbar,
  .org-summary,
  .org-feedback,
  .org-search-result,
  .main-footer {
    display: none !important;
  }

  .org-hero {
    min-height: 82px;
    margin-bottom: .5rem;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .org-canvas {
    min-height: 0;
    overflow: visible;
    border: 0;
    background: #fff;
  }

  .sir-org-tree {
    zoom: .72 !important;
  }

  .org-position-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

#ticketsPage .content-header {
  padding: .55rem 0 .45rem;
}

/* Dashboard de órdenes de servicio */
.service-dashboard {
  --dashboard-red: #b71c1c;
  --dashboard-charcoal: #41464b;
  --dashboard-text: #343a40;
  --dashboard-muted: #667085;
  --dashboard-border: #e5e9f0;
  --dashboard-surface: #f6f8fb;
  color: var(--dashboard-text);
}

.service-dashboard__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  margin-bottom: 1rem;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 87% 18%, rgba(255, 255, 255, .2), transparent 25%),
    linear-gradient(118deg, #363a3e 0%, #5a5f64 57%, #a71920 57.2%, #d52b35 100%);
  box-shadow: 0 10px 26px rgba(65, 70, 75, .2);
}

.service-dashboard__hero::after {
  content: '';
  width: 190px;
  height: 190px;
  position: absolute;
  right: 15%;
  bottom: -150px;
  border: 26px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.service-dashboard__hero-copy,
.service-dashboard__hero-actions {
  position: relative;
  z-index: 1;
}

.service-dashboard__eyebrow {
  display: block;
  margin-bottom: .35rem;
  color: rgba(255, 255, 255, .72);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.service-dashboard__hero h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.service-dashboard__hero p {
  margin: .32rem 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .025em;
}

.service-dashboard__hero-actions {
  display: flex;
  gap: .5rem;
}

.service-dashboard__hero-actions .btn {
  font-weight: 600;
}

.service-dashboard__report-button {
  color: #a71920 !important;
}

.service-dashboard__filters {
  display: grid;
  grid-template-columns: minmax(145px, .8fr) minmax(150px, .8fr) minmax(230px, 1.45fr) minmax(175px, 1fr) auto;
  gap: .8rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(32, 50, 75, .06);
}

.service-dashboard__filter label {
  display: block;
  margin-bottom: .25rem;
  color: #475467;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-dashboard__filter .form-control,
.service-dashboard__filter .input-group-text {
  min-height: 34px;
  border-color: #d8dee8;
  font-size: .79rem;
  font-weight: 600;
}

.service-dashboard__filter .input-group-text {
  color: #667085;
  background: #f7f8fa;
}

.service-dashboard__filter-action .btn {
  min-height: 34px;
  white-space: nowrap;
}

.service-dashboard__loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: -.2rem 0 .8rem;
  padding: .45rem;
  color: #52647e;
  font-size: .78rem;
}

.service-dashboard__loading.is-visible {
  display: flex;
}

.service-dashboard__error {
  display: none;
  margin-bottom: .8rem;
  padding: .55rem .8rem;
  font-size: .8rem;
}

.service-dashboard__error.is-visible {
  display: block;
}

.service-dashboard.is-loading .service-dashboard__kpis,
.service-dashboard.is-loading .service-dashboard-card {
  opacity: .65;
}

.service-dashboard__kpis > [class*='col-'] {
  margin-bottom: 1rem;
}

.service-kpi {
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
  min-height: 112px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dashboard-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 50, 75, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(32, 50, 75, .11);
}

.service-kpi::before {
  content: '';
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--kpi-color);
}

.service-kpi--total { --kpi-color: #4b5157; --kpi-soft: #eff1f2; }
.service-kpi--pending { --kpi-color: #d93636; --kpi-soft: #fff0ee; }
.service-kpi--finished { --kpi-color: #007bff; --kpi-soft: #eaf4ff; }
.service-kpi--rate { --kpi-color: #737980; --kpi-soft: #f0f1f2; }

.service-kpi__icon {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--kpi-color);
  background: var(--kpi-soft);
  font-size: 1.15rem;
}

.service-kpi span,
.service-kpi small {
  display: block;
}

.service-kpi span {
  color: #667085;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-kpi strong {
  display: block;
  margin: .05rem 0;
  color: #1d2939;
  font-size: 1.75rem;
  line-height: 1.15;
}

.service-kpi small {
  color: #98a2b3;
  font-size: .7rem;
}

.service-dashboard-card {
  min-height: 100%;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 50, 75, .065);
  transition: opacity .15s ease;
}

.service-dashboard-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #edf0f4;
}

.service-dashboard-card h3 {
  margin: 0;
  color: #24344f;
  font-size: 1rem;
  font-weight: 700;
}

.service-dashboard-card header p {
  margin: .18rem 0 0;
  color: #8993a4;
  font-size: .73rem;
}

.service-dashboard-card__tag {
  padding: .3rem .5rem;
  border-radius: 6px;
  color: #52647e;
  background: #f1f4f8;
  font-size: .65rem;
  font-weight: 700;
  white-space: nowrap;
}

.service-dashboard-chart {
  position: relative;
}

.service-dashboard-chart--donut {
  height: 230px;
}

.service-dashboard-chart--bar {
  min-height: 220px;
  transition: height .2s ease;
}

.service-dashboard-chart--trend {
  height: 310px;
}

.service-dashboard-chart--status {
  min-height: 245px;
  transition: height .2s ease;
}

.service-dashboard-legend {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-top: .6rem;
}

.service-dashboard-legend--wrap {
  flex-wrap: wrap;
}

.service-dashboard-legend__item {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .32rem .48rem;
  border-radius: 6px;
  color: #667085;
  background: #f7f8fa;
  font-size: .68rem;
  font-weight: 600;
}

.service-dashboard-legend__item strong {
  margin-left: .16rem;
  color: #253858;
  font-size: .78rem;
}

.service-dashboard-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.service-dashboard-muted {
  color: #98a2b3;
  font-size: .72rem;
}

.service-dashboard-card--breakdown {
  min-height: 0;
}

.service-dashboard-table-wrap {
  max-height: 440px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
}

.service-dashboard-table {
  margin: 0;
  table-layout: fixed;
}

.service-dashboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: .48rem .42rem;
  border-top: 0;
  border-bottom: 1px solid #dde3eb;
  color: #667085;
  background: #f6f8fb;
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-dashboard-table thead th:first-child {
  width: 52%;
}

.service-dashboard-table tbody td {
  padding: .46rem .42rem;
  border-color: #edf0f4;
  color: #475467;
  font-size: .7rem;
  vertical-align: middle;
}

.service-dashboard-table tbody td:first-child span {
  display: block;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-dashboard-number {
  font-weight: 700;
}

.service-dashboard-number--pending { color: #d83c2e !important; }
.service-dashboard-number--finished { color: #0071e8 !important; }
.service-dashboard-number--total { color: #253858 !important; }

.service-dashboard-table__empty {
  padding: 1.6rem !important;
  color: #98a2b3 !important;
  text-align: center;
}

.service-dashboard__empty {
  display: none;
  align-items: center;
  flex-direction: column;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border: 1px dashed #cdd5df;
  border-radius: 10px;
  color: #667085;
  background: #fafbfc;
  text-align: center;
}

.service-dashboard__empty.is-visible {
  display: flex;
}

.service-dashboard__empty i {
  margin-bottom: .5rem;
  color: #98a2b3;
  font-size: 1.7rem;
}

.service-dashboard__empty h3 {
  margin: 0;
  color: #475467;
  font-size: .95rem;
  font-weight: 700;
}

.service-dashboard__empty p {
  margin: .2rem 0 0;
  font-size: .75rem;
}

@media (max-width: 1199.98px) {
  .service-dashboard__filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-dashboard__filter-action .btn {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .service-dashboard__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-dashboard__filter-action .btn {
    width: 100%;
  }

  .service-dashboard-chart--bar {
    margin-bottom: .8rem;
  }
}

@media (max-width: 575.98px) {
  .service-dashboard,
  .service-dashboard__hero,
  .service-dashboard__filters,
  .service-dashboard-card,
  .service-kpi {
    width: 100%;
    max-width: 100%;
  }

  .service-dashboard__hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 1.05rem;
  }

  .service-dashboard__hero h2 {
    font-size: 1.35rem;
  }

  .service-dashboard__hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: .85rem;
  }

  .service-dashboard__hero-actions .btn {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-right: .35rem;
    padding-left: .35rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .service-dashboard__filters {
    grid-template-columns: 1fr;
    gap: .6rem;
    padding: .75rem;
  }

  .service-dashboard__filter,
  .service-dashboard__filter .form-control,
  .service-dashboard__filter-action {
    min-width: 0;
  }

  .service-kpi {
    min-height: 96px;
  }

  .service-dashboard-card {
    padding: .8rem;
  }

  .service-dashboard-card > header {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .service-dashboard-chart--donut {
    height: 205px;
  }

  .service-dashboard-chart--trend {
    height: 250px;
  }

  .service-dashboard-legend {
    align-items: stretch;
    flex-direction: column;
    gap: .35rem;
  }

  .service-dashboard-legend__item {
    justify-content: space-between;
  }
}

#ticketsPage .ticket-page-heading,
#ticketsPage .ticket-page-actions,
#ticketTable_wrapper .ticket-table-toolbar,
#ticketTable_wrapper .ticket-table-tools,
#ticketTable_wrapper .ticket-table-footer {
  display: flex;
  align-items: center;
}

#ticketsPage .ticket-page-heading {
  justify-content: space-between;
  gap: .75rem;
}

#ticketsPage .ticket-page-title {
  margin: 0;
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

#ticketsPage .ticket-page-actions {
  justify-content: flex-end;
  gap: .85rem;
}

#ticketsPage .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: .82rem;
}

#ticketsPage .content {
  padding: 0 .5rem .75rem;
}

#ticketsPage > .content > .row {
  margin-right: 0;
  margin-left: 0;
}

#ticketsPage > .content > .row > .col-12 {
  padding-right: 0;
  padding-left: 0;
}

#ticketsPage .ticket-list-card {
  margin-bottom: 0;
  border-radius: .35rem;
}

#ticketsPage .ticket-new-order-source {
  display: none;
}

#ticketsPage .ticket-table-card-body {
  padding: .6rem;
}

#ticketTable_wrapper .ticket-table-toolbar {
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .45rem;
}

#ticketTable_wrapper .ticket-table-tools {
  flex-wrap: wrap;
  gap: .45rem;
  min-width: 0;
}

#ticketTable_wrapper .ticket-table-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  min-width: 0;
}

#ticketTable_wrapper .ticket-table-search {
  min-width: 0;
}

#ticketTable_wrapper .ticket-table-new {
  flex: 0 0 auto;
}

#ticketTable_wrapper .ticket-table-new .btn {
  height: 32px;
  padding: .25rem .6rem;
  white-space: nowrap;
  font-size: .8rem;
}

#ticketTable_wrapper .dataTables_length,
#ticketTable_wrapper .dataTables_filter,
#ticketTable_wrapper .dt-buttons,
#ticketTable_wrapper .dataTables_info,
#ticketTable_wrapper .dataTables_paginate {
  float: none;
  margin: 0;
  padding: 0;
}

#ticketTable_wrapper .dataTables_length label,
#ticketTable_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 400;
}

#ticketTable_wrapper .dataTables_length select {
  width: auto;
  height: 30px;
  padding: .15rem 1.5rem .15rem .4rem;
  font-size: .8rem;
}

#ticketTable_wrapper .dataTables_filter input {
  width: 220px;
  height: 32px;
  margin: 0;
  padding: .25rem .55rem;
  font-size: .82rem;
}

#ticketTable_wrapper .dt-buttons {
  display: flex;
  flex-wrap: wrap;
}

#ticketTable_wrapper .dt-buttons .btn {
  padding: .26rem .52rem;
  font-size: .78rem;
  line-height: 1.25;
}

#ticketTable_wrapper .ticket-table-footer {
  justify-content: space-between;
  gap: .75rem;
  min-height: 34px;
  padding-top: .45rem;
}

#ticketTable_wrapper .dataTables_info {
  font-size: .78rem;
}

#ticketTable_wrapper .pagination .page-link {
  padding: .25rem .5rem;
  font-size: .78rem;
}

#ticketTable {
  width: 100% !important;
  margin: 0 !important;
}

#ticketTable thead th {
  padding: .45rem .42rem;
  border-top: 0;
  border-bottom-width: 1px;
  vertical-align: middle;
  white-space: nowrap;
  font-size: .72rem;
  line-height: 1.15;
}

#ticketTable tbody td {
  padding: .36rem .42rem;
  vertical-align: middle;
  font-size: .78rem;
  line-height: 1.2;
}

#ticketTable .ticket-row-number {
  width: 34px;
}

#ticketTable .ticket-folio {
  white-space: nowrap;
  font-weight: 600;
}

#ticketTable .ticket-cell-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ticketTable .ticket-cell-service {
  max-width: 300px;
}

#ticketTable .ticket-cell-company {
  max-width: 210px;
}

#ticketTable .ticket-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: .2rem .42rem;
  border-radius: .2rem;
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1;
}

#ticketTable .ticket-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 0;
}

#ticketTable_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
#ticketTable_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  margin-top: -8px;
}

#ticketTable_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control {
  padding-left: 1.75rem;
}

#ticketTable_wrapper .dtr-details {
  width: 100%;
  margin: 0;
}

#ticketTable_wrapper .dtr-details > li {
  display: grid;
  grid-template-columns: minmax(105px, 35%) 1fr;
  gap: .5rem;
  padding: .38rem 0;
}

#ticketTable_wrapper .dtr-title {
  min-width: 0;
}

/* -------------------------------------------------------------------------- */
/*                    Consulta y actualización de una orden                   */
/* -------------------------------------------------------------------------- */
#modalTicketView .ticket-view-dialog {
  width: 96vw;
  max-width: 1500px;
  margin: .75rem auto;
}

#modalTicketView .ticket-view-modal {
  height: calc(100vh - 1.5rem);
  max-height: 920px;
}

#modalTicketView .modal-header,
#modalTicketView .modal-footer {
  flex: 0 0 auto;
  padding: .55rem .8rem;
}

#modalTicketView .modal-footer .btn {
  padding: .28rem .75rem;
}

#modalTicketView .ticket-view-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: .55rem .65rem;
  overflow: hidden;
}

#modalTicketView .ticket-view-body > .row {
  height: 100%;
  margin-right: -.3rem;
  margin-left: -.3rem;
}

#modalTicketView .ticket-view-column {
  height: 100%;
  padding-right: .3rem;
  padding-left: .3rem;
}

#modalTicketView .ticket-view-column > form {
  height: 100%;
}

#modalTicketView .ticket-detail-card,
#modalTicketView .ticket-update-card {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#modalTicketView .card-header {
  min-height: 38px;
  padding: .48rem .65rem;
}

#modalTicketView .card-title {
  font-size: .95rem;
  font-weight: 600;
}

#modalTicketView .ticket-detail-scroll,
#modalTicketView .ticket-update-scroll {
  min-height: 0;
  padding: .55rem .65rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

#modalTicketView .form-group {
  margin-bottom: .48rem;
}

#modalTicketView .col-form-label {
  display: block;
  margin-bottom: .15rem;
  padding: 0;
  color: #495057;
  font-size: .69rem;
  font-weight: 700;
  line-height: 1.15;
}

#modalTicketView .form-control,
#modalTicketView .custom-file,
#modalTicketView .custom-file-input,
#modalTicketView .custom-file-label {
  min-height: 32px;
  font-size: .78rem;
}

#modalTicketView .form-control {
  height: 32px;
  padding: .28rem .48rem;
}

#modalTicketView textarea.form-control {
  height: auto;
  min-height: 48px;
  line-height: 1.25;
  resize: vertical;
}

#modalTicketView #viewTicketCompany {
  min-height: 32px;
  height: 32px;
  resize: none;
}

#modalTicketView .ticket-update-scroll .row,
#modalTicketView .ticket-detail-scroll .row {
  margin-right: -.3rem;
  margin-left: -.3rem;
}

#modalTicketView .ticket-update-scroll [class*="col-"],
#modalTicketView .ticket-detail-scroll [class*="col-"] {
  padding-right: .3rem;
  padding-left: .3rem;
}

#modalTicketView .ticket-update-scroll .btn {
  padding: .3rem .65rem;
  font-size: .78rem;
}

#modalTicketView .ticket-view-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .65rem;
  background: rgba(255, 255, 255, .92);
  color: #495057;
  font-size: .9rem;
}

#modalTicketView .ticket-view-loading.is-visible {
  display: flex;
}

#modalTicketView .ticket-files-section {
  margin-top: .1rem;
  margin-bottom: .35rem;
}

#modalTicketView .ticket-file-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .42rem;
}

#modalTicketView .ticket-file-group {
  min-width: 0;
  padding: .42rem;
  border: 1px solid #dee2e6;
  border-radius: .3rem;
  background: #f8f9fa;
}

#modalTicketView .ticket-file-group--images {
  grid-column: 1 / -1;
}

#modalTicketView .ticket-file-group-title {
  margin-bottom: .25rem;
  color: #495057;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
}

#modalTicketView .ticket-file-list {
  min-width: 0;
}

#modalTicketView .ticket-file-list--images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: .42rem;
}

#modalTicketView .ticket-image-preview {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: .5rem;
  align-items: center;
  min-width: 0;
  margin: 0;
}

#modalTicketView .ticket-image-preview__link {
  display: block;
  width: 118px;
  height: 82px;
  position: relative;
  overflow: hidden;
  border: 1px solid #d5dbe2;
  border-radius: .3rem;
  background: #e9ecef;
}

#modalTicketView .ticket-image-preview__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#modalTicketView .ticket-image-preview__open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  position: absolute;
  top: .35rem;
  right: .35rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 31, 48, .72);
  font-size: .68rem;
}

#modalTicketView .ticket-image-preview__caption {
  min-width: 0;
  max-height: 82px;
  padding: .1rem 0;
  overflow-y: auto;
  color: #495057;
  font-size: .69rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#modalTicketView .ticket-image-preview__caption-label {
  display: block;
  margin-bottom: .15rem;
  color: #8993a4;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .045em;
}

#modalTicketView .ticket-file-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  margin-top: .18rem;
  color: #117a8b;
  font-size: .73rem;
}

#modalTicketView .ticket-file-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#modalTicketView .ticket-file-empty {
  padding: .45rem;
  border: 1px dashed #ced4da;
  border-radius: .3rem;
  color: #6c757d;
  font-size: .76rem;
  text-align: center;
}

@media (max-width: 767.98px) {
  #ticketsPage .content-header {
    padding: .45rem 0;
  }

  #ticketsPage .ticket-page-heading,
  #ticketsPage .ticket-page-actions,
  #ticketTable_wrapper .ticket-table-toolbar,
  #ticketTable_wrapper .ticket-table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #ticketsPage .ticket-page-title {
    font-size: 1.2rem;
  }

  #ticketsPage .ticket-page-actions {
    gap: .45rem;
  }

  #ticketsPage .breadcrumb {
    display: none;
  }

  #ticketsPage .content {
    padding-right: .25rem;
    padding-left: .25rem;
  }

  #ticketsPage .ticket-table-card-body {
    padding: .45rem;
  }

  #ticketTable_wrapper .ticket-table-tools,
  #ticketTable_wrapper .ticket-table-right,
  #ticketTable_wrapper .ticket-table-search,
  #ticketTable_wrapper .dataTables_filter,
  #ticketTable_wrapper .dataTables_filter label {
    width: 100%;
  }

  #ticketTable_wrapper .ticket-table-right {
    align-items: center;
    flex-direction: row;
    gap: .4rem;
  }

  #ticketTable_wrapper .ticket-table-new .btn {
    width: auto;
  }

  #ticketTable_wrapper .ticket-table-tools {
    align-items: center;
    justify-content: space-between;
  }

  #ticketTable_wrapper .dataTables_filter input {
    flex: 1 1 auto;
    width: auto;
  }

  #ticketTable_wrapper .dataTables_info,
  #ticketTable_wrapper .dataTables_paginate {
    text-align: center;
  }

  #ticketTable_wrapper .dataTables_paginate .pagination {
    justify-content: center;
  }

  #ticketTable thead th,
  #ticketTable tbody td {
    padding-right: .34rem;
    padding-left: .34rem;
  }

  #modalTicketView .ticket-view-dialog {
    width: auto;
    margin: .35rem;
  }

  #modalTicketView .ticket-view-modal {
    height: calc(100vh - .7rem);
    max-height: none;
  }

  #modalTicketView .ticket-view-body {
    overflow-y: auto;
  }

  #modalTicketView .ticket-view-body > .row,
  #modalTicketView .ticket-view-column,
  #modalTicketView .ticket-view-column > form,
  #modalTicketView .ticket-detail-card,
  #modalTicketView .ticket-update-card {
    height: auto;
  }

  #modalTicketView .ticket-view-column + .ticket-view-column {
    margin-top: .55rem;
  }

  #modalTicketView .ticket-detail-scroll,
  #modalTicketView .ticket-update-scroll {
    overflow: visible;
  }

  #modalTicketView .ticket-file-groups {
    grid-template-columns: 1fr;
  }

  #modalTicketView .ticket-image-preview {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  #modalTicketView .ticket-image-preview__link {
    width: 132px;
    height: 92px;
  }
}

@media (max-width: 399.98px) {
  #modalTicketView .ticket-file-list--images {
    grid-template-columns: 1fr;
  }

  #modalTicketView .ticket-image-preview {
    grid-template-columns: 1fr;
    gap: .28rem;
  }

  #modalTicketView .ticket-image-preview__link {
    width: 100%;
    height: 150px;
  }

  #modalTicketView .ticket-image-preview__caption {
    max-height: none;
    padding: 0 .05rem .2rem;
  }
}
