/* modules/sales/assets/css/sales.css */

.atnd-sales-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.atnd-sales-overlay.is-open {
    display: flex;
}

.atnd-sales-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.atnd-sales-overlay__dialog {
    position: relative;
    z-index: 1;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.atnd-sales-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e1e1;
    background: #fafafa;
}

.atnd-sales-header__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.atnd-sales-header__photo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.atnd-sales-header__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atnd-sales-header__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.atnd-sales-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.atnd-sales-attendant-name {
    margin: 0;
    font-size: 0.95rem;
    color: #333333;
}

.atnd-sales-mode-label {
    margin: 0;
    font-size: 0.8rem;
    color: #444444;
}

.atnd-sales-header__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    color: #555555;
}

.atnd-sales-tabs {
    display: flex;
    border-bottom: 1px solid #e1e1e1;
    background: #ffffff;
}

.atnd-sales-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666666;
    border-bottom: 2px solid transparent;
}

.atnd-sales-tab.is-active {
    color: #111111;
    border-bottom-color: #111111;
}

.atnd-sales-panels {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.atnd-sales-panel {
    display: none !important;
}

.atnd-sales-panel.is-active {
    display: block !important;
}

.atnd-sales-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.atnd-sales-section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
}

.atnd-sales-section__desc {
    margin: 0;
    font-size: 0.9rem;
    color: #444444;
}

.atnd-sales-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.atnd-sales-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #222222;
}

.atnd-sales-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
}

.atnd-sales-radios label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #222222;
}

.atnd-sales-questions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atnd-sales-question {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #e2e2e2;
}

.atnd-sales-question__textarea {
    width: 100%;
    resize: vertical;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    font-size: 0.9rem;
    font-family: inherit;
}

.atnd-sales-question__remove {
    align-self: flex-start;
    margin-top: 4px;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid #e57373;
    background: #ffebee;
    color: #c62828;
    cursor: pointer;
}

.atnd-sales-actions {
    display: flex;
    justify-content: flex-start;
}

.atnd-sales-slider {
    width: 100%;
}

.atnd-sales-slider__info {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #444444;
}

.atnd-sales-prices {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.atnd-sales-price-line {
    display: flex;
    justify-content: space-between;
}

.atnd-sales-price-line__label {
    color: #555555;
}

.atnd-sales-price-line__value {
    font-weight: 600;
}

.atnd-sales-footer {
    padding: 12px 20px;
    border-top: 1px solid #e1e1e1;
    background: #fafafa;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.atnd-sales-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.atnd-sales-summary__line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.atnd-sales-summary__label {
    color: #222222;
}

.atnd-sales-summary__total {
    font-weight: 700;
    font-size: 1.05rem;
}

.atnd-sales-summary__desc {
    margin: 0;
    color: #666666;
    font-size: 0.8rem;
}

.atnd-sales-footer__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atnd-sales-primary-button,
.atnd-sales-secondary-button {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.atnd-sales-primary-button {
    background: #111111;
    color: #ffffff;
}

.atnd-sales-primary-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.atnd-sales-secondary-button {
    background: #f0f0f0;
    color: #333333;
    border: 1px solid #d0d0d0;
}

/* Responsivo */
@media (max-width: 600px) {
    .atnd-sales-overlay__dialog {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .atnd-sales-header {
        padding: 12px 16px;
    }

    .atnd-sales-panels {
        padding: 12px 16px;
    }

    .atnd-sales-footer {
        padding: 10px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .atnd-sales-footer__actions {
        width: 100%;
        justify-content: flex-end;
    }
}
