#header {
    background: #7F99BE url(../images/layout-browser-hd-bg.gif) repeat-x center;
}

/* ==========================================================================
   Header principal (Safite.viewport.container.Header)
   ========================================================================== */

.sf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    font-family: "Trebuchet MS", sans-serif;
}

.sf-header__brand img {
    display: block;
    height: 30px;
}

.sf-header__nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 24px;
    padding: 2px 6px;
    background-color: rgba(0, 0, 0, 0.55);
    background-image: linear-gradient(rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.10));
    border: 1px solid #343434;
    border-radius: 28px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
}

.sf-header__divider {
    width: 1px;
    height: 18px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.35);
}

.sf-header__group {
    position: relative;
}

.sf-header__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    background: transparent;
    border: none;
    border-radius: 28px;
    color: #fff;
    font: bold 13px "Trebuchet MS", sans-serif;
    text-shadow: #000 0 1px 1px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.sf-header__btn:hover,
.sf-header__btn:focus-visible,
.sf-header__group.is-open > .sf-header__btn {
    background-color: rgba(0, 64, 142, 0.85);
    outline: none;
}

.sf-header__btn--icon {
    padding: 0 10px;
}

.sf-header__icon {
    height: 20px;
    width: auto;
    border: none;
}

.sf-header__username {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-header__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
    transition: transform 0.15s ease;
}

.sf-header__group.is-open .sf-header__caret {
    transform: rotate(180deg);
}

.sf-header__badge {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background-color: #d9342b;
    color: #fff;
    font: bold 10px/16px "Trebuchet MS", sans-serif;
    text-align: center;
    text-shadow: none;
}

.sf-header__badge.is-empty {
    display: none;
}

/* --- Menu desplegable --- */

.sf-header__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20000;
    min-width: 220px;
    padding: 6px 0;
    background-color: #fff;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.sf-header__menu--right {
    left: auto;
    right: 0;
}

.sf-header__group.is-open > .sf-header__menu {
    display: block;
}

.sf-header__menu-title {
    padding: 4px 14px 6px;
    color: #6b7a90;
    font: bold 11px "Trebuchet MS", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-header__menu-user {
    display: flex;
    flex-direction: column;
    padding: 6px 14px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e6eaf0;
    color: #6b7a90;
    font: 12px "Trebuchet MS", sans-serif;
}

.sf-header__menu-user strong {
    color: #1f2d3d;
    font-size: 13px;
    word-break: break-all;
}

.sf-header__menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: #1f2d3d;
    font: 13px "Trebuchet MS", sans-serif;
    text-align: left;
    cursor: pointer;
}

.sf-header__menu-item img {
    width: 16px;
    height: 16px;
}

.sf-header__menu-item:hover,
.sf-header__menu-item:focus-visible {
    background-color: #eef3fa;
    outline: none;
}

.sf-header__menu-item--danger {
    color: #c0392b;
}

.sf-header__menu-item--danger:hover,
.sf-header__menu-item--danger:focus-visible {
    background-color: #fdecea;
}

.sf-header__menu-separator {
    height: 1px;
    margin: 4px 0;
    background-color: #e6eaf0;
}

.lbl-align-right {
    text-align: right;
}

.extra-alt .x-grid-row .x-grid-cell { 
    background-color: #fff;
    color: #000;
} 
 
.extra-alt .x-grid-row-alt .x-grid-cell { 
    background-color: #99bce8;
    color: #000;
}

.grid-background-active .x-grid-cell {
    background-color: #99bce8 !important;
}

.x-form-display-field {
    line-height: normal !important;
}

.pac-container{
    z-index: 99999 !important;
}

.menu-help img {
    margin-right: 2px !important;
}

.fixed-row-height .x-grid-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labelsMaps {
    font-size: 11px;
    font-weight: bold;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #aaa;
    margin-bottom: 2px;
    white-space: nowrap;
    text-align: center;
}

.custom-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-marker::before {
    display: none !important;
}

.custom-msg-box {
    max-height: 300px;
    overflow-y: auto;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4em;
    padding-right: 5px;
}

.custom-marker {
    position: relative;
    display: inline-block;
    text-align: center;
}

.custom-marker .labelsMaps {
    position: absolute;
    bottom: 100%;              /* se va hacia arriba */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;

    font-size: 10px;
    background: white;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);

    pointer-events: none;      /* clicks pasan al icono */
}

.custom-marker img {
    display: block;
    margin: 0 auto;
}

.custom-marker .labelsMaps {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  font-size: 10px;
  background: white;
  padding: 2px 6px;
  border-radius: 10px;      /* badge */
  white-space: nowrap;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* ===== Línea de tiempo (stepper) ===== */
.lt-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.lt-step {
    flex: 1;
    max-width: 180px;
    text-align: center;
    position: relative;
    padding: 0 5px;
}

/* Línea conectora hacia el siguiente paso (centro a centro) */
.lt-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;              /* mitad de la altura del círculo (34/2) */
    left: 50%;
    width: 100%;
    height: 3px;
    background: #d0d0d0;
    z-index: 0;
}

/* La conexión se pinta en verde cuando el paso está completado */
.lt-step.completado:not(:last-child)::after {
    background: #2e8b57;
}

.lt-circle {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    margin: 0 auto 8px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    background: #6c757d;    /* pendiente (gris) */
    box-shadow: 0 0 0 4px #fff;   /* aro blanco para separar de la línea */
}

.lt-step.completado .lt-circle {
    background: #2e8b57;    /* completado (verde) */
}

.lt-titulo {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.lt-fecha {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    min-height: 14px;       /* reserva espacio aunque no haya fecha */
}
