/* Página del vendedor: mobile first, botones grandes y tarjetas táctiles. */
.seller-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--dark);
    color: #fff;
    box-shadow: 0 2px 12px #103f2d33;
}

.seller-header-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1100px;
    margin: auto;
    padding: 10px 14px;
}

.seller-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.seller-brand-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #1f8057;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .5px;
}

.seller-brand div {
    min-width: 0;
}

.seller-brand strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-brand span {
    display: block;
    margin-top: 2px;
    color: #cfe4d8;
    font-size: 12px;
}

.seller-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding-bottom: 2px;
}

.seller-nav a {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 44px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #ffffff14;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.seller-nav a:active {
    background: #ffffff24;
}

.seller-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 14px 40px;
}

.seller-hero {
    margin: 4px 0 16px;
}

.seller-hero h1,
.seller-card h1 {
    margin: 0 0 4px;
    font-size: 30px;
    line-height: 1.1;
}

.seller-step {
    display: block;
    margin-bottom: 4px;
    color: var(--g);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.seller-subtitle {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.seller-card {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px #23412d08;
}

.seller-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.seller-section-head h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
}

.seller-hint {
    max-width: 130px;
    padding-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    text-align: right;
}

.seller-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.seller-product {
    padding: 13px;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: border-color .15s, background .15s;
}

.seller-product.is-selected {
    border-color: var(--g);
    background: linear-gradient(180deg, #f4fbf4, #fff);
}

.seller-product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.seller-product-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.seller-product-emoji {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--soft);
    font-size: 23px;
}

.seller-product-name h3 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.2;
}

.seller-product-name span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.seller-remove {
    flex: none;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #e4b6b1;
    border-radius: 999px;
    background: #fff1f0;
    color: var(--red);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.seller-fractions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin-top: 12px;
}

.seller-fractions button {
    min-height: 54px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    touch-action: manipulation;
}

.seller-fractions button:active {
    border-color: var(--g);
    background: var(--soft);
    transform: scale(.97);
}

.seller-product-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 14px;
}

.seller-product-summary strong {
    color: var(--ink);
    font-size: 15px;
}

.seller-subtotal {
    color: var(--g) !important;
    font-size: 15px !important;
    font-weight: 750;
    white-space: nowrap;
}

.seller-cart-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.seller-cart-line:last-of-type {
    border-bottom: 0;
}

.seller-cart-line strong {
    display: block;
    font-size: 15px;
}

.seller-cart-line span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.seller-cart-amount {
    text-align: right;
}

.seller-cart-amount strong {
    color: var(--g);
    font-size: 16px;
}

.seller-cart-amount button {
    min-height: 32px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--red);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.seller-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid var(--summary-line);
    border-radius: 12px;
    background: var(--summary-bg);
    color: var(--summary-ink);
}

.seller-total span {
    color: var(--summary-muted);
    font-weight: 700;
}

.seller-total strong {
    color: var(--summary-ink);
    font-size: 24px;
    line-height: 1;
    white-space: nowrap;
}

.seller-empty {
    margin: 0 0 14px;
    padding: 0 4px;
    color: var(--muted);
    font-size: 14px;
}

.seller-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}

.seller-field input,
.seller-field select,
.seller-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 13px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.seller-field textarea {
    min-height: 118px;
    line-height: 1.4;
    resize: vertical;
}

.seller-field input:focus,
.seller-field select:focus,
.seller-field textarea:focus {
    border-color: var(--g);
    outline: 3px solid #dfaa2666;
    outline-offset: 1px;
}

.seller-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.seller-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.seller-search .seller-field {
    margin-bottom: 0;
}

.seller-search .seller-search-submit {
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--dark);
    color: #fff;
    font: inherit;
    font-weight: 750;
}

.seller-link {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 6px 4px;
    border: 0;
    background: none;
    color: var(--g);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Acción secundaria del encabezado de un paso, para volver al paso anterior. */
.seller-head-action {
    flex: none;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fbf8;
    color: var(--g);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

/* Vehículos ya registrados del cliente, para elegir el de hoy con un toque. */
.seller-vehicle-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seller-vehicle-picks button {
    max-width: 100%;
    min-height: 40px;
    padding: 7px 11px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
    text-align: left;
}

.seller-vehicle-picks button.is-active {
    border-color: var(--g);
    background: var(--soft);
    color: var(--g);
    font-weight: 750;
}

.seller-result {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 8px 0 0;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #f8fbf8;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    text-align: left;
}

.seller-result:active {
    border-color: var(--g);
    background: var(--soft);
}

.seller-secondary {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--g);
    font: inherit;
    font-weight: 750;
}

.seller-selected {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbf8;
}

.seller-selected strong {
    display: block;
    margin-top: 2px;
    font-size: 16px;
}

.seller-note {
    margin: 6px 0;
    color: var(--muted);
    font-size: 13px;
}

/* Aviso del estado de la etiqueta en la venta ya enviada. */
.seller-print-state {
    display: grid;
    gap: 2px;
    margin: 10px 0 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbf8;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.seller-print-state strong {
    color: var(--ink);
    font-size: 14px;
}

.seller-print-state.is-ok {
    border-color: #bfdccd;
    background: #eef7f1;
    color: #1d5b3c;
}

.seller-print-state.is-ok strong {
    color: #125638;
}

.seller-print-state.is-warn {
    border-color: #e8d79b;
    background: #fff8e3;
    color: #6d5300;
}

.seller-print-state.is-warn strong {
    color: #5a4400;
}

.seller-print-state.is-error {
    border-color: #e4b6b1;
    background: #fff1f0;
    color: #8d2626;
}

.seller-print-state.is-error strong {
    color: #7d1f1f;
}

.seller-error {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #e4b6b1;
    border-radius: 12px;
    background: #fff1f0;
    color: #8d2626;
    font-size: 14px;
}

.seller-error ul {
    margin: 0;
    padding-left: 18px;
}

.seller-form {
    padding: 16px;
}

.seller-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.seller-field .validation-message,
.seller-field .phone-error {
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
}

.seller-submit {
    width: 100%;
    min-height: 58px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: var(--g);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
}

.seller-submit:disabled {
    background: #9dbaaa;
    cursor: not-allowed;
}

.seller-submit:active:not(:disabled) {
    background: #125638;
}

.seller-sent {
    padding: 24px 18px;
    text-align: center;
}

.seller-sent-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--g);
    font-size: 30px;
    font-weight: 900;
}

.seller-sent h1 {
    margin: 0 0 4px;
    font-size: 36px;
}

.seller-sent-meta {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
}

.seller-bultos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7faf7;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.seller-bultos small {
    font-weight: 400;
}

.seller-bultos input {
    width: 88px;
    min-height: 46px;
    padding: 8px 10px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: 18px;
    text-align: center;
}

.seller-confirm-actions {
    display: grid;
    gap: 8px;
}

.seller-sent-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    color: var(--g);
    font-weight: 700;
    text-decoration: underline;
}

.seller-sent .seller-submit {
    margin-top: 0;
}

.seller-sent .seller-secondary {
    margin-top: 10px;
}

@media (min-width: 560px) {
    .seller-search {
        grid-template-columns: 1fr auto;
    }

    .seller-search .seller-search-submit {
        padding: 0 22px;
    }

    .seller-confirm-actions {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

@media (min-width: 640px) {
    .seller-page {
        padding: 24px 20px 48px;
    }

    .seller-card {
        padding: 20px;
    }

    .seller-form {
        padding: 20px;
    }

    .seller-hero h1,
    .seller-card h1 {
        font-size: 36px;
    }

    .seller-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seller-fields {
        grid-template-columns: 1fr 1fr;
        column-gap: 14px;
    }

    .seller-field--full {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .seller-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 24px;
    }

    .seller-nav {
        overflow: visible;
    }

    .seller-page {
        padding: 30px 24px 60px;
    }

    .seller-card {
        padding: 24px;
    }

    .seller-form {
        padding: 24px;
    }

    .seller-hero h1,
    .seller-card h1 {
        font-size: 40px;
    }

    .seller-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .seller-product {
        padding: 11px;
    }

    .seller-fractions {
        gap: 5px;
    }

    .seller-fractions button {
        min-height: 50px;
        font-size: 18px;
    }
}

.printer-help {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #e3c58e;
    border-radius: 14px;
    background: #fff7e7;
    color: #5a4300;
    font-size: 14px;
    line-height: 1.45;
}

.printer-help strong {
    display: block;
    margin-bottom: 4px;
    color: #7a4b00;
    font-size: 15px;
}

.printer-help code {
    padding: 1px 5px;
    border: 1px solid #e3c58e;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.printer-help .primary {
    margin-top: 10px;
}

/* Cerrar sesión en la barra del vendedor. */
.seller-nav .seller-logout {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #ffffff33;
    border-radius: 999px;
    background: #ffffff14;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
}

.seller-nav .seller-logout:active {
    background: #ffffff24;
}

.seller-nav .seller-logout:disabled {
    opacity: .6;
}

/* Descripción del vehículo con dictado. */
.seller-field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.seller-field-hint {
    margin-top: -2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.seller-field small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.seller-voice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 36px;
    gap: 4px;
    align-items: center;
}

.seller-voice .iti {
    min-width: 0;
}

.seller-voice--area {
    align-items: start;
}

.seller-voice--area .seller-mic,
.seller-voice--area .seller-clear {
    margin-top: 2px;
}

.seller-mic {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: #f3f8f3;
    font-size: 19px;
    line-height: 1;
    touch-action: manipulation;
}

.seller-mic:active {
    background: var(--soft);
    transform: scale(.96);
}

.seller-mic.is-listening {
    border-color: #e8342a;
    background: #ffe9e7;
    animation: seller-mic-pulse 1.2s infinite;
}

.seller-clear {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1.5px solid #e7b8b3;
    border-radius: 50%;
    background: #fff7f6;
    color: var(--red);
    font: inherit;
    line-height: 1;
    touch-action: manipulation;
}

.seller-clear svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.6;
}

.seller-clear:active {
    background: #ffe9e6;
    transform: scale(.96);
}

@keyframes seller-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 #e8342a73; }
    50% { box-shadow: 0 0 0 10px #e8342a00; }
}

/* Ubicación marcada en el mapa. */
.seller-map-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    border: 1.5px dashed #8bb79f;
    border-radius: 12px;
    background: #f5faf6;
    color: var(--g);
    font: inherit;
    font-weight: 750;
}

.seller-map-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbf8;
}

.seller-map-thumb {
    position: relative;
    flex: none;
    width: 72px;
    height: 139px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #e9efe9;
}

.seller-map-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-map-thumb .seller-map-pin {
    width: 16px;
    height: 16px;
    border-width: 3px;
}

.seller-map-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.seller-map-copy strong {
    font-size: 15px;
}

.seller-map-copy .seller-note {
    margin: 0;
}

.seller-map-links {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.seller-map-links button {
    min-height: 32px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--g);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: underline;
}

.seller-map-links .seller-map-clear {
    color: var(--red);
}

.seller-map-pin {
    position: absolute;
    z-index: 2;
    width: 26px;
    height: 26px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e8342a;
    box-shadow: 0 0 0 2px #e8342acc, 0 2px 6px #00000066;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.seller-note-error {
    color: var(--red);
    font-weight: 650;
}

.seller-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow-y: auto;
    background: #071a12c7;
}

.seller-map-dialog {
    width: 100%;
    max-width: 460px;
    max-height: calc(100dvh - 24px);
    padding: 14px;
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px #00000059;
}

.seller-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.seller-map-head h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
}

.seller-map-close {
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #f6f8f6;
    color: var(--ink);
    font: inherit;
    font-size: 18px;
}

.seller-map-surface {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 8px auto;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #eef2ee;
    line-height: 0;
}

.seller-map-surface img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 62vh;
    max-height: 62dvh;
    border-radius: 11px;
    cursor: crosshair;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.seller-map-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    margin-top: 10px;
}

.seller-map-actions .seller-secondary {
    margin-top: 0;
}

.seller-map-confirm {
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--g);
    color: #fff;
    font: inherit;
    font-weight: 800;
}

.seller-map-confirm:disabled {
    background: #9dbaaa;
}

.seller-sent-map {
    max-width: 240px;
    margin: 10px auto 14px;
}

.seller-sent-map img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.seller-sent-map figcaption {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}


/* Mis ventas: filtros de fecha y listado de pedidos propios. */
.mysales-filters {
    padding-bottom: 12px;
}

.mysales-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mysales-dates .seller-field {
    margin-bottom: 8px;
}

.mysales-filter-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}

.mysales-filter-actions .seller-submit,
.mysales-filter-actions .seller-secondary {
    margin-top: 0;
}

.mysales-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.mysales-stats article {
    position: relative;
    padding: 13px 14px;
    border: 1px solid var(--summary-line);
    border-radius: 16px;
    background: var(--summary-bg);
    box-shadow: 0 12px 26px -24px rgba(0, 0, 0, .85);
}

.mysales-stats .money-value {
    display: block;
    margin-top: 2px;
}

.mysales-stats .money-eye {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
}

.mysales-stats small {
    display: block;
    margin-bottom: 2px;
    color: var(--summary-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.mysales-stats strong {
    display: block;
    color: var(--summary-ink);
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.mysales-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0 2px 10px;
}

.mysales-heading h2 {
    margin: 0;
    font-size: 21px;
}

.mysales-heading .seller-note {
    margin: 0;
}

.mysales-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mysales-order {
    margin: 0;
}

.mysales-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.mysales-number {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.mysales-time {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 13px;
}

.mysales-status {
    flex: none;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .5px;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.mysales-status.is-pending { background: #fff4d6; color: #7a4b00; }
.mysales-status.is-progress { background: #e6f0ff; color: #1f4f8f; }
.mysales-status.is-delivered { background: #e3f4e9; color: #176b45; }
.mysales-status.is-cancelled { background: #eef2ee; color: #5f7167; }
.mysales-status.is-error { background: #fff1f0; color: #8d2626; }
.mysales-status.is-muted { background: #eef2ee; color: #5f7167; }

.mysales-customer {
    display: block;
    margin: 8px 0 0;
    font-size: 17px;
    line-height: 1.25;
}

.mysales-meta {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.mysales-order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.mysales-order-foot > strong {
    color: var(--g);
    font-size: 20px;
    line-height: 1.1;
}

.mysales-detail-toggle {
    flex: none;
    min-height: 40px;
    padding: 6px 12px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--g);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}

.mysales-detail-toggle:active {
    border-color: var(--g);
    background: var(--soft);
}

.mysales-detail {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbf8;
}

.mysales-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mysales-items li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.mysales-items li:last-child {
    border-bottom: 0;
}

.mysales-items strong {
    flex: none;
    white-space: nowrap;
}

.mysales-empty {
    text-align: center;
}

.mysales-empty p {
    margin: 0 0 6px;
    color: var(--muted);
}

.mysales-empty-link {
    display: inline-flex;
    width: auto;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
}

/* Error al cerrar sesión, dentro de la barra oscura del vendedor. */
.seller-logout-error {
    flex-basis: 100%;
    padding: 2px 2px 0;
    color: #ffd6d2;
    font-size: 12px;
    font-weight: 650;
}

@media (min-width: 640px) {
    .mysales-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (min-width: 900px) {
    .mysales-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
