:root {
    --android-primary: #0f766e;
    --android-bg: #f1f5f9;
    --android-surface: #ffffff;
    --android-radius: 22px;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background: var(--android-bg);
    overscroll-behavior-y: none;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

input,
select,
textarea {
    font-size: 16px !important;
}

.app-safe-top {
    padding-top: env(safe-area-inset-top);
}

.app-safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

.app-content {
    min-height: calc(100vh - 70px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
}

.bottom-nav-center {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background: var(--android-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -22px auto 0 auto;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.35);
}

.card-mobile {
    background: var(--android-surface);
    border-radius: var(--android-radius);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 640px) {
    .mobile-card-table table,
    .mobile-card-table thead,
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table th,
    .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tr {
        background: #ffffff;
        margin: 12px;
        padding: 14px;
        border-radius: 22px;
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .mobile-card-table td {
        padding: 8px 0 !important;
        border: 0 !important;
    }

    .mobile-card-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 3px;
    }

    .mobile-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mobile-actions a,
    .mobile-actions button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
@media (max-width: 640px) {
    .mobile-card-table {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .mobile-card-table tbody {
        display: block;
    }

    .mobile-card-table tr + tr {
        margin-top: 14px;
    }

    .mobile-card-table td[data-label="Acciones"]::before {
        margin-bottom: 8px;
    }

    .mobile-card-table td[data-label="Estado"] {
        padding-top: 12px !important;
    }

    .mobile-card-table td[data-label="Estado"]::before {
        margin-bottom: 8px;
    }

    .mobile-card-table td[data-label="Cantidad actual"] span,
    .mobile-card-table td[data-label="Stock actual"] span {
        margin-top: 2px;
    }
}

button:active,
a:active {
    transform: scale(0.98);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
}
@media (max-width: 640px) {
    .mobile-card-table > div {
        overflow: visible !important;
    }

    .mobile-card-table table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .mobile-card-table tr {
        position: relative;
    }

    .mobile-card-table tr::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 0;
        height: 1px;
        background: transparent;
    }

    .mobile-card-table td:first-child {
        padding-top: 4px !important;
    }

    .mobile-card-table td:last-child {
        padding-bottom: 4px !important;
    }
}

.card-mobile {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-mobile:active {
    transform: scale(0.98);
}
@media (max-width: 640px) {
    form.card-mobile {
        border-radius: 26px;
    }

    input,
    select,
    textarea {
        min-height: 48px;
    }

    textarea {
        min-height: 110px;
    }

    label {
        margin-bottom: 8px;
    }
}



}