/* Estilos para campos de input number em dispositivos móveis */
input[type="number"] {
    /* Força o teclado numérico em dispositivos móveis */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Remove as setas (spinners) do input number em navegadores modernos */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Estilos específicos para mobile */
@media (max-width: 768px) {
    input[type="number"] {
        /* Melhora a experiência de toque */
        font-size: 16px; /* Evita zoom automático no iOS */
        padding: 16px 20px; /* Área de toque maior */
        border-radius: 8px;
        border: 2px solid #e0e0e0;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    input[type="number"]:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        outline: none;
    }
    
    input[type="number"]:active {
        transform: scale(0.98);
    }
    
    /* Placeholder mais visível em mobile */
    input[type="number"]::placeholder {
        color: #999;
        font-size: 14px;
        font-style: italic;
    }
}

/* Estilos para campos de quantidade específicos */
input[name="quantity_dogs"],
input[name="hours"] {
    font-weight: 500;
    color: #333;
}

/* Estilo especial para o campo de horas */
input[name="hours"] {
    background-image: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Estilo especial para o campo de quantidade de cães */
input[name="quantity_dogs"] {
    background-image: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

/* Mobile User Profile Section in Sidebar */
/* Android WebView compatible styles - avoiding CSS variables and gap property */
.mobile-user-profile {
    padding: 16px 20px;
    border-bottom: 1px solid #ECF0F4;
    margin-bottom: 10px;
}

.mobile-user-profile .user-profile-card {
    background: #f8f9fa;
    background: -webkit-linear-gradient(315deg, #f8f9fa 0%, #ffffff 100%);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    -webkit-border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-user-profile .user-profile-link {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.mobile-user-profile .user-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    overflow: hidden;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    border: 2px solid #2275fc;
    margin-right: 12px;
    display: block;
}

.mobile-user-profile .user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.mobile-user-profile .user-info {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
}

.mobile-user-profile .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.mobile-user-profile .user-role {
    font-size: 12px;
    color: #95989D;
}

/* Mobile header user photo */
@media (max-width: 767px) {
    .header-grid .popup-wrap.user {
        display: block !important;
    }
    
    .header-grid .popup-wrap.user .header-user > span:last-child {
        display: none;
    }
    
    .header-grid .popup-wrap.user .header-user .image {
        margin-right: 0;
    }
}
