/* Complemento app promotores Tafirol */
.app-shell {
    min-height: 100vh;
    padding-bottom: 2rem;
}

.app-navbar .navbar-brand {
    font-size: 0.95rem;
}

.pdv-list-item {
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    border: 1px solid #e9ecef !important;
}

.pdv-list-item:hover {
    background: #f6f8fb !important;
}

.pdv-list-item:active {
    transform: scale(0.99);
}

.pdv-list-stepper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.pdv-list-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    background: #e9ecef;
    color: var(--tafirol-blue-title);
    flex-shrink: 0;
    line-height: 1;
}

.pdv-list-step-dot.is-complete {
    background: var(--tafirol-cyan);
    color: #000;
}

.wizard-step-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tafirol-blue-title);
}

.field-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.photo-slot {
    position: relative;
}

.photo-slot .dropzone {
    min-height: 120px;
}

.photo-slot.processing .dropzone {
    pointer-events: none;
    opacity: 0.7;
}

.photo-slot .photo-status {
    font-size: 0.72rem;
    color: var(--tafirol-blue-title);
    margin-top: 0.35rem;
    min-height: 1.1rem;
}

.photo-slot .photo-from-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.2rem;
    padding: 0;
    border: 0;
    font-size: 0.68rem;
    line-height: 1.2;
    color: var(--tafirol-blue-title);
    text-decoration: none;
    vertical-align: baseline;
}

.photo-slot .photo-from-gallery-btn:hover,
.photo-slot .photo-from-gallery-btn:focus {
    color: #0056b3;
    text-decoration: underline;
}

.photo-slot .photo-from-gallery-btn:disabled {
    opacity: 0.45;
    pointer-events: none;
}

.photo-slot .photo-from-gallery-btn .fa-images {
    font-size: 0.75rem;
}

.photo-slot.processing .photo-from-gallery-btn {
    pointer-events: none;
    opacity: 0.5;
}

/* Overlay “procesando foto” (misma idea que guardar paso del wizard) */
.photo-slot-processing-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 12px;
}

.photo-slot-processing-overlay.is-visible {
    display: flex;
}

.photo-slot-processing-box {
    text-align: center;
    max-width: 18rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 39, 107, 0.12);
    border: 1px solid #e9ecef;
}

.photo-slot-processing-spinner {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.65rem;
}

.photo-slot-processing-title {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.photo-slot-processing-hint {
    font-size: 0.78rem;
    line-height: 1.3;
}

.photo-slot-processing-overlay.has-error .photo-slot-processing-spinner {
    display: none;
}

.photo-slot.blocked .dropzone {
    cursor: not-allowed;
    background: #f1f3f5;
    border-color: #dee2e6;
}

.dropzone .dropzone-preview {
    pointer-events: none;
}

.material-block {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    background: #fff;
}

.material-block h6 {
    color: var(--tafirol-blue-title);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.causa-group {
    display: none;
}

.causa-group.visible {
    display: block;
}

/* Stepper (pasos del relevamiento; agregar <li> para paso 3+) */
.promo-stepper {
    padding: 12px 14px;
    background: #f6f8fb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.promo-stepper-list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.promo-stepper-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 4px;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.promo-stepper-item.is-active,
.promo-stepper-item.is-complete {
    opacity: 1;
}

.promo-stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 3px;
    background: #dee2e6;
    border-radius: 2px;
    z-index: 0;
}

.promo-stepper-item.is-complete:not(:last-child)::after {
    background: var(--tafirol-cyan);
}

.promo-stepper-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e9ecef;
    color: var(--tafirol-blue-title);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.promo-stepper-item.is-active .promo-stepper-num {
    background: var(--tafirol-blue-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 39, 107, 0.25);
}

.promo-stepper-item.is-complete .promo-stepper-num {
    background: var(--tafirol-cyan);
    color: #000;
}

.promo-stepper--navigable .promo-stepper-item.is-complete {
    cursor: pointer;
}

.promo-stepper--navigable .promo-stepper-item.is-complete:focus-visible {
    outline: 2px solid var(--tafirol-cyan);
    outline-offset: 2px;
}

.promo-stepper-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--tafirol-blue-title);
    line-height: 1.2;
}

.promo-stepper-meta {
    padding-left: 2px;
}

.wizard-step-panel {
    min-height: 120px;
}

.table-disponibilidad th,
.table-disponibilidad td {
    font-size: 0.68rem;
    vertical-align: middle;
}

.table-disponibilidad .form-check-input {
    margin: 0;
}

@media (max-width: 576px) {
    .promo-stepper {
        padding: 8px 6px;
        margin-bottom: 0.75rem !important;
    }

    .promo-stepper-list {
        gap: 2px;
    }

    .promo-stepper-item {
        padding: 0 1px;
    }

    .promo-stepper-item:not(:last-child)::after {
        top: 11px;
        left: calc(50% + 14px);
        right: calc(-50% + 14px);
        height: 2px;
    }

    .promo-stepper-num {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        margin-bottom: 0;
    }

    .promo-stepper-label {
        font-size: 0.58rem;
    }

    #formPromo .wizard-step-panel .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    #formPromo .wizard-step-panel .mb-4 {
        margin-bottom: 0.65rem !important;
    }

    .wizard-step-panel {
        min-height: 0;
    }

    .wizard-panel-intro {
        font-size: 0.8rem;
        margin-bottom: 0.5rem !important;
    }

    .material-block {
        padding: 10px 10px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .material-block h6 {
        font-size: 0.82rem;
        margin-bottom: 6px;
    }

    .photo-slot .dropzone {
        min-height: 96px;
    }

    #wizardNavFooter {
        padding-top: 0.65rem !important;
        margin-top: 0.65rem !important;
    }
}

.toast-promo {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    max-width: 92vw;
}

.promo-wizard-saving-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    border-radius: inherit;
}

.promo-wizard-saving-overlay.is-visible {
    display: flex;
}

.promo-wizard-saving-box {
    text-align: center;
    max-width: 22rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 39, 107, 0.12);
    border: 1px solid #e9ecef;
}

.promo-wizard-saving-spinner {
    width: 2.5rem;
    height: 2.5rem;
}

a.promo-back-disabled {
    pointer-events: none;
    opacity: 0.45;
}

/* Franja ubicación GPS (relevamiento) */
.promo-geo-strip .promo-geo-strip-text {
    min-width: 200px;
}

.promo-geo-strip .promo-geo-strip-main {
    font-size: 0.9rem;
}

.promo-geo-strip .promo-geo-strip-hint {
    font-size: 0.78rem;
    line-height: 1.35;
}

.promo-geo-strip .fa-location-dot {
    color: var(--tafirol-blue-title);
}

.promo-pdv-tabs {
    flex-wrap: wrap;
    row-gap: 4px;
}

.promo-pdv-tabs .nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tafirol-blue-title);
    border-radius: 10px;
    padding: 0.45rem 0.5rem;
}

.promo-pdv-tabs .nav-link:hover {
    background: #eef2f7;
}

.promo-pdv-tabs .nav-link.active {
    background: var(--tafirol-blue-dark);
    color: #fff;
}

.promo-pdv-card .card-body {
    padding-bottom: 0.5rem;
}

.promo-pdv-filters .form-select-sm,
.promo-pdv-filters .form-control-sm {
    font-size: 0.8125rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    min-height: 2.05rem;
}

.promo-pdv-filters .row {
    --bs-gutter-y: 0.35rem;
}

/* Datos PDV solo lectura: en móvil "Etiqueta: valor" en la misma línea (menos alto) */
.promo-pdv-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.promo-pdv-info-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0;
}

.promo-pdv-info-label {
    color: #6c757d;
    flex: 0 0 auto;
    font-weight: normal;
}

.promo-pdv-info-label::after {
    content: ': ';
}

.promo-pdv-info-val {
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
    color: #212529;
}

@media (min-width: 576px) {
    .promo-pdv-info-item {
        display: grid;
        grid-template-columns: minmax(9.5rem, 34%) 1fr;
        column-gap: 1rem;
        align-items: start;
    }

    .promo-pdv-info-label::after {
        content: none;
    }
}

.pdv-supervision-badge--ok {
    background: #198754 !important;
    color: #fff;
    font-weight: 600;
    font-size: 0.65rem;
}

.pdv-supervision-badge--warn {
    background: #dc3545 !important;
    color: #fff;
    font-weight: 600;
    font-size: 0.65rem;
}

.table-disponibilidad {
    font-size: 0.72rem;
}

.table-disponibilidad th,
.table-disponibilidad td {
    vertical-align: middle;
}

.pdv-flecha-listado-badge {
    background: #6c757d !important;
    color: #fff;
    font-weight: 600;
    font-size: 0.62rem;
}

.promo-form-locked .promo-stepper {
    opacity: 0.95;
}

/* Controlador: todo el relevamiento en una sola pantalla con scroll */
.promo-controlador-single .wizard-step-panel {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.promo-controlador-single .wizard-step-panel:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
}
